@dao42/d42paas-front 0.7.13 → 0.7.21
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 +39 -21
- package/dist/DaoPaaS.umd.js +370 -370
- package/package.json +6 -5
- package/dist/assets/css.worker.5157db2f.js +0 -62
- package/dist/assets/editor.worker.43309ac9.js +0 -4
- package/dist/assets/html.worker.3f2697f1.js +0 -452
- package/dist/assets/json.worker.66c12891.js +0 -35
- package/dist/assets/ts.worker.d75e32f4.js +0 -35320
- package/dist/dev.html +0 -34
- package/dist/index.html +0 -60
- package/dist/sdkserver.html +0 -35
- package/dist/tsdoc.html +0 -59
package/dist/DaoPaaS.es.js
CHANGED
|
@@ -14748,6 +14748,29 @@ async function getLocalCRDTs() {
|
|
|
14748
14748
|
async function setLocalMedia(key, val) {
|
|
14749
14749
|
return (await daopaasDB).put("media", val, key);
|
|
14750
14750
|
}
|
|
14751
|
+
const subscribeWithSelector$1 = (fn) => (set2, get2, api2) => {
|
|
14752
|
+
const origSubscribe = api2.subscribe;
|
|
14753
|
+
api2.subscribe = (selector, optListener, options) => {
|
|
14754
|
+
let listener = selector;
|
|
14755
|
+
if (optListener) {
|
|
14756
|
+
const equalityFn = (options == null ? void 0 : options.equalityFn) || Object.is;
|
|
14757
|
+
let currentSlice = selector(api2.getState());
|
|
14758
|
+
listener = (state2) => {
|
|
14759
|
+
const nextSlice = selector(state2);
|
|
14760
|
+
if (!equalityFn(currentSlice, nextSlice)) {
|
|
14761
|
+
const previousSlice = currentSlice;
|
|
14762
|
+
optListener(currentSlice = nextSlice, previousSlice);
|
|
14763
|
+
}
|
|
14764
|
+
};
|
|
14765
|
+
if (options == null ? void 0 : options.fireImmediately) {
|
|
14766
|
+
optListener(currentSlice, currentSlice);
|
|
14767
|
+
}
|
|
14768
|
+
}
|
|
14769
|
+
return origSubscribe(listener);
|
|
14770
|
+
};
|
|
14771
|
+
const initialState2 = fn(set2, get2, api2);
|
|
14772
|
+
return initialState2;
|
|
14773
|
+
};
|
|
14751
14774
|
var __defProp$g = Object.defineProperty;
|
|
14752
14775
|
var __getOwnPropSymbols2 = Object.getOwnPropertySymbols;
|
|
14753
14776
|
var __hasOwnProp$g = Object.prototype.hasOwnProperty;
|
|
@@ -14911,13 +14934,18 @@ const persist = (config, baseOptions) => (set2, get2, api2) => {
|
|
|
14911
14934
|
hydrate();
|
|
14912
14935
|
return stateFromStorage || configResult;
|
|
14913
14936
|
};
|
|
14937
|
+
const dockerState = create$3(subscribeWithSelector$1((set2) => ({
|
|
14938
|
+
dockerStatus: "STOP",
|
|
14939
|
+
setDockerStatus: (arg) => set2({
|
|
14940
|
+
dockerStatus: arg
|
|
14941
|
+
})
|
|
14942
|
+
})));
|
|
14914
14943
|
const oTStore = create$3((set2) => ({
|
|
14915
14944
|
asyncType: void 0,
|
|
14916
14945
|
appStatus: "code",
|
|
14917
14946
|
setAppStatus: (arg) => set2(() => ({
|
|
14918
14947
|
appStatus: arg
|
|
14919
14948
|
})),
|
|
14920
|
-
client: null,
|
|
14921
14949
|
senders: [],
|
|
14922
14950
|
doc: {},
|
|
14923
14951
|
isRecording: false,
|
|
@@ -28450,6 +28478,7 @@ const PlaygroundInit = (arg) => {
|
|
|
28450
28478
|
if (dockerInfo2) {
|
|
28451
28479
|
(_a2 = otPlaygroundInfo == null ? void 0 : otPlaygroundInfo.dockerInfos) == null ? void 0 : _a2.set(dockerInfo2.dockerId, dockerInfo2);
|
|
28452
28480
|
setDockerInfo(__spreadValues(__spreadValues({}, oTStore.getState().dockerInfo), dockerInfo2));
|
|
28481
|
+
dockerState.getState().setDockerStatus(dockerInfo2.status);
|
|
28453
28482
|
dockerInfo2.fileTree && switchFileTree({
|
|
28454
28483
|
data: dockerInfo2.fileTree
|
|
28455
28484
|
});
|
|
@@ -43987,7 +44016,8 @@ function MdOutlinePersonOutline(props2) {
|
|
|
43987
44016
|
const DrawerComponent = ({
|
|
43988
44017
|
drawerOpen,
|
|
43989
44018
|
setDrawerOpen,
|
|
43990
|
-
replayList
|
|
44019
|
+
replayList,
|
|
44020
|
+
option
|
|
43991
44021
|
}) => {
|
|
43992
44022
|
const [filterVal, setFilterVal] = react.exports.useState("");
|
|
43993
44023
|
react.exports.useEffect(() => {
|
|
@@ -43999,7 +44029,7 @@ const DrawerComponent = ({
|
|
|
43999
44029
|
onClose: () => setDrawerOpen(false),
|
|
44000
44030
|
children: [/* @__PURE__ */ jsxs(Drawer$1.Header, {
|
|
44001
44031
|
children: [/* @__PURE__ */ jsx(Drawer$1.Title, {
|
|
44002
|
-
children: "\u56DE\u653E\u5217\u8868"
|
|
44032
|
+
children: !option ? "\u56DE\u653E\u5217\u8868" : option.title ? option.title : ""
|
|
44003
44033
|
}), /* @__PURE__ */ jsx(Drawer$1.Actions, {
|
|
44004
44034
|
children: /* @__PURE__ */ jsxs(InputGroup$1, {
|
|
44005
44035
|
children: [/* @__PURE__ */ jsx(InputGroup$1.Addon, {
|
|
@@ -44396,6 +44426,10 @@ class DaoPaaS {
|
|
|
44396
44426
|
}
|
|
44397
44427
|
};
|
|
44398
44428
|
reactDom.exports.render(/* @__PURE__ */ jsx(GuiComponent, {}), document.querySelector(".init-class"));
|
|
44429
|
+
dockerState.subscribe((state2) => state2.dockerStatus, this.trigger);
|
|
44430
|
+
}
|
|
44431
|
+
trigger(_d2, data) {
|
|
44432
|
+
console.log(data);
|
|
44399
44433
|
}
|
|
44400
44434
|
clearIDB(callback) {
|
|
44401
44435
|
indexedDB.deleteDatabase("daopaas").onsuccess = () => {
|
|
@@ -197789,7 +197823,7 @@ const TerminalComponent = (_h2) => {
|
|
|
197789
197823
|
var _a2, _b2, _c2, _d2;
|
|
197790
197824
|
const CRDTInfo22 = JSON.parse(d2);
|
|
197791
197825
|
const crdt = CRDTInfo22.terminal;
|
|
197792
|
-
if (
|
|
197826
|
+
if (crdt) {
|
|
197793
197827
|
if (((_a2 = crdt == null ? void 0 : crdt.doc) == null ? void 0 : _a2.action) === "Get") {
|
|
197794
197828
|
initTerminalText(terminal, ((_b2 = crdt == null ? void 0 : crdt.doc) == null ? void 0 : _b2.value) || "");
|
|
197795
197829
|
return;
|
|
@@ -197800,28 +197834,12 @@ const TerminalComponent = (_h2) => {
|
|
|
197800
197834
|
userLabel.style.top = childNode.style.top;
|
|
197801
197835
|
userLabel.style.left = childNode.style.left;
|
|
197802
197836
|
helperContainer == null ? void 0 : helperContainer.appendChild(userLabel);
|
|
197803
|
-
const timer = setTimeout(() => {
|
|
197804
|
-
helperContainer == null ? void 0 : helperContainer.removeChild(userLabel);
|
|
197805
|
-
terminal.setOption("theme", __spreadProps(__spreadValues({}, terminal.getOption("theme")), {
|
|
197806
|
-
cursor: "#ffffff"
|
|
197807
|
-
}));
|
|
197808
|
-
}, 6e3);
|
|
197809
|
-
return () => {
|
|
197810
|
-
try {
|
|
197811
|
-
helperContainer == null ? void 0 : helperContainer.removeChild(userLabel);
|
|
197812
|
-
} catch (_2) {
|
|
197813
|
-
}
|
|
197814
|
-
terminal.setOption("theme", __spreadProps(__spreadValues({}, terminal.getOption("theme")), {
|
|
197815
|
-
cursor: "#ffffff"
|
|
197816
|
-
}));
|
|
197817
|
-
clearTimeout(timer);
|
|
197818
|
-
};
|
|
197819
197837
|
}
|
|
197820
197838
|
});
|
|
197821
197839
|
return () => {
|
|
197822
197840
|
socket2 == null ? void 0 : socket2.off("terminal");
|
|
197823
197841
|
};
|
|
197824
|
-
}, [socket2]);
|
|
197842
|
+
}, [terminal, socket2]);
|
|
197825
197843
|
return /* @__PURE__ */ jsx(FollowLayout, {
|
|
197826
197844
|
name: "terminal",
|
|
197827
197845
|
children: /* @__PURE__ */ jsx("div", {
|