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/16484
Vanessa7b1a04b33215
diff --git a/app/src/history/history.ts b/app/src/history/history.tsindex 5e27837c23..a02cd111b7 100644--- a/app/src/history/history.ts+++ b/app/src/history/history.ts@@ -118,6 +118,12 @@ const renderRepoItem = (response: IWebSocketData, element: Element, type: string${window.siyuan.languages.download}</span><span class="fn__flex-1"></span>+<span class="b3-list-item__action" data-type="downloadRollback">+ <svg><use xlink:href="#iconUndo"></use></svg>+ <span class="fn__space"></span>+ ${window.siyuan.languages.downloadRollback}+</span>+<span class="fn__flex-1"></span><span class="b3-list-item__action" data-type="removeCloudRepoTagSnapshot"><svg><use xlink:href="#iconTrashcan"></use></svg><span class="fn__space"></span>@@ -131,6 +137,12 @@ const renderRepoItem = (response: IWebSocketData, element: Element, type: string<span class="fn__space"></span>${window.siyuan.languages.download}</span>+<span class="fn__flex-1"></span>+<span class="b3-list-item__action" data-type="downloadRollback">+ <svg><use xlink:href="#iconUndo"></use></svg>+ <span class="fn__space"></span>+ ${window.siyuan.languages.downloadRollback}+</span><span class="fn__flex-1"></span>`;} else if (type === "getRepoTagSnapshots") {actionHTML = `<span class="fn__flex-1"></span>@@ -226,7 +238,7 @@ ${statHTML}`;repoHTML += `<li class="b3-list-item" data-type="repoitem" data-id="${item.id}" data-tag="${item.tag}"><div class="fn__flex-1">${infoHTML}- <div class="fn__flex" style="height: 26px" data-id="${item.id}" data-tag="${item.tag}">+ <div class="fn__flex" style="height: 26px" data-type="repoitem"" data-id="${item.id}" data-tag="${item.tag}">${actionHTML}<span class="b3-list-item__action" data-type="more"><svg><use xlink:href="#iconMore"></use></svg>@@ -549,7 +561,7 @@ const bindEvent = (app: App, element: Element, dialog?: Dialog) => {time = target.parentElement.parentElement.previousElementSibling.textContent.trim();} else if (dataType === "repoitem") {name = window.siyuan.languages.workspaceData;- time = target.parentElement.querySelector("span[data-type='hCreated']").textContent.trim();+ time = (isMobile() ? target.parentElement.parentElement : target.parentElement).querySelector("span[data-type='hCreated']").textContent.trim();}const confirmTip = window.siyuan.languages.rollbackConfirm.replace("${name}", name).replace("${time}", time);@@ -790,8 +802,8 @@ const bindEvent = (app: App, element: Element, dialog?: Dialog) => {event.preventDefault();break;} else if (type === "downloadRollback" && !window.siyuan.config.readonly) {- confirmDialog("⚠️ " + window.siyuan.languages.rollback, window.siyuan.languages.rollbackConfirm.replace("${name}", window.siyuan.languages.workspaceData)- .replace("${time}", target.parentElement.querySelector("span[data-type='hCreated']").textContent.trim()), () => {+ confirmDialog("⚠️ " + window.siyuan.languages.downloadRollback, window.siyuan.languages.rollbackConfirm.replace("${name}", window.siyuan.languages.workspaceData)+ .replace("${time}", (isMobile() ? target.parentElement.parentElement : target.parentElement).querySelector("span[data-type='hCreated']").textContent.trim()), () => {const repoId = target.parentElement.getAttribute("data-id");fetchPost("/api/repo/downloadCloudSnapshot", {tag: target.parentElement.getAttribute("data-tag"),