更新 workbench/panel/lib/client.js
This commit is contained in:
parent
4235f31368
commit
ef7a2f9604
|
|
@ -1,5 +1,5 @@
|
||||||
window.__ModuleLoader__.load({
|
window.__ModuleLoader__.load({
|
||||||
id: "dsh-sansheng-liubu-workbench",
|
id: "dsh-sansheng-liubu-mode",
|
||||||
factory: (require) => {
|
factory: (require) => {
|
||||||
var module = { exports: {} };
|
var module = { exports: {} };
|
||||||
var exports = module.exports;
|
var exports = module.exports;
|
||||||
|
|
@ -15,7 +15,7 @@ window.__ModuleLoader__.load({
|
||||||
const API_BASE = "/sansheng/workbench";
|
const API_BASE = "/sansheng/workbench";
|
||||||
const TAB_ID = "sansheng-liubu-workbench";
|
const TAB_ID = "sansheng-liubu-workbench";
|
||||||
const TAB_KIND = "sansheng-liubu-workbench";
|
const TAB_KIND = "sansheng-liubu-workbench";
|
||||||
const CSS_ID = "dsh-sansheng-liubu-workbench/workbench.css";
|
const CSS_ID = "dsh-sansheng-liubu-mode/workbench.css";
|
||||||
const RAIL_WIDTH_KEY = "sansheng.workbench.railWidth";
|
const RAIL_WIDTH_KEY = "sansheng.workbench.railWidth";
|
||||||
const MAIN_SWITCH_KEY = "sansheng.workbench.main";
|
const MAIN_SWITCH_KEY = "sansheng.workbench.main";
|
||||||
const RAIL_MIN = 340;
|
const RAIL_MIN = 340;
|
||||||
|
|
@ -688,7 +688,7 @@ window.__ModuleLoader__.load({
|
||||||
var selector = "style[data-plugin-css=" + JSON.stringify(CSS_ID) + "]";
|
var selector = "style[data-plugin-css=" + JSON.stringify(CSS_ID) + "]";
|
||||||
if (typeof document.querySelector === "function" && document.querySelector(selector) !== null) return;
|
if (typeof document.querySelector === "function" && document.querySelector(selector) !== null) return;
|
||||||
var tag = document.createElement("style");
|
var tag = document.createElement("style");
|
||||||
tag.dataset.plugin = "dsh-sansheng-liubu-workbench";
|
tag.dataset.plugin = "dsh-sansheng-liubu-mode";
|
||||||
tag.dataset.pluginCss = CSS_ID;
|
tag.dataset.pluginCss = CSS_ID;
|
||||||
tag.textContent = CSS;
|
tag.textContent = CSS;
|
||||||
if (document.head && typeof document.head.appendChild === "function") document.head.appendChild(tag);
|
if (document.head && typeof document.head.appendChild === "function") document.head.appendChild(tag);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue