@dovetail-v2/refine 0.0.35-beta.2 → 0.0.35-beta.3
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.
|
@@ -8387,36 +8387,6 @@ function MetadataForm() {
|
|
|
8387
8387
|
/* @__PURE__ */ jsxRuntimeExports.jsx(kit.form.Item, { name: ["metadata", "annotations"], label: "Annotations", children: /* @__PURE__ */ jsxRuntimeExports.jsx(KeyValueListWidget, {}) })
|
|
8388
8388
|
] });
|
|
8389
8389
|
}
|
|
8390
|
-
const ErrorContent_1t51xnx = "";
|
|
8391
|
-
const ErrorWrapper$1 = "eckm4od";
|
|
8392
|
-
const ErrorContent$1 = "e1hl982n";
|
|
8393
|
-
const WidgetErrorContent$1 = (props) => {
|
|
8394
|
-
const {
|
|
8395
|
-
refetch
|
|
8396
|
-
} = props;
|
|
8397
|
-
const kit = useContext(kitContext);
|
|
8398
|
-
const {
|
|
8399
|
-
t: t2
|
|
8400
|
-
} = useTranslation();
|
|
8401
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", {
|
|
8402
|
-
className: ErrorWrapper$1,
|
|
8403
|
-
style: props.style,
|
|
8404
|
-
children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", {
|
|
8405
|
-
className: ErrorContent$1,
|
|
8406
|
-
children: [/* @__PURE__ */ jsxRuntimeExports.jsx("p", {
|
|
8407
|
-
className: cx_default(Typo.Label.l1_regular_title, "title"),
|
|
8408
|
-
children: props.errorText || t2("dovetail.obtain_data_error")
|
|
8409
|
-
}), refetch ? /* @__PURE__ */ jsxRuntimeExports.jsx(kit.button, {
|
|
8410
|
-
type: "ordinary",
|
|
8411
|
-
onClick: (e2) => {
|
|
8412
|
-
e2.stopPropagation();
|
|
8413
|
-
refetch == null ? void 0 : refetch();
|
|
8414
|
-
},
|
|
8415
|
-
children: t2("dovetail.retry")
|
|
8416
|
-
}) : null]
|
|
8417
|
-
})
|
|
8418
|
-
});
|
|
8419
|
-
};
|
|
8420
8390
|
function memoize$1(fn) {
|
|
8421
8391
|
var cache = /* @__PURE__ */ Object.create(null);
|
|
8422
8392
|
return function(arg) {
|
|
@@ -8534,6 +8504,76 @@ var styled_default = process.env.NODE_ENV !== "production" ? new Proxy(styled, {
|
|
|
8534
8504
|
return o(prop);
|
|
8535
8505
|
}
|
|
8536
8506
|
}) : styled;
|
|
8507
|
+
const index_1kmu85y = "";
|
|
8508
|
+
const ErrorWrapper$1 = /* @__PURE__ */ styled_default("div")({
|
|
8509
|
+
name: "ErrorWrapper",
|
|
8510
|
+
class: "egn3dbn",
|
|
8511
|
+
propsAsIs: false
|
|
8512
|
+
});
|
|
8513
|
+
const ErrorContent$1 = /* @__PURE__ */ styled_default("div")({
|
|
8514
|
+
name: "ErrorContent",
|
|
8515
|
+
class: "e136jgy8",
|
|
8516
|
+
propsAsIs: false
|
|
8517
|
+
});
|
|
8518
|
+
const WidgetErrorContent$1 = (props) => {
|
|
8519
|
+
const {
|
|
8520
|
+
refetch,
|
|
8521
|
+
errorText,
|
|
8522
|
+
hiddenRetry
|
|
8523
|
+
} = props;
|
|
8524
|
+
const kit = useContext(kitContext);
|
|
8525
|
+
const {
|
|
8526
|
+
t: t2
|
|
8527
|
+
} = useTranslation();
|
|
8528
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(ErrorWrapper$1, {
|
|
8529
|
+
className: props.className,
|
|
8530
|
+
style: props.style,
|
|
8531
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsxs(ErrorContent$1, {
|
|
8532
|
+
children: [/* @__PURE__ */ jsxRuntimeExports.jsx("p", {
|
|
8533
|
+
className: cx_default(Typo.Label.l1_regular_title, "title"),
|
|
8534
|
+
children: errorText || t2("dovetail.obtain_data_error")
|
|
8535
|
+
}), hiddenRetry ? null : /* @__PURE__ */ jsxRuntimeExports.jsx(kit.button, {
|
|
8536
|
+
size: "small",
|
|
8537
|
+
type: "ordinary",
|
|
8538
|
+
onClick: (e2) => {
|
|
8539
|
+
e2.stopPropagation();
|
|
8540
|
+
refetch == null ? void 0 : refetch();
|
|
8541
|
+
},
|
|
8542
|
+
children: t2("dovetail.retry")
|
|
8543
|
+
})]
|
|
8544
|
+
})
|
|
8545
|
+
});
|
|
8546
|
+
};
|
|
8547
|
+
const ErrorContent_1t51xnx = "";
|
|
8548
|
+
const ErrorWrapper = "eckm4od";
|
|
8549
|
+
const ErrorContent = "e1hl982n";
|
|
8550
|
+
const WidgetErrorContent = (props) => {
|
|
8551
|
+
const {
|
|
8552
|
+
refetch
|
|
8553
|
+
} = props;
|
|
8554
|
+
const kit = useContext(kitContext);
|
|
8555
|
+
const {
|
|
8556
|
+
t: t2
|
|
8557
|
+
} = useTranslation();
|
|
8558
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", {
|
|
8559
|
+
className: ErrorWrapper,
|
|
8560
|
+
style: props.style,
|
|
8561
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", {
|
|
8562
|
+
className: ErrorContent,
|
|
8563
|
+
children: [/* @__PURE__ */ jsxRuntimeExports.jsx("p", {
|
|
8564
|
+
className: cx_default(Typo.Label.l1_regular_title, "title"),
|
|
8565
|
+
children: props.errorText || t2("dovetail.obtain_data_error")
|
|
8566
|
+
}), refetch ? /* @__PURE__ */ jsxRuntimeExports.jsx(kit.button, {
|
|
8567
|
+
type: "ordinary",
|
|
8568
|
+
onClick: (e2) => {
|
|
8569
|
+
e2.stopPropagation();
|
|
8570
|
+
refetch == null ? void 0 : refetch();
|
|
8571
|
+
},
|
|
8572
|
+
children: t2("dovetail.retry")
|
|
8573
|
+
}) : null]
|
|
8574
|
+
})
|
|
8575
|
+
});
|
|
8576
|
+
};
|
|
8537
8577
|
const TableWidgets_ny30pi = "";
|
|
8538
8578
|
const AuxiliaryLine = /* @__PURE__ */ styled_default("div")({
|
|
8539
8579
|
name: "AuxiliaryLine",
|
|
@@ -8589,7 +8629,7 @@ function Table(props) {
|
|
|
8589
8629
|
if (loading) {
|
|
8590
8630
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(kit.loading, {});
|
|
8591
8631
|
} else if (error) {
|
|
8592
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(WidgetErrorContent
|
|
8632
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(WidgetErrorContent, {
|
|
8593
8633
|
errorText: t2("dovetail.retry_when_access_data_failed"),
|
|
8594
8634
|
refetch,
|
|
8595
8635
|
style: {
|
|
@@ -8597,7 +8637,7 @@ function Table(props) {
|
|
|
8597
8637
|
}
|
|
8598
8638
|
});
|
|
8599
8639
|
} else if (dataSource.length === 0) {
|
|
8600
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(WidgetErrorContent
|
|
8640
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(WidgetErrorContent, {
|
|
8601
8641
|
errorText: empty2 || t2("dovetail.empty"),
|
|
8602
8642
|
style: {
|
|
8603
8643
|
padding: "15px 0"
|
|
@@ -8660,7 +8700,8 @@ const PodSelectorTable = ({ podSelectors = {} }) => {
|
|
|
8660
8700
|
WidgetErrorContent$1,
|
|
8661
8701
|
{
|
|
8662
8702
|
errorText: t2("dovetail.no_resource", { kind: ` ${t2("dovetail.pod_selector")}` }),
|
|
8663
|
-
style: { padding: "15px 0" }
|
|
8703
|
+
style: { padding: "15px 0" },
|
|
8704
|
+
hiddenRetry: true
|
|
8664
8705
|
}
|
|
8665
8706
|
);
|
|
8666
8707
|
}
|
|
@@ -8727,7 +8768,7 @@ const PortsTable = ({ service }) => {
|
|
|
8727
8768
|
id: port2.name || ""
|
|
8728
8769
|
}));
|
|
8729
8770
|
if ((ports == null ? void 0 : ports.length) === 0) {
|
|
8730
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(WidgetErrorContent$1, { errorText: t2("dovetail.no_resource", { kind: t2("dovetail.port") }), style: { padding: "15px 0" } });
|
|
8771
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(WidgetErrorContent$1, { errorText: t2("dovetail.no_resource", { kind: t2("dovetail.port") }), style: { padding: "15px 0" }, hiddenRetry: true });
|
|
8731
8772
|
}
|
|
8732
8773
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
8733
8774
|
Table$1,
|
|
@@ -9857,7 +9898,7 @@ const ServiceOutClusterAccessComponent = ({
|
|
|
9857
9898
|
children: content || "-"
|
|
9858
9899
|
});
|
|
9859
9900
|
};
|
|
9860
|
-
const
|
|
9901
|
+
const index_1ce2deq = "";
|
|
9861
9902
|
const TagWrapper = "t13a6vox";
|
|
9862
9903
|
const TagStyle = "t12ikbmp";
|
|
9863
9904
|
const Tags = (props) => {
|
|
@@ -9866,8 +9907,8 @@ const Tags = (props) => {
|
|
|
9866
9907
|
} = props;
|
|
9867
9908
|
const kit = useUIKit();
|
|
9868
9909
|
if (!value2) {
|
|
9869
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
9870
|
-
|
|
9910
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(ValueDisplay, {
|
|
9911
|
+
value: ""
|
|
9871
9912
|
});
|
|
9872
9913
|
}
|
|
9873
9914
|
const tags = Object.keys(value2).map((key2) => {
|
|
@@ -10334,46 +10375,6 @@ const CronjobJobsTable = ({
|
|
|
10334
10375
|
})]
|
|
10335
10376
|
});
|
|
10336
10377
|
};
|
|
10337
|
-
const index_1kmu85y = "";
|
|
10338
|
-
const ErrorWrapper = /* @__PURE__ */ styled_default("div")({
|
|
10339
|
-
name: "ErrorWrapper",
|
|
10340
|
-
class: "egn3dbn",
|
|
10341
|
-
propsAsIs: false
|
|
10342
|
-
});
|
|
10343
|
-
const ErrorContent = /* @__PURE__ */ styled_default("div")({
|
|
10344
|
-
name: "ErrorContent",
|
|
10345
|
-
class: "e136jgy8",
|
|
10346
|
-
propsAsIs: false
|
|
10347
|
-
});
|
|
10348
|
-
const WidgetErrorContent = (props) => {
|
|
10349
|
-
const {
|
|
10350
|
-
refetch,
|
|
10351
|
-
errorText,
|
|
10352
|
-
hiddenRetry
|
|
10353
|
-
} = props;
|
|
10354
|
-
const kit = useContext(kitContext);
|
|
10355
|
-
const {
|
|
10356
|
-
t: t2
|
|
10357
|
-
} = useTranslation();
|
|
10358
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(ErrorWrapper, {
|
|
10359
|
-
className: props.className,
|
|
10360
|
-
style: props.style,
|
|
10361
|
-
children: /* @__PURE__ */ jsxRuntimeExports.jsxs(ErrorContent, {
|
|
10362
|
-
children: [/* @__PURE__ */ jsxRuntimeExports.jsx("p", {
|
|
10363
|
-
className: cx_default(Typo.Label.l1_regular_title, "title"),
|
|
10364
|
-
children: errorText || t2("dovetail.obtain_data_error")
|
|
10365
|
-
}), hiddenRetry ? null : /* @__PURE__ */ jsxRuntimeExports.jsx(kit.button, {
|
|
10366
|
-
size: "small",
|
|
10367
|
-
type: "ordinary",
|
|
10368
|
-
onClick: (e2) => {
|
|
10369
|
-
e2.stopPropagation();
|
|
10370
|
-
refetch == null ? void 0 : refetch();
|
|
10371
|
-
},
|
|
10372
|
-
children: t2("dovetail.retry")
|
|
10373
|
-
})]
|
|
10374
|
-
})
|
|
10375
|
-
});
|
|
10376
|
-
};
|
|
10377
10378
|
const EventsTable = ({}) => {
|
|
10378
10379
|
const { i18n: i18n2 } = useTranslation();
|
|
10379
10380
|
const [currentPage, setCurrentPage] = useState(1);
|
|
@@ -10429,7 +10430,7 @@ const EventsTable = ({}) => {
|
|
|
10429
10430
|
}, [data2 == null ? void 0 : data2.data, parsed]);
|
|
10430
10431
|
if (!(dataSource == null ? void 0 : dataSource.length) && !isLoading) {
|
|
10431
10432
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
10432
|
-
WidgetErrorContent,
|
|
10433
|
+
WidgetErrorContent$1,
|
|
10433
10434
|
{
|
|
10434
10435
|
errorText: i18n2.t("dovetail.no_resource", { kind: i18n2.t("dovetail.event") }),
|
|
10435
10436
|
hiddenRetry: true
|
|
@@ -10553,7 +10554,7 @@ const IngressRulesTable = ({ ingress }) => {
|
|
|
10553
10554
|
}
|
|
10554
10555
|
];
|
|
10555
10556
|
if ((rows == null ? void 0 : rows.length) === 0) {
|
|
10556
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(WidgetErrorContent$1, { errorText: t2("dovetail.no_resource", { kind: t2("dovetail.rule") }), style: { padding: "15px 0" } });
|
|
10557
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(WidgetErrorContent$1, { errorText: t2("dovetail.no_resource", { kind: t2("dovetail.rule") }), style: { padding: "15px 0" }, hiddenRetry: true });
|
|
10557
10558
|
}
|
|
10558
10559
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
10559
10560
|
Table$1,
|
|
@@ -10574,7 +10575,7 @@ const IngressRulesTable = ({ ingress }) => {
|
|
|
10574
10575
|
const KeyValue_1vkf5y2 = "";
|
|
10575
10576
|
const ContentBlockStyle = "c8jy7dc";
|
|
10576
10577
|
const KeyStyle = "k2sddxl";
|
|
10577
|
-
const ValueStyle = "v16vicsr";
|
|
10578
|
+
const ValueStyle$2 = "v16vicsr";
|
|
10578
10579
|
const KeyValue = (props) => {
|
|
10579
10580
|
const {
|
|
10580
10581
|
data: data2 = {},
|
|
@@ -10590,12 +10591,12 @@ const KeyValue = (props) => {
|
|
|
10590
10591
|
className: cx_default(KeyStyle, Typo.Label.l4_regular),
|
|
10591
10592
|
children: key2
|
|
10592
10593
|
}), /* @__PURE__ */ jsxRuntimeExports.jsx("span", {
|
|
10593
|
-
className: cx_default(Typo.Label.l4_regular, ValueStyle),
|
|
10594
|
+
className: cx_default(Typo.Label.l4_regular, ValueStyle$2),
|
|
10594
10595
|
children: hideSecret ? toAsterisk(data2[key2]) : data2[key2]
|
|
10595
10596
|
})]
|
|
10596
10597
|
}, key2));
|
|
10597
10598
|
if (!result.length) {
|
|
10598
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(WidgetErrorContent, {
|
|
10599
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(WidgetErrorContent$1, {
|
|
10599
10600
|
errorText: empty2 || t2("dovetail.empty"),
|
|
10600
10601
|
hiddenRetry: true
|
|
10601
10602
|
});
|
|
@@ -10746,7 +10747,7 @@ function Tabs(props) {
|
|
|
10746
10747
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(kit.tabsTabPane, { tab: tab.title, children: tab.children }, tab.title);
|
|
10747
10748
|
}) });
|
|
10748
10749
|
}
|
|
10749
|
-
const
|
|
10750
|
+
const ShowContent_1iepja4 = "";
|
|
10750
10751
|
const ShowContentWrapperStyle = "s9agep2";
|
|
10751
10752
|
const BackButton = "bo89gfi";
|
|
10752
10753
|
const ToolBarWrapper = "t1ohe42f";
|
|
@@ -10758,7 +10759,8 @@ const GroupTitleStyle = "g17f8vl9";
|
|
|
10758
10759
|
const FullTabContentStyle = "fykgn2i";
|
|
10759
10760
|
const FieldWrapperStyle = "fngr745";
|
|
10760
10761
|
const TabContentStyle = "t11wg61l";
|
|
10761
|
-
const
|
|
10762
|
+
const ValueStyle$1 = "v1x3rivf";
|
|
10763
|
+
const TabsStyle = "tf5s6s";
|
|
10762
10764
|
function ShowGroupComponent(props) {
|
|
10763
10765
|
const {
|
|
10764
10766
|
title,
|
|
@@ -10842,7 +10844,7 @@ const ShowContent = (props) => {
|
|
|
10842
10844
|
minWidth: 0
|
|
10843
10845
|
},
|
|
10844
10846
|
children: /* @__PURE__ */ jsxRuntimeExports.jsx(ValueDisplay, {
|
|
10845
|
-
className: Typo.Label.l4_regular_title,
|
|
10847
|
+
className: cx_default(Typo.Label.l4_regular_title, ValueStyle$1),
|
|
10846
10848
|
value: content,
|
|
10847
10849
|
useOverflow: false
|
|
10848
10850
|
})
|
|
@@ -10993,13 +10995,14 @@ const WorkloadPodsTable = ({
|
|
|
10993
10995
|
sortable: true
|
|
10994
10996
|
}, NodeNameColumnRenderer(i18n2), WorkloadImageColumnRenderer(i18n2), PodContainersNumColumnRenderer(i18n2), RestartCountColumnRenderer(i18n2), AgeColumnRenderer(i18n2)];
|
|
10995
10997
|
if ((dataSource == null ? void 0 : dataSource.length) === 0) {
|
|
10996
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(WidgetErrorContent, {
|
|
10998
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(WidgetErrorContent$1, {
|
|
10997
10999
|
errorText: i18n2.t("dovetail.no_resource", {
|
|
10998
11000
|
kind: i18n2.t("dovetail.pod")
|
|
10999
11001
|
}),
|
|
11000
11002
|
style: {
|
|
11001
11003
|
padding: "15px 0"
|
|
11002
|
-
}
|
|
11004
|
+
},
|
|
11005
|
+
hiddenRetry: true
|
|
11003
11006
|
});
|
|
11004
11007
|
}
|
|
11005
11008
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(kit.space, {
|
|
@@ -11170,7 +11173,8 @@ function EditFieldModal(props) {
|
|
|
11170
11173
|
style: {
|
|
11171
11174
|
marginTop: 16
|
|
11172
11175
|
},
|
|
11173
|
-
errorMsgs
|
|
11176
|
+
errorMsgs,
|
|
11177
|
+
isEdit: true
|
|
11174
11178
|
})]
|
|
11175
11179
|
});
|
|
11176
11180
|
}
|
|
@@ -11194,7 +11198,7 @@ function EditField(props) {
|
|
|
11194
11198
|
children: i18n2.t("dovetail.edit")
|
|
11195
11199
|
});
|
|
11196
11200
|
}
|
|
11197
|
-
const
|
|
11201
|
+
const index_c9frt4 = "";
|
|
11198
11202
|
const WorkloadReplicasWrapperStyle = "w8ychfk";
|
|
11199
11203
|
const DonutChartWrapperStyle = "d1o004do";
|
|
11200
11204
|
const DonutChartStyle = "dfo80qq";
|
|
@@ -11203,6 +11207,7 @@ const ReadyValueStyle = "r1bm8olw";
|
|
|
11203
11207
|
const ReplicasValueStyle = "r1oqudbh";
|
|
11204
11208
|
const ContentWrapperStyle = "c18i6jtg";
|
|
11205
11209
|
const LabelStyle = "lpm22il";
|
|
11210
|
+
const ValueStyle = "v1ixr1me";
|
|
11206
11211
|
const WorkloadReplicasForm = React__default.forwardRef(function WorkloadReplicasForm2(props, ref) {
|
|
11207
11212
|
const {
|
|
11208
11213
|
defaultValue,
|
|
@@ -11331,16 +11336,18 @@ function WorkloadReplicas({
|
|
|
11331
11336
|
className: ContentWrapperStyle,
|
|
11332
11337
|
children: [/* @__PURE__ */ jsxRuntimeExports.jsxs("tr", {
|
|
11333
11338
|
children: [/* @__PURE__ */ jsxRuntimeExports.jsx("td", {
|
|
11334
|
-
className: LabelStyle,
|
|
11339
|
+
className: cx_default(LabelStyle, Typo.Label.l3_regular),
|
|
11335
11340
|
children: t2("dovetail.pod_ready_num")
|
|
11336
11341
|
}), /* @__PURE__ */ jsxRuntimeExports.jsx("td", {
|
|
11342
|
+
className: cx_default(ValueStyle, Typo.Label.l3_regular),
|
|
11337
11343
|
children: readyReplicas
|
|
11338
11344
|
})]
|
|
11339
11345
|
}), /* @__PURE__ */ jsxRuntimeExports.jsxs("tr", {
|
|
11340
11346
|
children: [/* @__PURE__ */ jsxRuntimeExports.jsx("td", {
|
|
11341
|
-
className: LabelStyle,
|
|
11347
|
+
className: cx_default(LabelStyle, Typo.Label.l3_regular),
|
|
11342
11348
|
children: t2("dovetail.pod_replicas_num")
|
|
11343
11349
|
}), /* @__PURE__ */ jsxRuntimeExports.jsx("td", {
|
|
11350
|
+
className: cx_default(ValueStyle, Typo.Label.l3_regular),
|
|
11344
11351
|
children: replicas
|
|
11345
11352
|
}), /* @__PURE__ */ jsxRuntimeExports.jsx("td", {
|
|
11346
11353
|
children: editable && canScale && /* @__PURE__ */ jsxRuntimeExports.jsx(EditField, {
|
|
@@ -17360,7 +17367,7 @@ const PodLog = ({
|
|
|
17360
17367
|
})]
|
|
17361
17368
|
}), /* @__PURE__ */ jsxRuntimeExports.jsx("div", {
|
|
17362
17369
|
className: ContentStyle$1,
|
|
17363
|
-
children: logType === "previous" && !logs.length ? /* @__PURE__ */ jsxRuntimeExports.jsx(WidgetErrorContent, {
|
|
17370
|
+
children: logType === "previous" && !logs.length ? /* @__PURE__ */ jsxRuntimeExports.jsx(WidgetErrorContent$1, {
|
|
17364
17371
|
style: {
|
|
17365
17372
|
height: "100%"
|
|
17366
17373
|
},
|
|
@@ -17593,7 +17600,8 @@ const NetworkPolicyRulesViewer = ({
|
|
|
17593
17600
|
}),
|
|
17594
17601
|
style: {
|
|
17595
17602
|
padding: "15px 0"
|
|
17596
|
-
}
|
|
17603
|
+
},
|
|
17604
|
+
hiddenRetry: true
|
|
17597
17605
|
});
|
|
17598
17606
|
}
|
|
17599
17607
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(MonacoYamlEditor$1, {
|
|
@@ -17674,7 +17682,7 @@ const PodContainersTable = ({
|
|
|
17674
17682
|
[containerStatuses, initContainerStatuses]
|
|
17675
17683
|
);
|
|
17676
17684
|
if (dataSource.length === 0) {
|
|
17677
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(WidgetErrorContent, { errorText: i18n2.t("dovetail.no_resource", { kind: i18n2.t("dovetail.container") }), style: { padding: "15px 0" } });
|
|
17685
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(WidgetErrorContent$1, { errorText: i18n2.t("dovetail.no_resource", { kind: i18n2.t("dovetail.container") }), style: { padding: "15px 0" }, hiddenRetry: true });
|
|
17678
17686
|
}
|
|
17679
17687
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
17680
17688
|
Table$1,
|
|
@@ -18284,7 +18292,7 @@ function ListPage(props) {
|
|
|
18284
18292
|
className: NamespaceFilterStyle
|
|
18285
18293
|
}), /* @__PURE__ */ jsxRuntimeExports.jsx("div", {
|
|
18286
18294
|
className: TableStyle,
|
|
18287
|
-
children: !(tableProps.data.length || tableProps.loading) ? /* @__PURE__ */ jsxRuntimeExports.jsx(WidgetErrorContent, {
|
|
18295
|
+
children: !(tableProps.data.length || tableProps.loading) ? /* @__PURE__ */ jsxRuntimeExports.jsx(WidgetErrorContent$1, {
|
|
18288
18296
|
errorText: tableProps.empty || t2("dovetail.no_resource", {
|
|
18289
18297
|
kind: ` ${config.kind}`
|
|
18290
18298
|
}),
|
|
@@ -22174,7 +22182,7 @@ const Separator = () => {
|
|
|
22174
22182
|
});
|
|
22175
22183
|
};
|
|
22176
22184
|
const MonacoYamlEditor = React__default.lazy(() => Promise.resolve().then(() => MonacoYamlEditor$2));
|
|
22177
|
-
const MonacoYamlDiffEditor = React__default.lazy(() => import("./MonacoYamlDiffEditor-
|
|
22185
|
+
const MonacoYamlDiffEditor = React__default.lazy(() => import("./MonacoYamlDiffEditor-bbf8d9dd.js"));
|
|
22178
22186
|
const YamlEditorComponent = forwardRef(
|
|
22179
22187
|
function YamlEditorComponent2(props, ref) {
|
|
22180
22188
|
const {
|
|
@@ -22836,7 +22844,7 @@ function YamlForm(props) {
|
|
|
22836
22844
|
isEdit: action === "edit"
|
|
22837
22845
|
})
|
|
22838
22846
|
})]
|
|
22839
|
-
}) : /* @__PURE__ */ jsxRuntimeExports.jsx(WidgetErrorContent, {
|
|
22847
|
+
}) : /* @__PURE__ */ jsxRuntimeExports.jsx(WidgetErrorContent$1, {
|
|
22840
22848
|
errorText: t2("dovetail.fetch_schema_fail"),
|
|
22841
22849
|
refetch: fetchSchema
|
|
22842
22850
|
});
|
package/dist/refine.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { b3, A, aw, ay, ag, bj, aG, E, bx, bl, aq, t, C, g, bK, aj, aK, U, bM, Z, a4, bV, a8, bm, bk, bY, am, aQ, q, ae, aV, bX, bH, aZ, D, aD, a$, bW, aE, au, b6, bJ, bL, bv, ah, _, n, m, bN, I, aN, at, o, bn, bP, al, aM, a9, aa, M, ab, ax, af, aW, a_, O, bw, b2, N, F, b, av, K, b5, aS, aR, bO, bh, e, bp, Q, P, aI, p, V, bg, aF, bT, bS, aB, aO, l, ak, aH, s, aP, aC, c0, bI, b0, b7, b8, ai, R, Y, a2, a1, b1, $, bU, a0, a5, f, bC, bF, bB, bA, bD, bE, by, bq, bt, bu, bs, br, bo, b9, an, aL, ac, i, bc, az, b$, k, bd, aA, as, aJ, h, b_, ap, ar, aU, aT, ao, S, aY, aX, bZ, bz, bi, be, bf, T, bR, X, W, bQ, a3, a7, a6, c, bG, ad, ba, v, G, d, L, J, H, r, a, x, w, y, z, b4, B, bb, u } from "./index-
|
|
1
|
+
import { b3, A, aw, ay, ag, bj, aG, E, bx, bl, aq, t, C, g, bK, aj, aK, U, bM, Z, a4, bV, a8, bm, bk, bY, am, aQ, q, ae, aV, bX, bH, aZ, D, aD, a$, bW, aE, au, b6, bJ, bL, bv, ah, _, n, m, bN, I, aN, at, o, bn, bP, al, aM, a9, aa, M, ab, ax, af, aW, a_, O, bw, b2, N, F, b, av, K, b5, aS, aR, bO, bh, e, bp, Q, P, aI, p, V, bg, aF, bT, bS, aB, aO, l, ak, aH, s, aP, aC, c0, bI, b0, b7, b8, ai, R, Y, a2, a1, b1, $, bU, a0, a5, f, bC, bF, bB, bA, bD, bE, by, bq, bt, bu, bs, br, bo, b9, an, aL, ac, i, bc, az, b$, k, bd, aA, as, aJ, h, b_, ap, ar, aU, aT, ao, S, aY, aX, bZ, bz, bi, be, bf, T, bR, X, W, bQ, a3, a7, a6, c, bG, ad, ba, v, G, d, L, J, H, r, a, x, w, y, z, b4, B, bb, u } from "./index-83577f15.js";
|
|
2
2
|
import "@cloudtower/eagle";
|
|
3
3
|
import "@refinedev/core";
|
|
4
4
|
import "@cloudtower/icons-react";
|
package/dist/refine.umd.cjs
CHANGED
|
@@ -8393,36 +8393,6 @@ var __publicField = (obj, key, value) => {
|
|
|
8393
8393
|
/* @__PURE__ */ jsxRuntimeExports.jsx(kit.form.Item, { name: ["metadata", "annotations"], label: "Annotations", children: /* @__PURE__ */ jsxRuntimeExports.jsx(KeyValueListWidget, {}) })
|
|
8394
8394
|
] });
|
|
8395
8395
|
}
|
|
8396
|
-
const ErrorContent_1t51xnx = "";
|
|
8397
|
-
const ErrorWrapper$1 = "eckm4od";
|
|
8398
|
-
const ErrorContent$1 = "e1hl982n";
|
|
8399
|
-
const WidgetErrorContent$1 = (props) => {
|
|
8400
|
-
const {
|
|
8401
|
-
refetch
|
|
8402
|
-
} = props;
|
|
8403
|
-
const kit = React.useContext(eagle.kitContext);
|
|
8404
|
-
const {
|
|
8405
|
-
t: t2
|
|
8406
|
-
} = useTranslation();
|
|
8407
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", {
|
|
8408
|
-
className: ErrorWrapper$1,
|
|
8409
|
-
style: props.style,
|
|
8410
|
-
children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", {
|
|
8411
|
-
className: ErrorContent$1,
|
|
8412
|
-
children: [/* @__PURE__ */ jsxRuntimeExports.jsx("p", {
|
|
8413
|
-
className: cx_default(eagle.Typo.Label.l1_regular_title, "title"),
|
|
8414
|
-
children: props.errorText || t2("dovetail.obtain_data_error")
|
|
8415
|
-
}), refetch ? /* @__PURE__ */ jsxRuntimeExports.jsx(kit.button, {
|
|
8416
|
-
type: "ordinary",
|
|
8417
|
-
onClick: (e2) => {
|
|
8418
|
-
e2.stopPropagation();
|
|
8419
|
-
refetch == null ? void 0 : refetch();
|
|
8420
|
-
},
|
|
8421
|
-
children: t2("dovetail.retry")
|
|
8422
|
-
}) : null]
|
|
8423
|
-
})
|
|
8424
|
-
});
|
|
8425
|
-
};
|
|
8426
8396
|
function memoize$1(fn) {
|
|
8427
8397
|
var cache = /* @__PURE__ */ Object.create(null);
|
|
8428
8398
|
return function(arg) {
|
|
@@ -8540,6 +8510,76 @@ var __publicField = (obj, key, value) => {
|
|
|
8540
8510
|
return o(prop);
|
|
8541
8511
|
}
|
|
8542
8512
|
}) : styled;
|
|
8513
|
+
const index_1kmu85y = "";
|
|
8514
|
+
const ErrorWrapper$1 = /* @__PURE__ */ styled_default("div")({
|
|
8515
|
+
name: "ErrorWrapper",
|
|
8516
|
+
class: "egn3dbn",
|
|
8517
|
+
propsAsIs: false
|
|
8518
|
+
});
|
|
8519
|
+
const ErrorContent$1 = /* @__PURE__ */ styled_default("div")({
|
|
8520
|
+
name: "ErrorContent",
|
|
8521
|
+
class: "e136jgy8",
|
|
8522
|
+
propsAsIs: false
|
|
8523
|
+
});
|
|
8524
|
+
const WidgetErrorContent$1 = (props) => {
|
|
8525
|
+
const {
|
|
8526
|
+
refetch,
|
|
8527
|
+
errorText,
|
|
8528
|
+
hiddenRetry
|
|
8529
|
+
} = props;
|
|
8530
|
+
const kit = React.useContext(eagle.kitContext);
|
|
8531
|
+
const {
|
|
8532
|
+
t: t2
|
|
8533
|
+
} = useTranslation();
|
|
8534
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(ErrorWrapper$1, {
|
|
8535
|
+
className: props.className,
|
|
8536
|
+
style: props.style,
|
|
8537
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsxs(ErrorContent$1, {
|
|
8538
|
+
children: [/* @__PURE__ */ jsxRuntimeExports.jsx("p", {
|
|
8539
|
+
className: cx_default(eagle.Typo.Label.l1_regular_title, "title"),
|
|
8540
|
+
children: errorText || t2("dovetail.obtain_data_error")
|
|
8541
|
+
}), hiddenRetry ? null : /* @__PURE__ */ jsxRuntimeExports.jsx(kit.button, {
|
|
8542
|
+
size: "small",
|
|
8543
|
+
type: "ordinary",
|
|
8544
|
+
onClick: (e2) => {
|
|
8545
|
+
e2.stopPropagation();
|
|
8546
|
+
refetch == null ? void 0 : refetch();
|
|
8547
|
+
},
|
|
8548
|
+
children: t2("dovetail.retry")
|
|
8549
|
+
})]
|
|
8550
|
+
})
|
|
8551
|
+
});
|
|
8552
|
+
};
|
|
8553
|
+
const ErrorContent_1t51xnx = "";
|
|
8554
|
+
const ErrorWrapper = "eckm4od";
|
|
8555
|
+
const ErrorContent = "e1hl982n";
|
|
8556
|
+
const WidgetErrorContent = (props) => {
|
|
8557
|
+
const {
|
|
8558
|
+
refetch
|
|
8559
|
+
} = props;
|
|
8560
|
+
const kit = React.useContext(eagle.kitContext);
|
|
8561
|
+
const {
|
|
8562
|
+
t: t2
|
|
8563
|
+
} = useTranslation();
|
|
8564
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", {
|
|
8565
|
+
className: ErrorWrapper,
|
|
8566
|
+
style: props.style,
|
|
8567
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", {
|
|
8568
|
+
className: ErrorContent,
|
|
8569
|
+
children: [/* @__PURE__ */ jsxRuntimeExports.jsx("p", {
|
|
8570
|
+
className: cx_default(eagle.Typo.Label.l1_regular_title, "title"),
|
|
8571
|
+
children: props.errorText || t2("dovetail.obtain_data_error")
|
|
8572
|
+
}), refetch ? /* @__PURE__ */ jsxRuntimeExports.jsx(kit.button, {
|
|
8573
|
+
type: "ordinary",
|
|
8574
|
+
onClick: (e2) => {
|
|
8575
|
+
e2.stopPropagation();
|
|
8576
|
+
refetch == null ? void 0 : refetch();
|
|
8577
|
+
},
|
|
8578
|
+
children: t2("dovetail.retry")
|
|
8579
|
+
}) : null]
|
|
8580
|
+
})
|
|
8581
|
+
});
|
|
8582
|
+
};
|
|
8543
8583
|
const TableWidgets_ny30pi = "";
|
|
8544
8584
|
const AuxiliaryLine = /* @__PURE__ */ styled_default("div")({
|
|
8545
8585
|
name: "AuxiliaryLine",
|
|
@@ -8595,7 +8635,7 @@ var __publicField = (obj, key, value) => {
|
|
|
8595
8635
|
if (loading) {
|
|
8596
8636
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(kit.loading, {});
|
|
8597
8637
|
} else if (error) {
|
|
8598
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(WidgetErrorContent
|
|
8638
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(WidgetErrorContent, {
|
|
8599
8639
|
errorText: t2("dovetail.retry_when_access_data_failed"),
|
|
8600
8640
|
refetch,
|
|
8601
8641
|
style: {
|
|
@@ -8603,7 +8643,7 @@ var __publicField = (obj, key, value) => {
|
|
|
8603
8643
|
}
|
|
8604
8644
|
});
|
|
8605
8645
|
} else if (dataSource.length === 0) {
|
|
8606
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(WidgetErrorContent
|
|
8646
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(WidgetErrorContent, {
|
|
8607
8647
|
errorText: empty2 || t2("dovetail.empty"),
|
|
8608
8648
|
style: {
|
|
8609
8649
|
padding: "15px 0"
|
|
@@ -8666,7 +8706,8 @@ var __publicField = (obj, key, value) => {
|
|
|
8666
8706
|
WidgetErrorContent$1,
|
|
8667
8707
|
{
|
|
8668
8708
|
errorText: t2("dovetail.no_resource", { kind: ` ${t2("dovetail.pod_selector")}` }),
|
|
8669
|
-
style: { padding: "15px 0" }
|
|
8709
|
+
style: { padding: "15px 0" },
|
|
8710
|
+
hiddenRetry: true
|
|
8670
8711
|
}
|
|
8671
8712
|
);
|
|
8672
8713
|
}
|
|
@@ -8733,7 +8774,7 @@ var __publicField = (obj, key, value) => {
|
|
|
8733
8774
|
id: port2.name || ""
|
|
8734
8775
|
}));
|
|
8735
8776
|
if ((ports == null ? void 0 : ports.length) === 0) {
|
|
8736
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(WidgetErrorContent$1, { errorText: t2("dovetail.no_resource", { kind: t2("dovetail.port") }), style: { padding: "15px 0" } });
|
|
8777
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(WidgetErrorContent$1, { errorText: t2("dovetail.no_resource", { kind: t2("dovetail.port") }), style: { padding: "15px 0" }, hiddenRetry: true });
|
|
8737
8778
|
}
|
|
8738
8779
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
8739
8780
|
Table$1,
|
|
@@ -9863,7 +9904,7 @@ var __publicField = (obj, key, value) => {
|
|
|
9863
9904
|
children: content || "-"
|
|
9864
9905
|
});
|
|
9865
9906
|
};
|
|
9866
|
-
const
|
|
9907
|
+
const index_1ce2deq = "";
|
|
9867
9908
|
const TagWrapper = "t13a6vox";
|
|
9868
9909
|
const TagStyle = "t12ikbmp";
|
|
9869
9910
|
const Tags = (props) => {
|
|
@@ -9872,8 +9913,8 @@ var __publicField = (obj, key, value) => {
|
|
|
9872
9913
|
} = props;
|
|
9873
9914
|
const kit = eagle.useUIKit();
|
|
9874
9915
|
if (!value2) {
|
|
9875
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
9876
|
-
|
|
9916
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(ValueDisplay, {
|
|
9917
|
+
value: ""
|
|
9877
9918
|
});
|
|
9878
9919
|
}
|
|
9879
9920
|
const tags = Object.keys(value2).map((key2) => {
|
|
@@ -10340,46 +10381,6 @@ var __publicField = (obj, key, value) => {
|
|
|
10340
10381
|
})]
|
|
10341
10382
|
});
|
|
10342
10383
|
};
|
|
10343
|
-
const index_1kmu85y = "";
|
|
10344
|
-
const ErrorWrapper = /* @__PURE__ */ styled_default("div")({
|
|
10345
|
-
name: "ErrorWrapper",
|
|
10346
|
-
class: "egn3dbn",
|
|
10347
|
-
propsAsIs: false
|
|
10348
|
-
});
|
|
10349
|
-
const ErrorContent = /* @__PURE__ */ styled_default("div")({
|
|
10350
|
-
name: "ErrorContent",
|
|
10351
|
-
class: "e136jgy8",
|
|
10352
|
-
propsAsIs: false
|
|
10353
|
-
});
|
|
10354
|
-
const WidgetErrorContent = (props) => {
|
|
10355
|
-
const {
|
|
10356
|
-
refetch,
|
|
10357
|
-
errorText,
|
|
10358
|
-
hiddenRetry
|
|
10359
|
-
} = props;
|
|
10360
|
-
const kit = React.useContext(eagle.kitContext);
|
|
10361
|
-
const {
|
|
10362
|
-
t: t2
|
|
10363
|
-
} = useTranslation();
|
|
10364
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(ErrorWrapper, {
|
|
10365
|
-
className: props.className,
|
|
10366
|
-
style: props.style,
|
|
10367
|
-
children: /* @__PURE__ */ jsxRuntimeExports.jsxs(ErrorContent, {
|
|
10368
|
-
children: [/* @__PURE__ */ jsxRuntimeExports.jsx("p", {
|
|
10369
|
-
className: cx_default(eagle.Typo.Label.l1_regular_title, "title"),
|
|
10370
|
-
children: errorText || t2("dovetail.obtain_data_error")
|
|
10371
|
-
}), hiddenRetry ? null : /* @__PURE__ */ jsxRuntimeExports.jsx(kit.button, {
|
|
10372
|
-
size: "small",
|
|
10373
|
-
type: "ordinary",
|
|
10374
|
-
onClick: (e2) => {
|
|
10375
|
-
e2.stopPropagation();
|
|
10376
|
-
refetch == null ? void 0 : refetch();
|
|
10377
|
-
},
|
|
10378
|
-
children: t2("dovetail.retry")
|
|
10379
|
-
})]
|
|
10380
|
-
})
|
|
10381
|
-
});
|
|
10382
|
-
};
|
|
10383
10384
|
const EventsTable = ({}) => {
|
|
10384
10385
|
const { i18n: i18n2 } = useTranslation();
|
|
10385
10386
|
const [currentPage, setCurrentPage] = React.useState(1);
|
|
@@ -10435,7 +10436,7 @@ var __publicField = (obj, key, value) => {
|
|
|
10435
10436
|
}, [data2 == null ? void 0 : data2.data, parsed]);
|
|
10436
10437
|
if (!(dataSource == null ? void 0 : dataSource.length) && !isLoading) {
|
|
10437
10438
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
10438
|
-
WidgetErrorContent,
|
|
10439
|
+
WidgetErrorContent$1,
|
|
10439
10440
|
{
|
|
10440
10441
|
errorText: i18n2.t("dovetail.no_resource", { kind: i18n2.t("dovetail.event") }),
|
|
10441
10442
|
hiddenRetry: true
|
|
@@ -10559,7 +10560,7 @@ var __publicField = (obj, key, value) => {
|
|
|
10559
10560
|
}
|
|
10560
10561
|
];
|
|
10561
10562
|
if ((rows == null ? void 0 : rows.length) === 0) {
|
|
10562
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(WidgetErrorContent$1, { errorText: t2("dovetail.no_resource", { kind: t2("dovetail.rule") }), style: { padding: "15px 0" } });
|
|
10563
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(WidgetErrorContent$1, { errorText: t2("dovetail.no_resource", { kind: t2("dovetail.rule") }), style: { padding: "15px 0" }, hiddenRetry: true });
|
|
10563
10564
|
}
|
|
10564
10565
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
10565
10566
|
Table$1,
|
|
@@ -10580,7 +10581,7 @@ var __publicField = (obj, key, value) => {
|
|
|
10580
10581
|
const KeyValue_1vkf5y2 = "";
|
|
10581
10582
|
const ContentBlockStyle = "c8jy7dc";
|
|
10582
10583
|
const KeyStyle = "k2sddxl";
|
|
10583
|
-
const ValueStyle = "v16vicsr";
|
|
10584
|
+
const ValueStyle$2 = "v16vicsr";
|
|
10584
10585
|
const KeyValue = (props) => {
|
|
10585
10586
|
const {
|
|
10586
10587
|
data: data2 = {},
|
|
@@ -10596,12 +10597,12 @@ var __publicField = (obj, key, value) => {
|
|
|
10596
10597
|
className: cx_default(KeyStyle, eagle.Typo.Label.l4_regular),
|
|
10597
10598
|
children: key2
|
|
10598
10599
|
}), /* @__PURE__ */ jsxRuntimeExports.jsx("span", {
|
|
10599
|
-
className: cx_default(eagle.Typo.Label.l4_regular, ValueStyle),
|
|
10600
|
+
className: cx_default(eagle.Typo.Label.l4_regular, ValueStyle$2),
|
|
10600
10601
|
children: hideSecret ? toAsterisk(data2[key2]) : data2[key2]
|
|
10601
10602
|
})]
|
|
10602
10603
|
}, key2));
|
|
10603
10604
|
if (!result.length) {
|
|
10604
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(WidgetErrorContent, {
|
|
10605
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(WidgetErrorContent$1, {
|
|
10605
10606
|
errorText: empty2 || t2("dovetail.empty"),
|
|
10606
10607
|
hiddenRetry: true
|
|
10607
10608
|
});
|
|
@@ -10752,7 +10753,7 @@ var __publicField = (obj, key, value) => {
|
|
|
10752
10753
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(kit.tabsTabPane, { tab: tab.title, children: tab.children }, tab.title);
|
|
10753
10754
|
}) });
|
|
10754
10755
|
}
|
|
10755
|
-
const
|
|
10756
|
+
const ShowContent_1iepja4 = "";
|
|
10756
10757
|
const ShowContentWrapperStyle = "s9agep2";
|
|
10757
10758
|
const BackButton = "bo89gfi";
|
|
10758
10759
|
const ToolBarWrapper = "t1ohe42f";
|
|
@@ -10764,7 +10765,8 @@ var __publicField = (obj, key, value) => {
|
|
|
10764
10765
|
const FullTabContentStyle = "fykgn2i";
|
|
10765
10766
|
const FieldWrapperStyle = "fngr745";
|
|
10766
10767
|
const TabContentStyle = "t11wg61l";
|
|
10767
|
-
const
|
|
10768
|
+
const ValueStyle$1 = "v1x3rivf";
|
|
10769
|
+
const TabsStyle = "tf5s6s";
|
|
10768
10770
|
function ShowGroupComponent(props) {
|
|
10769
10771
|
const {
|
|
10770
10772
|
title,
|
|
@@ -10848,7 +10850,7 @@ var __publicField = (obj, key, value) => {
|
|
|
10848
10850
|
minWidth: 0
|
|
10849
10851
|
},
|
|
10850
10852
|
children: /* @__PURE__ */ jsxRuntimeExports.jsx(ValueDisplay, {
|
|
10851
|
-
className: eagle.Typo.Label.l4_regular_title,
|
|
10853
|
+
className: cx_default(eagle.Typo.Label.l4_regular_title, ValueStyle$1),
|
|
10852
10854
|
value: content,
|
|
10853
10855
|
useOverflow: false
|
|
10854
10856
|
})
|
|
@@ -10999,13 +11001,14 @@ var __publicField = (obj, key, value) => {
|
|
|
10999
11001
|
sortable: true
|
|
11000
11002
|
}, NodeNameColumnRenderer(i18n2), WorkloadImageColumnRenderer(i18n2), PodContainersNumColumnRenderer(i18n2), RestartCountColumnRenderer(i18n2), AgeColumnRenderer(i18n2)];
|
|
11001
11003
|
if ((dataSource == null ? void 0 : dataSource.length) === 0) {
|
|
11002
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(WidgetErrorContent, {
|
|
11004
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(WidgetErrorContent$1, {
|
|
11003
11005
|
errorText: i18n2.t("dovetail.no_resource", {
|
|
11004
11006
|
kind: i18n2.t("dovetail.pod")
|
|
11005
11007
|
}),
|
|
11006
11008
|
style: {
|
|
11007
11009
|
padding: "15px 0"
|
|
11008
|
-
}
|
|
11010
|
+
},
|
|
11011
|
+
hiddenRetry: true
|
|
11009
11012
|
});
|
|
11010
11013
|
}
|
|
11011
11014
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(kit.space, {
|
|
@@ -11176,7 +11179,8 @@ var __publicField = (obj, key, value) => {
|
|
|
11176
11179
|
style: {
|
|
11177
11180
|
marginTop: 16
|
|
11178
11181
|
},
|
|
11179
|
-
errorMsgs
|
|
11182
|
+
errorMsgs,
|
|
11183
|
+
isEdit: true
|
|
11180
11184
|
})]
|
|
11181
11185
|
});
|
|
11182
11186
|
}
|
|
@@ -11200,7 +11204,7 @@ var __publicField = (obj, key, value) => {
|
|
|
11200
11204
|
children: i18n2.t("dovetail.edit")
|
|
11201
11205
|
});
|
|
11202
11206
|
}
|
|
11203
|
-
const
|
|
11207
|
+
const index_c9frt4 = "";
|
|
11204
11208
|
const WorkloadReplicasWrapperStyle = "w8ychfk";
|
|
11205
11209
|
const DonutChartWrapperStyle = "d1o004do";
|
|
11206
11210
|
const DonutChartStyle = "dfo80qq";
|
|
@@ -11209,6 +11213,7 @@ var __publicField = (obj, key, value) => {
|
|
|
11209
11213
|
const ReplicasValueStyle = "r1oqudbh";
|
|
11210
11214
|
const ContentWrapperStyle = "c18i6jtg";
|
|
11211
11215
|
const LabelStyle = "lpm22il";
|
|
11216
|
+
const ValueStyle = "v1ixr1me";
|
|
11212
11217
|
const WorkloadReplicasForm = React.forwardRef(function WorkloadReplicasForm2(props, ref) {
|
|
11213
11218
|
const {
|
|
11214
11219
|
defaultValue,
|
|
@@ -11337,16 +11342,18 @@ var __publicField = (obj, key, value) => {
|
|
|
11337
11342
|
className: ContentWrapperStyle,
|
|
11338
11343
|
children: [/* @__PURE__ */ jsxRuntimeExports.jsxs("tr", {
|
|
11339
11344
|
children: [/* @__PURE__ */ jsxRuntimeExports.jsx("td", {
|
|
11340
|
-
className: LabelStyle,
|
|
11345
|
+
className: cx_default(LabelStyle, eagle.Typo.Label.l3_regular),
|
|
11341
11346
|
children: t2("dovetail.pod_ready_num")
|
|
11342
11347
|
}), /* @__PURE__ */ jsxRuntimeExports.jsx("td", {
|
|
11348
|
+
className: cx_default(ValueStyle, eagle.Typo.Label.l3_regular),
|
|
11343
11349
|
children: readyReplicas
|
|
11344
11350
|
})]
|
|
11345
11351
|
}), /* @__PURE__ */ jsxRuntimeExports.jsxs("tr", {
|
|
11346
11352
|
children: [/* @__PURE__ */ jsxRuntimeExports.jsx("td", {
|
|
11347
|
-
className: LabelStyle,
|
|
11353
|
+
className: cx_default(LabelStyle, eagle.Typo.Label.l3_regular),
|
|
11348
11354
|
children: t2("dovetail.pod_replicas_num")
|
|
11349
11355
|
}), /* @__PURE__ */ jsxRuntimeExports.jsx("td", {
|
|
11356
|
+
className: cx_default(ValueStyle, eagle.Typo.Label.l3_regular),
|
|
11350
11357
|
children: replicas
|
|
11351
11358
|
}), /* @__PURE__ */ jsxRuntimeExports.jsx("td", {
|
|
11352
11359
|
children: editable && canScale && /* @__PURE__ */ jsxRuntimeExports.jsx(EditField, {
|
|
@@ -17366,7 +17373,7 @@ var __publicField = (obj, key, value) => {
|
|
|
17366
17373
|
})]
|
|
17367
17374
|
}), /* @__PURE__ */ jsxRuntimeExports.jsx("div", {
|
|
17368
17375
|
className: ContentStyle$1,
|
|
17369
|
-
children: logType === "previous" && !logs.length ? /* @__PURE__ */ jsxRuntimeExports.jsx(WidgetErrorContent, {
|
|
17376
|
+
children: logType === "previous" && !logs.length ? /* @__PURE__ */ jsxRuntimeExports.jsx(WidgetErrorContent$1, {
|
|
17370
17377
|
style: {
|
|
17371
17378
|
height: "100%"
|
|
17372
17379
|
},
|
|
@@ -17599,7 +17606,8 @@ var __publicField = (obj, key, value) => {
|
|
|
17599
17606
|
}),
|
|
17600
17607
|
style: {
|
|
17601
17608
|
padding: "15px 0"
|
|
17602
|
-
}
|
|
17609
|
+
},
|
|
17610
|
+
hiddenRetry: true
|
|
17603
17611
|
});
|
|
17604
17612
|
}
|
|
17605
17613
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(MonacoYamlEditor$1, {
|
|
@@ -17680,7 +17688,7 @@ var __publicField = (obj, key, value) => {
|
|
|
17680
17688
|
[containerStatuses, initContainerStatuses]
|
|
17681
17689
|
);
|
|
17682
17690
|
if (dataSource.length === 0) {
|
|
17683
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(WidgetErrorContent, { errorText: i18n2.t("dovetail.no_resource", { kind: i18n2.t("dovetail.container") }), style: { padding: "15px 0" } });
|
|
17691
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(WidgetErrorContent$1, { errorText: i18n2.t("dovetail.no_resource", { kind: i18n2.t("dovetail.container") }), style: { padding: "15px 0" }, hiddenRetry: true });
|
|
17684
17692
|
}
|
|
17685
17693
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
17686
17694
|
Table$1,
|
|
@@ -18290,7 +18298,7 @@ var __publicField = (obj, key, value) => {
|
|
|
18290
18298
|
className: NamespaceFilterStyle
|
|
18291
18299
|
}), /* @__PURE__ */ jsxRuntimeExports.jsx("div", {
|
|
18292
18300
|
className: TableStyle,
|
|
18293
|
-
children: !(tableProps.data.length || tableProps.loading) ? /* @__PURE__ */ jsxRuntimeExports.jsx(WidgetErrorContent, {
|
|
18301
|
+
children: !(tableProps.data.length || tableProps.loading) ? /* @__PURE__ */ jsxRuntimeExports.jsx(WidgetErrorContent$1, {
|
|
18294
18302
|
errorText: tableProps.empty || t2("dovetail.no_resource", {
|
|
18295
18303
|
kind: ` ${config.kind}`
|
|
18296
18304
|
}),
|
|
@@ -22842,7 +22850,7 @@ var __publicField = (obj, key, value) => {
|
|
|
22842
22850
|
isEdit: action === "edit"
|
|
22843
22851
|
})
|
|
22844
22852
|
})]
|
|
22845
|
-
}) : /* @__PURE__ */ jsxRuntimeExports.jsx(WidgetErrorContent, {
|
|
22853
|
+
}) : /* @__PURE__ */ jsxRuntimeExports.jsx(WidgetErrorContent$1, {
|
|
22846
22854
|
errorText: t2("dovetail.fetch_schema_fail"),
|
|
22847
22855
|
refetch: fetchSchema
|
|
22848
22856
|
});
|
package/dist/style.css
CHANGED
|
@@ -4,13 +4,15 @@
|
|
|
4
4
|
.e5223w8{color:rgba(0,21,64,.3);}
|
|
5
5
|
.cdjsw14{width:100%;}.cdjsw14.overflow{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
|
|
6
6
|
.b142d7q8{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;}.b142d7q8 .breadcrumb-item:not(:last-of-type):after{content:'>';margin:0 8px;}
|
|
7
|
+
.egn3dbn{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;height:100%;}
|
|
8
|
+
.e136jgy8{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}.e136jgy8 .title{margin-bottom:8px;background-clip:text;-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-image:linear-gradient(211.41deg,#929dad 0%,#d3dbe3 100%);}
|
|
7
9
|
.eckm4od{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;height:100%;}
|
|
8
10
|
.e1hl982n{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}.e1hl982n .title{margin-bottom:8px;background-clip:text;-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-image:linear-gradient(211.41deg,#929dad 0%,#d3dbe3 100%);}
|
|
9
11
|
.ax1qopv{position:absolute;top:0;left:0;bottom:0;width:1px;background:$blue-60;-webkit-transform:translateX(-9999px);-ms-transform:translateX(-9999px);transform:translateX(-9999px);z-index:999;}.ax1qopv::before{content:'';position:absolute;height:34px;width:3px;top:0;left:-1px;background:$blue-60;}
|
|
10
12
|
.t1upn1sz{width:100%;border-top:1px solid rgba(211,218,235,0.6);display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;}.t1upn1sz .ant-table-pagination{display:none;}.t1upn1sz .table-container{min-height:0;}
|
|
11
13
|
.b1vtjd4k.ant-btn.ant-btn-link{display:block;}
|
|
12
|
-
.t13a6vox{-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap;max-width:100%;}
|
|
13
|
-
.t12ikbmp{overflow:hidden;text-overflow:ellipsis;}
|
|
14
|
+
.t13a6vox{-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap;max-width:100%;gap:8px 8px;}
|
|
15
|
+
.t12ikbmp{overflow:hidden;text-overflow:ellipsis;color:#1D326C;}.t12ikbmp .outside-tag{background:rgba(211,218,235,0.60);}.t12ikbmp .inside-tag{background:rgba(192,203,224,0.60);}
|
|
14
16
|
.s8qkbck.ant-tag{padding:3px 16px;height:24px;}.s8qkbck.no-background{background-color:transparent !important;padding:0;}
|
|
15
17
|
.t19ustft{padding-bottom:3px;border-bottom:1px dashed rgba(107,128,167,0.6);}
|
|
16
18
|
.t1v3ienx{padding:12px 24px;}
|
|
@@ -18,8 +20,6 @@
|
|
|
18
20
|
.tq6dc79{color:#00122E;}
|
|
19
21
|
.d1wqyhgc{color:rgba(44,56,82,0.75);}
|
|
20
22
|
.w16agr8o.ant-space{width:100%;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;}
|
|
21
|
-
.egn3dbn{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;height:100%;}
|
|
22
|
-
.e136jgy8{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}.e136jgy8 .title{margin-bottom:8px;background-clip:text;-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-image:linear-gradient(211.41deg,#929dad 0%,#d3dbe3 100%);}
|
|
23
23
|
.i1u1f5zp{white-space:pre-line;}
|
|
24
24
|
.c8jy7dc{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;padding:8px 10px;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;-webkit-align-items:flex-start;-webkit-box-align:flex-start;-ms-flex-align:flex-start;align-items:flex-start;gap:8px;-webkit-align-self:stretch;-ms-flex-item-align:stretch;align-self:stretch;border-radius:4px;background:rgba(237,241,250,0.6);}.c8jy7dc:not(:last-of-type){margin-bottom:8px;}
|
|
25
25
|
.k2sddxl{color:rgba(44,56,82,0.6);width:calc(30% - 4px);margin-right:8px;}
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
.s9agep2{height:100%;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;background:linear-gradient(180deg,#fff 0%,#edf0f7 100%);}.s9agep2 .ant-row{margin-right:0 !important;}
|
|
32
32
|
.bo89gfi{color:rgba(0,21,64,0.3);line-height:18px;cursor:pointer;display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-align-self:flex-start;-ms-flex-item-align:start;align-self:flex-start;}.bo89gfi:hover{color:#0080FF;}
|
|
33
33
|
.t1ohe42f{padding:16px 24px 8px 24px;background-color:#fff;}
|
|
34
|
-
.nqm4qz0{margin-right:8px;}
|
|
34
|
+
.nqm4qz0{color:#00122E;margin-right:8px;}
|
|
35
35
|
.ticl0qc{-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;width:100%;}
|
|
36
36
|
.so9uwk1{width:100%;}
|
|
37
37
|
.ge26ou0{padding:12px 16px;border-radius:8px;border:1px solid rgba(211,218,235,0.6);box-shadow: 0px 0px 2.003px 0px rgba(107,125,153,0.15), 0px 0px 16px 0px rgba(107,125,153,0.08);background-color:#fff;margin:16px 24px;overflow:auto;margin-bottom:0;width:calc(100% - 48px);max-width:1592px;}.ge26ou0:not(:last-of-type){margin-bottom:24px;}
|
|
@@ -39,7 +39,8 @@
|
|
|
39
39
|
.fykgn2i{background-color:#fff;height:100%;}
|
|
40
40
|
.fngr745{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-wrap:nowrap;-ms-flex-wrap:nowrap;flex-wrap:nowrap;}
|
|
41
41
|
.t11wg61l{padding-bottom:16px;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;min-width:952px;}
|
|
42
|
-
.
|
|
42
|
+
.v1x3rivf{color:#00122E;}
|
|
43
|
+
.tf5s6s.ant-tabs{-webkit-flex:1;-ms-flex:1;flex:1;min-height:0;}.tf5s6s.ant-tabs .ant-tabs-nav{margin-bottom:0;}.tf5s6s.ant-tabs .ant-tabs-nav-list{margin-left:24px;}.tf5s6s.ant-tabs .ant-tabs-content-holder{overflow:auto;}.tf5s6s.ant-tabs .ant-tabs-content-holder .ant-tabs-content,.tf5s6s.ant-tabs .ant-tabs-content-holder .ant-tabs-tabpane-active{height:100%;}
|
|
43
44
|
.c1dicff8{width:100%;vertical-align:top;}
|
|
44
45
|
.esoz3jw .ant-modal-content{border-radius:16px;}.esoz3jw .ant-modal-header{border-radius:16px 16px 0 0;}
|
|
45
46
|
.e1m0bgls.ant-btn.ant-btn-link{height:22px;margin-left:8px;}
|
|
@@ -50,7 +51,8 @@
|
|
|
50
51
|
.r1bm8olw{color:#00122E;}
|
|
51
52
|
.r1oqudbh{color:rgba(44,56,82,0.60);}
|
|
52
53
|
.c18i6jtg{display:table;margin:auto 0;position:relative;}
|
|
53
|
-
.lpm22il{padding-right:40px;}
|
|
54
|
+
.lpm22il{padding-right:40px;color:rgba(44,56,82,0.75);}
|
|
55
|
+
.v1ixr1me{color:#00122E;}
|
|
54
56
|
.pf-v5-c-log-viewer.pf-m-dark .pf-v5-c-log-viewer__main {
|
|
55
57
|
--pf-v5-global--Color--100: var(--pf-v5-global--Color--light-100);
|
|
56
58
|
--pf-v5-global--Color--200: var(--pf-v5-global--Color--light-200);
|