@dao42/d42paas-front 0.7.47 → 0.7.51

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.
@@ -27160,7 +27160,7 @@ var DropdownMenu$1 = /* @__PURE__ */ React.forwardRef(function(props2, ref) {
27160
27160
  if (sidenav !== null && sidenav !== void 0 && sidenav.expanded) {
27161
27161
  return /* @__PURE__ */ jsx(SidenavDropdownMenu$1, __spreadValues({}, omit_1(props2, "classPrefix")));
27162
27162
  }
27163
- var _omit2 = omit_1(rest2, ["trigger"]), icon = _omit2.icon, className = _omit2.className, disabled = _omit2.disabled, menuProps = _objectWithoutPropertiesLoose$4(_omit2, ["icon", "className", "disabled"]);
27163
+ var _omit = omit_1(rest2, ["trigger"]), icon = _omit.icon, className = _omit.className, disabled = _omit.disabled, menuProps = _objectWithoutPropertiesLoose$4(_omit, ["icon", "className", "disabled"]);
27164
27164
  var Icon3 = rtl ? AngleLeftIcon : AngleRightIcon;
27165
27165
  return /* @__PURE__ */ jsx(Menu$3, {
27166
27166
  openMenuOn: ["mouseover", "click"],
@@ -44490,7 +44490,6 @@ const CmdKey = () => {
44490
44490
  const [replayList, setReplayList] = react.exports.useState(null);
44491
44491
  const [hotkeys2, setHotkeys] = react.exports.useState(actions);
44492
44492
  react.exports.useEffect(() => {
44493
- console.log("leva init");
44494
44493
  if (ninjaKeys.current) {
44495
44494
  ninjaKeys.current.data = hotkeys2;
44496
44495
  }
@@ -44850,8 +44849,7 @@ class DaoPaaS {
44850
44849
  }
44851
44850
  mapRender(components) {
44852
44851
  components == null ? void 0 : components.forEach((arg, _index) => {
44853
- const omitObj = _omit(__spreadValues({}, arg));
44854
- _omit();
44852
+ const omitObj = lodash$2.exports.omit(__spreadValues({}, arg), ["item", "container"]);
44855
44853
  switch (arg.item) {
44856
44854
  case "Page":
44857
44855
  this.Page({
@@ -44933,7 +44931,6 @@ class DaoPaaS {
44933
44931
  props: props2
44934
44932
  }) {
44935
44933
  this.editorDOM = container ? isHTMLElement$1(container) : this.editorDOM;
44936
- console.log(props2, 374);
44937
44934
  reactDom.exports.render(/* @__PURE__ */ jsx(react.exports.Suspense, {
44938
44935
  fallback: /* @__PURE__ */ jsx(Loading, {}),
44939
44936
  children: /* @__PURE__ */ jsx(LazyTreeComponent, __spreadValues({}, props2))
@@ -44963,9 +44960,6 @@ class DaoPaaS {
44963
44960
  function isHTMLElement$1(arg) {
44964
44961
  return !/HTMLDivElement|HTMLElement/.test(Object.prototype.toString.call(arg)) ? document.querySelector(arg) : arg;
44965
44962
  }
44966
- function _omit(arg, arg1) {
44967
- throw new Error("Function not implemented.");
44968
- }
44969
44963
  var __assign$a = globalThis && globalThis.__assign || function() {
44970
44964
  __assign$a = Object.assign || function(t2) {
44971
44965
  for (var s2, i = 1, n2 = arguments.length; i < n2; i++) {
@@ -47035,7 +47029,7 @@ function _render(props2, slot, tag, name) {
47035
47029
  if (slot === void 0) {
47036
47030
  slot = {};
47037
47031
  }
47038
- var _omit2 = omit(props2, ["unmount", "static"]), _omit$as = _omit2.as, Component = _omit$as === void 0 ? tag : _omit$as, children = _omit2.children, _omit$refName = _omit2.refName, refName = _omit$refName === void 0 ? "ref" : _omit$refName, passThroughProps = _objectWithoutPropertiesLoose(_omit2, ["as", "children", "refName"]);
47032
+ var _omit = omit(props2, ["unmount", "static"]), _omit$as = _omit.as, Component = _omit$as === void 0 ? tag : _omit$as, children = _omit.children, _omit$refName = _omit.refName, refName = _omit$refName === void 0 ? "ref" : _omit$refName, passThroughProps = _objectWithoutPropertiesLoose(_omit, ["as", "children", "refName"]);
47039
47033
  var refRelatedProps = props2.ref !== void 0 ? (_ref2 = {}, _ref2[refName] = props2.ref, _ref2) : {};
47040
47034
  var resolvedChildren = typeof children === "function" ? children(slot) : children;
47041
47035
  if (passThroughProps.className && typeof passThroughProps.className === "function") {
@@ -174567,8 +174561,8 @@ const FileTree = ({
174567
174561
  return /* @__PURE__ */ jsx(FollowLayout, {
174568
174562
  name: "file",
174569
174563
  children: /* @__PURE__ */ jsxs(TreeRootLayout, {
174564
+ className: "tree-root-containe",
174570
174565
  ref: treeRef,
174571
- className: `tree-root-layout`,
174572
174566
  dropBgColor,
174573
174567
  dropTextColor,
174574
174568
  hoverBgColor,
@@ -190161,6 +190155,7 @@ class MonacoAdapter {
190161
190155
  action && action.apply(this, args);
190162
190156
  }
190163
190157
  onChange(evt) {
190158
+ console.log("eol", evt.eol);
190164
190159
  if (!evt.changes)
190165
190160
  return;
190166
190161
  if (!this.ignoreNextChange) {
@@ -190173,7 +190168,7 @@ class MonacoAdapter {
190173
190168
  const {
190174
190169
  operation,
190175
190170
  liveOperationCode
190176
- } = operationFromMonacoChanges(evt, this.liveOperationCode);
190171
+ } = operationFromMonacoChanges(evt, this.liveOperationCode.replace(/\r\n/gim, "\n"));
190177
190172
  this.liveOperationCode = liveOperationCode;
190178
190173
  this.trigger("change", operation);
190179
190174
  } catch (err) {
@@ -220633,7 +220628,7 @@ const Editor = ({
220633
220628
  setCRDTInfo22(__spreadProps(__spreadValues({}, CRDTInfo22), {
220634
220629
  file: {
220635
220630
  action: "Get",
220636
- value: model.getValue(),
220631
+ value: model.getValue(editor$1.EndOfLinePreference.LF),
220637
220632
  path: model.uri.path.replace(APP_DIR, "")
220638
220633
  }
220639
220634
  }));
@@ -220683,17 +220678,17 @@ const Editor = ({
220683
220678
  var _a2;
220684
220679
  const applyDoc = oTStore.getState().doc;
220685
220680
  console.log(clientEditor.liveOperationCode);
220681
+ client.applyClient(operation);
220686
220682
  setTimeout(() => {
220687
- client.applyClient(operation);
220688
220683
  setLocalFile((applyDoc == null ? void 0 : applyDoc.path) ? applyDoc == null ? void 0 : applyDoc.path : "singleFile", {
220689
- value: editor.getValue(),
220684
+ value: editor.getModel().getValue(editor$1.EndOfLinePreference.LF),
220690
220685
  revision: client.revision
220691
220686
  });
220692
220687
  }, 0);
220693
220688
  if ((_a2 = applyDoc == null ? void 0 : applyDoc.path) == null ? void 0 : _a2.includes("md")) {
220694
- setMarkdownVal(editor.getValue());
220689
+ setMarkdownVal(editor.getModel().getValue(editor$1.EndOfLinePreference.LF));
220695
220690
  }
220696
- setKeepVal(editor.getValue());
220691
+ setKeepVal(editor.getModel().getValue(editor$1.EndOfLinePreference.LF));
220697
220692
  };
220698
220693
  const onDidScroll = (evt) => {
220699
220694
  var _a2;
@@ -220908,7 +220903,7 @@ const Editor = ({
220908
220903
  setTimeout(() => {
220909
220904
  var _a3, _b3;
220910
220905
  if ((_b3 = (_a3 = _d2 == null ? void 0 : _d2.file) == null ? void 0 : _a3.path) == null ? void 0 : _b3.includes("md")) {
220911
- setMarkdownVal(editor.getValue());
220906
+ setMarkdownVal(editor.getModel().getValue(1));
220912
220907
  }
220913
220908
  }, 100);
220914
220909
  }
@@ -221040,7 +221035,7 @@ const Editor = ({
221040
221035
  }), /* @__PURE__ */ jsxs(EditorLayout, {
221041
221036
  style: containerStyle,
221042
221037
  theme,
221043
- className: `editor-layout flex flex-col`,
221038
+ className: `editor-container flex flex-col`,
221044
221039
  children: [/* @__PURE__ */ jsx(FileTreeStack, {
221045
221040
  editor,
221046
221041
  menuStyle,
@@ -221049,7 +221044,7 @@ const Editor = ({
221049
221044
  }), /* @__PURE__ */ jsx(ContentLayout, {
221050
221045
  ref: divEl,
221051
221046
  userList: userListStore.getState().userList,
221052
- className: "editor-content flex-1",
221047
+ className: "editor-container flex-1",
221053
221048
  style: editorStyle
221054
221049
  })]
221055
221050
  })]
@@ -221132,7 +221127,7 @@ const FileTreeStack = ({
221132
221127
  menuStyle,
221133
221128
  id: "menu-list",
221134
221129
  ref,
221135
- className: "flex flex-row stack-list items-center flex-shrink-0 scroll-smooth no-scrollbar overflow-x-scroll bg-codezone-black overflow-auto touch-pan-x",
221130
+ className: "flex flex-row file-list-container items-center flex-shrink-0 scroll-smooth no-scrollbar overflow-x-scroll bg-codezone-black overflow-auto touch-pan-x",
221136
221131
  children: fileTreeStack == null ? void 0 : fileTreeStack.map((f2, index2) => /* @__PURE__ */ jsxs("li", {
221137
221132
  className: `
221138
221133
  flex
@@ -228400,7 +228395,7 @@ const Console = (_e2) => {
228400
228395
  }, [dockerStatus]);
228401
228396
  return /* @__PURE__ */ jsx(FollowLayout, {
228402
228397
  children: /* @__PURE__ */ jsx("div", {
228403
- className: props2.className ? props2.className : "",
228398
+ className: `console-container ${props2.className ? props2.className : ""}`,
228404
228399
  style: {
228405
228400
  height: "100%",
228406
228401
  width: "100%"
@@ -228706,7 +228701,7 @@ const TerminalComponent = (_i) => {
228706
228701
  return /* @__PURE__ */ jsx(FollowLayout, {
228707
228702
  name: "terminal",
228708
228703
  children: /* @__PURE__ */ jsx("div", {
228709
- className: props2.className ? props2.className : "",
228704
+ className: "terminal-container shell-container",
228710
228705
  id: "terminal",
228711
228706
  style: {
228712
228707
  height: "100%",
@@ -229054,7 +229049,7 @@ const Avatar = (_m) => {
229054
229049
  "user"
229055
229050
  ]);
229056
229051
  return /* @__PURE__ */ jsx(AvatarLayout, __spreadValues({
229057
- className: "rounded-full motion-safe:hover:scale-110 h-8 w-8 self-center bg-cover bg-no-repeat bg-center border-2",
229052
+ className: "avatar-container rounded-full motion-safe:hover:scale-110 h-8 w-8 self-center bg-cover bg-no-repeat bg-center border-2",
229058
229053
  user
229059
229054
  }, props2));
229060
229055
  };