An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:art: https://github.com/siyuan-note/siyuan/issues/7976
Daniel6859984b3f8a
diff --git a/app/appearance/icons/index.html b/app/appearance/icons/index.htmlindex a623275ba7..c5c33dedcd 100644--- a/app/appearance/icons/index.html+++ b/app/appearance/icons/index.html@@ -28,6 +28,12 @@<body><h2>SiYuan</h2><div class="fn__clear">+ <div>+ <svg>+ <use xlink:href="#iconAddDoc"></use>+ </svg>+ iconAddDoc+ </div><div><svg><use xlink:href="#iconExpandLevel"></use>diff --git a/app/appearance/icons/material/icon.js b/app/appearance/icons/material/icon.jsindex 9d06d05819..a8021d9006 100644--- a/app/appearance/icons/material/icon.js+++ b/app/appearance/icons/material/icon.js@@ -1,7 +1,10 @@document.body.insertAdjacentHTML('afterbegin', `<svg id="iconsMaterial" style="position: absolute; width: 0; height: 0; overflow: hidden;"><defs>+ <symbol id="iconAddDoc" viewBox="30 -930 900 900">+ <path d="M450-370v90q0 12.77 8.62 21.38Q467.23-250 480-250t21.38-8.62Q510-267.23 510-280v-90h90q12.77 0 21.38-8.62Q630-387.23 630-400t-8.62-21.38Q612.77-430 600-430h-90v-90q0-12.77-8.62-21.38Q492.77-550 480-550t-21.38 8.62Q450-532.77 450-520v90h-90q-12.77 0-21.38 8.62Q330-412.77 330-400t8.62 21.38Q347.23-370 360-370h90ZM252.31-100Q222-100 201-121q-21-21-21-51.31v-615.38Q180-818 201-839q21-21 51.31-21h287.77q14.46 0 27.81 5.62 13.34 5.61 23.19 15.46l167.84 167.84q9.85 9.85 15.46 23.19 5.62 13.35 5.62 27.81v447.77Q780-142 759-121q-21 21-51.31 21H252.31ZM540-656.16V-800H252.31q-4.62 0-8.46 3.85-3.85 3.84-3.85 8.46v615.38q0 4.62 3.85 8.46 3.84 3.85 8.46 3.85h455.38q4.62 0 8.46-3.85 3.85-3.84 3.85-8.46V-620H576.16q-15.47 0-25.81-10.35Q540-640.69 540-656.16ZM240-800v180-180V-160v-640Z"/>+ </symbol><symbol id="iconExpandLevel" viewBox="30 -930 900 900">- <path d="M170-302.31q-12.75 0-21.37-8.63-8.63-8.63-8.63-21.38 0-12.76 8.63-21.37 8.62-8.62 21.37-8.62h466.92q12.75 0 21.38 8.63 8.62 8.63 8.62 21.38 0 12.76-8.62 21.38-8.63 8.61-21.38 8.61H170ZM170-450q-12.75 0-21.37-8.63-8.63-8.63-8.63-21.38 0-12.76 8.63-21.37Q157.25-510 170-510h466.92q12.75 0 21.38 8.63 8.62 8.63 8.62 21.38 0 12.76-8.62 21.37-8.63 8.62-21.38 8.62H170Zm0-147.69q-12.75 0-21.37-8.63-8.63-8.63-8.63-21.38 0-12.76 8.63-21.38 8.62-8.61 21.37-8.61h466.92q12.75 0 21.38 8.63 8.62 8.63 8.62 21.38 0 12.76-8.62 21.37-8.63 8.62-21.38 8.62H170ZM787.69-300q-13.73 0-23.02-9.18t-9.29-22.74q0-13.9 9.29-23.3t23.02-9.4q13.73 0 23.02 9.4t9.29 23.3q0 13.56-9.29 22.74-9.29 9.18-23.02 9.18Zm0-147.31q-13.73 0-23.02-9.19t-9.29-23.5q0-13.57 9.29-22.74 9.29-9.18 23.02-9.18t23.02 9.18Q820-493.57 820-480q0 14.31-9.29 23.5t-23.02 9.19Zm0-148.07q-13.73 0-23.02-9.18t-9.29-22.75q0-13.89 9.29-23.29 9.29-9.4 23.02-9.4t23.02 9.4q9.29 9.4 9.29 23.29 0 13.57-9.29 22.75t-23.02 9.18Z"/>+ <path d="M170-302.31q-12.75 0-21.37-8.63-8.63-8.63-8.63-21.38 0-12.76 8.63-21.37 8.62-8.62 21.37-8.62h466.92q12.75 0 21.38 8.63 8.62 8.63 8.62 21.38 0 12.76-8.62 21.38-8.63 8.61-21.38 8.61H170ZM170-450q-12.75 0-21.37-8.63-8.63-8.63-8.63-21.38 0-12.76 8.63-21.37Q157.25-510 170-510h466.92q12.75 0 21.38 8.63 8.62 8.63 8.62 21.38 0 12.76-8.62 21.37-8.63 8.62-21.38 8.62H170Zm0-147.69q-12.75 0-21.37-8.63-8.63-8.63-8.63-21.38 0-12.76 8.63-21.38 8.62-8.61 21.37-8.61h466.92q12.75 0 21.38 8.63 8.62 8.63 8.62 21.38 0 12.76-8.62 21.37-8.63 8.62-21.38 8.62H170ZM787.69-300q-13.73 0-23.02-9.18t-9.29-22.74q0-13.9 9.29-23.3t23.02-9.4q13.73 0 23.02 9.4t9.29 23.3q0 13.56-9.29 22.74-9.29 9.18-23.02 9.18Zm0-147.31q-13.73 0-23.02-9.19t-9.29-23.5q0-13.57 9.29-22.74 9.29-9.18 23.02-9.18t23.02 9.18Q820-493.57 820-480q0 14.31-9.29 23.5t-23.02 9.19Zm0-148.07q-13.73 0-23.02-9.18t-9.29-22.75q0-13.89 9.29-23.29 9.29-9.4 23.02-9.4t23.02 9.4q9.29 9.4 9.29 23.29 0 13.57-9.29 22.75t-23.02 9.18Z"/></symbol><symbol id="iconWidth" viewBox="30 -930 900 900"><path d="M140-172.31v-615.38q0-13.54 9.39-22.92 9.38-9.39 22.92-9.39 13.54 0 22.92 9.39 9.39 9.38 9.39 22.92v615.38q0 13.54-9.39 22.92-9.38 9.39-22.92 9.39-13.54 0-22.92-9.39-9.39-9.38-9.39-22.92Zm615.38 0v-615.38q0-13.54 9.39-22.92 9.38-9.39 22.92-9.39 13.54 0 22.92 9.39 9.39 9.38 9.39 22.92v615.38q0 13.54-9.39 22.92-9.38 9.39-22.92 9.39-13.54 0-22.92-9.39-9.39-9.38-9.39-22.92Zm-298.3-284.77q-9.39-9.38-9.39-22.92 0-13.54 9.39-22.92 9.38-9.39 22.92-9.39 13.54 0 22.92 9.39 9.39 9.38 9.39 22.92 0 13.54-9.39 22.92-9.38 9.39-22.92 9.39-13.54 0-22.92-9.39Zm-153.85 0q-9.38-9.38-9.38-22.92 0-13.54 9.38-22.92 9.39-9.39 22.92-9.39 13.54 0 22.93 9.39 9.38 9.38 9.38 22.92 0 13.54-9.38 22.92-9.39 9.39-22.93 9.39-13.53 0-22.92-9.39Zm307.69 0q-9.38-9.38-9.38-22.92 0-13.54 9.38-22.92 9.39-9.39 22.93-9.39 13.53 0 22.92 9.39 9.38 9.38 9.38 22.92 0 13.54-9.38 22.92-9.39 9.39-22.92 9.39-13.54 0-22.93-9.39Z"/>diff --git a/app/src/mobile/util/setEmpty.ts b/app/src/mobile/util/setEmpty.tsindex 591affe2fd..1475a271ea 100644--- a/app/src/mobile/util/setEmpty.ts+++ b/app/src/mobile/util/setEmpty.ts@@ -21,13 +21,13 @@ export const setEmpty = (app: App) => {<svg class="b3-list-item__graphic"><use xlink:href="#iconSearch"></use></svg><span class="fn__space"></span><span class="b3-list-item__text">${window.siyuan.languages.search}</span></div><div id="emptyRecent" class="b3-list-item">- <svg class="b3-list-item__graphic"><use xlink:href="#iconList"></use></svg><span class="fn__space"></span><span class="b3-list-item__text">${window.siyuan.languages.recentDocs}</span>+ <svg class="b3-list-item__graphic"><use xlink:href="#iconRecentDocs"></use></svg><span class="fn__space"></span><span class="b3-list-item__text">${window.siyuan.languages.recentDocs}</span></div><div id="emptyHistory" class="b3-list-item${window.siyuan.config.readonly ? " fn__none" : ""}"><svg class="b3-list-item__graphic"><use xlink:href="#iconHistory"></use></svg><span class="fn__space"></span><span class="b3-list-item__text">${window.siyuan.languages.dataHistory}</span></div><div id="emptyNewFile" class="b3-list-item${(getOpenNotebookCount() > 0 || !window.siyuan.config.readonly) ? "" : " fn__none"}">- <svg class="b3-list-item__graphic"><use xlink:href="#iconFile"></use></svg><span class="fn__space"></span><span class="b3-list-item__text">${window.siyuan.languages.newFile}</span>+ <svg class="b3-list-item__graphic"><use xlink:href="#iconAddDoc"></use></svg><span class="fn__space"></span><span class="b3-list-item__text">${window.siyuan.languages.newFile}</span></div><div class="b3-list-item" id="emptyNewNotebook${window.siyuan.config.readonly ? " fn__none" : ""}"><svg class="b3-list-item__graphic"><use xlink:href="#iconFilesRoot"></use></svg><span class="fn__space"></span><span class="b3-list-item__text">${window.siyuan.languages.newNotebook}</span>