@dovetail-v2/refine 0.0.46-alpha.2 → 0.0.46
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-a0787f8d.js → MonacoYamlDiffEditor-68215003.js} +1 -1
- package/dist/{index-9a6fb2d3.js → index-238ec29f.js} +359 -280
- package/dist/refine.js +176 -175
- package/dist/refine.umd.cjs +183 -104
- package/lib/src/App.js +91 -0
- package/lib/src/Dovetail.js +45 -0
- package/lib/src/components/Breadcrumb/index.js +20 -0
- package/lib/src/components/ConditionsTable/ConditionsTable.js +56 -0
- package/lib/src/components/ConditionsTable/index.js +1 -0
- package/lib/src/components/CreateButton/index.js +10 -0
- package/lib/src/components/CronJobDropdown/index.js +26 -0
- package/lib/src/components/CronjobJobsTable/index.js +49 -0
- package/lib/src/components/DeleteButton/index.js +13 -0
- package/lib/src/components/DeleteManyButton/index.js +16 -0
- package/lib/src/components/DrawerShow/DrawerShow.js +13 -0
- package/lib/src/components/DrawerShow/index.js +1 -0
- package/lib/src/components/EditButton/index.js +13 -0
- package/lib/src/components/EditField/index.js +47 -0
- package/lib/src/components/ErrorContent/index.js +36 -0
- package/lib/src/components/EventsTable/EventsTable.js +59 -0
- package/lib/src/components/EventsTable/index.js +1 -0
- package/lib/src/components/Form/KeyValueListWidget.js +56 -0
- package/lib/src/components/Form/MetadataForm.js +9 -0
- package/lib/src/components/Form/NameInputWidget.js +50 -0
- package/lib/src/components/Form/NamespaceSelectWidget.js +21 -0
- package/lib/src/components/Form/index.js +4 -0
- package/lib/src/components/Form/widget.js +1 -0
- package/lib/src/components/FormErrorAlert/index.js +8 -0
- package/lib/src/components/FormLayout/index.js +21 -0
- package/lib/src/components/FormModal/index.js +51 -0
- package/lib/src/components/ImageNames/index.js +14 -0
- package/lib/src/components/IngressRulesComponent/index.js +11 -0
- package/lib/src/components/IngressRulesTable/IngressRulesTable.js +51 -0
- package/lib/src/components/IngressRulesTable/index.js +1 -0
- package/lib/src/components/K8sDropdown/index.js +31 -0
- package/lib/src/components/KeyValue/KeyValue.js +27 -0
- package/lib/src/components/KeyValue/index.js +1 -0
- package/lib/src/components/KeyValueData/index.js +50 -0
- package/lib/src/components/Layout/index.js +39 -0
- package/lib/src/components/ListPage/index.js +25 -0
- package/lib/src/components/Menu/index.js +36 -0
- package/lib/src/components/NamespacesFilter/index.js +34 -0
- package/lib/src/components/NetworkPolicyRulesTable/NetworkPolicyRulesTable.d.ts +1 -2
- package/lib/src/components/NetworkPolicyRulesTable/NetworkPolicyRulesTable.js +77 -0
- package/lib/src/components/NetworkPolicyRulesTable/index.js +1 -0
- package/lib/src/components/PageShow/PageShow.js +11 -0
- package/lib/src/components/PageShow/index.js +1 -0
- package/lib/src/components/PodContainersTable/PodContainersTable.js +78 -0
- package/lib/src/components/PodContainersTable/index.js +1 -0
- package/lib/src/components/PodLog/index.js +136 -0
- package/lib/src/components/ReferenceLink/index.js +17 -0
- package/lib/src/components/RefineForm/RefineFormContent.d.ts +10 -0
- package/lib/src/components/RefineForm/RefineFormModal.d.ts +8 -0
- package/lib/src/components/RefineForm/RefineFormPage.d.ts +7 -0
- package/lib/src/components/RefineForm/index.d.ts +3 -0
- package/lib/src/components/RefineForm/type.d.ts +20 -0
- package/lib/src/components/RefineForm/useRefineForm.d.ts +10 -0
- package/lib/src/components/ResourceCRUD/ResourceCRUD.js +15 -0
- package/lib/src/components/ResourceCRUD/create/index.js +13 -0
- package/lib/src/components/ResourceCRUD/index.js +4 -0
- package/lib/src/components/ResourceCRUD/list/index.js +19 -0
- package/lib/src/components/ResourceCRUD/show/index.js +6 -0
- package/lib/src/components/ResourceLink/index.js +21 -0
- package/lib/src/components/ResourceUsageBar/index.js +81 -0
- package/lib/src/components/Separator/index.js +11 -0
- package/lib/src/components/ShowContent/ShowContent.d.ts +0 -2
- package/lib/src/components/ShowContent/ShowContent.js +157 -0
- package/lib/src/components/ShowContent/fields.js +157 -0
- package/lib/src/components/ShowContent/index.js +2 -0
- package/lib/src/components/StateTag/StateTag.js +22 -0
- package/lib/src/components/StateTag/index.js +1 -0
- package/lib/src/components/Table/ErrorContent.js +36 -0
- package/lib/src/components/Table/TableToolBar.js +14 -0
- package/lib/src/components/Table/TableWidgets.js +28 -0
- package/lib/src/components/Table/index.js +69 -0
- package/lib/src/components/Tags/index.js +22 -0
- package/lib/src/components/Time/index.js +14 -0
- package/lib/src/components/WorkloadDropdown/index.js +24 -0
- package/lib/src/components/WorkloadPodsTable/WorkloadPodsTable.js +39 -0
- package/lib/src/components/WorkloadPodsTable/index.js +1 -0
- package/lib/src/components/WorkloadReplicas/index.js +50 -0
- package/lib/src/components/YamlEditor/MonacoYamlDiffEditor.js +34 -0
- package/lib/src/components/YamlEditor/MonacoYamlEditor.js +149 -0
- package/lib/src/components/YamlEditor/YamlEditorComponent.js +90 -0
- package/lib/src/components/YamlEditor/index.js +1 -0
- package/lib/src/components/YamlEditor/style.js +102 -0
- package/lib/src/components/YamlEditor/yaml.worker.js +1 -0
- package/lib/src/components/YamlForm/index.d.ts +0 -4
- package/lib/src/components/YamlForm/index.js +61 -0
- package/lib/src/components/index.js +38 -0
- package/lib/src/constants/index.js +2 -0
- package/lib/src/constants/k8s.js +203 -0
- package/lib/src/constants/state.js +15 -0
- package/lib/src/contexts/component.js +3 -0
- package/lib/src/contexts/configs.js +3 -0
- package/lib/src/contexts/global-store.js +3 -0
- package/lib/src/contexts/index.js +3 -0
- package/lib/src/hooks/index.d.ts +1 -0
- package/lib/src/hooks/index.js +7 -0
- package/lib/src/hooks/useDeleteModal/index.js +1 -0
- package/lib/src/hooks/useDeleteModal/useDeleteManyModal.js +31 -0
- package/lib/src/hooks/useDeleteModal/useDeleteModal.js +38 -0
- package/lib/src/hooks/useDownloadYAML.js +10 -0
- package/lib/src/hooks/useEagleForm.d.ts +1 -2
- package/lib/src/hooks/useEagleForm.js +177 -0
- package/lib/src/hooks/useEagleTable/columns.js +246 -0
- package/lib/src/hooks/useEagleTable/index.js +2 -0
- package/lib/src/hooks/useEagleTable/useEagleTable.js +63 -0
- package/lib/src/hooks/useEdit.js +19 -0
- package/lib/src/hooks/useGlobalStore.js +5 -0
- package/lib/src/hooks/useK8sYamlEditor.js +37 -0
- package/lib/src/hooks/useNamespaceRefineFilter.d.ts +5 -0
- package/lib/src/hooks/useOpenForm.js +43 -0
- package/lib/src/hooks/useSchema.js +37 -0
- package/lib/src/hooks/useSubmitForm.js +42 -0
- package/lib/src/i18n.d.ts +68 -34
- package/lib/src/i18n.js +19 -0
- package/lib/src/index.js +13 -0
- package/lib/src/locales/en-US/dovetail.json +18 -0
- package/lib/src/locales/en-US/index.d.ts +67 -34
- package/lib/src/locales/en-US/index.js +4 -0
- package/lib/src/locales/index.js +6 -0
- package/lib/src/locales/zh-CN/dovetail.json +91 -0
- package/lib/src/locales/zh-CN/index.d.ts +1 -0
- package/lib/src/locales/zh-CN/index.js +4 -0
- package/lib/src/main.js +12 -0
- package/lib/src/models/cronjob-model.js +32 -0
- package/lib/src/models/daemonset-model.js +17 -0
- package/lib/src/models/deployment-model.js +17 -0
- package/lib/src/models/event-model.js +11 -0
- package/lib/src/models/index.js +14 -0
- package/lib/src/models/ingress-model.js +24 -0
- package/lib/src/models/job-model.js +56 -0
- package/lib/src/models/network-policy-model.js +10 -0
- package/lib/src/models/pod-metrics-model.js +34 -0
- package/lib/src/models/pod-model.js +78 -0
- package/lib/src/models/resource-model.js +34 -0
- package/lib/src/models/server-instance-model.d.ts +10 -0
- package/lib/src/models/service-model.js +17 -0
- package/lib/src/models/statefulset-model.js +17 -0
- package/lib/src/models/types/index.js +1 -0
- package/lib/src/models/types/metric.js +1 -0
- package/lib/src/models/workload-base-model.js +22 -0
- package/lib/src/models/workload-model.js +51 -0
- package/lib/src/pages/configmaps/index.js +15 -0
- package/lib/src/pages/cronjobs/create/index.js +6 -0
- package/lib/src/pages/cronjobs/index.js +3 -0
- package/lib/src/pages/cronjobs/list/index.js +42 -0
- package/lib/src/pages/cronjobs/show/index.js +16 -0
- package/lib/src/pages/daemonsets/create/index.js +6 -0
- package/lib/src/pages/daemonsets/index.js +3 -0
- package/lib/src/pages/daemonsets/list/index.js +32 -0
- package/lib/src/pages/daemonsets/show/index.js +16 -0
- package/lib/src/pages/deployments/create/index.js +7 -0
- package/lib/src/pages/deployments/index.js +3 -0
- package/lib/src/pages/deployments/list/index.js +26 -0
- package/lib/src/pages/deployments/show/index.js +16 -0
- package/lib/src/pages/ingresses/index.js +26 -0
- package/lib/src/pages/jobs/index.js +34 -0
- package/lib/src/pages/networkPolicies/index.js +67 -0
- package/lib/src/pages/pods/create/index.js +6 -0
- package/lib/src/pages/pods/index.js +3 -0
- package/lib/src/pages/pods/list/index.js +81 -0
- package/lib/src/pages/pods/show/index.js +54 -0
- package/lib/src/pages/secrets/index.js +15 -0
- package/lib/src/pages/services/index.js +26 -0
- package/lib/src/pages/statefulsets/create/index.js +6 -0
- package/lib/src/pages/statefulsets/index.js +3 -0
- package/lib/src/pages/statefulsets/list/index.js +26 -0
- package/lib/src/pages/statefulsets/show/index.js +16 -0
- package/lib/src/plugins/index.js +3 -0
- package/lib/src/plugins/model-plugin.js +46 -0
- package/lib/src/plugins/relation-plugin.js +81 -0
- package/lib/src/plugins/type.js +1 -0
- package/lib/src/providers/index.js +1 -0
- package/lib/src/providers/router-provider/index.js +100 -0
- package/lib/src/types/index.js +1 -0
- package/lib/src/types/resource.js +12 -0
- package/lib/src/utils/addId.js +8 -0
- package/lib/src/utils/download.js +9 -0
- package/lib/src/utils/error.js +53 -0
- package/lib/src/utils/form.js +9 -0
- package/lib/src/utils/k8s.js +6 -0
- package/lib/src/utils/labels.js +15 -0
- package/lib/src/utils/match-selector.js +12 -0
- package/lib/src/utils/openapi.js +33 -0
- package/lib/src/utils/schema.js +117 -0
- package/lib/src/utils/selector.js +12 -0
- package/lib/src/utils/string.js +6 -0
- package/lib/src/utils/time.js +46 -0
- package/lib/src/utils/unit.js +69 -0
- package/lib/src/utils/yaml.js +44 -0
- package/lib/vite.config.js +60 -0
- package/package.json +2 -2
- package/lib/src/components/ModalContextProvider/index.d.ts +0 -12
- package/lib/src/hooks/useModal.d.ts +0 -0
- package/lib/src/hooks/useNamespaceFilter.d.ts +0 -5
- package/lib/src/model/cronjob-model.d.ts +0 -9
- package/lib/src/model/index.d.ts +0 -6
- package/lib/src/model/job-model.d.ts +0 -10
- package/lib/src/model/pod-metrics-model.d.ts +0 -7
- package/lib/src/model/pod-model.d.ts +0 -15
- package/lib/src/model/resource-model.d.ts +0 -17
- package/lib/src/model/workload-model.d.ts +0 -17
- package/lib/src/types/metric.d.ts +0 -25
|
@@ -7,7 +7,7 @@ var __publicField = (obj, key2, value2) => {
|
|
|
7
7
|
import i18n from "i18next";
|
|
8
8
|
import * as React from "react";
|
|
9
9
|
import React__default, { createElement, isValidElement, cloneElement, Children, createContext, useContext, useState, useRef, useEffect, useCallback, useMemo, useImperativeHandle, memo, PureComponent, useLayoutEffect, forwardRef, Suspense } from "react";
|
|
10
|
-
import { ResourceContext, matchResourceFromRoute, useResource, useDelete, useNavigation, useBreadcrumb, useList, useParsed, useGo, useCan, useTable, useDeleteMany, CanAccess, useUpdate, useDataProvider,
|
|
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
13
|
import { Typo, Tag, useUIKit, kitContext, Link as Link$1, OverflowTooltip, Tooltip, StatusCapsule, pushModal, Icon as Icon$1, Button, popModal, Loading, Divider, Fields, Space, Form, Modal, useMessage, ModalStack, KitStoreProvider } from "@cloudtower/eagle";
|
|
@@ -1028,10 +1028,9 @@ const name$1 = "Name";
|
|
|
1028
1028
|
const pod$1 = "Pod";
|
|
1029
1029
|
const cancel$1 = "Cancel";
|
|
1030
1030
|
const create$1 = "Create";
|
|
1031
|
-
const confirm_delete_text$1 = "
|
|
1031
|
+
const confirm_delete_text$1 = "Are you sure you want to delete the {{kind}} <0>{{target}}</0>?";
|
|
1032
1032
|
const edit$1 = "edit";
|
|
1033
1033
|
const namespace$1 = "Namespace";
|
|
1034
|
-
const image$1 = "Image";
|
|
1035
1034
|
const created_time$1 = "Creation time";
|
|
1036
1035
|
const label$1 = "Label";
|
|
1037
1036
|
const annotation$1 = "Annotation";
|
|
@@ -1043,32 +1042,20 @@ const note$2 = "message";
|
|
|
1043
1042
|
const condition$1 = "Condition";
|
|
1044
1043
|
const download_yaml$1 = "Download YAML";
|
|
1045
1044
|
const detail$1 = "Detail";
|
|
1046
|
-
const restarts$1 = "Restart Count";
|
|
1047
|
-
const updated_time$1 = "Transition Time";
|
|
1048
1045
|
const message$1 = "Message";
|
|
1049
1046
|
const save$1 = "Save";
|
|
1050
|
-
const more = "更多";
|
|
1051
1047
|
const workload$1 = "Workload";
|
|
1052
|
-
const all_namespaces$1 = "所有名字空间";
|
|
1053
1048
|
const empty$1 = "No data available";
|
|
1054
1049
|
const schedule$1 = "Schedule";
|
|
1055
1050
|
const lastScheduleTime$1 = "Last Schedule";
|
|
1056
1051
|
const duration$1 = "Duration";
|
|
1057
|
-
const started$1 = "
|
|
1058
|
-
const init_container$1 = "Init Container";
|
|
1059
|
-
const regular_container$1 = "Regular Container";
|
|
1052
|
+
const started$1 = "Start time";
|
|
1060
1053
|
const container$1 = "Container";
|
|
1061
1054
|
const redeploy$1 = "Redeploy";
|
|
1062
1055
|
const data$1 = "Data";
|
|
1063
|
-
const suspend$1 = "Suspended";
|
|
1064
1056
|
const resume$1 = "Resume";
|
|
1065
|
-
const clusterIp$1 = "集群 IP";
|
|
1066
1057
|
const sessionAffinity$1 = "会话保持";
|
|
1067
1058
|
const log$1 = "Log";
|
|
1068
|
-
const select_container$1 = "选择容器";
|
|
1069
|
-
const wrap = "折叠";
|
|
1070
|
-
const resume_log = "继续";
|
|
1071
|
-
const log_new_lines = ",并展示 {{ count }} 行新日志";
|
|
1072
1059
|
const ready$1 = "Ready";
|
|
1073
1060
|
const updating$1 = "Updating";
|
|
1074
1061
|
const completed$1 = "Completed";
|
|
@@ -1081,38 +1068,17 @@ const succeeded$1 = "Succeed";
|
|
|
1081
1068
|
const unknown$1 = "Unknown";
|
|
1082
1069
|
const pending$1 = "Pending";
|
|
1083
1070
|
const waiting$1 = "Waiting";
|
|
1084
|
-
const sec$1 = "秒";
|
|
1085
|
-
const min$1 = "分";
|
|
1086
|
-
const hr$1 = "小时";
|
|
1087
|
-
const day$1 = "天";
|
|
1088
1071
|
const expand$1 = "Expand";
|
|
1089
1072
|
const fold$1 = "Collapse";
|
|
1090
1073
|
const rule$1 = "Rule";
|
|
1091
|
-
const default_backend$1 = "Default Backend";
|
|
1092
|
-
const ingress_class$1 = "Ingress Class";
|
|
1093
1074
|
const port$1 = "Port";
|
|
1094
|
-
const pod_ready_num$1 = "Ready Pod";
|
|
1095
|
-
const pod_replicas_num$1 = "Desired Pod";
|
|
1096
|
-
const edit_replicas$1 = "编辑副本数";
|
|
1097
1075
|
const cert$1 = "Certificate";
|
|
1098
|
-
const
|
|
1099
|
-
const port_mapping$1 = "端口映射";
|
|
1100
|
-
const out_cluster_access$1 = "集群外访问方式";
|
|
1101
|
-
const in_cluster_access$1 = "集群内访问方式";
|
|
1102
|
-
const fail_get_detail$1 = "{{resource}} {{name}} 已不存在";
|
|
1103
|
-
const basic_info$1 = "Basic Information";
|
|
1104
|
-
const pod_selector$1 = "Pod Selector";
|
|
1105
|
-
const ingress_rule$1 = "Ingress Rule";
|
|
1106
|
-
const egress_rule$1 = "Egress Rule";
|
|
1107
|
-
const ip_address$1 = "IP Address";
|
|
1076
|
+
const ip_address$1 = "IP address";
|
|
1108
1077
|
const last_seen$1 = "Last Seen";
|
|
1109
|
-
const service_port$1 = "Service Port";
|
|
1110
|
-
const pod_port$1 = "Pod Port";
|
|
1111
1078
|
const node_port$1 = "NodePort";
|
|
1112
1079
|
const protocol$1 = "Protocol";
|
|
1113
1080
|
const key$1 = "Key";
|
|
1114
1081
|
const value$1 = "Value";
|
|
1115
|
-
const path_type$1 = "Path Type";
|
|
1116
1082
|
const path$1 = "Path";
|
|
1117
1083
|
const backend$1 = "Backend";
|
|
1118
1084
|
const belong_to_node$1 = "Node";
|
|
@@ -1124,6 +1090,73 @@ const password$1 = "Password";
|
|
|
1124
1090
|
const username$1 = "Username";
|
|
1125
1091
|
const host$1 = "Host";
|
|
1126
1092
|
const no_resource$1 = "No {{kind}}";
|
|
1093
|
+
const all_namespaces$1 = "All namespaces";
|
|
1094
|
+
const clusterIp$1 = "Cluster IP";
|
|
1095
|
+
const select_container$1 = "Select container";
|
|
1096
|
+
const sec$1 = "sec";
|
|
1097
|
+
const min$1 = "min";
|
|
1098
|
+
const hr$1 = "hr";
|
|
1099
|
+
const day$1 = "d";
|
|
1100
|
+
const port_mapping$1 = "Port mapping";
|
|
1101
|
+
const out_cluster_access$1 = "Access outside cluster";
|
|
1102
|
+
const in_cluster_access$1 = "Access within cluster";
|
|
1103
|
+
const fail_get_detail$1 = "{{resource}} {{name}} no longer exists";
|
|
1104
|
+
const pod_num$1 = "Pods";
|
|
1105
|
+
const show_data_value$1 = "Show";
|
|
1106
|
+
const hide_data_value$1 = "Hide";
|
|
1107
|
+
const please_input$1 = "Please enter…";
|
|
1108
|
+
const create_failed$1 = "Creation failed.";
|
|
1109
|
+
const create_failed_tip$1 = "Please address the following issues and try again: ";
|
|
1110
|
+
const save_failed$1 = "Failed to save.";
|
|
1111
|
+
const save_failed_tip$1 = "Please address the following issues and try again: ";
|
|
1112
|
+
const completion_num_tooltip$1 = "Completed/Expected";
|
|
1113
|
+
const ready_num_tooltip$1 = "Ready/Expected";
|
|
1114
|
+
const realtime_log$1 = "Real-time logs";
|
|
1115
|
+
const previous_log$1 = "Last startup logs";
|
|
1116
|
+
const auto_wrap$1 = "Auto wrap";
|
|
1117
|
+
const container_num$1 = "Containers";
|
|
1118
|
+
const edit_resource_success$1 = "{{resource}} {{name}} was edited successfully";
|
|
1119
|
+
const redeploy_success_toast$1 = "{{kind}} was redeployed successfully";
|
|
1120
|
+
const redeploy_failed_toast$1 = "Failed to redeploy {{kind}} {{name}}";
|
|
1121
|
+
const pause_success_toast$1 = "Successfully suspended";
|
|
1122
|
+
const pause_failed_toast$1 = "Failed to suspend";
|
|
1123
|
+
const resume_success_toast$1 = "Successfully resumed";
|
|
1124
|
+
const resume_failed_toast$1 = "Failed to resume";
|
|
1125
|
+
const delete_success_toast$1 = "{{kind}} {{name}} was deleted successfully";
|
|
1126
|
+
const delete_failed_toast$1 = "Failed to delete {{kind}} {{name}}";
|
|
1127
|
+
const create_success_toast$1 = "{{kind}} {{name}} was created successfully";
|
|
1128
|
+
const save_yaml_success_toast$1 = "YAML editing was successfully saved";
|
|
1129
|
+
const save_replicas_success_toast$1 = "The expected number of replicas was edited successfully";
|
|
1130
|
+
const save_replicas_failed_toast$1 = "Failed to edit the expected number of replicas";
|
|
1131
|
+
const port_mapping_title_tooltip$1 = "The mapping between the service port and the pod port.";
|
|
1132
|
+
const in_cluster_desc$1 = "Services of types ClusterIP, NodePort, and LoadBalancer will show the ClusterIP field, which represents a virtual IP address only accessible within the cluster.";
|
|
1133
|
+
const in_cluster_ip_desc$1 = "If ClusterIP is a headless service, it will display as blank.";
|
|
1134
|
+
const in_cluster_external_name_desc$1 = "For an ExternalName type service, it displays DNS records.";
|
|
1135
|
+
const out_cluster_ip_desc$1 = "ClusterIP doesn't support external cluster access.";
|
|
1136
|
+
const out_cluster_node_port_desc$1 = "For a NodePort type service, it displays <strong>Node IP:nodeport</strong>.";
|
|
1137
|
+
const out_cluster_lb_desc$1 = "For a LoadBalancer type service, it displays <strong>ingress[*].ip</strong>.";
|
|
1138
|
+
const out_external_name_desc$1 = "For an ExternalName type service, it displays <strong>external-ip</strong>.";
|
|
1139
|
+
const image$1 = "Container image";
|
|
1140
|
+
const restarts$1 = "Restart count";
|
|
1141
|
+
const updated_time$1 = "Transition time";
|
|
1142
|
+
const init_container$1 = "Init container";
|
|
1143
|
+
const regular_container$1 = "Regular container";
|
|
1144
|
+
const suspend$1 = "Suspend";
|
|
1145
|
+
const default_backend$1 = "Default backend";
|
|
1146
|
+
const ingress_class$1 = "IngressClass";
|
|
1147
|
+
const pod_ready_num$1 = "Ready Pod";
|
|
1148
|
+
const pod_complete_num$1 = "Completion Pod";
|
|
1149
|
+
const pod_replicas_num$1 = "Desired Pod";
|
|
1150
|
+
const edit_replicas$1 = "Edit expected number of replicas";
|
|
1151
|
+
const dns_record$1 = "DNS record";
|
|
1152
|
+
const basic_info$1 = "Basic information";
|
|
1153
|
+
const pod_selector$1 = "Pod selector";
|
|
1154
|
+
const ingress_rule$1 = "Ingress rule";
|
|
1155
|
+
const egress_rule$1 = "Egress rule";
|
|
1156
|
+
const service_port$1 = "Service port";
|
|
1157
|
+
const pod_port$1 = "Pod port";
|
|
1158
|
+
const path_type$1 = "Path type";
|
|
1159
|
+
const only_support_one_yaml$1 = "Only one YAML configuration is supported at a time.";
|
|
1127
1160
|
const dovetail$1 = {
|
|
1128
1161
|
copy: copy$1,
|
|
1129
1162
|
reset_arguments: reset_arguments$1,
|
|
@@ -1149,7 +1182,6 @@ const dovetail$1 = {
|
|
|
1149
1182
|
confirm_delete_text: confirm_delete_text$1,
|
|
1150
1183
|
edit: edit$1,
|
|
1151
1184
|
namespace: namespace$1,
|
|
1152
|
-
image: image$1,
|
|
1153
1185
|
created_time: created_time$1,
|
|
1154
1186
|
label: label$1,
|
|
1155
1187
|
annotation: annotation$1,
|
|
@@ -1161,32 +1193,20 @@ const dovetail$1 = {
|
|
|
1161
1193
|
condition: condition$1,
|
|
1162
1194
|
download_yaml: download_yaml$1,
|
|
1163
1195
|
detail: detail$1,
|
|
1164
|
-
restarts: restarts$1,
|
|
1165
|
-
updated_time: updated_time$1,
|
|
1166
1196
|
message: message$1,
|
|
1167
1197
|
save: save$1,
|
|
1168
|
-
more,
|
|
1169
1198
|
workload: workload$1,
|
|
1170
|
-
all_namespaces: all_namespaces$1,
|
|
1171
1199
|
empty: empty$1,
|
|
1172
1200
|
schedule: schedule$1,
|
|
1173
1201
|
lastScheduleTime: lastScheduleTime$1,
|
|
1174
1202
|
duration: duration$1,
|
|
1175
1203
|
started: started$1,
|
|
1176
|
-
init_container: init_container$1,
|
|
1177
|
-
regular_container: regular_container$1,
|
|
1178
1204
|
container: container$1,
|
|
1179
1205
|
redeploy: redeploy$1,
|
|
1180
1206
|
data: data$1,
|
|
1181
|
-
suspend: suspend$1,
|
|
1182
1207
|
resume: resume$1,
|
|
1183
|
-
clusterIp: clusterIp$1,
|
|
1184
1208
|
sessionAffinity: sessionAffinity$1,
|
|
1185
1209
|
log: log$1,
|
|
1186
|
-
select_container: select_container$1,
|
|
1187
|
-
wrap,
|
|
1188
|
-
resume_log,
|
|
1189
|
-
log_new_lines,
|
|
1190
1210
|
ready: ready$1,
|
|
1191
1211
|
updating: updating$1,
|
|
1192
1212
|
completed: completed$1,
|
|
@@ -1199,38 +1219,17 @@ const dovetail$1 = {
|
|
|
1199
1219
|
unknown: unknown$1,
|
|
1200
1220
|
pending: pending$1,
|
|
1201
1221
|
waiting: waiting$1,
|
|
1202
|
-
sec: sec$1,
|
|
1203
|
-
min: min$1,
|
|
1204
|
-
hr: hr$1,
|
|
1205
|
-
day: day$1,
|
|
1206
1222
|
expand: expand$1,
|
|
1207
1223
|
fold: fold$1,
|
|
1208
1224
|
rule: rule$1,
|
|
1209
|
-
default_backend: default_backend$1,
|
|
1210
|
-
ingress_class: ingress_class$1,
|
|
1211
1225
|
port: port$1,
|
|
1212
|
-
pod_ready_num: pod_ready_num$1,
|
|
1213
|
-
pod_replicas_num: pod_replicas_num$1,
|
|
1214
|
-
edit_replicas: edit_replicas$1,
|
|
1215
1226
|
cert: cert$1,
|
|
1216
|
-
dns_record: dns_record$1,
|
|
1217
|
-
port_mapping: port_mapping$1,
|
|
1218
|
-
out_cluster_access: out_cluster_access$1,
|
|
1219
|
-
in_cluster_access: in_cluster_access$1,
|
|
1220
|
-
fail_get_detail: fail_get_detail$1,
|
|
1221
|
-
basic_info: basic_info$1,
|
|
1222
|
-
pod_selector: pod_selector$1,
|
|
1223
|
-
ingress_rule: ingress_rule$1,
|
|
1224
|
-
egress_rule: egress_rule$1,
|
|
1225
1227
|
ip_address: ip_address$1,
|
|
1226
1228
|
last_seen: last_seen$1,
|
|
1227
|
-
service_port: service_port$1,
|
|
1228
|
-
pod_port: pod_port$1,
|
|
1229
1229
|
node_port: node_port$1,
|
|
1230
1230
|
protocol: protocol$1,
|
|
1231
1231
|
key: key$1,
|
|
1232
1232
|
value: value$1,
|
|
1233
|
-
path_type: path_type$1,
|
|
1234
1233
|
path: path$1,
|
|
1235
1234
|
backend: backend$1,
|
|
1236
1235
|
belong_to_node: belong_to_node$1,
|
|
@@ -1243,7 +1242,74 @@ const dovetail$1 = {
|
|
|
1243
1242
|
password: password$1,
|
|
1244
1243
|
username: username$1,
|
|
1245
1244
|
host: host$1,
|
|
1246
|
-
no_resource: no_resource$1
|
|
1245
|
+
no_resource: no_resource$1,
|
|
1246
|
+
all_namespaces: all_namespaces$1,
|
|
1247
|
+
clusterIp: clusterIp$1,
|
|
1248
|
+
select_container: select_container$1,
|
|
1249
|
+
sec: sec$1,
|
|
1250
|
+
min: min$1,
|
|
1251
|
+
hr: hr$1,
|
|
1252
|
+
day: day$1,
|
|
1253
|
+
port_mapping: port_mapping$1,
|
|
1254
|
+
out_cluster_access: out_cluster_access$1,
|
|
1255
|
+
in_cluster_access: in_cluster_access$1,
|
|
1256
|
+
fail_get_detail: fail_get_detail$1,
|
|
1257
|
+
pod_num: pod_num$1,
|
|
1258
|
+
show_data_value: show_data_value$1,
|
|
1259
|
+
hide_data_value: hide_data_value$1,
|
|
1260
|
+
please_input: please_input$1,
|
|
1261
|
+
create_failed: create_failed$1,
|
|
1262
|
+
create_failed_tip: create_failed_tip$1,
|
|
1263
|
+
save_failed: save_failed$1,
|
|
1264
|
+
save_failed_tip: save_failed_tip$1,
|
|
1265
|
+
completion_num_tooltip: completion_num_tooltip$1,
|
|
1266
|
+
ready_num_tooltip: ready_num_tooltip$1,
|
|
1267
|
+
realtime_log: realtime_log$1,
|
|
1268
|
+
previous_log: previous_log$1,
|
|
1269
|
+
auto_wrap: auto_wrap$1,
|
|
1270
|
+
container_num: container_num$1,
|
|
1271
|
+
edit_resource_success: edit_resource_success$1,
|
|
1272
|
+
redeploy_success_toast: redeploy_success_toast$1,
|
|
1273
|
+
redeploy_failed_toast: redeploy_failed_toast$1,
|
|
1274
|
+
pause_success_toast: pause_success_toast$1,
|
|
1275
|
+
pause_failed_toast: pause_failed_toast$1,
|
|
1276
|
+
resume_success_toast: resume_success_toast$1,
|
|
1277
|
+
resume_failed_toast: resume_failed_toast$1,
|
|
1278
|
+
delete_success_toast: delete_success_toast$1,
|
|
1279
|
+
delete_failed_toast: delete_failed_toast$1,
|
|
1280
|
+
create_success_toast: create_success_toast$1,
|
|
1281
|
+
save_yaml_success_toast: save_yaml_success_toast$1,
|
|
1282
|
+
save_replicas_success_toast: save_replicas_success_toast$1,
|
|
1283
|
+
save_replicas_failed_toast: save_replicas_failed_toast$1,
|
|
1284
|
+
port_mapping_title_tooltip: port_mapping_title_tooltip$1,
|
|
1285
|
+
in_cluster_desc: in_cluster_desc$1,
|
|
1286
|
+
in_cluster_ip_desc: in_cluster_ip_desc$1,
|
|
1287
|
+
in_cluster_external_name_desc: in_cluster_external_name_desc$1,
|
|
1288
|
+
out_cluster_ip_desc: out_cluster_ip_desc$1,
|
|
1289
|
+
out_cluster_node_port_desc: out_cluster_node_port_desc$1,
|
|
1290
|
+
out_cluster_lb_desc: out_cluster_lb_desc$1,
|
|
1291
|
+
out_external_name_desc: out_external_name_desc$1,
|
|
1292
|
+
image: image$1,
|
|
1293
|
+
restarts: restarts$1,
|
|
1294
|
+
updated_time: updated_time$1,
|
|
1295
|
+
init_container: init_container$1,
|
|
1296
|
+
regular_container: regular_container$1,
|
|
1297
|
+
suspend: suspend$1,
|
|
1298
|
+
default_backend: default_backend$1,
|
|
1299
|
+
ingress_class: ingress_class$1,
|
|
1300
|
+
pod_ready_num: pod_ready_num$1,
|
|
1301
|
+
pod_complete_num: pod_complete_num$1,
|
|
1302
|
+
pod_replicas_num: pod_replicas_num$1,
|
|
1303
|
+
edit_replicas: edit_replicas$1,
|
|
1304
|
+
dns_record: dns_record$1,
|
|
1305
|
+
basic_info: basic_info$1,
|
|
1306
|
+
pod_selector: pod_selector$1,
|
|
1307
|
+
ingress_rule: ingress_rule$1,
|
|
1308
|
+
egress_rule: egress_rule$1,
|
|
1309
|
+
service_port: service_port$1,
|
|
1310
|
+
pod_port: pod_port$1,
|
|
1311
|
+
path_type: path_type$1,
|
|
1312
|
+
only_support_one_yaml: only_support_one_yaml$1
|
|
1247
1313
|
};
|
|
1248
1314
|
const EN = {
|
|
1249
1315
|
dovetail: dovetail$1
|
|
@@ -1397,6 +1463,7 @@ const out_cluster_ip_desc = "ClusterIP 不支持集群外部访问。";
|
|
|
1397
1463
|
const out_cluster_node_port_desc = "NodePort 展示<strong>节点 IP:nodeport</strong>。";
|
|
1398
1464
|
const out_cluster_lb_desc = "LoadBalancer 展示 <strong>ingress[*].ip</strong>。";
|
|
1399
1465
|
const out_external_name_desc = "ExternalName 展示 <strong>external-ip</strong>。";
|
|
1466
|
+
const only_support_one_yaml = "一次仅支持输入一个 YAML 配置。";
|
|
1400
1467
|
const dovetail = {
|
|
1401
1468
|
copy,
|
|
1402
1469
|
reset_arguments,
|
|
@@ -1549,7 +1616,8 @@ const dovetail = {
|
|
|
1549
1616
|
out_cluster_ip_desc,
|
|
1550
1617
|
out_cluster_node_port_desc,
|
|
1551
1618
|
out_cluster_lb_desc,
|
|
1552
|
-
out_external_name_desc
|
|
1619
|
+
out_external_name_desc,
|
|
1620
|
+
only_support_one_yaml
|
|
1553
1621
|
};
|
|
1554
1622
|
const ZH = {
|
|
1555
1623
|
dovetail
|
|
@@ -6350,7 +6418,7 @@ lodash.exports;
|
|
|
6350
6418
|
function unary(func) {
|
|
6351
6419
|
return ary(func, 1);
|
|
6352
6420
|
}
|
|
6353
|
-
function
|
|
6421
|
+
function wrap(value2, wrapper) {
|
|
6354
6422
|
return partial(castFunction(wrapper), value2);
|
|
6355
6423
|
}
|
|
6356
6424
|
function castArray() {
|
|
@@ -7473,7 +7541,7 @@ lodash.exports;
|
|
|
7473
7541
|
lodash2.valuesIn = valuesIn;
|
|
7474
7542
|
lodash2.without = without;
|
|
7475
7543
|
lodash2.words = words;
|
|
7476
|
-
lodash2.wrap =
|
|
7544
|
+
lodash2.wrap = wrap;
|
|
7477
7545
|
lodash2.xor = xor;
|
|
7478
7546
|
lodash2.xorBy = xorBy;
|
|
7479
7547
|
lodash2.xorWith = xorWith;
|
|
@@ -10471,7 +10539,7 @@ function addDefaultRenderToColumns(columns) {
|
|
|
10471
10539
|
}));
|
|
10472
10540
|
}
|
|
10473
10541
|
const useEagleTable = (params) => {
|
|
10474
|
-
var _a, _b
|
|
10542
|
+
var _a, _b;
|
|
10475
10543
|
const { columns, tableProps, formatter, Dropdown = K8sDropdown } = params;
|
|
10476
10544
|
const [selectedKeys, setSelectedKeys] = useState([]);
|
|
10477
10545
|
const [currentPage, setCurrentPage] = useState((tableProps == null ? void 0 : tableProps.currentPage) || 1);
|
|
@@ -10538,10 +10606,6 @@ const useEagleTable = (params) => {
|
|
|
10538
10606
|
order: "desc"
|
|
10539
10607
|
}]);
|
|
10540
10608
|
}, []);
|
|
10541
|
-
useEffect(() => {
|
|
10542
|
-
setCurrentPage(1);
|
|
10543
|
-
table.setCurrent(1);
|
|
10544
|
-
}, [(_c = params.useTableParams) == null ? void 0 : _c.filters]);
|
|
10545
10609
|
return { tableProps: finalProps, selectedKeys, ...table };
|
|
10546
10610
|
};
|
|
10547
10611
|
function CreateButton() {
|
|
@@ -10665,13 +10729,11 @@ const CronjobJobsTable = ({
|
|
|
10665
10729
|
const [selectedKeys] = useState([]);
|
|
10666
10730
|
const component = useContext(ComponentContext);
|
|
10667
10731
|
const Table$1 = component.Table || Table;
|
|
10668
|
-
const columns = [NameColumnRenderer(i18n2, "jobs"), StateDisplayColumnRenderer(i18n2), NameSpaceColumnRenderer(i18n2), {
|
|
10732
|
+
const columns = useMemo(() => [NameColumnRenderer(i18n2, "jobs"), StateDisplayColumnRenderer(i18n2), NameSpaceColumnRenderer(i18n2), {
|
|
10669
10733
|
...WorkloadImageColumnRenderer(i18n2),
|
|
10670
10734
|
width: 238
|
|
10671
|
-
}, CompletionsCountColumnRenderer(i18n2), DurationColumnRenderer(i18n2), AgeColumnRenderer(i18n2)];
|
|
10672
|
-
const {
|
|
10673
|
-
tableProps
|
|
10674
|
-
} = useEagleTable({
|
|
10735
|
+
}, CompletionsCountColumnRenderer(i18n2), DurationColumnRenderer(i18n2), AgeColumnRenderer(i18n2)], [i18n2]);
|
|
10736
|
+
const params = useMemo(() => ({
|
|
10675
10737
|
columns,
|
|
10676
10738
|
useTableParams: {
|
|
10677
10739
|
resource: "jobs",
|
|
@@ -10689,7 +10751,10 @@ const CronjobJobsTable = ({
|
|
|
10689
10751
|
}]
|
|
10690
10752
|
}
|
|
10691
10753
|
}
|
|
10692
|
-
});
|
|
10754
|
+
}), [columns, owner]);
|
|
10755
|
+
const {
|
|
10756
|
+
tableProps
|
|
10757
|
+
} = useEagleTable(params);
|
|
10693
10758
|
if (!((_a = tableProps.data) == null ? void 0 : _a.length) && !tableProps.loading) {
|
|
10694
10759
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(WidgetErrorContent, {
|
|
10695
10760
|
errorText: i18n2.t("dovetail.no_resource", {
|
|
@@ -10756,7 +10821,7 @@ const EventsTable = ({}) => {
|
|
|
10756
10821
|
],
|
|
10757
10822
|
[i18n2]
|
|
10758
10823
|
);
|
|
10759
|
-
const
|
|
10824
|
+
const params = useMemo(() => ({
|
|
10760
10825
|
columns,
|
|
10761
10826
|
tableProps: {
|
|
10762
10827
|
defaultSize: 50
|
|
@@ -10782,7 +10847,8 @@ const EventsTable = ({}) => {
|
|
|
10782
10847
|
}]
|
|
10783
10848
|
}
|
|
10784
10849
|
}
|
|
10785
|
-
});
|
|
10850
|
+
}), [columns, regardingName, regardingNamespace]);
|
|
10851
|
+
const { tableProps } = useEagleTable(params);
|
|
10786
10852
|
const component = useContext(ComponentContext);
|
|
10787
10853
|
const Table$1 = component.Table || Table;
|
|
10788
10854
|
if (!((_b = tableProps.data) == null ? void 0 : _b.length) && !tableProps.loading) {
|
|
@@ -11060,8 +11126,7 @@ const ShowContent = (props) => {
|
|
|
11060
11126
|
const {
|
|
11061
11127
|
showConfig,
|
|
11062
11128
|
formatter,
|
|
11063
|
-
Dropdown = K8sDropdown
|
|
11064
|
-
data: data2
|
|
11129
|
+
Dropdown = K8sDropdown
|
|
11065
11130
|
} = props;
|
|
11066
11131
|
const kit = useUIKit();
|
|
11067
11132
|
const parsed = useParsed();
|
|
@@ -11069,9 +11134,18 @@ const ShowContent = (props) => {
|
|
|
11069
11134
|
resource
|
|
11070
11135
|
} = useResource();
|
|
11071
11136
|
const id = (_a = parsed == null ? void 0 : parsed.params) == null ? void 0 : _a.id;
|
|
11137
|
+
const {
|
|
11138
|
+
queryResult
|
|
11139
|
+
} = useShow({
|
|
11140
|
+
id,
|
|
11141
|
+
errorNotification: false
|
|
11142
|
+
});
|
|
11072
11143
|
const {
|
|
11073
11144
|
t: t2
|
|
11074
11145
|
} = useTranslation();
|
|
11146
|
+
const {
|
|
11147
|
+
data: data2
|
|
11148
|
+
} = queryResult;
|
|
11075
11149
|
const navigation = useNavigation();
|
|
11076
11150
|
const go = useGo();
|
|
11077
11151
|
const openForm = useOpenForm({
|
|
@@ -17511,7 +17585,7 @@ const PodLog = ({
|
|
|
17511
17585
|
const [logType, setLogType] = useState("realtime");
|
|
17512
17586
|
const [currentItemCount, setCurrentItemCount] = useState(0);
|
|
17513
17587
|
const [paused, setPaused] = useState(false);
|
|
17514
|
-
const [
|
|
17588
|
+
const [wrap, setWrap] = useState(false);
|
|
17515
17589
|
const [linesBehind, setLinesBehind] = useState(0);
|
|
17516
17590
|
const logViewerRef = useRef(null);
|
|
17517
17591
|
const abortControllerRef = useRef(null);
|
|
@@ -17661,7 +17735,7 @@ const PodLog = ({
|
|
|
17661
17735
|
}), /* @__PURE__ */ jsxRuntimeExports.jsxs("span", {
|
|
17662
17736
|
className: ToolbarAreaStyle,
|
|
17663
17737
|
children: [/* @__PURE__ */ jsxRuntimeExports.jsx(kit.checkbox, {
|
|
17664
|
-
checked:
|
|
17738
|
+
checked: wrap,
|
|
17665
17739
|
onChange: (e2) => setWrap(e2.target.checked),
|
|
17666
17740
|
children: t2("dovetail.auto_wrap")
|
|
17667
17741
|
}), /* @__PURE__ */ jsxRuntimeExports.jsx(kit.button, {
|
|
@@ -17686,7 +17760,7 @@ const PodLog = ({
|
|
|
17686
17760
|
hasLineNumbers: true,
|
|
17687
17761
|
data: logs,
|
|
17688
17762
|
theme: "light",
|
|
17689
|
-
isTextWrapped:
|
|
17763
|
+
isTextWrapped: wrap,
|
|
17690
17764
|
onScroll
|
|
17691
17765
|
})
|
|
17692
17766
|
})]
|
|
@@ -18200,11 +18274,11 @@ const PageShow = (props) => {
|
|
|
18200
18274
|
retry: 1
|
|
18201
18275
|
},
|
|
18202
18276
|
errorNotification: () => {
|
|
18203
|
-
var _a2
|
|
18277
|
+
var _a2;
|
|
18204
18278
|
return {
|
|
18205
18279
|
message: i18n2.t("dovetail.fail_get_detail", {
|
|
18206
|
-
resource:
|
|
18207
|
-
name: (
|
|
18280
|
+
resource: resource == null ? void 0 : resource.name,
|
|
18281
|
+
name: (_a2 = parsed == null ? void 0 : parsed.params) == null ? void 0 : _a2.id,
|
|
18208
18282
|
interpolation: { escapeValue: false }
|
|
18209
18283
|
}),
|
|
18210
18284
|
description: "Error",
|
|
@@ -18212,13 +18286,13 @@ const PageShow = (props) => {
|
|
|
18212
18286
|
};
|
|
18213
18287
|
}
|
|
18214
18288
|
});
|
|
18215
|
-
const { isLoading, isError
|
|
18289
|
+
const { isLoading, isError } = queryResult;
|
|
18216
18290
|
useEffect(() => {
|
|
18217
18291
|
if (isError && resource) {
|
|
18218
18292
|
nav.list(resource);
|
|
18219
18293
|
}
|
|
18220
18294
|
}, [isError, nav, resource]);
|
|
18221
|
-
return isLoading ? /* @__PURE__ */ jsxRuntimeExports.jsx(Loading, {}) : /* @__PURE__ */ jsxRuntimeExports.jsx(ShowContent, { ...props
|
|
18295
|
+
return isLoading ? /* @__PURE__ */ jsxRuntimeExports.jsx(Loading, {}) : /* @__PURE__ */ jsxRuntimeExports.jsx(ShowContent, { ...props });
|
|
18222
18296
|
};
|
|
18223
18297
|
const index_17v8shn = "";
|
|
18224
18298
|
const WrapperStyle$1 = "w1akirqw";
|
|
@@ -18667,9 +18741,9 @@ const NamespacesFilter = ({
|
|
|
18667
18741
|
})
|
|
18668
18742
|
});
|
|
18669
18743
|
};
|
|
18670
|
-
function
|
|
18744
|
+
function useNamespaceRefineFilter() {
|
|
18671
18745
|
const { value: nsFilters = [] } = useNamespacesFilter();
|
|
18672
|
-
|
|
18746
|
+
const filters = useMemo(() => ({
|
|
18673
18747
|
permanent: [
|
|
18674
18748
|
{
|
|
18675
18749
|
operator: "or",
|
|
@@ -18680,7 +18754,8 @@ function useNamespaceFilter() {
|
|
|
18680
18754
|
}))
|
|
18681
18755
|
}
|
|
18682
18756
|
]
|
|
18683
|
-
};
|
|
18757
|
+
}), [nsFilters]);
|
|
18758
|
+
return filters;
|
|
18684
18759
|
}
|
|
18685
18760
|
const index_hp158y = "";
|
|
18686
18761
|
const ListPageStyle = "laykzsq";
|
|
@@ -18746,7 +18821,7 @@ function ResourceList(props) {
|
|
|
18746
18821
|
const { formatter, columns, Dropdown, noShow } = props.config;
|
|
18747
18822
|
const { i18n: i18n2 } = useTranslation();
|
|
18748
18823
|
const nameRenderer = noShow ? PlainTextNameColumnRenderer(i18n2) : NameColumnRenderer(i18n2);
|
|
18749
|
-
const filters =
|
|
18824
|
+
const filters = useNamespaceRefineFilter();
|
|
18750
18825
|
const { tableProps, selectedKeys } = useEagleTable({
|
|
18751
18826
|
useTableParams: {
|
|
18752
18827
|
filters
|
|
@@ -18759,6 +18834,9 @@ function ResourceList(props) {
|
|
|
18759
18834
|
formatter,
|
|
18760
18835
|
Dropdown
|
|
18761
18836
|
});
|
|
18837
|
+
useEffect(() => {
|
|
18838
|
+
tableProps.onPageChange(1);
|
|
18839
|
+
}, [filters]);
|
|
18762
18840
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(ListPage, { selectedKeys, tableProps });
|
|
18763
18841
|
}
|
|
18764
18842
|
function ResourceShow(props) {
|
|
@@ -22777,7 +22855,7 @@ const Separator = () => {
|
|
|
22777
22855
|
});
|
|
22778
22856
|
};
|
|
22779
22857
|
const MonacoYamlEditor = React__default.lazy(() => Promise.resolve().then(() => MonacoYamlEditor$2));
|
|
22780
|
-
const MonacoYamlDiffEditor = React__default.lazy(() => import("./MonacoYamlDiffEditor-
|
|
22858
|
+
const MonacoYamlDiffEditor = React__default.lazy(() => import("./MonacoYamlDiffEditor-68215003.js"));
|
|
22781
22859
|
const YamlEditorComponent = forwardRef(
|
|
22782
22860
|
function YamlEditorComponent2(props, ref) {
|
|
22783
22861
|
const {
|
|
@@ -23846,7 +23924,7 @@ const DrawerShow = (props) => {
|
|
|
23846
23924
|
const parsed = useParsed();
|
|
23847
23925
|
const nav = useNavigation();
|
|
23848
23926
|
const { queryResult } = useShow({ id: (_a = parsed == null ? void 0 : parsed.params) == null ? void 0 : _a.id });
|
|
23849
|
-
const { isLoading
|
|
23927
|
+
const { isLoading } = queryResult;
|
|
23850
23928
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
23851
23929
|
Drawer,
|
|
23852
23930
|
{
|
|
@@ -23855,7 +23933,7 @@ const DrawerShow = (props) => {
|
|
|
23855
23933
|
onClose: () => nav.goBack(),
|
|
23856
23934
|
width: "50%",
|
|
23857
23935
|
visible: !!((_b = parsed == null ? void 0 : parsed.params) == null ? void 0 : _b.id),
|
|
23858
|
-
children: isLoading ? /* @__PURE__ */ jsxRuntimeExports.jsx(kit.loading, {}) : /* @__PURE__ */ jsxRuntimeExports.jsx(ShowContent, { ...props
|
|
23936
|
+
children: isLoading ? /* @__PURE__ */ jsxRuntimeExports.jsx(kit.loading, {}) : /* @__PURE__ */ jsxRuntimeExports.jsx(ShowContent, { ...props })
|
|
23859
23937
|
}
|
|
23860
23938
|
);
|
|
23861
23939
|
};
|
|
@@ -24672,191 +24750,192 @@ const relationPlugin = new RelationPlugin();
|
|
|
24672
24750
|
const ProviderPlugins = [relationPlugin, modelPlugin];
|
|
24673
24751
|
const dovetailRefineI18n = i18n;
|
|
24674
24752
|
export {
|
|
24675
|
-
|
|
24753
|
+
WorkloadDropdown as $,
|
|
24676
24754
|
AgeColumnRenderer as A,
|
|
24677
|
-
|
|
24755
|
+
useDownloadYAML as B,
|
|
24678
24756
|
CommonSorter as C,
|
|
24679
24757
|
DurationColumnRenderer as D,
|
|
24680
|
-
|
|
24681
|
-
|
|
24682
|
-
|
|
24683
|
-
|
|
24758
|
+
useEdit as E,
|
|
24759
|
+
useGlobalStore as F,
|
|
24760
|
+
useOpenForm as G,
|
|
24761
|
+
Breadcrumb as H,
|
|
24684
24762
|
IngressRulesColumnRenderer as I,
|
|
24685
|
-
|
|
24686
|
-
|
|
24687
|
-
|
|
24763
|
+
NameInputWidget as J,
|
|
24764
|
+
dnsSubDomainRules as K,
|
|
24765
|
+
rfc1123LabelRules as L,
|
|
24688
24766
|
ModalStyle as M,
|
|
24689
24767
|
NameColumnRenderer as N,
|
|
24690
|
-
|
|
24768
|
+
rfc1035LabelRules as O,
|
|
24691
24769
|
PlainTextNameColumnRenderer as P,
|
|
24692
|
-
|
|
24770
|
+
NamespaceSelectWidget as Q,
|
|
24693
24771
|
ReplicasColumnRenderer as R,
|
|
24694
24772
|
StateDisplayColumnRenderer as S,
|
|
24695
|
-
|
|
24696
|
-
|
|
24697
|
-
|
|
24773
|
+
namespaceRules as T,
|
|
24774
|
+
KeyValueListWidget as U,
|
|
24775
|
+
MetadataForm as V,
|
|
24698
24776
|
WorkloadImageColumnRenderer as W,
|
|
24699
|
-
|
|
24700
|
-
|
|
24701
|
-
|
|
24702
|
-
|
|
24703
|
-
|
|
24704
|
-
|
|
24705
|
-
|
|
24706
|
-
|
|
24707
|
-
|
|
24708
|
-
|
|
24709
|
-
|
|
24710
|
-
|
|
24711
|
-
|
|
24712
|
-
|
|
24713
|
-
|
|
24714
|
-
|
|
24715
|
-
|
|
24716
|
-
|
|
24717
|
-
|
|
24718
|
-
|
|
24719
|
-
|
|
24720
|
-
|
|
24721
|
-
|
|
24722
|
-
|
|
24723
|
-
|
|
24724
|
-
|
|
24725
|
-
|
|
24726
|
-
|
|
24727
|
-
|
|
24728
|
-
|
|
24729
|
-
|
|
24730
|
-
|
|
24731
|
-
|
|
24732
|
-
|
|
24733
|
-
|
|
24734
|
-
|
|
24735
|
-
|
|
24736
|
-
|
|
24737
|
-
|
|
24738
|
-
|
|
24739
|
-
|
|
24740
|
-
|
|
24741
|
-
|
|
24742
|
-
|
|
24743
|
-
|
|
24744
|
-
|
|
24745
|
-
|
|
24746
|
-
|
|
24747
|
-
|
|
24748
|
-
|
|
24749
|
-
|
|
24750
|
-
|
|
24751
|
-
|
|
24752
|
-
|
|
24753
|
-
|
|
24754
|
-
|
|
24755
|
-
|
|
24756
|
-
|
|
24757
|
-
|
|
24758
|
-
|
|
24759
|
-
|
|
24760
|
-
|
|
24761
|
-
|
|
24762
|
-
|
|
24763
|
-
|
|
24764
|
-
|
|
24765
|
-
|
|
24766
|
-
|
|
24767
|
-
|
|
24768
|
-
|
|
24769
|
-
|
|
24770
|
-
|
|
24771
|
-
|
|
24772
|
-
|
|
24773
|
-
|
|
24774
|
-
|
|
24775
|
-
|
|
24776
|
-
|
|
24777
|
-
|
|
24778
|
-
|
|
24779
|
-
|
|
24780
|
-
|
|
24781
|
-
|
|
24782
|
-
|
|
24783
|
-
|
|
24784
|
-
|
|
24785
|
-
|
|
24786
|
-
|
|
24787
|
-
|
|
24788
|
-
|
|
24789
|
-
|
|
24790
|
-
|
|
24791
|
-
|
|
24792
|
-
|
|
24793
|
-
|
|
24794
|
-
|
|
24795
|
-
|
|
24796
|
-
|
|
24797
|
-
|
|
24798
|
-
|
|
24799
|
-
|
|
24800
|
-
|
|
24801
|
-
|
|
24802
|
-
|
|
24803
|
-
|
|
24804
|
-
|
|
24805
|
-
|
|
24806
|
-
|
|
24807
|
-
|
|
24808
|
-
|
|
24809
|
-
|
|
24810
|
-
|
|
24811
|
-
|
|
24812
|
-
|
|
24813
|
-
|
|
24814
|
-
|
|
24815
|
-
|
|
24816
|
-
|
|
24817
|
-
|
|
24818
|
-
|
|
24819
|
-
|
|
24820
|
-
|
|
24821
|
-
|
|
24822
|
-
|
|
24823
|
-
|
|
24824
|
-
|
|
24825
|
-
|
|
24826
|
-
|
|
24827
|
-
|
|
24828
|
-
|
|
24829
|
-
|
|
24830
|
-
|
|
24831
|
-
|
|
24832
|
-
|
|
24833
|
-
|
|
24834
|
-
|
|
24835
|
-
|
|
24836
|
-
|
|
24837
|
-
|
|
24838
|
-
|
|
24777
|
+
PageShow as X,
|
|
24778
|
+
Time as Y,
|
|
24779
|
+
ConditionsTable as Z,
|
|
24780
|
+
PodContainersTable as _,
|
|
24781
|
+
useSchema as a,
|
|
24782
|
+
StateTagStyle as a$,
|
|
24783
|
+
ReplicasDropdown as a0,
|
|
24784
|
+
CreateButton as a1,
|
|
24785
|
+
ImageNames as a2,
|
|
24786
|
+
ResourceList as a3,
|
|
24787
|
+
ResourceShow as a4,
|
|
24788
|
+
ResourceForm as a5,
|
|
24789
|
+
ResourceCRUD as a6,
|
|
24790
|
+
WorkloadPodsTable as a7,
|
|
24791
|
+
CronJobDropdown as a8,
|
|
24792
|
+
ResourceUsageBar as a9,
|
|
24793
|
+
AgeField as aA,
|
|
24794
|
+
LabelsField as aB,
|
|
24795
|
+
AnnotationsField as aC,
|
|
24796
|
+
ServiceInnerClusterAccessField as aD,
|
|
24797
|
+
ServiceOutClusterAccessField as aE,
|
|
24798
|
+
PodSelectorField as aF,
|
|
24799
|
+
PortsTableField as aG,
|
|
24800
|
+
DurationField as aH,
|
|
24801
|
+
EventsTab as aI,
|
|
24802
|
+
PodLogTab as aJ,
|
|
24803
|
+
BasicGroup as aK,
|
|
24804
|
+
PodsGroup as aL,
|
|
24805
|
+
PodContainersGroup as aM,
|
|
24806
|
+
ServicePodsGroup as aN,
|
|
24807
|
+
ConditionsGroup as aO,
|
|
24808
|
+
SecretDataGroup as aP,
|
|
24809
|
+
JobsGroup as aQ,
|
|
24810
|
+
IngressRulesGroup as aR,
|
|
24811
|
+
PodSelectorGroup as aS,
|
|
24812
|
+
PortsGroup as aT,
|
|
24813
|
+
DataGroup as aU,
|
|
24814
|
+
NetworkPolicyIngressRulesGroup as aV,
|
|
24815
|
+
NetworkPolicyEgressRulesGroup as aW,
|
|
24816
|
+
ShowGroupComponent as aX,
|
|
24817
|
+
ShowContent as aY,
|
|
24818
|
+
DeleteManyButton as aZ,
|
|
24819
|
+
ListPage as a_,
|
|
24820
|
+
WorkloadReplicasForm as aa,
|
|
24821
|
+
WorkloadReplicas as ab,
|
|
24822
|
+
CronjobJobsTable as ac,
|
|
24823
|
+
KeyValue as ad,
|
|
24824
|
+
KeyValueAnnotation as ae,
|
|
24825
|
+
KeyValueSecret as af,
|
|
24826
|
+
Separator as ag,
|
|
24827
|
+
YamlEditorComponent as ah,
|
|
24828
|
+
DeleteButton as ai,
|
|
24829
|
+
Layout as aj,
|
|
24830
|
+
AreaType as ak,
|
|
24831
|
+
ImageField as al,
|
|
24832
|
+
ReplicaField as am,
|
|
24833
|
+
ConditionsField as an,
|
|
24834
|
+
PodsField as ao,
|
|
24835
|
+
JobsField as ap,
|
|
24836
|
+
DataField as aq,
|
|
24837
|
+
SecretDataField as ar,
|
|
24838
|
+
StartTimeField as as,
|
|
24839
|
+
ServiceTypeField as at,
|
|
24840
|
+
ClusterIpField as au,
|
|
24841
|
+
SessionAffinityField as av,
|
|
24842
|
+
ServicePodsField as aw,
|
|
24843
|
+
IngressRulesTableTabField as ax,
|
|
24844
|
+
EventsTableTabField as ay,
|
|
24845
|
+
NamespaceField as az,
|
|
24846
|
+
useDeleteModal as b,
|
|
24847
|
+
EventModel as b$,
|
|
24848
|
+
StateTag as b0,
|
|
24849
|
+
DrawerShow as b1,
|
|
24850
|
+
Menu as b2,
|
|
24851
|
+
EditButton as b3,
|
|
24852
|
+
ReferenceLink as b4,
|
|
24853
|
+
ResourceLink as b5,
|
|
24854
|
+
NS_STORE_KEY as b6,
|
|
24855
|
+
ALL_NS as b7,
|
|
24856
|
+
useNamespacesFilter as b8,
|
|
24857
|
+
NamespacesFilter as b9,
|
|
24858
|
+
NETWORK_POLICY_INIT_VALUE as bA,
|
|
24859
|
+
CONFIG_MAP_INIT_VALUE as bB,
|
|
24860
|
+
SERVER_INSTANCE_INIT_VALUE as bC,
|
|
24861
|
+
TIMESTAMP_LABEL as bD,
|
|
24862
|
+
SECRET_OPAQUE_INIT_VALUE as bE,
|
|
24863
|
+
SECRET_IMAGE_REPO_INIT_VALUE as bF,
|
|
24864
|
+
SECRET_BASIC_AUTH_INIT_VALUE as bG,
|
|
24865
|
+
SECRET_SSH_AUTH_INIT_VALUE as bH,
|
|
24866
|
+
SECRET_TLS_INIT_VALUE as bI,
|
|
24867
|
+
SECRET_CUSTOM_INIT_VALUE as bJ,
|
|
24868
|
+
WorkloadState as bK,
|
|
24869
|
+
AccessControlAuth as bL,
|
|
24870
|
+
Dovetail as bM,
|
|
24871
|
+
RESOURCE_GROUP as bN,
|
|
24872
|
+
FormType as bO,
|
|
24873
|
+
ComponentContext as bP,
|
|
24874
|
+
GlobalStoreContext as bQ,
|
|
24875
|
+
ConfigsContext as bR,
|
|
24876
|
+
IngressModel as bS,
|
|
24877
|
+
NetworkPolicyModel as bT,
|
|
24878
|
+
JobModel as bU,
|
|
24879
|
+
WorkloadModel as bV,
|
|
24880
|
+
WorkloadBaseModel as bW,
|
|
24881
|
+
PodModel as bX,
|
|
24882
|
+
PodMetricsModel as bY,
|
|
24883
|
+
ResourceModel as bZ,
|
|
24884
|
+
CronJobModel as b_,
|
|
24885
|
+
FormModal as ba,
|
|
24886
|
+
RefineFormContent as bb,
|
|
24887
|
+
RefineFormPage as bc,
|
|
24888
|
+
SchemaStrategy as bd,
|
|
24889
|
+
YamlForm as be,
|
|
24890
|
+
useRefineForm as bf,
|
|
24891
|
+
ServiceInClusterAccessComponent as bg,
|
|
24892
|
+
ServiceOutClusterAccessComponent as bh,
|
|
24893
|
+
Tags as bi,
|
|
24894
|
+
TextTags as bj,
|
|
24895
|
+
PodLog as bk,
|
|
24896
|
+
NetworkPolicyRulesViewer as bl,
|
|
24897
|
+
Tabs as bm,
|
|
24898
|
+
BASE_INIT_VALUE as bn,
|
|
24899
|
+
DEPLOYMENT_INIT_VALUE as bo,
|
|
24900
|
+
CRONJOB_INIT_VALUE as bp,
|
|
24901
|
+
DAEMONSET_INIT_VALUE as bq,
|
|
24902
|
+
JOB_INIT_VALUE as br,
|
|
24903
|
+
STATEFULSET_INIT_VALUE as bs,
|
|
24904
|
+
POD_INIT_VALUE as bt,
|
|
24905
|
+
SERVICE_CLUSTER_IP_INIT_VALUE as bu,
|
|
24906
|
+
SERVICE_NODE_PORT_INIT_VALUE as bv,
|
|
24907
|
+
SERVICE_LOAD_BALANCER_INIT_VALUE as bw,
|
|
24908
|
+
SERVICE_EXTERNAL_NAME_INIT_VALUE as bx,
|
|
24909
|
+
SERVICE_HEADLESS_INIT_VALUE as by,
|
|
24910
|
+
INGRESS_INIT_VALUE as bz,
|
|
24911
|
+
NameSpaceColumnRenderer as c,
|
|
24912
|
+
DeploymentModel as c0,
|
|
24913
|
+
DaemonSetModel as c1,
|
|
24914
|
+
StatefulSetModel as c2,
|
|
24915
|
+
ServiceTypeEnum as c3,
|
|
24916
|
+
ServiceModel as c4,
|
|
24917
|
+
ProviderPlugins as c5,
|
|
24839
24918
|
dovetailRefineI18n as d,
|
|
24840
|
-
|
|
24841
|
-
|
|
24842
|
-
|
|
24843
|
-
|
|
24844
|
-
|
|
24919
|
+
WorkloadRestartsColumnRenderer as e,
|
|
24920
|
+
NodeNameColumnRenderer as f,
|
|
24921
|
+
RestartCountColumnRenderer as g,
|
|
24922
|
+
CompletionsCountColumnRenderer as h,
|
|
24923
|
+
ServiceTypeColumnRenderer as i,
|
|
24845
24924
|
jsxRuntimeExports as j,
|
|
24846
|
-
|
|
24847
|
-
|
|
24848
|
-
|
|
24849
|
-
|
|
24850
|
-
|
|
24851
|
-
|
|
24852
|
-
|
|
24925
|
+
ServiceInClusterAccessTitle as k,
|
|
24926
|
+
ServiceInClusterAccessColumnRenderer as l,
|
|
24927
|
+
ServiceOutClusterAccessTitle as m,
|
|
24928
|
+
ServiceOutClusterAccessColumnRenderer as n,
|
|
24929
|
+
PodWorkloadColumnRenderer as o,
|
|
24930
|
+
IngressDefaultBackendColumnRenderer as p,
|
|
24931
|
+
IngressClassColumnRenderer as q,
|
|
24853
24932
|
routerProvider as r,
|
|
24854
|
-
|
|
24855
|
-
|
|
24856
|
-
|
|
24857
|
-
|
|
24858
|
-
|
|
24859
|
-
|
|
24860
|
-
|
|
24861
|
-
|
|
24933
|
+
IngressTlsColumnRenderer as s,
|
|
24934
|
+
PodContainersNumColumnRenderer as t,
|
|
24935
|
+
useNamespaceRefineFilter as u,
|
|
24936
|
+
DataKeysColumnRenderer as v,
|
|
24937
|
+
PortMappingColumnRenderer as w,
|
|
24938
|
+
ColumnKeys as x,
|
|
24939
|
+
addDefaultRenderToColumns as y,
|
|
24940
|
+
useEagleTable as z
|
|
24862
24941
|
};
|