An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:rotating_light:
Vanessa085b4a5ec411
diff --git a/app/src/dialog/processSystem.ts b/app/src/dialog/processSystem.tsindex f1536b86fd..e3a9b0634a 100644--- a/app/src/dialog/processSystem.ts+++ b/app/src/dialog/processSystem.ts@@ -180,12 +180,12 @@ export const progressStatus = (data: IWebSocketData) => {statusElement.innerHTML = data.msg;statusElement.classList.remove("status--hide");if (document.querySelector("keyboardToolbar").classList.contains("fn__none")) {- statusElement.style.bottom = "0"+ statusElement.style.bottom = "0";} else {- statusElement.style.bottom = "30px"+ statusElement.style.bottom = "30px";}progressStatusTimeoutId = window.setTimeout(() => {- statusElement.style.bottom = ""+ statusElement.style.bottom = "";}, 6000);return;}diff --git a/app/src/mobile/util/showKeyboardToolbar.ts b/app/src/mobile/util/showKeyboardToolbar.tsindex aca6f89f3c..0e2af79c0c 100644--- a/app/src/mobile/util/showKeyboardToolbar.ts+++ b/app/src/mobile/util/showKeyboardToolbar.ts@@ -6,34 +6,34 @@ export const showKeyboardToolbar = (bottom = 0) => {const toolbarElement = document.getElementById("keyboardToolbar");toolbarElement.classList.remove("fn__none");toolbarElement.style.bottom = bottom + "px";-}+};export const hideKeyboardToolbar = () => {const toolbarElement = document.getElementById("keyboardToolbar");toolbarElement.classList.add("fn__none");-}+};export const initKeyboardToolbar = () => {const toolbarElement = document.getElementById("keyboardToolbar");toolbarElement.addEventListener(getEventName(), (event) => {- const target = event.target as HTMLElement- const buttonElement = hasClosestByMatchTag(target, "BUTTON")+ const target = event.target as HTMLElement;+ const buttonElement = hasClosestByMatchTag(target, "BUTTON");if (!buttonElement || !window.siyuan.mobileEditor) {return;}const type = buttonElement.getAttribute("data-type");- const protyle = window.siyuan.mobileEditor.protyle+ const protyle = window.siyuan.mobileEditor.protyle;if (type === "undo") {- protyle.undo.undo(protyle)+ protyle.undo.undo(protyle);return;}if (type === "redo") {- protyle.undo.redo(protyle)+ protyle.undo.redo(protyle);return;}- let range: Range+ let range: Range;if (getSelection().rangeCount > 0) {- range = getSelection().getRangeAt(0)+ range = getSelection().getRangeAt(0);}if (!range) {return;@@ -50,5 +50,5 @@ export const initKeyboardToolbar = () => {} else if (type === "indent") {listIndent(protyle, [nodeElement.parentElement], range);}- })-}+ });+};