@dovetail-v2/refine 0.1.18-alpha.2 → 0.1.18-alpha.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.
@@ -1,4 +1,4 @@
1
- import { j as jsxRuntimeExports } from "./index-4f767faa.js";
1
+ import { j as jsxRuntimeExports } from "./index-ad86ff56.js";
2
2
  import * as monaco from "monaco-editor";
3
3
  import { useRef, useEffect } from "react";
4
4
  import "i18next";
@@ -1176,6 +1176,8 @@ const exec_pod = "Execute shell";
1176
1176
  const search$1 = "Search";
1177
1177
  const edit_label$1 = "Edit label";
1178
1178
  const csi$1 = "CSI driver";
1179
+ const confirm$2 = "Confirm";
1180
+ const no_limitation_rule$1 = "No limitation";
1179
1181
  const dovetail$1 = {
1180
1182
  copy: copy$2,
1181
1183
  reset_arguments: reset_arguments$1,
@@ -1347,7 +1349,9 @@ const dovetail$1 = {
1347
1349
  exec_pod,
1348
1350
  search: search$1,
1349
1351
  edit_label: edit_label$1,
1350
- csi: csi$1
1352
+ csi: csi$1,
1353
+ confirm: confirm$2,
1354
+ no_limitation_rule: no_limitation_rule$1
1351
1355
  };
1352
1356
  const EN = {
1353
1357
  dovetail: dovetail$1
@@ -1577,12 +1581,14 @@ const suffix_format_rule_3 = "后跟斜杠 (/),即第一个 (/) 前的内容
1577
1581
  const name_format_rule_1 = "由字母、数字、连字符 (-)、下划线(_) 或点 (.) 组成";
1578
1582
  const name_format_rule_2 = "以字母或数字开头和结尾";
1579
1583
  const name_format_rule_3 = "不超过 63 个字符";
1584
+ const no_limitation_rule = "不限制";
1580
1585
  const taint_effect_NoSchedule_tooltip_1 = "正在节点上运行的 Pod 不会被驱逐。";
1581
1586
  const taint_effect_NoSchedule_tooltip_2 = "新 Pod 不会调度到污点节点,除非有匹配的容忍度。";
1582
1587
  const taint_effect_PreferNoSchedule_tooltip_1 = "不容忍污点的 Pod 将被立即驱逐。";
1583
1588
  const taint_effect_PreferNoSchedule_tooltip_2 = "容忍污点但未设置容忍时长的 Pod 将继续运行。";
1584
1589
  const taint_effect_PreferNoSchedule_tooltip_3 = "容忍污点并设置了容忍时长的 Pod 将按指定时间运行,时间结束后被驱逐。";
1585
1590
  const taint_effect_NoExecute_tooltip_3 = "控制平面将尝试避免将不能容忍污点的 Pod 调度到节点上,但无法保证完全避免。";
1591
+ const confirm$1 = "确认";
1586
1592
  const dovetail = {
1587
1593
  copy: copy$1,
1588
1594
  reset_arguments,
@@ -1812,12 +1818,14 @@ const dovetail = {
1812
1818
  name_format_rule_1,
1813
1819
  name_format_rule_2,
1814
1820
  name_format_rule_3,
1821
+ no_limitation_rule,
1815
1822
  taint_effect_NoSchedule_tooltip_1,
1816
1823
  taint_effect_NoSchedule_tooltip_2,
1817
1824
  taint_effect_PreferNoSchedule_tooltip_1,
1818
1825
  taint_effect_PreferNoSchedule_tooltip_2,
1819
1826
  taint_effect_PreferNoSchedule_tooltip_3,
1820
- taint_effect_NoExecute_tooltip_3
1827
+ taint_effect_NoExecute_tooltip_3,
1828
+ confirm: confirm$1
1821
1829
  };
1822
1830
  const ZH = {
1823
1831
  dovetail
@@ -9590,7 +9598,7 @@ function PVCDistributeStorage({ pvc: pvc2, editable }) {
9590
9598
  const formRef = useRef(null);
9591
9599
  const value2 = (_b = (_a = pvc2.spec.resources) == null ? void 0 : _a.requests) == null ? void 0 : _b.storage;
9592
9600
  return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { children: [
9593
- /* @__PURE__ */ jsxRuntimeExports.jsx(Units.Byte, { rawValue: parseSi(value2), decimals: 1 }),
9601
+ /* @__PURE__ */ jsxRuntimeExports.jsx(Units.Byte, { rawValue: parseSi(value2), decimals: 2 }),
9594
9602
  editable && /* @__PURE__ */ jsxRuntimeExports.jsx(
9595
9603
  EditField,
9596
9604
  {
@@ -10915,7 +10923,7 @@ const ServiceOutClusterAccessComponent = ({
10915
10923
  children: content || "-"
10916
10924
  });
10917
10925
  };
10918
- const index_1sc40y3 = "";
10926
+ const index_1es4s7t = "";
10919
10927
  const TagWrapper = "t13a6vox";
10920
10928
  const TagStyle = "t12ikbmp";
10921
10929
  const Tags = (props) => {
@@ -12262,7 +12270,7 @@ function validateLabelValue(value2) {
12262
12270
  }
12263
12271
  return { isValid: true };
12264
12272
  }
12265
- const LabelFormatPopover_105yfzn = "";
12273
+ const LabelFormatPopover_piveun = "";
12266
12274
  const PodLabelFormatRulePopoverStyle = "p5jt6nm";
12267
12275
  const LabelFormatPopover = ({
12268
12276
  noValueValidation
@@ -12288,8 +12296,16 @@ const LabelFormatPopover = ({
12288
12296
  optional: t2("dovetail.no"),
12289
12297
  rule: [t2("dovetail.name_format_rule_1"), t2("dovetail.name_format_rule_2"), t2("dovetail.name_format_rule_3")]
12290
12298
  });
12299
+ } else {
12300
+ data2.push({
12301
+ object: t2("dovetail.value"),
12302
+ contains: t2("dovetail.name"),
12303
+ optional: t2("dovetail.no"),
12304
+ rule: [t2("dovetail.no_limitation_rule")]
12305
+ });
12291
12306
  }
12292
12307
  return /* @__PURE__ */ jsxRuntimeExports.jsx(Popover, {
12308
+ trigger: "click",
12293
12309
  overlayClassName: PodLabelFormatRulePopoverStyle,
12294
12310
  placement: "bottomRight",
12295
12311
  content: /* @__PURE__ */ jsxRuntimeExports.jsx(AntdTable, {
@@ -12498,6 +12514,7 @@ const EditNodeTaintForm = React__default.forwardRef(function EditNodeTaintForm2(
12498
12514
  extraColumns: [{
12499
12515
  key: "effect",
12500
12516
  title: t2("dovetail.effect"),
12517
+ defaultValue: "NoExecute",
12501
12518
  render: ({
12502
12519
  value: value2,
12503
12520
  onChange
@@ -13281,7 +13298,7 @@ const PVCapacityField = (i18n2) => {
13281
13298
  path: ["spec", "capacity", "storage"],
13282
13299
  title: i18n2.t("dovetail.capacity"),
13283
13300
  renderContent(value2) {
13284
- return /* @__PURE__ */ jsxRuntimeExports.jsx(Units.Byte, { rawValue: parseSi(value2), decimals: 1 });
13301
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(Units.Byte, { rawValue: parseSi(value2), decimals: 2 });
13285
13302
  }
13286
13303
  };
13287
13304
  };
@@ -38444,7 +38461,7 @@ const Separator = () => {
38444
38461
  });
38445
38462
  };
38446
38463
  const MonacoYamlEditor = React__default.lazy(() => Promise.resolve().then(() => MonacoYamlEditor$2));
38447
- const MonacoYamlDiffEditor = React__default.lazy(() => import("./MonacoYamlDiffEditor-2085f68a.js"));
38464
+ const MonacoYamlDiffEditor = React__default.lazy(() => import("./MonacoYamlDiffEditor-53aab510.js"));
38448
38465
  const YamlEditorComponent = forwardRef(
38449
38466
  function YamlEditorComponent2(props, ref) {
38450
38467
  const {
@@ -39199,6 +39216,7 @@ function ConfirmModal({
39199
39216
  onOk == null ? void 0 : onOk();
39200
39217
  popModal();
39201
39218
  },
39219
+ okText: t2("dovetail.confirm"),
39202
39220
  onCancel: popModal,
39203
39221
  destroyOnClose: true,
39204
39222
  children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", {
@@ -40548,7 +40566,7 @@ const PVCStorageColumnRenderer = (i18n2) => {
40548
40566
  render(value2) {
40549
40567
  return /* @__PURE__ */ jsxRuntimeExports.jsx(Units.Byte, {
40550
40568
  rawValue: value2,
40551
- decimals: 1
40569
+ decimals: 2
40552
40570
  });
40553
40571
  }
40554
40572
  };
package/dist/refine.js CHANGED
@@ -1,4 +1,4 @@
1
- import { bN, cC, A, aW, aY, aF, ca, bk, a1, co, cc, aQ, T, C, i, cG, aI, bp, ac, cI, ai, ap, cR, ax, cd, cb, cU, aM, bw, w, aD, bD, cT, cD, bG, D, b1, as, bJ, ar, at, a0, c9, c8, cS, bi, aU, ad, bQ, cF, cH, cm, aG, aj, s, q, cJ, I, bt, aT, t, M, be, bg, ce, cL, aL, bs, aq, ay, az, a8, aA, aX, aE, bE, bH, a9, d2, cn, cx, bM, N, a2, e, aV, a6, bP, by, bx, cK, b$, cZ, g, cY, aJ, bq, cg, L, ba, bb, bo, H, bc, J, bd, B, b5, cA, z, b4, G, b8, E, b6, F, b7, K, c0, b9, cz, aa, d0, c$, P, bm, v, ae, ah, b_, bj, cP, cO, a$, bu, c6, c5, p, aK, bl, x, bv, b0, d1, y, cq, cE, bK, bR, bS, d4, aH, R, ag, an, am, bL, ak, cQ, c2, al, cB, c7, bh, bA, au, h, Q, O, bf, ct, cw, cs, cr, cu, cv, cp, ch, ck, cl, cj, ci, cf, cy, bT, aN, br, aB, m, bW, l, aZ, cX, o, bX, a_, n, aS, bn, k, cW, aP, aR, c4, bC, bB, c3, aO, S, bF, cV, c_, b2, b3, bz, bI, c1, bY, bZ, ab, $, cN, af, W, cM, ao, aw, av, f, aC, bU, U, a3, d, d7, d6, d9, d3, a7, da, d5, d8, a5, a4, r, a, c, X, V, Y, Z, u, bO, _, bV, b } from "./index-4f767faa.js";
1
+ import { bN, cC, A, aW, aY, aF, ca, bk, a1, co, cc, aQ, T, C, i, cG, aI, bp, ac, cI, ai, ap, cR, ax, cd, cb, cU, aM, bw, w, aD, bD, cT, cD, bG, D, b1, as, bJ, ar, at, a0, c9, c8, cS, bi, aU, ad, bQ, cF, cH, cm, aG, aj, s, q, cJ, I, bt, aT, t, M, be, bg, ce, cL, aL, bs, aq, ay, az, a8, aA, aX, aE, bE, bH, a9, d2, cn, cx, bM, N, a2, e, aV, a6, bP, by, bx, cK, b$, cZ, g, cY, aJ, bq, cg, L, ba, bb, bo, H, bc, J, bd, B, b5, cA, z, b4, G, b8, E, b6, F, b7, K, c0, b9, cz, aa, d0, c$, P, bm, v, ae, ah, b_, bj, cP, cO, a$, bu, c6, c5, p, aK, bl, x, bv, b0, d1, y, cq, cE, bK, bR, bS, d4, aH, R, ag, an, am, bL, ak, cQ, c2, al, cB, c7, bh, bA, au, h, Q, O, bf, ct, cw, cs, cr, cu, cv, cp, ch, ck, cl, cj, ci, cf, cy, bT, aN, br, aB, m, bW, l, aZ, cX, o, bX, a_, n, aS, bn, k, cW, aP, aR, c4, bC, bB, c3, aO, S, bF, cV, c_, b2, b3, bz, bI, c1, bY, bZ, ab, $, cN, af, W, cM, ao, aw, av, f, aC, bU, U, a3, d, d7, d6, d9, d3, a7, da, d5, d8, a5, a4, r, a, c, X, V, Y, Z, u, bO, _, bV, b } from "./index-ad86ff56.js";
2
2
  import "@cloudtower/eagle";
3
3
  import "@refinedev/core";
4
4
  import "react";
@@ -1182,6 +1182,8 @@ var __publicField = (obj, key, value) => {
1182
1182
  const search$1 = "Search";
1183
1183
  const edit_label$1 = "Edit label";
1184
1184
  const csi$1 = "CSI driver";
1185
+ const confirm$2 = "Confirm";
1186
+ const no_limitation_rule$1 = "No limitation";
1185
1187
  const dovetail$1 = {
1186
1188
  copy: copy$2,
1187
1189
  reset_arguments: reset_arguments$1,
@@ -1353,7 +1355,9 @@ var __publicField = (obj, key, value) => {
1353
1355
  exec_pod,
1354
1356
  search: search$1,
1355
1357
  edit_label: edit_label$1,
1356
- csi: csi$1
1358
+ csi: csi$1,
1359
+ confirm: confirm$2,
1360
+ no_limitation_rule: no_limitation_rule$1
1357
1361
  };
1358
1362
  const EN = {
1359
1363
  dovetail: dovetail$1
@@ -1583,12 +1587,14 @@ var __publicField = (obj, key, value) => {
1583
1587
  const name_format_rule_1 = "由字母、数字、连字符 (-)、下划线(_) 或点 (.) 组成";
1584
1588
  const name_format_rule_2 = "以字母或数字开头和结尾";
1585
1589
  const name_format_rule_3 = "不超过 63 个字符";
1590
+ const no_limitation_rule = "不限制";
1586
1591
  const taint_effect_NoSchedule_tooltip_1 = "正在节点上运行的 Pod 不会被驱逐。";
1587
1592
  const taint_effect_NoSchedule_tooltip_2 = "新 Pod 不会调度到污点节点,除非有匹配的容忍度。";
1588
1593
  const taint_effect_PreferNoSchedule_tooltip_1 = "不容忍污点的 Pod 将被立即驱逐。";
1589
1594
  const taint_effect_PreferNoSchedule_tooltip_2 = "容忍污点但未设置容忍时长的 Pod 将继续运行。";
1590
1595
  const taint_effect_PreferNoSchedule_tooltip_3 = "容忍污点并设置了容忍时长的 Pod 将按指定时间运行,时间结束后被驱逐。";
1591
1596
  const taint_effect_NoExecute_tooltip_3 = "控制平面将尝试避免将不能容忍污点的 Pod 调度到节点上,但无法保证完全避免。";
1597
+ const confirm$1 = "确认";
1592
1598
  const dovetail = {
1593
1599
  copy: copy$1,
1594
1600
  reset_arguments,
@@ -1818,12 +1824,14 @@ var __publicField = (obj, key, value) => {
1818
1824
  name_format_rule_1,
1819
1825
  name_format_rule_2,
1820
1826
  name_format_rule_3,
1827
+ no_limitation_rule,
1821
1828
  taint_effect_NoSchedule_tooltip_1,
1822
1829
  taint_effect_NoSchedule_tooltip_2,
1823
1830
  taint_effect_PreferNoSchedule_tooltip_1,
1824
1831
  taint_effect_PreferNoSchedule_tooltip_2,
1825
1832
  taint_effect_PreferNoSchedule_tooltip_3,
1826
- taint_effect_NoExecute_tooltip_3
1833
+ taint_effect_NoExecute_tooltip_3,
1834
+ confirm: confirm$1
1827
1835
  };
1828
1836
  const ZH = {
1829
1837
  dovetail
@@ -9596,7 +9604,7 @@ var __publicField = (obj, key, value) => {
9596
9604
  const formRef = React.useRef(null);
9597
9605
  const value2 = (_b = (_a = pvc2.spec.resources) == null ? void 0 : _a.requests) == null ? void 0 : _b.storage;
9598
9606
  return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { children: [
9599
- /* @__PURE__ */ jsxRuntimeExports.jsx(eagle.Units.Byte, { rawValue: parseSi(value2), decimals: 1 }),
9607
+ /* @__PURE__ */ jsxRuntimeExports.jsx(eagle.Units.Byte, { rawValue: parseSi(value2), decimals: 2 }),
9600
9608
  editable && /* @__PURE__ */ jsxRuntimeExports.jsx(
9601
9609
  EditField,
9602
9610
  {
@@ -10921,7 +10929,7 @@ var __publicField = (obj, key, value) => {
10921
10929
  children: content || "-"
10922
10930
  });
10923
10931
  };
10924
- const index_1sc40y3 = "";
10932
+ const index_1es4s7t = "";
10925
10933
  const TagWrapper = "t13a6vox";
10926
10934
  const TagStyle = "t12ikbmp";
10927
10935
  const Tags = (props) => {
@@ -12268,7 +12276,7 @@ var __publicField = (obj, key, value) => {
12268
12276
  }
12269
12277
  return { isValid: true };
12270
12278
  }
12271
- const LabelFormatPopover_105yfzn = "";
12279
+ const LabelFormatPopover_piveun = "";
12272
12280
  const PodLabelFormatRulePopoverStyle = "p5jt6nm";
12273
12281
  const LabelFormatPopover = ({
12274
12282
  noValueValidation
@@ -12294,8 +12302,16 @@ var __publicField = (obj, key, value) => {
12294
12302
  optional: t2("dovetail.no"),
12295
12303
  rule: [t2("dovetail.name_format_rule_1"), t2("dovetail.name_format_rule_2"), t2("dovetail.name_format_rule_3")]
12296
12304
  });
12305
+ } else {
12306
+ data2.push({
12307
+ object: t2("dovetail.value"),
12308
+ contains: t2("dovetail.name"),
12309
+ optional: t2("dovetail.no"),
12310
+ rule: [t2("dovetail.no_limitation_rule")]
12311
+ });
12297
12312
  }
12298
12313
  return /* @__PURE__ */ jsxRuntimeExports.jsx(eagle.Popover, {
12314
+ trigger: "click",
12299
12315
  overlayClassName: PodLabelFormatRulePopoverStyle,
12300
12316
  placement: "bottomRight",
12301
12317
  content: /* @__PURE__ */ jsxRuntimeExports.jsx(eagle.AntdTable, {
@@ -12504,6 +12520,7 @@ var __publicField = (obj, key, value) => {
12504
12520
  extraColumns: [{
12505
12521
  key: "effect",
12506
12522
  title: t2("dovetail.effect"),
12523
+ defaultValue: "NoExecute",
12507
12524
  render: ({
12508
12525
  value: value2,
12509
12526
  onChange
@@ -13287,7 +13304,7 @@ var __publicField = (obj, key, value) => {
13287
13304
  path: ["spec", "capacity", "storage"],
13288
13305
  title: i18n2.t("dovetail.capacity"),
13289
13306
  renderContent(value2) {
13290
- return /* @__PURE__ */ jsxRuntimeExports.jsx(eagle.Units.Byte, { rawValue: parseSi(value2), decimals: 1 });
13307
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(eagle.Units.Byte, { rawValue: parseSi(value2), decimals: 2 });
13291
13308
  }
13292
13309
  };
13293
13310
  };
@@ -39205,6 +39222,7 @@ WARNING: This link could potentially be dangerous`)) {
39205
39222
  onOk == null ? void 0 : onOk();
39206
39223
  popModal();
39207
39224
  },
39225
+ okText: t2("dovetail.confirm"),
39208
39226
  onCancel: popModal,
39209
39227
  destroyOnClose: true,
39210
39228
  children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", {
@@ -40554,7 +40572,7 @@ WARNING: This link could potentially be dangerous`)) {
40554
40572
  render(value2) {
40555
40573
  return /* @__PURE__ */ jsxRuntimeExports.jsx(eagle.Units.Byte, {
40556
40574
  rawValue: value2,
40557
- decimals: 1
40575
+ decimals: 2
40558
40576
  });
40559
40577
  }
40560
40578
  };
package/dist/style.css CHANGED
@@ -612,7 +612,8 @@
612
612
  .t13a6vox {
613
613
  flex-wrap: wrap;
614
614
  max-width: 100%;
615
- gap: 8px 8px;
615
+ gap: 8px 0px;
616
+ margin-bottom: 4px;
616
617
  }
617
618
 
618
619
  .t12ikbmp.ant-tag {
@@ -1425,6 +1426,12 @@
1425
1426
  }
1426
1427
  .p5jt6nm .ant-table tbody > tr:last-child > td {
1427
1428
  border-bottom: none;
1429
+ }
1430
+ .p5jt6nm .ant-table .ant-table-cell {
1431
+ padding: 4px 8px !important;
1432
+ }
1433
+ .p5jt6nm .ant-table li {
1434
+ text-indent: 8px;
1428
1435
  }/* // basic */
1429
1436
  /* FishEye Color Variables and Functions */
1430
1437
  /*
package/lib/i18n.d.ts CHANGED
@@ -174,6 +174,8 @@ export declare const resources: {
174
174
  search: string;
175
175
  edit_label: string;
176
176
  csi: string;
177
+ confirm: string;
178
+ no_limitation_rule: string;
177
179
  };
178
180
  };
179
181
  'zh-CN': {
@@ -406,12 +408,14 @@ export declare const resources: {
406
408
  name_format_rule_1: string;
407
409
  name_format_rule_2: string;
408
410
  name_format_rule_3: string;
411
+ no_limitation_rule: string;
409
412
  taint_effect_NoSchedule_tooltip_1: string;
410
413
  taint_effect_NoSchedule_tooltip_2: string;
411
414
  taint_effect_PreferNoSchedule_tooltip_1: string;
412
415
  taint_effect_PreferNoSchedule_tooltip_2: string;
413
416
  taint_effect_PreferNoSchedule_tooltip_3: string;
414
417
  taint_effect_NoExecute_tooltip_3: string;
418
+ confirm: string;
415
419
  };
416
420
  };
417
421
  };
@@ -171,6 +171,8 @@ declare const _default: {
171
171
  search: string;
172
172
  edit_label: string;
173
173
  csi: string;
174
+ confirm: string;
175
+ no_limitation_rule: string;
174
176
  };
175
177
  };
176
178
  export default _default;
@@ -228,12 +228,14 @@ declare const _default: {
228
228
  name_format_rule_1: string;
229
229
  name_format_rule_2: string;
230
230
  name_format_rule_3: string;
231
+ no_limitation_rule: string;
231
232
  taint_effect_NoSchedule_tooltip_1: string;
232
233
  taint_effect_NoSchedule_tooltip_2: string;
233
234
  taint_effect_PreferNoSchedule_tooltip_1: string;
234
235
  taint_effect_PreferNoSchedule_tooltip_2: string;
235
236
  taint_effect_PreferNoSchedule_tooltip_3: string;
236
237
  taint_effect_NoExecute_tooltip_3: string;
238
+ confirm: string;
237
239
  };
238
240
  };
239
241
  export default _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dovetail-v2/refine",
3
- "version": "0.1.18-alpha.2",
3
+ "version": "0.1.18-alpha.4",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist",