mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-22 17:40:13 +01:00
🚨
This commit is contained in:
parent
2750a1b86f
commit
064013d082
3 changed files with 6 additions and 6 deletions
|
|
@ -11,7 +11,7 @@ import * as path from "path";
|
||||||
/// #endif
|
/// #endif
|
||||||
import {isBrowser} from "../util/functions";
|
import {isBrowser} from "../util/functions";
|
||||||
import {setStorageVal} from "../protyle/util/compatibility";
|
import {setStorageVal} from "../protyle/util/compatibility";
|
||||||
import {hasClosestByAttribute, hasClosestByClassName} from "../protyle/util/hasClosest";
|
import {hasClosestByAttribute} from "../protyle/util/hasClosest";
|
||||||
import {Plugin} from "../plugin";
|
import {Plugin} from "../plugin";
|
||||||
import {App} from "../index";
|
import {App} from "../index";
|
||||||
import {escapeAttr} from "../util/escape";
|
import {escapeAttr} from "../util/escape";
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@ import {genUUID} from "../util/genID";
|
||||||
import {addResize, resizeTabs} from "./util";
|
import {addResize, resizeTabs} from "./util";
|
||||||
/// #if MOBILE
|
/// #if MOBILE
|
||||||
// 检测移动端是否引入了桌面端的代码
|
// 检测移动端是否引入了桌面端的代码
|
||||||
debugger;
|
console.error("Need remove unused code");
|
||||||
/// #endif
|
/// #endif
|
||||||
|
|
||||||
export class Layout {
|
export class Layout {
|
||||||
|
|
|
||||||
|
|
@ -61,7 +61,7 @@ const loadPluginJS = (app: App, item: IPluginData) => {
|
||||||
console.error(`plugin ${item.name} load error:`, e);
|
console.error(`plugin ${item.name} load error:`, e);
|
||||||
}
|
}
|
||||||
return plugin;
|
return plugin;
|
||||||
}
|
};
|
||||||
|
|
||||||
export const loadPlugin = (app: App, item: IPluginData) => {
|
export const loadPlugin = (app: App, item: IPluginData) => {
|
||||||
const plugin = loadPluginJS(app, item);
|
const plugin = loadPluginJS(app, item);
|
||||||
|
|
@ -75,7 +75,7 @@ export const loadPlugin = (app: App, item: IPluginData) => {
|
||||||
icon: dock.config.icon,
|
icon: dock.config.icon,
|
||||||
title: dock.config.title,
|
title: dock.config.title,
|
||||||
hotkey: dock.config.hotkey
|
hotkey: dock.config.hotkey
|
||||||
}], dock.config.position === "LeftBottom" ? 1 : 0, true)
|
}], dock.config.position === "LeftBottom" ? 1 : 0, true);
|
||||||
} else if (dock.config.position.startsWith("Bottom")) {
|
} else if (dock.config.position.startsWith("Bottom")) {
|
||||||
window.siyuan.layout.bottomDock.genButton([{
|
window.siyuan.layout.bottomDock.genButton([{
|
||||||
type: key,
|
type: key,
|
||||||
|
|
@ -84,7 +84,7 @@ export const loadPlugin = (app: App, item: IPluginData) => {
|
||||||
icon: dock.config.icon,
|
icon: dock.config.icon,
|
||||||
title: dock.config.title,
|
title: dock.config.title,
|
||||||
hotkey: dock.config.hotkey
|
hotkey: dock.config.hotkey
|
||||||
}], dock.config.position === "BottomRight" ? 1 : 0, true)
|
}], dock.config.position === "BottomRight" ? 1 : 0, true);
|
||||||
} else if (dock.config.position.startsWith("Right")) {
|
} else if (dock.config.position.startsWith("Right")) {
|
||||||
window.siyuan.layout.rightDock.genButton([{
|
window.siyuan.layout.rightDock.genButton([{
|
||||||
type: key,
|
type: key,
|
||||||
|
|
@ -93,7 +93,7 @@ export const loadPlugin = (app: App, item: IPluginData) => {
|
||||||
icon: dock.config.icon,
|
icon: dock.config.icon,
|
||||||
title: dock.config.title,
|
title: dock.config.title,
|
||||||
hotkey: dock.config.hotkey
|
hotkey: dock.config.hotkey
|
||||||
}], dock.config.position === "RightBottom" ? 1 : 0, true)
|
}], dock.config.position === "RightBottom" ? 1 : 0, true);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
const styleElement = document.createElement("style");
|
const styleElement = document.createElement("style");
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue