mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-05-08 03:11:26 +08:00
Fix type errors related to siyuan.config
(#10733)
* 🎨 Improve the type definition of `siyuan.config` * 🐛 Fix type errors related to `siyuan.config` * 💄 `types/config.d.ts` * 🐛 Fix type errors related to `siyuan.config` * 🐛 Fix type errors related to `siyuan.config` * 🐛 Fix type errors related to `siyuan.config`
This commit is contained in:
parent
4852f812d0
commit
35ef97c25c
@ -482,7 +482,13 @@ export abstract class Constants {
|
|||||||
"size": "auto",
|
"size": "auto",
|
||||||
"type": "center",
|
"type": "center",
|
||||||
"instance": "Layout",
|
"instance": "Layout",
|
||||||
"children": [{"instance": "Wnd", "children": [{"instance": "Tab", "children": []}]}]
|
"children": [{
|
||||||
|
"instance": "Wnd",
|
||||||
|
"children": [{
|
||||||
|
"instance": "Tab",
|
||||||
|
"children": []
|
||||||
|
} as Config.IUILayoutTab]
|
||||||
|
}]
|
||||||
}, {
|
}, {
|
||||||
"direction": "tb",
|
"direction": "tb",
|
||||||
"size": "0px",
|
"size": "0px",
|
||||||
@ -527,30 +533,40 @@ export abstract class Constants {
|
|||||||
show: true,
|
show: true,
|
||||||
icon: "iconFiles",
|
icon: "iconFiles",
|
||||||
hotkeyLangId: "fileTree",
|
hotkeyLangId: "fileTree",
|
||||||
|
hotkey: "",
|
||||||
|
title: "",
|
||||||
}, {
|
}, {
|
||||||
type: "outline",
|
type: "outline",
|
||||||
size: {width: 227, height: 0},
|
size: {width: 227, height: 0},
|
||||||
show: false,
|
show: false,
|
||||||
icon: "iconAlignCenter",
|
icon: "iconAlignCenter",
|
||||||
hotkeyLangId: "outline",
|
hotkeyLangId: "outline",
|
||||||
|
hotkey: "",
|
||||||
|
title: "",
|
||||||
}, {
|
}, {
|
||||||
type: "inbox",
|
type: "inbox",
|
||||||
size: {width: 320, height: 0},
|
size: {width: 320, height: 0},
|
||||||
show: false,
|
show: false,
|
||||||
icon: "iconInbox",
|
icon: "iconInbox",
|
||||||
hotkeyLangId: "inbox",
|
hotkeyLangId: "inbox",
|
||||||
|
hotkey: "",
|
||||||
|
title: "",
|
||||||
}], [{
|
}], [{
|
||||||
type: "bookmark",
|
type: "bookmark",
|
||||||
size: {width: 227, height: 0},
|
size: {width: 227, height: 0},
|
||||||
show: false,
|
show: false,
|
||||||
icon: "iconBookmark",
|
icon: "iconBookmark",
|
||||||
hotkeyLangId: "bookmark",
|
hotkeyLangId: "bookmark",
|
||||||
|
hotkey: "",
|
||||||
|
title: "",
|
||||||
}, {
|
}, {
|
||||||
type: "tag",
|
type: "tag",
|
||||||
size: {width: 227, height: 0},
|
size: {width: 227, height: 0},
|
||||||
show: false,
|
show: false,
|
||||||
icon: "iconTags",
|
icon: "iconTags",
|
||||||
hotkeyLangId: "tag",
|
hotkeyLangId: "tag",
|
||||||
|
hotkey: "",
|
||||||
|
title: "",
|
||||||
}]
|
}]
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
@ -563,18 +579,24 @@ export abstract class Constants {
|
|||||||
show: false,
|
show: false,
|
||||||
icon: "iconGraph",
|
icon: "iconGraph",
|
||||||
hotkeyLangId: "graphView",
|
hotkeyLangId: "graphView",
|
||||||
|
hotkey: "",
|
||||||
|
title: "",
|
||||||
}, {
|
}, {
|
||||||
type: "globalGraph",
|
type: "globalGraph",
|
||||||
size: {width: 320, height: 0},
|
size: {width: 320, height: 0},
|
||||||
show: false,
|
show: false,
|
||||||
icon: "iconGlobalGraph",
|
icon: "iconGlobalGraph",
|
||||||
hotkeyLangId: "globalGraph",
|
hotkeyLangId: "globalGraph",
|
||||||
|
hotkey: "",
|
||||||
|
title: "",
|
||||||
}], [{
|
}], [{
|
||||||
type: "backlink",
|
type: "backlink",
|
||||||
size: {width: 320, height: 0},
|
size: {width: 320, height: 0},
|
||||||
show: false,
|
show: false,
|
||||||
icon: "iconLink",
|
icon: "iconLink",
|
||||||
hotkeyLangId: "backlinks",
|
hotkeyLangId: "backlinks",
|
||||||
|
hotkey: "",
|
||||||
|
title: "",
|
||||||
}]
|
}]
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
20
app/src/types/config.d.ts
vendored
20
app/src/types/config.d.ts
vendored
@ -2067,6 +2067,11 @@ declare namespace Config {
|
|||||||
* Search type filtering
|
* Search type filtering
|
||||||
*/
|
*/
|
||||||
export interface IUILayoutTabSearchConfigTypes {
|
export interface IUILayoutTabSearchConfigTypes {
|
||||||
|
/**
|
||||||
|
* Search results contain audio blocks
|
||||||
|
* @default false
|
||||||
|
*/
|
||||||
|
audioBlock: boolean;
|
||||||
/**
|
/**
|
||||||
* Search results contain blockquote blocks
|
* Search results contain blockquote blocks
|
||||||
* @default false
|
* @default false
|
||||||
@ -2102,6 +2107,11 @@ declare namespace Config {
|
|||||||
* @default false
|
* @default false
|
||||||
*/
|
*/
|
||||||
htmlBlock: boolean;
|
htmlBlock: boolean;
|
||||||
|
/**
|
||||||
|
* Search results contain iframe blocks
|
||||||
|
* @default false
|
||||||
|
*/
|
||||||
|
iFrameBlock: boolean;
|
||||||
/**
|
/**
|
||||||
* Search results contain list blocks
|
* Search results contain list blocks
|
||||||
* @default false
|
* @default false
|
||||||
@ -2132,6 +2142,16 @@ declare namespace Config {
|
|||||||
* @default false
|
* @default false
|
||||||
*/
|
*/
|
||||||
table: boolean;
|
table: boolean;
|
||||||
|
/**
|
||||||
|
* Search results contain video blocks
|
||||||
|
* @default false
|
||||||
|
*/
|
||||||
|
videoBlock: boolean;
|
||||||
|
/**
|
||||||
|
* Search results contain widget blocks
|
||||||
|
* @default false
|
||||||
|
*/
|
||||||
|
widgetBlock: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user