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: 新版 Electron 支持双击缩放
Vanessa0b6b729ab5c6
diff --git a/app/src/boot/globalEvent/keydown.ts b/app/src/boot/globalEvent/keydown.tsindex ffa5f54671..075e12d88b 100644--- a/app/src/boot/globalEvent/keydown.ts+++ b/app/src/boot/globalEvent/keydown.ts@@ -41,7 +41,6 @@ import {hintMoveBlock} from "../../protyle/hint/extend";import {Backlink} from "../../layout/dock/Backlink";/// #if !BROWSERimport {setZoom} from "../../layout/topBar";-import {getCurrentWindow} from "@electron/remote";import {ipcRenderer} from "electron";/// #endifimport {openHistory} from "../../history/history";@@ -1419,7 +1418,6 @@ export const sendGlobalShortcut = (app: App) => {});ipcRenderer.send(Constants.SIYUAN_HOTKEY, {languages: window.siyuan.languages["_trayMenu"],- id: getCurrentWindow().id,hotkeys});/// #endifdiff --git a/app/src/constants.ts b/app/src/constants.tsindex 6e3b675ca7..75bef5730d 100644--- a/app/src/constants.ts+++ b/app/src/constants.ts@@ -26,6 +26,7 @@ export abstract class Constants {// 渲染进程调主进程public static readonly SIYUAN_SHOW: string = "siyuan-show";public static readonly SIYUAN_HIDE: string = "siyuan-hide";+public static readonly SIYUAN_CONFIG_TRAY: string = "siyuan-config-tray";public static readonly SIYUAN_QUIT: string = "siyuan-quit";public static readonly SIYUAN_HOTKEY: string = "siyuan-hotkey";diff --git a/app/src/protyle/breadcrumb/index.ts b/app/src/protyle/breadcrumb/index.tsindex 64f1a43535..1fd9e91c5e 100644--- a/app/src/protyle/breadcrumb/index.ts+++ b/app/src/protyle/breadcrumb/index.ts@@ -18,7 +18,7 @@ import {openFileById} from "../../editor/util";import {setPanelFocus} from "../../layout/util";/// #endif/// #if !BROWSER-import {getCurrentWindow, systemPreferences} from "@electron/remote";+import {systemPreferences} from "@electron/remote";/// #endifimport {onGet} from "../util/onGet";import {hideElements} from "../ui/hideElements";@@ -166,20 +166,6 @@ export class Breadcrumb {this.element.scrollLeft = this.element.scrollLeft + event.deltaY;}, {passive: true});/// #endif- /// #if !BROWSER- if ("windows" !== window.siyuan.config.system.os && "linux" !== window.siyuan.config.system.os) {- const currentWindow = getCurrentWindow();- element.querySelector(".protyle-breadcrumb__space").addEventListener("dblclick", (event) => {- if (hasClosestByClassName(event.target as HTMLElement, "fullscreen")) {- if (currentWindow.isMaximized()) {- currentWindow.unmaximize();- } else {- currentWindow.maximize();- }- }- });- }- /// #endif}private startRecord(protyle: IProtyle) {