An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:sparkles: https://github.com/siyuan-note/siyuan/issues/5173
Vanessab5c3a0b9c8c2
diff --git a/app/src/util/history.ts b/app/src/util/history.tsindex 53d19dc1c9..3de0a28990 100644--- a/app/src/util/history.ts+++ b/app/src/util/history.ts@@ -112,29 +112,10 @@ const renderRepo = (element: HTMLElement) => {return;}let repoHTML = "";- response.data.logs.forEach((item: { files: { path: string, id: string }[], id: string, hCreated: string }, index: number) => {- repoHTML += `<li class="b3-list-item" style="padding-left: 0" data-type="toggle">- <span style="padding-left: 8px" class="b3-list-item__toggle"><svg class="b3-list-item__arrow${index === 0 ? " b3-list-item__arrow--open" : ""}${item.files.length > 0 ? "" : " fn__hidden"}"><use xlink:href="#iconRight"></use></svg></span>+ response.data.logs.forEach((item: { files: { path: string, id: string }[], id: string, hCreated: string }) => {+ repoHTML += `<li class="b3-list-item" style="padding-left: 0"><span class="b3-list-item__text">${item.hCreated}</span></li>`;- if (item.files.length > 0) {- repoHTML += `<ul class="${index === 0 ? "" : "fn__none"}">`;- item.files.forEach((docItem) => {- repoHTML += `<li data-type="notebook" data-path="${docItem.path}" class="b3-list-item b3-list-item--hide-action" style="padding-left: 32px">- <span class="b3-list-item__text">${getDisplayName(docItem.path)}</span>- <span class="fn__space"></span>- <span class="b3-list-item__action b3-tooltips b3-tooltips__w" aria-label="${window.siyuan.languages.rollback}"><svg><use xlink:href="#iconUndo"></use></svg></span>-</li>`;- });- repoHTML += "</ul>";- }- if (index === 0) {- // fetchPost("/api/history/getDocHistoryContent", {- // historyPath: item.items[0].path- // }, (response) => {- // element.lastElementChild.innerHTML = response.data.content;- // });- }});element.lastElementChild.firstElementChild.innerHTML = `${repoHTML}`;});