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: https://github.com/siyuan-note/siyuan/issues/8163
Vanessabba546d01717
diff --git a/app/src/protyle/gutter/index.ts b/app/src/protyle/gutter/index.tsindex 858416419c..0ac300963b 100644--- a/app/src/protyle/gutter/index.ts+++ b/app/src/protyle/gutter/index.ts@@ -44,7 +44,11 @@ export class Gutter {constructor(protyle: IProtyle) {this.element = document.createElement("div");this.element.className = "protyle-gutters";- this.element.setAttribute("aria-label", window.siyuan.languages.gutterTip.replace(/⌘/g, updateHotkeyTip("⌘")).replace(/⌥/g, updateHotkeyTip("⌥")).replace(/⇧/g, updateHotkeyTip("⇧")).replace(/⌃/g, updateHotkeyTip("⌃")));+ if (/Mac/.test(navigator.platform) || navigator.platform === "iPhone") {+ this.element.setAttribute("aria-label", window.siyuan.languages.gutterTip);+ } else {+ this.element.setAttribute("aria-label", window.siyuan.languages.gutterTip.replace(/⌘/g, "Ctrl+").replace(/⌥/g, "Alt+").replace(/⇧/g, "Shift+").replace(/⌃/g, "Ctrl+"));+ }this.element.setAttribute("data-type", "a");this.element.setAttribute("data-position", "right");this.element.addEventListener("dragstart", (event: DragEvent & { target: HTMLElement }) => {diff --git a/app/src/protyle/util/compatibility.ts b/app/src/protyle/util/compatibility.tsindex 911fc102b1..5cff4101a8 100644--- a/app/src/protyle/util/compatibility.ts+++ b/app/src/protyle/util/compatibility.ts@@ -101,6 +101,7 @@ export const updateHotkeyTip = (hotkey: string) => {const KEY_MAP = new Map(Object.entries({"⌘": "Ctrl",+ "⌃": "Ctrl","⇧": "Shift","⌥": "Alt","⇥": "Tab",