mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-21 00:50:13 +01:00
This commit is contained in:
parent
95bb18afe1
commit
00eaf9b4b4
21 changed files with 123 additions and 111 deletions
|
|
@ -21,8 +21,8 @@ import {
|
|||
import {promiseTransactions} from "./protyle/wysiwyg/transaction";
|
||||
import {initMessage} from "./dialog/message";
|
||||
import {resizeDrag} from "./layout/util";
|
||||
import {setLocalStorage} from "./protyle/util/compatibility";
|
||||
import {getAllTabs} from "./layout/getAll";
|
||||
import {getLocalStorage} from "./protyle/util/compatibility";
|
||||
|
||||
class App {
|
||||
constructor() {
|
||||
|
|
@ -47,8 +47,8 @@ class App {
|
|||
case"progress":
|
||||
progressLoading(data);
|
||||
break;
|
||||
case"setLocalStorage":
|
||||
setLocalStorage(data);
|
||||
case"setLocalStorageVal":
|
||||
window.siyuan.storage[data.data.key] = data.data.val;
|
||||
break;
|
||||
case "rename":
|
||||
getAllTabs().forEach((tab) => {
|
||||
|
|
@ -127,7 +127,7 @@ class App {
|
|||
};
|
||||
fetchPost("/api/system/getConf", {}, response => {
|
||||
window.siyuan.config = response.data.conf;
|
||||
setLocalStorage();
|
||||
getLocalStorage();
|
||||
fetchGet(`/appearance/langs/${window.siyuan.config.appearance.lang}.json?v=${Constants.SIYUAN_VERSION}`, (lauguages) => {
|
||||
window.siyuan.languages = lauguages;
|
||||
bootSync();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue