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:
Vanessa2be531a0cca9
diff --git a/app/src/config/about.ts b/app/src/config/about.tsindex de626d1b9c..3f61a9fde9 100644--- a/app/src/config/about.ts+++ b/app/src/config/about.ts@@ -350,7 +350,7 @@ export const about = {const downloadInstallPkgElement = about.element.querySelector("#downloadInstallPkg") as HTMLInputElement;downloadInstallPkgElement.addEventListener("change", () => {fetchPost("/api/system/setDownloadInstallPkg", {downloadInstallPkg: downloadInstallPkgElement.checked}, () => {- window.siyuan.config.system.downloadInstallPkg = downloadInstallPkgElement.checked+ window.siyuan.config.system.downloadInstallPkg = downloadInstallPkgElement.checked;});});about.element.querySelector("#aboutConfim").addEventListener("click", () => {diff --git a/app/src/dialog/processSystem.ts b/app/src/dialog/processSystem.tsindex 5c6d0467d1..718c03266f 100644--- a/app/src/dialog/processSystem.ts+++ b/app/src/dialog/processSystem.ts@@ -122,7 +122,7 @@ export const exitSiYuan = () => {ipcRenderer.send(Constants.SIYUAN_QUIT);/// #endif});- })+ });} else { // 正常退出/// #if !BROWSERipcRenderer.send(Constants.SIYUAN_CONFIG_CLOSETRAY);diff --git a/app/src/protyle/export/index.ts b/app/src/protyle/export/index.tsindex 8d9f78b022..9a9046edd2 100644--- a/app/src/protyle/export/index.ts+++ b/app/src/protyle/export/index.ts@@ -82,8 +82,8 @@ const renderPDF = (id: string) => {show: true,width: 1032,resizable: false,- frame: 'darwin' === window.siyuan.config.system.os,- titleBarStyle: 'hidden',+ frame: "darwin" === window.siyuan.config.system.os,+ titleBarStyle: "hidden",webPreferences: {contextIsolation: false,nodeIntegration: true,@@ -142,20 +142,20 @@ const renderPDF = (id: string) => {}});});- destroyWin(win)+ destroyWin(win);}).catch((error: string) => {showMessage("Export PDF error:" + error, 0, "error", msgId);- destroyWin(win)+ destroyWin(win);});} catch (e) {showMessage("Export PDF error:" + e + ". Export HTML and use Chrome's printing function to convert to PDF", 0, "error", msgId);- destroyWin(win)+ destroyWin(win);}} else {- destroyWin(win)+ destroyWin(win);}- })- })+ });+ });fetchPost("/api/export/exportPreviewHTML", {id,}, response => {@@ -386,8 +386,8 @@ const renderPDF = (id: string) => {});</script></body></html>`;win.loadURL("data:text/html;charset=UTF-8," + encodeURIComponent(html));- })-}+ });+};const getExportPath = (option: { type: string, id: string }, removeAssets?: boolean) => {fetchPost("/api/block/getBlockInfo", {