mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-23 18:10:12 +01:00
This commit is contained in:
parent
f46e0d48ad
commit
b8f56f4a1d
7 changed files with 20 additions and 20 deletions
|
|
@ -19,17 +19,16 @@ import {initMessage} from "../dialog/message";
|
|||
import {getAllTabs} from "../layout/getAll";
|
||||
import {getLocalStorage} from "../protyle/util/compatibility";
|
||||
import {init} from "../window/init";
|
||||
import {loadPlugins} from "../plugin/loader";
|
||||
|
||||
class App {
|
||||
public plugins: import("../plugin").Plugin[] = [];
|
||||
public appId:string;
|
||||
public appId: string;
|
||||
|
||||
constructor() {
|
||||
addScriptSync(`${Constants.PROTYLE_CDN}/js/lute/lute.min.js?v=${Constants.SIYUAN_VERSION}`, "protyleLuteScript");
|
||||
addScript(`${Constants.PROTYLE_CDN}/js/protyle-html.js?v=${Constants.SIYUAN_VERSION}`, "protyleWcHtmlScript");
|
||||
addBaseURL();
|
||||
this.appId =Constants.SIYUAN_APPID;
|
||||
this.appId = Constants.SIYUAN_APPID;
|
||||
window.siyuan = {
|
||||
zIndex: 10,
|
||||
transactions: [],
|
||||
|
|
@ -128,9 +127,8 @@ class App {
|
|||
}
|
||||
}),
|
||||
};
|
||||
fetchPost("/api/system/getConf", {}, async (response) => {
|
||||
fetchPost("/api/system/getConf", {}, (response) => {
|
||||
window.siyuan.config = response.data.conf;
|
||||
await loadPlugins(this);
|
||||
getLocalStorage(() => {
|
||||
fetchGet(`/appearance/langs/${window.siyuan.config.appearance.lang}.json?v=${Constants.SIYUAN_VERSION}`, (lauguages) => {
|
||||
window.siyuan.languages = lauguages;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue