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/7943
Vanessa5ec9d9dc36b9
diff --git a/app/src/card/openCard.ts b/app/src/card/openCard.tsindex 075a583432..1fdc7ea8fb 100644--- a/app/src/card/openCard.ts+++ b/app/src/card/openCard.ts@@ -107,7 +107,9 @@ export const openCardByData = (cardsData: { cards: ICard[], unreviewedCount: numdestroyCallback() {if (editor) {editor.destroy();- window.siyuan.mobile.popEditor = null;+ if (window.siyuan.mobile) {+ window.siyuan.mobile.popEditor = null;+ }}}});@@ -124,7 +126,9 @@ export const openCardByData = (cardsData: { cards: ICard[], unreviewedCount: num},typewriterMode: false});- window.siyuan.mobile.popEditor = editor;+ if (window.siyuan.mobile) {+ window.siyuan.mobile.popEditor = editor;+ }if (window.siyuan.config.editor.readOnly) {disabledProtyle(editor.protyle);}@@ -365,7 +369,9 @@ const newRound = (countElement: Element, editor: Protyle, actionElements: NodeLicountElement.classList.add("fn__none");editor.protyle.element.classList.add("fn__none");const emptyElement = editor.protyle.element.nextElementSibling;- emptyElement.innerHTML = `<div>♻️ ${window.siyuan.languages.continueReview2.replace("${count}", unreviewedCount)}</div>+ emptyElement.innerHTML = `<div>♻️ </div>+<span>${window.siyuan.languages.continueReview2.replace("${count}", unreviewedCount)}</span>+<div class="fn__hr"></div><button data-type="newround" class="b3-button">${window.siyuan.languages.continueReview1}</button>`;emptyElement.classList.remove("fn__none");actionElements[0].classList.add("fn__none");diff --git a/app/src/card/viewCards.ts b/app/src/card/viewCards.tsindex b30b5e6b38..97778817b4 100644--- a/app/src/card/viewCards.ts+++ b/app/src/card/viewCards.ts@@ -48,7 +48,9 @@ export const viewCards = (deckID: string, title: string, deckType: "Tree" | "" |destroyCallback() {if (edit) {edit.destroy();- window.siyuan.mobile.popEditor = null;+ if (window.siyuan.mobile) {+ window.siyuan.mobile.popEditor = null;+ }}}});@@ -62,7 +64,9 @@ export const viewCards = (deckID: string, title: string, deckType: "Tree" | "" |breadcrumbDocName: true},});- window.siyuan.mobile.popEditor = edit;+ if (window.siyuan.mobile) {+ window.siyuan.mobile.popEditor = edit;+ }if (window.siyuan.config.editor.readOnly) {disabledProtyle(edit.protyle);}