@dao42/d42paas-front 0.9.3 → 0.9.4

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.
@@ -19031,7 +19031,7 @@ class DaoChannel {
19031
19031
  this.send("addFileToUnitTest", path);
19032
19032
  }
19033
19033
  removeFileFromUnitTest(path) {
19034
- this.send("removeFileFromUnitTest ", path);
19034
+ this.send("removeFileFromUnitTest", path);
19035
19035
  }
19036
19036
  }
19037
19037
  let activeTimer;
@@ -147078,7 +147078,7 @@ class EditorData {
147078
147078
  }, callback, cover = false) {
147079
147079
  let gotModel = editor$1.getModels().find((x2) => x2.uri.path.includes(path));
147080
147080
  if (!gotModel && !!cover) {
147081
- gotModel = editor$1.createModel(value, language2, Uri.parse(`file://${APP_DIR2}${path}`));
147081
+ gotModel = editor$1.createModel(value, language2, Uri.parse(`file:///root/app${path}`));
147082
147082
  }
147083
147083
  gotModel == null ? void 0 : gotModel.setEOL(editor$1.EndOfLineSequence.LF);
147084
147084
  const _fileTreeStack = [
@@ -161165,6 +161165,7 @@ const TreeRootLayout = newStyled.div`
161165
161165
  position: relative;
161166
161166
  .item-title-wrapper {
161167
161167
  display: flex;
161168
+ align-items: center;
161168
161169
  width: auto;
161169
161170
  overflow: hidden;
161170
161171
  }
@@ -161197,6 +161198,7 @@ const TreeRootLayout = newStyled.div`
161197
161198
  }
161198
161199
  .rct-tree-item-button {
161199
161200
  padding: 6px 0;
161201
+ height: 100%;
161200
161202
  color: #e9f3f0;
161201
161203
  }
161202
161204
  .expand-panel {
@@ -161448,10 +161450,11 @@ const TreeRootLayout = newStyled.div`
161448
161450
  }
161449
161451
  .folder-icon {
161450
161452
  color: #54aeff;
161451
- margin-left: 2px;
161453
+ margin-left: 8px;
161452
161454
  width: 13px;
161453
161455
  height: 13px;
161454
161456
  flex: 0 0 13px;
161457
+ transform: translateY(-1px);
161455
161458
  }
161456
161459
 
161457
161460
  .actions-container {
@@ -161482,6 +161485,11 @@ const TreeRootLayout = newStyled.div`
161482
161485
  }
161483
161486
  }
161484
161487
  }
161488
+ .folder-wrapper {
161489
+ display: flex;
161490
+ align-items: center;
161491
+ margin-right: 8px;
161492
+ }
161485
161493
  `;
161486
161494
  var style = "";
161487
161495
  const icondb = [
@@ -181723,7 +181731,7 @@ const FileTreeActions = (props) => {
181723
181731
  useLockFeature,
181724
181732
  useUnitTestFeature,
181725
181733
  treeNode,
181726
- useHideFeature,
181734
+ useEnableHideFeature,
181727
181735
  children
181728
181736
  } = props;
181729
181737
  const channel = daoStore((state) => state.channel);
@@ -181750,7 +181758,7 @@ const FileTreeActions = (props) => {
181750
181758
  hide: !treeNode.hide
181751
181759
  });
181752
181760
  };
181753
- const Visible2 = useHideFeature ? treeNode.hide ? /* @__PURE__ */ jsx(UnvisibleIcon, {}) : /* @__PURE__ */ jsx(VisibleIcon, {}) : null;
181761
+ const Visible2 = useEnableHideFeature ? treeNode.hide ? /* @__PURE__ */ jsx(UnvisibleIcon, {}) : /* @__PURE__ */ jsx(VisibleIcon, {}) : null;
181754
181762
  const handleAddFileToUnitTestEvent = () => {
181755
181763
  channel == null ? void 0 : channel.addFileToUnitTest(treeNode.index);
181756
181764
  };
@@ -181759,7 +181767,7 @@ const FileTreeActions = (props) => {
181759
181767
  };
181760
181768
  const handleUnitTestEvent = (e2) => {
181761
181769
  stopPropagation(e2);
181762
- if (treeNode.unittest)
181770
+ if (!treeNode.unittest)
181763
181771
  return handleAddFileToUnitTestEvent();
181764
181772
  handleRemoveFileFromUnitTestEvent();
181765
181773
  };
@@ -181807,6 +181815,7 @@ const FileTree = ({
181807
181815
  treeItemHeight,
181808
181816
  useLockFeature,
181809
181817
  useUnitTestFeature,
181818
+ useEnableHideFeature,
181810
181819
  useHideFeature
181811
181820
  }) => {
181812
181821
  const [focusedItem, setFocusedItem] = react.exports.useState();
@@ -182579,7 +182588,6 @@ const FileTree = ({
182579
182588
  },
182580
182589
  onSelectItems: (items) => {
182581
182590
  onSelectFileOrFolder(items);
182582
- console.log("items", items);
182583
182591
  onCustomSelect == null ? void 0 : onCustomSelect(items, treeData[items[0]].type);
182584
182592
  },
182585
182593
  renderItem: (data) => {
@@ -182595,10 +182603,8 @@ const FileTree = ({
182595
182603
  const path = item.index;
182596
182604
  const paddingLeft = depth > 0 ? depth * 16 + 8 : 8;
182597
182605
  const fileIconCls = getClassWithColor(item.data);
182598
- const folderIcon = !fileIconCls && item.hasChildren ? /* @__PURE__ */ jsx("div", __spreadProps(__spreadValues({}, context.arrowProps), {
182599
- style: {
182600
- marginRight: 8
182601
- },
182606
+ const folderIcon = item.hasChildren ? /* @__PURE__ */ jsx("div", __spreadProps(__spreadValues({}, context.arrowProps), {
182607
+ className: "folder-wrapper",
182602
182608
  children: /* @__PURE__ */ jsx(FolderFill, {
182603
182609
  className: "folder-icon"
182604
182610
  })
@@ -182609,7 +182615,7 @@ const FileTree = ({
182609
182615
  })) : null;
182610
182616
  const parentPath = getParentPathByPath(path);
182611
182617
  const inputError = treeData[`${parentPath}/${fileOrFolderName}`];
182612
- if (item.hide && !useHideFeature)
182618
+ if (item.hide && useEnableHideFeature && useHideFeature)
182613
182619
  return null;
182614
182620
  return /* @__PURE__ */ react.exports.createElement("li", __spreadProps(__spreadValues(__spreadValues({}, context.itemContainerWithChildrenProps), context.itemContainerWithoutChildrenProps), {
182615
182621
  key: item.index,
@@ -182620,7 +182626,7 @@ const FileTree = ({
182620
182626
  [`${itemPrefixCls}-hasChildren`]: children,
182621
182627
  "light-selected": renameItem === path
182622
182628
  })
182623
- }), /* @__PURE__ */ jsxs("div", __spreadProps(__spreadValues({
182629
+ }), /* @__PURE__ */ jsx("div", __spreadProps(__spreadValues({
182624
182630
  className: classNames(prefixCls, {
182625
182631
  [`${prefixCls}-selected`]: context.isSelected,
182626
182632
  [`${prefixCls}-expanded`]: context.isExpanded,
@@ -182632,7 +182638,7 @@ const FileTree = ({
182632
182638
  paddingLeft
182633
182639
  }
182634
182640
  }, item.hasChildren ? context.arrowProps : context.interactiveElementProps), {
182635
- children: [arrow, folderIcon, renameItem === path ? /* @__PURE__ */ jsx("input", {
182641
+ children: renameItem === path ? /* @__PURE__ */ jsx("input", {
182636
182642
  className: classNames("text-black focus:outline-none active:outline-none create-file-folder", {
182637
182643
  error: inputError
182638
182644
  }),
@@ -182659,9 +182665,9 @@ const FileTree = ({
182659
182665
  }),
182660
182666
  children: [/* @__PURE__ */ jsxs("div", {
182661
182667
  className: "item-title-wrapper",
182662
- children: [fileIconCls && /* @__PURE__ */ jsx("em", {
182668
+ children: [!item.hasChildren && fileIconCls && /* @__PURE__ */ jsx("em", {
182663
182669
  className: classNames("file-icon", fileIconCls || "not-cls")
182664
- }), defaultFileIcon, /* @__PURE__ */ jsx("span", {
182670
+ }), arrow, folderIcon, defaultFileIcon, /* @__PURE__ */ jsx("span", {
182665
182671
  className: "item-title",
182666
182672
  title: item.data,
182667
182673
  children: title
@@ -182688,7 +182694,8 @@ const FileTree = ({
182688
182694
  treeNode: item,
182689
182695
  useUnitTestFeature,
182690
182696
  useLockFeature,
182691
- useHideFeature
182697
+ useHideFeature,
182698
+ useEnableHideFeature
182692
182699
  })
182693
182700
  }), !fileLoading[item.index] && renameItem !== path && /* @__PURE__ */ jsx(Whisper$1, {
182694
182701
  placement: "bottomEnd",
@@ -182718,7 +182725,7 @@ const FileTree = ({
182718
182725
  })
182719
182726
  }) : null]
182720
182727
  }))
182721
- })]
182728
+ })
182722
182729
  })), children);
182723
182730
  },
182724
182731
  children: /* @__PURE__ */ jsx(Tree$1, {
@@ -183547,7 +183554,7 @@ var FExtension = /* @__PURE__ */ ((FExtension2) => {
183547
183554
  FExtension2["dart"] = "dart";
183548
183555
  FExtension2["dockerfile"] = "dockerfile";
183549
183556
  FExtension2["ecl"] = "ecl";
183550
- FExtension2["erl"] = "erl";
183557
+ FExtension2["erl"] = "erlang";
183551
183558
  FExtension2["fs"] = "fsharp";
183552
183559
  FExtension2["fsi"] = "fsharp";
183553
183560
  FExtension2["ml"] = "fsharp";
@@ -198856,7 +198863,6 @@ function operationFromMonacoChanges(changeEvent, liveOperationCode) {
198856
198863
  liveOperationCode: composedCode
198857
198864
  };
198858
198865
  }
198859
- new IoClient(0);
198860
198866
  languages.register({
198861
198867
  id: "ruby",
198862
198868
  extensions: [".rb"],
@@ -199143,7 +199149,7 @@ class MonacoAdapter {
199143
199149
  this.languageClient = new lib.MonacoLanguageClient({
199144
199150
  name: "Language Client",
199145
199151
  clientOptions: {
199146
- documentSelector: ["java", "ruby", "python", "go", "c", "cpp", "csharp", "typescript", "php", "lua", "erlang", "rust", "clojure", "dart", "erlang", "kotlin", "objective-c"],
199152
+ documentSelector: ["java", "ruby", "python", "go", "c", "cpp", "csharp", "typescript", "php", "lua", "erlang", "rust", "clojure", "dart", "kotlin", "objective-c"],
199147
199153
  errorHandler: {
199148
199154
  error: () => lib.ErrorAction.Continue,
199149
199155
  closed: () => lib.CloseAction.DoNotRestart