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:
Vanessa5b30b60bf7a3
diff --git a/app/src/asset/index.ts b/app/src/asset/index.tsindex 80cfcce174..e352442f20 100644--- a/app/src/asset/index.ts+++ b/app/src/asset/index.ts@@ -467,14 +467,14 @@ export class Asset extends Model {const observer = new MutationObserver(() => {this.pdfObject = webViewerLoad(this.path.startsWith("file") ? this.path : document.getElementById("baseURL").getAttribute("href") + "/" + this.path,this.element, this.pdfPage, this.pdfId);- this.element.setAttribute("data-loading", "true")+ this.element.setAttribute("data-loading", "true");observer.disconnect();});observer.observe(this.element, {attributeFilter: ["class"]});} else {this.pdfObject = webViewerLoad(this.path.startsWith("file") ? this.path : document.getElementById("baseURL").getAttribute("href") + "/" + this.path,this.element, this.pdfPage, this.pdfId);- this.element.setAttribute("data-loading", "true")+ this.element.setAttribute("data-loading", "true");}}, Constants.TIMEOUT_BLOCKLOAD);/// #endifdiff --git a/app/src/card/viewCards.ts b/app/src/card/viewCards.tsindex 527506f059..658854e66e 100644--- a/app/src/card/viewCards.ts+++ b/app/src/card/viewCards.ts@@ -132,7 +132,7 @@ export const viewCards = (deckID: string, title: string, cb:(response:IWebSocketif (!nextElment) {getArticle(edit, "");- listElement.innerHTML = `<div class="b3-list--empty">${window.siyuan.languages.emptyContent}</div>`+ listElement.innerHTML = `<div class="b3-list--empty">${window.siyuan.languages.emptyContent}</div>`;} else {getArticle(edit, nextElment.getAttribute("data-id"));listElement.querySelector(".b3-list-item--focus")?.classList.remove("b3-list-item--focus");diff --git a/app/src/layout/util.ts b/app/src/layout/util.tsindex 91a31955b8..ca9fa11bb5 100644--- a/app/src/layout/util.ts+++ b/app/src/layout/util.ts@@ -581,12 +581,12 @@ export const copyTab = (tab: Tab) => {};export const pdfIsLoading = (element: HTMLElement) => {- const isLoading = element.querySelector('.layout-tab-container > [data-loading="true"]') ? true : false+ const isLoading = element.querySelector('.layout-tab-container > [data-loading="true"]') ? true : false;if (isLoading) {showMessage(window.siyuan.languages.pdfIsLoading);}return isLoading;-}+};export const getInstanceById = (id: string, layout = window.siyuan.layout.centerLayout) => {const _getInstanceById = (item: Layout | Wnd, id: string) => {diff --git a/app/src/protyle/header/Title.ts b/app/src/protyle/header/Title.tsindex ca4084d562..31751ecb01 100644--- a/app/src/protyle/header/Title.ts+++ b/app/src/protyle/header/Title.ts@@ -409,8 +409,8 @@ ${window.siyuan.languages.createdAt} ${dayjs(response.data.ial.id.substr(0, 14))return false;}this.element.setAttribute("data-node-id", protyle.block.rootID);- if (response.data.ial['custom-riff-decks']) {- this.element.setAttribute("custom-riff-decks", response.data.ial['custom-riff-decks']);+ if (response.data.ial["custom-riff-decks"]) {+ this.element.setAttribute("custom-riff-decks", response.data.ial["custom-riff-decks"]);}protyle.background.render(response.data.ial, protyle.block.rootID);protyle.wysiwyg.renderCustom(response.data.ial);diff --git a/app/src/protyle/wysiwyg/transaction.ts b/app/src/protyle/wysiwyg/transaction.tsindex db03e5a164..208fec0c37 100644--- a/app/src/protyle/wysiwyg/transaction.ts+++ b/app/src/protyle/wysiwyg/transaction.ts@@ -448,8 +448,8 @@ export const onTransaction = (protyle: IProtyle, operation: IOperation, focus: bif (refElement) {nodeAttrHTML += refElement.outerHTML;}- if (data.new['custom-riff-decks']) {- protyle.title.element.setAttribute("custom-riff-decks", data.new['custom-riff-decks']);+ if (data.new["custom-riff-decks"]) {+ protyle.title.element.setAttribute("custom-riff-decks", data.new["custom-riff-decks"]);} else {protyle.title.element.removeAttribute("custom-riff-decks");}