An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:green_heart:
Vanessa5f03df576a81
diff --git a/app/src/layout/Wnd.ts b/app/src/layout/Wnd.tsindex 6b4daef7c4..d6a62f6666 100644--- a/app/src/layout/Wnd.ts+++ b/app/src/layout/Wnd.ts@@ -17,6 +17,7 @@ import {Constants} from "../constants";/// #if !BROWSERimport {webFrame} from "electron";import {getCurrentWindow} from "@electron/remote";+import {setTabPosition} from "../window/setHeader";/// #endifimport {Search} from "../search";import {showMessage} from "../dialog/message";@@ -30,7 +31,6 @@ import {newFile} from "../util/newFile";import {MenuItem} from "../menus/Menu";import {escapeHtml} from "../util/escape";import {isWindow} from "../util/functions";-import {setTabPosition} from "../window/setHeader";export class Wnd {public id: string;@@ -109,12 +109,14 @@ export class Wnd {break;} else if (target.tagName === "SPAN" && target.className === "fn__flex-1" &&isWindow() && this.headersElement.getBoundingClientRect().top <= 0) {+ /// #if !BROWSERconst currentWindow = getCurrentWindow();if (currentWindow.isMaximized()) {currentWindow.unmaximize();} else {currentWindow.maximize();}+ /// #endifbreak;}target = target.parentElement;@@ -328,7 +330,9 @@ export class Wnd {switchWnd(newWnd, targetWnd);}}+ /// #if !BROWSERsetTabPosition();+ /// #endifreturn;}@@ -504,8 +508,9 @@ export class Wnd {} else if (this.children.length > window.siyuan.config.fileTree.maxOpenTabCount) {this.removeOverCounter(oldFocusIndex);}-+ /// #if !BROWSERsetTabPosition();+ /// #endif}private renderTabList(event: MouseEvent) {diff --git a/app/src/window/setHeader.ts b/app/src/window/setHeader.tsindex b1cf9dcc36..8ee87f38fc 100644--- a/app/src/window/setHeader.ts+++ b/app/src/window/setHeader.ts@@ -1,7 +1,7 @@import {isWindow} from "../util/functions";import {Wnd} from "../layout/Wnd";-import {Layout} from "../layout";import {getCurrentWindow} from "@electron/remote";+import {Layout} from "../layout";const getAllWnds = (layout: Layout, wnds: Wnd[]) => {for (let i = 0; i < layout.children.length; i++) {