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/18099
Vanessa779948c8b904
diff --git a/app/src/layout/dock/Outline.ts b/app/src/layout/dock/Outline.tsindex 07b3e17400..e1507355ee 100644--- a/app/src/layout/dock/Outline.ts+++ b/app/src/layout/dock/Outline.ts@@ -115,8 +115,15 @@ export class Outline extends Model {this.tree = new Tree({element: this.element,data: null,- click: (element: HTMLElement) => {+ click: (element: HTMLElement, event?: MouseEvent) => {window.siyuan.menus.menu.remove();+ if (event) {+ const actionElement = hasClosestByClassName(event.target as HTMLElement, "b3-list-item__action");+ if (actionElement) {+ this.showContextMenu(element, event);+ return;+ }+ }const id = element.getAttribute("data-node-id");if (this.isPreview) {const headElement = document.getElementById(id);@@ -188,7 +195,9 @@ export class Outline extends Model {}}this.saveExpendIds();- }+ },+ blockExtHTML: window.siyuan.config.readonly ? undefined : '<span class="b3-list-item__action"><svg><use xlink:href="#iconMore"></use></svg></span>',+ topExtHTML: window.siyuan.config.readonly ? undefined : '<span class="b3-list-item__action"><svg><use xlink:href="#iconMore"></use></svg></span>',});// 为了快捷键的 dispatchoptions.tab.panelElement.querySelector('[data-type="collapse"]').addEventListener("click", () => {