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: fix https://github.com/siyuan-note/siyuan/issues/5601
Vanessae837fc315ad5
diff --git a/app/src/menus/navigation.ts b/app/src/menus/navigation.tsindex 014b9916ef..6f2a55c5eb 100644--- a/app/src/menus/navigation.ts+++ b/app/src/menus/navigation.ts@@ -106,10 +106,9 @@ export const initNavigationMenu = (liElement: HTMLElement) => {shell.openPath(path.join(window.siyuan.config.system.dataDir, notebookId));}}).element);- if (!window.siyuan.config.readonly) {- genImportMenu(notebookId, "/");- }/// #endif+ genImportMenu(notebookId, "/");+window.siyuan.menus.menu.append(new MenuItem({label: window.siyuan.languages.export,type: "submenu",@@ -297,16 +296,14 @@ export const initFileMenu = (notebookId: string, pathString: string, liElement:submenu: openSubmenus,}).element);/// #endif- if (!window.siyuan.config.readonly) {- genImportMenu(notebookId, pathString);- }+ genImportMenu(notebookId, pathString);window.siyuan.menus.menu.append(exportMd(id));return window.siyuan.menus.menu;};const genImportMenu = (notebookId: string, pathString: string) => {- /// #if !BROWSERif (!window.siyuan.config.readonly) {+ /// #if !BROWSERconst importstdmd = (label: string, isDoc?: boolean) => {return {icon: isDoc ? "iconMarkdown" : "iconFolder",@@ -332,6 +329,7 @@ const genImportMenu = (notebookId: string, pathString: string) => {}};};+ /// #endifwindow.siyuan.menus.menu.append(new MenuItem({icon: "iconDownload",label: window.siyuan.languages.import,@@ -348,9 +346,11 @@ const genImportMenu = (notebookId: string, pathString: string) => {});}},+ /// #if !BROWSERimportstdmd("Markdown " + window.siyuan.languages.doc, true),- importstdmd("Markdown " + window.siyuan.languages.folder)],+ importstdmd("Markdown " + window.siyuan.languages.folder)+ /// #endif+ ],}).element);}- /// #endif};