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:
Vanessa860924656d50
diff --git a/app/src/mobile/index.ts b/app/src/mobile/index.tsindex 74eec89959..2515d422f9 100644--- a/app/src/mobile/index.ts+++ b/app/src/mobile/index.ts@@ -105,7 +105,7 @@ class App {if (unPinMenu) {unPinMenu.forEach(unpinItem => {unPinsMenu.push(unpinItem);- })+ });}});if (unPinsMenu.length > 0) {diff --git a/app/src/plugin/loader.ts b/app/src/plugin/loader.tsindex ca500ac49d..b0cf39aeab 100644--- a/app/src/plugin/loader.ts+++ b/app/src/plugin/loader.ts@@ -7,7 +7,6 @@ import {exportLayout, resizeTopBar} from "../layout/util";import {API} from "./API";import {getFrontend, isMobile, isWindow} from "../util/functions";import {Constants} from "../constants";-import {Menu} from "./Menu";const getObject = (key: string) => {const api = {diff --git a/app/src/protyle/util/editorCommonEvent.ts b/app/src/protyle/util/editorCommonEvent.tsindex 24356a8714..5767bb28cb 100644--- a/app/src/protyle/util/editorCommonEvent.ts+++ b/app/src/protyle/util/editorCommonEvent.ts@@ -1060,11 +1060,11 @@ export const dropEvent = (protyle: IProtyle, editorElement: HTMLElement) => {if (event.clientY > editorElement.lastElementChild.getBoundingClientRect().bottom) {// 命中底部targetElement = editorElement.lastElementChild as HTMLElement;- point.className = "dragover__bottom"+ point.className = "dragover__bottom";} else if (event.clientY < editorElement.firstElementChild.getBoundingClientRect().top) {// 命中顶部- targetElement = editorElement.firstElementChild as HTMLElement- point.className = "dragover__top"+ targetElement = editorElement.firstElementChild as HTMLElement;+ point.className = "dragover__top";} else {if (event.clientX < editorPosition.left) {// 左侧@@ -1105,7 +1105,7 @@ export const dropEvent = (protyle: IProtyle, editorElement: HTMLElement) => {return;}if (point.className) {- targetElement.classList.add(point.className)+ targetElement.classList.add(point.className);return;}if (targetElement.getAttribute("data-type") === "NodeListItem" || fileTreeIds.indexOf("-") > -1) {@@ -1197,7 +1197,7 @@ export const dropEvent = (protyle: IProtyle, editorElement: HTMLElement) => {dragoverElement = targetElement;}});- editorElement.addEventListener("dragleave", (event: DragEvent & { target: HTMLElement }) => {+ editorElement.addEventListener("dragleave", () => {editorElement.querySelectorAll(".dragover__left, .dragover__right, .dragover__bottom, .dragover__top").forEach((item: HTMLElement) => {item.classList.remove("dragover__top", "dragover__bottom", "dragover__left", "dragover__right");});