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: fix https://github.com/siyuan-note/siyuan/issues/10676
Vanessa5937c14e2f4c
diff --git a/app/src/config/image.ts b/app/src/config/image.tsindex b503e2ee5e..33b94b7f1f 100644--- a/app/src/config/image.ts+++ b/app/src/config/image.ts@@ -89,7 +89,7 @@ export const image = {event.stopPropagation();break;} else if (type === "copy") {- writeText(target.parentElement.querySelector(".b3-list-item__text").textContent.trim());+ writeText(target.parentElement.querySelector(".b3-list-item__text").textContent.trim().replace("assets/", ""));} else if (type === "open") {/// #if !BROWSERopenBy(target.parentElement.getAttribute("data-path"), "folder");@@ -138,18 +138,14 @@ export const image = {let html = "";let boxOpenHTML = "";if (!isBrowser() && action) {- boxOpenHTML = `<span data-type="open" class="b3-tooltips b3-tooltips__w b3-list-item__action" aria-label="${window.siyuan.languages.showInFolder}">+ boxOpenHTML = `<span data-type="open" class="ariaLabel b3-list-item__action" aria-label="${window.siyuan.languages.showInFolder}"><svg><use xlink:href="#iconFolder"></use></svg></span>`;}let boxClearHTML = "";if (action) {- boxClearHTML = `<span data-type="clear" class="b3-tooltips b3-tooltips__w b3-list-item__action" aria-label="${window.siyuan.languages.delete}">+ boxClearHTML = `<span data-type="clear" class="ariaLabel b3-list-item__action" aria-label="${window.siyuan.languages.delete}"><svg><use xlink:href="#iconTrashcan"></use></svg>-</span>`;- } else {- boxClearHTML = `<span data-type="copy" class="b3-tooltips b3-tooltips__w b3-list-item__action" aria-label="${window.siyuan.languages.copy}">- <svg><use xlink:href="#iconCopy"></use></svg></span>`;}data.forEach((item) => {@@ -157,6 +153,9 @@ export const image = {const dataPath = item.substr(idx);html += `<li data-path="${dataPath}" class="b3-list-item b3-list-item--hide-action"><span class="b3-list-item__text">${escapeHtml(item)}</span>+ <span data-type="copy" class="ariaLabel b3-list-item__action" aria-label="${window.siyuan.languages.copy}">+ <svg><use xlink:href="#iconCopy"></use></svg>+ </span>${boxOpenHTML}${boxClearHTML}</li>`;