@dovetail-v2/refine 0.0.63 → 0.0.65
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-2f1b1b7c.js → MonacoYamlDiffEditor-da40ae05.js} +1 -1
- package/dist/{index-bf00640b.js → index-cd2b9e5c.js} +566 -349
- package/dist/refine.js +179 -159
- package/dist/refine.umd.cjs +381 -164
- package/dist/style.css +3 -3
- package/lib/src/components/Form/type.d.ts +4 -3
- package/lib/src/components/K8sDropdown/index.d.ts +1 -1
- package/lib/src/components/ResourceLink/index.d.ts +1 -1
- package/lib/src/components/ResourceSelect/index.d.ts +12 -0
- package/lib/src/components/ShowContent/fields.d.ts +7 -1
- package/lib/src/components/ShowContent/groups.d.ts +2 -1
- package/lib/src/components/ValueDisplay/index.d.ts +1 -1
- package/lib/src/components/index.d.ts +1 -0
- package/lib/src/constants/k8s.d.ts +18 -0
- package/lib/src/hooks/useEagleTable/columns.d.ts +8 -1
- package/lib/src/i18n.d.ts +4 -1
- package/lib/src/locales/zh-CN/index.d.ts +4 -1
- package/lib/src/models/index.d.ts +4 -0
- package/lib/src/models/node-model.d.ts +18 -0
- package/lib/src/models/persistent-volume-claim.d.ts +10 -0
- package/lib/src/models/persistent-volume.d.ts +10 -0
- package/lib/src/models/storage-class.d.ts +13 -0
- package/lib/src/models/workload-base-model.d.ts +2 -2
- package/lib/src/pages/nodes/index.d.ts +2 -0
- package/lib/src/pages/nodes/list/index.d.ts +3 -0
- package/lib/src/pages/nodes/show/index.d.ts +3 -0
- package/lib/src/pages/persistentvolumes/index.d.ts +19 -0
- package/lib/src/pages/storageclasses/form/index.d.ts +9 -0
- package/lib/src/pages/storageclasses/index.d.ts +45 -0
- package/lib/src/types/resource.d.ts +3 -1
- package/package.json +5 -5
|
@@ -10,7 +10,7 @@ import React__default, { createElement, isValidElement, cloneElement, Children,
|
|
|
10
10
|
import { ResourceContext, matchResourceFromRoute, useResource, useDelete, useNavigation, useBreadcrumb, useList, useParsed, useGo, useCan, useTable, useDeleteMany, CanAccess, useShow, useUpdate, 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,
|
|
13
|
+
import { Typo, Tag, Input, Select, AntdOption, Button, Form, Space, TextArea, kitContext, Loading, Table as Table$1, Pagination, OverflowTooltip, StatusCapsule, Tooltip, usePushModal, Dropdown, Menu as Menu$1, Icon as Icon$1, Divider, Modal, Link as Link$1, Tabs as Tabs$1, TabsTabPane, Row, Col, Alert, usePopModal, Fields, DonutChart, SegmentControl, Checkbox, SearchInput, Token, AntdSelectOptGroup, MenuItemGroup, Layout as Layout$1, Time as Time$1, useMessage, ModalStack, KitStoreProvider } from "@cloudtower/eagle";
|
|
14
14
|
import { EditPen16PrimaryIcon, Download16GradientBlueIcon, TrashBinDelete16Icon, MoreEllipsis324BoldSecondaryIcon, MoreEllipsis324BoldBlueIcon, MoreEllipsis316BoldBlueIcon, PlusAddCreateNew16BoldOntintIcon, ArrowChevronLeft16BoldTertiaryIcon, ArrowChevronLeftSmall16BoldBlueIcon, EditPen16GradientBlueIcon, ViewEye16GradientGrayIcon, EntityFilterIgnoreGradient16GrayIcon, RecoverContinue16GradientBlueIcon, SuspendedPause16GradientBlueIcon, Retry16GradientBlueIcon, HierarchyTriangleRight16GrayIcon, HierarchyTriangleRight16BlueIcon, ClipboardCopy16GradientGrayIcon, ClipboardCopy16GradientBlueIcon, Retry16GradientGrayIcon, EditPen16GradientGrayIcon, Showdiff16GradientGrayIcon, Showdiff16GradientBlueIcon, XmarkFailedSeriousWarningFill16RedIcon, ExclamationErrorCircleFill16RedIcon, Pause16GradientBlueIcon } from "@cloudtower/icons-react";
|
|
15
15
|
import { omit as omit$1, merge, get as get$3, first, debounce, last, isObject as isObject$4, keyBy } from "lodash-es";
|
|
16
16
|
import yaml from "js-yaml";
|
|
@@ -1152,7 +1152,7 @@ const path_type$1 = "Path type";
|
|
|
1152
1152
|
const only_support_one_yaml$1 = "Only one YAML configuration is supported at a time.";
|
|
1153
1153
|
const not_support$1 = "Not supported";
|
|
1154
1154
|
const stopped$1 = "Stopped";
|
|
1155
|
-
const any_node_ip
|
|
1155
|
+
const any_node_ip = "Any node IP";
|
|
1156
1156
|
const dovetail$1 = {
|
|
1157
1157
|
copy: copy$1,
|
|
1158
1158
|
reset_arguments: reset_arguments$1,
|
|
@@ -1308,7 +1308,7 @@ const dovetail$1 = {
|
|
|
1308
1308
|
only_support_one_yaml: only_support_one_yaml$1,
|
|
1309
1309
|
not_support: not_support$1,
|
|
1310
1310
|
stopped: stopped$1,
|
|
1311
|
-
any_node_ip
|
|
1311
|
+
any_node_ip
|
|
1312
1312
|
};
|
|
1313
1313
|
const EN = {
|
|
1314
1314
|
dovetail: dovetail$1
|
|
@@ -1465,7 +1465,10 @@ const out_external_name_desc = "ExternalName 展示 <strong>external-ip</strong>
|
|
|
1465
1465
|
const only_support_one_yaml = "一次仅支持输入一个 YAML 配置。";
|
|
1466
1466
|
const not_support = "不支持";
|
|
1467
1467
|
const stopped = "已停止";
|
|
1468
|
-
const
|
|
1468
|
+
const storage_class = "存储类";
|
|
1469
|
+
const persistent_volumn = "持久卷";
|
|
1470
|
+
const provisioner = "制备器";
|
|
1471
|
+
const file_system = "文件系统";
|
|
1469
1472
|
const dovetail = {
|
|
1470
1473
|
copy,
|
|
1471
1474
|
reset_arguments,
|
|
@@ -1622,7 +1625,10 @@ const dovetail = {
|
|
|
1622
1625
|
only_support_one_yaml,
|
|
1623
1626
|
not_support,
|
|
1624
1627
|
stopped,
|
|
1625
|
-
|
|
1628
|
+
storage_class,
|
|
1629
|
+
persistent_volumn,
|
|
1630
|
+
provisioner,
|
|
1631
|
+
file_system
|
|
1626
1632
|
};
|
|
1627
1633
|
const ZH = {
|
|
1628
1634
|
dovetail
|
|
@@ -8231,6 +8237,7 @@ function ValueDisplay(props) {
|
|
|
8231
8237
|
}
|
|
8232
8238
|
const index = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
8233
8239
|
__proto__: null,
|
|
8240
|
+
ValueDisplay,
|
|
8234
8241
|
default: ValueDisplay
|
|
8235
8242
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
8236
8243
|
function getSecondsDiff(startDate, endDate) {
|
|
@@ -8312,9 +8319,8 @@ function Breadcrumb(props) {
|
|
|
8312
8319
|
});
|
|
8313
8320
|
}
|
|
8314
8321
|
function NameInputWidget(props) {
|
|
8315
|
-
const kit = useUIKit();
|
|
8316
8322
|
const { action } = useResource();
|
|
8317
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
8323
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(Input, { ...props, disabled: action === "edit" });
|
|
8318
8324
|
}
|
|
8319
8325
|
const dnsSubDomainRules = [
|
|
8320
8326
|
{
|
|
@@ -8359,7 +8365,6 @@ const rfc1035LabelRules = [
|
|
|
8359
8365
|
}
|
|
8360
8366
|
];
|
|
8361
8367
|
function NamespaceSelectWidget(props) {
|
|
8362
|
-
const kit = useUIKit();
|
|
8363
8368
|
const { action } = useResource();
|
|
8364
8369
|
const { data: data2 } = useList({
|
|
8365
8370
|
resource: "namespaces",
|
|
@@ -8371,7 +8376,7 @@ function NamespaceSelectWidget(props) {
|
|
|
8371
8376
|
mode: "off"
|
|
8372
8377
|
}
|
|
8373
8378
|
});
|
|
8374
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
8379
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(Select, { input: props, disabled: action === "edit", children: data2 == null ? void 0 : data2.data.map((namespace2) => /* @__PURE__ */ jsxRuntimeExports.jsx(AntdOption, { value: namespace2.metadata.name, children: namespace2.metadata.name }, namespace2.metadata.name)) });
|
|
8375
8380
|
}
|
|
8376
8381
|
const namespaceRules = [
|
|
8377
8382
|
{
|
|
@@ -8381,7 +8386,6 @@ const namespaceRules = [
|
|
|
8381
8386
|
];
|
|
8382
8387
|
function KeyValueInput(props) {
|
|
8383
8388
|
const { children, item } = props;
|
|
8384
|
-
const kit = useUIKit();
|
|
8385
8389
|
const onKeyChange = useCallback(
|
|
8386
8390
|
(event2) => {
|
|
8387
8391
|
var _a;
|
|
@@ -8404,14 +8408,13 @@ function KeyValueInput(props) {
|
|
|
8404
8408
|
},
|
|
8405
8409
|
[item, props]
|
|
8406
8410
|
);
|
|
8407
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
8408
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
8409
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
8411
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs(Space, { children: [
|
|
8412
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Input, { value: item.key, onChange: onKeyChange }),
|
|
8413
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(TextArea, { value: item.value, onChange: onValueChange }),
|
|
8410
8414
|
children
|
|
8411
8415
|
] });
|
|
8412
8416
|
}
|
|
8413
8417
|
function KeyValueListWidget(props) {
|
|
8414
|
-
const kit = useUIKit();
|
|
8415
8418
|
const { value: value2 } = props;
|
|
8416
8419
|
const items = useMemo(() => {
|
|
8417
8420
|
return Object.entries(value2 || {}).map(([key2, value22]) => ({
|
|
@@ -8453,7 +8456,7 @@ function KeyValueListWidget(props) {
|
|
|
8453
8456
|
onChange(temp);
|
|
8454
8457
|
},
|
|
8455
8458
|
children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
8456
|
-
|
|
8459
|
+
Button,
|
|
8457
8460
|
{
|
|
8458
8461
|
onClick: () => {
|
|
8459
8462
|
onRemove(index2);
|
|
@@ -8466,15 +8469,14 @@ function KeyValueListWidget(props) {
|
|
|
8466
8469
|
index2
|
|
8467
8470
|
);
|
|
8468
8471
|
}),
|
|
8469
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
8472
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Form.Item, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(Button, { type: "primary", onClick: onAdd, children: "Add" }) })
|
|
8470
8473
|
] });
|
|
8471
8474
|
}
|
|
8472
8475
|
function MetadataForm() {
|
|
8473
|
-
const kit = useUIKit();
|
|
8474
8476
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
|
|
8475
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
8477
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Form.Item, { label: "Name", name: ["metadata", "name"], rules: rfc1123LabelRules, children: /* @__PURE__ */ jsxRuntimeExports.jsx(NameInputWidget, {}) }),
|
|
8476
8478
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
8477
|
-
|
|
8479
|
+
Form.Item,
|
|
8478
8480
|
{
|
|
8479
8481
|
label: "Namespace",
|
|
8480
8482
|
name: ["metadata", "namespace"],
|
|
@@ -8482,8 +8484,8 @@ function MetadataForm() {
|
|
|
8482
8484
|
children: /* @__PURE__ */ jsxRuntimeExports.jsx(NamespaceSelectWidget, {})
|
|
8483
8485
|
}
|
|
8484
8486
|
),
|
|
8485
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
8486
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
8487
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Form.Item, { name: ["metadata", "labels"], label: "Labels", children: /* @__PURE__ */ jsxRuntimeExports.jsx(KeyValueListWidget, {}) }),
|
|
8488
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Form.Item, { name: ["metadata", "annotations"], label: "Annotations", children: /* @__PURE__ */ jsxRuntimeExports.jsx(KeyValueListWidget, {}) })
|
|
8487
8489
|
] });
|
|
8488
8490
|
}
|
|
8489
8491
|
function memoize$2(fn) {
|
|
@@ -8673,7 +8675,6 @@ const AuxiliaryLine = /* @__PURE__ */ styled_default("div")({
|
|
|
8673
8675
|
const index_dmbxj3 = "";
|
|
8674
8676
|
const TableContainerStyle = "t1upn1sz";
|
|
8675
8677
|
function Table(props) {
|
|
8676
|
-
const kit = useUIKit();
|
|
8677
8678
|
const {
|
|
8678
8679
|
t: t2
|
|
8679
8680
|
} = useTranslation();
|
|
@@ -8718,7 +8719,7 @@ function Table(props) {
|
|
|
8718
8719
|
return columns;
|
|
8719
8720
|
}, [columns, RowMenu]);
|
|
8720
8721
|
if (loading) {
|
|
8721
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
8722
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(Loading, {});
|
|
8722
8723
|
} else if (error) {
|
|
8723
8724
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(WidgetErrorContent, {
|
|
8724
8725
|
errorText: t2("dovetail.retry_when_access_data_failed"),
|
|
@@ -8738,7 +8739,7 @@ function Table(props) {
|
|
|
8738
8739
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", {
|
|
8739
8740
|
ref: wrapperRef,
|
|
8740
8741
|
className: cx_default(TableContainerStyle, props.className, "table-wrapper"),
|
|
8741
|
-
children: [/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
8742
|
+
children: [/* @__PURE__ */ jsxRuntimeExports.jsx(Table$1, {
|
|
8742
8743
|
tableLayout: "fixed",
|
|
8743
8744
|
columns: finalColumns,
|
|
8744
8745
|
dataSource,
|
|
@@ -8749,7 +8750,7 @@ function Table(props) {
|
|
|
8749
8750
|
scroll
|
|
8750
8751
|
}), /* @__PURE__ */ jsxRuntimeExports.jsx(AuxiliaryLine, {
|
|
8751
8752
|
ref: auxiliaryLineRef
|
|
8752
|
-
}), /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
8753
|
+
}), /* @__PURE__ */ jsxRuntimeExports.jsx(Pagination, {
|
|
8753
8754
|
current: currentPage,
|
|
8754
8755
|
size: defaultSize,
|
|
8755
8756
|
count: total,
|
|
@@ -8790,7 +8791,7 @@ function useTableData({ data: data2, columns, pageSize = 10, defaultSorters }) {
|
|
|
8790
8791
|
const PodSelectorTable = ({ podSelectors = {} }) => {
|
|
8791
8792
|
const { t: t2 } = useTranslation();
|
|
8792
8793
|
const component = useContext(ComponentContext);
|
|
8793
|
-
const Table$
|
|
8794
|
+
const Table$12 = component.Table || Table;
|
|
8794
8795
|
const currentSize = 10;
|
|
8795
8796
|
const datas = Object.keys(podSelectors).map((key2) => ({
|
|
8796
8797
|
id: key2,
|
|
@@ -8835,7 +8836,7 @@ const PodSelectorTable = ({ podSelectors = {} }) => {
|
|
|
8835
8836
|
);
|
|
8836
8837
|
}
|
|
8837
8838
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
8838
|
-
Table$
|
|
8839
|
+
Table$12,
|
|
8839
8840
|
{
|
|
8840
8841
|
tableKey: "podSelector",
|
|
8841
8842
|
loading: false,
|
|
@@ -8855,7 +8856,7 @@ const PodSelectorTable = ({ podSelectors = {} }) => {
|
|
|
8855
8856
|
const PortsTable = ({ service }) => {
|
|
8856
8857
|
const { t: t2 } = useTranslation();
|
|
8857
8858
|
const component = useContext(ComponentContext);
|
|
8858
|
-
const Table$
|
|
8859
|
+
const Table$12 = component.Table || Table;
|
|
8859
8860
|
const currentSize = 10;
|
|
8860
8861
|
const columns = [
|
|
8861
8862
|
{
|
|
@@ -8923,7 +8924,7 @@ const PortsTable = ({ service }) => {
|
|
|
8923
8924
|
);
|
|
8924
8925
|
}
|
|
8925
8926
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
8926
|
-
Table$
|
|
8927
|
+
Table$12,
|
|
8927
8928
|
{
|
|
8928
8929
|
tableKey: "ports",
|
|
8929
8930
|
loading: false,
|
|
@@ -9548,6 +9549,24 @@ const SECRET_CUSTOM_INIT_VALUE = {
|
|
|
9548
9549
|
"type": "",
|
|
9549
9550
|
"data": {}
|
|
9550
9551
|
};
|
|
9552
|
+
const NODE_INIT_VALUE = {
|
|
9553
|
+
"apiVersion": "v1",
|
|
9554
|
+
"kind": "Node",
|
|
9555
|
+
"metadata": {
|
|
9556
|
+
"name": "example",
|
|
9557
|
+
"namespace": "default"
|
|
9558
|
+
},
|
|
9559
|
+
"spec": {}
|
|
9560
|
+
};
|
|
9561
|
+
const STORAGE_CLASS_INIT_VALUE = {
|
|
9562
|
+
"apiVersion": "storage.k8s.io/v1",
|
|
9563
|
+
"kind": "StorageClass",
|
|
9564
|
+
"metadata": {
|
|
9565
|
+
"name": "example",
|
|
9566
|
+
"namespace": "default"
|
|
9567
|
+
},
|
|
9568
|
+
"spec": {}
|
|
9569
|
+
};
|
|
9551
9570
|
var WorkloadState = /* @__PURE__ */ ((WorkloadState2) => {
|
|
9552
9571
|
WorkloadState2["Terminated"] = "terminated";
|
|
9553
9572
|
WorkloadState2["UPDATING"] = "updating";
|
|
@@ -10033,6 +10052,69 @@ class ServiceModel extends ResourceModel {
|
|
|
10033
10052
|
});
|
|
10034
10053
|
}
|
|
10035
10054
|
}
|
|
10055
|
+
var NodeRole = /* @__PURE__ */ ((NodeRole2) => {
|
|
10056
|
+
NodeRole2["ControlPlane"] = "Control Plane";
|
|
10057
|
+
NodeRole2["Worker"] = "Worker";
|
|
10058
|
+
return NodeRole2;
|
|
10059
|
+
})(NodeRole || {});
|
|
10060
|
+
class NodeModel extends WorkloadBaseModel {
|
|
10061
|
+
constructor(_rawYaml, _globalStore) {
|
|
10062
|
+
super(_rawYaml, _globalStore);
|
|
10063
|
+
this._rawYaml = _rawYaml;
|
|
10064
|
+
this._globalStore = _globalStore;
|
|
10065
|
+
}
|
|
10066
|
+
get role() {
|
|
10067
|
+
return "node-role.kubernetes.io/control-plane" in (this.metadata.labels || {}) ? "Control Plane" : "Worker";
|
|
10068
|
+
}
|
|
10069
|
+
get ip() {
|
|
10070
|
+
var _a, _b;
|
|
10071
|
+
return (_b = (_a = this._rawYaml.status.addresses) == null ? void 0 : _a.find((add) => add.type === "InternalIP")) == null ? void 0 : _b.address;
|
|
10072
|
+
}
|
|
10073
|
+
get nodeGroupName() {
|
|
10074
|
+
var _a;
|
|
10075
|
+
return (_a = this.metadata.labels) == null ? void 0 : _a["cape.infrastructure.cluster.x-k8s.io/node-group"];
|
|
10076
|
+
}
|
|
10077
|
+
get isControlPlane() {
|
|
10078
|
+
var _a;
|
|
10079
|
+
if (!((_a = this == null ? void 0 : this.metadata) == null ? void 0 : _a.labels))
|
|
10080
|
+
return false;
|
|
10081
|
+
return "node-role.kubernetes.io/control-plane" in this.metadata.labels;
|
|
10082
|
+
}
|
|
10083
|
+
}
|
|
10084
|
+
class StorageClassModel extends ResourceModel {
|
|
10085
|
+
constructor(_rawYaml, _globalStore) {
|
|
10086
|
+
super(_rawYaml, _globalStore);
|
|
10087
|
+
__publicField(this, "pvs", []);
|
|
10088
|
+
this._rawYaml = _rawYaml;
|
|
10089
|
+
this._globalStore = _globalStore;
|
|
10090
|
+
}
|
|
10091
|
+
async init() {
|
|
10092
|
+
const pvs = await this._globalStore.get("persistentvolumes", {
|
|
10093
|
+
resourceBasePath: "/api/v1",
|
|
10094
|
+
kind: "PersistentVolume"
|
|
10095
|
+
});
|
|
10096
|
+
this.pvs = pvs.items.filter(
|
|
10097
|
+
(pv) => {
|
|
10098
|
+
var _a;
|
|
10099
|
+
return ((_a = pv.spec) == null ? void 0 : _a.storageClassName) === this.metadata.name;
|
|
10100
|
+
}
|
|
10101
|
+
);
|
|
10102
|
+
}
|
|
10103
|
+
}
|
|
10104
|
+
class PersistentVolumeModel extends ResourceModel {
|
|
10105
|
+
constructor(_rawYaml, _globalStore) {
|
|
10106
|
+
super(_rawYaml, _globalStore);
|
|
10107
|
+
this._rawYaml = _rawYaml;
|
|
10108
|
+
this._globalStore = _globalStore;
|
|
10109
|
+
}
|
|
10110
|
+
}
|
|
10111
|
+
class PersistentVolumeClaimModel extends ResourceModel {
|
|
10112
|
+
constructor(_rawYaml, _globalStore) {
|
|
10113
|
+
super(_rawYaml, _globalStore);
|
|
10114
|
+
this._rawYaml = _rawYaml;
|
|
10115
|
+
this._globalStore = _globalStore;
|
|
10116
|
+
}
|
|
10117
|
+
}
|
|
10036
10118
|
const index_1lzkrja = "";
|
|
10037
10119
|
const ServiceInClusterAccessComponent = ({
|
|
10038
10120
|
service
|
|
@@ -10119,14 +10201,13 @@ const Tags = (props) => {
|
|
|
10119
10201
|
const {
|
|
10120
10202
|
value: value2
|
|
10121
10203
|
} = props;
|
|
10122
|
-
const kit = useUIKit();
|
|
10123
10204
|
if (!value2) {
|
|
10124
10205
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(ValueDisplay, {
|
|
10125
10206
|
value: ""
|
|
10126
10207
|
});
|
|
10127
10208
|
}
|
|
10128
10209
|
const tags = Object.keys(value2).map((key2) => {
|
|
10129
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
10210
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(Tag.SplitTag, {
|
|
10130
10211
|
className: TagStyle,
|
|
10131
10212
|
primaryContent: key2,
|
|
10132
10213
|
secondaryContent: value2[key2],
|
|
@@ -10134,7 +10215,7 @@ const Tags = (props) => {
|
|
|
10134
10215
|
color: "gray"
|
|
10135
10216
|
}, key2);
|
|
10136
10217
|
});
|
|
10137
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
10218
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(Space, {
|
|
10138
10219
|
className: TagWrapper,
|
|
10139
10220
|
size: 8,
|
|
10140
10221
|
children: tags
|
|
@@ -10147,7 +10228,6 @@ const StateTag = ({
|
|
|
10147
10228
|
hideBackground,
|
|
10148
10229
|
className
|
|
10149
10230
|
}) => {
|
|
10150
|
-
const kit = useUIKit();
|
|
10151
10231
|
const {
|
|
10152
10232
|
t: t2
|
|
10153
10233
|
} = useTranslation();
|
|
@@ -10166,7 +10246,7 @@ const StateTag = ({
|
|
|
10166
10246
|
terminated: "red",
|
|
10167
10247
|
stopped: "gray"
|
|
10168
10248
|
};
|
|
10169
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
10249
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(StatusCapsule, {
|
|
10170
10250
|
className: cx_default(className, StateTagStyle, hideBackground && "no-background"),
|
|
10171
10251
|
color: statusMap[state2] !== "loading" ? statusMap[state2] : void 0,
|
|
10172
10252
|
loading: statusMap[state2] === "loading",
|
|
@@ -10290,7 +10370,7 @@ const Time = (props) => {
|
|
|
10290
10370
|
const ConditionsTable = ({ conditions = [] }) => {
|
|
10291
10371
|
const { t: t2 } = useTranslation();
|
|
10292
10372
|
const component = useContext(ComponentContext);
|
|
10293
|
-
const Table$
|
|
10373
|
+
const Table$12 = component.Table || Table;
|
|
10294
10374
|
const conditionsWithId = addId(conditions, "type");
|
|
10295
10375
|
const columns = [
|
|
10296
10376
|
{
|
|
@@ -10366,7 +10446,7 @@ const ConditionsTable = ({ conditions = [] }) => {
|
|
|
10366
10446
|
);
|
|
10367
10447
|
}
|
|
10368
10448
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
10369
|
-
Table$
|
|
10449
|
+
Table$12,
|
|
10370
10450
|
{
|
|
10371
10451
|
tableKey: "condition",
|
|
10372
10452
|
loading: false,
|
|
@@ -10429,6 +10509,8 @@ var RESOURCE_GROUP = /* @__PURE__ */ ((RESOURCE_GROUP2) => {
|
|
|
10429
10509
|
RESOURCE_GROUP2["CLUSTER"] = "CLUSTER";
|
|
10430
10510
|
RESOURCE_GROUP2["SERVICE"] = "SERVICE";
|
|
10431
10511
|
RESOURCE_GROUP2["SERVICE_AND_NETWORK"] = "SERVICE_AND_NETWORK";
|
|
10512
|
+
RESOURCE_GROUP2["CONFIG"] = "CONFIG";
|
|
10513
|
+
RESOURCE_GROUP2["NODE_MANAGEMENT"] = "NODE_MANAGEMENT";
|
|
10432
10514
|
return RESOURCE_GROUP2;
|
|
10433
10515
|
})(RESOURCE_GROUP || {});
|
|
10434
10516
|
var FormType = /* @__PURE__ */ ((FormType2) => {
|
|
@@ -10483,7 +10565,6 @@ function useOpenForm(options) {
|
|
|
10483
10565
|
}
|
|
10484
10566
|
function K8sDropdown(props) {
|
|
10485
10567
|
const { record, size = "normal" } = props;
|
|
10486
|
-
const kit = useUIKit();
|
|
10487
10568
|
const { globalStore } = useGlobalStore();
|
|
10488
10569
|
const useResourceResult = useResource();
|
|
10489
10570
|
const resource = useResourceResult.resource;
|
|
@@ -10504,18 +10585,18 @@ function K8sDropdown(props) {
|
|
|
10504
10585
|
});
|
|
10505
10586
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
|
|
10506
10587
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
10507
|
-
|
|
10588
|
+
Dropdown,
|
|
10508
10589
|
{
|
|
10509
|
-
overlay: /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
10590
|
+
overlay: /* @__PURE__ */ jsxRuntimeExports.jsxs(Menu$1, { children: [
|
|
10510
10591
|
isInShowPage || (canEditData == null ? void 0 : canEditData.can) === false ? null : /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
10511
|
-
|
|
10592
|
+
Menu$1.Item,
|
|
10512
10593
|
{
|
|
10513
10594
|
onClick: openForm,
|
|
10514
10595
|
children: /* @__PURE__ */ jsxRuntimeExports.jsx(Icon$1, { src: EditPen16PrimaryIcon, children: t2("dovetail.edit_yaml") })
|
|
10515
10596
|
}
|
|
10516
10597
|
),
|
|
10517
10598
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
10518
|
-
|
|
10599
|
+
Menu$1.Item,
|
|
10519
10600
|
{
|
|
10520
10601
|
onClick: () => {
|
|
10521
10602
|
var _a;
|
|
@@ -10530,9 +10611,9 @@ function K8sDropdown(props) {
|
|
|
10530
10611
|
}
|
|
10531
10612
|
),
|
|
10532
10613
|
props.children,
|
|
10533
|
-
(canDeleteData == null ? void 0 : canDeleteData.can) !== false ? /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
10614
|
+
(canDeleteData == null ? void 0 : canDeleteData.can) !== false ? /* @__PURE__ */ jsxRuntimeExports.jsx(Divider, { style: { margin: 0 } }) : null,
|
|
10534
10615
|
(canDeleteData == null ? void 0 : canDeleteData.can) !== false ? /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
10535
|
-
|
|
10616
|
+
Menu$1.Item,
|
|
10536
10617
|
{
|
|
10537
10618
|
danger: true,
|
|
10538
10619
|
onClick: () => {
|
|
@@ -10544,7 +10625,7 @@ function K8sDropdown(props) {
|
|
|
10544
10625
|
] }),
|
|
10545
10626
|
trigger: ["click"],
|
|
10546
10627
|
children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
10547
|
-
|
|
10628
|
+
Button,
|
|
10548
10629
|
{
|
|
10549
10630
|
type: "quiet",
|
|
10550
10631
|
size: size === "large" ? "middle" : "small",
|
|
@@ -10561,7 +10642,7 @@ function K8sDropdown(props) {
|
|
|
10561
10642
|
)
|
|
10562
10643
|
}
|
|
10563
10644
|
),
|
|
10564
|
-
visible ? /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
10645
|
+
visible ? /* @__PURE__ */ jsxRuntimeExports.jsx(Modal, { ...modalProps }) : null
|
|
10565
10646
|
] });
|
|
10566
10647
|
}
|
|
10567
10648
|
var ColumnKeys = /* @__PURE__ */ ((ColumnKeys2) => {
|
|
@@ -10589,7 +10670,7 @@ function addDefaultRenderToColumns(columns) {
|
|
|
10589
10670
|
}
|
|
10590
10671
|
const useEagleTable = (params) => {
|
|
10591
10672
|
var _a, _b;
|
|
10592
|
-
const { columns, tableProps, formatter, Dropdown = K8sDropdown } = params;
|
|
10673
|
+
const { columns, tableProps, formatter, Dropdown: Dropdown2 = K8sDropdown } = params;
|
|
10593
10674
|
const [selectedKeys, setSelectedKeys] = useState([]);
|
|
10594
10675
|
const [currentPage, setCurrentPage] = useState((tableProps == null ? void 0 : tableProps.currentPage) || 1);
|
|
10595
10676
|
const { resource } = useResource();
|
|
@@ -10645,7 +10726,7 @@ const useEagleTable = (params) => {
|
|
|
10645
10726
|
setSelectedKeys(keys);
|
|
10646
10727
|
},
|
|
10647
10728
|
total,
|
|
10648
|
-
RowMenu:
|
|
10729
|
+
RowMenu: Dropdown2,
|
|
10649
10730
|
...tableProps,
|
|
10650
10731
|
defaultSize: currentSize
|
|
10651
10732
|
};
|
|
@@ -10659,12 +10740,11 @@ const useEagleTable = (params) => {
|
|
|
10659
10740
|
};
|
|
10660
10741
|
function CreateButton() {
|
|
10661
10742
|
var _a;
|
|
10662
|
-
const kit = useUIKit();
|
|
10663
10743
|
const { t: t2 } = useTranslation();
|
|
10664
10744
|
const openForm = useOpenForm();
|
|
10665
10745
|
const { resource } = useResource();
|
|
10666
10746
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
10667
|
-
|
|
10747
|
+
Button,
|
|
10668
10748
|
{
|
|
10669
10749
|
prefixIcon: /* @__PURE__ */ jsxRuntimeExports.jsx(PlusAddCreateNew16BoldOntintIcon, {}),
|
|
10670
10750
|
type: "primary",
|
|
@@ -10703,7 +10783,6 @@ const useDeleteManyModal = (resource, ids) => {
|
|
|
10703
10783
|
};
|
|
10704
10784
|
const DeleteManyButton = (props) => {
|
|
10705
10785
|
const { resource } = useResource();
|
|
10706
|
-
const kit = useUIKit();
|
|
10707
10786
|
const { t: t2 } = useTranslation();
|
|
10708
10787
|
const { modalProps, visible, setVisible } = useDeleteManyModal(
|
|
10709
10788
|
(resource == null ? void 0 : resource.name) || "",
|
|
@@ -10713,8 +10792,8 @@ const DeleteManyButton = (props) => {
|
|
|
10713
10792
|
setVisible(true);
|
|
10714
10793
|
}, [setVisible]);
|
|
10715
10794
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
|
|
10716
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
10717
|
-
visible ? /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
10795
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Button, { type: "primary", danger: true, onClick, children: t2("dovetail.delete") }),
|
|
10796
|
+
visible ? /* @__PURE__ */ jsxRuntimeExports.jsx(Modal, { ...modalProps }) : null
|
|
10718
10797
|
] });
|
|
10719
10798
|
};
|
|
10720
10799
|
const TableToolBar_4s5vf2 = "";
|
|
@@ -10728,18 +10807,17 @@ const TableToolBar = ({
|
|
|
10728
10807
|
hideCreate
|
|
10729
10808
|
}) => {
|
|
10730
10809
|
var _a;
|
|
10731
|
-
const kit = useUIKit();
|
|
10732
10810
|
const {
|
|
10733
10811
|
resource
|
|
10734
10812
|
} = useResource();
|
|
10735
10813
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", {
|
|
10736
10814
|
className: cx_default(ToolbarWrapperStyle, "table-toolbar"),
|
|
10737
|
-
children: [/* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
10815
|
+
children: [/* @__PURE__ */ jsxRuntimeExports.jsxs(Space, {
|
|
10738
10816
|
className: ToolbarStyle$1,
|
|
10739
10817
|
children: [/* @__PURE__ */ jsxRuntimeExports.jsx("span", {
|
|
10740
10818
|
className: cx_default(Typo.Display.d2_regular_title, TitleStyle$2),
|
|
10741
10819
|
children: (_a = resource == null ? void 0 : resource.meta) == null ? void 0 : _a.kind
|
|
10742
|
-
}), /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
10820
|
+
}), /* @__PURE__ */ jsxRuntimeExports.jsxs(Space, {
|
|
10743
10821
|
children: [selectedKeys.length > 0 ? /* @__PURE__ */ jsxRuntimeExports.jsx(DeleteManyButton, {
|
|
10744
10822
|
ids: selectedKeys
|
|
10745
10823
|
}) : void 0, /* @__PURE__ */ jsxRuntimeExports.jsx(CanAccess, {
|
|
@@ -10774,10 +10852,9 @@ const CronjobJobsTable = ({
|
|
|
10774
10852
|
const {
|
|
10775
10853
|
i18n: i18n2
|
|
10776
10854
|
} = useTranslation();
|
|
10777
|
-
const kit = useUIKit();
|
|
10778
10855
|
const [selectedKeys] = useState([]);
|
|
10779
10856
|
const component = useContext(ComponentContext);
|
|
10780
|
-
const Table$
|
|
10857
|
+
const Table$12 = component.Table || Table;
|
|
10781
10858
|
const columns = useMemo(() => [NameColumnRenderer(i18n2, "jobs"), StateDisplayColumnRenderer(i18n2), NameSpaceColumnRenderer(i18n2), {
|
|
10782
10859
|
...WorkloadImageColumnRenderer(i18n2),
|
|
10783
10860
|
width: 238
|
|
@@ -10812,13 +10889,13 @@ const CronjobJobsTable = ({
|
|
|
10812
10889
|
type: ErrorContentType.Card
|
|
10813
10890
|
});
|
|
10814
10891
|
}
|
|
10815
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
10892
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs(Space, {
|
|
10816
10893
|
direction: "vertical",
|
|
10817
10894
|
className: WrapperStyle$5,
|
|
10818
10895
|
children: [hideToolBar ? null : /* @__PURE__ */ jsxRuntimeExports.jsx(TableToolBar, {
|
|
10819
10896
|
selectedKeys,
|
|
10820
10897
|
hideCreate: true
|
|
10821
|
-
}), /* @__PURE__ */ jsxRuntimeExports.jsx(Table$
|
|
10898
|
+
}), /* @__PURE__ */ jsxRuntimeExports.jsx(Table$12, {
|
|
10822
10899
|
...tableProps,
|
|
10823
10900
|
tableKey: "cronjobs",
|
|
10824
10901
|
showMenuColumn: false
|
|
@@ -10892,7 +10969,7 @@ const EventsTable = ({ uid }) => {
|
|
|
10892
10969
|
}), [columns, uid]);
|
|
10893
10970
|
const { tableProps } = useEagleTable(params);
|
|
10894
10971
|
const component = useContext(ComponentContext);
|
|
10895
|
-
const Table$
|
|
10972
|
+
const Table$12 = component.Table || Table;
|
|
10896
10973
|
if (!((_a = tableProps.data) == null ? void 0 : _a.length) && !tableProps.loading) {
|
|
10897
10974
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
10898
10975
|
WidgetErrorContent,
|
|
@@ -10902,7 +10979,7 @@ const EventsTable = ({ uid }) => {
|
|
|
10902
10979
|
);
|
|
10903
10980
|
}
|
|
10904
10981
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
10905
|
-
Table$
|
|
10982
|
+
Table$12,
|
|
10906
10983
|
{
|
|
10907
10984
|
...tableProps,
|
|
10908
10985
|
tableKey: "events",
|
|
@@ -10945,25 +11022,24 @@ const index_cbhkdt = "";
|
|
|
10945
11022
|
const LinkStyle = "l1vnw9x0";
|
|
10946
11023
|
const ResourceLink = (props) => {
|
|
10947
11024
|
const {
|
|
10948
|
-
|
|
11025
|
+
resourceName,
|
|
10949
11026
|
namespace: namespace2,
|
|
10950
11027
|
resourceId
|
|
10951
11028
|
} = props;
|
|
10952
|
-
const kit = useUIKit();
|
|
10953
11029
|
const navigation = useNavigation();
|
|
10954
11030
|
const go = useGo();
|
|
10955
11031
|
const onClick = () => {
|
|
10956
11032
|
go({
|
|
10957
|
-
to: navigation.showUrl(
|
|
11033
|
+
to: navigation.showUrl(resourceName, ""),
|
|
10958
11034
|
query: {
|
|
10959
|
-
id: `${namespace2}/${resourceId}`
|
|
11035
|
+
id: namespace2 ? `${namespace2}/${resourceId}` : resourceId
|
|
10960
11036
|
},
|
|
10961
11037
|
options: {
|
|
10962
11038
|
keepQuery: true
|
|
10963
11039
|
}
|
|
10964
11040
|
});
|
|
10965
11041
|
};
|
|
10966
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
11042
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(Link$1, {
|
|
10967
11043
|
className: LinkStyle,
|
|
10968
11044
|
onClick,
|
|
10969
11045
|
children: resourceId
|
|
@@ -10975,7 +11051,7 @@ const IngressRulesTable = ({ ingress }) => {
|
|
|
10975
11051
|
return addId(ingress.flattenedRules || [], "fullPath");
|
|
10976
11052
|
}, [ingress.flattenedRules]);
|
|
10977
11053
|
const component = useContext(ComponentContext);
|
|
10978
|
-
const Table$
|
|
11054
|
+
const Table$12 = component.Table || Table;
|
|
10979
11055
|
const currentSize = 10;
|
|
10980
11056
|
const columns = [
|
|
10981
11057
|
{
|
|
@@ -11008,7 +11084,7 @@ const IngressRulesTable = ({ ingress }) => {
|
|
|
11008
11084
|
return record.serviceName ? /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
11009
11085
|
ResourceLink,
|
|
11010
11086
|
{
|
|
11011
|
-
|
|
11087
|
+
resourceName: "services",
|
|
11012
11088
|
namespace: ingress.metadata.namespace || "default",
|
|
11013
11089
|
resourceId: serviceName
|
|
11014
11090
|
}
|
|
@@ -11035,7 +11111,7 @@ const IngressRulesTable = ({ ingress }) => {
|
|
|
11035
11111
|
return secretName ? /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
11036
11112
|
ResourceLink,
|
|
11037
11113
|
{
|
|
11038
|
-
|
|
11114
|
+
resourceName: "secrets",
|
|
11039
11115
|
namespace: ingress.metadata.namespace || "default",
|
|
11040
11116
|
resourceId: secretName
|
|
11041
11117
|
}
|
|
@@ -11064,7 +11140,7 @@ const IngressRulesTable = ({ ingress }) => {
|
|
|
11064
11140
|
);
|
|
11065
11141
|
}
|
|
11066
11142
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
11067
|
-
Table$
|
|
11143
|
+
Table$12,
|
|
11068
11144
|
{
|
|
11069
11145
|
tableKey: "ingressRules",
|
|
11070
11146
|
loading: false,
|
|
@@ -11157,12 +11233,11 @@ function KeyValueAnnotation(props) {
|
|
|
11157
11233
|
}
|
|
11158
11234
|
function Tabs(props) {
|
|
11159
11235
|
const { tabs, className } = props;
|
|
11160
|
-
|
|
11161
|
-
|
|
11162
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(kit.tabsTabPane, { tab: tab.title, children: tab.children }, tab.title);
|
|
11236
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(Tabs$1, { className, children: tabs.map((tab) => {
|
|
11237
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(TabsTabPane, { tab: tab.title, children: tab.children }, tab.title);
|
|
11163
11238
|
}) });
|
|
11164
11239
|
}
|
|
11165
|
-
const
|
|
11240
|
+
const ShowContent_1u0cbxv = "";
|
|
11166
11241
|
const ShowContentWrapperStyle = "s9agep2";
|
|
11167
11242
|
const BackButton = "bo89gfi";
|
|
11168
11243
|
const ToolBarWrapper = "t1ohe42f";
|
|
@@ -11194,13 +11269,12 @@ function ShowGroupComponent(props) {
|
|
|
11194
11269
|
});
|
|
11195
11270
|
}
|
|
11196
11271
|
const ShowContent = (props) => {
|
|
11197
|
-
var _a, _b, _c;
|
|
11272
|
+
var _a, _b, _c, _d;
|
|
11198
11273
|
const {
|
|
11199
11274
|
showConfig,
|
|
11200
11275
|
formatter,
|
|
11201
|
-
Dropdown = K8sDropdown
|
|
11276
|
+
Dropdown: Dropdown2 = K8sDropdown
|
|
11202
11277
|
} = props;
|
|
11203
|
-
const kit = useUIKit();
|
|
11204
11278
|
const parsed = useParsed();
|
|
11205
11279
|
const {
|
|
11206
11280
|
resource
|
|
@@ -11224,7 +11298,7 @@ const ShowContent = (props) => {
|
|
|
11224
11298
|
id
|
|
11225
11299
|
});
|
|
11226
11300
|
const Component = useContext(ComponentContext);
|
|
11227
|
-
const Tabs$
|
|
11301
|
+
const Tabs$12 = Component.Tabs || Tabs;
|
|
11228
11302
|
if (!(data2 == null ? void 0 : data2.data)) {
|
|
11229
11303
|
return null;
|
|
11230
11304
|
}
|
|
@@ -11234,6 +11308,8 @@ const ShowContent = (props) => {
|
|
|
11234
11308
|
if (!record)
|
|
11235
11309
|
return null;
|
|
11236
11310
|
return fields.map((field) => {
|
|
11311
|
+
if (field.hidden)
|
|
11312
|
+
return null;
|
|
11237
11313
|
let content;
|
|
11238
11314
|
const value2 = get$3(record, field.path);
|
|
11239
11315
|
if (field.renderContent) {
|
|
@@ -11241,7 +11317,7 @@ const ShowContent = (props) => {
|
|
|
11241
11317
|
} else {
|
|
11242
11318
|
content = get$3(record, field.path);
|
|
11243
11319
|
}
|
|
11244
|
-
return hasCol ? /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
11320
|
+
return hasCol ? /* @__PURE__ */ jsxRuntimeExports.jsx(Col, {
|
|
11245
11321
|
flex: areaType === AreaType.Inline ? "none" : "",
|
|
11246
11322
|
span: field.col || 24,
|
|
11247
11323
|
children: field.render ? field.render(value2, record, field) : /* @__PURE__ */ jsxRuntimeExports.jsxs("div", {
|
|
@@ -11296,7 +11372,7 @@ const ShowContent = (props) => {
|
|
|
11296
11372
|
children: (_b = resource == null ? void 0 : resource.meta) == null ? void 0 : _b.kind
|
|
11297
11373
|
})
|
|
11298
11374
|
})
|
|
11299
|
-
}), /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
11375
|
+
}), /* @__PURE__ */ jsxRuntimeExports.jsxs(Space, {
|
|
11300
11376
|
className: TopBarStyle,
|
|
11301
11377
|
children: [/* @__PURE__ */ jsxRuntimeExports.jsxs("div", {
|
|
11302
11378
|
style: {
|
|
@@ -11308,11 +11384,11 @@ const ShowContent = (props) => {
|
|
|
11308
11384
|
}), stateDisplay ? /* @__PURE__ */ jsxRuntimeExports.jsx(StateTag, {
|
|
11309
11385
|
state: stateDisplay
|
|
11310
11386
|
}) : void 0]
|
|
11311
|
-
}), /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
11312
|
-
children: [/* @__PURE__ */ jsxRuntimeExports.jsx(CanAccess, {
|
|
11387
|
+
}), /* @__PURE__ */ jsxRuntimeExports.jsxs(Space, {
|
|
11388
|
+
children: [(_d = showConfig.renderExtraButton) == null ? void 0 : _d.call(showConfig, record), !showConfig.hideEditYamlButton ? /* @__PURE__ */ jsxRuntimeExports.jsx(CanAccess, {
|
|
11313
11389
|
resource: resource == null ? void 0 : resource.name,
|
|
11314
11390
|
action: AccessControlAuth.Edit,
|
|
11315
|
-
children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
11391
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx(Button, {
|
|
11316
11392
|
style: {
|
|
11317
11393
|
marginRight: 8
|
|
11318
11394
|
},
|
|
@@ -11320,14 +11396,14 @@ const ShowContent = (props) => {
|
|
|
11320
11396
|
prefixIcon: /* @__PURE__ */ jsxRuntimeExports.jsx(EditPen16GradientBlueIcon, {}),
|
|
11321
11397
|
children: t2("dovetail.edit_yaml")
|
|
11322
11398
|
})
|
|
11323
|
-
}), /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
11399
|
+
}) : null, /* @__PURE__ */ jsxRuntimeExports.jsx(Dropdown2, {
|
|
11324
11400
|
record,
|
|
11325
11401
|
size: "large"
|
|
11326
11402
|
})]
|
|
11327
11403
|
})]
|
|
11328
11404
|
})]
|
|
11329
11405
|
});
|
|
11330
|
-
const tabs = /* @__PURE__ */ jsxRuntimeExports.jsx(Tabs$
|
|
11406
|
+
const tabs = /* @__PURE__ */ jsxRuntimeExports.jsx(Tabs$12, {
|
|
11331
11407
|
tabs: (showConfig.tabs || []).map((tab) => {
|
|
11332
11408
|
var _a2;
|
|
11333
11409
|
return {
|
|
@@ -11337,7 +11413,7 @@ const ShowContent = (props) => {
|
|
|
11337
11413
|
className: cx_default(TabContentStyle, tab.groups.length <= 1 && FullTabContentStyle),
|
|
11338
11414
|
children: (_a2 = tab.groups) == null ? void 0 : _a2.map((group) => {
|
|
11339
11415
|
const GroupContainer = group.title ? ShowGroupComponent : React__default.Fragment;
|
|
11340
|
-
const FieldContainer = group.title ?
|
|
11416
|
+
const FieldContainer = group.title ? Row : React__default.Fragment;
|
|
11341
11417
|
const groupContainerProps = group.title ? {
|
|
11342
11418
|
title: group.title || ""
|
|
11343
11419
|
} : {};
|
|
@@ -11350,7 +11426,7 @@ const ShowContent = (props) => {
|
|
|
11350
11426
|
children: [/* @__PURE__ */ jsxRuntimeExports.jsx(FieldContainer, {
|
|
11351
11427
|
...fieldContainerProps,
|
|
11352
11428
|
children: renderFields(area.fields, area.type, !!group.title)
|
|
11353
|
-
}, index2), index2 !== group.areas.length - 1 ? /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
11429
|
+
}, index2), index2 !== group.areas.length - 1 ? /* @__PURE__ */ jsxRuntimeExports.jsx(Divider, {
|
|
11354
11430
|
style: {
|
|
11355
11431
|
margin: "8px 0 12px 0"
|
|
11356
11432
|
}
|
|
@@ -11365,7 +11441,7 @@ const ShowContent = (props) => {
|
|
|
11365
11441
|
});
|
|
11366
11442
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", {
|
|
11367
11443
|
className: ShowContentWrapperStyle,
|
|
11368
|
-
children: [/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
11444
|
+
children: [/* @__PURE__ */ jsxRuntimeExports.jsx(Space, {
|
|
11369
11445
|
direction: "vertical",
|
|
11370
11446
|
className: ShowContentHeaderStyle,
|
|
11371
11447
|
children: topBar
|
|
@@ -11416,10 +11492,9 @@ const WorkloadPodsTable = ({
|
|
|
11416
11492
|
const {
|
|
11417
11493
|
i18n: i18n2
|
|
11418
11494
|
} = useTranslation();
|
|
11419
|
-
const kit = useUIKit();
|
|
11420
11495
|
const [selectedKeys, setSelectedKeys] = useState([]);
|
|
11421
11496
|
const component = useContext(ComponentContext);
|
|
11422
|
-
const Table$
|
|
11497
|
+
const Table$12 = component.Table || Table;
|
|
11423
11498
|
const currentSize = 10;
|
|
11424
11499
|
const columns = [NameColumnRenderer(i18n2, "pods"), StateDisplayColumnRenderer(i18n2), {
|
|
11425
11500
|
key: "ip",
|
|
@@ -11461,13 +11536,13 @@ const WorkloadPodsTable = ({
|
|
|
11461
11536
|
type: ErrorContentType.Card
|
|
11462
11537
|
});
|
|
11463
11538
|
}
|
|
11464
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
11539
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs(Space, {
|
|
11465
11540
|
direction: "vertical",
|
|
11466
11541
|
className: "c1dicff8",
|
|
11467
11542
|
children: [hideToolbar ? null : /* @__PURE__ */ jsxRuntimeExports.jsx(TableToolBar, {
|
|
11468
11543
|
selectedKeys,
|
|
11469
11544
|
hideCreate: true
|
|
11470
|
-
}), /* @__PURE__ */ jsxRuntimeExports.jsx(Table$
|
|
11545
|
+
}), /* @__PURE__ */ jsxRuntimeExports.jsx(Table$12, {
|
|
11471
11546
|
...tableProps,
|
|
11472
11547
|
tableKey: "pods",
|
|
11473
11548
|
onSelect: (keys) => setSelectedKeys(keys),
|
|
@@ -11479,9 +11554,8 @@ const WorkloadPodsTable = ({
|
|
|
11479
11554
|
function FormErrorAlert(props) {
|
|
11480
11555
|
const { errorMsgs, style, className, isEdit } = props;
|
|
11481
11556
|
const { i18n: i18n2 } = useTranslation();
|
|
11482
|
-
const kit = useUIKit();
|
|
11483
11557
|
return errorMsgs.length ? /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
11484
|
-
|
|
11558
|
+
Alert,
|
|
11485
11559
|
{
|
|
11486
11560
|
message: /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
|
|
11487
11561
|
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: i18n2.t(isEdit ? "dovetail.save_failed_tip" : "dovetail.create_failed_tip") }),
|
|
@@ -11589,7 +11663,6 @@ function EditFieldModal(props) {
|
|
|
11589
11663
|
formRef: form,
|
|
11590
11664
|
renderContent
|
|
11591
11665
|
} = props;
|
|
11592
|
-
const kit = useUIKit();
|
|
11593
11666
|
const {
|
|
11594
11667
|
i18n: i18n2
|
|
11595
11668
|
} = useTranslation();
|
|
@@ -11609,7 +11682,7 @@ function EditFieldModal(props) {
|
|
|
11609
11682
|
popModal();
|
|
11610
11683
|
reset();
|
|
11611
11684
|
}, [reset]);
|
|
11612
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
11685
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs(Modal, {
|
|
11613
11686
|
className: ModalStyle,
|
|
11614
11687
|
title: title || i18n2.t("dovetail.edit"),
|
|
11615
11688
|
confirmLoading: submitting,
|
|
@@ -11631,7 +11704,6 @@ function EditField(props) {
|
|
|
11631
11704
|
const {
|
|
11632
11705
|
modalProps
|
|
11633
11706
|
} = props;
|
|
11634
|
-
const kit = useUIKit();
|
|
11635
11707
|
const {
|
|
11636
11708
|
i18n: i18n2
|
|
11637
11709
|
} = useTranslation();
|
|
@@ -11642,7 +11714,7 @@ function EditField(props) {
|
|
|
11642
11714
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(CanAccess, {
|
|
11643
11715
|
resource: resource == null ? void 0 : resource.name,
|
|
11644
11716
|
action: AccessControlAuth.Edit,
|
|
11645
|
-
children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
11717
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx(Button, {
|
|
11646
11718
|
className: EditButtonStyle,
|
|
11647
11719
|
type: "link",
|
|
11648
11720
|
onClick: () => {
|
|
@@ -11671,7 +11743,6 @@ const WorkloadReplicasForm = React__default.forwardRef(function WorkloadReplicas
|
|
|
11671
11743
|
record,
|
|
11672
11744
|
label: label2
|
|
11673
11745
|
} = props;
|
|
11674
|
-
const kit = useUIKit();
|
|
11675
11746
|
const {
|
|
11676
11747
|
resource
|
|
11677
11748
|
} = useResource();
|
|
@@ -11708,7 +11779,7 @@ const WorkloadReplicasForm = React__default.forwardRef(function WorkloadReplicas
|
|
|
11708
11779
|
useImperativeHandle(ref, () => ({
|
|
11709
11780
|
submit
|
|
11710
11781
|
}), [submit]);
|
|
11711
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
11782
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(Form.Item, {
|
|
11712
11783
|
label: /* @__PURE__ */ jsxRuntimeExports.jsx("span", {
|
|
11713
11784
|
style: {
|
|
11714
11785
|
width: "134px"
|
|
@@ -11716,7 +11787,7 @@ const WorkloadReplicasForm = React__default.forwardRef(function WorkloadReplicas
|
|
|
11716
11787
|
children: label2
|
|
11717
11788
|
}),
|
|
11718
11789
|
colon: false,
|
|
11719
|
-
children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
11790
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx(Fields.Integer, {
|
|
11720
11791
|
style: {
|
|
11721
11792
|
width: "142px"
|
|
11722
11793
|
},
|
|
@@ -11741,7 +11812,6 @@ function WorkloadReplicas({
|
|
|
11741
11812
|
record,
|
|
11742
11813
|
editable
|
|
11743
11814
|
}) {
|
|
11744
|
-
const kit = useUIKit();
|
|
11745
11815
|
const {
|
|
11746
11816
|
t: t2
|
|
11747
11817
|
} = useTranslation();
|
|
@@ -11769,7 +11839,7 @@ function WorkloadReplicas({
|
|
|
11769
11839
|
className: WorkloadReplicasWrapperStyle,
|
|
11770
11840
|
children: [/* @__PURE__ */ jsxRuntimeExports.jsx("div", {
|
|
11771
11841
|
className: DonutChartWrapperStyle,
|
|
11772
|
-
children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
11842
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx(DonutChart, {
|
|
11773
11843
|
className: DonutChartStyle,
|
|
11774
11844
|
data: donutData,
|
|
11775
11845
|
width: 70,
|
|
@@ -12070,6 +12140,36 @@ const DurationField = (i18n2) => {
|
|
|
12070
12140
|
}
|
|
12071
12141
|
};
|
|
12072
12142
|
};
|
|
12143
|
+
const StorageClassProvisionerField = (i18n2) => {
|
|
12144
|
+
return {
|
|
12145
|
+
key: "provisioner",
|
|
12146
|
+
path: ["provisioner"],
|
|
12147
|
+
title: i18n2.t("dovetail.provisioner")
|
|
12148
|
+
};
|
|
12149
|
+
};
|
|
12150
|
+
const StorageClassFsTypeField = (i18n2) => {
|
|
12151
|
+
return {
|
|
12152
|
+
key: "fstype",
|
|
12153
|
+
path: ["parameters", "csi.storage.k8s.io/fstype"],
|
|
12154
|
+
title: i18n2.t("dovetail.file_system")
|
|
12155
|
+
};
|
|
12156
|
+
};
|
|
12157
|
+
const StorageClassPvField = () => {
|
|
12158
|
+
return {
|
|
12159
|
+
key: "pvs",
|
|
12160
|
+
path: ["pvs"],
|
|
12161
|
+
renderContent: (pvs) => {
|
|
12162
|
+
return pvs.map((pv) => /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
12163
|
+
ResourceLink,
|
|
12164
|
+
{
|
|
12165
|
+
resourceName: "persistentvolumes",
|
|
12166
|
+
namespace: pv.metadata.namespace || "",
|
|
12167
|
+
resourceId: pv.id
|
|
12168
|
+
}
|
|
12169
|
+
) }, pv.metadata.name));
|
|
12170
|
+
}
|
|
12171
|
+
};
|
|
12172
|
+
};
|
|
12073
12173
|
function __rest(s2, e2) {
|
|
12074
12174
|
var t2 = {};
|
|
12075
12175
|
for (var p in s2)
|
|
@@ -17670,7 +17770,6 @@ const PodLog = ({
|
|
|
17670
17770
|
pod: pod2
|
|
17671
17771
|
}) => {
|
|
17672
17772
|
var _a, _b, _c, _d, _e;
|
|
17673
|
-
const kit = useUIKit();
|
|
17674
17773
|
const [selectedContainer, setSelectedContainer] = useState(((_b = (_a = pod2.spec) == null ? void 0 : _a.containers[0]) == null ? void 0 : _b.name) || "");
|
|
17675
17774
|
const [logs, setLogs] = useState([]);
|
|
17676
17775
|
const [logType, setLogType] = useState("realtime");
|
|
@@ -17793,7 +17892,7 @@ const PodLog = ({
|
|
|
17793
17892
|
className: ToolbarStyle,
|
|
17794
17893
|
children: [/* @__PURE__ */ jsxRuntimeExports.jsxs("span", {
|
|
17795
17894
|
className: ToolbarAreaStyle,
|
|
17796
|
-
children: [/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
17895
|
+
children: [/* @__PURE__ */ jsxRuntimeExports.jsx(SegmentControl, {
|
|
17797
17896
|
options: [{
|
|
17798
17897
|
label: t2("dovetail.realtime_log"),
|
|
17799
17898
|
value: "realtime"
|
|
@@ -17806,7 +17905,7 @@ const PodLog = ({
|
|
|
17806
17905
|
setLogType(value2);
|
|
17807
17906
|
setLogs([]);
|
|
17808
17907
|
}
|
|
17809
|
-
}), /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
17908
|
+
}), /* @__PURE__ */ jsxRuntimeExports.jsxs(Select, {
|
|
17810
17909
|
input: {
|
|
17811
17910
|
onChange: (newValue) => {
|
|
17812
17911
|
stopFetchingLogs();
|
|
@@ -17820,22 +17919,22 @@ const PodLog = ({
|
|
|
17820
17919
|
style: {
|
|
17821
17920
|
width: 200
|
|
17822
17921
|
},
|
|
17823
|
-
children: [/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
17922
|
+
children: [/* @__PURE__ */ jsxRuntimeExports.jsx(AntdOption, {
|
|
17824
17923
|
value: "",
|
|
17825
17924
|
disabled: true,
|
|
17826
17925
|
children: t2("dovetail.select_container")
|
|
17827
|
-
}), (((_e = pod2.spec) == null ? void 0 : _e.containers) || []).map((container2) => /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
17926
|
+
}), (((_e = pod2.spec) == null ? void 0 : _e.containers) || []).map((container2) => /* @__PURE__ */ jsxRuntimeExports.jsx(AntdOption, {
|
|
17828
17927
|
value: container2.name,
|
|
17829
17928
|
children: container2.name
|
|
17830
17929
|
}, container2.name))]
|
|
17831
17930
|
})]
|
|
17832
17931
|
}), /* @__PURE__ */ jsxRuntimeExports.jsxs("span", {
|
|
17833
17932
|
className: ToolbarAreaStyle,
|
|
17834
|
-
children: [/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
17933
|
+
children: [/* @__PURE__ */ jsxRuntimeExports.jsx(Checkbox, {
|
|
17835
17934
|
checked: wrap,
|
|
17836
17935
|
onChange: (e2) => setWrap(e2.target.checked),
|
|
17837
17936
|
children: t2("dovetail.auto_wrap")
|
|
17838
|
-
}), /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
17937
|
+
}), /* @__PURE__ */ jsxRuntimeExports.jsx(Button, {
|
|
17839
17938
|
onClick: () => setPaused((prev) => !prev),
|
|
17840
17939
|
prefixIcon: paused ? /* @__PURE__ */ jsxRuntimeExports.jsx(RecoverContinue16GradientBlueIcon, {}) : /* @__PURE__ */ jsxRuntimeExports.jsx(SuspendedPause16GradientBlueIcon, {}),
|
|
17841
17940
|
size: "middle",
|
|
@@ -18097,7 +18196,7 @@ const PodContainersTable = ({
|
|
|
18097
18196
|
}) => {
|
|
18098
18197
|
const { i18n: i18n2 } = useTranslation();
|
|
18099
18198
|
const component = useContext(ComponentContext);
|
|
18100
|
-
const Table$
|
|
18199
|
+
const Table$12 = component.Table || Table;
|
|
18101
18200
|
const currentSize = 10;
|
|
18102
18201
|
const columns = useMemo(
|
|
18103
18202
|
() => [
|
|
@@ -18192,7 +18291,7 @@ const PodContainersTable = ({
|
|
|
18192
18291
|
);
|
|
18193
18292
|
}
|
|
18194
18293
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
18195
|
-
Table$
|
|
18294
|
+
Table$12,
|
|
18196
18295
|
{
|
|
18197
18296
|
tableKey: "podContainers",
|
|
18198
18297
|
loading: false,
|
|
@@ -18293,21 +18392,27 @@ const JobsGroup = () => ({
|
|
|
18293
18392
|
});
|
|
18294
18393
|
const IngressRulesGroup = (i18n2) => ({
|
|
18295
18394
|
title: i18n2.t("dovetail.rule"),
|
|
18296
|
-
areas: [
|
|
18297
|
-
|
|
18298
|
-
|
|
18395
|
+
areas: [
|
|
18396
|
+
{
|
|
18397
|
+
fields: [IngressRulesTableTabField()]
|
|
18398
|
+
}
|
|
18399
|
+
]
|
|
18299
18400
|
});
|
|
18300
18401
|
const PodSelectorGroup = (i18n2) => ({
|
|
18301
18402
|
title: i18n2.t("dovetail.pod_selector"),
|
|
18302
|
-
areas: [
|
|
18303
|
-
|
|
18304
|
-
|
|
18403
|
+
areas: [
|
|
18404
|
+
{
|
|
18405
|
+
fields: [PodSelectorField()]
|
|
18406
|
+
}
|
|
18407
|
+
]
|
|
18305
18408
|
});
|
|
18306
18409
|
const PortsGroup = (i18n2) => ({
|
|
18307
18410
|
title: i18n2.t("dovetail.port"),
|
|
18308
|
-
areas: [
|
|
18309
|
-
|
|
18310
|
-
|
|
18411
|
+
areas: [
|
|
18412
|
+
{
|
|
18413
|
+
fields: [PortsTableField()]
|
|
18414
|
+
}
|
|
18415
|
+
]
|
|
18311
18416
|
});
|
|
18312
18417
|
const DataGroup = (i18n2) => ({
|
|
18313
18418
|
title: i18n2.t("dovetail.data"),
|
|
@@ -18361,6 +18466,14 @@ const NetworkPolicyEgressRulesGroup = (i18n2) => ({
|
|
|
18361
18466
|
}
|
|
18362
18467
|
]
|
|
18363
18468
|
});
|
|
18469
|
+
const StorageClassPvGroup = (i18n2) => ({
|
|
18470
|
+
title: i18n2.t("dovetail.persistent_volumn"),
|
|
18471
|
+
areas: [
|
|
18472
|
+
{
|
|
18473
|
+
fields: [StorageClassPvField()]
|
|
18474
|
+
}
|
|
18475
|
+
]
|
|
18476
|
+
});
|
|
18364
18477
|
const PageShow = (props) => {
|
|
18365
18478
|
var _a;
|
|
18366
18479
|
const parsed = useParsed();
|
|
@@ -18402,7 +18515,6 @@ function FormLayout(props) {
|
|
|
18402
18515
|
const {
|
|
18403
18516
|
saveButtonProps
|
|
18404
18517
|
} = props;
|
|
18405
|
-
const kit = useUIKit();
|
|
18406
18518
|
const {
|
|
18407
18519
|
resource,
|
|
18408
18520
|
action
|
|
@@ -18415,8 +18527,8 @@ function FormLayout(props) {
|
|
|
18415
18527
|
children: [/* @__PURE__ */ jsxRuntimeExports.jsxs("span", {
|
|
18416
18528
|
className: cx_default(Typo.Display.d2_bold_title, TitleStyle),
|
|
18417
18529
|
children: [(_a = resource == null ? void 0 : resource.meta) == null ? void 0 : _a.kind, ":", " ", action === "create" ? t2("dovetail.create") : t2("dovetail.edit")]
|
|
18418
|
-
}), /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
18419
|
-
children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
18530
|
+
}), /* @__PURE__ */ jsxRuntimeExports.jsx(Divider, {}), props.children, /* @__PURE__ */ jsxRuntimeExports.jsx(Form.Item, {
|
|
18531
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx(Button, {
|
|
18420
18532
|
type: "primary",
|
|
18421
18533
|
...saveButtonProps,
|
|
18422
18534
|
children: t2("dovetail.save")
|
|
@@ -18426,7 +18538,6 @@ function FormLayout(props) {
|
|
|
18426
18538
|
}
|
|
18427
18539
|
function WorkloadDropdown(props) {
|
|
18428
18540
|
const { record, size, children } = props;
|
|
18429
|
-
const kit = useUIKit();
|
|
18430
18541
|
const { resource } = useResource();
|
|
18431
18542
|
const { mutateAsync } = useUpdate();
|
|
18432
18543
|
const { t: t2 } = useTranslation();
|
|
@@ -18436,7 +18547,7 @@ function WorkloadDropdown(props) {
|
|
|
18436
18547
|
});
|
|
18437
18548
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(K8sDropdown, { record, size, children: [
|
|
18438
18549
|
(canEditData == null ? void 0 : canEditData.can) !== false ? /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
18439
|
-
|
|
18550
|
+
Menu$1.Item,
|
|
18440
18551
|
{
|
|
18441
18552
|
onClick: async () => {
|
|
18442
18553
|
const v = record.redeploy();
|
|
@@ -18480,7 +18591,6 @@ function WorkloadDropdown(props) {
|
|
|
18480
18591
|
}
|
|
18481
18592
|
function ReplicasDropdown(props) {
|
|
18482
18593
|
const { record, size, children } = props;
|
|
18483
|
-
const kit = useUIKit();
|
|
18484
18594
|
const { t: t2 } = useTranslation();
|
|
18485
18595
|
const pushModal = usePushModal();
|
|
18486
18596
|
const formRef = useRef(null);
|
|
@@ -18492,7 +18602,7 @@ function ReplicasDropdown(props) {
|
|
|
18492
18602
|
});
|
|
18493
18603
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(WorkloadDropdown, { record, size, children: [
|
|
18494
18604
|
isInShowPage || (canEditData == null ? void 0 : canEditData.can) === false ? null : /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
18495
|
-
|
|
18605
|
+
Menu$1.Item,
|
|
18496
18606
|
{
|
|
18497
18607
|
onClick: () => {
|
|
18498
18608
|
const modalProps = {
|
|
@@ -18682,7 +18792,6 @@ const useNamespacesFilter = () => {
|
|
|
18682
18792
|
const NamespacesFilter = ({
|
|
18683
18793
|
className
|
|
18684
18794
|
}) => {
|
|
18685
|
-
const kit = useUIKit();
|
|
18686
18795
|
const {
|
|
18687
18796
|
t: t2
|
|
18688
18797
|
} = useTranslation();
|
|
@@ -18731,7 +18840,7 @@ const NamespacesFilter = ({
|
|
|
18731
18840
|
}, [calcTagMaxWidth]);
|
|
18732
18841
|
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", {
|
|
18733
18842
|
className: WRAPPER_CLASS,
|
|
18734
|
-
children: /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
18843
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsxs(Select, {
|
|
18735
18844
|
loading: isLoading,
|
|
18736
18845
|
className: cx_default(SelectStyle, SELECT_CLASS, className),
|
|
18737
18846
|
style: {
|
|
@@ -18752,14 +18861,14 @@ const NamespacesFilter = ({
|
|
|
18752
18861
|
},
|
|
18753
18862
|
dropdownRender: (menu) => /* @__PURE__ */ jsxRuntimeExports.jsxs("div", {
|
|
18754
18863
|
className: SelectContentStyle,
|
|
18755
|
-
children: [/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
18864
|
+
children: [/* @__PURE__ */ jsxRuntimeExports.jsx(SearchInput, {
|
|
18756
18865
|
style: {
|
|
18757
18866
|
width: "100%"
|
|
18758
18867
|
},
|
|
18759
18868
|
className: SearchInputStyle,
|
|
18760
18869
|
onChange: debouncedSetSearch,
|
|
18761
18870
|
placeholder: t2("dovetail.please_input")
|
|
18762
|
-
}), menu, isLoading ? /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
18871
|
+
}), menu, isLoading ? /* @__PURE__ */ jsxRuntimeExports.jsx(Loading, {}) : null]
|
|
18763
18872
|
}),
|
|
18764
18873
|
tagRender: ({
|
|
18765
18874
|
label: label2,
|
|
@@ -18778,17 +18887,17 @@ const NamespacesFilter = ({
|
|
|
18778
18887
|
marginLeft: 8
|
|
18779
18888
|
},
|
|
18780
18889
|
children: label2
|
|
18781
|
-
}) : /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
18890
|
+
}) : /* @__PURE__ */ jsxRuntimeExports.jsx(Token, {
|
|
18782
18891
|
className: cx_default(isCountToken ? CountTokenStyle : TokenStyle, isCountToken ? "" : "closable-token"),
|
|
18783
18892
|
closable,
|
|
18784
18893
|
size: "medium",
|
|
18785
18894
|
onClose,
|
|
18786
|
-
children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
18787
|
-
content: isCountToken ? /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
18895
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx(OverflowTooltip, {
|
|
18896
|
+
content: isCountToken ? /* @__PURE__ */ jsxRuntimeExports.jsx(Tooltip, {
|
|
18788
18897
|
title: isCountToken ? value2.slice(MAX_TAG_COUNT).map((namespace2, index2) => /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, {
|
|
18789
18898
|
children: [/* @__PURE__ */ jsxRuntimeExports.jsx("div", {
|
|
18790
18899
|
children: namespace2
|
|
18791
|
-
}), index2 !== value2.length - 1 - MAX_TAG_COUNT ? /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
18900
|
+
}), index2 !== value2.length - 1 - MAX_TAG_COUNT ? /* @__PURE__ */ jsxRuntimeExports.jsx(Divider, {
|
|
18792
18901
|
style: {
|
|
18793
18902
|
margin: "6px 0",
|
|
18794
18903
|
borderColor: "rgba(107, 128, 167, 0.60)"
|
|
@@ -18813,26 +18922,26 @@ const NamespacesFilter = ({
|
|
|
18813
18922
|
setOpen(open2);
|
|
18814
18923
|
},
|
|
18815
18924
|
multiple: true,
|
|
18816
|
-
children: [/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
18925
|
+
children: [/* @__PURE__ */ jsxRuntimeExports.jsx(AntdOption, {
|
|
18817
18926
|
value: "_all",
|
|
18818
18927
|
label: t2("dovetail.all_namespaces"),
|
|
18819
18928
|
className: AllNamespaceOptionStyle,
|
|
18820
|
-
children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
18929
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx(OverflowTooltip, {
|
|
18821
18930
|
content: t2("dovetail.all_namespaces"),
|
|
18822
18931
|
className: LabelWrapperStyle
|
|
18823
18932
|
})
|
|
18824
|
-
}, "_all"), /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
18933
|
+
}, "_all"), /* @__PURE__ */ jsxRuntimeExports.jsx(AntdSelectOptGroup, {
|
|
18825
18934
|
label: "",
|
|
18826
18935
|
className: SelectOptionGroupStyle,
|
|
18827
18936
|
children: data2 == null ? void 0 : data2.data.map((namespace2) => {
|
|
18828
18937
|
const {
|
|
18829
18938
|
name: name2
|
|
18830
18939
|
} = namespace2.metadata;
|
|
18831
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
18940
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(AntdOption, {
|
|
18832
18941
|
value: name2,
|
|
18833
18942
|
label: name2,
|
|
18834
18943
|
className: OptionStyle,
|
|
18835
|
-
children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
18944
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx(OverflowTooltip, {
|
|
18836
18945
|
content: name2,
|
|
18837
18946
|
className: LabelWrapperStyle
|
|
18838
18947
|
})
|
|
@@ -18874,7 +18983,7 @@ function ListPage(props) {
|
|
|
18874
18983
|
const {
|
|
18875
18984
|
t: t2
|
|
18876
18985
|
} = useTranslation();
|
|
18877
|
-
const Table$
|
|
18986
|
+
const Table$12 = TableComponent || Table;
|
|
18878
18987
|
const {
|
|
18879
18988
|
resource
|
|
18880
18989
|
} = useResource();
|
|
@@ -18904,7 +19013,7 @@ function ListPage(props) {
|
|
|
18904
19013
|
errorText: tableProps.empty || t2("dovetail.no_resource", {
|
|
18905
19014
|
kind: ` ${config.kind}`
|
|
18906
19015
|
})
|
|
18907
|
-
}) : /* @__PURE__ */ jsxRuntimeExports.jsx(Table$
|
|
19016
|
+
}) : /* @__PURE__ */ jsxRuntimeExports.jsx(Table$12, {
|
|
18908
19017
|
...tableProps,
|
|
18909
19018
|
empty: tableProps.empty || t2("dovetail.no_resource", {
|
|
18910
19019
|
kind: ` ${config.kind}`
|
|
@@ -18919,7 +19028,7 @@ function ListPage(props) {
|
|
|
18919
19028
|
});
|
|
18920
19029
|
}
|
|
18921
19030
|
function ResourceList(props) {
|
|
18922
|
-
const { formatter, columns, Dropdown, noShow } = props.config;
|
|
19031
|
+
const { formatter, columns, Dropdown: Dropdown2, noShow } = props.config;
|
|
18923
19032
|
const { i18n: i18n2 } = useTranslation();
|
|
18924
19033
|
const nameRenderer = noShow ? PlainTextNameColumnRenderer(i18n2) : NameColumnRenderer(i18n2);
|
|
18925
19034
|
const filters = useNamespaceRefineFilter();
|
|
@@ -18933,7 +19042,7 @@ function ResourceList(props) {
|
|
|
18933
19042
|
...props.config.tableProps
|
|
18934
19043
|
},
|
|
18935
19044
|
formatter,
|
|
18936
|
-
Dropdown
|
|
19045
|
+
Dropdown: Dropdown2
|
|
18937
19046
|
});
|
|
18938
19047
|
useEffect(() => {
|
|
18939
19048
|
tableProps.onPageChange(1);
|
|
@@ -18941,13 +19050,13 @@ function ResourceList(props) {
|
|
|
18941
19050
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(ListPage, { selectedKeys, tableProps });
|
|
18942
19051
|
}
|
|
18943
19052
|
function ResourceShow(props) {
|
|
18944
|
-
const { formatter, showConfig, Dropdown } = props.config;
|
|
19053
|
+
const { formatter, showConfig, Dropdown: Dropdown2 } = props.config;
|
|
18945
19054
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
18946
19055
|
PageShow,
|
|
18947
19056
|
{
|
|
18948
19057
|
showConfig: (showConfig == null ? void 0 : showConfig()) || {},
|
|
18949
19058
|
formatter,
|
|
18950
|
-
Dropdown
|
|
19059
|
+
Dropdown: Dropdown2
|
|
18951
19060
|
}
|
|
18952
19061
|
);
|
|
18953
19062
|
}
|
|
@@ -22237,6 +22346,9 @@ const RefineFormContent = (props) => {
|
|
|
22237
22346
|
children: value2
|
|
22238
22347
|
});
|
|
22239
22348
|
}
|
|
22349
|
+
if (c2 == null ? void 0 : c2.render) {
|
|
22350
|
+
ele = c2.render(value2, onChange, formValue, onBlur, action, control);
|
|
22351
|
+
}
|
|
22240
22352
|
if (c2.helperText) {
|
|
22241
22353
|
ele = /* @__PURE__ */ jsxRuntimeExports.jsxs(Space, {
|
|
22242
22354
|
size: 4,
|
|
@@ -22248,9 +22360,6 @@ const RefineFormContent = (props) => {
|
|
|
22248
22360
|
})]
|
|
22249
22361
|
});
|
|
22250
22362
|
}
|
|
22251
|
-
if (c2 == null ? void 0 : c2.render) {
|
|
22252
|
-
ele = c2.render(value2, onChange, formValue, onBlur, action);
|
|
22253
|
-
}
|
|
22254
22363
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(Form.Item, {
|
|
22255
22364
|
label: c2.label,
|
|
22256
22365
|
colon: false,
|
|
@@ -22960,7 +23069,7 @@ const Separator = () => {
|
|
|
22960
23069
|
});
|
|
22961
23070
|
};
|
|
22962
23071
|
const MonacoYamlEditor = React__default.lazy(() => Promise.resolve().then(() => MonacoYamlEditor$2));
|
|
22963
|
-
const MonacoYamlDiffEditor = React__default.lazy(() => import("./MonacoYamlDiffEditor-
|
|
23072
|
+
const MonacoYamlDiffEditor = React__default.lazy(() => import("./MonacoYamlDiffEditor-da40ae05.js"));
|
|
22964
23073
|
const YamlEditorComponent = forwardRef(
|
|
22965
23074
|
function YamlEditorComponent2(props, ref) {
|
|
22966
23075
|
const {
|
|
@@ -22975,7 +23084,6 @@ const YamlEditorComponent = forwardRef(
|
|
|
22975
23084
|
eleRef,
|
|
22976
23085
|
className
|
|
22977
23086
|
} = props;
|
|
22978
|
-
const kit = useUIKit();
|
|
22979
23087
|
const { t: t2 } = useTranslation();
|
|
22980
23088
|
const [isCollapsed, setIsCollapsed] = useState(
|
|
22981
23089
|
collapsable ? isDefaultCollapsed : false
|
|
@@ -23035,14 +23143,14 @@ const YamlEditorComponent = forwardRef(
|
|
|
23035
23143
|
ref: eleRef,
|
|
23036
23144
|
children: [
|
|
23037
23145
|
/* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
23038
|
-
|
|
23146
|
+
Space,
|
|
23039
23147
|
{
|
|
23040
23148
|
className: cx_default(ToolBarStyle, isCollapsed ? "collapsed" : ""),
|
|
23041
23149
|
direction: "vertical",
|
|
23042
23150
|
size: 0,
|
|
23043
23151
|
children: [
|
|
23044
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
23045
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
23152
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs(Space, { className: ToolBarHeaderStyle, children: [
|
|
23153
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs(Space, { size: 8, children: [
|
|
23046
23154
|
collapsable && /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
23047
23155
|
Icon$1,
|
|
23048
23156
|
{
|
|
@@ -23056,10 +23164,10 @@ const YamlEditorComponent = forwardRef(
|
|
|
23056
23164
|
),
|
|
23057
23165
|
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: cx_default(TitleStyle$1, "yaml-editor-title"), children: title || t2("dovetail.configure_file") })
|
|
23058
23166
|
] }),
|
|
23059
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
23167
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs(Space, { size: 14, children: [
|
|
23060
23168
|
isDiff ? void 0 : /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
|
|
23061
23169
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
23062
|
-
|
|
23170
|
+
Tooltip,
|
|
23063
23171
|
{
|
|
23064
23172
|
title: isCollapsed ? "" : copyTooltip,
|
|
23065
23173
|
onVisibleChange: (visible) => {
|
|
@@ -23090,7 +23198,7 @@ const YamlEditorComponent = forwardRef(
|
|
|
23090
23198
|
),
|
|
23091
23199
|
/* @__PURE__ */ jsxRuntimeExports.jsx(Separator, {}),
|
|
23092
23200
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
23093
|
-
|
|
23201
|
+
Tooltip,
|
|
23094
23202
|
{
|
|
23095
23203
|
title: isCollapsed ? "" : resetTooltip,
|
|
23096
23204
|
onVisibleChange: (visible) => {
|
|
@@ -23123,7 +23231,7 @@ const YamlEditorComponent = forwardRef(
|
|
|
23123
23231
|
/* @__PURE__ */ jsxRuntimeExports.jsx(Separator, {})
|
|
23124
23232
|
] }),
|
|
23125
23233
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
23126
|
-
|
|
23234
|
+
Tooltip,
|
|
23127
23235
|
{
|
|
23128
23236
|
title: isCollapsed ? "" : isDiff ? t2("dovetail.back_to_edit") : t2("dovetail.view_changes"),
|
|
23129
23237
|
children: isDiff ? /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
@@ -23153,7 +23261,7 @@ const YamlEditorComponent = forwardRef(
|
|
|
23153
23261
|
)
|
|
23154
23262
|
] })
|
|
23155
23263
|
] }),
|
|
23156
|
-
errorMsgs.length ? /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
23264
|
+
errorMsgs.length ? /* @__PURE__ */ jsxRuntimeExports.jsxs(Space, { className: ErrorWrapperStyle, size: 8, align: "start", children: [
|
|
23157
23265
|
/* @__PURE__ */ jsxRuntimeExports.jsx(XmarkFailedSeriousWarningFill16RedIcon, { className: ErrorIconStyle }),
|
|
23158
23266
|
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: errorMsgs.map((errorMsg, index2) => /* @__PURE__ */ jsxRuntimeExports.jsxs("pre", { className: ErrorMsgStyle, children: [
|
|
23159
23267
|
errorMsgs.length > 1 ? `${index2 + 1}. ` : "",
|
|
@@ -23340,7 +23448,6 @@ const useYamlForm = ({
|
|
|
23340
23448
|
const [errorResponseBody, setErrorResponseBody] = useState(null);
|
|
23341
23449
|
const useResourceResult = useResource();
|
|
23342
23450
|
const { globalStore } = useGlobalStore();
|
|
23343
|
-
const kit = useUIKit();
|
|
23344
23451
|
const {
|
|
23345
23452
|
schema,
|
|
23346
23453
|
loading: isLoadingSchema,
|
|
@@ -23349,7 +23456,7 @@ const useYamlForm = ({
|
|
|
23349
23456
|
} = useSchema({
|
|
23350
23457
|
skip: editorOptions == null ? void 0 : editorOptions.isSkipSchema
|
|
23351
23458
|
});
|
|
23352
|
-
const [formAnt] =
|
|
23459
|
+
const [formAnt] = Form.useForm();
|
|
23353
23460
|
const formSF = useForm$3({
|
|
23354
23461
|
form: formAnt
|
|
23355
23462
|
});
|
|
@@ -23583,7 +23690,6 @@ function YamlForm(props) {
|
|
|
23583
23690
|
},
|
|
23584
23691
|
...useFormProps
|
|
23585
23692
|
});
|
|
23586
|
-
const kit = useUIKit();
|
|
23587
23693
|
const {
|
|
23588
23694
|
t: t2,
|
|
23589
23695
|
i18n: i18n2
|
|
@@ -23619,7 +23725,7 @@ function YamlForm(props) {
|
|
|
23619
23725
|
}, [responseErrors, onErrorsChange]);
|
|
23620
23726
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(FormWrapper, {
|
|
23621
23727
|
...formWrapperProps,
|
|
23622
|
-
children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
23728
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx(Form, {
|
|
23623
23729
|
...formProps,
|
|
23624
23730
|
initialValues: formProps.initialValues,
|
|
23625
23731
|
layout: "horizontal",
|
|
@@ -23627,10 +23733,10 @@ function YamlForm(props) {
|
|
|
23627
23733
|
onFinish,
|
|
23628
23734
|
children: (() => {
|
|
23629
23735
|
if (isLoadingSchema || (queryResult == null ? void 0 : queryResult.isLoading) && action === "edit") {
|
|
23630
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
23736
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(Loading, {});
|
|
23631
23737
|
}
|
|
23632
23738
|
return editorProps.schema || schemaStrategy !== "Required" ? /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, {
|
|
23633
|
-
children: [/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
23739
|
+
children: [/* @__PURE__ */ jsxRuntimeExports.jsx(Form.Item, {
|
|
23634
23740
|
style: {
|
|
23635
23741
|
flex: 1
|
|
23636
23742
|
},
|
|
@@ -23640,7 +23746,7 @@ function YamlForm(props) {
|
|
|
23640
23746
|
schema,
|
|
23641
23747
|
collapsable: false
|
|
23642
23748
|
})
|
|
23643
|
-
}), /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
23749
|
+
}), /* @__PURE__ */ jsxRuntimeExports.jsx(Form.Item, {
|
|
23644
23750
|
children: mutationResult.error && /* @__PURE__ */ jsxRuntimeExports.jsx(FormErrorAlert, {
|
|
23645
23751
|
errorMsgs: errorResponseBody ? responseErrors : [mutationResult.error.message],
|
|
23646
23752
|
style: {
|
|
@@ -23864,7 +23970,6 @@ function ResourceCRUD(props) {
|
|
|
23864
23970
|
function CronJobDropdown(props) {
|
|
23865
23971
|
const { record, size } = props;
|
|
23866
23972
|
const { spec } = record;
|
|
23867
|
-
const kit = useUIKit();
|
|
23868
23973
|
const { resource } = useResource();
|
|
23869
23974
|
const { mutateAsync } = useUpdate();
|
|
23870
23975
|
const { t: t2 } = useTranslation();
|
|
@@ -23874,7 +23979,7 @@ function CronJobDropdown(props) {
|
|
|
23874
23979
|
});
|
|
23875
23980
|
const suspended2 = Boolean(spec == null ? void 0 : spec.suspend);
|
|
23876
23981
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(K8sDropdown, { record, size, children: (canEditData == null ? void 0 : canEditData.can) !== false ? /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
23877
|
-
|
|
23982
|
+
Menu$1.Item,
|
|
23878
23983
|
{
|
|
23879
23984
|
onClick: async () => {
|
|
23880
23985
|
const v = suspended2 ? record.resume() : record.suspend();
|
|
@@ -23980,36 +24085,34 @@ const ResourceUsageBar = (props) => {
|
|
|
23980
24085
|
const DeleteButton = () => {
|
|
23981
24086
|
const { resource } = useResource();
|
|
23982
24087
|
const { id } = useParsed();
|
|
23983
|
-
const kit = useUIKit();
|
|
23984
24088
|
const { t: t2 } = useTranslation();
|
|
23985
24089
|
const { modalProps, visible, openDeleteConfirmModal } = useDeleteModal(
|
|
23986
24090
|
(resource == null ? void 0 : resource.name) || ""
|
|
23987
24091
|
);
|
|
23988
24092
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
|
|
23989
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
23990
|
-
visible ? /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
24093
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Button, { type: "primary", danger: true, onClick: () => openDeleteConfirmModal(id || ""), children: t2("dovetail.delete") }),
|
|
24094
|
+
visible ? /* @__PURE__ */ jsxRuntimeExports.jsx(Modal, { ...modalProps }) : null
|
|
23991
24095
|
] });
|
|
23992
24096
|
};
|
|
23993
24097
|
const index_1wt5px2 = "";
|
|
23994
24098
|
const MenuStyle = "mdppgn0";
|
|
23995
24099
|
const Menu = () => {
|
|
23996
|
-
const kit = useUIKit();
|
|
23997
24100
|
const {
|
|
23998
24101
|
menuItems,
|
|
23999
24102
|
selectedKey
|
|
24000
24103
|
} = useMenu();
|
|
24001
24104
|
function renderMenuItems(items) {
|
|
24002
|
-
return items.map((item) => item.list ? /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
24105
|
+
return items.map((item) => item.list ? /* @__PURE__ */ jsxRuntimeExports.jsx(Menu$1.Item, {
|
|
24003
24106
|
children: /* @__PURE__ */ jsxRuntimeExports.jsx(NavLink, {
|
|
24004
24107
|
to: item.route || "",
|
|
24005
24108
|
children: item.label
|
|
24006
24109
|
})
|
|
24007
|
-
}, item.key) : /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
24110
|
+
}, item.key) : /* @__PURE__ */ jsxRuntimeExports.jsx(MenuItemGroup, {
|
|
24008
24111
|
title: item.name,
|
|
24009
24112
|
children: renderMenuItems(item.children)
|
|
24010
24113
|
}, item.key));
|
|
24011
24114
|
}
|
|
24012
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
24115
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(Menu$1, {
|
|
24013
24116
|
className: MenuStyle,
|
|
24014
24117
|
theme: "light",
|
|
24015
24118
|
selectedKeys: [selectedKey],
|
|
@@ -24024,21 +24127,20 @@ const ContentStyle = "cyc9hl2";
|
|
|
24024
24127
|
const Layout = ({
|
|
24025
24128
|
children
|
|
24026
24129
|
}) => {
|
|
24027
|
-
const kit = useUIKit();
|
|
24028
24130
|
const [collapsed, setCollapsed] = useState(false);
|
|
24029
24131
|
const {
|
|
24030
24132
|
Header,
|
|
24031
24133
|
Content,
|
|
24032
24134
|
Sider
|
|
24033
|
-
} =
|
|
24034
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
24135
|
+
} = Layout$1;
|
|
24136
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs(Layout$1, {
|
|
24035
24137
|
style: {
|
|
24036
24138
|
height: "100%"
|
|
24037
24139
|
},
|
|
24038
24140
|
children: [/* @__PURE__ */ jsxRuntimeExports.jsx(Header, {
|
|
24039
24141
|
className: cx_default(HeaderStyle, Typo.Heading.h1_bold_title),
|
|
24040
24142
|
children: "Dovetail 2"
|
|
24041
|
-
}), /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
24143
|
+
}), /* @__PURE__ */ jsxRuntimeExports.jsxs(Layout$1, {
|
|
24042
24144
|
className: ContentLayoutStyle,
|
|
24043
24145
|
children: [/* @__PURE__ */ jsxRuntimeExports.jsx(Sider, {
|
|
24044
24146
|
width: 256,
|
|
@@ -24056,7 +24158,6 @@ const Layout = ({
|
|
|
24056
24158
|
};
|
|
24057
24159
|
const DrawerShow = (props) => {
|
|
24058
24160
|
var _a, _b;
|
|
24059
|
-
const kit = useUIKit();
|
|
24060
24161
|
const parsed = useParsed();
|
|
24061
24162
|
const nav = useNavigation();
|
|
24062
24163
|
const { queryResult } = useShow({ id: (_a = parsed == null ? void 0 : parsed.params) == null ? void 0 : _a.id });
|
|
@@ -24069,16 +24170,15 @@ const DrawerShow = (props) => {
|
|
|
24069
24170
|
onClose: () => nav.goBack(),
|
|
24070
24171
|
width: "50%",
|
|
24071
24172
|
visible: !!((_b = parsed == null ? void 0 : parsed.params) == null ? void 0 : _b.id),
|
|
24072
|
-
children: isLoading ? /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
24173
|
+
children: isLoading ? /* @__PURE__ */ jsxRuntimeExports.jsx(Loading, {}) : /* @__PURE__ */ jsxRuntimeExports.jsx(ShowContent, { ...props })
|
|
24073
24174
|
}
|
|
24074
24175
|
);
|
|
24075
24176
|
};
|
|
24076
24177
|
const EditButton = () => {
|
|
24077
24178
|
const { id } = useParsed();
|
|
24078
|
-
const kit = useUIKit();
|
|
24079
24179
|
const { edit: edit2 } = useEdit();
|
|
24080
24180
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
24081
|
-
|
|
24181
|
+
Button,
|
|
24082
24182
|
{
|
|
24083
24183
|
type: "primary",
|
|
24084
24184
|
onClick: () => {
|
|
@@ -24103,7 +24203,7 @@ const ReferenceLink = (props) => {
|
|
|
24103
24203
|
ResourceLink,
|
|
24104
24204
|
{
|
|
24105
24205
|
resourceId: ownerReference.name,
|
|
24106
|
-
|
|
24206
|
+
resourceName: resource.name || "",
|
|
24107
24207
|
namespace: namespace2
|
|
24108
24208
|
}
|
|
24109
24209
|
);
|
|
@@ -24118,12 +24218,37 @@ const TextTags = (props) => {
|
|
|
24118
24218
|
});
|
|
24119
24219
|
return /* @__PURE__ */ jsxRuntimeExports.jsx("ul", { children: tags });
|
|
24120
24220
|
};
|
|
24221
|
+
function ResourceSelect(props) {
|
|
24222
|
+
const { resource, resourceBasePath, kind, selectProps, value: value2, onChange } = props;
|
|
24223
|
+
const { data: data2, isLoading, isError } = useList({
|
|
24224
|
+
resource,
|
|
24225
|
+
meta: {
|
|
24226
|
+
resourceBasePath,
|
|
24227
|
+
kind
|
|
24228
|
+
},
|
|
24229
|
+
pagination: {
|
|
24230
|
+
mode: "off"
|
|
24231
|
+
}
|
|
24232
|
+
});
|
|
24233
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
24234
|
+
Select,
|
|
24235
|
+
{
|
|
24236
|
+
input: {
|
|
24237
|
+
value: value2,
|
|
24238
|
+
onChange
|
|
24239
|
+
},
|
|
24240
|
+
loading: isLoading,
|
|
24241
|
+
error: isError,
|
|
24242
|
+
...selectProps,
|
|
24243
|
+
children: data2 == null ? void 0 : data2.data.map((namespace2) => /* @__PURE__ */ jsxRuntimeExports.jsx(AntdOption, { value: namespace2.metadata.name, children: namespace2.metadata.name }, namespace2.metadata.name))
|
|
24244
|
+
}
|
|
24245
|
+
);
|
|
24246
|
+
}
|
|
24121
24247
|
const IngressRulesComponent = ({ ingress }) => {
|
|
24122
|
-
const kit = useUIKit();
|
|
24123
24248
|
const result = ingress.flattenedRules.map((r2) => {
|
|
24124
24249
|
const divider = " > ";
|
|
24125
24250
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
24126
|
-
|
|
24251
|
+
OverflowTooltip,
|
|
24127
24252
|
{
|
|
24128
24253
|
content: /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
|
|
24129
24254
|
/* @__PURE__ */ jsxRuntimeExports.jsx(LinkFallback, { fullPath: r2.fullPath }),
|
|
@@ -24132,7 +24257,7 @@ const IngressRulesComponent = ({ ingress }) => {
|
|
|
24132
24257
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
24133
24258
|
ResourceLink,
|
|
24134
24259
|
{
|
|
24135
|
-
|
|
24260
|
+
resourceName: "services",
|
|
24136
24261
|
namespace: ingress.metadata.namespace || "default",
|
|
24137
24262
|
resourceId: r2.serviceName
|
|
24138
24263
|
}
|
|
@@ -24160,12 +24285,11 @@ const NameLink = (props) => {
|
|
|
24160
24285
|
id,
|
|
24161
24286
|
resource
|
|
24162
24287
|
} = props;
|
|
24163
|
-
const kit = useUIKit();
|
|
24164
24288
|
const go = useGo();
|
|
24165
24289
|
const navigation = useNavigation();
|
|
24166
24290
|
const parsed = useParsed();
|
|
24167
24291
|
const resourceName = resource || ((_a = parsed.resource) == null ? void 0 : _a.name) || "";
|
|
24168
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
24292
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(Button, {
|
|
24169
24293
|
type: "link",
|
|
24170
24294
|
onClick: () => {
|
|
24171
24295
|
go({
|
|
@@ -24310,7 +24434,6 @@ const AgeColumnRenderer = (i18n2, config, {
|
|
|
24310
24434
|
isRelativeTime = true
|
|
24311
24435
|
} = {}) => {
|
|
24312
24436
|
const dataIndex = ["metadata", "creationTimestamp"];
|
|
24313
|
-
const kit = useUIKit();
|
|
24314
24437
|
return {
|
|
24315
24438
|
key: "creationTimestamp",
|
|
24316
24439
|
display: true,
|
|
@@ -24322,7 +24445,7 @@ const AgeColumnRenderer = (i18n2, config, {
|
|
|
24322
24445
|
return isRelativeTime ? /* @__PURE__ */ jsxRuntimeExports.jsx(Time, {
|
|
24323
24446
|
date: new Date(value2)
|
|
24324
24447
|
}) : /* @__PURE__ */ jsxRuntimeExports.jsx(ValueDisplay, {
|
|
24325
|
-
value: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
24448
|
+
value: /* @__PURE__ */ jsxRuntimeExports.jsx(Time$1, {
|
|
24326
24449
|
date: value2,
|
|
24327
24450
|
timeTemplate: "HH:mm:ss",
|
|
24328
24451
|
dateTemplate: "YYYY-MM-DD"
|
|
@@ -24677,6 +24800,76 @@ const PortMappingColumnRenderer = (i18n2, clusterVip) => {
|
|
|
24677
24800
|
}
|
|
24678
24801
|
};
|
|
24679
24802
|
};
|
|
24803
|
+
const ProvisionerColumnRenderer = (i18n2) => {
|
|
24804
|
+
return {
|
|
24805
|
+
key: "provisioner",
|
|
24806
|
+
display: true,
|
|
24807
|
+
dataIndex: ["provisioner"],
|
|
24808
|
+
title: i18n2.t("dovetail.provisioner"),
|
|
24809
|
+
width: 120,
|
|
24810
|
+
sortable: true
|
|
24811
|
+
};
|
|
24812
|
+
};
|
|
24813
|
+
const FsTypeColumnRenderer = (i18n2) => {
|
|
24814
|
+
return {
|
|
24815
|
+
key: "fstype",
|
|
24816
|
+
display: true,
|
|
24817
|
+
dataIndex: ["parameters", "csi.storage.k8s.io/fstype"],
|
|
24818
|
+
title: i18n2.t("dovetail.file_system"),
|
|
24819
|
+
width: 120,
|
|
24820
|
+
sortable: true
|
|
24821
|
+
};
|
|
24822
|
+
};
|
|
24823
|
+
const PVCapacityColumnRenderer = (i18n2) => {
|
|
24824
|
+
return {
|
|
24825
|
+
key: "capacity",
|
|
24826
|
+
display: true,
|
|
24827
|
+
dataIndex: ["spec", "capacity", "storage"],
|
|
24828
|
+
title: i18n2.t("dovetail.capacity"),
|
|
24829
|
+
width: 120,
|
|
24830
|
+
sortable: true
|
|
24831
|
+
};
|
|
24832
|
+
};
|
|
24833
|
+
const PVStorageClassColumnRenderer = (i18n2) => {
|
|
24834
|
+
return {
|
|
24835
|
+
key: "storageClass",
|
|
24836
|
+
display: true,
|
|
24837
|
+
dataIndex: ["spec", "storageClassName"],
|
|
24838
|
+
title: i18n2.t("dovetail.storage_class"),
|
|
24839
|
+
width: 120,
|
|
24840
|
+
sortable: true
|
|
24841
|
+
};
|
|
24842
|
+
};
|
|
24843
|
+
const PVPhaseColumnRenderer = (i18n2) => {
|
|
24844
|
+
return {
|
|
24845
|
+
key: "phase",
|
|
24846
|
+
display: true,
|
|
24847
|
+
dataIndex: ["status", "phase"],
|
|
24848
|
+
title: i18n2.t("dovetail.phase"),
|
|
24849
|
+
width: 120,
|
|
24850
|
+
sortable: true
|
|
24851
|
+
};
|
|
24852
|
+
};
|
|
24853
|
+
const PVModeColumnRenderer = (i18n2) => {
|
|
24854
|
+
return {
|
|
24855
|
+
key: "mode",
|
|
24856
|
+
display: true,
|
|
24857
|
+
dataIndex: ["spec", "volumeMode"],
|
|
24858
|
+
title: i18n2.t("dovetail.volume_mode"),
|
|
24859
|
+
width: 120,
|
|
24860
|
+
sortable: true
|
|
24861
|
+
};
|
|
24862
|
+
};
|
|
24863
|
+
const PVAccessModeColumnRenderer = (i18n2) => {
|
|
24864
|
+
return {
|
|
24865
|
+
key: "accessMode",
|
|
24866
|
+
display: true,
|
|
24867
|
+
dataIndex: ["spec", "accessModes"],
|
|
24868
|
+
title: i18n2.t("dovetail.access_mode"),
|
|
24869
|
+
width: 120,
|
|
24870
|
+
sortable: true
|
|
24871
|
+
};
|
|
24872
|
+
};
|
|
24680
24873
|
const styles = "";
|
|
24681
24874
|
const Dovetail = (props) => {
|
|
24682
24875
|
const {
|
|
@@ -24764,7 +24957,11 @@ const ModelMap = {
|
|
|
24764
24957
|
Event: EventModel,
|
|
24765
24958
|
Ingress: IngressModel,
|
|
24766
24959
|
NetworkPolicy: NetworkPolicyModel,
|
|
24767
|
-
Service: ServiceModel
|
|
24960
|
+
Service: ServiceModel,
|
|
24961
|
+
Node: NodeModel,
|
|
24962
|
+
StorageClass: StorageClassModel,
|
|
24963
|
+
PersistentVolume: PersistentVolumeModel,
|
|
24964
|
+
PersistentVolumeClaim: PersistentVolumeClaimModel
|
|
24768
24965
|
};
|
|
24769
24966
|
class ModelPlugin {
|
|
24770
24967
|
constructor() {
|
|
@@ -24890,172 +25087,192 @@ const relationPlugin = new RelationPlugin();
|
|
|
24890
25087
|
const ProviderPlugins = [relationPlugin, modelPlugin];
|
|
24891
25088
|
const dovetailRefineI18n = i18n;
|
|
24892
25089
|
export {
|
|
24893
|
-
|
|
25090
|
+
NamespaceSelectWidget as $,
|
|
24894
25091
|
AgeColumnRenderer as A,
|
|
24895
|
-
|
|
25092
|
+
PVPhaseColumnRenderer as B,
|
|
24896
25093
|
CommonSorter as C,
|
|
24897
25094
|
DurationColumnRenderer as D,
|
|
24898
|
-
|
|
24899
|
-
|
|
24900
|
-
|
|
24901
|
-
|
|
25095
|
+
PVModeColumnRenderer as E,
|
|
25096
|
+
FsTypeColumnRenderer as F,
|
|
25097
|
+
PVAccessModeColumnRenderer as G,
|
|
25098
|
+
ColumnKeys as H,
|
|
24902
25099
|
IngressRulesColumnRenderer as I,
|
|
24903
|
-
|
|
24904
|
-
|
|
24905
|
-
|
|
25100
|
+
addDefaultRenderToColumns as J,
|
|
25101
|
+
useEagleTable as K,
|
|
25102
|
+
useDownloadYAML as L,
|
|
24906
25103
|
ModalStyle as M,
|
|
24907
25104
|
NameColumnRenderer as N,
|
|
24908
|
-
|
|
25105
|
+
useEdit as O,
|
|
24909
25106
|
PlainTextNameColumnRenderer as P,
|
|
24910
|
-
|
|
25107
|
+
useGlobalStore as Q,
|
|
24911
25108
|
ReplicasColumnRenderer as R,
|
|
24912
25109
|
StateDisplayColumnRenderer as S,
|
|
24913
|
-
|
|
24914
|
-
|
|
24915
|
-
|
|
25110
|
+
useOpenForm as T,
|
|
25111
|
+
index as U,
|
|
25112
|
+
Breadcrumb as V,
|
|
24916
25113
|
WorkloadImageColumnRenderer as W,
|
|
24917
|
-
|
|
24918
|
-
|
|
24919
|
-
|
|
24920
|
-
|
|
25114
|
+
NameInputWidget as X,
|
|
25115
|
+
dnsSubDomainRules as Y,
|
|
25116
|
+
rfc1123LabelRules as Z,
|
|
25117
|
+
rfc1035LabelRules as _,
|
|
24921
25118
|
useSchema as a,
|
|
24922
|
-
|
|
24923
|
-
|
|
24924
|
-
|
|
24925
|
-
|
|
24926
|
-
|
|
24927
|
-
|
|
24928
|
-
|
|
24929
|
-
|
|
24930
|
-
|
|
24931
|
-
|
|
24932
|
-
|
|
24933
|
-
|
|
24934
|
-
|
|
24935
|
-
|
|
24936
|
-
|
|
24937
|
-
|
|
24938
|
-
|
|
24939
|
-
|
|
24940
|
-
|
|
24941
|
-
|
|
24942
|
-
|
|
24943
|
-
|
|
24944
|
-
|
|
24945
|
-
|
|
24946
|
-
|
|
24947
|
-
|
|
24948
|
-
|
|
24949
|
-
|
|
24950
|
-
|
|
24951
|
-
|
|
24952
|
-
|
|
24953
|
-
|
|
24954
|
-
|
|
24955
|
-
|
|
24956
|
-
|
|
24957
|
-
|
|
24958
|
-
|
|
24959
|
-
|
|
24960
|
-
|
|
24961
|
-
|
|
24962
|
-
|
|
24963
|
-
|
|
24964
|
-
|
|
24965
|
-
|
|
24966
|
-
|
|
24967
|
-
|
|
24968
|
-
|
|
24969
|
-
|
|
24970
|
-
|
|
24971
|
-
|
|
24972
|
-
|
|
24973
|
-
|
|
24974
|
-
|
|
24975
|
-
|
|
24976
|
-
|
|
24977
|
-
|
|
24978
|
-
|
|
24979
|
-
|
|
24980
|
-
|
|
24981
|
-
|
|
24982
|
-
|
|
24983
|
-
|
|
24984
|
-
|
|
24985
|
-
|
|
25119
|
+
SecretDataGroup as a$,
|
|
25120
|
+
namespaceRules as a0,
|
|
25121
|
+
KeyValueListWidget as a1,
|
|
25122
|
+
MetadataForm as a2,
|
|
25123
|
+
PageShow as a3,
|
|
25124
|
+
Time as a4,
|
|
25125
|
+
ConditionsTable as a5,
|
|
25126
|
+
PodContainersTable as a6,
|
|
25127
|
+
WorkloadDropdown as a7,
|
|
25128
|
+
ReplicasDropdown as a8,
|
|
25129
|
+
CreateButton as a9,
|
|
25130
|
+
SecretDataField as aA,
|
|
25131
|
+
StartTimeField as aB,
|
|
25132
|
+
ServiceTypeField as aC,
|
|
25133
|
+
ClusterIpField as aD,
|
|
25134
|
+
SessionAffinityField as aE,
|
|
25135
|
+
ServicePodsField as aF,
|
|
25136
|
+
IngressRulesTableTabField as aG,
|
|
25137
|
+
EventsTableTabField as aH,
|
|
25138
|
+
NamespaceField as aI,
|
|
25139
|
+
AgeField as aJ,
|
|
25140
|
+
LabelsField as aK,
|
|
25141
|
+
AnnotationsField as aL,
|
|
25142
|
+
ServiceInnerClusterAccessField as aM,
|
|
25143
|
+
ServiceOutClusterAccessField as aN,
|
|
25144
|
+
PodSelectorField as aO,
|
|
25145
|
+
PortsTableField as aP,
|
|
25146
|
+
DurationField as aQ,
|
|
25147
|
+
StorageClassProvisionerField as aR,
|
|
25148
|
+
StorageClassFsTypeField as aS,
|
|
25149
|
+
StorageClassPvField as aT,
|
|
25150
|
+
EventsTab as aU,
|
|
25151
|
+
PodLogTab as aV,
|
|
25152
|
+
BasicGroup as aW,
|
|
25153
|
+
PodsGroup as aX,
|
|
25154
|
+
PodContainersGroup as aY,
|
|
25155
|
+
ServicePodsGroup as aZ,
|
|
25156
|
+
ConditionsGroup as a_,
|
|
25157
|
+
ImageNames as aa,
|
|
25158
|
+
ResourceList as ab,
|
|
25159
|
+
ResourceShow as ac,
|
|
25160
|
+
ResourceForm as ad,
|
|
25161
|
+
ResourceCRUD as ae,
|
|
25162
|
+
WorkloadPodsTable as af,
|
|
25163
|
+
CronJobDropdown as ag,
|
|
25164
|
+
K8sDropdown as ah,
|
|
25165
|
+
ResourceUsageBar as ai,
|
|
25166
|
+
WorkloadReplicasForm as aj,
|
|
25167
|
+
WorkloadReplicas as ak,
|
|
25168
|
+
CronjobJobsTable as al,
|
|
25169
|
+
KeyValue as am,
|
|
25170
|
+
KeyValueAnnotation as an,
|
|
25171
|
+
KeyValueSecret as ao,
|
|
25172
|
+
Separator as ap,
|
|
25173
|
+
YamlEditorComponent as aq,
|
|
25174
|
+
DeleteButton as ar,
|
|
25175
|
+
Layout as as,
|
|
25176
|
+
AreaType as at,
|
|
25177
|
+
ImageField as au,
|
|
25178
|
+
ReplicaField as av,
|
|
25179
|
+
ConditionsField as aw,
|
|
25180
|
+
PodsField as ax,
|
|
25181
|
+
JobsField as ay,
|
|
25182
|
+
DataField as az,
|
|
24986
25183
|
useDeleteModal as b,
|
|
24987
|
-
|
|
24988
|
-
|
|
24989
|
-
|
|
24990
|
-
|
|
24991
|
-
|
|
24992
|
-
|
|
24993
|
-
|
|
24994
|
-
|
|
24995
|
-
|
|
24996
|
-
|
|
24997
|
-
|
|
24998
|
-
|
|
24999
|
-
|
|
25000
|
-
|
|
25001
|
-
|
|
25002
|
-
|
|
25003
|
-
|
|
25004
|
-
|
|
25005
|
-
|
|
25006
|
-
|
|
25007
|
-
|
|
25008
|
-
|
|
25009
|
-
|
|
25010
|
-
|
|
25011
|
-
|
|
25012
|
-
|
|
25013
|
-
|
|
25014
|
-
|
|
25015
|
-
|
|
25016
|
-
|
|
25017
|
-
|
|
25018
|
-
|
|
25019
|
-
|
|
25020
|
-
|
|
25021
|
-
|
|
25022
|
-
|
|
25023
|
-
|
|
25024
|
-
|
|
25025
|
-
|
|
25026
|
-
|
|
25027
|
-
|
|
25028
|
-
|
|
25029
|
-
|
|
25030
|
-
|
|
25031
|
-
|
|
25032
|
-
|
|
25033
|
-
|
|
25034
|
-
|
|
25035
|
-
|
|
25036
|
-
|
|
25037
|
-
|
|
25038
|
-
|
|
25039
|
-
|
|
25040
|
-
|
|
25041
|
-
|
|
25042
|
-
|
|
25043
|
-
|
|
25044
|
-
|
|
25045
|
-
|
|
25046
|
-
|
|
25047
|
-
|
|
25048
|
-
|
|
25049
|
-
|
|
25050
|
-
|
|
25184
|
+
AccessControlAuth as b$,
|
|
25185
|
+
JobsGroup as b0,
|
|
25186
|
+
IngressRulesGroup as b1,
|
|
25187
|
+
PodSelectorGroup as b2,
|
|
25188
|
+
PortsGroup as b3,
|
|
25189
|
+
DataGroup as b4,
|
|
25190
|
+
NetworkPolicyIngressRulesGroup as b5,
|
|
25191
|
+
NetworkPolicyEgressRulesGroup as b6,
|
|
25192
|
+
StorageClassPvGroup as b7,
|
|
25193
|
+
ShowGroupComponent as b8,
|
|
25194
|
+
ShowContent as b9,
|
|
25195
|
+
ResourceSelect as bA,
|
|
25196
|
+
BASE_INIT_VALUE as bB,
|
|
25197
|
+
DEPLOYMENT_INIT_VALUE as bC,
|
|
25198
|
+
CRONJOB_INIT_VALUE as bD,
|
|
25199
|
+
DAEMONSET_INIT_VALUE as bE,
|
|
25200
|
+
JOB_INIT_VALUE as bF,
|
|
25201
|
+
STATEFULSET_INIT_VALUE as bG,
|
|
25202
|
+
POD_INIT_VALUE as bH,
|
|
25203
|
+
SERVICE_CLUSTER_IP_INIT_VALUE as bI,
|
|
25204
|
+
SERVICE_NODE_PORT_INIT_VALUE as bJ,
|
|
25205
|
+
SERVICE_LOAD_BALANCER_INIT_VALUE as bK,
|
|
25206
|
+
SERVICE_EXTERNAL_NAME_INIT_VALUE as bL,
|
|
25207
|
+
SERVICE_HEADLESS_INIT_VALUE as bM,
|
|
25208
|
+
INGRESS_INIT_VALUE as bN,
|
|
25209
|
+
NETWORK_POLICY_INIT_VALUE as bO,
|
|
25210
|
+
CONFIG_MAP_INIT_VALUE as bP,
|
|
25211
|
+
SERVER_INSTANCE_INIT_VALUE as bQ,
|
|
25212
|
+
TIMESTAMP_LABEL as bR,
|
|
25213
|
+
SECRET_OPAQUE_INIT_VALUE as bS,
|
|
25214
|
+
SECRET_IMAGE_REPO_INIT_VALUE as bT,
|
|
25215
|
+
SECRET_BASIC_AUTH_INIT_VALUE as bU,
|
|
25216
|
+
SECRET_SSH_AUTH_INIT_VALUE as bV,
|
|
25217
|
+
SECRET_TLS_INIT_VALUE as bW,
|
|
25218
|
+
SECRET_CUSTOM_INIT_VALUE as bX,
|
|
25219
|
+
NODE_INIT_VALUE as bY,
|
|
25220
|
+
STORAGE_CLASS_INIT_VALUE as bZ,
|
|
25221
|
+
WorkloadState as b_,
|
|
25222
|
+
DeleteManyButton as ba,
|
|
25223
|
+
ListPage as bb,
|
|
25224
|
+
StateTagStyle as bc,
|
|
25225
|
+
StateTag as bd,
|
|
25226
|
+
DrawerShow as be,
|
|
25227
|
+
Menu as bf,
|
|
25228
|
+
EditButton as bg,
|
|
25229
|
+
ReferenceLink as bh,
|
|
25230
|
+
ResourceLink as bi,
|
|
25231
|
+
NS_STORE_KEY as bj,
|
|
25232
|
+
ALL_NS as bk,
|
|
25233
|
+
useNamespacesFilter as bl,
|
|
25234
|
+
NamespacesFilter as bm,
|
|
25235
|
+
FormModal as bn,
|
|
25236
|
+
RefineFormContent as bo,
|
|
25237
|
+
RefineFormPage as bp,
|
|
25238
|
+
SchemaStrategy as bq,
|
|
25239
|
+
YamlForm as br,
|
|
25240
|
+
useRefineForm as bs,
|
|
25241
|
+
ServiceInClusterAccessComponent as bt,
|
|
25242
|
+
ServiceOutClusterAccessComponent as bu,
|
|
25243
|
+
Tags as bv,
|
|
25244
|
+
TextTags as bw,
|
|
25245
|
+
PodLog as bx,
|
|
25246
|
+
NetworkPolicyRulesViewer as by,
|
|
25247
|
+
Tabs as bz,
|
|
25051
25248
|
NameSpaceColumnRenderer as c,
|
|
25052
|
-
|
|
25053
|
-
|
|
25054
|
-
|
|
25055
|
-
|
|
25056
|
-
|
|
25057
|
-
|
|
25058
|
-
|
|
25249
|
+
Dovetail as c0,
|
|
25250
|
+
RESOURCE_GROUP as c1,
|
|
25251
|
+
FormType as c2,
|
|
25252
|
+
ComponentContext as c3,
|
|
25253
|
+
GlobalStoreContext as c4,
|
|
25254
|
+
ConfigsContext as c5,
|
|
25255
|
+
IngressModel as c6,
|
|
25256
|
+
NetworkPolicyModel as c7,
|
|
25257
|
+
JobModel as c8,
|
|
25258
|
+
WorkloadModel as c9,
|
|
25259
|
+
WorkloadBaseModel as ca,
|
|
25260
|
+
PodModel as cb,
|
|
25261
|
+
PodMetricsModel as cc,
|
|
25262
|
+
ResourceModel as cd,
|
|
25263
|
+
CronJobModel as ce,
|
|
25264
|
+
EventModel as cf,
|
|
25265
|
+
DeploymentModel as cg,
|
|
25266
|
+
DaemonSetModel as ch,
|
|
25267
|
+
StatefulSetModel as ci,
|
|
25268
|
+
ServiceTypeEnum as cj,
|
|
25269
|
+
ServiceModel as ck,
|
|
25270
|
+
NodeRole as cl,
|
|
25271
|
+
NodeModel as cm,
|
|
25272
|
+
StorageClassModel as cn,
|
|
25273
|
+
PersistentVolumeModel as co,
|
|
25274
|
+
PersistentVolumeClaimModel as cp,
|
|
25275
|
+
ProviderPlugins as cq,
|
|
25059
25276
|
dovetailRefineI18n as d,
|
|
25060
25277
|
WorkloadRestartsColumnRenderer as e,
|
|
25061
25278
|
NodeNameColumnRenderer as f,
|
|
@@ -25076,7 +25293,7 @@ export {
|
|
|
25076
25293
|
useNamespaceRefineFilter as u,
|
|
25077
25294
|
DataKeysColumnRenderer as v,
|
|
25078
25295
|
PortMappingColumnRenderer as w,
|
|
25079
|
-
|
|
25080
|
-
|
|
25081
|
-
|
|
25296
|
+
ProvisionerColumnRenderer as x,
|
|
25297
|
+
PVCapacityColumnRenderer as y,
|
|
25298
|
+
PVStorageClassColumnRenderer as z
|
|
25082
25299
|
};
|