@dao42/d42paas-front 0.6.5 → 0.6.9
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 +27 -19
- package/dist/DaoPaaS.umd.js +172 -172
- 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: {},
|
|
@@ -28364,7 +28361,7 @@ const PlaygroundInit = (arg) => {
|
|
|
28364
28361
|
playgroundId,
|
|
28365
28362
|
io
|
|
28366
28363
|
} = arg;
|
|
28367
|
-
reactDom.exports.unstable_batchedUpdates(
|
|
28364
|
+
reactDom.exports.unstable_batchedUpdates(() => {
|
|
28368
28365
|
const setUserInfo = userStore.getState().setUserInfo;
|
|
28369
28366
|
const setUserList = userListStore.getState().setUserList;
|
|
28370
28367
|
const {
|
|
@@ -28388,11 +28385,12 @@ const PlaygroundInit = (arg) => {
|
|
|
28388
28385
|
setGlobalData
|
|
28389
28386
|
} = oTStore.getState();
|
|
28390
28387
|
shadowUserStore.getState();
|
|
28391
|
-
|
|
28392
|
-
|
|
28393
|
-
|
|
28394
|
-
|
|
28395
|
-
|
|
28388
|
+
getAllLocalReplayFile().then((allFiles) => {
|
|
28389
|
+
allFiles.forEach((f2) => {
|
|
28390
|
+
setLocalReplayFile(f2.path, __spreadProps(__spreadValues({}, f2), {
|
|
28391
|
+
revision: 0
|
|
28392
|
+
}));
|
|
28393
|
+
});
|
|
28396
28394
|
});
|
|
28397
28395
|
window.clearCache = () => {
|
|
28398
28396
|
localStorage.clear();
|
|
@@ -28451,7 +28449,7 @@ const PlaygroundInit = (arg) => {
|
|
|
28451
28449
|
setCRDTInfo2(crdt);
|
|
28452
28450
|
const otPlaygroundInfo = oTStore.getState().playgroundInfo;
|
|
28453
28451
|
setPlaygroundInfo(__spreadProps(__spreadValues(__spreadValues({}, playgroundInfo), otPlaygroundInfo), {
|
|
28454
|
-
activeDockerId:
|
|
28452
|
+
activeDockerId: playgroundInfo == null ? void 0 : playgroundInfo.dockerId
|
|
28455
28453
|
}));
|
|
28456
28454
|
if (dockerInfo2) {
|
|
28457
28455
|
(_a2 = otPlaygroundInfo == null ? void 0 : otPlaygroundInfo.dockerInfos) == null ? void 0 : _a2.set(dockerInfo2.dockerId, dockerInfo2);
|
|
@@ -187814,7 +187812,8 @@ const Editor = ({
|
|
|
187814
187812
|
containerStyle,
|
|
187815
187813
|
menuStyle,
|
|
187816
187814
|
editorStyle,
|
|
187817
|
-
serviceWorkerOrigin
|
|
187815
|
+
serviceWorkerOrigin,
|
|
187816
|
+
useLsp
|
|
187818
187817
|
}) => {
|
|
187819
187818
|
const divEl = react.exports.useRef(null);
|
|
187820
187819
|
const file = oTStore((state) => state.doc);
|
|
@@ -187975,7 +187974,7 @@ const Editor = ({
|
|
|
187975
187974
|
});
|
|
187976
187975
|
}
|
|
187977
187976
|
};
|
|
187978
|
-
const lspServerInject = (_lan,
|
|
187977
|
+
const lspServerInject = (_lan, useLsp2 = true) => {
|
|
187979
187978
|
languages.register({
|
|
187980
187979
|
id: "ruby",
|
|
187981
187980
|
extensions: [".rb"],
|
|
@@ -188001,7 +188000,7 @@ const Editor = ({
|
|
|
188001
188000
|
extensions: [".ts"],
|
|
188002
188001
|
aliases: ["TypeScript", "ts", "TS", "typescript"]
|
|
188003
188002
|
});
|
|
188004
|
-
if (!
|
|
188003
|
+
if (!useLsp2)
|
|
188005
188004
|
return;
|
|
188006
188005
|
lib.MonacoServices.install(monaco);
|
|
188007
188006
|
const {
|
|
@@ -188021,6 +188020,7 @@ const Editor = ({
|
|
|
188021
188020
|
lib$1.listen({
|
|
188022
188021
|
webSocket,
|
|
188023
188022
|
onConnection: (connection2) => {
|
|
188023
|
+
console.log("lsp inited");
|
|
188024
188024
|
const languageClient = new lib.MonacoLanguageClient({
|
|
188025
188025
|
name: "Language Client",
|
|
188026
188026
|
clientOptions: {
|
|
@@ -188087,9 +188087,6 @@ const Editor = ({
|
|
|
188087
188087
|
}
|
|
188088
188088
|
});
|
|
188089
188089
|
editorEventBinder();
|
|
188090
|
-
const {
|
|
188091
|
-
useLsp
|
|
188092
|
-
} = oTStore.getState().globalData;
|
|
188093
188090
|
lspServerInject(INIT_LANGUAGE, useLsp);
|
|
188094
188091
|
const editorService = editor._codeEditorService;
|
|
188095
188092
|
const openEditorBase = editorService.openCodeEditor.bind(editorService);
|
|
@@ -195469,7 +195466,7 @@ const XTerm = (_c2) => {
|
|
|
195469
195466
|
const stateStyle = __spreadValues({
|
|
195470
195467
|
height: "100%",
|
|
195471
195468
|
width: "100%",
|
|
195472
|
-
padding: "5px
|
|
195469
|
+
padding: "5px 5px",
|
|
195473
195470
|
backgroundColor: "#1e1e1e"
|
|
195474
195471
|
}, props2);
|
|
195475
195472
|
const xtermFitAddon = new xtermAddonFit.exports.FitAddon();
|
|
@@ -195501,6 +195498,15 @@ const XTerm = (_c2) => {
|
|
|
195501
195498
|
}
|
|
195502
195499
|
onKey == null ? void 0 : onKey(character2);
|
|
195503
195500
|
});
|
|
195501
|
+
term.attachCustomKeyEventHandler((e2) => {
|
|
195502
|
+
if (e2.key === "v" && e2.ctrlKey) {
|
|
195503
|
+
onKey == null ? void 0 : onKey(e2.target.value);
|
|
195504
|
+
return false;
|
|
195505
|
+
}
|
|
195506
|
+
if (e2.key === "r" && e2.ctrlKey) {
|
|
195507
|
+
return false;
|
|
195508
|
+
}
|
|
195509
|
+
});
|
|
195504
195510
|
};
|
|
195505
195511
|
const fitTerminal = () => {
|
|
195506
195512
|
try {
|
|
@@ -196642,7 +196648,9 @@ const Index = (props2) => {
|
|
|
196642
196648
|
fallback: /* @__PURE__ */ jsx(Skeleton, {
|
|
196643
196649
|
count: 10
|
|
196644
196650
|
}),
|
|
196645
|
-
children: /* @__PURE__ */ jsx(Editor, {
|
|
196651
|
+
children: /* @__PURE__ */ jsx(Editor, {
|
|
196652
|
+
useLsp: true
|
|
196653
|
+
})
|
|
196646
196654
|
}) : null
|
|
196647
196655
|
}), /* @__PURE__ */ jsxs(RunnerLayout, {
|
|
196648
196656
|
className: `rounded-sm mr-2.5`,
|