@dovetail-v2/refine 0.0.63-alpha.1 → 0.0.63-hotfix.1
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-3ed048e6.js → MonacoYamlDiffEditor-fa18bdbd.js} +1 -1
- package/dist/{index-d67edbe3.js → index-7d8472f4.js} +199 -447
- package/dist/refine.js +159 -179
- package/dist/refine.umd.cjs +42 -290
- package/dist/style.css +3 -3
- package/lib/src/Dovetail.d.ts +1 -0
- package/lib/src/components/DropdownMenuItems/EditAnnotationDropdownMenuItem.d.ts +10 -0
- package/lib/src/components/DropdownMenuItems/EditLabelDropdownMenuItem.d.ts +10 -0
- package/lib/src/components/DropdownMenuItems/index.d.ts +2 -0
- package/lib/src/components/EditLabelForm/EditLabelForm.d.ts +11 -0
- package/lib/src/components/EditLabelForm/index.d.ts +0 -0
- package/lib/src/components/EditMetadataForm/EditAnnotationForm.d.ts +10 -0
- package/lib/src/components/EditMetadataForm/EditLabelForm.d.ts +10 -0
- package/lib/src/components/EditMetadataForm/index.d.ts +2 -0
- package/lib/src/components/Form/type.d.ts +3 -4
- package/lib/src/components/K8sDropdown/index.d.ts +1 -1
- package/lib/src/components/NodeTaintsModal/NodeTaintsModal.d.ts +12 -0
- package/lib/src/components/NodeTaintsModal/index.d.ts +0 -0
- package/lib/src/components/PodDropdown/index.d.ts +9 -0
- package/lib/src/components/PodShellModal/PodShell.d.ts +18 -0
- package/lib/src/components/PodShellModal/index.d.ts +10 -0
- package/lib/src/components/ResourceFiledDisplays.d.ts +7 -0
- package/lib/src/components/ResourceLink/index.d.ts +1 -1
- package/lib/src/components/Shell/ShellToolbar.d.ts +16 -0
- package/lib/src/components/Shell/index.d.ts +75 -0
- package/lib/src/components/ShowContent/fields.d.ts +1 -5
- package/lib/src/components/ShowContent/groups.d.ts +1 -2
- package/lib/src/components/ValueDisplay/index.d.ts +1 -1
- package/lib/src/components/index.d.ts +0 -1
- package/lib/src/constants/k8s.d.ts +1 -19
- package/lib/src/contexts/constants.d.ts +6 -0
- package/lib/src/hooks/useEagleTable/columns.d.ts +1 -8
- package/lib/src/i18n.d.ts +1 -4
- package/lib/src/locales/zh-CN/index.d.ts +1 -4
- package/lib/src/models/index.d.ts +0 -4
- package/lib/src/models/node-model.d.ts +0 -1
- package/lib/src/models/persistent-volume-claim.d.ts +0 -1
- package/lib/src/models/persistent-volume.d.ts +0 -1
- package/lib/src/models/storage-class.d.ts +0 -1
- package/lib/src/models/workload-base-model.d.ts +2 -2
- package/lib/src/pages/persistentvolumeclaims/index.d.ts +4 -0
- package/lib/src/pages/persistentvolumes/index.d.ts +3 -18
- package/lib/src/styles/modal.d.ts +1 -0
- package/lib/src/types/resource.d.ts +1 -3
- package/lib/src/utils/index.d.ts +1 -0
- package/lib/src/utils/openapi.d.ts +2 -1
- package/lib/src/utils/shell.d.ts +16 -0
- package/package.json +1 -1
- package/lib/src/App.js +0 -91
- package/lib/src/Dovetail.js +0 -45
- package/lib/src/components/Breadcrumb/index.js +0 -20
- package/lib/src/components/ConditionsTable/ConditionsTable.js +0 -56
- package/lib/src/components/ConditionsTable/index.js +0 -1
- package/lib/src/components/CreateButton/index.js +0 -10
- package/lib/src/components/CronJobDropdown/index.js +0 -26
- package/lib/src/components/CronjobJobsTable/index.js +0 -49
- package/lib/src/components/DeleteButton/index.js +0 -13
- package/lib/src/components/DeleteManyButton/index.js +0 -16
- package/lib/src/components/DrawerShow/DrawerShow.js +0 -13
- package/lib/src/components/DrawerShow/index.js +0 -1
- package/lib/src/components/EditButton/index.js +0 -13
- package/lib/src/components/EditField/index.js +0 -47
- package/lib/src/components/ErrorContent/index.js +0 -36
- package/lib/src/components/EventsTable/EventsTable.js +0 -59
- package/lib/src/components/EventsTable/index.js +0 -1
- package/lib/src/components/Form/KeyValueListWidget.d.ts +0 -6
- package/lib/src/components/Form/KeyValueListWidget.js +0 -56
- package/lib/src/components/Form/MetadataForm.d.ts +0 -2
- package/lib/src/components/Form/MetadataForm.js +0 -9
- package/lib/src/components/Form/NameInputWidget.d.ts +0 -51
- package/lib/src/components/Form/NameInputWidget.js +0 -50
- package/lib/src/components/Form/NamespaceSelectWidget.d.ts +0 -9
- package/lib/src/components/Form/NamespaceSelectWidget.js +0 -21
- package/lib/src/components/Form/index.js +0 -4
- package/lib/src/components/Form/widget.d.ts +0 -5
- package/lib/src/components/Form/widget.js +0 -1
- package/lib/src/components/FormErrorAlert/index.js +0 -8
- package/lib/src/components/FormLayout/index.js +0 -21
- package/lib/src/components/FormModal/index.d.ts +0 -10
- package/lib/src/components/FormModal/index.js +0 -51
- package/lib/src/components/ImageNames/index.js +0 -14
- package/lib/src/components/IngressRulesComponent/index.js +0 -11
- package/lib/src/components/IngressRulesTable/IngressRulesTable.js +0 -51
- package/lib/src/components/IngressRulesTable/index.js +0 -1
- package/lib/src/components/K8sDropdown/index.js +0 -31
- package/lib/src/components/KeyValue/KeyValue.js +0 -27
- package/lib/src/components/KeyValue/index.js +0 -1
- package/lib/src/components/KeyValueData/index.d.ts +0 -6
- package/lib/src/components/KeyValueData/index.js +0 -50
- package/lib/src/components/Layout/index.js +0 -39
- package/lib/src/components/ListPage/index.js +0 -25
- package/lib/src/components/Menu/index.js +0 -36
- package/lib/src/components/NamespacesFilter/index.js +0 -34
- package/lib/src/components/NetworkPolicyRulesTable/NetworkPolicyRulesTable.d.ts +0 -7
- package/lib/src/components/NetworkPolicyRulesTable/NetworkPolicyRulesTable.js +0 -77
- package/lib/src/components/NetworkPolicyRulesTable/index.d.ts +0 -1
- package/lib/src/components/NetworkPolicyRulesTable/index.js +0 -1
- package/lib/src/components/PageShow/PageShow.js +0 -11
- package/lib/src/components/PageShow/index.js +0 -1
- package/lib/src/components/PodContainersTable/PodContainersTable.js +0 -78
- package/lib/src/components/PodContainersTable/index.js +0 -1
- package/lib/src/components/PodLog/index.js +0 -136
- package/lib/src/components/ReferenceLink/index.js +0 -17
- package/lib/src/components/RefineForm/RefineFormContent.d.ts +0 -10
- package/lib/src/components/RefineForm/RefineFormModal.d.ts +0 -8
- package/lib/src/components/RefineForm/RefineFormPage.d.ts +0 -7
- package/lib/src/components/RefineForm/index.d.ts +0 -3
- package/lib/src/components/RefineForm/type.d.ts +0 -20
- package/lib/src/components/RefineForm/useRefineForm.d.ts +0 -10
- package/lib/src/components/ResourceCRUD/ResourceCRUD.js +0 -15
- package/lib/src/components/ResourceCRUD/create/index.js +0 -13
- package/lib/src/components/ResourceCRUD/index.js +0 -4
- package/lib/src/components/ResourceCRUD/list/index.js +0 -19
- package/lib/src/components/ResourceCRUD/show/index.js +0 -6
- package/lib/src/components/ResourceLink/index.js +0 -21
- package/lib/src/components/ResourceUsageBar/index.js +0 -81
- package/lib/src/components/Separator/index.js +0 -11
- package/lib/src/components/ShowContent/ShowContent.js +0 -157
- package/lib/src/components/ShowContent/fields.js +0 -157
- package/lib/src/components/ShowContent/index.js +0 -2
- package/lib/src/components/StateTag/StateTag.js +0 -22
- package/lib/src/components/StateTag/index.js +0 -1
- package/lib/src/components/Table/ErrorContent.d.ts +0 -10
- package/lib/src/components/Table/ErrorContent.js +0 -36
- package/lib/src/components/Table/TableToolBar.js +0 -14
- package/lib/src/components/Table/TableWidgets.js +0 -28
- package/lib/src/components/Table/index.js +0 -69
- package/lib/src/components/Tags/index.js +0 -22
- package/lib/src/components/Time/index.js +0 -14
- package/lib/src/components/WorkloadDropdown/index.js +0 -24
- package/lib/src/components/WorkloadPodsTable/WorkloadPodsTable.js +0 -39
- package/lib/src/components/WorkloadPodsTable/index.js +0 -1
- package/lib/src/components/WorkloadReplicas/index.js +0 -50
- package/lib/src/components/YamlEditor/MonacoYamlDiffEditor.js +0 -34
- package/lib/src/components/YamlEditor/MonacoYamlEditor.js +0 -149
- package/lib/src/components/YamlEditor/YamlEditorComponent.js +0 -90
- package/lib/src/components/YamlEditor/index.js +0 -1
- package/lib/src/components/YamlEditor/style.js +0 -102
- package/lib/src/components/YamlEditor/yaml.worker.js +0 -1
- package/lib/src/components/YamlForm/index.d.ts +0 -21
- package/lib/src/components/YamlForm/index.js +0 -61
- package/lib/src/components/index.js +0 -38
- package/lib/src/constants/index.js +0 -2
- package/lib/src/constants/k8s.js +0 -203
- package/lib/src/constants/state.js +0 -15
- package/lib/src/contexts/component.js +0 -3
- package/lib/src/contexts/configs.js +0 -3
- package/lib/src/contexts/global-store.js +0 -3
- package/lib/src/contexts/index.js +0 -3
- package/lib/src/hooks/index.js +0 -7
- package/lib/src/hooks/useDeleteModal/index.js +0 -1
- package/lib/src/hooks/useDeleteModal/useDeleteManyModal.js +0 -31
- package/lib/src/hooks/useDeleteModal/useDeleteModal.js +0 -38
- package/lib/src/hooks/useDownloadYAML.js +0 -10
- package/lib/src/hooks/useEagleForm.d.ts +0 -47
- package/lib/src/hooks/useEagleForm.js +0 -177
- package/lib/src/hooks/useEagleTable/columns.js +0 -246
- package/lib/src/hooks/useEagleTable/index.js +0 -2
- package/lib/src/hooks/useEagleTable/useEagleTable.js +0 -63
- package/lib/src/hooks/useEdit.js +0 -19
- package/lib/src/hooks/useGlobalStore.js +0 -5
- package/lib/src/hooks/useK8sYamlEditor.js +0 -37
- package/lib/src/hooks/useOpenForm.js +0 -43
- package/lib/src/hooks/useSchema.js +0 -37
- package/lib/src/hooks/useSubmitForm.js +0 -42
- package/lib/src/i18n.js +0 -19
- package/lib/src/index.js +0 -13
- package/lib/src/locales/en-US/dovetail.json +0 -18
- package/lib/src/locales/en-US/index.js +0 -4
- package/lib/src/locales/index.js +0 -6
- package/lib/src/locales/zh-CN/dovetail.json +0 -91
- package/lib/src/locales/zh-CN/index.js +0 -4
- package/lib/src/main.js +0 -12
- package/lib/src/models/cronjob-model.js +0 -32
- package/lib/src/models/daemonset-model.js +0 -17
- package/lib/src/models/deployment-model.js +0 -17
- package/lib/src/models/event-model.js +0 -11
- package/lib/src/models/index.js +0 -14
- package/lib/src/models/ingress-model.js +0 -24
- package/lib/src/models/job-model.js +0 -56
- package/lib/src/models/network-policy-model.js +0 -10
- package/lib/src/models/pod-metrics-model.js +0 -34
- package/lib/src/models/pod-model.js +0 -78
- package/lib/src/models/resource-model.js +0 -34
- package/lib/src/models/server-instance-model.d.ts +0 -10
- package/lib/src/models/service-model.js +0 -17
- package/lib/src/models/statefulset-model.js +0 -17
- package/lib/src/models/types/index.js +0 -1
- package/lib/src/models/types/metric.js +0 -1
- package/lib/src/models/workload-base-model.js +0 -22
- package/lib/src/models/workload-model.js +0 -51
- package/lib/src/pages/configmaps/index.js +0 -15
- package/lib/src/pages/cronjobs/create/index.js +0 -6
- package/lib/src/pages/cronjobs/index.js +0 -3
- package/lib/src/pages/cronjobs/list/index.js +0 -42
- package/lib/src/pages/cronjobs/show/index.js +0 -16
- package/lib/src/pages/daemonsets/create/index.js +0 -6
- package/lib/src/pages/daemonsets/index.js +0 -3
- package/lib/src/pages/daemonsets/list/index.js +0 -32
- package/lib/src/pages/daemonsets/show/index.js +0 -16
- package/lib/src/pages/deployments/create/index.d.ts +0 -3
- package/lib/src/pages/deployments/create/index.js +0 -7
- package/lib/src/pages/deployments/index.js +0 -3
- package/lib/src/pages/deployments/list/index.js +0 -26
- package/lib/src/pages/deployments/show/index.js +0 -16
- package/lib/src/pages/ingresses/index.js +0 -26
- package/lib/src/pages/jobs/index.js +0 -34
- package/lib/src/pages/networkPolicies/index.js +0 -67
- package/lib/src/pages/pods/create/index.js +0 -6
- package/lib/src/pages/pods/index.js +0 -3
- package/lib/src/pages/pods/list/index.js +0 -81
- package/lib/src/pages/pods/show/index.js +0 -54
- package/lib/src/pages/secrets/index.js +0 -15
- package/lib/src/pages/services/index.js +0 -26
- package/lib/src/pages/statefulsets/create/index.d.ts +0 -3
- package/lib/src/pages/statefulsets/create/index.js +0 -6
- package/lib/src/pages/statefulsets/index.js +0 -3
- package/lib/src/pages/statefulsets/list/index.d.ts +0 -3
- package/lib/src/pages/statefulsets/list/index.js +0 -26
- package/lib/src/pages/statefulsets/show/index.d.ts +0 -3
- package/lib/src/pages/statefulsets/show/index.js +0 -16
- package/lib/src/plugins/index.js +0 -3
- package/lib/src/plugins/model-plugin.js +0 -46
- package/lib/src/plugins/relation-plugin.js +0 -81
- package/lib/src/plugins/type.js +0 -1
- package/lib/src/providers/index.js +0 -1
- package/lib/src/providers/router-provider/index.js +0 -100
- package/lib/src/types/index.js +0 -1
- package/lib/src/types/resource.js +0 -12
- package/lib/src/utils/addId.js +0 -8
- package/lib/src/utils/download.js +0 -9
- package/lib/src/utils/error.js +0 -53
- package/lib/src/utils/form.js +0 -9
- package/lib/src/utils/k8s.js +0 -6
- package/lib/src/utils/labels.js +0 -15
- package/lib/src/utils/match-selector.js +0 -12
- package/lib/src/utils/openapi.js +0 -33
- package/lib/src/utils/schema.js +0 -117
- package/lib/src/utils/selector.js +0 -12
- package/lib/src/utils/string.js +0 -6
- package/lib/src/utils/time.js +0 -46
- package/lib/src/utils/unit.js +0 -69
- package/lib/src/utils/yaml.js +0 -44
- package/lib/vite.config.js +0 -60
|
@@ -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, useUIKit, kitContext, OverflowTooltip, Tooltip, StatusCapsule, usePushModal, Icon as Icon$1, Link as Link$1, Button, usePopModal, Loading, Divider, Fields, Space, Form, Modal,
|
|
13
|
+
import { Typo, Tag, useUIKit, kitContext, OverflowTooltip, Tooltip, StatusCapsule, usePushModal, Icon as Icon$1, Link as Link$1, Button, usePopModal, Loading, Divider, Fields, Space, Form, Modal, 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";
|
|
@@ -1159,7 +1159,7 @@ const path_type$1 = "Path type";
|
|
|
1159
1159
|
const only_support_one_yaml$1 = "Only one YAML configuration is supported at a time.";
|
|
1160
1160
|
const not_support$1 = "Not supported";
|
|
1161
1161
|
const stopped$1 = "Stopped";
|
|
1162
|
-
const any_node_ip = "Any node IP";
|
|
1162
|
+
const any_node_ip$1 = "Any node IP";
|
|
1163
1163
|
const dovetail$1 = {
|
|
1164
1164
|
copy: copy$1,
|
|
1165
1165
|
reset_arguments: reset_arguments$1,
|
|
@@ -1315,7 +1315,7 @@ const dovetail$1 = {
|
|
|
1315
1315
|
only_support_one_yaml: only_support_one_yaml$1,
|
|
1316
1316
|
not_support: not_support$1,
|
|
1317
1317
|
stopped: stopped$1,
|
|
1318
|
-
any_node_ip
|
|
1318
|
+
any_node_ip: any_node_ip$1
|
|
1319
1319
|
};
|
|
1320
1320
|
const EN = {
|
|
1321
1321
|
dovetail: dovetail$1
|
|
@@ -1472,10 +1472,7 @@ const out_external_name_desc = "ExternalName 展示 <strong>external-ip</strong>
|
|
|
1472
1472
|
const only_support_one_yaml = "一次仅支持输入一个 YAML 配置。";
|
|
1473
1473
|
const not_support = "不支持";
|
|
1474
1474
|
const stopped = "已停止";
|
|
1475
|
-
const
|
|
1476
|
-
const persistent_volumn = "持久卷";
|
|
1477
|
-
const provisioner = "制备器";
|
|
1478
|
-
const file_system = "文件系统";
|
|
1475
|
+
const any_node_ip = "任意节点 IP";
|
|
1479
1476
|
const dovetail = {
|
|
1480
1477
|
copy,
|
|
1481
1478
|
reset_arguments,
|
|
@@ -1632,10 +1629,7 @@ const dovetail = {
|
|
|
1632
1629
|
only_support_one_yaml,
|
|
1633
1630
|
not_support,
|
|
1634
1631
|
stopped,
|
|
1635
|
-
|
|
1636
|
-
persistent_volumn,
|
|
1637
|
-
provisioner,
|
|
1638
|
-
file_system
|
|
1632
|
+
any_node_ip
|
|
1639
1633
|
};
|
|
1640
1634
|
const ZH = {
|
|
1641
1635
|
dovetail
|
|
@@ -8014,15 +8008,16 @@ function resolveRef(schema, schemas, options) {
|
|
|
8014
8008
|
return schema;
|
|
8015
8009
|
}
|
|
8016
8010
|
class K8sOpenAPI {
|
|
8017
|
-
constructor(resourceBasePath) {
|
|
8011
|
+
constructor(resourceBasePath, pathPrefix) {
|
|
8018
8012
|
__publicField(this, "response", null);
|
|
8019
8013
|
__publicField(this, "apiVersion");
|
|
8020
8014
|
this.resourceBasePath = resourceBasePath;
|
|
8015
|
+
this.pathPrefix = pathPrefix;
|
|
8021
8016
|
this.apiVersion = getApiVersion(resourceBasePath);
|
|
8022
8017
|
}
|
|
8023
8018
|
async fetch() {
|
|
8024
8019
|
const response = await fetch(
|
|
8025
|
-
|
|
8020
|
+
`${this.pathPrefix}${this.resourceBasePath}`
|
|
8026
8021
|
);
|
|
8027
8022
|
return response.json();
|
|
8028
8023
|
}
|
|
@@ -8054,6 +8049,9 @@ class K8sOpenAPI {
|
|
|
8054
8049
|
return schema;
|
|
8055
8050
|
}
|
|
8056
8051
|
}
|
|
8052
|
+
const ConstantsContext = createContext({
|
|
8053
|
+
schemaUrlPrefix: ""
|
|
8054
|
+
});
|
|
8057
8055
|
function useSchema(options) {
|
|
8058
8056
|
var _a;
|
|
8059
8057
|
const [schema, setSchema] = useState(null);
|
|
@@ -8061,12 +8059,13 @@ function useSchema(options) {
|
|
|
8061
8059
|
const [error, setError] = useState(null);
|
|
8062
8060
|
const useResourceResult = useResource();
|
|
8063
8061
|
const resource = (options == null ? void 0 : options.resource) || useResourceResult.resource;
|
|
8062
|
+
const { schemaUrlPrefix } = useContext(ConstantsContext);
|
|
8064
8063
|
const openapi = useMemo(
|
|
8065
8064
|
() => {
|
|
8066
8065
|
var _a2;
|
|
8067
|
-
return new K8sOpenAPI((_a2 = resource == null ? void 0 : resource.meta) == null ? void 0 : _a2.resourceBasePath);
|
|
8066
|
+
return new K8sOpenAPI((_a2 = resource == null ? void 0 : resource.meta) == null ? void 0 : _a2.resourceBasePath, schemaUrlPrefix);
|
|
8068
8067
|
},
|
|
8069
|
-
[(_a = resource == null ? void 0 : resource.meta) == null ? void 0 : _a.resourceBasePath]
|
|
8068
|
+
[(_a = resource == null ? void 0 : resource.meta) == null ? void 0 : _a.resourceBasePath, schemaUrlPrefix]
|
|
8070
8069
|
);
|
|
8071
8070
|
const fetchSchema = useCallback(async () => {
|
|
8072
8071
|
var _a2;
|
|
@@ -8244,7 +8243,6 @@ function ValueDisplay(props) {
|
|
|
8244
8243
|
}
|
|
8245
8244
|
const index = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
8246
8245
|
__proto__: null,
|
|
8247
|
-
ValueDisplay,
|
|
8248
8246
|
default: ValueDisplay
|
|
8249
8247
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
8250
8248
|
function getSecondsDiff(startDate, endDate) {
|
|
@@ -9488,7 +9486,7 @@ const SERVER_INSTANCE_INIT_VALUE = {
|
|
|
9488
9486
|
}
|
|
9489
9487
|
}
|
|
9490
9488
|
};
|
|
9491
|
-
const
|
|
9489
|
+
const REDEPLOY_TIMESTAMP_KEY = "kubectl.kubernetes.io/restartedAt";
|
|
9492
9490
|
const SECRET_OPAQUE_INIT_VALUE = {
|
|
9493
9491
|
"apiVersion": "v1",
|
|
9494
9492
|
"kind": "Secret",
|
|
@@ -9562,24 +9560,6 @@ const SECRET_CUSTOM_INIT_VALUE = {
|
|
|
9562
9560
|
"type": "",
|
|
9563
9561
|
"data": {}
|
|
9564
9562
|
};
|
|
9565
|
-
const NODE_INIT_VALUE = {
|
|
9566
|
-
"apiVersion": "v1",
|
|
9567
|
-
"kind": "Node",
|
|
9568
|
-
"metadata": {
|
|
9569
|
-
"name": "example",
|
|
9570
|
-
"namespace": "default"
|
|
9571
|
-
},
|
|
9572
|
-
"spec": {}
|
|
9573
|
-
};
|
|
9574
|
-
const STORAGE_CLASS_INIT_VALUE = {
|
|
9575
|
-
"apiVersion": "storage.k8s.io/v1",
|
|
9576
|
-
"kind": "StorageClass",
|
|
9577
|
-
"metadata": {
|
|
9578
|
-
"name": "example",
|
|
9579
|
-
"namespace": "default"
|
|
9580
|
-
},
|
|
9581
|
-
"spec": {}
|
|
9582
|
-
};
|
|
9583
9563
|
var WorkloadState = /* @__PURE__ */ ((WorkloadState2) => {
|
|
9584
9564
|
WorkloadState2["Terminated"] = "terminated";
|
|
9585
9565
|
WorkloadState2["UPDATING"] = "updating";
|
|
@@ -9740,8 +9720,10 @@ class WorkloadModel extends WorkloadBaseModel {
|
|
|
9740
9720
|
const annotations = lodashExports.get(newOne, path2, {});
|
|
9741
9721
|
lodashExports.set(newOne, path2, {
|
|
9742
9722
|
...annotations,
|
|
9743
|
-
[
|
|
9723
|
+
[REDEPLOY_TIMESTAMP_KEY]: (/* @__PURE__ */ new Date()).toISOString().replace(/\.\d+Z$/, "Z")
|
|
9744
9724
|
});
|
|
9725
|
+
console.log("annotations", annotations);
|
|
9726
|
+
console.log("newOne", newOne);
|
|
9745
9727
|
return newOne;
|
|
9746
9728
|
}
|
|
9747
9729
|
scale(value2) {
|
|
@@ -10065,69 +10047,6 @@ class ServiceModel extends ResourceModel {
|
|
|
10065
10047
|
});
|
|
10066
10048
|
}
|
|
10067
10049
|
}
|
|
10068
|
-
var NodeRole = /* @__PURE__ */ ((NodeRole2) => {
|
|
10069
|
-
NodeRole2["ControlPlane"] = "Control Plane";
|
|
10070
|
-
NodeRole2["Worker"] = "Worker";
|
|
10071
|
-
return NodeRole2;
|
|
10072
|
-
})(NodeRole || {});
|
|
10073
|
-
class NodeModel extends WorkloadBaseModel {
|
|
10074
|
-
constructor(_rawYaml, _globalStore) {
|
|
10075
|
-
super(_rawYaml, _globalStore);
|
|
10076
|
-
this._rawYaml = _rawYaml;
|
|
10077
|
-
this._globalStore = _globalStore;
|
|
10078
|
-
}
|
|
10079
|
-
get role() {
|
|
10080
|
-
return "node-role.kubernetes.io/control-plane" in (this.metadata.labels || {}) ? "Control Plane" : "Worker";
|
|
10081
|
-
}
|
|
10082
|
-
get ip() {
|
|
10083
|
-
var _a, _b;
|
|
10084
|
-
return (_b = (_a = this._rawYaml.status.addresses) == null ? void 0 : _a.find((add) => add.type === "InternalIP")) == null ? void 0 : _b.address;
|
|
10085
|
-
}
|
|
10086
|
-
get nodeGroupName() {
|
|
10087
|
-
var _a;
|
|
10088
|
-
return (_a = this.metadata.labels) == null ? void 0 : _a["cape.infrastructure.cluster.x-k8s.io/node-group"];
|
|
10089
|
-
}
|
|
10090
|
-
get isControlPlane() {
|
|
10091
|
-
var _a;
|
|
10092
|
-
if (!((_a = this == null ? void 0 : this.metadata) == null ? void 0 : _a.labels))
|
|
10093
|
-
return false;
|
|
10094
|
-
return "node-role.kubernetes.io/control-plane" in this.metadata.labels;
|
|
10095
|
-
}
|
|
10096
|
-
}
|
|
10097
|
-
class StorageClassModel extends ResourceModel {
|
|
10098
|
-
constructor(_rawYaml, _globalStore) {
|
|
10099
|
-
super(_rawYaml, _globalStore);
|
|
10100
|
-
__publicField(this, "pvs", []);
|
|
10101
|
-
this._rawYaml = _rawYaml;
|
|
10102
|
-
this._globalStore = _globalStore;
|
|
10103
|
-
}
|
|
10104
|
-
async init() {
|
|
10105
|
-
const pvs = await this._globalStore.get("persistentvolumes", {
|
|
10106
|
-
resourceBasePath: "/api/v1",
|
|
10107
|
-
kind: "PersistentVolume"
|
|
10108
|
-
});
|
|
10109
|
-
this.pvs = pvs.items.filter(
|
|
10110
|
-
(pv) => {
|
|
10111
|
-
var _a;
|
|
10112
|
-
return ((_a = pv.spec) == null ? void 0 : _a.storageClassName) === this.metadata.name;
|
|
10113
|
-
}
|
|
10114
|
-
);
|
|
10115
|
-
}
|
|
10116
|
-
}
|
|
10117
|
-
class PersistentVolumeModel extends ResourceModel {
|
|
10118
|
-
constructor(_rawYaml, _globalStore) {
|
|
10119
|
-
super(_rawYaml, _globalStore);
|
|
10120
|
-
this._rawYaml = _rawYaml;
|
|
10121
|
-
this._globalStore = _globalStore;
|
|
10122
|
-
}
|
|
10123
|
-
}
|
|
10124
|
-
class PersistentVolumeClaimModel extends ResourceModel {
|
|
10125
|
-
constructor(_rawYaml, _globalStore) {
|
|
10126
|
-
super(_rawYaml, _globalStore);
|
|
10127
|
-
this._rawYaml = _rawYaml;
|
|
10128
|
-
this._globalStore = _globalStore;
|
|
10129
|
-
}
|
|
10130
|
-
}
|
|
10131
10050
|
const index_1lzkrja = "";
|
|
10132
10051
|
const ServiceInClusterAccessComponent = ({
|
|
10133
10052
|
service
|
|
@@ -10524,8 +10443,6 @@ var RESOURCE_GROUP = /* @__PURE__ */ ((RESOURCE_GROUP2) => {
|
|
|
10524
10443
|
RESOURCE_GROUP2["CLUSTER"] = "CLUSTER";
|
|
10525
10444
|
RESOURCE_GROUP2["SERVICE"] = "SERVICE";
|
|
10526
10445
|
RESOURCE_GROUP2["SERVICE_AND_NETWORK"] = "SERVICE_AND_NETWORK";
|
|
10527
|
-
RESOURCE_GROUP2["CONFIG"] = "CONFIG";
|
|
10528
|
-
RESOURCE_GROUP2["NODE_MANAGEMENT"] = "NODE_MANAGEMENT";
|
|
10529
10446
|
return RESOURCE_GROUP2;
|
|
10530
10447
|
})(RESOURCE_GROUP || {});
|
|
10531
10448
|
var FormType = /* @__PURE__ */ ((FormType2) => {
|
|
@@ -11042,7 +10959,7 @@ const index_cbhkdt = "";
|
|
|
11042
10959
|
const LinkStyle = "l1vnw9x0";
|
|
11043
10960
|
const ResourceLink = (props) => {
|
|
11044
10961
|
const {
|
|
11045
|
-
|
|
10962
|
+
name: name2,
|
|
11046
10963
|
namespace: namespace2,
|
|
11047
10964
|
resourceId
|
|
11048
10965
|
} = props;
|
|
@@ -11051,9 +10968,9 @@ const ResourceLink = (props) => {
|
|
|
11051
10968
|
const go = useGo();
|
|
11052
10969
|
const onClick = () => {
|
|
11053
10970
|
go({
|
|
11054
|
-
to: navigation.showUrl(
|
|
10971
|
+
to: navigation.showUrl(name2, ""),
|
|
11055
10972
|
query: {
|
|
11056
|
-
id:
|
|
10973
|
+
id: `${namespace2}/${resourceId}`
|
|
11057
10974
|
},
|
|
11058
10975
|
options: {
|
|
11059
10976
|
keepQuery: true
|
|
@@ -11105,7 +11022,7 @@ const IngressRulesTable = ({ ingress }) => {
|
|
|
11105
11022
|
return record.serviceName ? /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
11106
11023
|
ResourceLink,
|
|
11107
11024
|
{
|
|
11108
|
-
|
|
11025
|
+
name: "services",
|
|
11109
11026
|
namespace: ingress.metadata.namespace || "default",
|
|
11110
11027
|
resourceId: serviceName
|
|
11111
11028
|
}
|
|
@@ -11132,7 +11049,7 @@ const IngressRulesTable = ({ ingress }) => {
|
|
|
11132
11049
|
return secretName ? /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
11133
11050
|
ResourceLink,
|
|
11134
11051
|
{
|
|
11135
|
-
|
|
11052
|
+
name: "secrets",
|
|
11136
11053
|
namespace: ingress.metadata.namespace || "default",
|
|
11137
11054
|
resourceId: secretName
|
|
11138
11055
|
}
|
|
@@ -11259,7 +11176,7 @@ function Tabs(props) {
|
|
|
11259
11176
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(kit.tabsTabPane, { tab: tab.title, children: tab.children }, tab.title);
|
|
11260
11177
|
}) });
|
|
11261
11178
|
}
|
|
11262
|
-
const
|
|
11179
|
+
const ShowContent_vvz9yc = "";
|
|
11263
11180
|
const ShowContentWrapperStyle = "s9agep2";
|
|
11264
11181
|
const BackButton = "bo89gfi";
|
|
11265
11182
|
const ToolBarWrapper = "t1ohe42f";
|
|
@@ -11331,8 +11248,6 @@ const ShowContent = (props) => {
|
|
|
11331
11248
|
if (!record)
|
|
11332
11249
|
return null;
|
|
11333
11250
|
return fields.map((field) => {
|
|
11334
|
-
if (field.hidden)
|
|
11335
|
-
return null;
|
|
11336
11251
|
let content;
|
|
11337
11252
|
const value2 = get$3(record, field.path);
|
|
11338
11253
|
if (field.renderContent) {
|
|
@@ -12169,36 +12084,6 @@ const DurationField = (i18n2) => {
|
|
|
12169
12084
|
}
|
|
12170
12085
|
};
|
|
12171
12086
|
};
|
|
12172
|
-
const StorageClassProvisionerField = (i18n2) => {
|
|
12173
|
-
return {
|
|
12174
|
-
key: "provisioner",
|
|
12175
|
-
path: ["provisioner"],
|
|
12176
|
-
title: i18n2.t("dovetail.provisioner")
|
|
12177
|
-
};
|
|
12178
|
-
};
|
|
12179
|
-
const StorageClassFsTypeField = (i18n2) => {
|
|
12180
|
-
return {
|
|
12181
|
-
key: "fstype",
|
|
12182
|
-
path: ["parameters", "csi.storage.k8s.io/fstype"],
|
|
12183
|
-
title: i18n2.t("dovetail.file_system")
|
|
12184
|
-
};
|
|
12185
|
-
};
|
|
12186
|
-
const StorageClassPvField = () => {
|
|
12187
|
-
return {
|
|
12188
|
-
key: "pvs",
|
|
12189
|
-
path: ["pvs"],
|
|
12190
|
-
renderContent: (pvs) => {
|
|
12191
|
-
return pvs.map((pv) => /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
12192
|
-
ResourceLink,
|
|
12193
|
-
{
|
|
12194
|
-
resourceName: "persistentvolumes",
|
|
12195
|
-
namespace: pv.metadata.namespace || "",
|
|
12196
|
-
resourceId: pv.id
|
|
12197
|
-
}
|
|
12198
|
-
) }, pv.metadata.name));
|
|
12199
|
-
}
|
|
12200
|
-
};
|
|
12201
|
-
};
|
|
12202
12087
|
function __rest(s2, e2) {
|
|
12203
12088
|
var t2 = {};
|
|
12204
12089
|
for (var p in s2)
|
|
@@ -18422,27 +18307,21 @@ const JobsGroup = () => ({
|
|
|
18422
18307
|
});
|
|
18423
18308
|
const IngressRulesGroup = (i18n2) => ({
|
|
18424
18309
|
title: i18n2.t("dovetail.rule"),
|
|
18425
|
-
areas: [
|
|
18426
|
-
|
|
18427
|
-
|
|
18428
|
-
}
|
|
18429
|
-
]
|
|
18310
|
+
areas: [{
|
|
18311
|
+
fields: [IngressRulesTableTabField()]
|
|
18312
|
+
}]
|
|
18430
18313
|
});
|
|
18431
18314
|
const PodSelectorGroup = (i18n2) => ({
|
|
18432
18315
|
title: i18n2.t("dovetail.pod_selector"),
|
|
18433
|
-
areas: [
|
|
18434
|
-
|
|
18435
|
-
|
|
18436
|
-
}
|
|
18437
|
-
]
|
|
18316
|
+
areas: [{
|
|
18317
|
+
fields: [PodSelectorField()]
|
|
18318
|
+
}]
|
|
18438
18319
|
});
|
|
18439
18320
|
const PortsGroup = (i18n2) => ({
|
|
18440
18321
|
title: i18n2.t("dovetail.port"),
|
|
18441
|
-
areas: [
|
|
18442
|
-
|
|
18443
|
-
|
|
18444
|
-
}
|
|
18445
|
-
]
|
|
18322
|
+
areas: [{
|
|
18323
|
+
fields: [PortsTableField()]
|
|
18324
|
+
}]
|
|
18446
18325
|
});
|
|
18447
18326
|
const DataGroup = (i18n2) => ({
|
|
18448
18327
|
title: i18n2.t("dovetail.data"),
|
|
@@ -18496,14 +18375,6 @@ const NetworkPolicyEgressRulesGroup = (i18n2) => ({
|
|
|
18496
18375
|
}
|
|
18497
18376
|
]
|
|
18498
18377
|
});
|
|
18499
|
-
const StorageClassPvGroup = (i18n2) => ({
|
|
18500
|
-
title: i18n2.t("dovetail.persistent_volumn"),
|
|
18501
|
-
areas: [
|
|
18502
|
-
{
|
|
18503
|
-
fields: [StorageClassPvField()]
|
|
18504
|
-
}
|
|
18505
|
-
]
|
|
18506
|
-
});
|
|
18507
18378
|
const PageShow = (props) => {
|
|
18508
18379
|
var _a;
|
|
18509
18380
|
const parsed = useParsed();
|
|
@@ -22380,9 +22251,6 @@ const RefineFormContent = (props) => {
|
|
|
22380
22251
|
children: value2
|
|
22381
22252
|
});
|
|
22382
22253
|
}
|
|
22383
|
-
if (c2 == null ? void 0 : c2.render) {
|
|
22384
|
-
ele = c2.render(value2, onChange, formValue, onBlur, action, control);
|
|
22385
|
-
}
|
|
22386
22254
|
if (c2.helperText) {
|
|
22387
22255
|
ele = /* @__PURE__ */ jsxRuntimeExports.jsxs(Space, {
|
|
22388
22256
|
size: 4,
|
|
@@ -22394,6 +22262,9 @@ const RefineFormContent = (props) => {
|
|
|
22394
22262
|
})]
|
|
22395
22263
|
});
|
|
22396
22264
|
}
|
|
22265
|
+
if (c2 == null ? void 0 : c2.render) {
|
|
22266
|
+
ele = c2.render(value2, onChange, formValue, onBlur, action);
|
|
22267
|
+
}
|
|
22397
22268
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(Form.Item, {
|
|
22398
22269
|
label: c2.label,
|
|
22399
22270
|
colon: false,
|
|
@@ -23103,7 +22974,7 @@ const Separator = () => {
|
|
|
23103
22974
|
});
|
|
23104
22975
|
};
|
|
23105
22976
|
const MonacoYamlEditor = React__default.lazy(() => Promise.resolve().then(() => MonacoYamlEditor$2));
|
|
23106
|
-
const MonacoYamlDiffEditor = React__default.lazy(() => import("./MonacoYamlDiffEditor-
|
|
22977
|
+
const MonacoYamlDiffEditor = React__default.lazy(() => import("./MonacoYamlDiffEditor-fa18bdbd.js"));
|
|
23107
22978
|
const YamlEditorComponent = forwardRef(
|
|
23108
22979
|
function YamlEditorComponent2(props, ref) {
|
|
23109
22980
|
const {
|
|
@@ -24246,7 +24117,7 @@ const ReferenceLink = (props) => {
|
|
|
24246
24117
|
ResourceLink,
|
|
24247
24118
|
{
|
|
24248
24119
|
resourceId: ownerReference.name,
|
|
24249
|
-
|
|
24120
|
+
name: resource.name || "",
|
|
24250
24121
|
namespace: namespace2
|
|
24251
24122
|
}
|
|
24252
24123
|
);
|
|
@@ -24261,32 +24132,6 @@ const TextTags = (props) => {
|
|
|
24261
24132
|
});
|
|
24262
24133
|
return /* @__PURE__ */ jsxRuntimeExports.jsx("ul", { children: tags });
|
|
24263
24134
|
};
|
|
24264
|
-
function ResourceSelect(props) {
|
|
24265
|
-
const { resource, resourceBasePath, kind, selectProps, value: value2, onChange } = props;
|
|
24266
|
-
const { data: data2, isLoading, isError } = useList({
|
|
24267
|
-
resource,
|
|
24268
|
-
meta: {
|
|
24269
|
-
resourceBasePath,
|
|
24270
|
-
kind
|
|
24271
|
-
},
|
|
24272
|
-
pagination: {
|
|
24273
|
-
mode: "off"
|
|
24274
|
-
}
|
|
24275
|
-
});
|
|
24276
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
24277
|
-
Select,
|
|
24278
|
-
{
|
|
24279
|
-
input: {
|
|
24280
|
-
value: value2,
|
|
24281
|
-
onChange
|
|
24282
|
-
},
|
|
24283
|
-
loading: isLoading,
|
|
24284
|
-
error: isError,
|
|
24285
|
-
...selectProps,
|
|
24286
|
-
children: data2 == null ? void 0 : data2.data.map((namespace2) => /* @__PURE__ */ jsxRuntimeExports.jsx(AntdOption, { value: namespace2.metadata.name, children: namespace2.metadata.name }, namespace2.metadata.name))
|
|
24287
|
-
}
|
|
24288
|
-
);
|
|
24289
|
-
}
|
|
24290
24135
|
const IngressRulesComponent = ({ ingress }) => {
|
|
24291
24136
|
const kit = useUIKit();
|
|
24292
24137
|
const result = ingress.flattenedRules.map((r2) => {
|
|
@@ -24301,7 +24146,7 @@ const IngressRulesComponent = ({ ingress }) => {
|
|
|
24301
24146
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
24302
24147
|
ResourceLink,
|
|
24303
24148
|
{
|
|
24304
|
-
|
|
24149
|
+
name: "services",
|
|
24305
24150
|
namespace: ingress.metadata.namespace || "default",
|
|
24306
24151
|
resourceId: r2.serviceName
|
|
24307
24152
|
}
|
|
@@ -24846,81 +24691,12 @@ const PortMappingColumnRenderer = (i18n2, clusterVip) => {
|
|
|
24846
24691
|
}
|
|
24847
24692
|
};
|
|
24848
24693
|
};
|
|
24849
|
-
const ProvisionerColumnRenderer = (i18n2) => {
|
|
24850
|
-
return {
|
|
24851
|
-
key: "provisioner",
|
|
24852
|
-
display: true,
|
|
24853
|
-
dataIndex: ["provisioner"],
|
|
24854
|
-
title: i18n2.t("dovetail.provisioner"),
|
|
24855
|
-
width: 120,
|
|
24856
|
-
sortable: true
|
|
24857
|
-
};
|
|
24858
|
-
};
|
|
24859
|
-
const FsTypeColumnRenderer = (i18n2) => {
|
|
24860
|
-
return {
|
|
24861
|
-
key: "fstype",
|
|
24862
|
-
display: true,
|
|
24863
|
-
dataIndex: ["parameters", "csi.storage.k8s.io/fstype"],
|
|
24864
|
-
title: i18n2.t("dovetail.file_system"),
|
|
24865
|
-
width: 120,
|
|
24866
|
-
sortable: true
|
|
24867
|
-
};
|
|
24868
|
-
};
|
|
24869
|
-
const PVCapacityColumnRenderer = (i18n2) => {
|
|
24870
|
-
return {
|
|
24871
|
-
key: "capacity",
|
|
24872
|
-
display: true,
|
|
24873
|
-
dataIndex: ["spec", "capacity", "storage"],
|
|
24874
|
-
title: i18n2.t("dovetail.capacity"),
|
|
24875
|
-
width: 120,
|
|
24876
|
-
sortable: true
|
|
24877
|
-
};
|
|
24878
|
-
};
|
|
24879
|
-
const PVStorageClassColumnRenderer = (i18n2) => {
|
|
24880
|
-
return {
|
|
24881
|
-
key: "storageClass",
|
|
24882
|
-
display: true,
|
|
24883
|
-
dataIndex: ["spec", "storageClassName"],
|
|
24884
|
-
title: i18n2.t("dovetail.storage_class"),
|
|
24885
|
-
width: 120,
|
|
24886
|
-
sortable: true
|
|
24887
|
-
};
|
|
24888
|
-
};
|
|
24889
|
-
const PVPhaseColumnRenderer = (i18n2) => {
|
|
24890
|
-
return {
|
|
24891
|
-
key: "phase",
|
|
24892
|
-
display: true,
|
|
24893
|
-
dataIndex: ["status", "phase"],
|
|
24894
|
-
title: i18n2.t("dovetail.phase"),
|
|
24895
|
-
width: 120,
|
|
24896
|
-
sortable: true
|
|
24897
|
-
};
|
|
24898
|
-
};
|
|
24899
|
-
const PVModeColumnRenderer = (i18n2) => {
|
|
24900
|
-
return {
|
|
24901
|
-
key: "mode",
|
|
24902
|
-
display: true,
|
|
24903
|
-
dataIndex: ["spec", "volumeMode"],
|
|
24904
|
-
title: i18n2.t("dovetail.volume_mode"),
|
|
24905
|
-
width: 120,
|
|
24906
|
-
sortable: true
|
|
24907
|
-
};
|
|
24908
|
-
};
|
|
24909
|
-
const PVAccessModeColumnRenderer = (i18n2) => {
|
|
24910
|
-
return {
|
|
24911
|
-
key: "accessMode",
|
|
24912
|
-
display: true,
|
|
24913
|
-
dataIndex: ["spec", "accessModes"],
|
|
24914
|
-
title: i18n2.t("dovetail.access_mode"),
|
|
24915
|
-
width: 120,
|
|
24916
|
-
sortable: true
|
|
24917
|
-
};
|
|
24918
|
-
};
|
|
24919
24694
|
const styles = "";
|
|
24920
24695
|
const Dovetail = (props) => {
|
|
24921
24696
|
const {
|
|
24922
24697
|
resourcesConfig,
|
|
24923
24698
|
urlPrefix = "",
|
|
24699
|
+
schemaUrlPrefix,
|
|
24924
24700
|
Layout: Layout2,
|
|
24925
24701
|
history,
|
|
24926
24702
|
globalStore,
|
|
@@ -24959,7 +24735,7 @@ const Dovetail = (props) => {
|
|
|
24959
24735
|
};
|
|
24960
24736
|
return provider;
|
|
24961
24737
|
}, [msg]);
|
|
24962
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(Router, { history, children: /* @__PURE__ */ jsxRuntimeExports.jsx(KitStoreProvider, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(GlobalStoreContext.Provider, { value: { globalStore }, children: /* @__PURE__ */ jsxRuntimeExports.jsx(ConfigsContext.Provider, { value: keyBy(resourcesConfig, "name"), children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
24738
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(Router, { history, children: /* @__PURE__ */ jsxRuntimeExports.jsx(KitStoreProvider, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(GlobalStoreContext.Provider, { value: { globalStore }, children: /* @__PURE__ */ jsxRuntimeExports.jsx(ConfigsContext.Provider, { value: keyBy(resourcesConfig, "name"), children: /* @__PURE__ */ jsxRuntimeExports.jsx(ConstantsContext.Provider, { value: { schemaUrlPrefix }, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
24963
24739
|
Refine,
|
|
24964
24740
|
{
|
|
24965
24741
|
dataProvider: {
|
|
@@ -24991,7 +24767,7 @@ const Dovetail = (props) => {
|
|
|
24991
24767
|
}),
|
|
24992
24768
|
children: content
|
|
24993
24769
|
}
|
|
24994
|
-
) }) }) }) });
|
|
24770
|
+
) }) }) }) }) });
|
|
24995
24771
|
};
|
|
24996
24772
|
const ModelMap = {
|
|
24997
24773
|
Deployment: DeploymentModel,
|
|
@@ -25003,11 +24779,7 @@ const ModelMap = {
|
|
|
25003
24779
|
Event: EventModel,
|
|
25004
24780
|
Ingress: IngressModel,
|
|
25005
24781
|
NetworkPolicy: NetworkPolicyModel,
|
|
25006
|
-
Service: ServiceModel
|
|
25007
|
-
Node: NodeModel,
|
|
25008
|
-
StorageClass: StorageClassModel,
|
|
25009
|
-
PersistentVolume: PersistentVolumeModel,
|
|
25010
|
-
PersistentVolumeClaim: PersistentVolumeClaimModel
|
|
24782
|
+
Service: ServiceModel
|
|
25011
24783
|
};
|
|
25012
24784
|
class ModelPlugin {
|
|
25013
24785
|
constructor() {
|
|
@@ -25133,192 +24905,172 @@ const relationPlugin = new RelationPlugin();
|
|
|
25133
24905
|
const ProviderPlugins = [relationPlugin, modelPlugin];
|
|
25134
24906
|
const dovetailRefineI18n = i18n;
|
|
25135
24907
|
export {
|
|
25136
|
-
|
|
24908
|
+
PodContainersTable as $,
|
|
25137
24909
|
AgeColumnRenderer as A,
|
|
25138
|
-
|
|
24910
|
+
useDownloadYAML as B,
|
|
25139
24911
|
CommonSorter as C,
|
|
25140
24912
|
DurationColumnRenderer as D,
|
|
25141
|
-
|
|
25142
|
-
|
|
25143
|
-
|
|
25144
|
-
|
|
24913
|
+
useEdit as E,
|
|
24914
|
+
useGlobalStore as F,
|
|
24915
|
+
useOpenForm as G,
|
|
24916
|
+
index as H,
|
|
25145
24917
|
IngressRulesColumnRenderer as I,
|
|
25146
|
-
|
|
25147
|
-
|
|
25148
|
-
|
|
24918
|
+
Breadcrumb as J,
|
|
24919
|
+
NameInputWidget as K,
|
|
24920
|
+
dnsSubDomainRules as L,
|
|
25149
24921
|
ModalStyle as M,
|
|
25150
24922
|
NameColumnRenderer as N,
|
|
25151
|
-
|
|
24923
|
+
rfc1123LabelRules as O,
|
|
25152
24924
|
PlainTextNameColumnRenderer as P,
|
|
25153
|
-
|
|
24925
|
+
rfc1035LabelRules as Q,
|
|
25154
24926
|
ReplicasColumnRenderer as R,
|
|
25155
24927
|
StateDisplayColumnRenderer as S,
|
|
25156
|
-
|
|
25157
|
-
|
|
25158
|
-
|
|
24928
|
+
NamespaceSelectWidget as T,
|
|
24929
|
+
namespaceRules as U,
|
|
24930
|
+
KeyValueListWidget as V,
|
|
25159
24931
|
WorkloadImageColumnRenderer as W,
|
|
25160
|
-
|
|
25161
|
-
|
|
25162
|
-
|
|
25163
|
-
|
|
24932
|
+
MetadataForm as X,
|
|
24933
|
+
PageShow as Y,
|
|
24934
|
+
Time as Z,
|
|
24935
|
+
ConditionsTable as _,
|
|
25164
24936
|
useSchema as a,
|
|
25165
|
-
|
|
25166
|
-
|
|
25167
|
-
|
|
25168
|
-
|
|
25169
|
-
|
|
25170
|
-
|
|
25171
|
-
|
|
25172
|
-
|
|
25173
|
-
|
|
25174
|
-
|
|
25175
|
-
|
|
25176
|
-
|
|
25177
|
-
|
|
25178
|
-
|
|
25179
|
-
|
|
25180
|
-
|
|
25181
|
-
|
|
25182
|
-
|
|
25183
|
-
|
|
25184
|
-
|
|
25185
|
-
|
|
25186
|
-
|
|
25187
|
-
|
|
25188
|
-
|
|
25189
|
-
|
|
25190
|
-
|
|
25191
|
-
|
|
25192
|
-
|
|
25193
|
-
|
|
25194
|
-
|
|
25195
|
-
|
|
25196
|
-
|
|
25197
|
-
|
|
25198
|
-
|
|
25199
|
-
|
|
25200
|
-
|
|
25201
|
-
|
|
25202
|
-
|
|
25203
|
-
|
|
25204
|
-
|
|
25205
|
-
|
|
25206
|
-
|
|
25207
|
-
|
|
25208
|
-
|
|
25209
|
-
|
|
25210
|
-
|
|
25211
|
-
|
|
25212
|
-
|
|
25213
|
-
|
|
25214
|
-
|
|
25215
|
-
|
|
25216
|
-
|
|
25217
|
-
|
|
25218
|
-
|
|
25219
|
-
|
|
25220
|
-
|
|
25221
|
-
|
|
25222
|
-
|
|
25223
|
-
|
|
25224
|
-
|
|
25225
|
-
|
|
25226
|
-
|
|
25227
|
-
|
|
25228
|
-
|
|
24937
|
+
ListPage as a$,
|
|
24938
|
+
WorkloadDropdown as a0,
|
|
24939
|
+
ReplicasDropdown as a1,
|
|
24940
|
+
CreateButton as a2,
|
|
24941
|
+
ImageNames as a3,
|
|
24942
|
+
ResourceList as a4,
|
|
24943
|
+
ResourceShow as a5,
|
|
24944
|
+
ResourceForm as a6,
|
|
24945
|
+
ResourceCRUD as a7,
|
|
24946
|
+
WorkloadPodsTable as a8,
|
|
24947
|
+
CronJobDropdown as a9,
|
|
24948
|
+
NamespaceField as aA,
|
|
24949
|
+
AgeField as aB,
|
|
24950
|
+
LabelsField as aC,
|
|
24951
|
+
AnnotationsField as aD,
|
|
24952
|
+
ServiceInnerClusterAccessField as aE,
|
|
24953
|
+
ServiceOutClusterAccessField as aF,
|
|
24954
|
+
PodSelectorField as aG,
|
|
24955
|
+
PortsTableField as aH,
|
|
24956
|
+
DurationField as aI,
|
|
24957
|
+
EventsTab as aJ,
|
|
24958
|
+
PodLogTab as aK,
|
|
24959
|
+
BasicGroup as aL,
|
|
24960
|
+
PodsGroup as aM,
|
|
24961
|
+
PodContainersGroup as aN,
|
|
24962
|
+
ServicePodsGroup as aO,
|
|
24963
|
+
ConditionsGroup as aP,
|
|
24964
|
+
SecretDataGroup as aQ,
|
|
24965
|
+
JobsGroup as aR,
|
|
24966
|
+
IngressRulesGroup as aS,
|
|
24967
|
+
PodSelectorGroup as aT,
|
|
24968
|
+
PortsGroup as aU,
|
|
24969
|
+
DataGroup as aV,
|
|
24970
|
+
NetworkPolicyIngressRulesGroup as aW,
|
|
24971
|
+
NetworkPolicyEgressRulesGroup as aX,
|
|
24972
|
+
ShowGroupComponent as aY,
|
|
24973
|
+
ShowContent as aZ,
|
|
24974
|
+
DeleteManyButton as a_,
|
|
24975
|
+
ResourceUsageBar as aa,
|
|
24976
|
+
WorkloadReplicasForm as ab,
|
|
24977
|
+
WorkloadReplicas as ac,
|
|
24978
|
+
CronjobJobsTable as ad,
|
|
24979
|
+
KeyValue as ae,
|
|
24980
|
+
KeyValueAnnotation as af,
|
|
24981
|
+
KeyValueSecret as ag,
|
|
24982
|
+
Separator as ah,
|
|
24983
|
+
YamlEditorComponent as ai,
|
|
24984
|
+
DeleteButton as aj,
|
|
24985
|
+
Layout as ak,
|
|
24986
|
+
AreaType as al,
|
|
24987
|
+
ImageField as am,
|
|
24988
|
+
ReplicaField as an,
|
|
24989
|
+
ConditionsField as ao,
|
|
24990
|
+
PodsField as ap,
|
|
24991
|
+
JobsField as aq,
|
|
24992
|
+
DataField as ar,
|
|
24993
|
+
SecretDataField as as,
|
|
24994
|
+
StartTimeField as at,
|
|
24995
|
+
ServiceTypeField as au,
|
|
24996
|
+
ClusterIpField as av,
|
|
24997
|
+
SessionAffinityField as aw,
|
|
24998
|
+
ServicePodsField as ax,
|
|
24999
|
+
IngressRulesTableTabField as ay,
|
|
25000
|
+
EventsTableTabField as az,
|
|
25229
25001
|
useDeleteModal as b,
|
|
25230
|
-
|
|
25231
|
-
|
|
25232
|
-
|
|
25233
|
-
|
|
25234
|
-
|
|
25235
|
-
|
|
25236
|
-
|
|
25237
|
-
|
|
25238
|
-
|
|
25239
|
-
|
|
25240
|
-
|
|
25241
|
-
|
|
25242
|
-
|
|
25243
|
-
|
|
25244
|
-
|
|
25245
|
-
|
|
25246
|
-
|
|
25247
|
-
|
|
25248
|
-
|
|
25249
|
-
|
|
25250
|
-
|
|
25251
|
-
|
|
25252
|
-
|
|
25253
|
-
|
|
25254
|
-
|
|
25255
|
-
|
|
25256
|
-
|
|
25257
|
-
|
|
25258
|
-
|
|
25259
|
-
|
|
25260
|
-
|
|
25261
|
-
|
|
25262
|
-
|
|
25263
|
-
|
|
25264
|
-
|
|
25265
|
-
|
|
25266
|
-
|
|
25267
|
-
|
|
25268
|
-
|
|
25269
|
-
|
|
25270
|
-
|
|
25271
|
-
|
|
25272
|
-
|
|
25273
|
-
|
|
25274
|
-
|
|
25275
|
-
|
|
25276
|
-
|
|
25277
|
-
|
|
25278
|
-
|
|
25279
|
-
|
|
25280
|
-
|
|
25281
|
-
|
|
25282
|
-
|
|
25283
|
-
|
|
25284
|
-
|
|
25285
|
-
|
|
25286
|
-
|
|
25287
|
-
|
|
25288
|
-
|
|
25289
|
-
|
|
25290
|
-
|
|
25291
|
-
|
|
25292
|
-
|
|
25293
|
-
|
|
25002
|
+
CronJobModel as b$,
|
|
25003
|
+
StateTagStyle as b0,
|
|
25004
|
+
StateTag as b1,
|
|
25005
|
+
DrawerShow as b2,
|
|
25006
|
+
Menu as b3,
|
|
25007
|
+
EditButton as b4,
|
|
25008
|
+
ReferenceLink as b5,
|
|
25009
|
+
ResourceLink as b6,
|
|
25010
|
+
NS_STORE_KEY as b7,
|
|
25011
|
+
ALL_NS as b8,
|
|
25012
|
+
useNamespacesFilter as b9,
|
|
25013
|
+
INGRESS_INIT_VALUE as bA,
|
|
25014
|
+
NETWORK_POLICY_INIT_VALUE as bB,
|
|
25015
|
+
CONFIG_MAP_INIT_VALUE as bC,
|
|
25016
|
+
SERVER_INSTANCE_INIT_VALUE as bD,
|
|
25017
|
+
REDEPLOY_TIMESTAMP_KEY as bE,
|
|
25018
|
+
SECRET_OPAQUE_INIT_VALUE as bF,
|
|
25019
|
+
SECRET_IMAGE_REPO_INIT_VALUE as bG,
|
|
25020
|
+
SECRET_BASIC_AUTH_INIT_VALUE as bH,
|
|
25021
|
+
SECRET_SSH_AUTH_INIT_VALUE as bI,
|
|
25022
|
+
SECRET_TLS_INIT_VALUE as bJ,
|
|
25023
|
+
SECRET_CUSTOM_INIT_VALUE as bK,
|
|
25024
|
+
WorkloadState as bL,
|
|
25025
|
+
AccessControlAuth as bM,
|
|
25026
|
+
Dovetail as bN,
|
|
25027
|
+
RESOURCE_GROUP as bO,
|
|
25028
|
+
FormType as bP,
|
|
25029
|
+
ComponentContext as bQ,
|
|
25030
|
+
GlobalStoreContext as bR,
|
|
25031
|
+
ConfigsContext as bS,
|
|
25032
|
+
IngressModel as bT,
|
|
25033
|
+
NetworkPolicyModel as bU,
|
|
25034
|
+
JobModel as bV,
|
|
25035
|
+
WorkloadModel as bW,
|
|
25036
|
+
WorkloadBaseModel as bX,
|
|
25037
|
+
PodModel as bY,
|
|
25038
|
+
PodMetricsModel as bZ,
|
|
25039
|
+
ResourceModel as b_,
|
|
25040
|
+
NamespacesFilter as ba,
|
|
25041
|
+
FormModal as bb,
|
|
25042
|
+
RefineFormContent as bc,
|
|
25043
|
+
RefineFormPage as bd,
|
|
25044
|
+
SchemaStrategy as be,
|
|
25045
|
+
YamlForm as bf,
|
|
25046
|
+
useRefineForm as bg,
|
|
25047
|
+
ServiceInClusterAccessComponent as bh,
|
|
25048
|
+
ServiceOutClusterAccessComponent as bi,
|
|
25049
|
+
Tags as bj,
|
|
25050
|
+
TextTags as bk,
|
|
25051
|
+
PodLog as bl,
|
|
25052
|
+
NetworkPolicyRulesViewer as bm,
|
|
25053
|
+
Tabs as bn,
|
|
25054
|
+
BASE_INIT_VALUE as bo,
|
|
25055
|
+
DEPLOYMENT_INIT_VALUE as bp,
|
|
25056
|
+
CRONJOB_INIT_VALUE as bq,
|
|
25057
|
+
DAEMONSET_INIT_VALUE as br,
|
|
25058
|
+
JOB_INIT_VALUE as bs,
|
|
25059
|
+
STATEFULSET_INIT_VALUE as bt,
|
|
25060
|
+
POD_INIT_VALUE as bu,
|
|
25061
|
+
SERVICE_CLUSTER_IP_INIT_VALUE as bv,
|
|
25062
|
+
SERVICE_NODE_PORT_INIT_VALUE as bw,
|
|
25063
|
+
SERVICE_LOAD_BALANCER_INIT_VALUE as bx,
|
|
25064
|
+
SERVICE_EXTERNAL_NAME_INIT_VALUE as by,
|
|
25065
|
+
SERVICE_HEADLESS_INIT_VALUE as bz,
|
|
25294
25066
|
NameSpaceColumnRenderer as c,
|
|
25295
|
-
|
|
25296
|
-
|
|
25297
|
-
|
|
25298
|
-
|
|
25299
|
-
|
|
25300
|
-
|
|
25301
|
-
|
|
25302
|
-
NetworkPolicyModel as c7,
|
|
25303
|
-
JobModel as c8,
|
|
25304
|
-
WorkloadModel as c9,
|
|
25305
|
-
WorkloadBaseModel as ca,
|
|
25306
|
-
PodModel as cb,
|
|
25307
|
-
PodMetricsModel as cc,
|
|
25308
|
-
ResourceModel as cd,
|
|
25309
|
-
CronJobModel as ce,
|
|
25310
|
-
EventModel as cf,
|
|
25311
|
-
DeploymentModel as cg,
|
|
25312
|
-
DaemonSetModel as ch,
|
|
25313
|
-
StatefulSetModel as ci,
|
|
25314
|
-
ServiceTypeEnum as cj,
|
|
25315
|
-
ServiceModel as ck,
|
|
25316
|
-
NodeRole as cl,
|
|
25317
|
-
NodeModel as cm,
|
|
25318
|
-
StorageClassModel as cn,
|
|
25319
|
-
PersistentVolumeModel as co,
|
|
25320
|
-
PersistentVolumeClaimModel as cp,
|
|
25321
|
-
ProviderPlugins as cq,
|
|
25067
|
+
EventModel as c0,
|
|
25068
|
+
DeploymentModel as c1,
|
|
25069
|
+
DaemonSetModel as c2,
|
|
25070
|
+
StatefulSetModel as c3,
|
|
25071
|
+
ServiceTypeEnum as c4,
|
|
25072
|
+
ServiceModel as c5,
|
|
25073
|
+
ProviderPlugins as c6,
|
|
25322
25074
|
dovetailRefineI18n as d,
|
|
25323
25075
|
WorkloadRestartsColumnRenderer as e,
|
|
25324
25076
|
NodeNameColumnRenderer as f,
|
|
@@ -25339,7 +25091,7 @@ export {
|
|
|
25339
25091
|
useNamespaceRefineFilter as u,
|
|
25340
25092
|
DataKeysColumnRenderer as v,
|
|
25341
25093
|
PortMappingColumnRenderer as w,
|
|
25342
|
-
|
|
25343
|
-
|
|
25344
|
-
|
|
25094
|
+
ColumnKeys as x,
|
|
25095
|
+
addDefaultRenderToColumns as y,
|
|
25096
|
+
useEagleTable as z
|
|
25345
25097
|
};
|