@dao42/d42paas-front 0.6.6 → 0.6.10
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 +35 -24
- package/dist/DaoPaaS.umd.js +174 -174
- package/package.json +1 -1
package/dist/DaoPaaS.es.js
CHANGED
|
@@ -15029,14 +15029,11 @@ const oTStore = create$3((set2) => ({
|
|
|
15029
15029
|
asyncType: arg
|
|
15030
15030
|
}))
|
|
15031
15031
|
}));
|
|
15032
|
-
const fileTreeStore = create$3(
|
|
15032
|
+
const fileTreeStore = create$3((set2) => ({
|
|
15033
15033
|
fileTree: {},
|
|
15034
15034
|
switchFileTree: (arg) => set2(() => ({
|
|
15035
15035
|
fileTree: arg
|
|
15036
15036
|
}))
|
|
15037
|
-
}), {
|
|
15038
|
-
name: "fileTree",
|
|
15039
|
-
getStorage: () => localStorage
|
|
15040
15037
|
}));
|
|
15041
15038
|
const userStore = create$3(persist((set2) => ({
|
|
15042
15039
|
userInfo: {},
|
|
@@ -28362,9 +28359,10 @@ const PlaygroundInit = (arg) => {
|
|
|
28362
28359
|
const {
|
|
28363
28360
|
ticket,
|
|
28364
28361
|
playgroundId,
|
|
28365
|
-
io
|
|
28362
|
+
io,
|
|
28363
|
+
callback
|
|
28366
28364
|
} = arg;
|
|
28367
|
-
reactDom.exports.unstable_batchedUpdates(
|
|
28365
|
+
reactDom.exports.unstable_batchedUpdates(() => {
|
|
28368
28366
|
const setUserInfo = userStore.getState().setUserInfo;
|
|
28369
28367
|
const setUserList = userListStore.getState().setUserList;
|
|
28370
28368
|
const {
|
|
@@ -28388,11 +28386,12 @@ const PlaygroundInit = (arg) => {
|
|
|
28388
28386
|
setGlobalData
|
|
28389
28387
|
} = oTStore.getState();
|
|
28390
28388
|
shadowUserStore.getState();
|
|
28391
|
-
|
|
28392
|
-
|
|
28393
|
-
|
|
28394
|
-
|
|
28395
|
-
|
|
28389
|
+
getAllLocalReplayFile().then((allFiles) => {
|
|
28390
|
+
allFiles.forEach((f2) => {
|
|
28391
|
+
setLocalReplayFile(f2.path, __spreadProps(__spreadValues({}, f2), {
|
|
28392
|
+
revision: 0
|
|
28393
|
+
}));
|
|
28394
|
+
});
|
|
28396
28395
|
});
|
|
28397
28396
|
window.clearCache = () => {
|
|
28398
28397
|
localStorage.clear();
|
|
@@ -28458,7 +28457,7 @@ const PlaygroundInit = (arg) => {
|
|
|
28458
28457
|
setDockerInfo(__spreadValues(__spreadValues({}, oTStore.getState().dockerInfo), dockerInfo2));
|
|
28459
28458
|
dockerInfo2.fileTree && switchFileTree({
|
|
28460
28459
|
data: dockerInfo2.fileTree
|
|
28461
|
-
});
|
|
28460
|
+
}) && callback && callback();
|
|
28462
28461
|
}
|
|
28463
28462
|
});
|
|
28464
28463
|
io.on("playgroundStatus", (data) => {
|
|
@@ -44426,11 +44425,13 @@ class DaoPaaS {
|
|
|
44426
44425
|
userId: args.userId
|
|
44427
44426
|
}));
|
|
44428
44427
|
PlaygroundInit(__spreadProps(__spreadValues(__spreadValues({}, this.userInfo), args), {
|
|
44429
|
-
io: this.io
|
|
44428
|
+
io: this.io,
|
|
44429
|
+
callback: () => {
|
|
44430
|
+
if (this.components) {
|
|
44431
|
+
this.mapRender(this.components);
|
|
44432
|
+
}
|
|
44433
|
+
}
|
|
44430
44434
|
}));
|
|
44431
|
-
if (this.components) {
|
|
44432
|
-
this.mapRender(this.components);
|
|
44433
|
-
}
|
|
44434
44435
|
});
|
|
44435
44436
|
window.onerror = (message) => {
|
|
44436
44437
|
if (/dError/.test(message)) {
|
|
@@ -187814,7 +187815,8 @@ const Editor = ({
|
|
|
187814
187815
|
containerStyle,
|
|
187815
187816
|
menuStyle,
|
|
187816
187817
|
editorStyle,
|
|
187817
|
-
serviceWorkerOrigin
|
|
187818
|
+
serviceWorkerOrigin,
|
|
187819
|
+
useLsp
|
|
187818
187820
|
}) => {
|
|
187819
187821
|
const divEl = react.exports.useRef(null);
|
|
187820
187822
|
const file = oTStore((state) => state.doc);
|
|
@@ -187975,7 +187977,7 @@ const Editor = ({
|
|
|
187975
187977
|
});
|
|
187976
187978
|
}
|
|
187977
187979
|
};
|
|
187978
|
-
const lspServerInject = (_lan,
|
|
187980
|
+
const lspServerInject = (_lan, useLsp2 = true) => {
|
|
187979
187981
|
languages.register({
|
|
187980
187982
|
id: "ruby",
|
|
187981
187983
|
extensions: [".rb"],
|
|
@@ -188001,7 +188003,7 @@ const Editor = ({
|
|
|
188001
188003
|
extensions: [".ts"],
|
|
188002
188004
|
aliases: ["TypeScript", "ts", "TS", "typescript"]
|
|
188003
188005
|
});
|
|
188004
|
-
if (!
|
|
188006
|
+
if (!useLsp2)
|
|
188005
188007
|
return;
|
|
188006
188008
|
lib.MonacoServices.install(monaco);
|
|
188007
188009
|
const {
|
|
@@ -188021,6 +188023,7 @@ const Editor = ({
|
|
|
188021
188023
|
lib$1.listen({
|
|
188022
188024
|
webSocket,
|
|
188023
188025
|
onConnection: (connection2) => {
|
|
188026
|
+
console.log("lsp inited");
|
|
188024
188027
|
const languageClient = new lib.MonacoLanguageClient({
|
|
188025
188028
|
name: "Language Client",
|
|
188026
188029
|
clientOptions: {
|
|
@@ -188087,9 +188090,6 @@ const Editor = ({
|
|
|
188087
188090
|
}
|
|
188088
188091
|
});
|
|
188089
188092
|
editorEventBinder();
|
|
188090
|
-
const {
|
|
188091
|
-
useLsp
|
|
188092
|
-
} = oTStore.getState().globalData;
|
|
188093
188093
|
lspServerInject(INIT_LANGUAGE, useLsp);
|
|
188094
188094
|
const editorService = editor._codeEditorService;
|
|
188095
188095
|
const openEditorBase = editorService.openCodeEditor.bind(editorService);
|
|
@@ -195469,7 +195469,7 @@ const XTerm = (_c2) => {
|
|
|
195469
195469
|
const stateStyle = __spreadValues({
|
|
195470
195470
|
height: "100%",
|
|
195471
195471
|
width: "100%",
|
|
195472
|
-
padding: "5px
|
|
195472
|
+
padding: "5px 5px",
|
|
195473
195473
|
backgroundColor: "#1e1e1e"
|
|
195474
195474
|
}, props2);
|
|
195475
195475
|
const xtermFitAddon = new xtermAddonFit.exports.FitAddon();
|
|
@@ -195501,6 +195501,15 @@ const XTerm = (_c2) => {
|
|
|
195501
195501
|
}
|
|
195502
195502
|
onKey == null ? void 0 : onKey(character2);
|
|
195503
195503
|
});
|
|
195504
|
+
term.attachCustomKeyEventHandler((e2) => {
|
|
195505
|
+
if (e2.key === "v" && e2.ctrlKey) {
|
|
195506
|
+
onKey == null ? void 0 : onKey(e2.target.value);
|
|
195507
|
+
return false;
|
|
195508
|
+
}
|
|
195509
|
+
if (e2.key === "r" && e2.ctrlKey) {
|
|
195510
|
+
return false;
|
|
195511
|
+
}
|
|
195512
|
+
});
|
|
195504
195513
|
};
|
|
195505
195514
|
const fitTerminal = () => {
|
|
195506
195515
|
try {
|
|
@@ -196642,7 +196651,9 @@ const Index = (props2) => {
|
|
|
196642
196651
|
fallback: /* @__PURE__ */ jsx(Skeleton, {
|
|
196643
196652
|
count: 10
|
|
196644
196653
|
}),
|
|
196645
|
-
children: /* @__PURE__ */ jsx(Editor, {
|
|
196654
|
+
children: /* @__PURE__ */ jsx(Editor, {
|
|
196655
|
+
useLsp: true
|
|
196656
|
+
})
|
|
196646
196657
|
}) : null
|
|
196647
196658
|
}), /* @__PURE__ */ jsxs(RunnerLayout, {
|
|
196648
196659
|
className: `rounded-sm mr-2.5`,
|