@dao42/d42paas-front 0.6.7 → 0.6.11
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 +17 -12
- package/dist/DaoPaaS.umd.js +82 -82
- package/package.json +1 -1
package/dist/DaoPaaS.es.js
CHANGED
|
@@ -28359,7 +28359,8 @@ const PlaygroundInit = (arg) => {
|
|
|
28359
28359
|
const {
|
|
28360
28360
|
ticket,
|
|
28361
28361
|
playgroundId,
|
|
28362
|
-
io
|
|
28362
|
+
io,
|
|
28363
|
+
callback
|
|
28363
28364
|
} = arg;
|
|
28364
28365
|
reactDom.exports.unstable_batchedUpdates(() => {
|
|
28365
28366
|
const setUserInfo = userStore.getState().setUserInfo;
|
|
@@ -28457,6 +28458,7 @@ const PlaygroundInit = (arg) => {
|
|
|
28457
28458
|
dockerInfo2.fileTree && switchFileTree({
|
|
28458
28459
|
data: dockerInfo2.fileTree
|
|
28459
28460
|
});
|
|
28461
|
+
callback && callback();
|
|
28460
28462
|
}
|
|
28461
28463
|
});
|
|
28462
28464
|
io.on("playgroundStatus", (data) => {
|
|
@@ -44424,11 +44426,13 @@ class DaoPaaS {
|
|
|
44424
44426
|
userId: args.userId
|
|
44425
44427
|
}));
|
|
44426
44428
|
PlaygroundInit(__spreadProps(__spreadValues(__spreadValues({}, this.userInfo), args), {
|
|
44427
|
-
io: this.io
|
|
44429
|
+
io: this.io,
|
|
44430
|
+
callback: () => {
|
|
44431
|
+
if (this.components) {
|
|
44432
|
+
this.mapRender(this.components);
|
|
44433
|
+
}
|
|
44434
|
+
}
|
|
44428
44435
|
}));
|
|
44429
|
-
if (this.components) {
|
|
44430
|
-
this.mapRender(this.components);
|
|
44431
|
-
}
|
|
44432
44436
|
});
|
|
44433
44437
|
window.onerror = (message) => {
|
|
44434
44438
|
if (/dError/.test(message)) {
|
|
@@ -187812,7 +187816,8 @@ const Editor = ({
|
|
|
187812
187816
|
containerStyle,
|
|
187813
187817
|
menuStyle,
|
|
187814
187818
|
editorStyle,
|
|
187815
|
-
serviceWorkerOrigin
|
|
187819
|
+
serviceWorkerOrigin,
|
|
187820
|
+
useLsp
|
|
187816
187821
|
}) => {
|
|
187817
187822
|
const divEl = react.exports.useRef(null);
|
|
187818
187823
|
const file = oTStore((state) => state.doc);
|
|
@@ -187973,7 +187978,7 @@ const Editor = ({
|
|
|
187973
187978
|
});
|
|
187974
187979
|
}
|
|
187975
187980
|
};
|
|
187976
|
-
const lspServerInject = (_lan,
|
|
187981
|
+
const lspServerInject = (_lan, useLsp2 = true) => {
|
|
187977
187982
|
languages.register({
|
|
187978
187983
|
id: "ruby",
|
|
187979
187984
|
extensions: [".rb"],
|
|
@@ -187999,7 +188004,7 @@ const Editor = ({
|
|
|
187999
188004
|
extensions: [".ts"],
|
|
188000
188005
|
aliases: ["TypeScript", "ts", "TS", "typescript"]
|
|
188001
188006
|
});
|
|
188002
|
-
if (!
|
|
188007
|
+
if (!useLsp2)
|
|
188003
188008
|
return;
|
|
188004
188009
|
lib.MonacoServices.install(monaco);
|
|
188005
188010
|
const {
|
|
@@ -188019,6 +188024,7 @@ const Editor = ({
|
|
|
188019
188024
|
lib$1.listen({
|
|
188020
188025
|
webSocket,
|
|
188021
188026
|
onConnection: (connection2) => {
|
|
188027
|
+
console.log("lsp inited");
|
|
188022
188028
|
const languageClient = new lib.MonacoLanguageClient({
|
|
188023
188029
|
name: "Language Client",
|
|
188024
188030
|
clientOptions: {
|
|
@@ -188085,9 +188091,6 @@ const Editor = ({
|
|
|
188085
188091
|
}
|
|
188086
188092
|
});
|
|
188087
188093
|
editorEventBinder();
|
|
188088
|
-
const {
|
|
188089
|
-
useLsp
|
|
188090
|
-
} = oTStore.getState().globalData;
|
|
188091
188094
|
lspServerInject(INIT_LANGUAGE, useLsp);
|
|
188092
188095
|
const editorService = editor._codeEditorService;
|
|
188093
188096
|
const openEditorBase = editorService.openCodeEditor.bind(editorService);
|
|
@@ -196649,7 +196652,9 @@ const Index = (props2) => {
|
|
|
196649
196652
|
fallback: /* @__PURE__ */ jsx(Skeleton, {
|
|
196650
196653
|
count: 10
|
|
196651
196654
|
}),
|
|
196652
|
-
children: /* @__PURE__ */ jsx(Editor, {
|
|
196655
|
+
children: /* @__PURE__ */ jsx(Editor, {
|
|
196656
|
+
useLsp: true
|
|
196657
|
+
})
|
|
196653
196658
|
}) : null
|
|
196654
196659
|
}), /* @__PURE__ */ jsxs(RunnerLayout, {
|
|
196655
196660
|
className: `rounded-sm mr-2.5`,
|