@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.cjs
CHANGED
|
@@ -8137,8 +8137,8 @@ const ErrorWrapper = /* @__PURE__ */ styled_default("div")({
|
|
|
8137
8137
|
class: "egn3dbn",
|
|
8138
8138
|
propsAsIs: false
|
|
8139
8139
|
});
|
|
8140
|
-
const
|
|
8141
|
-
name: "
|
|
8140
|
+
const ErrorContentBody = /* @__PURE__ */ styled_default("div")({
|
|
8141
|
+
name: "ErrorContentBody",
|
|
8142
8142
|
class: "e136jgy8",
|
|
8143
8143
|
propsAsIs: false
|
|
8144
8144
|
});
|
|
@@ -8149,7 +8149,7 @@ var ErrorContentType = /* @__PURE__ */ ((ErrorContentType2) => {
|
|
|
8149
8149
|
ErrorContentType2["Item"] = "item";
|
|
8150
8150
|
return ErrorContentType2;
|
|
8151
8151
|
})(ErrorContentType || {});
|
|
8152
|
-
const
|
|
8152
|
+
const ErrorContent = (props) => {
|
|
8153
8153
|
const {
|
|
8154
8154
|
refetch,
|
|
8155
8155
|
errorText,
|
|
@@ -8185,7 +8185,7 @@ const WidgetErrorContent = (props) => {
|
|
|
8185
8185
|
return /* @__PURE__ */ common.jsxRuntimeExports.jsx(ErrorWrapper, {
|
|
8186
8186
|
className: common.cx_default(props.className, type2),
|
|
8187
8187
|
style: props.style,
|
|
8188
|
-
children: /* @__PURE__ */ common.jsxRuntimeExports.jsxs(
|
|
8188
|
+
children: /* @__PURE__ */ common.jsxRuntimeExports.jsxs(ErrorContentBody, {
|
|
8189
8189
|
className: "error-content",
|
|
8190
8190
|
children: [/* @__PURE__ */ common.jsxRuntimeExports.jsx("p", {
|
|
8191
8191
|
className: common.cx_default(fontMap[type2], "title", `${type2}-title`),
|
|
@@ -8255,7 +8255,7 @@ function Table$1(props) {
|
|
|
8255
8255
|
if (loading) {
|
|
8256
8256
|
return /* @__PURE__ */ common.jsxRuntimeExports.jsx(eagle.Loading, {});
|
|
8257
8257
|
} else if (error) {
|
|
8258
|
-
return /* @__PURE__ */ common.jsxRuntimeExports.jsx(
|
|
8258
|
+
return /* @__PURE__ */ common.jsxRuntimeExports.jsx(ErrorContent, {
|
|
8259
8259
|
errorText: t2("dovetail.retry_when_access_data_failed"),
|
|
8260
8260
|
refetch,
|
|
8261
8261
|
style: {
|
|
@@ -8263,7 +8263,7 @@ function Table$1(props) {
|
|
|
8263
8263
|
}
|
|
8264
8264
|
});
|
|
8265
8265
|
} else if (dataSource.length === 0) {
|
|
8266
|
-
return /* @__PURE__ */ common.jsxRuntimeExports.jsx(
|
|
8266
|
+
return /* @__PURE__ */ common.jsxRuntimeExports.jsx(ErrorContent, {
|
|
8267
8267
|
errorText: empty2 || t2("dovetail.empty"),
|
|
8268
8268
|
style: {
|
|
8269
8269
|
padding: "15px 0"
|
|
@@ -8372,7 +8372,7 @@ const PodSelectorTable = ({ podSelectors = {} }) => {
|
|
|
8372
8372
|
});
|
|
8373
8373
|
if (datas.length === 0) {
|
|
8374
8374
|
return /* @__PURE__ */ common.jsxRuntimeExports.jsx(
|
|
8375
|
-
|
|
8375
|
+
ErrorContent,
|
|
8376
8376
|
{
|
|
8377
8377
|
errorText: t2("dovetail.no_resource", { kind: ` ${t2("dovetail.pod_selector")}` }),
|
|
8378
8378
|
type: ErrorContentType.Card
|
|
@@ -8459,7 +8459,7 @@ const PortsTable = ({ service: service2 }) => {
|
|
|
8459
8459
|
});
|
|
8460
8460
|
if ((ports == null ? void 0 : ports.length) === 0) {
|
|
8461
8461
|
return /* @__PURE__ */ common.jsxRuntimeExports.jsx(
|
|
8462
|
-
|
|
8462
|
+
ErrorContent,
|
|
8463
8463
|
{
|
|
8464
8464
|
errorText: t2("dovetail.no_resource", { kind: t2("dovetail.port") }),
|
|
8465
8465
|
type: ErrorContentType.Card
|
|
@@ -8581,20 +8581,22 @@ function EditFieldModal(props) {
|
|
|
8581
8581
|
popModal();
|
|
8582
8582
|
reset();
|
|
8583
8583
|
}, [popModal, reset]);
|
|
8584
|
-
return /* @__PURE__ */ common.jsxRuntimeExports.
|
|
8584
|
+
return /* @__PURE__ */ common.jsxRuntimeExports.jsx(ModalComponent, {
|
|
8585
8585
|
title: title || i18n2.t("dovetail.edit"),
|
|
8586
8586
|
confirmLoading: submitting,
|
|
8587
8587
|
onOk: onSubmit,
|
|
8588
8588
|
onCancel: close2,
|
|
8589
8589
|
okText: i18n2.t("dovetail.save"),
|
|
8590
8590
|
destroyOnClose: true,
|
|
8591
|
-
children:
|
|
8592
|
-
|
|
8593
|
-
|
|
8594
|
-
|
|
8595
|
-
|
|
8596
|
-
|
|
8597
|
-
|
|
8591
|
+
children: /* @__PURE__ */ common.jsxRuntimeExports.jsxs(common.jsxRuntimeExports.Fragment, {
|
|
8592
|
+
children: [renderContent(), /* @__PURE__ */ common.jsxRuntimeExports.jsx(FormErrorAlert, {
|
|
8593
|
+
style: {
|
|
8594
|
+
marginTop: 16
|
|
8595
|
+
},
|
|
8596
|
+
errorMsgs,
|
|
8597
|
+
isEdit: true
|
|
8598
|
+
})]
|
|
8599
|
+
})
|
|
8598
8600
|
});
|
|
8599
8601
|
}
|
|
8600
8602
|
function EditField(props) {
|
|
@@ -10350,7 +10352,7 @@ class IngressClassModel extends ResourceModel {
|
|
|
10350
10352
|
return (_a = this.spec) == null ? void 0 : _a.controller;
|
|
10351
10353
|
}
|
|
10352
10354
|
}
|
|
10353
|
-
const
|
|
10355
|
+
const index_1tz3o5 = "";
|
|
10354
10356
|
const ServiceInClusterAccessComponent = ({
|
|
10355
10357
|
service: service2
|
|
10356
10358
|
}) => {
|
|
@@ -10375,6 +10377,8 @@ const LinkStyle$2 = "luro4rx";
|
|
|
10375
10377
|
const ShowLinkStyle = "s1gydjqf";
|
|
10376
10378
|
const DashedUnderlineSpanStyle = "dvp1i89";
|
|
10377
10379
|
const AccessAddressStyle = "azmggeh";
|
|
10380
|
+
const BreakLineListStyle = "bct30qn";
|
|
10381
|
+
const BreakLineItemStyle = "b1m9bqu";
|
|
10378
10382
|
const ServiceAccessAddress = ({
|
|
10379
10383
|
children,
|
|
10380
10384
|
copyValue
|
|
@@ -10410,7 +10414,7 @@ const ServiceOutClusterAccessComponent = ({
|
|
|
10410
10414
|
showDashedUnderline = true,
|
|
10411
10415
|
showCopyButton = false
|
|
10412
10416
|
}) => {
|
|
10413
|
-
var _a, _b, _c, _d, _e, _f, _g
|
|
10417
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
10414
10418
|
const {
|
|
10415
10419
|
i18n: i18n2
|
|
10416
10420
|
} = common.useTranslation();
|
|
@@ -10419,58 +10423,50 @@ const ServiceOutClusterAccessComponent = ({
|
|
|
10419
10423
|
let content = "-";
|
|
10420
10424
|
switch (spec.type) {
|
|
10421
10425
|
case ServiceTypeEnum.NodePort:
|
|
10422
|
-
|
|
10423
|
-
|
|
10424
|
-
|
|
10425
|
-
|
|
10426
|
-
|
|
10427
|
-
|
|
10428
|
-
|
|
10429
|
-
|
|
10430
|
-
|
|
10431
|
-
|
|
10432
|
-
|
|
10433
|
-
|
|
10434
|
-
|
|
10435
|
-
|
|
10436
|
-
children: address
|
|
10437
|
-
})
|
|
10426
|
+
content = (_a = spec.ports) == null ? void 0 : _a.filter((v) => !!v && v.nodePort).map((p) => {
|
|
10427
|
+
const address = `${clusterVip}:${p.nodePort}`;
|
|
10428
|
+
const link = /* @__PURE__ */ common.jsxRuntimeExports.jsx(eagle.Link, {
|
|
10429
|
+
href: `http://${address}`,
|
|
10430
|
+
target: "_blank",
|
|
10431
|
+
className: breakLine ? common.cx_default(eagle.Typo.Label.l4_regular_title, BreakLineStyle, LinkStyle$2) : common.cx_default(ShowLinkStyle, eagle.Typo.Label.l4_regular_title),
|
|
10432
|
+
children: /* @__PURE__ */ common.jsxRuntimeExports.jsx(eagle.Tooltip, {
|
|
10433
|
+
title: i18n2.t("dovetail.default_http_protocol_tooltip"),
|
|
10434
|
+
children: /* @__PURE__ */ common.jsxRuntimeExports.jsx("span", {
|
|
10435
|
+
className: DashedUnderlineSpanStyle,
|
|
10436
|
+
style: showDashedUnderline ? void 0 : {
|
|
10437
|
+
borderBottom: "none"
|
|
10438
|
+
},
|
|
10439
|
+
children: address
|
|
10438
10440
|
})
|
|
10439
|
-
}
|
|
10440
|
-
|
|
10441
|
-
|
|
10442
|
-
|
|
10443
|
-
|
|
10444
|
-
|
|
10445
|
-
|
|
10446
|
-
|
|
10447
|
-
});
|
|
10441
|
+
})
|
|
10442
|
+
}, p.name || p.nodePort);
|
|
10443
|
+
if (!showCopyButton) {
|
|
10444
|
+
return link;
|
|
10445
|
+
}
|
|
10446
|
+
return /* @__PURE__ */ common.jsxRuntimeExports.jsx(ServiceAccessAddress, {
|
|
10447
|
+
copyValue: address,
|
|
10448
|
+
children: link
|
|
10449
|
+
}, p.name || p.nodePort);
|
|
10450
|
+
});
|
|
10451
|
+
if (!breakLine) {
|
|
10448
10452
|
if (content && content instanceof Array) {
|
|
10449
10453
|
content = renderAccessItems(content, ", ");
|
|
10450
10454
|
}
|
|
10451
10455
|
break;
|
|
10452
10456
|
}
|
|
10453
|
-
|
|
10454
|
-
|
|
10455
|
-
|
|
10456
|
-
|
|
10457
|
-
|
|
10458
|
-
|
|
10459
|
-
|
|
10460
|
-
|
|
10461
|
-
|
|
10462
|
-
|
|
10463
|
-
},
|
|
10464
|
-
children: [clusterVip, ":", p.nodePort]
|
|
10465
|
-
})
|
|
10466
|
-
})
|
|
10467
|
-
}, p.nodePort));
|
|
10468
|
-
return /* @__PURE__ */ common.jsxRuntimeExports.jsx("ul", {
|
|
10469
|
-
children: content
|
|
10470
|
-
});
|
|
10457
|
+
if (content && content instanceof Array) {
|
|
10458
|
+
content = /* @__PURE__ */ common.jsxRuntimeExports.jsx("ul", {
|
|
10459
|
+
className: BreakLineListStyle,
|
|
10460
|
+
children: content.map((item, index2) => /* @__PURE__ */ common.jsxRuntimeExports.jsx("li", {
|
|
10461
|
+
className: BreakLineItemStyle,
|
|
10462
|
+
children: item
|
|
10463
|
+
}, `nodeport-${index2}`))
|
|
10464
|
+
});
|
|
10465
|
+
}
|
|
10466
|
+
break;
|
|
10471
10467
|
case ServiceTypeEnum.ExternalName:
|
|
10472
10468
|
if (showCopyButton) {
|
|
10473
|
-
content = renderAccessItems(((
|
|
10469
|
+
content = renderAccessItems(((_b = spec.externalIPs) == null ? void 0 : _b.map((ip) => /* @__PURE__ */ common.jsxRuntimeExports.jsx(ServiceAccessAddress, {
|
|
10474
10470
|
copyValue: ip,
|
|
10475
10471
|
children: ip
|
|
10476
10472
|
}, ip))) || [], breakLine ? "\n" : ", ");
|
|
@@ -10478,12 +10474,12 @@ const ServiceOutClusterAccessComponent = ({
|
|
|
10478
10474
|
}
|
|
10479
10475
|
content = /* @__PURE__ */ common.jsxRuntimeExports.jsx(ValueDisplay, {
|
|
10480
10476
|
useOverflow: false,
|
|
10481
|
-
value: (
|
|
10477
|
+
value: (_c = spec.externalIPs) == null ? void 0 : _c.join(breakLine ? "\n" : ", ")
|
|
10482
10478
|
});
|
|
10483
10479
|
break;
|
|
10484
10480
|
case ServiceTypeEnum.LoadBalancer:
|
|
10485
10481
|
if (showCopyButton) {
|
|
10486
|
-
content = renderAccessItems(((
|
|
10482
|
+
content = renderAccessItems(((_e = (_d = status.loadBalancer) == null ? void 0 : _d.ingress) == null ? void 0 : _e.map(({
|
|
10487
10483
|
ip
|
|
10488
10484
|
}) => ip).filter((ip) => !!ip).map((ip) => /* @__PURE__ */ common.jsxRuntimeExports.jsx(ServiceAccessAddress, {
|
|
10489
10485
|
copyValue: ip,
|
|
@@ -10493,7 +10489,7 @@ const ServiceOutClusterAccessComponent = ({
|
|
|
10493
10489
|
}
|
|
10494
10490
|
content = /* @__PURE__ */ common.jsxRuntimeExports.jsx(ValueDisplay, {
|
|
10495
10491
|
useOverflow: false,
|
|
10496
|
-
value: (
|
|
10492
|
+
value: (_g = (_f = status.loadBalancer) == null ? void 0 : _f.ingress) == null ? void 0 : _g.map(({
|
|
10497
10493
|
ip
|
|
10498
10494
|
}) => ip).join(breakLine ? "\n" : ", ")
|
|
10499
10495
|
});
|
|
@@ -10738,7 +10734,7 @@ const ConditionsTable = ({ conditions = [] }) => {
|
|
|
10738
10734
|
const currentSize = 10;
|
|
10739
10735
|
if (conditionsWithId.length === 0) {
|
|
10740
10736
|
return /* @__PURE__ */ common.jsxRuntimeExports.jsx(
|
|
10741
|
-
|
|
10737
|
+
ErrorContent,
|
|
10742
10738
|
{
|
|
10743
10739
|
errorText: t2("dovetail.no_resource", { kind: t2("dovetail.condition") }),
|
|
10744
10740
|
type: ErrorContentType.List
|
|
@@ -11786,7 +11782,7 @@ function YamlForm(props) {
|
|
|
11786
11782
|
isEdit: action === "edit"
|
|
11787
11783
|
})
|
|
11788
11784
|
})]
|
|
11789
|
-
}) : /* @__PURE__ */ common.jsxRuntimeExports.jsx(
|
|
11785
|
+
}) : /* @__PURE__ */ common.jsxRuntimeExports.jsx(ErrorContent, {
|
|
11790
11786
|
errorText: t2("dovetail.fetch_schema_fail"),
|
|
11791
11787
|
refetch: fetchSchema
|
|
11792
11788
|
});
|
|
@@ -12616,7 +12612,7 @@ const CronjobJobsTable = ({
|
|
|
12616
12612
|
tableProps
|
|
12617
12613
|
} = useEagleTable(params);
|
|
12618
12614
|
if (!((_a = tableProps.data) == null ? void 0 : _a.length) && !tableProps.loading) {
|
|
12619
|
-
return /* @__PURE__ */ common.jsxRuntimeExports.jsx(
|
|
12615
|
+
return /* @__PURE__ */ common.jsxRuntimeExports.jsx(ErrorContent, {
|
|
12620
12616
|
errorText: i18n2.t("dovetail.no_resource", {
|
|
12621
12617
|
kind: " Job"
|
|
12622
12618
|
}),
|
|
@@ -12722,7 +12718,7 @@ const EventsTable = ({ uid }) => {
|
|
|
12722
12718
|
const Table2 = component.Table || Table$1;
|
|
12723
12719
|
if (!((_a = tableProps.data) == null ? void 0 : _a.length) && !tableProps.loading) {
|
|
12724
12720
|
return /* @__PURE__ */ common.jsxRuntimeExports.jsx(
|
|
12725
|
-
|
|
12721
|
+
ErrorContent,
|
|
12726
12722
|
{
|
|
12727
12723
|
errorText: i18n2.t("dovetail.no_resource", { kind: i18n2.t("dovetail.event") }),
|
|
12728
12724
|
type: ErrorContentType.List
|
|
@@ -12762,6 +12758,25 @@ function LinkFallback({
|
|
|
12762
12758
|
children: fullPath
|
|
12763
12759
|
});
|
|
12764
12760
|
}
|
|
12761
|
+
const PathWithCopy_mkk1t8 = "";
|
|
12762
|
+
const PathCellStyle = "prjtqnv";
|
|
12763
|
+
const PathTextStyle = "pci82dd";
|
|
12764
|
+
const PathCopyStyle = "pmf8toc";
|
|
12765
|
+
const PathWithCopy = ({
|
|
12766
|
+
value: value2,
|
|
12767
|
+
children
|
|
12768
|
+
}) => {
|
|
12769
|
+
return /* @__PURE__ */ common.jsxRuntimeExports.jsxs("div", {
|
|
12770
|
+
className: PathCellStyle,
|
|
12771
|
+
children: [/* @__PURE__ */ common.jsxRuntimeExports.jsx("span", {
|
|
12772
|
+
className: PathTextStyle,
|
|
12773
|
+
children
|
|
12774
|
+
}), /* @__PURE__ */ common.jsxRuntimeExports.jsx(CopyButton, {
|
|
12775
|
+
value: value2,
|
|
12776
|
+
className: PathCopyStyle
|
|
12777
|
+
})]
|
|
12778
|
+
});
|
|
12779
|
+
};
|
|
12765
12780
|
const index_x36tts = "";
|
|
12766
12781
|
const LinkStyle = "l1vnw9x0";
|
|
12767
12782
|
const ResourceLink = (props) => {
|
|
@@ -12812,109 +12827,97 @@ const ResourceLink = (props) => {
|
|
|
12812
12827
|
value: ""
|
|
12813
12828
|
});
|
|
12814
12829
|
};
|
|
12815
|
-
const
|
|
12816
|
-
const
|
|
12817
|
-
const
|
|
12818
|
-
const PathCopyStyle = "p1379cb5";
|
|
12819
|
-
const IngressRulesTable = ({
|
|
12820
|
-
ingress: ingress2
|
|
12821
|
-
}) => {
|
|
12822
|
-
const {
|
|
12823
|
-
t: t2
|
|
12824
|
-
} = common.useTranslation();
|
|
12825
|
-
const {
|
|
12826
|
-
data: serviceData
|
|
12827
|
-
} = core.useList({
|
|
12830
|
+
const IngressRulesTable = ({ ingress: ingress2 }) => {
|
|
12831
|
+
const { t: t2 } = common.useTranslation();
|
|
12832
|
+
const { data: serviceData } = core.useList({
|
|
12828
12833
|
resource: "services",
|
|
12829
12834
|
meta: {
|
|
12830
12835
|
kind: "Service",
|
|
12831
12836
|
apiVersion: "v1"
|
|
12832
12837
|
}
|
|
12833
12838
|
});
|
|
12834
|
-
const flattenedRules = React.useMemo(
|
|
12839
|
+
const flattenedRules = React.useMemo(
|
|
12840
|
+
() => (serviceData == null ? void 0 : serviceData.data) ? ingress2.getFlattenedRules(serviceData == null ? void 0 : serviceData.data) : [],
|
|
12841
|
+
[serviceData == null ? void 0 : serviceData.data, ingress2]
|
|
12842
|
+
);
|
|
12835
12843
|
const rows = React.useMemo(() => {
|
|
12836
12844
|
return addId(flattenedRules || [], "fullPath");
|
|
12837
12845
|
}, [flattenedRules]);
|
|
12838
12846
|
const component = React.useContext(ComponentContext);
|
|
12839
12847
|
const Table2 = component.Table || Table$1;
|
|
12840
12848
|
const currentSize = 10;
|
|
12841
|
-
const columns = [
|
|
12842
|
-
|
|
12843
|
-
|
|
12844
|
-
|
|
12845
|
-
|
|
12846
|
-
|
|
12847
|
-
|
|
12848
|
-
|
|
12849
|
-
|
|
12850
|
-
|
|
12851
|
-
|
|
12852
|
-
|
|
12853
|
-
|
|
12854
|
-
|
|
12855
|
-
|
|
12856
|
-
|
|
12857
|
-
|
|
12858
|
-
|
|
12859
|
-
|
|
12849
|
+
const columns = [
|
|
12850
|
+
{
|
|
12851
|
+
key: "pathType",
|
|
12852
|
+
display: true,
|
|
12853
|
+
dataIndex: "pathType",
|
|
12854
|
+
title: t2("dovetail.path_type"),
|
|
12855
|
+
width: 160,
|
|
12856
|
+
sortable: true
|
|
12857
|
+
},
|
|
12858
|
+
{
|
|
12859
|
+
key: "fullPath",
|
|
12860
|
+
display: true,
|
|
12861
|
+
dataIndex: "fullPath",
|
|
12862
|
+
title: t2("dovetail.path"),
|
|
12863
|
+
width: 478,
|
|
12864
|
+
sortable: true,
|
|
12865
|
+
render(value2) {
|
|
12866
|
+
if (!value2) {
|
|
12867
|
+
return /* @__PURE__ */ common.jsxRuntimeExports.jsx(ValueDisplay, { value: "" });
|
|
12868
|
+
}
|
|
12869
|
+
return /* @__PURE__ */ common.jsxRuntimeExports.jsx(PathWithCopy, { value: value2, children: /* @__PURE__ */ common.jsxRuntimeExports.jsx(LinkFallback, { fullPath: value2 }) });
|
|
12860
12870
|
}
|
|
12861
|
-
return /* @__PURE__ */ common.jsxRuntimeExports.jsxs("div", {
|
|
12862
|
-
className: PathCellStyle,
|
|
12863
|
-
children: [/* @__PURE__ */ common.jsxRuntimeExports.jsx("span", {
|
|
12864
|
-
className: PathTextStyle,
|
|
12865
|
-
children: /* @__PURE__ */ common.jsxRuntimeExports.jsx(LinkFallback, {
|
|
12866
|
-
fullPath: value2
|
|
12867
|
-
})
|
|
12868
|
-
}), /* @__PURE__ */ common.jsxRuntimeExports.jsx(CopyButton, {
|
|
12869
|
-
value: value2,
|
|
12870
|
-
className: PathCopyStyle
|
|
12871
|
-
})]
|
|
12872
|
-
});
|
|
12873
|
-
}
|
|
12874
|
-
}, {
|
|
12875
|
-
key: "serviceName",
|
|
12876
|
-
display: true,
|
|
12877
|
-
dataIndex: "serviceName",
|
|
12878
|
-
title: t2("dovetail.target_service"),
|
|
12879
|
-
sortable: true,
|
|
12880
|
-
width: 160,
|
|
12881
|
-
render: (serviceName, record) => {
|
|
12882
|
-
return record.serviceName ? /* @__PURE__ */ common.jsxRuntimeExports.jsx(ResourceLink, {
|
|
12883
|
-
resourceName: "services",
|
|
12884
|
-
namespace: ingress2.metadata.namespace || "default",
|
|
12885
|
-
name: serviceName
|
|
12886
|
-
}) : /* @__PURE__ */ common.jsxRuntimeExports.jsx(ValueDisplay, {
|
|
12887
|
-
value: ""
|
|
12888
|
-
});
|
|
12889
|
-
}
|
|
12890
|
-
}, {
|
|
12891
|
-
key: "servicePort",
|
|
12892
|
-
display: true,
|
|
12893
|
-
dataIndex: "servicePort",
|
|
12894
|
-
title: t2("dovetail.target_service_port"),
|
|
12895
|
-
width: 120,
|
|
12896
|
-
sortable: true
|
|
12897
|
-
}, {
|
|
12898
|
-
key: "secret",
|
|
12899
|
-
display: true,
|
|
12900
|
-
dataIndex: "host",
|
|
12901
|
-
title: t2("dovetail.cert"),
|
|
12902
|
-
width: 160,
|
|
12903
|
-
render(host2) {
|
|
12904
|
-
var _a, _b;
|
|
12905
|
-
const secretName = (_b = (_a = ingress2._rawYaml.spec.tls) == null ? void 0 : _a.find(({
|
|
12906
|
-
hosts
|
|
12907
|
-
}) => hosts == null ? void 0 : hosts.includes(host2))) == null ? void 0 : _b.secretName;
|
|
12908
|
-
return secretName ? /* @__PURE__ */ common.jsxRuntimeExports.jsx(ResourceLink, {
|
|
12909
|
-
resourceName: "secrets",
|
|
12910
|
-
namespace: ingress2.metadata.namespace || "default",
|
|
12911
|
-
name: secretName
|
|
12912
|
-
}) : /* @__PURE__ */ common.jsxRuntimeExports.jsx(ValueDisplay, {
|
|
12913
|
-
value: ""
|
|
12914
|
-
});
|
|
12915
12871
|
},
|
|
12916
|
-
|
|
12917
|
-
|
|
12872
|
+
{
|
|
12873
|
+
key: "serviceName",
|
|
12874
|
+
display: true,
|
|
12875
|
+
dataIndex: "serviceName",
|
|
12876
|
+
title: t2("dovetail.target_service"),
|
|
12877
|
+
sortable: true,
|
|
12878
|
+
width: 160,
|
|
12879
|
+
render: (serviceName, record) => {
|
|
12880
|
+
return record.serviceName ? /* @__PURE__ */ common.jsxRuntimeExports.jsx(
|
|
12881
|
+
ResourceLink,
|
|
12882
|
+
{
|
|
12883
|
+
resourceName: "services",
|
|
12884
|
+
namespace: ingress2.metadata.namespace || "default",
|
|
12885
|
+
name: serviceName
|
|
12886
|
+
}
|
|
12887
|
+
) : /* @__PURE__ */ common.jsxRuntimeExports.jsx(ValueDisplay, { value: "" });
|
|
12888
|
+
}
|
|
12889
|
+
},
|
|
12890
|
+
{
|
|
12891
|
+
key: "servicePort",
|
|
12892
|
+
display: true,
|
|
12893
|
+
dataIndex: "servicePort",
|
|
12894
|
+
title: t2("dovetail.target_service_port"),
|
|
12895
|
+
width: 120,
|
|
12896
|
+
sortable: true
|
|
12897
|
+
},
|
|
12898
|
+
{
|
|
12899
|
+
key: "secret",
|
|
12900
|
+
display: true,
|
|
12901
|
+
dataIndex: "host",
|
|
12902
|
+
title: t2("dovetail.cert"),
|
|
12903
|
+
width: 160,
|
|
12904
|
+
render(host2) {
|
|
12905
|
+
var _a, _b;
|
|
12906
|
+
const secretName = (_b = (_a = ingress2._rawYaml.spec.tls) == null ? void 0 : _a.find(
|
|
12907
|
+
({ hosts }) => hosts == null ? void 0 : hosts.includes(host2)
|
|
12908
|
+
)) == null ? void 0 : _b.secretName;
|
|
12909
|
+
return secretName ? /* @__PURE__ */ common.jsxRuntimeExports.jsx(
|
|
12910
|
+
ResourceLink,
|
|
12911
|
+
{
|
|
12912
|
+
resourceName: "secrets",
|
|
12913
|
+
namespace: ingress2.metadata.namespace || "default",
|
|
12914
|
+
name: secretName
|
|
12915
|
+
}
|
|
12916
|
+
) : /* @__PURE__ */ common.jsxRuntimeExports.jsx(ValueDisplay, { value: "" });
|
|
12917
|
+
},
|
|
12918
|
+
sortable: true
|
|
12919
|
+
}
|
|
12920
|
+
];
|
|
12918
12921
|
const {
|
|
12919
12922
|
data: finalData,
|
|
12920
12923
|
currentPage,
|
|
@@ -12925,27 +12928,31 @@ const IngressRulesTable = ({
|
|
|
12925
12928
|
data: rows
|
|
12926
12929
|
});
|
|
12927
12930
|
if ((rows == null ? void 0 : rows.length) === 0) {
|
|
12928
|
-
return /* @__PURE__ */ common.jsxRuntimeExports.jsx(
|
|
12929
|
-
|
|
12930
|
-
|
|
12931
|
-
|
|
12932
|
-
|
|
12933
|
-
|
|
12931
|
+
return /* @__PURE__ */ common.jsxRuntimeExports.jsx(
|
|
12932
|
+
ErrorContent,
|
|
12933
|
+
{
|
|
12934
|
+
errorText: t2("dovetail.no_resource", { kind: t2("dovetail.rule") }),
|
|
12935
|
+
type: ErrorContentType.List
|
|
12936
|
+
}
|
|
12937
|
+
);
|
|
12934
12938
|
}
|
|
12935
|
-
return /* @__PURE__ */ common.jsxRuntimeExports.jsx(
|
|
12936
|
-
|
|
12937
|
-
|
|
12938
|
-
|
|
12939
|
-
|
|
12940
|
-
|
|
12941
|
-
|
|
12942
|
-
|
|
12943
|
-
|
|
12944
|
-
|
|
12945
|
-
|
|
12946
|
-
|
|
12947
|
-
|
|
12948
|
-
|
|
12939
|
+
return /* @__PURE__ */ common.jsxRuntimeExports.jsx(
|
|
12940
|
+
Table2,
|
|
12941
|
+
{
|
|
12942
|
+
tableKey: "ingressRules",
|
|
12943
|
+
loading: false,
|
|
12944
|
+
data: finalData,
|
|
12945
|
+
total: rows.length,
|
|
12946
|
+
columns: addDefaultRenderToColumns(columns),
|
|
12947
|
+
rowKey: "pathType",
|
|
12948
|
+
empty: t2("dovetail.empty"),
|
|
12949
|
+
defaultSize: currentSize,
|
|
12950
|
+
currentPage,
|
|
12951
|
+
onPageChange,
|
|
12952
|
+
onSorterChange,
|
|
12953
|
+
showMenuColumn: false
|
|
12954
|
+
}
|
|
12955
|
+
);
|
|
12949
12956
|
};
|
|
12950
12957
|
const KeyValue_1qasuz9 = "";
|
|
12951
12958
|
const ContentBlockStyle = "c8jy7dc";
|
|
@@ -12977,7 +12984,7 @@ const KeyValue = (props) => {
|
|
|
12977
12984
|
}, key2);
|
|
12978
12985
|
});
|
|
12979
12986
|
if (!result.length) {
|
|
12980
|
-
return /* @__PURE__ */ common.jsxRuntimeExports.jsx(
|
|
12987
|
+
return /* @__PURE__ */ common.jsxRuntimeExports.jsx(ErrorContent, {
|
|
12981
12988
|
errorText: empty2 || t2("dovetail.empty"),
|
|
12982
12989
|
type: errorContent
|
|
12983
12990
|
});
|
|
@@ -13640,7 +13647,7 @@ const NodeTaintsTable = ({
|
|
|
13640
13647
|
});
|
|
13641
13648
|
const currentSize = 10;
|
|
13642
13649
|
if (taintsWithId.length === 0) {
|
|
13643
|
-
return /* @__PURE__ */ common.jsxRuntimeExports.jsx(
|
|
13650
|
+
return /* @__PURE__ */ common.jsxRuntimeExports.jsx(ErrorContent, {
|
|
13644
13651
|
errorText: t2("dovetail.no_resource", {
|
|
13645
13652
|
kind: t2("dovetail.taint")
|
|
13646
13653
|
}),
|
|
@@ -13736,10 +13743,10 @@ function Table(props) {
|
|
|
13736
13743
|
var _a2;
|
|
13737
13744
|
(_a2 = tableProps.onClearSearchKeyword) == null ? void 0 : _a2.call(tableProps);
|
|
13738
13745
|
};
|
|
13739
|
-
return /* @__PURE__ */ common.jsxRuntimeExports.jsx(
|
|
13746
|
+
return /* @__PURE__ */ common.jsxRuntimeExports.jsx(ErrorContent, { errorText: i18n2.t("dovetail.no_search_result"), children: /* @__PURE__ */ common.jsxRuntimeExports.jsx(eagle.Button, { onClick: onClear, type: "ordinary", children: i18n2.t("dovetail.clear_search_condition") }) });
|
|
13740
13747
|
}
|
|
13741
13748
|
return /* @__PURE__ */ common.jsxRuntimeExports.jsx(
|
|
13742
|
-
|
|
13749
|
+
ErrorContent,
|
|
13743
13750
|
{
|
|
13744
13751
|
errorText: tableProps.empty || i18n2.t("dovetail.no_resource", { kind: resourceType }),
|
|
13745
13752
|
...errorContentProps
|
|
@@ -13884,7 +13891,7 @@ const WorkloadPodsTable = ({
|
|
|
13884
13891
|
return /* @__PURE__ */ common.jsxRuntimeExports.jsx(eagle.Loading, {});
|
|
13885
13892
|
}
|
|
13886
13893
|
if (((_a = tableProps.data) == null ? void 0 : _a.length) === 0) {
|
|
13887
|
-
return /* @__PURE__ */ common.jsxRuntimeExports.jsx(
|
|
13894
|
+
return /* @__PURE__ */ common.jsxRuntimeExports.jsx(ErrorContent, {
|
|
13888
13895
|
errorText: i18n2.t("dovetail.no_resource", {
|
|
13889
13896
|
kind: ` ${i18n2.t("dovetail.pod")}`
|
|
13890
13897
|
}),
|
|
@@ -14686,7 +14693,7 @@ const LabelsAndAnnotationsShow = ({
|
|
|
14686
14693
|
children: sksI18n.t("dovetail.label")
|
|
14687
14694
|
}), Object.keys(labels || {}).length ? /* @__PURE__ */ common.jsxRuntimeExports.jsx(Tags, {
|
|
14688
14695
|
value: labels
|
|
14689
|
-
}) : /* @__PURE__ */ common.jsxRuntimeExports.jsx(
|
|
14696
|
+
}) : /* @__PURE__ */ common.jsxRuntimeExports.jsx(ErrorContent, {
|
|
14690
14697
|
errorText: sksI18n.t("dovetail.no_labels"),
|
|
14691
14698
|
type: ErrorContentType.Item
|
|
14692
14699
|
})]
|
|
@@ -14714,7 +14721,7 @@ const NetworkPolicyRulesViewer = ({
|
|
|
14714
14721
|
t: t2
|
|
14715
14722
|
} = common.useTranslation();
|
|
14716
14723
|
if (!ingressOrEgress) {
|
|
14717
|
-
return /* @__PURE__ */ common.jsxRuntimeExports.jsx(
|
|
14724
|
+
return /* @__PURE__ */ common.jsxRuntimeExports.jsx(ErrorContent, {
|
|
14718
14725
|
errorText: t2("dovetail.no_resource", {
|
|
14719
14726
|
kind: kind || t2("dovetail.rule")
|
|
14720
14727
|
}),
|
|
@@ -14909,7 +14916,7 @@ const PodLog = ({
|
|
|
14909
14916
|
})]
|
|
14910
14917
|
}), /* @__PURE__ */ common.jsxRuntimeExports.jsx("div", {
|
|
14911
14918
|
className: ContentStyle$1,
|
|
14912
|
-
children: logType === "previous" && !logs.length ? /* @__PURE__ */ common.jsxRuntimeExports.jsx(
|
|
14919
|
+
children: logType === "previous" && !logs.length ? /* @__PURE__ */ common.jsxRuntimeExports.jsx(ErrorContent, {
|
|
14913
14920
|
style: {
|
|
14914
14921
|
height: "100%"
|
|
14915
14922
|
},
|
|
@@ -15211,7 +15218,7 @@ const PodContainersTable = ({
|
|
|
15211
15218
|
});
|
|
15212
15219
|
if (dataSource.length === 0) {
|
|
15213
15220
|
return /* @__PURE__ */ common.jsxRuntimeExports.jsx(
|
|
15214
|
-
|
|
15221
|
+
ErrorContent,
|
|
15215
15222
|
{
|
|
15216
15223
|
errorText: i18n2.t("dovetail.no_resource", { kind: i18n2.t("dovetail.container") }),
|
|
15217
15224
|
type: ErrorContentType.Card
|
|
@@ -20958,6 +20965,7 @@ exports.EditLabelForm = EditLabelForm;
|
|
|
20958
20965
|
exports.EditNodeTaintDropdownMenuItem = EditNodeTaintDropdownMenuItem;
|
|
20959
20966
|
exports.EditNodeTaintForm = EditNodeTaintForm;
|
|
20960
20967
|
exports.ErrorContent = ErrorContent;
|
|
20968
|
+
exports.ErrorContentBody = ErrorContentBody;
|
|
20961
20969
|
exports.ErrorContentType = ErrorContentType;
|
|
20962
20970
|
exports.ErrorWrapper = ErrorWrapper;
|
|
20963
20971
|
exports.EventModel = EventModel;
|
|
@@ -21166,7 +21174,6 @@ exports.TextTags = TextTags;
|
|
|
21166
21174
|
exports.Time = Time;
|
|
21167
21175
|
exports.ValidateRfc1035Name = ValidateRfc1035Name;
|
|
21168
21176
|
exports.ValueDisplay = index;
|
|
21169
|
-
exports.WidgetErrorContent = WidgetErrorContent;
|
|
21170
21177
|
exports.WorkloadBaseModel = WorkloadBaseModel;
|
|
21171
21178
|
exports.WorkloadDropdown = WorkloadDropdown;
|
|
21172
21179
|
exports.WorkloadImageColumnRenderer = WorkloadImageColumnRenderer;
|