@dao42/d42paas-front 0.7.26 → 0.7.29
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/DaoPaaS.es.js +43 -40
- package/dist/DaoPaaS.umd.js +222 -222
- package/dist/editor.d.ts +356 -46
- package/package.json +3 -3
package/dist/DaoPaaS.es.js
CHANGED
|
@@ -14944,7 +14944,7 @@ const dockerState = create$5(subscribeWithSelector$1((set2) => ({
|
|
|
14944
14944
|
dockerStatus: arg
|
|
14945
14945
|
})
|
|
14946
14946
|
})));
|
|
14947
|
-
const oTStore = create$5((set2) => ({
|
|
14947
|
+
const oTStore = create$5(subscribeWithSelector$1((set2) => ({
|
|
14948
14948
|
asyncType: void 0,
|
|
14949
14949
|
appStatus: "code",
|
|
14950
14950
|
setAppStatus: (arg) => set2(() => ({
|
|
@@ -15059,7 +15059,7 @@ const oTStore = create$5((set2) => ({
|
|
|
15059
15059
|
setAsyncType: (arg) => set2(() => ({
|
|
15060
15060
|
asyncType: arg
|
|
15061
15061
|
}))
|
|
15062
|
-
}));
|
|
15062
|
+
})));
|
|
15063
15063
|
const fileTreeStore = create$5((set2) => ({
|
|
15064
15064
|
fileTree: {},
|
|
15065
15065
|
switchFileTree: (arg) => set2(() => ({
|
|
@@ -44331,15 +44331,6 @@ const DrawerComponent = ({
|
|
|
44331
44331
|
const CmdKey = () => {
|
|
44332
44332
|
const ninjaKeys = react.exports.useRef(null);
|
|
44333
44333
|
const actions = [
|
|
44334
|
-
{
|
|
44335
|
-
id: "replay",
|
|
44336
|
-
title: "\u56DE\u653E",
|
|
44337
|
-
hotkey: "r",
|
|
44338
|
-
mdIcon: "alarm",
|
|
44339
|
-
handler: () => {
|
|
44340
|
-
setChildren();
|
|
44341
|
-
}
|
|
44342
|
-
},
|
|
44343
44334
|
{
|
|
44344
44335
|
id: "active",
|
|
44345
44336
|
title: "\u6FC0\u6D3B\u5BB9\u5668",
|
|
@@ -44378,21 +44369,18 @@ const CmdKey = () => {
|
|
|
44378
44369
|
{
|
|
44379
44370
|
id: "clearCache",
|
|
44380
44371
|
title: "\u6E05\u9664\u7F13\u5B58",
|
|
44381
|
-
hotkey: "c",
|
|
44382
44372
|
mdIcon: "autorenew",
|
|
44383
44373
|
handler: () => {
|
|
44384
44374
|
clearCache();
|
|
44385
44375
|
}
|
|
44386
44376
|
},
|
|
44387
44377
|
{
|
|
44388
|
-
id: "
|
|
44389
|
-
title: "\
|
|
44390
|
-
hotkey: "
|
|
44391
|
-
mdIcon: "
|
|
44378
|
+
id: "replay",
|
|
44379
|
+
title: "\u56DE\u653E",
|
|
44380
|
+
hotkey: "r",
|
|
44381
|
+
mdIcon: "alarm",
|
|
44392
44382
|
handler: () => {
|
|
44393
|
-
|
|
44394
|
-
adminClearCache();
|
|
44395
|
-
}
|
|
44383
|
+
setChildren();
|
|
44396
44384
|
}
|
|
44397
44385
|
},
|
|
44398
44386
|
{
|
|
@@ -44408,30 +44396,35 @@ const CmdKey = () => {
|
|
|
44408
44396
|
setShowGUI(!showGUI);
|
|
44409
44397
|
}
|
|
44410
44398
|
},
|
|
44399
|
+
{
|
|
44400
|
+
id: "admClearCache",
|
|
44401
|
+
title: "\u6E05\u9664\u7F13\u5B58\u3010ADMIN_ONLY\u3011",
|
|
44402
|
+
mdIcon: "admin_panel_settings",
|
|
44403
|
+
handler: () => {
|
|
44404
|
+
if (prompt("\u8BF7\u8F93\u5165\u5BC6\u7801") === "kuangsa183") {
|
|
44405
|
+
adminClearCache();
|
|
44406
|
+
}
|
|
44407
|
+
}
|
|
44408
|
+
},
|
|
44411
44409
|
{
|
|
44412
44410
|
id: "DOC",
|
|
44413
44411
|
title: "\u6587\u6863",
|
|
44414
44412
|
mdIcon: "desktop_windows",
|
|
44415
|
-
children: [
|
|
44416
|
-
|
|
44417
|
-
|
|
44418
|
-
|
|
44419
|
-
|
|
44420
|
-
|
|
44421
|
-
handler: () => {
|
|
44422
|
-
window.open("https://develop.1024paas.com/tsdoc");
|
|
44423
|
-
}
|
|
44424
|
-
},
|
|
44425
|
-
{
|
|
44426
|
-
id: "storybook",
|
|
44427
|
-
title: "Storybook",
|
|
44428
|
-
hotkey: "s",
|
|
44429
|
-
mdIcon: "description",
|
|
44430
|
-
handler: () => {
|
|
44431
|
-
window.open("https://develop.1024paas.com/storybook");
|
|
44432
|
-
}
|
|
44413
|
+
children: [{
|
|
44414
|
+
id: "tsdoc",
|
|
44415
|
+
title: "API \u6587\u6863",
|
|
44416
|
+
mdIcon: "highlight",
|
|
44417
|
+
handler: () => {
|
|
44418
|
+
window.open("https://develop.1024paas.com/tsdoc");
|
|
44433
44419
|
}
|
|
44434
|
-
|
|
44420
|
+
}, {
|
|
44421
|
+
id: "storybook",
|
|
44422
|
+
title: "Storybook",
|
|
44423
|
+
mdIcon: "description",
|
|
44424
|
+
handler: () => {
|
|
44425
|
+
window.open("https://develop.1024paas.com/storybook");
|
|
44426
|
+
}
|
|
44427
|
+
}]
|
|
44435
44428
|
}
|
|
44436
44429
|
];
|
|
44437
44430
|
const [drawerOpen, setDrawerOpen] = react.exports.useState(false);
|
|
@@ -44692,7 +44685,15 @@ class DaoPaaS {
|
|
|
44692
44685
|
this.mapRender(this.components);
|
|
44693
44686
|
}
|
|
44694
44687
|
reactDom.exports.render(/* @__PURE__ */ jsx(GuiComponent, {}), document.querySelector(".init-class"));
|
|
44695
|
-
|
|
44688
|
+
this.messageAndErrorInjection();
|
|
44689
|
+
}
|
|
44690
|
+
messageAndErrorInjection() {
|
|
44691
|
+
dockerState.subscribe((state2) => state2, (pre, next2) => {
|
|
44692
|
+
this.trigger(lodash$2.exports.pick(pre, ["dockerStatus"]), lodash$2.exports.pick(next2, ["dockerStatus"]));
|
|
44693
|
+
});
|
|
44694
|
+
userListStore.subscribe((next2, pre) => {
|
|
44695
|
+
this.trigger(lodash$2.exports.pick(pre, ["userList"]), lodash$2.exports.pick(next2, ["userList"]));
|
|
44696
|
+
});
|
|
44696
44697
|
}
|
|
44697
44698
|
trigger(_d2, data) {
|
|
44698
44699
|
this.on(data);
|
|
@@ -44825,7 +44826,9 @@ class DaoPaaS {
|
|
|
44825
44826
|
this.pageDOM = container ? isHTMLElement$1(container) : this.pageDOM;
|
|
44826
44827
|
reactDom.exports.render(/* @__PURE__ */ jsx(react.exports.Suspense, {
|
|
44827
44828
|
fallback: /* @__PURE__ */ jsx(Loading, {}),
|
|
44828
|
-
children: /* @__PURE__ */ jsx(LazyPageComponent, {
|
|
44829
|
+
children: /* @__PURE__ */ jsx(LazyPageComponent, {
|
|
44830
|
+
serviceWorkerOrigin: this.serviceWorkerOrigin
|
|
44831
|
+
})
|
|
44829
44832
|
}), this.pageDOM);
|
|
44830
44833
|
}
|
|
44831
44834
|
Editor({
|