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:
Vanessaa9351cc4ebbe
diff --git a/app/src/layout/util.ts b/app/src/layout/util.tsindex ed33c417fb..7f2a8136aa 100644--- a/app/src/layout/util.ts+++ b/app/src/layout/util.ts@@ -16,7 +16,6 @@ import {focusByOffset, focusByRange, getSelectionOffset} from "../protyle/util/simport {hideElements} from "../protyle/ui/hideElements";import {fetchPost} from "../util/fetch";import {hasClosestBlock, hasClosestByClassName} from "../protyle/util/hasClosest";-import {getContenteditableElement} from "../protyle/wysiwyg/getBlock";import {Constants} from "../constants";import {saveScroll} from "../protyle/scroll/saveScroll";import {Backlink} from "./dock/Backlink";diff --git a/app/src/protyle/export/index.ts b/app/src/protyle/export/index.tsindex 0d74b7898a..2da1fe13ee 100644--- a/app/src/protyle/export/index.ts+++ b/app/src/protyle/export/index.ts@@ -669,7 +669,7 @@ export const onExport = async (data: IWebSocketData, filePath: string, exportOptif (!isDefault) {themeStyle = `<link rel="stylesheet" type="text/css" id="themeStyle" href="${servePath}appearance/themes/${themeName}/theme.css?${Constants.SIYUAN_VERSION}"/>`;}- let screenWidth = getScreenWidth();+ const screenWidth = getScreenWidth();const minWidthHtml = isInAndroid() || isInHarmony() ? `document.body.style.minWidth = "${screenWidth}px"` : "";const html = `<!DOCTYPE html><html lang="${window.siyuan.config.appearance.lang}" data-theme-mode="${getThemeMode()}" data-light-theme="${window.siyuan.config.appearance.themeLight}" data-dark-theme="${window.siyuan.config.appearance.themeDark}">diff --git a/app/src/protyle/wysiwyg/index.ts b/app/src/protyle/wysiwyg/index.tsindex 55f40ae3de..8583054d13 100644--- a/app/src/protyle/wysiwyg/index.ts+++ b/app/src/protyle/wysiwyg/index.ts@@ -3036,7 +3036,7 @@ export class WYSIWYG {let newRange = getEditorRange(this.element);// 点击两侧或间隙导致光标跳转到开头 https://github.com/siyuan-note/siyuan/issues/16179if (hasClosestBlock(event.target) !== hasClosestBlock(newRange.startContainer) &&- this.element.querySelector('[data-node-id]')?.contains(newRange.startContainer)) {+ this.element.querySelector("[data-node-id]")?.contains(newRange.startContainer)) {const rect = this.element.getBoundingClientRect();let rangeElement = document.elementFromPoint(rect.left + rect.width / 2, event.clientY);if (rangeElement === this.element) {