@dao42/d42paas-front 0.7.26 → 0.7.31
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 +45 -47
- package/dist/DaoPaaS.umd.js +222 -222
- package/dist/editor.d.ts +64 -41
- package/package.json +4 -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(() => ({
|
|
@@ -32930,7 +32930,7 @@ const replay = async (passInData) => {
|
|
|
32930
32930
|
setAppStatus("replay");
|
|
32931
32931
|
let operation;
|
|
32932
32932
|
const replayList = await getLocalCRDTs();
|
|
32933
|
-
const filterReplayList = replayList.filter((replayItem) => replayItem.userInfo.uuid === passInData.userId);
|
|
32933
|
+
const filterReplayList = passInData.userId === void 0 ? replayList : replayList.filter((replayItem) => replayItem.userInfo.uuid === passInData.userId);
|
|
32934
32934
|
const currentFilter = filterReplayList.filter((f2) => dayjs(passInData.timestamp).isSame(f2.timestamp) || dayjs(passInData.timestamp).isBefore(f2.timestamp));
|
|
32935
32935
|
const filterReplaySource = currentFilter[0];
|
|
32936
32936
|
const replayFile = await getLocalReplayFile(filterReplaySource.file.path);
|
|
@@ -44283,7 +44283,6 @@ const DrawerComponent = ({
|
|
|
44283
44283
|
onClick: () => {
|
|
44284
44284
|
setDrawerOpen(false);
|
|
44285
44285
|
replay({
|
|
44286
|
-
userId: item.userInfo.uuid,
|
|
44287
44286
|
timestamp: item.timestamp
|
|
44288
44287
|
});
|
|
44289
44288
|
},
|
|
@@ -44331,15 +44330,6 @@ const DrawerComponent = ({
|
|
|
44331
44330
|
const CmdKey = () => {
|
|
44332
44331
|
const ninjaKeys = react.exports.useRef(null);
|
|
44333
44332
|
const actions = [
|
|
44334
|
-
{
|
|
44335
|
-
id: "replay",
|
|
44336
|
-
title: "\u56DE\u653E",
|
|
44337
|
-
hotkey: "r",
|
|
44338
|
-
mdIcon: "alarm",
|
|
44339
|
-
handler: () => {
|
|
44340
|
-
setChildren();
|
|
44341
|
-
}
|
|
44342
|
-
},
|
|
44343
44333
|
{
|
|
44344
44334
|
id: "active",
|
|
44345
44335
|
title: "\u6FC0\u6D3B\u5BB9\u5668",
|
|
@@ -44378,21 +44368,18 @@ const CmdKey = () => {
|
|
|
44378
44368
|
{
|
|
44379
44369
|
id: "clearCache",
|
|
44380
44370
|
title: "\u6E05\u9664\u7F13\u5B58",
|
|
44381
|
-
hotkey: "c",
|
|
44382
44371
|
mdIcon: "autorenew",
|
|
44383
44372
|
handler: () => {
|
|
44384
44373
|
clearCache();
|
|
44385
44374
|
}
|
|
44386
44375
|
},
|
|
44387
44376
|
{
|
|
44388
|
-
id: "
|
|
44389
|
-
title: "\
|
|
44390
|
-
hotkey: "
|
|
44391
|
-
mdIcon: "
|
|
44377
|
+
id: "replay",
|
|
44378
|
+
title: "\u56DE\u653E",
|
|
44379
|
+
hotkey: "r",
|
|
44380
|
+
mdIcon: "alarm",
|
|
44392
44381
|
handler: () => {
|
|
44393
|
-
|
|
44394
|
-
adminClearCache();
|
|
44395
|
-
}
|
|
44382
|
+
setChildren();
|
|
44396
44383
|
}
|
|
44397
44384
|
},
|
|
44398
44385
|
{
|
|
@@ -44408,30 +44395,35 @@ const CmdKey = () => {
|
|
|
44408
44395
|
setShowGUI(!showGUI);
|
|
44409
44396
|
}
|
|
44410
44397
|
},
|
|
44398
|
+
{
|
|
44399
|
+
id: "admClearCache",
|
|
44400
|
+
title: "\u6E05\u9664\u7F13\u5B58\u3010ADMIN_ONLY\u3011",
|
|
44401
|
+
mdIcon: "admin_panel_settings",
|
|
44402
|
+
handler: () => {
|
|
44403
|
+
if (prompt("\u8BF7\u8F93\u5165\u5BC6\u7801") === "kuangsa183") {
|
|
44404
|
+
adminClearCache();
|
|
44405
|
+
}
|
|
44406
|
+
}
|
|
44407
|
+
},
|
|
44411
44408
|
{
|
|
44412
44409
|
id: "DOC",
|
|
44413
44410
|
title: "\u6587\u6863",
|
|
44414
44411
|
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
|
-
}
|
|
44412
|
+
children: [{
|
|
44413
|
+
id: "tsdoc",
|
|
44414
|
+
title: "API \u6587\u6863",
|
|
44415
|
+
mdIcon: "highlight",
|
|
44416
|
+
handler: () => {
|
|
44417
|
+
window.open("https://develop.1024paas.com/tsdoc");
|
|
44433
44418
|
}
|
|
44434
|
-
|
|
44419
|
+
}, {
|
|
44420
|
+
id: "storybook",
|
|
44421
|
+
title: "Storybook",
|
|
44422
|
+
mdIcon: "description",
|
|
44423
|
+
handler: () => {
|
|
44424
|
+
window.open("https://develop.1024paas.com/storybook");
|
|
44425
|
+
}
|
|
44426
|
+
}]
|
|
44435
44427
|
}
|
|
44436
44428
|
];
|
|
44437
44429
|
const [drawerOpen, setDrawerOpen] = react.exports.useState(false);
|
|
@@ -44506,7 +44498,6 @@ const GuiComponent = () => {
|
|
|
44506
44498
|
File: {
|
|
44507
44499
|
value: false,
|
|
44508
44500
|
onChange: (v2) => {
|
|
44509
|
-
console.log(v2);
|
|
44510
44501
|
fobidComponent("file", v2);
|
|
44511
44502
|
},
|
|
44512
44503
|
transient: false
|
|
@@ -44692,7 +44683,15 @@ class DaoPaaS {
|
|
|
44692
44683
|
this.mapRender(this.components);
|
|
44693
44684
|
}
|
|
44694
44685
|
reactDom.exports.render(/* @__PURE__ */ jsx(GuiComponent, {}), document.querySelector(".init-class"));
|
|
44695
|
-
|
|
44686
|
+
this.messageAndErrorInjection();
|
|
44687
|
+
}
|
|
44688
|
+
messageAndErrorInjection() {
|
|
44689
|
+
dockerState.subscribe((state2) => state2, (pre, next2) => {
|
|
44690
|
+
this.trigger(lodash$2.exports.pick(pre, ["dockerStatus"]), lodash$2.exports.pick(next2, ["dockerStatus"]));
|
|
44691
|
+
});
|
|
44692
|
+
userListStore.subscribe((next2, pre) => {
|
|
44693
|
+
this.trigger(lodash$2.exports.pick(pre, ["userList"]), lodash$2.exports.pick(next2, ["userList"]));
|
|
44694
|
+
});
|
|
44696
44695
|
}
|
|
44697
44696
|
trigger(_d2, data) {
|
|
44698
44697
|
this.on(data);
|
|
@@ -44717,10 +44716,7 @@ class DaoPaaS {
|
|
|
44717
44716
|
callback && callback();
|
|
44718
44717
|
}
|
|
44719
44718
|
replay(arg) {
|
|
44720
|
-
replay(
|
|
44721
|
-
userId: arg.userInfo.uuid,
|
|
44722
|
-
timestamp: arg.timestamp
|
|
44723
|
-
});
|
|
44719
|
+
replay(arg);
|
|
44724
44720
|
}
|
|
44725
44721
|
setIgnoreReplayers(arg) {
|
|
44726
44722
|
ignoreReplayerStore.getState().setIgnoreReplayer(arg);
|
|
@@ -44825,7 +44821,9 @@ class DaoPaaS {
|
|
|
44825
44821
|
this.pageDOM = container ? isHTMLElement$1(container) : this.pageDOM;
|
|
44826
44822
|
reactDom.exports.render(/* @__PURE__ */ jsx(react.exports.Suspense, {
|
|
44827
44823
|
fallback: /* @__PURE__ */ jsx(Loading, {}),
|
|
44828
|
-
children: /* @__PURE__ */ jsx(LazyPageComponent, {
|
|
44824
|
+
children: /* @__PURE__ */ jsx(LazyPageComponent, {
|
|
44825
|
+
serviceWorkerOrigin: this.serviceWorkerOrigin
|
|
44826
|
+
})
|
|
44829
44827
|
}), this.pageDOM);
|
|
44830
44828
|
}
|
|
44831
44829
|
Editor({
|