An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:iphone:
Vanessa2750a1b86f00
diff --git a/app/src/layout/index.ts b/app/src/layout/index.tsindex e497b35bad..953c77eff9 100644--- a/app/src/layout/index.ts+++ b/app/src/layout/index.ts@@ -3,7 +3,7 @@ import {genUUID} from "../util/genID";import {addResize, resizeTabs} from "./util";/// #if MOBILE// 检测移动端是否引入了桌面端的代码-alert("Need remove unused code");+debugger;/// #endifexport class Layout {diff --git a/app/src/plugin/loader.ts b/app/src/plugin/loader.tsindex 160a795964..01c7e4eaea 100644--- a/app/src/plugin/loader.ts+++ b/app/src/plugin/loader.ts@@ -1,8 +1,10 @@import {fetchPost} from "../util/fetch";import {App} from "../index";import {Plugin} from "./index";-import {API} from "./API";+/// #if !MOBILEimport {exportLayout} from "../layout/util";+/// #endif+import {API} from "./API";const getObject = (key: string) => {const api = {@@ -97,9 +99,11 @@ export const loadPlugin = (app: App, item: IPluginData) => {const styleElement = document.createElement("style");styleElement.textContent = item.css;document.head.append(styleElement);+ /// #if !MOBILEexportLayout({reload: false,onlyData: false,errorExit: false});+ /// #endif};