An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:rotating_light:
Vanessa104730527499
diff --git a/app/src/protyle/util/onGet.ts b/app/src/protyle/util/onGet.tsindex 49cf08ce7b..03f2b3f285 100644--- a/app/src/protyle/util/onGet.ts+++ b/app/src/protyle/util/onGet.ts@@ -99,7 +99,7 @@ const setHTML = (options: { content: string, action?: string[] }, protyle: IProtreturn;}protyle.block.showAll = options.action.includes(Constants.CB_GET_ALL);- const REMOVED_OVER_HEIGHT = protyle.contentElement.clientHeight * 8+ const REMOVED_OVER_HEIGHT = protyle.contentElement.clientHeight * 8;if (options.action.includes(Constants.CB_GET_APPEND)) {// 动态加载移除if (protyle.contentElement.scrollHeight > REMOVED_OVER_HEIGHT) {diff --git a/app/src/search/index.ts b/app/src/search/index.tsindex 7912fd2375..4c038df9fd 100644--- a/app/src/search/index.ts+++ b/app/src/search/index.ts@@ -77,7 +77,7 @@ export class Search extends Model {searchPanelElement.scrollTop > currentList.offsetTop) {searchPanelElement.scrollTop = currentList.offsetTop - searchPanelElement.clientHeight + lineHeight;}- this.getArticle(currentList.getAttribute("data-node-id"), inputElement.value)+ this.getArticle(currentList.getAttribute("data-node-id"), inputElement.value);event.preventDefault();} else if (event.key === "ArrowUp") {currentList.classList.remove("b3-list-item--focus");diff --git a/app/src/util/onGetConfig.ts b/app/src/util/onGetConfig.tsindex 728713fd32..93e0ed2432 100644--- a/app/src/util/onGetConfig.ts+++ b/app/src/util/onGetConfig.ts@@ -158,9 +158,9 @@ export const onGetConfig = () => {const initStatus = () => {const allDocks = getAllDocks();- let menuHTML = ''+ let menuHTML = "";allDocks.forEach(item => {- menuHTML += `<button class="b3-menu__item" data-type="${item.type}"><svg class="b3-menu__icon""><use xlink:href="#${item.icon}"></use></svg><span class="b3-menu__label">${window.siyuan.languages[item.hotkeyLangId]}</span><span class="b3-menu__accelerator">${window.siyuan.config.keymap.general[item.hotkeyLangId].custom}</span></button>`+ menuHTML += `<button class="b3-menu__item" data-type="${item.type}"><svg class="b3-menu__icon""><use xlink:href="#${item.icon}"></use></svg><span class="b3-menu__label">${window.siyuan.languages[item.hotkeyLangId]}</span><span class="b3-menu__accelerator">${window.siyuan.config.keymap.general[item.hotkeyLangId].custom}</span></button>`;});document.getElementById("status").innerHTML = `<div id="barDock" class="toolbar__item b3-tooltips b3-tooltips__e${window.siyuan.config.readonly ? " fn__none" : ""}" aria-label="${window.siyuan.config.uiLayout.hideDock ? window.siyuan.languages.showDock : window.siyuan.languages.hideDock}"><svg>@@ -183,12 +183,12 @@ const initStatus = () => {</div><div id="barHelp" class="toolbar__item b3-tooltips b3-tooltips__nw" aria-label="${window.siyuan.languages.help}"><svg><use xlink:href="#iconHelp"></use></svg>-</div>`+</div>`;document.querySelector("#status").addEventListener("click", (event) => {- let target = event.target as HTMLElement+ let target = event.target as HTMLElement;while (target.id !== "status") {- if (target.id === 'barDock') {- const useElement = target.firstElementChild.firstElementChild+ if (target.id === "barDock") {+ const useElement = target.firstElementChild.firstElementChild;const dockIsShow = useElement.getAttribute("xlink:href") === "#iconHideDock";if (dockIsShow) {useElement.setAttribute("xlink:href", "#iconDock");@@ -226,7 +226,7 @@ const initStatus = () => {event.stopPropagation();break;} else if (target.classList.contains("b3-menu__item")) {- const type = target.getAttribute("data-type") as TDockType+ const type = target.getAttribute("data-type") as TDockType;getDockByType(type).toggleModel(type);if (type === "file" && getSelection().rangeCount > 0) {const range = getSelection().getRangeAt(0);@@ -262,10 +262,10 @@ const initStatus = () => {event.stopPropagation();break;}- target = target.parentElement+ target = target.parentElement;}- })-}+ });+};const initBar = () => {document.querySelector(".toolbar").innerHTML = `<div id="toolbarVIP" class="fn__flex"></div>