@dao42/d42paas-front 0.6.24 → 0.6.25
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 +18 -8
- package/dist/DaoPaaS.umd.js +280 -277
- package/package.json +18 -6
package/dist/DaoPaaS.es.js
CHANGED
|
@@ -44094,7 +44094,8 @@ const CmdKey = () => {
|
|
|
44094
44094
|
hotkey: "a",
|
|
44095
44095
|
mdIcon: "input",
|
|
44096
44096
|
handler: () => {
|
|
44097
|
-
|
|
44097
|
+
var _a2, _b2;
|
|
44098
|
+
(_b2 = (_a2 = useOT.getState()) == null ? void 0 : _a2.socket) == null ? void 0 : _b2.emit("active");
|
|
44098
44099
|
}
|
|
44099
44100
|
}, {
|
|
44100
44101
|
id: "clearCache",
|
|
@@ -44153,7 +44154,6 @@ const CmdKey = () => {
|
|
|
44153
44154
|
}];
|
|
44154
44155
|
const [drawerOpen, setDrawerOpen] = react.exports.useState(false);
|
|
44155
44156
|
const [replayList, setReplayList] = react.exports.useState(null);
|
|
44156
|
-
const io = useOT.getState().socket;
|
|
44157
44157
|
const [hotkeys2, setHotkeys] = react.exports.useState(actions);
|
|
44158
44158
|
react.exports.useEffect(() => {
|
|
44159
44159
|
console.log("leva init");
|
|
@@ -44240,7 +44240,7 @@ const GuiComponent = () => {
|
|
|
44240
44240
|
const LazyTreeComponent = lazy$2(async () => (await Promise.resolve().then(function() {
|
|
44241
44241
|
return index$5;
|
|
44242
44242
|
})).FileTree);
|
|
44243
|
-
const LazyEditorComponent = lazy$2(async () => (await Promise.resolve().then(function() {
|
|
44243
|
+
const LazyEditorComponent$1 = lazy$2(async () => (await Promise.resolve().then(function() {
|
|
44244
44244
|
return index$4;
|
|
44245
44245
|
})).Editor);
|
|
44246
44246
|
const LazyConsoleComponent = lazy$2(async () => (await Promise.resolve().then(function() {
|
|
@@ -44521,7 +44521,7 @@ class DaoPaaS {
|
|
|
44521
44521
|
this.editorDOM = container ? isHTMLElement$1(container) : this.editorDOM;
|
|
44522
44522
|
reactDom.exports.render(/* @__PURE__ */ jsx(react.exports.Suspense, {
|
|
44523
44523
|
fallback: /* @__PURE__ */ jsx(Loading, {}),
|
|
44524
|
-
children: /* @__PURE__ */ jsx(LazyEditorComponent, __spreadProps(__spreadValues({}, props2), {
|
|
44524
|
+
children: /* @__PURE__ */ jsx(LazyEditorComponent$1, __spreadProps(__spreadValues({}, props2), {
|
|
44525
44525
|
serviceWorkerOrigin: this.serviceWorkerOrigin
|
|
44526
44526
|
}))
|
|
44527
44527
|
}), this.editorDOM);
|
|
@@ -44543,7 +44543,9 @@ class DaoPaaS {
|
|
|
44543
44543
|
this.editorDOM = container ? isHTMLElement$1(container) : this.editorDOM;
|
|
44544
44544
|
reactDom.exports.render(/* @__PURE__ */ jsx(react.exports.Suspense, {
|
|
44545
44545
|
fallback: /* @__PURE__ */ jsx(Loading, {}),
|
|
44546
|
-
children: /* @__PURE__ */ jsx(LazyTreeComponent, __spreadValues({}, props2)
|
|
44546
|
+
children: /* @__PURE__ */ jsx(LazyTreeComponent, __spreadProps(__spreadValues({}, props2), {
|
|
44547
|
+
ref: myTree
|
|
44548
|
+
}))
|
|
44547
44549
|
}), this.editorDOM);
|
|
44548
44550
|
}
|
|
44549
44551
|
Console({
|
|
@@ -174319,6 +174321,9 @@ const EditorLayout = newStyled.div`
|
|
|
174319
174321
|
padding: 2px 10px;
|
|
174320
174322
|
transform: scale(0.8);
|
|
174321
174323
|
word-break: keep-all;
|
|
174324
|
+
font-weight: bolder;
|
|
174325
|
+
font-size: 14px;
|
|
174326
|
+
color: #666;
|
|
174322
174327
|
}
|
|
174323
174328
|
|
|
174324
174329
|
.stack-list {
|
|
@@ -189557,6 +189562,8 @@ class MonacoAdapter {
|
|
|
189557
189562
|
} catch (err) {
|
|
189558
189563
|
console.log(err);
|
|
189559
189564
|
}
|
|
189565
|
+
} else {
|
|
189566
|
+
this.trigger("cursorActivity", evt);
|
|
189560
189567
|
}
|
|
189561
189568
|
}
|
|
189562
189569
|
this.ignoreNextChange = false;
|
|
@@ -190081,7 +190088,7 @@ const Editor = ({
|
|
|
190081
190088
|
path
|
|
190082
190089
|
}
|
|
190083
190090
|
};
|
|
190084
|
-
io.emit("editFile", JSON.stringify(crdt));
|
|
190091
|
+
io == null ? void 0 : io.emit("editFile", JSON.stringify(crdt));
|
|
190085
190092
|
};
|
|
190086
190093
|
client.applyOperation = (operation) => {
|
|
190087
190094
|
clientEditor.applyOperation(operation);
|
|
@@ -190114,7 +190121,7 @@ const Editor = ({
|
|
|
190114
190121
|
},
|
|
190115
190122
|
userInfo: lodash$2.exports.pick(userInfo, "uuid", "role")
|
|
190116
190123
|
};
|
|
190117
|
-
io.emit("cursor", JSON.stringify(crdt));
|
|
190124
|
+
io == null ? void 0 : io.emit("cursor", JSON.stringify(crdt));
|
|
190118
190125
|
};
|
|
190119
190126
|
const onBlur = (operation) => {
|
|
190120
190127
|
};
|
|
@@ -198452,6 +198459,9 @@ const useIndexState = create$3((set2) => ({
|
|
|
198452
198459
|
isFolded: arg
|
|
198453
198460
|
})
|
|
198454
198461
|
}));
|
|
198462
|
+
const LazyEditorComponent = lazy$2(async () => (await Promise.resolve().then(function() {
|
|
198463
|
+
return index$4;
|
|
198464
|
+
})).Editor);
|
|
198455
198465
|
const MainLayout = newStyled.div`
|
|
198456
198466
|
width: 100vw;
|
|
198457
198467
|
height: 100vh;
|
|
@@ -198565,7 +198575,7 @@ const Index = (props2) => {
|
|
|
198565
198575
|
fallback: /* @__PURE__ */ jsx(Skeleton, {
|
|
198566
198576
|
count: 10
|
|
198567
198577
|
}),
|
|
198568
|
-
children: /* @__PURE__ */ jsx(
|
|
198578
|
+
children: /* @__PURE__ */ jsx(LazyEditorComponent, {
|
|
198569
198579
|
useLsp: true
|
|
198570
198580
|
})
|
|
198571
198581
|
}) : null
|