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:
Vanessa88c666b72386
diff --git a/app/src/block/util.ts b/app/src/block/util.tsindex 9178685a9a..08043c2752 100644--- a/app/src/block/util.ts+++ b/app/src/block/util.ts@@ -63,14 +63,14 @@ export const genSBElement = (layout: string, id?: string, attrHTML?: string) =>export const jumpToParentNext = (protyle:IProtyle,nodeElement: Element) => {const topElement = getTopAloneElement(nodeElement);if (topElement) {- const topParentElement = hasClosestByClassName(topElement, "list") || hasClosestByClassName(topElement, "bq") || hasClosestByClassName(topElement, "sb") || topElement- const nextElement = getNextBlock(topParentElement)+ const topParentElement = hasClosestByClassName(topElement, "list") || hasClosestByClassName(topElement, "bq") || hasClosestByClassName(topElement, "sb") || topElement;+ const nextElement = getNextBlock(topParentElement);if (nextElement) {- focusBlock(nextElement)+ focusBlock(nextElement);scrollCenter(protyle, nextElement);}}-}+};export const insertEmptyBlock = (protyle: IProtyle, position: InsertPosition, id?: string) => {const range = getEditorRange(protyle.wysiwyg.element);diff --git a/app/src/protyle/breadcrumb/action.ts b/app/src/protyle/breadcrumb/action.tsindex 50d4475458..b05398f0ba 100644--- a/app/src/protyle/breadcrumb/action.ts+++ b/app/src/protyle/breadcrumb/action.ts@@ -36,7 +36,7 @@ export const netImg2LocalAssets = (protyle: IProtyle) => {});/// #endif});-}+};export const fullscreen = (element: Element, btnElement?: Element) => {const isFullscreen = element.className.includes("fullscreen");diff --git a/app/src/protyle/breadcrumb/index.ts b/app/src/protyle/breadcrumb/index.tsindex 64b424149a..b78582b191 100644--- a/app/src/protyle/breadcrumb/index.ts+++ b/app/src/protyle/breadcrumb/index.ts@@ -219,7 +219,7 @@ export class Breadcrumb {icon: "iconTransform",accelerator: window.siyuan.config.keymap.editor.general.netImg2LocalAsset.custom,click () {- netImg2LocalAssets(protyle)+ netImg2LocalAssets(protyle);}}).element);window.siyuan.menus.menu.append(new MenuItem({diff --git a/app/src/protyle/gutter/index.ts b/app/src/protyle/gutter/index.tsindex a6d4af8a96..34d1cdb409 100644--- a/app/src/protyle/gutter/index.ts+++ b/app/src/protyle/gutter/index.ts@@ -1099,7 +1099,7 @@ export class Gutter {accelerator: window.siyuan.config.keymap.editor.general.jumpToParentNext.custom,click() {nodeElement.classList.remove("protyle-wysiwyg--select");- jumpToParentNext(protyle, nodeElement)+ jumpToParentNext(protyle, nodeElement);}}).element);window.siyuan.menus.menu.append(new MenuItem({type: "separator"}).element);diff --git a/app/src/protyle/wysiwyg/commonHotkey.ts b/app/src/protyle/wysiwyg/commonHotkey.tsindex 38a086be9c..69fdc168cc 100644--- a/app/src/protyle/wysiwyg/commonHotkey.ts+++ b/app/src/protyle/wysiwyg/commonHotkey.ts@@ -43,7 +43,7 @@ export const commonHotkey = (protyle: IProtyle, event: KeyboardEvent) => {return true;}if (matchHotKey(window.siyuan.config.keymap.editor.general.netImg2LocalAsset.custom, event)) {- netImg2LocalAssets(protyle)+ netImg2LocalAssets(protyle);event.preventDefault();event.stopPropagation();return;diff --git a/app/src/protyle/wysiwyg/index.ts b/app/src/protyle/wysiwyg/index.tsindex 99fce3299d..bd01bb40b9 100644--- a/app/src/protyle/wysiwyg/index.ts+++ b/app/src/protyle/wysiwyg/index.ts@@ -226,7 +226,7 @@ export class WYSIWYG {} else {const tempElement = document.createElement("div");// https://github.com/siyuan-note/siyuan/issues/5540- const selectTypes = protyle.toolbar.getCurrentType(range)+ const selectTypes = protyle.toolbar.getCurrentType(range);if ((selectTypes.length === 1 || range.startContainer.parentElement.parentElement.getAttribute("data-type") === "NodeHeading") &&((range.startContainer.nodeType === 3 && range.startContainer.parentElement.textContent === range.toString()) ||diff --git a/app/src/protyle/wysiwyg/keydown.ts b/app/src/protyle/wysiwyg/keydown.tsindex e21e26e8a1..909a775cc7 100644--- a/app/src/protyle/wysiwyg/keydown.ts+++ b/app/src/protyle/wysiwyg/keydown.ts@@ -1190,7 +1190,7 @@ export const keydown = (protyle: IProtyle, editorElement: HTMLElement) => {return true;}if (matchHotKey(window.siyuan.config.keymap.editor.general.jumpToParentNext.custom, event)) {- jumpToParentNext(protyle, nodeElement)+ jumpToParentNext(protyle, nodeElement);event.preventDefault();event.stopPropagation();return true;diff --git a/app/src/protyle/wysiwyg/transaction.ts b/app/src/protyle/wysiwyg/transaction.tsindex 3c0bff3b50..c21ea1a5dd 100644--- a/app/src/protyle/wysiwyg/transaction.ts+++ b/app/src/protyle/wysiwyg/transaction.ts@@ -381,7 +381,7 @@ export const onTransaction = (protyle: IProtyle, operation: IOperation, focus: bif (operation.previousID) {let beforeElement: Element;Array.from(protyle.wysiwyg.element.querySelectorAll(`[data-node-id="${operation.previousID}"]`)).find(item => {- const embedElement = hasClosestByAttribute(item.parentElement, "data-type", "NodeBlockQueryEmbed")+ const embedElement = hasClosestByAttribute(item.parentElement, "data-type", "NodeBlockQueryEmbed");if (embedElement) {// https://github.com/siyuan-note/siyuan/issues/5524embedElement.removeAttribute("data-render");