mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-19 23:06:09 +01:00
This commit is contained in:
parent
f45d2bd37b
commit
fb007a61c0
16 changed files with 131 additions and 63 deletions
|
|
@ -131,7 +131,7 @@ class App {
|
|||
getLocalStorage(() => {
|
||||
fetchGet(`/appearance/langs/${window.siyuan.config.appearance.lang}.json?v=${Constants.SIYUAN_VERSION}`, (lauguages) => {
|
||||
window.siyuan.languages = lauguages;
|
||||
window.siyuan.menus = new Menus();
|
||||
window.siyuan.menus = new Menus(siyuanApp);
|
||||
fetchPost("/api/setting/getCloudUser", {}, userResponse => {
|
||||
window.siyuan.user = userResponse.data;
|
||||
loadPlugins(siyuanApp);
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ import {getSearch} from "../util/functions";
|
|||
import {initWindow} from "../boot/onGetConfig";
|
||||
import {App} from "../index";
|
||||
|
||||
export const init = (app:App) => {
|
||||
export const init = (app: App) => {
|
||||
webFrame.setZoomFactor(window.siyuan.storage[Constants.LOCAL_ZOOM]);
|
||||
globalShortcut(app);
|
||||
fetchPost("/api/system/getEmojiConf", {}, response => {
|
||||
|
|
@ -19,13 +19,13 @@ export const init = (app:App) => {
|
|||
|
||||
const layout = JSON.parse(sessionStorage.getItem("layout") || "{}");
|
||||
if (layout.layout) {
|
||||
JSONToCenter(layout.layout);
|
||||
JSONToCenter(app, layout.layout);
|
||||
window.siyuan.layout.centerLayout = window.siyuan.layout.layout;
|
||||
return;
|
||||
}
|
||||
const tabJSON = JSON.parse(getSearch("json"));
|
||||
tabJSON.active = true;
|
||||
JSONToCenter({
|
||||
JSONToCenter(app, {
|
||||
direction: "lr",
|
||||
resize: "lr",
|
||||
size: "auto",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue