An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:sparkles: Add UI reload to command panel https://github.com/siyuan-note/siyuan/issues/19252
Danield4b669dc7837
diff --git a/app/src/command/contextCommands.ts b/app/src/command/contextCommands.tsindex 716004084f..2d627f6a4e 100644--- a/app/src/command/contextCommands.ts+++ b/app/src/command/contextCommands.ts@@ -19,6 +19,7 @@ import {newFileInTree} from "../util/newFile";import {newNotebook} from "../util/mount";import {pathPosix} from "../util/pathName";import {isCustomFileTreeList} from "../util/fileTreeSort";+import {fetchPost} from "../util/fetch";/// #if !MOBILEimport {Tab} from "../layout/Tab";/// #endif@@ -99,6 +100,7 @@ export const ensureContextCommands = (app: App) => {}, context => key === "pin" ? getTab(context).pin() : getTab(context).unpin()));/// #endif+ add("reloadUI", ["reloadUI"], () => true, () => fetchPost("/api/ui/reloadUI", {}));add("notebook.new", ["newNotebook"], () => !window.siyuan.config.readonly, () => newNotebook());["newDocAbove", "newDocBelow"].forEach(key => add(`document.${key}`, ["doc", key], context => {if (!documentWritable(context)) {