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:
Vanessa17a619a55b4a
diff --git a/app/src/block/util.ts b/app/src/block/util.tsindex 3f0a6ff0e0..ec34570a62 100644--- a/app/src/block/util.ts+++ b/app/src/block/util.ts@@ -86,7 +86,7 @@ export const jumpToParent = (protyle: IProtyle, nodeElement: Element, type: "parapp: protyle.app,id: targetId,action: [Constants.CB_GET_FOCUS, targetId !== protyle.block.rootID && protyle.block.showAll ? Constants.CB_GET_ALL : ""]- })+ });/// #elseopenMobileFileById(protyle.app, targetId, [Constants.CB_GET_FOCUS, targetId !== protyle.block.rootID && protyle.block.showAll ? Constants.CB_GET_ALL : ""]);/// #endifdiff --git a/app/src/boot/globalEvent/commandPanel.ts b/app/src/boot/globalEvent/commandPanel.tsindex 354f1a5ca2..aa8d283adc 100644--- a/app/src/boot/globalEvent/commandPanel.ts+++ b/app/src/boot/globalEvent/commandPanel.ts@@ -37,7 +37,7 @@ export const commandPanel = (app: App) => {dialog.element.setAttribute("data-key", Constants.DIALOG_COMMANDPANEL);const listElement = dialog.element.querySelector("#commands");/// #if !MOBILE- let html = ""+ let html = "";Object.keys(window.siyuan.config.keymap.general).forEach((key) => {if (["addToDatabase"].includes(key)) {html += `<li class="b3-list-item" data-command="${key}">diff --git a/app/src/menus/util.ts b/app/src/menus/util.tsindex d50bc79285..aaad5ec200 100644--- a/app/src/menus/util.ts+++ b/app/src/menus/util.ts@@ -57,7 +57,7 @@ export const openEditorTab = (app: App, ids: string[], notebookId?: string, pathzoomIn});});- })+ });}}}, {@@ -83,7 +83,7 @@ export const openEditorTab = (app: App, ids: string[], notebookId?: string, pathzoomIn});});- })+ });}}}];diff --git a/app/src/protyle/render/av/addToDatabase.ts b/app/src/protyle/render/av/addToDatabase.tsindex 9bbbde54e9..aa03a838e1 100644--- a/app/src/protyle/render/av/addToDatabase.ts+++ b/app/src/protyle/render/av/addToDatabase.ts@@ -31,7 +31,7 @@ export const addFilesToDatabase = (fileLiElements: Element[]) => {}]);});}-}+};export const addEditorToDatabase = (protyle: IProtyle, range: Range, type?: string) => {if (protyle.title?.editElement.contains(range.startContainer) || type === "title") {@@ -100,4 +100,4 @@ export const addEditorToDatabase = (protyle: IProtyle, range: Range, type?: strifocusByRange(range);});}-}+};diff --git a/app/src/protyle/render/highlightRender.ts b/app/src/protyle/render/highlightRender.tsindex 10db9448f2..7105d9ec34 100644--- a/app/src/protyle/render/highlightRender.ts+++ b/app/src/protyle/render/highlightRender.ts@@ -2,7 +2,6 @@ import {addScript} from "../util/addScript";import {Constants} from "../../constants";import {focusByOffset} from "../util/selection";import {setCodeTheme} from "../../util/assets";-import {hasClosestByClassName} from "../util/hasClosest";export const highlightRender = (element: Element, cdn = Constants.PROTYLE_CDN) => {let codeElements: NodeListOf<Element>;diff --git a/app/src/protyle/wysiwyg/remove.ts b/app/src/protyle/wysiwyg/remove.tsindex 26e5301850..5f1df1c27c 100644--- a/app/src/protyle/wysiwyg/remove.ts+++ b/app/src/protyle/wysiwyg/remove.ts@@ -171,7 +171,7 @@ export const removeBlock = (protyle: IProtyle, blockElement: Element, range: RanhideElements(["util"], protyle);return;}- const blockType = blockElement.getAttribute("data-type")+ const blockType = blockElement.getAttribute("data-type");// 空代码块直接删除if (blockType === "NodeCodeBlock" && getContenteditableElement(blockElement).textContent.trim() === "") {blockElement.classList.add("protyle-wysiwyg--select");