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/14589
Vanessa53aacb8a77b7
diff --git a/app/src/mobile/menu/index.ts b/app/src/mobile/menu/index.tsindex 4952588264..516689af73 100644--- a/app/src/mobile/menu/index.ts+++ b/app/src/mobile/menu/index.ts@@ -33,7 +33,6 @@ import {initFileTree} from "../settings/fileTree";export const popMenu = () => {activeBlur();- hideKeyboardToolbar();document.getElementById("menu").style.transform = "translateX(0px)";};diff --git a/app/src/mobile/menu/search.ts b/app/src/mobile/menu/search.tsindex 5f5c238c9f..4cfcb27f56 100644--- a/app/src/mobile/menu/search.ts+++ b/app/src/mobile/menu/search.ts@@ -672,7 +672,6 @@ export const popSearch = (app: App, searchConfig?: any) => {}activeBlur();- hideKeyboardToolbar();let includeChild = true;let enableIncludeChild = false;config.idPath.forEach(item => {diff --git a/app/src/mobile/util/closePanel.ts b/app/src/mobile/util/closePanel.tsindex 60be93d65d..709ca15852 100644--- a/app/src/mobile/util/closePanel.ts+++ b/app/src/mobile/util/closePanel.ts@@ -11,7 +11,6 @@ export const closePanel = () => {};export const closeModel = () => {- document.getElementById("model").style.transform = "";activeBlur();- hideKeyboardToolbar();+ document.getElementById("model").style.transform = "";};diff --git a/app/src/mobile/util/initFramework.ts b/app/src/mobile/util/initFramework.tsindex 35eb6e3c95..a383457dd8 100644--- a/app/src/mobile/util/initFramework.ts+++ b/app/src/mobile/util/initFramework.ts@@ -138,7 +138,6 @@ export const initFramework = (app: App, isStart: boolean) => {});window.siyuan.mobile.docks.file = new MobileFiles(app);document.getElementById("toolbarFile").addEventListener("click", () => {- hideKeyboardToolbar();activeBlur();sidebarElement.style.transform = "translateX(0px)";const type = sidebarElement.querySelector(".toolbar--border .toolbar__icon--active").getAttribute("data-type");diff --git a/app/src/mobile/util/keyboardToolbar.ts b/app/src/mobile/util/keyboardToolbar.tsindex 67ccde5746..896de21483 100644--- a/app/src/mobile/util/keyboardToolbar.ts+++ b/app/src/mobile/util/keyboardToolbar.ts@@ -36,18 +36,18 @@ export const renderTextMenu = (protyle: IProtyle, toolbarElement: Element) => {"var(--b3-font-color9)", "var(--b3-font-color10)", "var(--b3-font-color11)", "var(--b3-font-color12)","var(--b3-font-color13)"].forEach((item, index) => {colorHTML += `<button class="keyboard__slash-item" data-type="color">- <span class="keyboard__slash-icon" ${item?`style="color:${item}"`:""}>A</span>- <span class="keyboard__slash-text">${window.siyuan.languages.colorFont} ${item?index + 1:window.siyuan.languages.default}</span>+ <span class="keyboard__slash-icon" ${item ? `style="color:${item}"` : ""}>A</span>+ <span class="keyboard__slash-text">${window.siyuan.languages.colorFont} ${item ? index + 1 : window.siyuan.languages.default}</span></button>`;});let bgHTML = "";- ["","var(--b3-font-background1)", "var(--b3-font-background2)", "var(--b3-font-background3)", "var(--b3-font-background4)",+ ["", "var(--b3-font-background1)", "var(--b3-font-background2)", "var(--b3-font-background3)", "var(--b3-font-background4)","var(--b3-font-background5)", "var(--b3-font-background6)", "var(--b3-font-background7)", "var(--b3-font-background8)","var(--b3-font-background9)", "var(--b3-font-background10)", "var(--b3-font-background11)", "var(--b3-font-background12)","var(--b3-font-background13)"].forEach((item, index) => {bgHTML += `<button class="keyboard__slash-item" data-type="backgroundColor">- <span class="keyboard__slash-icon" ${item?`style="background-color:${item}"`:""}>A</span>- <span class="keyboard__slash-text">${window.siyuan.languages.colorPrimary} ${item?index + 1:window.siyuan.languages.default}</span>+ <span class="keyboard__slash-icon" ${item ? `style="background-color:${item}"` : ""}>A</span>+ <span class="keyboard__slash-text">${window.siyuan.languages.colorPrimary} ${item ? index + 1 : window.siyuan.languages.default}</span></button>`;});@@ -462,6 +462,8 @@ export const hideKeyboardToolbar = () => {};export const activeBlur = () => {+ window.JSAndroid?.hideKeyboard();+ hideKeyboardToolbar();(document.activeElement as HTMLElement).blur();};@@ -566,7 +568,6 @@ export const initKeyboardToolbar = () => {focusByRange(range);} else {activeBlur();- hideKeyboardToolbar();}return;}@@ -658,7 +659,6 @@ export const initKeyboardToolbar = () => {protyle.gutter.renderMenu(protyle, nodeElement);window.siyuan.menus.menu.fullscreen();activeBlur();- hideKeyboardToolbar();return;} else if (type === "outdent") {listOutdent(protyle, [nodeElement.parentElement], range);diff --git a/app/src/mobile/util/touch.ts b/app/src/mobile/util/touch.tsindex 03ed0f1894..68f19f9acc 100644--- a/app/src/mobile/util/touch.ts+++ b/app/src/mobile/util/touch.ts@@ -21,7 +21,6 @@ const popSide = (render = true) => {if (render) {document.getElementById("toolbarFile").dispatchEvent(new CustomEvent("click"));} else {- hideKeyboardToolbar();activeBlur();document.getElementById("sidebar").style.transform = "translateX(0px)";}@@ -309,7 +308,6 @@ export const handleTouchMove = (event: TouchEvent) => {transformMask((windowWidth - xDiff) / windowWidth);}activeBlur();- hideKeyboardToolbar();if (window.siyuan.mobile.editor) {window.siyuan.mobile.editor.protyle.contentElement.style.overflow = "hidden";}diff --git a/app/src/protyle/wysiwyg/index.ts b/app/src/protyle/wysiwyg/index.tsindex 8ccff2fbc1..df24fbfaa8 100644--- a/app/src/protyle/wysiwyg/index.ts+++ b/app/src/protyle/wysiwyg/index.ts@@ -2168,7 +2168,6 @@ export class WYSIWYG {// https://github.com/siyuan-note/siyuan/issues/14569if (event.target.tagName === "VIDEO") {activeBlur();- hideKeyboardToolbar();return;}/// #endif@@ -2265,7 +2264,6 @@ export class WYSIWYG {}/// #if MOBILEactiveBlur();- hideKeyboardToolbar();openMobileFileById(protyle.app, refBlockId, zoomIn ? [Constants.CB_GET_ALL] : [Constants.CB_GET_HL, Constants.CB_GET_CONTEXT, Constants.CB_GET_ROOTSCROLL]);/// #elseif (event.shiftKey) {@@ -2332,7 +2330,6 @@ export class WYSIWYG {}, (response) => {checkFold(response.data.refDefs[0].refID, (zoomIn) => {activeBlur();- hideKeyboardToolbar();openMobileFileById(protyle.app, response.data.refDefs[0].refID, zoomIn ? [Constants.CB_GET_ALL] : [Constants.CB_GET_HL, Constants.CB_GET_CONTEXT, Constants.CB_GET_ROOTSCROLL]);});});@@ -2406,7 +2403,6 @@ export class WYSIWYG {checkFold(embedId, (zoomIn, action) => {/// #if MOBILEactiveBlur();- hideKeyboardToolbar();openMobileFileById(protyle.app, embedId, zoomIn ? [Constants.CB_GET_ALL] : [Constants.CB_GET_HL, Constants.CB_GET_CONTEXT, Constants.CB_GET_ROOTSCROLL]);/// #elseif (event.shiftKey) {diff --git a/app/src/types/index.d.ts b/app/src/types/index.d.tsindex d46efd65b4..146039d747 100644--- a/app/src/types/index.d.ts+++ b/app/src/types/index.d.ts@@ -208,6 +208,7 @@ interface Window {readClipboard(): stringreadHTMLClipboard(): stringgetBlockURL(): string+ hideKeyboard(): void}JSHarmony: {openExternal(url: string): void