Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:art: https://github.com/siyuan-note/siyuan/issues/17606

Daniel872ed3d53ef4
diff --git a/app/appearance/icons/index.html b/app/appearance/icons/index.html
index 46532a333c..f29aa867ef 100644
--- a/app/appearance/icons/index.html
+++ b/app/appearance/icons/index.html
@@ -28,6 +28,30 @@
<body>
<h2>SiYuan</h2>
<div class="fn__clear">
+ <div>
+ <svg>
+ <use xlink:href="#iconUploadAssets"></use>
+ </svg>
+ iconUploadAssets
+ </div>
+ <div>
+ <svg>
+ <use xlink:href="#iconDownloadAssets"></use>
+ </svg>
+ iconDownloadAssets
+ </div>
+ <div>
+ <svg>
+ <use xlink:href="#iconKeepContent"></use>
+ </svg>
+ iconKeepContent
+ </div>
+ <div>
+ <svg>
+ <use xlink:href="#iconFullWidth"></use>
+ </svg>
+ iconFullWidth
+ </div>
<div>
<svg>
<use xlink:href="#iconTurnInto"></use>
@@ -496,12 +520,6 @@
</svg>
iconHistory
</div>
- <div>
- <svg>
- <use xlink:href="#iconTransform"></use>
- </svg>
- iconTransform
- </div>
<div>
<svg>
<use xlink:href="#iconClear"></use>
diff --git a/app/appearance/icons/litheness/icon.js b/app/appearance/icons/litheness/icon.js
index 7e7163c293..9aaf0134e2 100644
--- a/app/appearance/icons/litheness/icon.js
+++ b/app/appearance/icons/litheness/icon.js
@@ -1,5 +1,20 @@
document.body.insertAdjacentHTML('afterbegin', `<svg id="iconsLitheness" style="position: absolute; width: 0; height: 0; overflow: hidden;">
<defs>
+ <symbol id="iconUploadAssets" stroke-width="1.7" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round">
+ <path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M12 12v6"/><path d="m15 15-3-3-3 3"/>
+ </symbol>
+ <symbol id="iconDownloadAssets" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round">
+ <path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M12 18v-6"/><path d="m9 15 3 3 3-3"/>
+ </symbol>
+ <symbol id="iconKeepContent" stroke-width="1.7" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round">
+ <path d="M4 14h6"/><path d="M4 2h10"/><rect x="4" y="18" width="16" height="4" rx="1"/><rect x="4" y="6" width="16" height="4" rx="1"/>
+ </symbol>
+ <symbol id="iconFullWidth" stroke-width="1.7" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round">
+ <path d="M16 12h6"/><path d="M8 12H2"/><path d="M12 2v2"/><path d="M12 8v2"/><path d="M12 14v2"/><path d="M12 20v2"/><path d="m19 15 3-3-3-3"/><path d="m5 9-3 3 3 3"/>
+ </symbol>
+ <symbol id="iconTurnInto" stroke-width="1.7" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round">
+ <path d="m15.194 13.707 3.814 1.86-1.86 3.814"/><path d="M16.47214 7.52786 A 5 10 0 1 0 13 21.79796"/><path d="M21.79796 11 A 10 5 0 1 0 19 15.57071"/>
+ </symbol>
<symbol id="iconTurnInto" stroke-width="1.7" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round">
<path d="m15.194 13.707 3.814 1.86-1.86 3.814"/><path d="M16.47214 7.52786 A 5 10 0 1 0 13 21.79796"/><path d="M21.79796 11 A 10 5 0 1 0 19 15.57071"/>
</symbol>
@@ -239,9 +254,6 @@ document.body.insertAdjacentHTML('afterbegin', `<svg id="iconsLitheness" style="
<symbol id="iconHistory" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round">
<path d="M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8"/><path d="M3 3v5h5"/><path d="M12 7v5l4 2"/>
</symbol>
- <symbol id="iconTransform" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round">
- <path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M12 18v-6"/><path d="m9 15 3 3 3-3"/>
- </symbol>
<symbol id="iconClear" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round">
<path d="M4 7V4h16v3"/><path d="M5 20h6"/><path d="M13 4 8 20"/><path d="m15 15 5 5"/><path d="m20 15-5 5"/>
</symbol>
diff --git a/app/src/protyle/breadcrumb/index.ts b/app/src/protyle/breadcrumb/index.ts
index 7ee24ce91a..dba28b57c3 100644
--- a/app/src/protyle/breadcrumb/index.ts
+++ b/app/src/protyle/breadcrumb/index.ts
@@ -354,7 +354,7 @@ ${padHTML}
window.siyuan.menus.menu.append(new MenuItem({
id: "netAssets2LocalAssets",
label: window.siyuan.languages.netAssets2LocalAssets,
- icon: "iconTransform",
+ icon: "iconDownloadAssets",
accelerator: window.siyuan.config.keymap.editor.general.netAssets2LocalAssets.custom,
click() {
net2LocalAssets(protyle, "Assets");
@@ -363,7 +363,7 @@ ${padHTML}
window.siyuan.menus.menu.append(new MenuItem({
id: "uploadAssets2CDN",
label: window.siyuan.languages.uploadAssets2CDN,
- icon: "iconCloudSucc",
+ icon: "iconUploadAssets",
click() {
if (!needSubscribe()) {
confirmDialog("📦 " + window.siyuan.languages.uploadAssets2CDN, window.siyuan.languages.uploadAssets2CDNConfirmTip, () => {
@@ -389,6 +389,7 @@ ${padHTML}
if (!protyle.scroll?.element.classList.contains("fn__none")) {
window.siyuan.menus.menu.append(new MenuItem({
id: "keepLazyLoad",
+ icon: "iconKeepContent",
current: protyle.scroll.keepLazyLoad,
label: window.siyuan.languages.keepLazyLoad,
click: () => {
@@ -504,7 +505,7 @@ ${padHTML}
window.siyuan.menus.menu.append(new MenuItem({
id: "fullWidth",
label: window.siyuan.languages.fullWidth,
- icon: "iconDock",
+ icon: "iconFullWidth",
type: "submenu",
submenu: [{
id: "enable",