Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:recycle: https://github.com/siyuan-note/siyuan/pull/10733

Vanessad67235589cde
diff --git a/app/src/constants.ts b/app/src/constants.ts
index 99d95b2af0..26172471f6 100644
--- a/app/src/constants.ts
+++ b/app/src/constants.ts
@@ -487,7 +487,7 @@ export abstract class Constants {
"children": [{
"instance": "Tab",
"children": []
- } as Config.IUILayoutTab]
+ }]
}]
}, {
"direction": "tb",
@@ -533,40 +533,30 @@ export abstract class Constants {
show: true,
icon: "iconFiles",
hotkeyLangId: "fileTree",
- hotkey: "",
- title: "",
}, {
type: "outline",
size: {width: 227, height: 0},
show: false,
icon: "iconAlignCenter",
hotkeyLangId: "outline",
- hotkey: "",
- title: "",
}, {
type: "inbox",
size: {width: 320, height: 0},
show: false,
icon: "iconInbox",
hotkeyLangId: "inbox",
- hotkey: "",
- title: "",
}], [{
type: "bookmark",
size: {width: 227, height: 0},
show: false,
icon: "iconBookmark",
hotkeyLangId: "bookmark",
- hotkey: "",
- title: "",
}, {
type: "tag",
size: {width: 227, height: 0},
show: false,
icon: "iconTags",
hotkeyLangId: "tag",
- hotkey: "",
- title: "",
}]
]
},
@@ -579,24 +569,18 @@ export abstract class Constants {
show: false,
icon: "iconGraph",
hotkeyLangId: "graphView",
- hotkey: "",
- title: "",
}, {
type: "globalGraph",
size: {width: 320, height: 0},
show: false,
icon: "iconGlobalGraph",
hotkeyLangId: "globalGraph",
- hotkey: "",
- title: "",
}], [{
type: "backlink",
size: {width: 320, height: 0},
show: false,
icon: "iconLink",
hotkeyLangId: "backlinks",
- hotkey: "",
- title: "",
}]
]
}
diff --git a/app/src/types/config.d.ts b/app/src/types/config.d.ts
index 9deaa49281..adcf48b6db 100644
--- a/app/src/types/config.d.ts
+++ b/app/src/types/config.d.ts
@@ -1508,7 +1508,7 @@ declare namespace Config {
/**
* Dock tab hotkey
*/
- hotkey: string;
+ hotkey?: string;
/**
* Hotkey description ID
*/
@@ -1525,7 +1525,7 @@ declare namespace Config {
/**
* Tab title
*/
- title: string;
+ title?: string;
/**
* Tab type
*/
@@ -1636,7 +1636,7 @@ declare namespace Config {
/**
* Whether the tab is active
*/
- active: boolean;
+ active?: boolean;
/**
* Tab content
*/
@@ -1660,11 +1660,11 @@ declare namespace Config {
/**
* Whether the tab is pinned
*/
- pin: boolean;
+ pin?: boolean;
/**
* Tab title
*/
- title: string;
+ title?: string;
}
/**