An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:bug: The outline does not refresh automatically https://github.com/siyuan-note/siyuan/issues/17493
Daniel57a867d1b9ca
diff --git a/app/src/layout/dock/Backlink.ts b/app/src/layout/dock/Backlink.tsindex bcbce12c66..345d4be37e 100644--- a/app/src/layout/dock/Backlink.ts+++ b/app/src/layout/dock/Backlink.ts@@ -44,6 +44,7 @@ export class Backlink extends Model {super({app: options.app,id: options.tab.id,+ type: "backlink",callback() {if (this.type === "local") {fetchPost("/api/block/checkBlockExist", {id: this.blockId}, existResponse => {diff --git a/app/src/layout/dock/Bookmark.ts b/app/src/layout/dock/Bookmark.tsindex fe5e664518..48f89b1006 100644--- a/app/src/layout/dock/Bookmark.ts+++ b/app/src/layout/dock/Bookmark.ts@@ -21,6 +21,7 @@ export class Bookmark extends Model {super({app,id: tab.id,+ type: "bookmark",msgCallback(data) {if (data) {switch (data.cmd) {diff --git a/app/src/layout/dock/Graph.ts b/app/src/layout/dock/Graph.tsindex 458796be39..d571386cfe 100644--- a/app/src/layout/dock/Graph.ts+++ b/app/src/layout/dock/Graph.ts@@ -41,6 +41,7 @@ export class Graph extends Model {super({app: options.app,id: options.tab.id,+ type: "graph",callback() {if (this.type === "local") {fetchPost("/api/block/checkBlockExist", {id: this.blockId}, existResponse => {diff --git a/app/src/layout/dock/Outline.ts b/app/src/layout/dock/Outline.tsindex 8c8b99a770..7443cf0205 100644--- a/app/src/layout/dock/Outline.ts+++ b/app/src/layout/dock/Outline.ts@@ -48,6 +48,7 @@ export class Outline extends Model {super({app: options.app,id: options.tab.id,+ type: "outline",callback() {if (this.type === "local") {fetchPost("/api/block/checkBlockExist", {id: this.blockId}, existResponse => {diff --git a/app/src/layout/dock/Tag.ts b/app/src/layout/dock/Tag.tsindex f9392b9029..835b73dea7 100644--- a/app/src/layout/dock/Tag.ts+++ b/app/src/layout/dock/Tag.ts@@ -21,6 +21,7 @@ export class Tag extends Model {super({app,id: tab.id,+ type: "tag",msgCallback(data) {if (data) {switch (data.cmd) {diff --git a/app/src/mobile/dock/MobileOutline.ts b/app/src/mobile/dock/MobileOutline.tsindex e036b08415..38fea2e67e 100644--- a/app/src/mobile/dock/MobileOutline.ts+++ b/app/src/mobile/dock/MobileOutline.ts@@ -1,12 +1,7 @@import {Tree} from "../../util/Tree";import {fetchPost} from "../../util/fetch";import {hasClosestBlock, hasClosestByClassName} from "../../protyle/util/hasClosest";-import {- isInAndroid,- isInHarmony,- setStorageVal,- writeText-} from "../../protyle/util/compatibility";+import {isInAndroid, isInHarmony, setStorageVal, writeText} from "../../protyle/util/compatibility";import {Constants} from "../../constants";import {MenuItem} from "../../menus/Menu";import {getPreviousBlock} from "../../protyle/wysiwyg/getBlock";@@ -35,6 +30,7 @@ export class MobileOutline extends Model {super({app: options.app,id: genUUID(),+ type: "outline",msgCallback(data) {if (data) {switch (data.cmd) {diff --git a/app/src/types/index.d.ts b/app/src/types/index.d.tsindex 05f2e18092..730b838142 100644--- a/app/src/types/index.d.ts+++ b/app/src/types/index.d.ts@@ -1,6 +1,6 @@type TPluginDockPosition = "LeftTop" | "LeftBottom" | "RightTop" | "RightBottom" | "BottomLeft" | "BottomRight"type TDockPosition = "Left" | "Right" | "Bottom"-type TWS = "main" | "filetree" | "protyle"+type TWS = "main" | "filetree" | "protyle" | "backlink" | "bookmark" | "graph" | "outline" | "tag"type TDock = "file" | "outline" | "inbox" | "bookmark" | "tag" | "graph" | "globalGraph" | "backlink"type TTab = "Outline" | "Graph" | "Backlink" | "Asset" | "Editor" | "Search" | "siyuan-card"type TOperation =