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: Improve workspace main menu name
Daniel052288f57ce3
diff --git a/app/src/util/noRelyPCFunction.ts b/app/src/util/noRelyPCFunction.tsindex 819e4debca..b82a18f28e 100644--- a/app/src/util/noRelyPCFunction.ts+++ b/app/src/util/noRelyPCFunction.ts@@ -2,6 +2,7 @@ import {Dialog} from "../dialog";import {fetchPost} from "./fetch";import {isMobile} from "./functions";import {Constants} from "../constants";+import {pathPosix} from "./pathName";// 需独立出来,否则移动端引用的时候会引入 pc 端大量无用代码export const renameTag = (labelName: string) => {@@ -31,7 +32,7 @@ export const renameTag = (labelName: string) => {};export const getWorkspaceName = () => {- return window.siyuan.config.system.workspaceDir.replace(/^.*[\\\/]/, "");+ return pathPosix().basename(window.siyuan.config.system.workspaceDir.replace(/\\/g, "/"));};export const checkFold = (id: string, cb: (zoomIn: boolean, action: string[], isRoot: boolean) => void) => {