An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
Merge remote-tracking branch 'origin/dev' into dev
Vanessaa00e47a9b7c2
diff --cc app/src/protyle/toolbar/index.tsindex a91dbf8e71,7c8ef8ccb9..0ad5f4fc4c--- a/app/src/protyle/toolbar/index.ts+++ b/app/src/protyle/toolbar/index.ts@@@ -1467,33 -1468,13 +1467,33 @@@ export class Toolbar</span></div>`;});listElement.innerHTML = searchHTML || `<li class="b3-list--empty">${window.siyuan.languages.emptyContent}</li>`;- const currentPath = response.data.templates[0]?.path;- if (previewPath === currentPath) {++ if (!previewPath) {- previewPath = response.data.blocks[0]?.path;++ previewPath = response.data.templates[0]?.path;+ /// #if !MOBILE+ const rangePosition = getSelectionPosition(nodeElement, range);+ setPosition(this.subElement, rangePosition.left, rangePosition.top + 18, Constants.SIZE_TOOLBAR_HEIGHT);+ (this.subElement.firstElementChild as HTMLElement).style.maxHeight = Math.min(window.innerHeight * 0.8, window.innerHeight - this.subElement.getBoundingClientRect().top) - 16 + "px";+ /// #else+ setPosition(this.subElement, 0, 0);+ /// #endif+ } else if (response.data.blocks[0]?.path === previewPath) {return;+ } else {+ previewPath = response.data.blocks[0]?.path;}- previewPath = currentPath;previewTemplate(previewPath, previewElement, protyle.block.parentID);});+ };+ inputElement.addEventListener("compositionend", () => {+ genList();+ });+ inputElement.addEventListener("input", (event: KeyboardEvent) => {+ event.stopPropagation();+ if (event.isComposing) {+ return;+ }+ genList();});this.subElement.lastElementChild.addEventListener("click", (event) => {const target = event.target as HTMLElement;