@dovetail-v2/refine 0.1.21 → 0.1.23
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/{MonacoYamlDiffEditor-fc0c461d.js → MonacoYamlDiffEditor-1fa1b6c5.js} +1 -1
- package/dist/{index-66d9e2de.js → index-135c79a4.js} +42 -25
- package/dist/refine.js +1 -1
- package/dist/refine.umd.cjs +40 -23
- package/dist/style.css +5 -4
- package/lib/components/ServiceComponents/index.d.ts +1 -0
- package/lib/components/ShowContent/fields.d.ts +1 -1
- package/lib/hooks/useEagleTable/columns.d.ts +2 -2
- package/package.json +1 -1
|
@@ -10,7 +10,7 @@ import React__default, { createElement, isValidElement, cloneElement, Children,
|
|
|
10
10
|
import { ResourceContext, matchResourceFromRoute, useResource, useDelete, useNavigation, useBreadcrumb, useList, CanAccess, useUpdate, useParsed, useGo, useCan, useTable, useDeleteMany, useShow, useDataProvider, useRefineContext, useTranslate, useWarnAboutChange, useForm as useForm$2, flattenObjectKeys, pickNotDeprecated, useMenu, Refine } from "@refinedev/core";
|
|
11
11
|
import { parse, stringify } from "qs";
|
|
12
12
|
import { useLocation, useHistory, useParams, matchPath, Link, Route, NavLink, Router } from "react-router-dom";
|
|
13
|
-
import { Typo, Tag, Input, Select, AntdOption, Button, Form, Space, TextArea, kitContext, Loading, Table as Table$2, Pagination, Alert, usePopModal, Modal, usePushModal, Fields, Units, OverflowTooltip, Tooltip, StatusCapsule, Dropdown, Menu as Menu$1, Icon as Icon$1, Divider,
|
|
13
|
+
import { Typo, Tag, Input, Select, AntdOption, Button, Form, Space, TextArea, kitContext, Loading, Table as Table$2, Pagination, Alert, usePopModal, Modal, usePushModal, Fields, Units, Link as Link$1, OverflowTooltip, Tooltip, StatusCapsule, Dropdown, Menu as Menu$1, Icon as Icon$1, Divider, Tabs as Tabs$1, TabsTabPane, Row, Col, Popover, AntdTable, TableForm, getOptions, DonutChart, SegmentControl, Checkbox, DropdownMenu, SearchInput, Token, AntdSelectOptGroup, MenuItemGroup, Layout as Layout$1, Time as Time$1, useMessage, ModalStack, KitStoreProvider, ConfigProvider } from "@cloudtower/eagle";
|
|
14
14
|
import { EditPen16PrimaryIcon, Download16GradientBlueIcon, TrashBinDelete16Icon, MoreEllipsis324BoldSecondaryIcon, MoreEllipsis324BoldBlueIcon, MoreEllipsis316BoldBlueIcon, PlusAddCreateNew16BoldOntintIcon, ArrowChevronLeft16BoldTertiaryIcon, ArrowChevronLeftSmall16BoldBlueIcon, ViewEye16GradientGrayIcon, EntityFilterIgnoreGradient16GrayIcon, InfoICircleFill16GrayIcon, InfoICircleFill16Gray70Icon, RecoverContinue16GradientBlueIcon, SuspendedPause16GradientBlueIcon, Retry16GradientBlueIcon, FontSize16GrayIcon, FontSize16BlueIcon, LogCollection16GrayIcon, LogCollection16GradientBlueIcon, TrashBinDeletePermanently16GrayIcon, TrashBinDeletePermanently16BlueIcon, Loading24GradientBlueIcon, OpenTerminal16GradientBlueIcon, HierarchyTriangleRight16GrayIcon, HierarchyTriangleRight16BlueIcon, ClipboardCopy16GradientGrayIcon, ClipboardCopy16GradientBlueIcon, Retry16GradientGrayIcon, EditPen16GradientGrayIcon, EditPen16GradientBlueIcon, Showdiff16GradientGrayIcon, Showdiff16GradientBlueIcon, XmarkFailedSeriousWarningFill16RedIcon, ExclamationErrorCircleFill16RedIcon, Pause16GradientBlueIcon, EditPen16BlueIcon } from "@cloudtower/icons-react";
|
|
15
15
|
import { first, get as get$3, cloneDeep, set as set$1, omit as omit$1, merge, debounce, last, isObject as isObject$4, uniq, keyBy } from "lodash-es";
|
|
16
16
|
import yaml$2 from "js-yaml";
|
|
@@ -1311,8 +1311,8 @@ const dovetail$1 = {
|
|
|
1311
1311
|
path: path$1,
|
|
1312
1312
|
backend: backend$1,
|
|
1313
1313
|
belong_to_node: belong_to_node$1,
|
|
1314
|
-
"true": "
|
|
1315
|
-
"false": "
|
|
1314
|
+
"true": "Yes",
|
|
1315
|
+
"false": "No",
|
|
1316
1316
|
warning: warning$3,
|
|
1317
1317
|
normal: normal$1,
|
|
1318
1318
|
delete_tip: delete_tip$1,
|
|
@@ -8894,6 +8894,8 @@ function MetadataForm() {
|
|
|
8894
8894
|
/* @__PURE__ */ jsxRuntimeExports.jsx(Form.Item, { name: ["metadata", "annotations"], label: "Annotations", children: /* @__PURE__ */ jsxRuntimeExports.jsx(KeyValueListWidget, {}) })
|
|
8895
8895
|
] });
|
|
8896
8896
|
}
|
|
8897
|
+
const ComponentContext = createContext({});
|
|
8898
|
+
const GlobalStoreContext = createContext({});
|
|
8897
8899
|
function memoize$2(fn) {
|
|
8898
8900
|
var cache = /* @__PURE__ */ Object.create(null);
|
|
8899
8901
|
return function(arg) {
|
|
@@ -9161,7 +9163,6 @@ function Table$1(props) {
|
|
|
9161
9163
|
})]
|
|
9162
9164
|
});
|
|
9163
9165
|
}
|
|
9164
|
-
const ComponentContext = createContext({});
|
|
9165
9166
|
function useTableData({ data: data2, columns, pageSize = 10, defaultSorters }) {
|
|
9166
9167
|
const [currentPage, setCurrentPage] = useState(1);
|
|
9167
9168
|
const [sorters, setSorters] = useState(defaultSorters || []);
|
|
@@ -10969,7 +10970,7 @@ class PersistentVolumeClaimModel extends ResourceModel {
|
|
|
10969
10970
|
return set$1(yaml2, "spec.resources.requests.storage", `${distributeStorage}Gi`);
|
|
10970
10971
|
}
|
|
10971
10972
|
}
|
|
10972
|
-
const
|
|
10973
|
+
const index_1r58r8x = "";
|
|
10973
10974
|
const ServiceInClusterAccessComponent = ({
|
|
10974
10975
|
service
|
|
10975
10976
|
}) => {
|
|
@@ -10990,9 +10991,11 @@ const ServiceInClusterAccessComponent = ({
|
|
|
10990
10991
|
}
|
|
10991
10992
|
};
|
|
10992
10993
|
const BreakLineStyle = "b1vtjd4k";
|
|
10994
|
+
const LinkStyle$2 = "luro4rx";
|
|
10993
10995
|
const ServiceOutClusterAccessComponent = ({
|
|
10994
10996
|
service,
|
|
10995
|
-
breakLine = true
|
|
10997
|
+
breakLine = true,
|
|
10998
|
+
clusterVip
|
|
10996
10999
|
}) => {
|
|
10997
11000
|
var _a, _b, _c, _d, _e;
|
|
10998
11001
|
const {
|
|
@@ -11004,13 +11007,30 @@ const ServiceOutClusterAccessComponent = ({
|
|
|
11004
11007
|
switch (spec.type) {
|
|
11005
11008
|
case ServiceTypeEnum.NodePort:
|
|
11006
11009
|
if (!breakLine) {
|
|
11007
|
-
content = (_a = spec.ports) == null ? void 0 : _a.filter((v) => !!v).map((p) =>
|
|
11010
|
+
content = (_a = spec.ports) == null ? void 0 : _a.filter((v) => !!v).map((p) => [/* @__PURE__ */ jsxRuntimeExports.jsx(Link$1, {
|
|
11011
|
+
href: `//${clusterVip}:${p.nodePort}`,
|
|
11012
|
+
target: "_blank",
|
|
11013
|
+
className: cx_default(LinkStyle$2, Typo.Label.l4_regular_title),
|
|
11014
|
+
children: `${clusterVip}:${p.nodePort}`
|
|
11015
|
+
}, p.name)]);
|
|
11016
|
+
if (content && content instanceof Array) {
|
|
11017
|
+
const result = [];
|
|
11018
|
+
for (let i = 0; i < content.length; i++) {
|
|
11019
|
+
result.push(content[i]);
|
|
11020
|
+
if (i < content.length - 1) {
|
|
11021
|
+
result.push(",");
|
|
11022
|
+
}
|
|
11023
|
+
}
|
|
11024
|
+
content = result;
|
|
11025
|
+
}
|
|
11008
11026
|
break;
|
|
11009
11027
|
}
|
|
11010
11028
|
content = (_b = spec.ports) == null ? void 0 : _b.filter((v) => !!v).map((p) => /* @__PURE__ */ jsxRuntimeExports.jsx(OverflowTooltip, {
|
|
11011
|
-
content: /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
11012
|
-
|
|
11013
|
-
|
|
11029
|
+
content: /* @__PURE__ */ jsxRuntimeExports.jsxs(Link$1, {
|
|
11030
|
+
href: `//${clusterVip}:${p.nodePort}`,
|
|
11031
|
+
target: "_blank",
|
|
11032
|
+
className: cx_default(Typo.Label.l4_regular_title, BreakLineStyle, LinkStyle$2),
|
|
11033
|
+
children: [clusterVip, ":", p.nodePort]
|
|
11014
11034
|
}),
|
|
11015
11035
|
tooltip: `${i18n2.t("dovetail.any_node_ip")}:${p.nodePort}`
|
|
11016
11036
|
}, p.nodePort));
|
|
@@ -11561,7 +11581,6 @@ const useEagleTable = (params) => {
|
|
|
11561
11581
|
}, []);
|
|
11562
11582
|
return { tableProps: finalProps, selectedKeys, ...table };
|
|
11563
11583
|
};
|
|
11564
|
-
const GlobalStoreContext = createContext({});
|
|
11565
11584
|
function CreateButton(props) {
|
|
11566
11585
|
var _a;
|
|
11567
11586
|
const { t: t2 } = useTranslation();
|
|
@@ -13351,12 +13370,12 @@ const ServiceInnerClusterAccessField = () => ({
|
|
|
13351
13370
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(ServiceInClusterAccessComponent, { service: record });
|
|
13352
13371
|
}
|
|
13353
13372
|
});
|
|
13354
|
-
const ServiceOutClusterAccessField = () => ({
|
|
13373
|
+
const ServiceOutClusterAccessField = (clusterVip) => ({
|
|
13355
13374
|
key: "innerClusterAccess",
|
|
13356
13375
|
title: /* @__PURE__ */ jsxRuntimeExports.jsx(ServiceOutClusterAccessTitle, {}),
|
|
13357
13376
|
path: [],
|
|
13358
13377
|
renderContent: (_, record) => {
|
|
13359
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(ServiceOutClusterAccessComponent, { service: record, breakLine: false });
|
|
13378
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(ServiceOutClusterAccessComponent, { service: record, breakLine: false, clusterVip });
|
|
13360
13379
|
}
|
|
13361
13380
|
});
|
|
13362
13381
|
const PodSelectorField = () => ({
|
|
@@ -19922,6 +19941,8 @@ const PageShow = (props) => {
|
|
|
19922
19941
|
var _a;
|
|
19923
19942
|
const parsed = useParsed();
|
|
19924
19943
|
const { resource } = useResource();
|
|
19944
|
+
const configs = useContext(ConfigsContext);
|
|
19945
|
+
const config = configs[(resource == null ? void 0 : resource.name) || ""];
|
|
19925
19946
|
const nav = useNavigation();
|
|
19926
19947
|
const i18n2 = useTranslation();
|
|
19927
19948
|
const { queryResult } = useShow({
|
|
@@ -19934,7 +19955,7 @@ const PageShow = (props) => {
|
|
|
19934
19955
|
return {
|
|
19935
19956
|
key: "resource-non-exist",
|
|
19936
19957
|
message: i18n2.t("dovetail.fail_get_detail", {
|
|
19937
|
-
resource: resource == null ? void 0 : resource.name,
|
|
19958
|
+
resource: config.displayName || (resource == null ? void 0 : resource.name),
|
|
19938
19959
|
name: (_a2 = parsed == null ? void 0 : parsed.params) == null ? void 0 : _a2.id,
|
|
19939
19960
|
interpolation: { escapeValue: false }
|
|
19940
19961
|
}),
|
|
@@ -38591,7 +38612,7 @@ const Separator = () => {
|
|
|
38591
38612
|
});
|
|
38592
38613
|
};
|
|
38593
38614
|
const MonacoYamlEditor = React__default.lazy(() => Promise.resolve().then(() => MonacoYamlEditor$2));
|
|
38594
|
-
const MonacoYamlDiffEditor = React__default.lazy(() => import("./MonacoYamlDiffEditor-
|
|
38615
|
+
const MonacoYamlDiffEditor = React__default.lazy(() => import("./MonacoYamlDiffEditor-1fa1b6c5.js"));
|
|
38595
38616
|
const YamlEditorComponent = forwardRef(
|
|
38596
38617
|
function YamlEditorComponent2(props, ref) {
|
|
38597
38618
|
const {
|
|
@@ -40125,7 +40146,7 @@ const IngressRulesComponent = ({ ingress }) => {
|
|
|
40125
40146
|
});
|
|
40126
40147
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, { children: result });
|
|
40127
40148
|
};
|
|
40128
|
-
const
|
|
40149
|
+
const columns_j8358c = "";
|
|
40129
40150
|
const DashedTitleStyle = "dh5j833";
|
|
40130
40151
|
const ServiceClusterTooltipStyle = "s1fcgan";
|
|
40131
40152
|
const NameLink = (props) => {
|
|
@@ -40468,7 +40489,7 @@ function ServiceOutClusterAccessTitle() {
|
|
|
40468
40489
|
})
|
|
40469
40490
|
});
|
|
40470
40491
|
}
|
|
40471
|
-
const ServiceOutClusterAccessColumnRenderer = () => {
|
|
40492
|
+
const ServiceOutClusterAccessColumnRenderer = (clusterVip) => {
|
|
40472
40493
|
return {
|
|
40473
40494
|
key: "outClusterAccess",
|
|
40474
40495
|
title: /* @__PURE__ */ jsxRuntimeExports.jsx(ServiceOutClusterAccessTitle, {}),
|
|
@@ -40478,7 +40499,8 @@ const ServiceOutClusterAccessColumnRenderer = () => {
|
|
|
40478
40499
|
sorter: void 0,
|
|
40479
40500
|
render(_, record) {
|
|
40480
40501
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(ServiceOutClusterAccessComponent, {
|
|
40481
|
-
service: record
|
|
40502
|
+
service: record,
|
|
40503
|
+
clusterVip
|
|
40482
40504
|
});
|
|
40483
40505
|
}
|
|
40484
40506
|
};
|
|
@@ -40621,7 +40643,7 @@ const DataKeysColumnRenderer = (i18n2) => {
|
|
|
40621
40643
|
sorter: void 0
|
|
40622
40644
|
};
|
|
40623
40645
|
};
|
|
40624
|
-
const PortMappingColumnRenderer = (i18n2
|
|
40646
|
+
const PortMappingColumnRenderer = (i18n2) => {
|
|
40625
40647
|
return {
|
|
40626
40648
|
key: "displayPortMapping",
|
|
40627
40649
|
title: /* @__PURE__ */ jsxRuntimeExports.jsx(Tooltip, {
|
|
@@ -40642,12 +40664,7 @@ const PortMappingColumnRenderer = (i18n2, clusterVip) => {
|
|
|
40642
40664
|
style: {
|
|
40643
40665
|
whiteSpace: "pre"
|
|
40644
40666
|
},
|
|
40645
|
-
children: [
|
|
40646
|
-
href: `//${clusterVip}:${v.nodePort}`,
|
|
40647
|
-
target: "_blank",
|
|
40648
|
-
className: "ciistgu",
|
|
40649
|
-
children: v.servicePort
|
|
40650
|
-
}) : v.servicePort, " ", "> ", v.targetPort, "/", v.protocol]
|
|
40667
|
+
children: [v.servicePort, " ", "> ", v.targetPort, "/", v.protocol]
|
|
40651
40668
|
}),
|
|
40652
40669
|
tooltip: `${v.servicePort} > ${v.targetPort}/${v.protocol}`
|
|
40653
40670
|
}, v.servicePort));
|
package/dist/refine.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { bN, cC, A, aW, aY, aF, ca, bk, a1, co, cc, aQ, T, C, i, cG, aI, bp, ac, cI, ai, ap, cR, ax, cd, cb, cU, aM, bw, w, aD, bD, cT, cD, bG, D, b1, as, bJ, ar, at, a0, c9, c8, cS, bi, aU, ad, bQ, cF, cH, cm, aG, aj, s, q, cJ, I, bt, aT, t, M, be, bg, ce, cL, aL, bs, aq, ay, az, a8, aA, aX, aE, bE, bH, a9, d2, cn, cx, bM, N, a2, e, aV, a6, bP, by, bx, cK, b$, cZ, g, cY, aJ, bq, cg, L, ba, bb, bo, H, bc, J, bd, B, b5, cA, z, b4, G, b8, E, b6, F, b7, K, c0, b9, cz, aa, d0, c$, P, bm, v, ae, ah, b_, bj, cP, cO, a$, bu, c6, c5, p, aK, bl, x, bv, b0, d1, y, cq, cE, bK, bR, bS, d4, aH, R, ag, an, am, bL, ak, cQ, c2, al, cB, c7, bh, bA, au, h, Q, O, bf, ct, cw, cs, cr, cu, cv, cp, ch, ck, cl, cj, ci, cf, cy, bT, aN, br, aB, m, bW, l, aZ, cX, o, bX, a_, n, aS, bn, k, cW, aP, aR, c4, bC, bB, c3, aO, S, bF, cV, c_, b2, b3, bz, bI, c1, bY, bZ, ab, $, cN, af, W, cM, ao, aw, av, f, aC, bU, U, a3, d, d7, d6, d9, d3, a7, da, d5, d8, a5, a4, r, a, c, X, V, Y, Z, u, bO, _, bV, b } from "./index-
|
|
1
|
+
import { bN, cC, A, aW, aY, aF, ca, bk, a1, co, cc, aQ, T, C, i, cG, aI, bp, ac, cI, ai, ap, cR, ax, cd, cb, cU, aM, bw, w, aD, bD, cT, cD, bG, D, b1, as, bJ, ar, at, a0, c9, c8, cS, bi, aU, ad, bQ, cF, cH, cm, aG, aj, s, q, cJ, I, bt, aT, t, M, be, bg, ce, cL, aL, bs, aq, ay, az, a8, aA, aX, aE, bE, bH, a9, d2, cn, cx, bM, N, a2, e, aV, a6, bP, by, bx, cK, b$, cZ, g, cY, aJ, bq, cg, L, ba, bb, bo, H, bc, J, bd, B, b5, cA, z, b4, G, b8, E, b6, F, b7, K, c0, b9, cz, aa, d0, c$, P, bm, v, ae, ah, b_, bj, cP, cO, a$, bu, c6, c5, p, aK, bl, x, bv, b0, d1, y, cq, cE, bK, bR, bS, d4, aH, R, ag, an, am, bL, ak, cQ, c2, al, cB, c7, bh, bA, au, h, Q, O, bf, ct, cw, cs, cr, cu, cv, cp, ch, ck, cl, cj, ci, cf, cy, bT, aN, br, aB, m, bW, l, aZ, cX, o, bX, a_, n, aS, bn, k, cW, aP, aR, c4, bC, bB, c3, aO, S, bF, cV, c_, b2, b3, bz, bI, c1, bY, bZ, ab, $, cN, af, W, cM, ao, aw, av, f, aC, bU, U, a3, d, d7, d6, d9, d3, a7, da, d5, d8, a5, a4, r, a, c, X, V, Y, Z, u, bO, _, bV, b } from "./index-135c79a4.js";
|
|
2
2
|
import "@cloudtower/eagle";
|
|
3
3
|
import "@refinedev/core";
|
|
4
4
|
import "react";
|
package/dist/refine.umd.cjs
CHANGED
|
@@ -1317,8 +1317,8 @@ var __publicField = (obj, key, value) => {
|
|
|
1317
1317
|
path: path$1,
|
|
1318
1318
|
backend: backend$1,
|
|
1319
1319
|
belong_to_node: belong_to_node$1,
|
|
1320
|
-
"true": "
|
|
1321
|
-
"false": "
|
|
1320
|
+
"true": "Yes",
|
|
1321
|
+
"false": "No",
|
|
1322
1322
|
warning: warning$3,
|
|
1323
1323
|
normal: normal$1,
|
|
1324
1324
|
delete_tip: delete_tip$1,
|
|
@@ -8900,6 +8900,8 @@ var __publicField = (obj, key, value) => {
|
|
|
8900
8900
|
/* @__PURE__ */ jsxRuntimeExports.jsx(eagle.Form.Item, { name: ["metadata", "annotations"], label: "Annotations", children: /* @__PURE__ */ jsxRuntimeExports.jsx(KeyValueListWidget, {}) })
|
|
8901
8901
|
] });
|
|
8902
8902
|
}
|
|
8903
|
+
const ComponentContext = React.createContext({});
|
|
8904
|
+
const GlobalStoreContext = React.createContext({});
|
|
8903
8905
|
function memoize$2(fn) {
|
|
8904
8906
|
var cache = /* @__PURE__ */ Object.create(null);
|
|
8905
8907
|
return function(arg) {
|
|
@@ -9167,7 +9169,6 @@ var __publicField = (obj, key, value) => {
|
|
|
9167
9169
|
})]
|
|
9168
9170
|
});
|
|
9169
9171
|
}
|
|
9170
|
-
const ComponentContext = React.createContext({});
|
|
9171
9172
|
function useTableData({ data: data2, columns, pageSize = 10, defaultSorters }) {
|
|
9172
9173
|
const [currentPage, setCurrentPage] = React.useState(1);
|
|
9173
9174
|
const [sorters, setSorters] = React.useState(defaultSorters || []);
|
|
@@ -10975,7 +10976,7 @@ var __publicField = (obj, key, value) => {
|
|
|
10975
10976
|
return lodashEs.set(yaml2, "spec.resources.requests.storage", `${distributeStorage}Gi`);
|
|
10976
10977
|
}
|
|
10977
10978
|
}
|
|
10978
|
-
const
|
|
10979
|
+
const index_1r58r8x = "";
|
|
10979
10980
|
const ServiceInClusterAccessComponent = ({
|
|
10980
10981
|
service
|
|
10981
10982
|
}) => {
|
|
@@ -10996,9 +10997,11 @@ var __publicField = (obj, key, value) => {
|
|
|
10996
10997
|
}
|
|
10997
10998
|
};
|
|
10998
10999
|
const BreakLineStyle = "b1vtjd4k";
|
|
11000
|
+
const LinkStyle$2 = "luro4rx";
|
|
10999
11001
|
const ServiceOutClusterAccessComponent = ({
|
|
11000
11002
|
service,
|
|
11001
|
-
breakLine = true
|
|
11003
|
+
breakLine = true,
|
|
11004
|
+
clusterVip
|
|
11002
11005
|
}) => {
|
|
11003
11006
|
var _a, _b, _c, _d, _e;
|
|
11004
11007
|
const {
|
|
@@ -11010,13 +11013,30 @@ var __publicField = (obj, key, value) => {
|
|
|
11010
11013
|
switch (spec.type) {
|
|
11011
11014
|
case ServiceTypeEnum.NodePort:
|
|
11012
11015
|
if (!breakLine) {
|
|
11013
|
-
content = (_a = spec.ports) == null ? void 0 : _a.filter((v) => !!v).map((p) =>
|
|
11016
|
+
content = (_a = spec.ports) == null ? void 0 : _a.filter((v) => !!v).map((p) => [/* @__PURE__ */ jsxRuntimeExports.jsx(eagle.Link, {
|
|
11017
|
+
href: `//${clusterVip}:${p.nodePort}`,
|
|
11018
|
+
target: "_blank",
|
|
11019
|
+
className: cx_default(LinkStyle$2, eagle.Typo.Label.l4_regular_title),
|
|
11020
|
+
children: `${clusterVip}:${p.nodePort}`
|
|
11021
|
+
}, p.name)]);
|
|
11022
|
+
if (content && content instanceof Array) {
|
|
11023
|
+
const result = [];
|
|
11024
|
+
for (let i2 = 0; i2 < content.length; i2++) {
|
|
11025
|
+
result.push(content[i2]);
|
|
11026
|
+
if (i2 < content.length - 1) {
|
|
11027
|
+
result.push(",");
|
|
11028
|
+
}
|
|
11029
|
+
}
|
|
11030
|
+
content = result;
|
|
11031
|
+
}
|
|
11014
11032
|
break;
|
|
11015
11033
|
}
|
|
11016
11034
|
content = (_b = spec.ports) == null ? void 0 : _b.filter((v) => !!v).map((p) => /* @__PURE__ */ jsxRuntimeExports.jsx(eagle.OverflowTooltip, {
|
|
11017
|
-
content: /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
11018
|
-
|
|
11019
|
-
|
|
11035
|
+
content: /* @__PURE__ */ jsxRuntimeExports.jsxs(eagle.Link, {
|
|
11036
|
+
href: `//${clusterVip}:${p.nodePort}`,
|
|
11037
|
+
target: "_blank",
|
|
11038
|
+
className: cx_default(eagle.Typo.Label.l4_regular_title, BreakLineStyle, LinkStyle$2),
|
|
11039
|
+
children: [clusterVip, ":", p.nodePort]
|
|
11020
11040
|
}),
|
|
11021
11041
|
tooltip: `${i18n2.t("dovetail.any_node_ip")}:${p.nodePort}`
|
|
11022
11042
|
}, p.nodePort));
|
|
@@ -11567,7 +11587,6 @@ var __publicField = (obj, key, value) => {
|
|
|
11567
11587
|
}, []);
|
|
11568
11588
|
return { tableProps: finalProps, selectedKeys, ...table };
|
|
11569
11589
|
};
|
|
11570
|
-
const GlobalStoreContext = React.createContext({});
|
|
11571
11590
|
function CreateButton(props) {
|
|
11572
11591
|
var _a;
|
|
11573
11592
|
const { t: t2 } = useTranslation();
|
|
@@ -13357,12 +13376,12 @@ var __publicField = (obj, key, value) => {
|
|
|
13357
13376
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(ServiceInClusterAccessComponent, { service: record });
|
|
13358
13377
|
}
|
|
13359
13378
|
});
|
|
13360
|
-
const ServiceOutClusterAccessField = () => ({
|
|
13379
|
+
const ServiceOutClusterAccessField = (clusterVip) => ({
|
|
13361
13380
|
key: "innerClusterAccess",
|
|
13362
13381
|
title: /* @__PURE__ */ jsxRuntimeExports.jsx(ServiceOutClusterAccessTitle, {}),
|
|
13363
13382
|
path: [],
|
|
13364
13383
|
renderContent: (_, record) => {
|
|
13365
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(ServiceOutClusterAccessComponent, { service: record, breakLine: false });
|
|
13384
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(ServiceOutClusterAccessComponent, { service: record, breakLine: false, clusterVip });
|
|
13366
13385
|
}
|
|
13367
13386
|
});
|
|
13368
13387
|
const PodSelectorField = () => ({
|
|
@@ -19928,6 +19947,8 @@ var __publicField = (obj, key, value) => {
|
|
|
19928
19947
|
var _a;
|
|
19929
19948
|
const parsed = core.useParsed();
|
|
19930
19949
|
const { resource } = core.useResource();
|
|
19950
|
+
const configs = React.useContext(ConfigsContext);
|
|
19951
|
+
const config = configs[(resource == null ? void 0 : resource.name) || ""];
|
|
19931
19952
|
const nav = core.useNavigation();
|
|
19932
19953
|
const i18n2 = useTranslation();
|
|
19933
19954
|
const { queryResult } = core.useShow({
|
|
@@ -19940,7 +19961,7 @@ var __publicField = (obj, key, value) => {
|
|
|
19940
19961
|
return {
|
|
19941
19962
|
key: "resource-non-exist",
|
|
19942
19963
|
message: i18n2.t("dovetail.fail_get_detail", {
|
|
19943
|
-
resource: resource == null ? void 0 : resource.name,
|
|
19964
|
+
resource: config.displayName || (resource == null ? void 0 : resource.name),
|
|
19944
19965
|
name: (_a2 = parsed == null ? void 0 : parsed.params) == null ? void 0 : _a2.id,
|
|
19945
19966
|
interpolation: { escapeValue: false }
|
|
19946
19967
|
}),
|
|
@@ -40131,7 +40152,7 @@ WARNING: This link could potentially be dangerous`)) {
|
|
|
40131
40152
|
});
|
|
40132
40153
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, { children: result });
|
|
40133
40154
|
};
|
|
40134
|
-
const
|
|
40155
|
+
const columns_j8358c = "";
|
|
40135
40156
|
const DashedTitleStyle = "dh5j833";
|
|
40136
40157
|
const ServiceClusterTooltipStyle = "s1fcgan";
|
|
40137
40158
|
const NameLink = (props) => {
|
|
@@ -40474,7 +40495,7 @@ WARNING: This link could potentially be dangerous`)) {
|
|
|
40474
40495
|
})
|
|
40475
40496
|
});
|
|
40476
40497
|
}
|
|
40477
|
-
const ServiceOutClusterAccessColumnRenderer = () => {
|
|
40498
|
+
const ServiceOutClusterAccessColumnRenderer = (clusterVip) => {
|
|
40478
40499
|
return {
|
|
40479
40500
|
key: "outClusterAccess",
|
|
40480
40501
|
title: /* @__PURE__ */ jsxRuntimeExports.jsx(ServiceOutClusterAccessTitle, {}),
|
|
@@ -40484,7 +40505,8 @@ WARNING: This link could potentially be dangerous`)) {
|
|
|
40484
40505
|
sorter: void 0,
|
|
40485
40506
|
render(_, record) {
|
|
40486
40507
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(ServiceOutClusterAccessComponent, {
|
|
40487
|
-
service: record
|
|
40508
|
+
service: record,
|
|
40509
|
+
clusterVip
|
|
40488
40510
|
});
|
|
40489
40511
|
}
|
|
40490
40512
|
};
|
|
@@ -40627,7 +40649,7 @@ WARNING: This link could potentially be dangerous`)) {
|
|
|
40627
40649
|
sorter: void 0
|
|
40628
40650
|
};
|
|
40629
40651
|
};
|
|
40630
|
-
const PortMappingColumnRenderer = (i18n2
|
|
40652
|
+
const PortMappingColumnRenderer = (i18n2) => {
|
|
40631
40653
|
return {
|
|
40632
40654
|
key: "displayPortMapping",
|
|
40633
40655
|
title: /* @__PURE__ */ jsxRuntimeExports.jsx(eagle.Tooltip, {
|
|
@@ -40648,12 +40670,7 @@ WARNING: This link could potentially be dangerous`)) {
|
|
|
40648
40670
|
style: {
|
|
40649
40671
|
whiteSpace: "pre"
|
|
40650
40672
|
},
|
|
40651
|
-
children: [
|
|
40652
|
-
href: `//${clusterVip}:${v.nodePort}`,
|
|
40653
|
-
target: "_blank",
|
|
40654
|
-
className: "ciistgu",
|
|
40655
|
-
children: v.servicePort
|
|
40656
|
-
}) : v.servicePort, " ", "> ", v.targetPort, "/", v.protocol]
|
|
40673
|
+
children: [v.servicePort, " ", "> ", v.targetPort, "/", v.protocol]
|
|
40657
40674
|
}),
|
|
40658
40675
|
tooltip: `${v.servicePort} > ${v.targetPort}/${v.protocol}`
|
|
40659
40676
|
}, v.servicePort));
|
package/dist/style.css
CHANGED
|
@@ -562,6 +562,11 @@
|
|
|
562
562
|
/* z-index */
|
|
563
563
|
.b1vtjd4k.ant-btn.ant-btn-link {
|
|
564
564
|
display: block;
|
|
565
|
+
}
|
|
566
|
+
|
|
567
|
+
.luro4rx.ant-btn-link.ant-btn {
|
|
568
|
+
padding: 0;
|
|
569
|
+
height: 22px;
|
|
565
570
|
}/* // basic */
|
|
566
571
|
/* FishEye Color Variables and Functions */
|
|
567
572
|
/*
|
|
@@ -4683,10 +4688,6 @@
|
|
|
4683
4688
|
|
|
4684
4689
|
.s1fcgan.ant-tooltip .ant-tooltip-inner {
|
|
4685
4690
|
width: 256px;
|
|
4686
|
-
}
|
|
4687
|
-
|
|
4688
|
-
.ciistgu {
|
|
4689
|
-
padding: 0 !important;
|
|
4690
4691
|
}body,
|
|
4691
4692
|
#root {
|
|
4692
4693
|
height: 100%;
|
|
@@ -60,7 +60,7 @@ export declare const AgeField: <Model extends ResourceModel<Unstructured>>(i18n:
|
|
|
60
60
|
export declare const LabelsField: <Model extends ResourceModel<Unstructured>>(i18n: I18nType) => ShowField<Model>;
|
|
61
61
|
export declare const AnnotationsField: <Model extends ResourceModel<Unstructured>>(i18n: I18nType) => ShowField<Model>;
|
|
62
62
|
export declare const ServiceInnerClusterAccessField: <Model extends ServiceModel>() => ShowField<Model>;
|
|
63
|
-
export declare const ServiceOutClusterAccessField: <Model extends ServiceModel>() => ShowField<Model>;
|
|
63
|
+
export declare const ServiceOutClusterAccessField: <Model extends ServiceModel>(clusterVip: string) => ShowField<Model>;
|
|
64
64
|
export declare const PodSelectorField: <Model extends ResourceModel<Required<Unstructured & import("kubernetes-types/core/v1").Service> | (NetworkPolicy & Unstructured)>>() => ShowField<Model>;
|
|
65
65
|
export declare const PortsTableField: <Model extends ServiceModel>() => ShowField<Model>;
|
|
66
66
|
export declare const DurationField: <Model extends JobModel | CronJobModel>(i18n: I18nType) => ShowField<Model>;
|
|
@@ -24,7 +24,7 @@ export declare const ServiceTypeColumnRenderer: <Model extends ResourceModel<imp
|
|
|
24
24
|
export declare function ServiceInClusterAccessTitle(): JSX.Element;
|
|
25
25
|
export declare const ServiceInClusterAccessColumnRenderer: <Model extends ServiceModel>() => Column<Model>;
|
|
26
26
|
export declare function ServiceOutClusterAccessTitle(): JSX.Element;
|
|
27
|
-
export declare const ServiceOutClusterAccessColumnRenderer: <Model extends ServiceModel>() => Column<Model>;
|
|
27
|
+
export declare const ServiceOutClusterAccessColumnRenderer: <Model extends ServiceModel>(clusterVip: string) => Column<Model>;
|
|
28
28
|
export declare const PodWorkloadColumnRenderer: <Model extends PodModel>(i18n: I18nType) => Column<Model>;
|
|
29
29
|
export declare const IngressRulesColumnRenderer: <Model extends IngressModel>(i18n: I18nType) => Column<Model>;
|
|
30
30
|
export declare const IngressDefaultBackendColumnRenderer: <Model extends IngressModel>(i18n: I18nType) => Column<Model>;
|
|
@@ -32,7 +32,7 @@ export declare const IngressClassColumnRenderer: <Model extends IngressModel>(i1
|
|
|
32
32
|
export declare const IngressTlsColumnRenderer: <Model extends IngressModel>(i18n: I18nType) => Column<Model>;
|
|
33
33
|
export declare const PodContainersNumColumnRenderer: <Model extends PodModel>(i18n: I18nType) => Column<Model>;
|
|
34
34
|
export declare const DataKeysColumnRenderer: <Model extends ResourceModel<import("k8s-api-provider").Unstructured>>(i18n: I18nType) => Column<Model>;
|
|
35
|
-
export declare const PortMappingColumnRenderer: <Model extends ServiceModel>(i18n: I18nType
|
|
35
|
+
export declare const PortMappingColumnRenderer: <Model extends ServiceModel>(i18n: I18nType) => Column<Model>;
|
|
36
36
|
export declare const ProvisionerColumnRenderer: <Model extends StorageClassModel>(i18n: I18nType) => Column<Model>;
|
|
37
37
|
export declare const PVCapacityColumnRenderer: <Model extends PersistentVolumeModel>(i18n: I18nType) => Column<Model>;
|
|
38
38
|
export declare const PVCStorageColumnRenderer: <Model extends PersistentVolumeClaimModel>(i18n: I18nType) => Column<Model>;
|