@dovetail-v2/refine 0.4.4 → 0.4.5
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/components/ErrorContent/index.d.ts +3 -4
- package/dist/components/IngressRulesComponent/PathWithCopy.d.ts +7 -0
- package/dist/components/Table/index.d.ts +2 -2
- package/dist/components/index.d.ts +0 -1
- package/dist/refine.cjs +195 -188
- package/dist/refine.js +195 -188
- package/dist/style.css +42 -27
- package/package.json +1 -1
package/dist/refine.js
CHANGED
|
@@ -8118,8 +8118,8 @@ const ErrorWrapper = /* @__PURE__ */ styled_default("div")({
|
|
|
8118
8118
|
class: "egn3dbn",
|
|
8119
8119
|
propsAsIs: false
|
|
8120
8120
|
});
|
|
8121
|
-
const
|
|
8122
|
-
name: "
|
|
8121
|
+
const ErrorContentBody = /* @__PURE__ */ styled_default("div")({
|
|
8122
|
+
name: "ErrorContentBody",
|
|
8123
8123
|
class: "e136jgy8",
|
|
8124
8124
|
propsAsIs: false
|
|
8125
8125
|
});
|
|
@@ -8130,7 +8130,7 @@ var ErrorContentType = /* @__PURE__ */ ((ErrorContentType2) => {
|
|
|
8130
8130
|
ErrorContentType2["Item"] = "item";
|
|
8131
8131
|
return ErrorContentType2;
|
|
8132
8132
|
})(ErrorContentType || {});
|
|
8133
|
-
const
|
|
8133
|
+
const ErrorContent = (props) => {
|
|
8134
8134
|
const {
|
|
8135
8135
|
refetch,
|
|
8136
8136
|
errorText,
|
|
@@ -8166,7 +8166,7 @@ const WidgetErrorContent = (props) => {
|
|
|
8166
8166
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(ErrorWrapper, {
|
|
8167
8167
|
className: cx_default(props.className, type2),
|
|
8168
8168
|
style: props.style,
|
|
8169
|
-
children: /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
8169
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsxs(ErrorContentBody, {
|
|
8170
8170
|
className: "error-content",
|
|
8171
8171
|
children: [/* @__PURE__ */ jsxRuntimeExports.jsx("p", {
|
|
8172
8172
|
className: cx_default(fontMap[type2], "title", `${type2}-title`),
|
|
@@ -8236,7 +8236,7 @@ function Table$1(props) {
|
|
|
8236
8236
|
if (loading) {
|
|
8237
8237
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(Loading, {});
|
|
8238
8238
|
} else if (error) {
|
|
8239
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
8239
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(ErrorContent, {
|
|
8240
8240
|
errorText: t2("dovetail.retry_when_access_data_failed"),
|
|
8241
8241
|
refetch,
|
|
8242
8242
|
style: {
|
|
@@ -8244,7 +8244,7 @@ function Table$1(props) {
|
|
|
8244
8244
|
}
|
|
8245
8245
|
});
|
|
8246
8246
|
} else if (dataSource.length === 0) {
|
|
8247
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
8247
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(ErrorContent, {
|
|
8248
8248
|
errorText: empty2 || t2("dovetail.empty"),
|
|
8249
8249
|
style: {
|
|
8250
8250
|
padding: "15px 0"
|
|
@@ -8353,7 +8353,7 @@ const PodSelectorTable = ({ podSelectors = {} }) => {
|
|
|
8353
8353
|
});
|
|
8354
8354
|
if (datas.length === 0) {
|
|
8355
8355
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
8356
|
-
|
|
8356
|
+
ErrorContent,
|
|
8357
8357
|
{
|
|
8358
8358
|
errorText: t2("dovetail.no_resource", { kind: ` ${t2("dovetail.pod_selector")}` }),
|
|
8359
8359
|
type: ErrorContentType.Card
|
|
@@ -8440,7 +8440,7 @@ const PortsTable = ({ service: service2 }) => {
|
|
|
8440
8440
|
});
|
|
8441
8441
|
if ((ports == null ? void 0 : ports.length) === 0) {
|
|
8442
8442
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
8443
|
-
|
|
8443
|
+
ErrorContent,
|
|
8444
8444
|
{
|
|
8445
8445
|
errorText: t2("dovetail.no_resource", { kind: t2("dovetail.port") }),
|
|
8446
8446
|
type: ErrorContentType.Card
|
|
@@ -8562,20 +8562,22 @@ function EditFieldModal(props) {
|
|
|
8562
8562
|
popModal();
|
|
8563
8563
|
reset();
|
|
8564
8564
|
}, [popModal, reset]);
|
|
8565
|
-
return /* @__PURE__ */ jsxRuntimeExports.
|
|
8565
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(ModalComponent, {
|
|
8566
8566
|
title: title || i18n2.t("dovetail.edit"),
|
|
8567
8567
|
confirmLoading: submitting,
|
|
8568
8568
|
onOk: onSubmit,
|
|
8569
8569
|
onCancel: close2,
|
|
8570
8570
|
okText: i18n2.t("dovetail.save"),
|
|
8571
8571
|
destroyOnClose: true,
|
|
8572
|
-
children:
|
|
8573
|
-
|
|
8574
|
-
|
|
8575
|
-
|
|
8576
|
-
|
|
8577
|
-
|
|
8578
|
-
|
|
8572
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, {
|
|
8573
|
+
children: [renderContent(), /* @__PURE__ */ jsxRuntimeExports.jsx(FormErrorAlert, {
|
|
8574
|
+
style: {
|
|
8575
|
+
marginTop: 16
|
|
8576
|
+
},
|
|
8577
|
+
errorMsgs,
|
|
8578
|
+
isEdit: true
|
|
8579
|
+
})]
|
|
8580
|
+
})
|
|
8579
8581
|
});
|
|
8580
8582
|
}
|
|
8581
8583
|
function EditField(props) {
|
|
@@ -10331,7 +10333,7 @@ class IngressClassModel extends ResourceModel {
|
|
|
10331
10333
|
return (_a = this.spec) == null ? void 0 : _a.controller;
|
|
10332
10334
|
}
|
|
10333
10335
|
}
|
|
10334
|
-
const
|
|
10336
|
+
const index_1tz3o5 = "";
|
|
10335
10337
|
const ServiceInClusterAccessComponent = ({
|
|
10336
10338
|
service: service2
|
|
10337
10339
|
}) => {
|
|
@@ -10356,6 +10358,8 @@ const LinkStyle$2 = "luro4rx";
|
|
|
10356
10358
|
const ShowLinkStyle = "s1gydjqf";
|
|
10357
10359
|
const DashedUnderlineSpanStyle = "dvp1i89";
|
|
10358
10360
|
const AccessAddressStyle = "azmggeh";
|
|
10361
|
+
const BreakLineListStyle = "bct30qn";
|
|
10362
|
+
const BreakLineItemStyle = "b1m9bqu";
|
|
10359
10363
|
const ServiceAccessAddress = ({
|
|
10360
10364
|
children,
|
|
10361
10365
|
copyValue
|
|
@@ -10391,7 +10395,7 @@ const ServiceOutClusterAccessComponent = ({
|
|
|
10391
10395
|
showDashedUnderline = true,
|
|
10392
10396
|
showCopyButton = false
|
|
10393
10397
|
}) => {
|
|
10394
|
-
var _a, _b, _c, _d, _e, _f, _g
|
|
10398
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
10395
10399
|
const {
|
|
10396
10400
|
i18n: i18n2
|
|
10397
10401
|
} = useTranslation();
|
|
@@ -10400,58 +10404,50 @@ const ServiceOutClusterAccessComponent = ({
|
|
|
10400
10404
|
let content = "-";
|
|
10401
10405
|
switch (spec.type) {
|
|
10402
10406
|
case ServiceTypeEnum.NodePort:
|
|
10403
|
-
|
|
10404
|
-
|
|
10405
|
-
|
|
10406
|
-
|
|
10407
|
-
|
|
10408
|
-
|
|
10409
|
-
|
|
10410
|
-
|
|
10411
|
-
|
|
10412
|
-
|
|
10413
|
-
|
|
10414
|
-
|
|
10415
|
-
|
|
10416
|
-
|
|
10417
|
-
children: address
|
|
10418
|
-
})
|
|
10407
|
+
content = (_a = spec.ports) == null ? void 0 : _a.filter((v) => !!v && v.nodePort).map((p) => {
|
|
10408
|
+
const address = `${clusterVip}:${p.nodePort}`;
|
|
10409
|
+
const link = /* @__PURE__ */ jsxRuntimeExports.jsx(Link$1, {
|
|
10410
|
+
href: `http://${address}`,
|
|
10411
|
+
target: "_blank",
|
|
10412
|
+
className: breakLine ? cx_default(Typo.Label.l4_regular_title, BreakLineStyle, LinkStyle$2) : cx_default(ShowLinkStyle, Typo.Label.l4_regular_title),
|
|
10413
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx(Tooltip, {
|
|
10414
|
+
title: i18n2.t("dovetail.default_http_protocol_tooltip"),
|
|
10415
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx("span", {
|
|
10416
|
+
className: DashedUnderlineSpanStyle,
|
|
10417
|
+
style: showDashedUnderline ? void 0 : {
|
|
10418
|
+
borderBottom: "none"
|
|
10419
|
+
},
|
|
10420
|
+
children: address
|
|
10419
10421
|
})
|
|
10420
|
-
}
|
|
10421
|
-
|
|
10422
|
-
|
|
10423
|
-
|
|
10424
|
-
|
|
10425
|
-
|
|
10426
|
-
|
|
10427
|
-
|
|
10428
|
-
});
|
|
10422
|
+
})
|
|
10423
|
+
}, p.name || p.nodePort);
|
|
10424
|
+
if (!showCopyButton) {
|
|
10425
|
+
return link;
|
|
10426
|
+
}
|
|
10427
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(ServiceAccessAddress, {
|
|
10428
|
+
copyValue: address,
|
|
10429
|
+
children: link
|
|
10430
|
+
}, p.name || p.nodePort);
|
|
10431
|
+
});
|
|
10432
|
+
if (!breakLine) {
|
|
10429
10433
|
if (content && content instanceof Array) {
|
|
10430
10434
|
content = renderAccessItems(content, ", ");
|
|
10431
10435
|
}
|
|
10432
10436
|
break;
|
|
10433
10437
|
}
|
|
10434
|
-
|
|
10435
|
-
|
|
10436
|
-
|
|
10437
|
-
|
|
10438
|
-
|
|
10439
|
-
|
|
10440
|
-
|
|
10441
|
-
|
|
10442
|
-
|
|
10443
|
-
|
|
10444
|
-
},
|
|
10445
|
-
children: [clusterVip, ":", p.nodePort]
|
|
10446
|
-
})
|
|
10447
|
-
})
|
|
10448
|
-
}, p.nodePort));
|
|
10449
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx("ul", {
|
|
10450
|
-
children: content
|
|
10451
|
-
});
|
|
10438
|
+
if (content && content instanceof Array) {
|
|
10439
|
+
content = /* @__PURE__ */ jsxRuntimeExports.jsx("ul", {
|
|
10440
|
+
className: BreakLineListStyle,
|
|
10441
|
+
children: content.map((item, index2) => /* @__PURE__ */ jsxRuntimeExports.jsx("li", {
|
|
10442
|
+
className: BreakLineItemStyle,
|
|
10443
|
+
children: item
|
|
10444
|
+
}, `nodeport-${index2}`))
|
|
10445
|
+
});
|
|
10446
|
+
}
|
|
10447
|
+
break;
|
|
10452
10448
|
case ServiceTypeEnum.ExternalName:
|
|
10453
10449
|
if (showCopyButton) {
|
|
10454
|
-
content = renderAccessItems(((
|
|
10450
|
+
content = renderAccessItems(((_b = spec.externalIPs) == null ? void 0 : _b.map((ip) => /* @__PURE__ */ jsxRuntimeExports.jsx(ServiceAccessAddress, {
|
|
10455
10451
|
copyValue: ip,
|
|
10456
10452
|
children: ip
|
|
10457
10453
|
}, ip))) || [], breakLine ? "\n" : ", ");
|
|
@@ -10459,12 +10455,12 @@ const ServiceOutClusterAccessComponent = ({
|
|
|
10459
10455
|
}
|
|
10460
10456
|
content = /* @__PURE__ */ jsxRuntimeExports.jsx(ValueDisplay, {
|
|
10461
10457
|
useOverflow: false,
|
|
10462
|
-
value: (
|
|
10458
|
+
value: (_c = spec.externalIPs) == null ? void 0 : _c.join(breakLine ? "\n" : ", ")
|
|
10463
10459
|
});
|
|
10464
10460
|
break;
|
|
10465
10461
|
case ServiceTypeEnum.LoadBalancer:
|
|
10466
10462
|
if (showCopyButton) {
|
|
10467
|
-
content = renderAccessItems(((
|
|
10463
|
+
content = renderAccessItems(((_e = (_d = status.loadBalancer) == null ? void 0 : _d.ingress) == null ? void 0 : _e.map(({
|
|
10468
10464
|
ip
|
|
10469
10465
|
}) => ip).filter((ip) => !!ip).map((ip) => /* @__PURE__ */ jsxRuntimeExports.jsx(ServiceAccessAddress, {
|
|
10470
10466
|
copyValue: ip,
|
|
@@ -10474,7 +10470,7 @@ const ServiceOutClusterAccessComponent = ({
|
|
|
10474
10470
|
}
|
|
10475
10471
|
content = /* @__PURE__ */ jsxRuntimeExports.jsx(ValueDisplay, {
|
|
10476
10472
|
useOverflow: false,
|
|
10477
|
-
value: (
|
|
10473
|
+
value: (_g = (_f = status.loadBalancer) == null ? void 0 : _f.ingress) == null ? void 0 : _g.map(({
|
|
10478
10474
|
ip
|
|
10479
10475
|
}) => ip).join(breakLine ? "\n" : ", ")
|
|
10480
10476
|
});
|
|
@@ -10719,7 +10715,7 @@ const ConditionsTable = ({ conditions = [] }) => {
|
|
|
10719
10715
|
const currentSize = 10;
|
|
10720
10716
|
if (conditionsWithId.length === 0) {
|
|
10721
10717
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
10722
|
-
|
|
10718
|
+
ErrorContent,
|
|
10723
10719
|
{
|
|
10724
10720
|
errorText: t2("dovetail.no_resource", { kind: t2("dovetail.condition") }),
|
|
10725
10721
|
type: ErrorContentType.List
|
|
@@ -11767,7 +11763,7 @@ function YamlForm(props) {
|
|
|
11767
11763
|
isEdit: action === "edit"
|
|
11768
11764
|
})
|
|
11769
11765
|
})]
|
|
11770
|
-
}) : /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
11766
|
+
}) : /* @__PURE__ */ jsxRuntimeExports.jsx(ErrorContent, {
|
|
11771
11767
|
errorText: t2("dovetail.fetch_schema_fail"),
|
|
11772
11768
|
refetch: fetchSchema
|
|
11773
11769
|
});
|
|
@@ -12597,7 +12593,7 @@ const CronjobJobsTable = ({
|
|
|
12597
12593
|
tableProps
|
|
12598
12594
|
} = useEagleTable(params);
|
|
12599
12595
|
if (!((_a = tableProps.data) == null ? void 0 : _a.length) && !tableProps.loading) {
|
|
12600
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
12596
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(ErrorContent, {
|
|
12601
12597
|
errorText: i18n2.t("dovetail.no_resource", {
|
|
12602
12598
|
kind: " Job"
|
|
12603
12599
|
}),
|
|
@@ -12703,7 +12699,7 @@ const EventsTable = ({ uid }) => {
|
|
|
12703
12699
|
const Table2 = component.Table || Table$1;
|
|
12704
12700
|
if (!((_a = tableProps.data) == null ? void 0 : _a.length) && !tableProps.loading) {
|
|
12705
12701
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
12706
|
-
|
|
12702
|
+
ErrorContent,
|
|
12707
12703
|
{
|
|
12708
12704
|
errorText: i18n2.t("dovetail.no_resource", { kind: i18n2.t("dovetail.event") }),
|
|
12709
12705
|
type: ErrorContentType.List
|
|
@@ -12743,6 +12739,25 @@ function LinkFallback({
|
|
|
12743
12739
|
children: fullPath
|
|
12744
12740
|
});
|
|
12745
12741
|
}
|
|
12742
|
+
const PathWithCopy_mkk1t8 = "";
|
|
12743
|
+
const PathCellStyle = "prjtqnv";
|
|
12744
|
+
const PathTextStyle = "pci82dd";
|
|
12745
|
+
const PathCopyStyle = "pmf8toc";
|
|
12746
|
+
const PathWithCopy = ({
|
|
12747
|
+
value: value2,
|
|
12748
|
+
children
|
|
12749
|
+
}) => {
|
|
12750
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", {
|
|
12751
|
+
className: PathCellStyle,
|
|
12752
|
+
children: [/* @__PURE__ */ jsxRuntimeExports.jsx("span", {
|
|
12753
|
+
className: PathTextStyle,
|
|
12754
|
+
children
|
|
12755
|
+
}), /* @__PURE__ */ jsxRuntimeExports.jsx(CopyButton, {
|
|
12756
|
+
value: value2,
|
|
12757
|
+
className: PathCopyStyle
|
|
12758
|
+
})]
|
|
12759
|
+
});
|
|
12760
|
+
};
|
|
12746
12761
|
const index_x36tts = "";
|
|
12747
12762
|
const LinkStyle = "l1vnw9x0";
|
|
12748
12763
|
const ResourceLink = (props) => {
|
|
@@ -12793,109 +12808,97 @@ const ResourceLink = (props) => {
|
|
|
12793
12808
|
value: ""
|
|
12794
12809
|
});
|
|
12795
12810
|
};
|
|
12796
|
-
const
|
|
12797
|
-
const
|
|
12798
|
-
const
|
|
12799
|
-
const PathCopyStyle = "p1379cb5";
|
|
12800
|
-
const IngressRulesTable = ({
|
|
12801
|
-
ingress: ingress2
|
|
12802
|
-
}) => {
|
|
12803
|
-
const {
|
|
12804
|
-
t: t2
|
|
12805
|
-
} = useTranslation();
|
|
12806
|
-
const {
|
|
12807
|
-
data: serviceData
|
|
12808
|
-
} = useList({
|
|
12811
|
+
const IngressRulesTable = ({ ingress: ingress2 }) => {
|
|
12812
|
+
const { t: t2 } = useTranslation();
|
|
12813
|
+
const { data: serviceData } = useList({
|
|
12809
12814
|
resource: "services",
|
|
12810
12815
|
meta: {
|
|
12811
12816
|
kind: "Service",
|
|
12812
12817
|
apiVersion: "v1"
|
|
12813
12818
|
}
|
|
12814
12819
|
});
|
|
12815
|
-
const flattenedRules = useMemo(
|
|
12820
|
+
const flattenedRules = useMemo(
|
|
12821
|
+
() => (serviceData == null ? void 0 : serviceData.data) ? ingress2.getFlattenedRules(serviceData == null ? void 0 : serviceData.data) : [],
|
|
12822
|
+
[serviceData == null ? void 0 : serviceData.data, ingress2]
|
|
12823
|
+
);
|
|
12816
12824
|
const rows = useMemo(() => {
|
|
12817
12825
|
return addId(flattenedRules || [], "fullPath");
|
|
12818
12826
|
}, [flattenedRules]);
|
|
12819
12827
|
const component = useContext(ComponentContext);
|
|
12820
12828
|
const Table2 = component.Table || Table$1;
|
|
12821
12829
|
const currentSize = 10;
|
|
12822
|
-
const columns = [
|
|
12823
|
-
|
|
12824
|
-
|
|
12825
|
-
|
|
12826
|
-
|
|
12827
|
-
|
|
12828
|
-
|
|
12829
|
-
|
|
12830
|
-
|
|
12831
|
-
|
|
12832
|
-
|
|
12833
|
-
|
|
12834
|
-
|
|
12835
|
-
|
|
12836
|
-
|
|
12837
|
-
|
|
12838
|
-
|
|
12839
|
-
|
|
12840
|
-
|
|
12830
|
+
const columns = [
|
|
12831
|
+
{
|
|
12832
|
+
key: "pathType",
|
|
12833
|
+
display: true,
|
|
12834
|
+
dataIndex: "pathType",
|
|
12835
|
+
title: t2("dovetail.path_type"),
|
|
12836
|
+
width: 160,
|
|
12837
|
+
sortable: true
|
|
12838
|
+
},
|
|
12839
|
+
{
|
|
12840
|
+
key: "fullPath",
|
|
12841
|
+
display: true,
|
|
12842
|
+
dataIndex: "fullPath",
|
|
12843
|
+
title: t2("dovetail.path"),
|
|
12844
|
+
width: 478,
|
|
12845
|
+
sortable: true,
|
|
12846
|
+
render(value2) {
|
|
12847
|
+
if (!value2) {
|
|
12848
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(ValueDisplay, { value: "" });
|
|
12849
|
+
}
|
|
12850
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(PathWithCopy, { value: value2, children: /* @__PURE__ */ jsxRuntimeExports.jsx(LinkFallback, { fullPath: value2 }) });
|
|
12841
12851
|
}
|
|
12842
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", {
|
|
12843
|
-
className: PathCellStyle,
|
|
12844
|
-
children: [/* @__PURE__ */ jsxRuntimeExports.jsx("span", {
|
|
12845
|
-
className: PathTextStyle,
|
|
12846
|
-
children: /* @__PURE__ */ jsxRuntimeExports.jsx(LinkFallback, {
|
|
12847
|
-
fullPath: value2
|
|
12848
|
-
})
|
|
12849
|
-
}), /* @__PURE__ */ jsxRuntimeExports.jsx(CopyButton, {
|
|
12850
|
-
value: value2,
|
|
12851
|
-
className: PathCopyStyle
|
|
12852
|
-
})]
|
|
12853
|
-
});
|
|
12854
|
-
}
|
|
12855
|
-
}, {
|
|
12856
|
-
key: "serviceName",
|
|
12857
|
-
display: true,
|
|
12858
|
-
dataIndex: "serviceName",
|
|
12859
|
-
title: t2("dovetail.target_service"),
|
|
12860
|
-
sortable: true,
|
|
12861
|
-
width: 160,
|
|
12862
|
-
render: (serviceName, record) => {
|
|
12863
|
-
return record.serviceName ? /* @__PURE__ */ jsxRuntimeExports.jsx(ResourceLink, {
|
|
12864
|
-
resourceName: "services",
|
|
12865
|
-
namespace: ingress2.metadata.namespace || "default",
|
|
12866
|
-
name: serviceName
|
|
12867
|
-
}) : /* @__PURE__ */ jsxRuntimeExports.jsx(ValueDisplay, {
|
|
12868
|
-
value: ""
|
|
12869
|
-
});
|
|
12870
|
-
}
|
|
12871
|
-
}, {
|
|
12872
|
-
key: "servicePort",
|
|
12873
|
-
display: true,
|
|
12874
|
-
dataIndex: "servicePort",
|
|
12875
|
-
title: t2("dovetail.target_service_port"),
|
|
12876
|
-
width: 120,
|
|
12877
|
-
sortable: true
|
|
12878
|
-
}, {
|
|
12879
|
-
key: "secret",
|
|
12880
|
-
display: true,
|
|
12881
|
-
dataIndex: "host",
|
|
12882
|
-
title: t2("dovetail.cert"),
|
|
12883
|
-
width: 160,
|
|
12884
|
-
render(host2) {
|
|
12885
|
-
var _a, _b;
|
|
12886
|
-
const secretName = (_b = (_a = ingress2._rawYaml.spec.tls) == null ? void 0 : _a.find(({
|
|
12887
|
-
hosts
|
|
12888
|
-
}) => hosts == null ? void 0 : hosts.includes(host2))) == null ? void 0 : _b.secretName;
|
|
12889
|
-
return secretName ? /* @__PURE__ */ jsxRuntimeExports.jsx(ResourceLink, {
|
|
12890
|
-
resourceName: "secrets",
|
|
12891
|
-
namespace: ingress2.metadata.namespace || "default",
|
|
12892
|
-
name: secretName
|
|
12893
|
-
}) : /* @__PURE__ */ jsxRuntimeExports.jsx(ValueDisplay, {
|
|
12894
|
-
value: ""
|
|
12895
|
-
});
|
|
12896
12852
|
},
|
|
12897
|
-
|
|
12898
|
-
|
|
12853
|
+
{
|
|
12854
|
+
key: "serviceName",
|
|
12855
|
+
display: true,
|
|
12856
|
+
dataIndex: "serviceName",
|
|
12857
|
+
title: t2("dovetail.target_service"),
|
|
12858
|
+
sortable: true,
|
|
12859
|
+
width: 160,
|
|
12860
|
+
render: (serviceName, record) => {
|
|
12861
|
+
return record.serviceName ? /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
12862
|
+
ResourceLink,
|
|
12863
|
+
{
|
|
12864
|
+
resourceName: "services",
|
|
12865
|
+
namespace: ingress2.metadata.namespace || "default",
|
|
12866
|
+
name: serviceName
|
|
12867
|
+
}
|
|
12868
|
+
) : /* @__PURE__ */ jsxRuntimeExports.jsx(ValueDisplay, { value: "" });
|
|
12869
|
+
}
|
|
12870
|
+
},
|
|
12871
|
+
{
|
|
12872
|
+
key: "servicePort",
|
|
12873
|
+
display: true,
|
|
12874
|
+
dataIndex: "servicePort",
|
|
12875
|
+
title: t2("dovetail.target_service_port"),
|
|
12876
|
+
width: 120,
|
|
12877
|
+
sortable: true
|
|
12878
|
+
},
|
|
12879
|
+
{
|
|
12880
|
+
key: "secret",
|
|
12881
|
+
display: true,
|
|
12882
|
+
dataIndex: "host",
|
|
12883
|
+
title: t2("dovetail.cert"),
|
|
12884
|
+
width: 160,
|
|
12885
|
+
render(host2) {
|
|
12886
|
+
var _a, _b;
|
|
12887
|
+
const secretName = (_b = (_a = ingress2._rawYaml.spec.tls) == null ? void 0 : _a.find(
|
|
12888
|
+
({ hosts }) => hosts == null ? void 0 : hosts.includes(host2)
|
|
12889
|
+
)) == null ? void 0 : _b.secretName;
|
|
12890
|
+
return secretName ? /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
12891
|
+
ResourceLink,
|
|
12892
|
+
{
|
|
12893
|
+
resourceName: "secrets",
|
|
12894
|
+
namespace: ingress2.metadata.namespace || "default",
|
|
12895
|
+
name: secretName
|
|
12896
|
+
}
|
|
12897
|
+
) : /* @__PURE__ */ jsxRuntimeExports.jsx(ValueDisplay, { value: "" });
|
|
12898
|
+
},
|
|
12899
|
+
sortable: true
|
|
12900
|
+
}
|
|
12901
|
+
];
|
|
12899
12902
|
const {
|
|
12900
12903
|
data: finalData,
|
|
12901
12904
|
currentPage,
|
|
@@ -12906,27 +12909,31 @@ const IngressRulesTable = ({
|
|
|
12906
12909
|
data: rows
|
|
12907
12910
|
});
|
|
12908
12911
|
if ((rows == null ? void 0 : rows.length) === 0) {
|
|
12909
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
12910
|
-
|
|
12911
|
-
|
|
12912
|
-
|
|
12913
|
-
|
|
12914
|
-
|
|
12912
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
12913
|
+
ErrorContent,
|
|
12914
|
+
{
|
|
12915
|
+
errorText: t2("dovetail.no_resource", { kind: t2("dovetail.rule") }),
|
|
12916
|
+
type: ErrorContentType.List
|
|
12917
|
+
}
|
|
12918
|
+
);
|
|
12915
12919
|
}
|
|
12916
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
12917
|
-
|
|
12918
|
-
|
|
12919
|
-
|
|
12920
|
-
|
|
12921
|
-
|
|
12922
|
-
|
|
12923
|
-
|
|
12924
|
-
|
|
12925
|
-
|
|
12926
|
-
|
|
12927
|
-
|
|
12928
|
-
|
|
12929
|
-
|
|
12920
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
12921
|
+
Table2,
|
|
12922
|
+
{
|
|
12923
|
+
tableKey: "ingressRules",
|
|
12924
|
+
loading: false,
|
|
12925
|
+
data: finalData,
|
|
12926
|
+
total: rows.length,
|
|
12927
|
+
columns: addDefaultRenderToColumns(columns),
|
|
12928
|
+
rowKey: "pathType",
|
|
12929
|
+
empty: t2("dovetail.empty"),
|
|
12930
|
+
defaultSize: currentSize,
|
|
12931
|
+
currentPage,
|
|
12932
|
+
onPageChange,
|
|
12933
|
+
onSorterChange,
|
|
12934
|
+
showMenuColumn: false
|
|
12935
|
+
}
|
|
12936
|
+
);
|
|
12930
12937
|
};
|
|
12931
12938
|
const KeyValue_1qasuz9 = "";
|
|
12932
12939
|
const ContentBlockStyle = "c8jy7dc";
|
|
@@ -12958,7 +12965,7 @@ const KeyValue = (props) => {
|
|
|
12958
12965
|
}, key2);
|
|
12959
12966
|
});
|
|
12960
12967
|
if (!result.length) {
|
|
12961
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
12968
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(ErrorContent, {
|
|
12962
12969
|
errorText: empty2 || t2("dovetail.empty"),
|
|
12963
12970
|
type: errorContent
|
|
12964
12971
|
});
|
|
@@ -13621,7 +13628,7 @@ const NodeTaintsTable = ({
|
|
|
13621
13628
|
});
|
|
13622
13629
|
const currentSize = 10;
|
|
13623
13630
|
if (taintsWithId.length === 0) {
|
|
13624
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
13631
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(ErrorContent, {
|
|
13625
13632
|
errorText: t2("dovetail.no_resource", {
|
|
13626
13633
|
kind: t2("dovetail.taint")
|
|
13627
13634
|
}),
|
|
@@ -13717,10 +13724,10 @@ function Table(props) {
|
|
|
13717
13724
|
var _a2;
|
|
13718
13725
|
(_a2 = tableProps.onClearSearchKeyword) == null ? void 0 : _a2.call(tableProps);
|
|
13719
13726
|
};
|
|
13720
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
13727
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(ErrorContent, { errorText: i18n2.t("dovetail.no_search_result"), children: /* @__PURE__ */ jsxRuntimeExports.jsx(Button, { onClick: onClear, type: "ordinary", children: i18n2.t("dovetail.clear_search_condition") }) });
|
|
13721
13728
|
}
|
|
13722
13729
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
13723
|
-
|
|
13730
|
+
ErrorContent,
|
|
13724
13731
|
{
|
|
13725
13732
|
errorText: tableProps.empty || i18n2.t("dovetail.no_resource", { kind: resourceType }),
|
|
13726
13733
|
...errorContentProps
|
|
@@ -13865,7 +13872,7 @@ const WorkloadPodsTable = ({
|
|
|
13865
13872
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(Loading, {});
|
|
13866
13873
|
}
|
|
13867
13874
|
if (((_a = tableProps.data) == null ? void 0 : _a.length) === 0) {
|
|
13868
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
13875
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(ErrorContent, {
|
|
13869
13876
|
errorText: i18n2.t("dovetail.no_resource", {
|
|
13870
13877
|
kind: ` ${i18n2.t("dovetail.pod")}`
|
|
13871
13878
|
}),
|
|
@@ -14667,7 +14674,7 @@ const LabelsAndAnnotationsShow = ({
|
|
|
14667
14674
|
children: sksI18n.t("dovetail.label")
|
|
14668
14675
|
}), Object.keys(labels || {}).length ? /* @__PURE__ */ jsxRuntimeExports.jsx(Tags, {
|
|
14669
14676
|
value: labels
|
|
14670
|
-
}) : /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
14677
|
+
}) : /* @__PURE__ */ jsxRuntimeExports.jsx(ErrorContent, {
|
|
14671
14678
|
errorText: sksI18n.t("dovetail.no_labels"),
|
|
14672
14679
|
type: ErrorContentType.Item
|
|
14673
14680
|
})]
|
|
@@ -14695,7 +14702,7 @@ const NetworkPolicyRulesViewer = ({
|
|
|
14695
14702
|
t: t2
|
|
14696
14703
|
} = useTranslation();
|
|
14697
14704
|
if (!ingressOrEgress) {
|
|
14698
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
14705
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(ErrorContent, {
|
|
14699
14706
|
errorText: t2("dovetail.no_resource", {
|
|
14700
14707
|
kind: kind || t2("dovetail.rule")
|
|
14701
14708
|
}),
|
|
@@ -14890,7 +14897,7 @@ const PodLog = ({
|
|
|
14890
14897
|
})]
|
|
14891
14898
|
}), /* @__PURE__ */ jsxRuntimeExports.jsx("div", {
|
|
14892
14899
|
className: ContentStyle$1,
|
|
14893
|
-
children: logType === "previous" && !logs.length ? /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
14900
|
+
children: logType === "previous" && !logs.length ? /* @__PURE__ */ jsxRuntimeExports.jsx(ErrorContent, {
|
|
14894
14901
|
style: {
|
|
14895
14902
|
height: "100%"
|
|
14896
14903
|
},
|
|
@@ -15192,7 +15199,7 @@ const PodContainersTable = ({
|
|
|
15192
15199
|
});
|
|
15193
15200
|
if (dataSource.length === 0) {
|
|
15194
15201
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
15195
|
-
|
|
15202
|
+
ErrorContent,
|
|
15196
15203
|
{
|
|
15197
15204
|
errorText: i18n2.t("dovetail.no_resource", { kind: i18n2.t("dovetail.container") }),
|
|
15198
15205
|
type: ErrorContentType.Card
|
|
@@ -20940,6 +20947,7 @@ export {
|
|
|
20940
20947
|
EditNodeTaintDropdownMenuItem,
|
|
20941
20948
|
EditNodeTaintForm,
|
|
20942
20949
|
ErrorContent,
|
|
20950
|
+
ErrorContentBody,
|
|
20943
20951
|
ErrorContentType,
|
|
20944
20952
|
ErrorWrapper,
|
|
20945
20953
|
EventModel,
|
|
@@ -21148,7 +21156,6 @@ export {
|
|
|
21148
21156
|
Time,
|
|
21149
21157
|
ValidateRfc1035Name,
|
|
21150
21158
|
index as ValueDisplay,
|
|
21151
|
-
WidgetErrorContent,
|
|
21152
21159
|
WorkloadBaseModel,
|
|
21153
21160
|
WorkloadDropdown,
|
|
21154
21161
|
WorkloadImageColumnRenderer,
|