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: Manually optimize the data index to reduce space usage and improve performance https://github.com/siyuan-note/siyuan/issues/15663
Daniel1f3c3a53b4cf
diff --git a/app/src/config/about.ts b/app/src/config/about.tsindex c9ab2aa173..99a26df459 100644--- a/app/src/config/about.ts+++ b/app/src/config/about.ts@@ -254,6 +254,12 @@ ${checkUpdateHTML}about.element.querySelector("#tokenTip").innerHTML = window.siyuan.languages.about14.replace("${token}", window.siyuan.config.api.token);});});+ about.element.querySelector("#vacuumDataIndex").addEventListener("click", () => {+ fetchPost("/api/system/vacuumDataIndex", {}, (response) => {});+ });+ about.element.querySelector("#rebuildDataIndex").addEventListener("click", () => {+ fetchPost("/api/system/rebuildDataIndex", {}, (response) => {});+ });about.element.querySelector("#exportLog").addEventListener("click", () => {fetchPost("/api/system/exportLog", {}, (response) => {openByMobile(response.data.zip);diff --git a/app/src/mobile/settings/about.ts b/app/src/mobile/settings/about.tsindex 46f445b93d..592a34ca8b 100644--- a/app/src/mobile/settings/about.ts+++ b/app/src/mobile/settings/about.ts@@ -299,6 +299,16 @@ export const initAbout = () => {event.preventDefault();event.stopPropagation();break;+ } else if (target.id === "vacuumDataIndex") {+ fetchPost("/api/system/vacuumDataIndex", {}, (response) => {});+ event.preventDefault();+ event.stopPropagation();+ break;+ } else if (target.id === "exportLog") {+ fetchPost("/api/system/rebuildDataIndex", {}, (response) => {});+ event.preventDefault();+ event.stopPropagation();+ break;} else if (target.id === "exportLog") {fetchPost("/api/system/exportLog", {}, (response) => {openByMobile(response.data.zip);