@dao42/d42paas-front 0.5.54 → 0.5.55
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 +30 -11
- package/dist/DaoPaaS.umd.js +238 -238
- package/package.json +1 -1
package/dist/DaoPaaS.es.js
CHANGED
|
@@ -14724,6 +14724,9 @@ async function setReplaySource(val) {
|
|
|
14724
14724
|
file: lodash$2.exports.omit(val.file, "value")
|
|
14725
14725
|
}), val.timestamp + "." + v4$1().split("-")[0]);
|
|
14726
14726
|
}
|
|
14727
|
+
async function getLocalFile(key) {
|
|
14728
|
+
return (await daopaasDB).get("files", key);
|
|
14729
|
+
}
|
|
14727
14730
|
async function getLocalReplayFile(key) {
|
|
14728
14731
|
return (await daopaasDB).get("replayFiles", key);
|
|
14729
14732
|
}
|
|
@@ -28508,10 +28511,14 @@ const PlaygroundInit = (arg) => {
|
|
|
28508
28511
|
}
|
|
28509
28512
|
});
|
|
28510
28513
|
io.on("serverAck", (d2) => {
|
|
28514
|
+
var _a2;
|
|
28511
28515
|
const _d2 = JSON.parse(d2);
|
|
28512
28516
|
setAsyncType("editor");
|
|
28513
28517
|
setReplaySource(__spreadProps(__spreadValues({}, _d2), {
|
|
28514
|
-
event: "editor"
|
|
28518
|
+
event: "editor",
|
|
28519
|
+
editor: __spreadProps(__spreadValues({}, _d2.editor), {
|
|
28520
|
+
revision: ((_a2 = _d2.editor) == null ? void 0 : _a2.revision) + 1
|
|
28521
|
+
})
|
|
28515
28522
|
}));
|
|
28516
28523
|
setServerAck();
|
|
28517
28524
|
});
|
|
@@ -30591,11 +30598,11 @@ const replay = async (item) => {
|
|
|
30591
30598
|
const filterReplayList = replayList.filter((replayItem) => replayItem.userInfo.uuid === item.userId);
|
|
30592
30599
|
const filterReplaySource = filterReplayList.find((f2) => f2.timestamp === item.timestamp);
|
|
30593
30600
|
if (filterReplaySource.file) {
|
|
30594
|
-
const
|
|
30595
|
-
filterReplaySource.file.value =
|
|
30596
|
-
if ((
|
|
30601
|
+
const doc2 = await getLocalFile(filterReplaySource.file.path);
|
|
30602
|
+
filterReplaySource.file.value = doc2;
|
|
30603
|
+
if ((doc2 == null ? void 0 : doc2.path) !== filterReplaySource.file.path) {
|
|
30597
30604
|
switchDoc == null ? void 0 : switchDoc({
|
|
30598
|
-
value:
|
|
30605
|
+
value: doc2.value,
|
|
30599
30606
|
path: filterReplaySource.file.path
|
|
30600
30607
|
});
|
|
30601
30608
|
}
|
|
@@ -187787,7 +187794,10 @@ const Editor = ({
|
|
|
187787
187794
|
preOffset = change.rangeOffset + change.rangeLength;
|
|
187788
187795
|
});
|
|
187789
187796
|
client2.applyClient(operation);
|
|
187790
|
-
setLocalFile((doc22 == null ? void 0 : doc22.path) ? doc22 == null ? void 0 : doc22.path : "singleFile",
|
|
187797
|
+
setLocalFile((doc22 == null ? void 0 : doc22.path) ? doc22 == null ? void 0 : doc22.path : "singleFile", {
|
|
187798
|
+
value: editor.getValue(),
|
|
187799
|
+
revision: client2.revision + 1
|
|
187800
|
+
});
|
|
187791
187801
|
} else {
|
|
187792
187802
|
setValue2(changes[0].text);
|
|
187793
187803
|
}
|
|
@@ -187879,7 +187889,10 @@ const Editor = ({
|
|
|
187879
187889
|
revision: client2.revision,
|
|
187880
187890
|
value: file.value
|
|
187881
187891
|
});
|
|
187882
|
-
oTStore.getState().appStatus !== "replay" && setLocalFile(doc22 == null ? void 0 : doc22.path,
|
|
187892
|
+
oTStore.getState().appStatus !== "replay" && setLocalFile(doc22 == null ? void 0 : doc22.path, {
|
|
187893
|
+
value: file.value,
|
|
187894
|
+
revision: client2.revision
|
|
187895
|
+
});
|
|
187883
187896
|
}
|
|
187884
187897
|
};
|
|
187885
187898
|
const lspServerInject = (_lan, useLsp) => {
|
|
@@ -187888,6 +187901,11 @@ const Editor = ({
|
|
|
187888
187901
|
extensions: [".rb"],
|
|
187889
187902
|
aliases: ["ruby", "RUBY"]
|
|
187890
187903
|
});
|
|
187904
|
+
languages.register({
|
|
187905
|
+
id: "python",
|
|
187906
|
+
extensions: [".py"],
|
|
187907
|
+
aliases: ["python", "PYTHON"]
|
|
187908
|
+
});
|
|
187891
187909
|
languages.register({
|
|
187892
187910
|
id: "java",
|
|
187893
187911
|
extensions: [".java"],
|
|
@@ -187921,7 +187939,7 @@ const Editor = ({
|
|
|
187921
187939
|
const languageClient = new lib.MonacoLanguageClient({
|
|
187922
187940
|
name: "Language Client",
|
|
187923
187941
|
clientOptions: {
|
|
187924
|
-
documentSelector: ["java", "ruby"],
|
|
187942
|
+
documentSelector: ["java", "ruby", "python"],
|
|
187925
187943
|
errorHandler: {
|
|
187926
187944
|
error: () => lib.ErrorAction.Continue,
|
|
187927
187945
|
closed: () => lib.CloseAction.DoNotRestart
|
|
@@ -187998,11 +188016,13 @@ const Editor = ({
|
|
|
187998
188016
|
}
|
|
187999
188017
|
return result;
|
|
188000
188018
|
};
|
|
188019
|
+
window.ot = __spreadProps(__spreadValues({}, ot), {
|
|
188020
|
+
oTStore,
|
|
188021
|
+
editor
|
|
188022
|
+
});
|
|
188001
188023
|
}
|
|
188002
|
-
window.ot = ot;
|
|
188003
188024
|
};
|
|
188004
188025
|
react.exports.useEffect(() => {
|
|
188005
|
-
window.ot = ot;
|
|
188006
188026
|
editorInit();
|
|
188007
188027
|
return () => {
|
|
188008
188028
|
editor.dispose();
|
|
@@ -195674,7 +195694,6 @@ const TerminalComponent = (_i) => {
|
|
|
195674
195694
|
writeText(terminal, ((_b2 = crdt == null ? void 0 : crdt.doc) == null ? void 0 : _b2.value) || "");
|
|
195675
195695
|
if (!CRDTInfo.userInfo.uuid)
|
|
195676
195696
|
return;
|
|
195677
|
-
console.log(CRDTInfo.userInfo.uuid);
|
|
195678
195697
|
const postUser = userListStore.getState().userList.find(({
|
|
195679
195698
|
uuid: uuid2
|
|
195680
195699
|
}) => uuid2 === CRDTInfo.userInfo.uuid);
|