mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-26 17:04:07 +01:00
This commit is contained in:
parent
e922c402c8
commit
1f607cf08a
9 changed files with 15 additions and 294 deletions
|
|
@ -244,7 +244,7 @@ export const appearance = {
|
|||
});
|
||||
});
|
||||
},
|
||||
onSetappearance(data: IAppearance) {
|
||||
onSetappearance(data: Config.IAppearance) {
|
||||
if (data.lang !== window.siyuan.config.appearance.lang) {
|
||||
exportLayout({
|
||||
cb() {
|
||||
|
|
|
|||
|
|
@ -349,7 +349,7 @@ export const editor = {
|
|||
});
|
||||
});
|
||||
},
|
||||
_onSetEditor: (editorData: IEditor) => {
|
||||
_onSetEditor: (editorData: Config.IEditor) => {
|
||||
const changeReadonly = editorData.readOnly !== window.siyuan.config.editor.readOnly;
|
||||
if (changeReadonly) {
|
||||
editor.setReadonly(editorData.readOnly);
|
||||
|
|
|
|||
|
|
@ -254,7 +254,7 @@ export const exportConfig = {
|
|||
});
|
||||
/// #endif
|
||||
},
|
||||
onSetexport: (data: IExport) => {
|
||||
onSetexport: (data: Config.IExport) => {
|
||||
window.siyuan.config.export = data;
|
||||
}
|
||||
};
|
||||
|
|
|
|||
|
|
@ -121,7 +121,7 @@ export const fileTree = {
|
|||
});
|
||||
});
|
||||
},
|
||||
onSetfiletree: (fileTree: IFileTree) => {
|
||||
onSetfiletree: (fileTree: Config.IFileTree) => {
|
||||
window.siyuan.config.fileTree = fileTree;
|
||||
}
|
||||
};
|
||||
|
|
|
|||
|
|
@ -185,7 +185,7 @@ export const keymap = {
|
|||
</div>`;
|
||||
},
|
||||
_setkeymap(app: App) {
|
||||
const data: IKeymap = JSON.parse(JSON.stringify(Constants.SIYUAN_KEYMAP));
|
||||
const data: Config.IKeymap = JSON.parse(JSON.stringify(Constants.SIYUAN_KEYMAP));
|
||||
keymap.element.querySelectorAll("label.b3-list-item input").forEach((item) => {
|
||||
const keys = item.getAttribute("data-key").split(Constants.ZWSP);
|
||||
const newHotkey = item.getAttribute("data-value");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue