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:
Vanessaeb0a3fc4e832
diff --git a/app/src/menus/navigation.ts b/app/src/menus/navigation.tsindex 2d182146cb..ff700a21a3 100644--- a/app/src/menus/navigation.ts+++ b/app/src/menus/navigation.ts@@ -722,7 +722,7 @@ export const genImportMenu = (notebookId: string, pathString: string) => {files = (getDockByType("file").data["file"] as Files);/// #endifconst liElement = files.element.querySelector(`[data-path="${pathString}"]`);- liElement.querySelector(".b3-list-item__toggle").classList.remove("fn__hidden")+ liElement.querySelector(".b3-list-item__toggle").classList.remove("fn__hidden");files.getLeaf(liElement, notebookId, true);window.siyuan.menus.menu.remove();};diff --git a/app/src/protyle/header/Title.ts b/app/src/protyle/header/Title.tsindex 52b08a8f9c..ec887df767 100644--- a/app/src/protyle/header/Title.ts+++ b/app/src/protyle/header/Title.ts@@ -68,7 +68,7 @@ export class Title {}if (this.editElement.textContent === "") {this.editElement.querySelectorAll("br").forEach(item => {- item.remove()+ item.remove();});}this.rename(protyle);diff --git a/app/src/protyle/util/compatibility.ts b/app/src/protyle/util/compatibility.tsindex fb3d98ad89..35bc97ba38 100644--- a/app/src/protyle/util/compatibility.ts+++ b/app/src/protyle/util/compatibility.ts@@ -40,7 +40,7 @@ export const readText = () => {};export const readClipboard = async () => {- const text: { textPlain?: string, textHTML?: string } = {}+ const text: { textPlain?: string, textHTML?: string } = {};if (isInAndroid()) {text.textPlain = window.JSAndroid.readClipboard();} else if (isInHarmony()) {@@ -58,7 +58,7 @@ export const readClipboard = async () => {}}return text;-}+};export const writeText = (text: string) => {let range: Range;diff --git a/app/src/protyle/util/paste.ts b/app/src/protyle/util/paste.tsindex e68b8ae49a..c976e557b1 100644--- a/app/src/protyle/util/paste.ts+++ b/app/src/protyle/util/paste.ts@@ -279,8 +279,8 @@ export const paste = async (protyle: IProtyle, event: (ClipboardEvent | DragEvenfiles = event.dataTransfer.items;}} else {- textHTML = event.textHTML- textPlain = event.textPlain+ textHTML = event.textHTML;+ textPlain = event.textPlain;}// Improve the pasting of selected text in PDF rectangular annotation https://github.com/siyuan-note/siyuan/issues/11629