An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:bug: https://github.com/siyuan-note/siyuan/issues/17967
Daniel44b87deccda8
diff --git a/app/src/protyle/export/util.ts b/app/src/protyle/export/util.tsindex 5f8b79f20b..80db1c2f68 100644--- a/app/src/protyle/export/util.ts+++ b/app/src/protyle/export/util.ts@@ -90,7 +90,7 @@ export const exportImage = (id: string) => {item.textContent = (index + 1).toString();});setTimeout(() => {- addScript("${Constants.PROTYLE_CDN}/js/html-to-image.min.js?v=1.11.13", "protyleHtml2image").then(async () => {+ addScript(`${Constants.PROTYLE_CDN}/js/html-to-image.min.js?v=1.11.13`, "protyleHtml2image").then(async () => {let blob = await window.htmlToImage.toBlob(exportDialog.element.querySelector(".b3-dialog__content"));if (isIPhone() || isSafari()) {await window.htmlToImage.toBlob(contentElement);@@ -138,7 +138,7 @@ export const exportImage = (id: string) => {if (window.siyuan.config.export.imageWatermarkStr.startsWith("http")) {watermarkPreviewElement.setAttribute("style", `background-image: url(${window.siyuan.config.export.imageWatermarkStr});background-repeat: repeat;position: absolute;top: 0;left: 0;width: 100%;height: 100%;border-radius: var(--b3-border-radius-b);`);} else {- addScript("${Constants.PROTYLE_CDN}/js/html-to-image.min.js?v=1.11.13", "protyleHtml2image").then(() => {+ addScript(`${Constants.PROTYLE_CDN}/js/html-to-image.min.js?v=1.11.13`, "protyleHtml2image").then(() => {const width = Math.max(exportDialog.element.querySelector(".export-img").clientWidth / 3, 150);watermarkPreviewElement.setAttribute("style", `width: ${width}px;height: ${width}px;display: flex;justify-content: center;align-items: center;color: var(--b3-border-color);font-size: 14px;`);watermarkPreviewElement.innerHTML = `<div style="transform: rotate(-45deg)">${window.siyuan.config.export.imageWatermarkStr}</div>`;diff --git a/app/src/protyle/toolbar/index.ts b/app/src/protyle/toolbar/index.tsindex 02d60cc24e..0a6dd05f85 100644--- a/app/src/protyle/toolbar/index.ts+++ b/app/src/protyle/toolbar/index.ts@@ -1061,7 +1061,7 @@ export class Toolbar {return;}setTimeout(() => {- addScript("${Constants.PROTYLE_CDN}/js/html-to-image.min.js?v=1.11.13", "protyleHtml2image").then(() => {+ addScript(`${Constants.PROTYLE_CDN}/js/html-to-image.min.js?v=1.11.13`, "protyleHtml2image").then(() => {(renderElement as HTMLHtmlElement).style.display = "inline-block";window.htmlToImage.toBlob(renderElement).then(blob => {(renderElement as HTMLHtmlElement).style.display = "";