@dovetail-v2/refine 0.0.46 → 0.0.48-alpha.0
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-68215003.js → MonacoYamlDiffEditor-ed04648b.js} +1 -1
- package/dist/{index-238ec29f.js → index-04f52e89.js} +56 -39
- package/dist/refine.js +1 -1
- package/dist/refine.umd.cjs +55 -38
- package/dist/style.css +4 -4
- package/lib/src/components/EventsTable/EventsTable.d.ts +5 -1
- package/lib/src/components/ModalContextProvider/index.d.ts +12 -0
- package/lib/src/components/NetworkPolicyRulesTable/NetworkPolicyRulesTable.d.ts +2 -1
- package/lib/src/components/YamlForm/index.d.ts +4 -0
- package/lib/src/hooks/useEagleForm.d.ts +2 -1
- package/lib/src/hooks/useModal.d.ts +0 -0
- package/lib/src/hooks/useNamespaceFilter.d.ts +5 -0
- package/lib/src/i18n.d.ts +2 -0
- package/lib/src/locales/en-US/index.d.ts +1 -0
- package/lib/src/locales/zh-CN/index.d.ts +1 -0
- package/lib/src/model/cronjob-model.d.ts +9 -0
- package/lib/src/model/index.d.ts +6 -0
- package/lib/src/model/job-model.d.ts +10 -0
- package/lib/src/model/pod-metrics-model.d.ts +7 -0
- package/lib/src/model/pod-model.d.ts +15 -0
- package/lib/src/model/resource-model.d.ts +17 -0
- package/lib/src/model/workload-model.d.ts +17 -0
- package/lib/src/types/metric.d.ts +25 -0
- package/package.json +2 -2
- 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.js +0 -56
- package/lib/src/components/Form/MetadataForm.js +0 -9
- package/lib/src/components/Form/NameInputWidget.js +0 -50
- package/lib/src/components/Form/NamespaceSelectWidget.js +0 -21
- package/lib/src/components/Form/index.js +0 -4
- 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.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.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.js +0 -77
- 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.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.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.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.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.js +0 -6
- package/lib/src/pages/statefulsets/index.js +0 -3
- package/lib/src/pages/statefulsets/list/index.js +0 -26
- 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
|
@@ -1010,7 +1010,7 @@ function useTranslation(ns) {
|
|
|
1010
1010
|
}
|
|
1011
1011
|
const copy$1 = "Copy";
|
|
1012
1012
|
const reset_arguments$1 = "Reset";
|
|
1013
|
-
const view_changes$1 = "Show
|
|
1013
|
+
const view_changes$1 = "Show diff";
|
|
1014
1014
|
const back_to_edit$1 = "Edit";
|
|
1015
1015
|
const configure_file$1 = "Configuration";
|
|
1016
1016
|
const yaml_format_wrong$1 = "Configuration is in an invalid YAML format.";
|
|
@@ -1029,7 +1029,7 @@ const pod$1 = "Pod";
|
|
|
1029
1029
|
const cancel$1 = "Cancel";
|
|
1030
1030
|
const create$1 = "Create";
|
|
1031
1031
|
const confirm_delete_text$1 = "Are you sure you want to delete the {{kind}} <0>{{target}}</0>?";
|
|
1032
|
-
const edit$1 = "
|
|
1032
|
+
const edit$1 = "Edit";
|
|
1033
1033
|
const namespace$1 = "Namespace";
|
|
1034
1034
|
const created_time$1 = "Creation time";
|
|
1035
1035
|
const label$1 = "Label";
|
|
@@ -1047,7 +1047,7 @@ const save$1 = "Save";
|
|
|
1047
1047
|
const workload$1 = "Workload";
|
|
1048
1048
|
const empty$1 = "No data available";
|
|
1049
1049
|
const schedule$1 = "Schedule";
|
|
1050
|
-
const lastScheduleTime$1 = "Last
|
|
1050
|
+
const lastScheduleTime$1 = "Last schedule";
|
|
1051
1051
|
const duration$1 = "Duration";
|
|
1052
1052
|
const started$1 = "Start time";
|
|
1053
1053
|
const container$1 = "Container";
|
|
@@ -1074,7 +1074,7 @@ const rule$1 = "Rule";
|
|
|
1074
1074
|
const port$1 = "Port";
|
|
1075
1075
|
const cert$1 = "Certificate";
|
|
1076
1076
|
const ip_address$1 = "IP address";
|
|
1077
|
-
const last_seen$1 = "Last
|
|
1077
|
+
const last_seen$1 = "Last seen";
|
|
1078
1078
|
const node_port$1 = "NodePort";
|
|
1079
1079
|
const protocol$1 = "Protocol";
|
|
1080
1080
|
const key$1 = "Key";
|
|
@@ -1144,9 +1144,9 @@ const regular_container$1 = "Regular container";
|
|
|
1144
1144
|
const suspend$1 = "Suspend";
|
|
1145
1145
|
const default_backend$1 = "Default backend";
|
|
1146
1146
|
const ingress_class$1 = "IngressClass";
|
|
1147
|
-
const pod_ready_num$1 = "Ready
|
|
1148
|
-
const pod_complete_num$1 = "Completion
|
|
1149
|
-
const pod_replicas_num$1 = "Desired
|
|
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
1150
|
const edit_replicas$1 = "Edit expected number of replicas";
|
|
1151
1151
|
const dns_record$1 = "DNS record";
|
|
1152
1152
|
const basic_info$1 = "Basic information";
|
|
@@ -1157,6 +1157,7 @@ const service_port$1 = "Service port";
|
|
|
1157
1157
|
const pod_port$1 = "Pod port";
|
|
1158
1158
|
const path_type$1 = "Path type";
|
|
1159
1159
|
const only_support_one_yaml$1 = "Only one YAML configuration is supported at a time.";
|
|
1160
|
+
const not_support$1 = "Not supported";
|
|
1160
1161
|
const dovetail$1 = {
|
|
1161
1162
|
copy: copy$1,
|
|
1162
1163
|
reset_arguments: reset_arguments$1,
|
|
@@ -1309,7 +1310,8 @@ const dovetail$1 = {
|
|
|
1309
1310
|
service_port: service_port$1,
|
|
1310
1311
|
pod_port: pod_port$1,
|
|
1311
1312
|
path_type: path_type$1,
|
|
1312
|
-
only_support_one_yaml: only_support_one_yaml$1
|
|
1313
|
+
only_support_one_yaml: only_support_one_yaml$1,
|
|
1314
|
+
not_support: not_support$1
|
|
1313
1315
|
};
|
|
1314
1316
|
const EN = {
|
|
1315
1317
|
dovetail: dovetail$1
|
|
@@ -1464,6 +1466,7 @@ const out_cluster_node_port_desc = "NodePort 展示<strong>节点 IP:nodeport<
|
|
|
1464
1466
|
const out_cluster_lb_desc = "LoadBalancer 展示 <strong>ingress[*].ip</strong>。";
|
|
1465
1467
|
const out_external_name_desc = "ExternalName 展示 <strong>external-ip</strong>。";
|
|
1466
1468
|
const only_support_one_yaml = "一次仅支持输入一个 YAML 配置。";
|
|
1469
|
+
const not_support = "不支持";
|
|
1467
1470
|
const dovetail = {
|
|
1468
1471
|
copy,
|
|
1469
1472
|
reset_arguments,
|
|
@@ -1617,7 +1620,8 @@ const dovetail = {
|
|
|
1617
1620
|
out_cluster_node_port_desc,
|
|
1618
1621
|
out_cluster_lb_desc,
|
|
1619
1622
|
out_external_name_desc,
|
|
1620
|
-
only_support_one_yaml
|
|
1623
|
+
only_support_one_yaml,
|
|
1624
|
+
not_support
|
|
1621
1625
|
};
|
|
1622
1626
|
const ZH = {
|
|
1623
1627
|
dovetail
|
|
@@ -8102,7 +8106,7 @@ var cx = function cx2() {
|
|
|
8102
8106
|
};
|
|
8103
8107
|
var cx_default = cx;
|
|
8104
8108
|
const ConfigsContext = createContext({});
|
|
8105
|
-
const
|
|
8109
|
+
const useDeleteModal_vv2pzj = "";
|
|
8106
8110
|
const TextStyle = "t1vq0ett";
|
|
8107
8111
|
const TipStyle = "t139onst";
|
|
8108
8112
|
const NameStyle$1 = "n18lzor8";
|
|
@@ -8594,7 +8598,7 @@ var styled_default = process.env.NODE_ENV !== "production" ? new Proxy(styled, {
|
|
|
8594
8598
|
return o(prop);
|
|
8595
8599
|
}
|
|
8596
8600
|
}) : styled;
|
|
8597
|
-
const
|
|
8601
|
+
const index_6dotpx = "";
|
|
8598
8602
|
const ErrorWrapper = /* @__PURE__ */ styled_default("div")({
|
|
8599
8603
|
name: "ErrorWrapper",
|
|
8600
8604
|
class: "egn3dbn",
|
|
@@ -10002,11 +10006,15 @@ const ServiceInClusterAccessComponent = ({
|
|
|
10002
10006
|
service
|
|
10003
10007
|
}) => {
|
|
10004
10008
|
const spec = service._rawYaml.spec;
|
|
10005
|
-
switch (
|
|
10009
|
+
switch (service.displayType) {
|
|
10006
10010
|
case ServiceTypeEnum.ExternalName:
|
|
10007
10011
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(ValueDisplay, {
|
|
10008
10012
|
value: service.dnsRecord
|
|
10009
10013
|
});
|
|
10014
|
+
case ServiceTypeEnum.Headless:
|
|
10015
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(ValueDisplay, {
|
|
10016
|
+
value: ""
|
|
10017
|
+
});
|
|
10010
10018
|
default:
|
|
10011
10019
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(ValueDisplay, {
|
|
10012
10020
|
value: spec.clusterIP
|
|
@@ -10021,6 +10029,9 @@ const ServiceOutClusterAccessComponent = ({
|
|
|
10021
10029
|
breakLine = true
|
|
10022
10030
|
}) => {
|
|
10023
10031
|
var _a, _b, _c, _d;
|
|
10032
|
+
const {
|
|
10033
|
+
i18n: i18n2
|
|
10034
|
+
} = useTranslation();
|
|
10024
10035
|
const spec = service._rawYaml.spec;
|
|
10025
10036
|
const status = service._rawYaml.status;
|
|
10026
10037
|
let content = "-";
|
|
@@ -10053,6 +10064,9 @@ const ServiceOutClusterAccessComponent = ({
|
|
|
10053
10064
|
}) => ip).join(breakLine ? "\n" : ", ")
|
|
10054
10065
|
});
|
|
10055
10066
|
break;
|
|
10067
|
+
case ServiceTypeEnum.ClusterIP:
|
|
10068
|
+
content = i18n2.t("dovetail.not_support");
|
|
10069
|
+
break;
|
|
10056
10070
|
default:
|
|
10057
10071
|
content = /* @__PURE__ */ jsxRuntimeExports.jsx(ValueDisplay, {
|
|
10058
10072
|
value: ""
|
|
@@ -10224,6 +10238,7 @@ const Time = (props) => {
|
|
|
10224
10238
|
setText(dayjs(date).fromNow());
|
|
10225
10239
|
};
|
|
10226
10240
|
i18n2.on("languageChanged", onChange);
|
|
10241
|
+
setText(dayjs(date).fromNow());
|
|
10227
10242
|
return () => i18n2.off("languageChanged", onChange);
|
|
10228
10243
|
}, [date, i18n2]);
|
|
10229
10244
|
if (!date)
|
|
@@ -10270,14 +10285,14 @@ const ConditionsTable = ({ conditions = [] }) => {
|
|
|
10270
10285
|
sortable: true
|
|
10271
10286
|
},
|
|
10272
10287
|
{
|
|
10273
|
-
key: "
|
|
10288
|
+
key: "lastTransitionTime",
|
|
10274
10289
|
display: true,
|
|
10275
|
-
dataIndex: "
|
|
10290
|
+
dataIndex: "lastTransitionTime",
|
|
10276
10291
|
title: t2("dovetail.updated_time"),
|
|
10277
10292
|
sortable: true,
|
|
10278
10293
|
width: 120,
|
|
10279
|
-
render: (value2
|
|
10280
|
-
const time = value2
|
|
10294
|
+
render: (value2) => {
|
|
10295
|
+
const time = value2;
|
|
10281
10296
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(Time, { date: new Date(time) });
|
|
10282
10297
|
}
|
|
10283
10298
|
},
|
|
@@ -10776,11 +10791,9 @@ const CronjobJobsTable = ({
|
|
|
10776
10791
|
})]
|
|
10777
10792
|
});
|
|
10778
10793
|
};
|
|
10779
|
-
const EventsTable = ({}) => {
|
|
10780
|
-
var _a
|
|
10794
|
+
const EventsTable = ({ uid }) => {
|
|
10795
|
+
var _a;
|
|
10781
10796
|
const { i18n: i18n2 } = useTranslation();
|
|
10782
|
-
const parsed = useParsed();
|
|
10783
|
-
const [regardingNamespace, regardingName] = (_a = parsed == null ? void 0 : parsed.id) == null ? void 0 : _a.split("/");
|
|
10784
10797
|
const columns = useMemo(
|
|
10785
10798
|
() => [
|
|
10786
10799
|
{
|
|
@@ -10834,24 +10847,19 @@ const EventsTable = ({}) => {
|
|
|
10834
10847
|
operator: "and",
|
|
10835
10848
|
value: [
|
|
10836
10849
|
{
|
|
10837
|
-
field: "regarding.
|
|
10838
|
-
operator: "eq",
|
|
10839
|
-
value: regardingNamespace
|
|
10840
|
-
},
|
|
10841
|
-
{
|
|
10842
|
-
field: "regarding.name",
|
|
10850
|
+
field: "regarding.uid",
|
|
10843
10851
|
operator: "eq",
|
|
10844
|
-
value:
|
|
10852
|
+
value: uid
|
|
10845
10853
|
}
|
|
10846
10854
|
]
|
|
10847
10855
|
}]
|
|
10848
10856
|
}
|
|
10849
10857
|
}
|
|
10850
|
-
}), [columns,
|
|
10858
|
+
}), [columns, uid]);
|
|
10851
10859
|
const { tableProps } = useEagleTable(params);
|
|
10852
10860
|
const component = useContext(ComponentContext);
|
|
10853
10861
|
const Table$1 = component.Table || Table;
|
|
10854
|
-
if (!((
|
|
10862
|
+
if (!((_a = tableProps.data) == null ? void 0 : _a.length) && !tableProps.loading) {
|
|
10855
10863
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
10856
10864
|
WidgetErrorContent,
|
|
10857
10865
|
{
|
|
@@ -11500,7 +11508,7 @@ function useSubmitForm(options) {
|
|
|
11500
11508
|
onSubmit
|
|
11501
11509
|
};
|
|
11502
11510
|
}
|
|
11503
|
-
const
|
|
11511
|
+
const index_1twfoei = "";
|
|
11504
11512
|
const EditButtonStyle = "esoz3jw";
|
|
11505
11513
|
function EditFieldModal(props) {
|
|
11506
11514
|
const {
|
|
@@ -11852,7 +11860,7 @@ const ServiceTypeField = (i18n2) => {
|
|
|
11852
11860
|
return {
|
|
11853
11861
|
key: "type",
|
|
11854
11862
|
title: i18n2.t("dovetail.type"),
|
|
11855
|
-
path: ["
|
|
11863
|
+
path: ["displayType"]
|
|
11856
11864
|
};
|
|
11857
11865
|
};
|
|
11858
11866
|
const ClusterIpField = (i18n2) => {
|
|
@@ -11900,8 +11908,8 @@ const EventsTableTabField = () => {
|
|
|
11900
11908
|
return {
|
|
11901
11909
|
key: "event",
|
|
11902
11910
|
path: [],
|
|
11903
|
-
renderContent: () => {
|
|
11904
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { style: { padding: "0 24px", height: "100%" }, children: /* @__PURE__ */ jsxRuntimeExports.jsx(EventsTable, {}) });
|
|
11911
|
+
renderContent: (_, record) => {
|
|
11912
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { style: { padding: "0 24px", height: "100%" }, children: /* @__PURE__ */ jsxRuntimeExports.jsx(EventsTable, { uid: record.metadata.uid }) });
|
|
11905
11913
|
}
|
|
11906
11914
|
};
|
|
11907
11915
|
};
|
|
@@ -22164,6 +22172,7 @@ const RefineFormContent = (props) => {
|
|
|
22164
22172
|
});
|
|
22165
22173
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(Space, {
|
|
22166
22174
|
direction: "vertical",
|
|
22175
|
+
size: 16,
|
|
22167
22176
|
className: "cjxv8cf",
|
|
22168
22177
|
children: [fields, /* @__PURE__ */ jsxRuntimeExports.jsx(FormErrorAlert, {
|
|
22169
22178
|
errorMsgs: errorMsg ? [errorMsg] : [],
|
|
@@ -22855,7 +22864,7 @@ const Separator = () => {
|
|
|
22855
22864
|
});
|
|
22856
22865
|
};
|
|
22857
22866
|
const MonacoYamlEditor = React__default.lazy(() => Promise.resolve().then(() => MonacoYamlEditor$2));
|
|
22858
|
-
const MonacoYamlDiffEditor = React__default.lazy(() => import("./MonacoYamlDiffEditor-
|
|
22867
|
+
const MonacoYamlDiffEditor = React__default.lazy(() => import("./MonacoYamlDiffEditor-ed04648b.js"));
|
|
22859
22868
|
const YamlEditorComponent = forwardRef(
|
|
22860
22869
|
function YamlEditorComponent2(props, ref) {
|
|
22861
22870
|
const {
|
|
@@ -23471,6 +23480,9 @@ function YamlForm(props) {
|
|
|
23471
23480
|
errorNotification: false,
|
|
23472
23481
|
transformInitValues,
|
|
23473
23482
|
transformApplyValues,
|
|
23483
|
+
mutationMeta: {
|
|
23484
|
+
updateType: "put"
|
|
23485
|
+
},
|
|
23474
23486
|
...useFormProps
|
|
23475
23487
|
});
|
|
23476
23488
|
const kit = useUIKit();
|
|
@@ -24148,7 +24160,7 @@ const WorkloadRestartsColumnRenderer = (i18n2) => {
|
|
|
24148
24160
|
dataIndex,
|
|
24149
24161
|
align: "right",
|
|
24150
24162
|
title: i18n2.t("dovetail.restarts"),
|
|
24151
|
-
sortable:
|
|
24163
|
+
sortable: true
|
|
24152
24164
|
};
|
|
24153
24165
|
};
|
|
24154
24166
|
const ReplicasColumnRenderer = (i18n2) => {
|
|
@@ -24158,7 +24170,7 @@ const ReplicasColumnRenderer = (i18n2) => {
|
|
|
24158
24170
|
display: true,
|
|
24159
24171
|
dataIndex,
|
|
24160
24172
|
title: /* @__PURE__ */ jsxRuntimeExports.jsx(Tooltip, {
|
|
24161
|
-
title: i18n2.t("dovetail.
|
|
24173
|
+
title: i18n2.t("dovetail.ready_num_tooltip"),
|
|
24162
24174
|
children: /* @__PURE__ */ jsxRuntimeExports.jsx("span", {
|
|
24163
24175
|
className: DashedTitleStyle,
|
|
24164
24176
|
children: i18n2.t("dovetail.pod_num")
|
|
@@ -24179,6 +24191,7 @@ const AgeColumnRenderer = (i18n2, config, {
|
|
|
24179
24191
|
isRelativeTime = true
|
|
24180
24192
|
} = {}) => {
|
|
24181
24193
|
const dataIndex = ["metadata", "creationTimestamp"];
|
|
24194
|
+
const kit = useUIKit();
|
|
24182
24195
|
return {
|
|
24183
24196
|
key: "creationTimestamp",
|
|
24184
24197
|
display: true,
|
|
@@ -24190,7 +24203,11 @@ const AgeColumnRenderer = (i18n2, config, {
|
|
|
24190
24203
|
return isRelativeTime ? /* @__PURE__ */ jsxRuntimeExports.jsx(Time, {
|
|
24191
24204
|
date: new Date(value2)
|
|
24192
24205
|
}) : /* @__PURE__ */ jsxRuntimeExports.jsx(ValueDisplay, {
|
|
24193
|
-
value:
|
|
24206
|
+
value: /* @__PURE__ */ jsxRuntimeExports.jsx(kit.time, {
|
|
24207
|
+
date: value2,
|
|
24208
|
+
timeTemplate: "HH:mm:ss",
|
|
24209
|
+
dateTemplate: "YYYY-MM-DD"
|
|
24210
|
+
})
|
|
24194
24211
|
});
|
|
24195
24212
|
},
|
|
24196
24213
|
...config
|
|
@@ -24531,8 +24548,8 @@ const PortMappingColumnRenderer = (i18n2) => {
|
|
|
24531
24548
|
}),
|
|
24532
24549
|
tooltip: `${v.servicePort} > ${v.targetPort}/${v.protocol}`
|
|
24533
24550
|
}, v.servicePort));
|
|
24534
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
24535
|
-
|
|
24551
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(ValueDisplay, {
|
|
24552
|
+
value: content
|
|
24536
24553
|
});
|
|
24537
24554
|
}
|
|
24538
24555
|
};
|
package/dist/refine.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { b7, bL, A, aA, aC, ak, bn, aK, H, bB, bp, au, x, C, h, bP, an, aO, Z, bR, a1, a8, b_, ac, bq, bo, c1, aq, aU, v, ai, aZ, c0, bM, b1, D, aH, b3, b$, aI, ay, ba, bO, bQ, bz, al, a2, q, p, bS, I, aR, ax, s, br, bU, ap, aQ, ad, ae, U, af, aB, aj, a_, b2, V, M, bA, b6, N, J, c, az, Q, b9, aW, aV, bT, bl, f, bt, X, P, aM, t, _, bk, aJ, bY, bX, aF, aS, o, ao, aL, w, aT, aG, c5, bN, b4, bb, bc, am, R, a0, a6, a5, b5, a3, bZ, a4, a9, g, bG, bJ, bF, bE, bH, bI, bC, bu, bx, by, bw, bv, bs, bd, ar, aP, ag, l, bg, k, aD, c4, n, bh, aE, m, aw, aN, i, c3, at, av, aY, aX, as, S, b0, a$, c2, bD, bm, bi, bj, Y, bW, $, W, bV, a7, ab, aa, e, bK, ah, be, y, K, d, T, O, L, r, b, B, z, E, F, u, b8, G, bf, a } from "./index-
|
|
1
|
+
import { b7, bL, A, aA, aC, ak, bn, aK, H, bB, bp, au, x, C, h, bP, an, aO, Z, bR, a1, a8, b_, ac, bq, bo, c1, aq, aU, v, ai, aZ, c0, bM, b1, D, aH, b3, b$, aI, ay, ba, bO, bQ, bz, al, a2, q, p, bS, I, aR, ax, s, br, bU, ap, aQ, ad, ae, U, af, aB, aj, a_, b2, V, M, bA, b6, N, J, c, az, Q, b9, aW, aV, bT, bl, f, bt, X, P, aM, t, _, bk, aJ, bY, bX, aF, aS, o, ao, aL, w, aT, aG, c5, bN, b4, bb, bc, am, R, a0, a6, a5, b5, a3, bZ, a4, a9, g, bG, bJ, bF, bE, bH, bI, bC, bu, bx, by, bw, bv, bs, bd, ar, aP, ag, l, bg, k, aD, c4, n, bh, aE, m, aw, aN, i, c3, at, av, aY, aX, as, S, b0, a$, c2, bD, bm, bi, bj, Y, bW, $, W, bV, a7, ab, aa, e, bK, ah, be, y, K, d, T, O, L, r, b, B, z, E, F, u, b8, G, bf, a } from "./index-04f52e89.js";
|
|
2
2
|
import "@cloudtower/eagle";
|
|
3
3
|
import "@refinedev/core";
|
|
4
4
|
import "@cloudtower/icons-react";
|
package/dist/refine.umd.cjs
CHANGED
|
@@ -1016,7 +1016,7 @@ var __publicField = (obj, key, value) => {
|
|
|
1016
1016
|
}
|
|
1017
1017
|
const copy$1 = "Copy";
|
|
1018
1018
|
const reset_arguments$1 = "Reset";
|
|
1019
|
-
const view_changes$1 = "Show
|
|
1019
|
+
const view_changes$1 = "Show diff";
|
|
1020
1020
|
const back_to_edit$1 = "Edit";
|
|
1021
1021
|
const configure_file$1 = "Configuration";
|
|
1022
1022
|
const yaml_format_wrong$1 = "Configuration is in an invalid YAML format.";
|
|
@@ -1035,7 +1035,7 @@ var __publicField = (obj, key, value) => {
|
|
|
1035
1035
|
const cancel$1 = "Cancel";
|
|
1036
1036
|
const create$1 = "Create";
|
|
1037
1037
|
const confirm_delete_text$1 = "Are you sure you want to delete the {{kind}} <0>{{target}}</0>?";
|
|
1038
|
-
const edit$1 = "
|
|
1038
|
+
const edit$1 = "Edit";
|
|
1039
1039
|
const namespace$1 = "Namespace";
|
|
1040
1040
|
const created_time$1 = "Creation time";
|
|
1041
1041
|
const label$1 = "Label";
|
|
@@ -1053,7 +1053,7 @@ var __publicField = (obj, key, value) => {
|
|
|
1053
1053
|
const workload$1 = "Workload";
|
|
1054
1054
|
const empty$1 = "No data available";
|
|
1055
1055
|
const schedule$1 = "Schedule";
|
|
1056
|
-
const lastScheduleTime$1 = "Last
|
|
1056
|
+
const lastScheduleTime$1 = "Last schedule";
|
|
1057
1057
|
const duration$1 = "Duration";
|
|
1058
1058
|
const started$1 = "Start time";
|
|
1059
1059
|
const container$1 = "Container";
|
|
@@ -1080,7 +1080,7 @@ var __publicField = (obj, key, value) => {
|
|
|
1080
1080
|
const port$1 = "Port";
|
|
1081
1081
|
const cert$1 = "Certificate";
|
|
1082
1082
|
const ip_address$1 = "IP address";
|
|
1083
|
-
const last_seen$1 = "Last
|
|
1083
|
+
const last_seen$1 = "Last seen";
|
|
1084
1084
|
const node_port$1 = "NodePort";
|
|
1085
1085
|
const protocol$1 = "Protocol";
|
|
1086
1086
|
const key$1 = "Key";
|
|
@@ -1150,9 +1150,9 @@ var __publicField = (obj, key, value) => {
|
|
|
1150
1150
|
const suspend$1 = "Suspend";
|
|
1151
1151
|
const default_backend$1 = "Default backend";
|
|
1152
1152
|
const ingress_class$1 = "IngressClass";
|
|
1153
|
-
const pod_ready_num$1 = "Ready
|
|
1154
|
-
const pod_complete_num$1 = "Completion
|
|
1155
|
-
const pod_replicas_num$1 = "Desired
|
|
1153
|
+
const pod_ready_num$1 = "Ready pod";
|
|
1154
|
+
const pod_complete_num$1 = "Completion pod";
|
|
1155
|
+
const pod_replicas_num$1 = "Desired pod";
|
|
1156
1156
|
const edit_replicas$1 = "Edit expected number of replicas";
|
|
1157
1157
|
const dns_record$1 = "DNS record";
|
|
1158
1158
|
const basic_info$1 = "Basic information";
|
|
@@ -1163,6 +1163,7 @@ var __publicField = (obj, key, value) => {
|
|
|
1163
1163
|
const pod_port$1 = "Pod port";
|
|
1164
1164
|
const path_type$1 = "Path type";
|
|
1165
1165
|
const only_support_one_yaml$1 = "Only one YAML configuration is supported at a time.";
|
|
1166
|
+
const not_support$1 = "Not supported";
|
|
1166
1167
|
const dovetail$1 = {
|
|
1167
1168
|
copy: copy$1,
|
|
1168
1169
|
reset_arguments: reset_arguments$1,
|
|
@@ -1315,7 +1316,8 @@ var __publicField = (obj, key, value) => {
|
|
|
1315
1316
|
service_port: service_port$1,
|
|
1316
1317
|
pod_port: pod_port$1,
|
|
1317
1318
|
path_type: path_type$1,
|
|
1318
|
-
only_support_one_yaml: only_support_one_yaml$1
|
|
1319
|
+
only_support_one_yaml: only_support_one_yaml$1,
|
|
1320
|
+
not_support: not_support$1
|
|
1319
1321
|
};
|
|
1320
1322
|
const EN = {
|
|
1321
1323
|
dovetail: dovetail$1
|
|
@@ -1470,6 +1472,7 @@ var __publicField = (obj, key, value) => {
|
|
|
1470
1472
|
const out_cluster_lb_desc = "LoadBalancer 展示 <strong>ingress[*].ip</strong>。";
|
|
1471
1473
|
const out_external_name_desc = "ExternalName 展示 <strong>external-ip</strong>。";
|
|
1472
1474
|
const only_support_one_yaml = "一次仅支持输入一个 YAML 配置。";
|
|
1475
|
+
const not_support = "不支持";
|
|
1473
1476
|
const dovetail = {
|
|
1474
1477
|
copy,
|
|
1475
1478
|
reset_arguments,
|
|
@@ -1623,7 +1626,8 @@ var __publicField = (obj, key, value) => {
|
|
|
1623
1626
|
out_cluster_node_port_desc,
|
|
1624
1627
|
out_cluster_lb_desc,
|
|
1625
1628
|
out_external_name_desc,
|
|
1626
|
-
only_support_one_yaml
|
|
1629
|
+
only_support_one_yaml,
|
|
1630
|
+
not_support
|
|
1627
1631
|
};
|
|
1628
1632
|
const ZH = {
|
|
1629
1633
|
dovetail
|
|
@@ -8108,7 +8112,7 @@ var __publicField = (obj, key, value) => {
|
|
|
8108
8112
|
};
|
|
8109
8113
|
var cx_default = cx;
|
|
8110
8114
|
const ConfigsContext = React.createContext({});
|
|
8111
|
-
const
|
|
8115
|
+
const useDeleteModal_vv2pzj = "";
|
|
8112
8116
|
const TextStyle = "t1vq0ett";
|
|
8113
8117
|
const TipStyle = "t139onst";
|
|
8114
8118
|
const NameStyle$1 = "n18lzor8";
|
|
@@ -8600,7 +8604,7 @@ var __publicField = (obj, key, value) => {
|
|
|
8600
8604
|
return o(prop);
|
|
8601
8605
|
}
|
|
8602
8606
|
}) : styled;
|
|
8603
|
-
const
|
|
8607
|
+
const index_6dotpx = "";
|
|
8604
8608
|
const ErrorWrapper = /* @__PURE__ */ styled_default("div")({
|
|
8605
8609
|
name: "ErrorWrapper",
|
|
8606
8610
|
class: "egn3dbn",
|
|
@@ -10008,11 +10012,15 @@ var __publicField = (obj, key, value) => {
|
|
|
10008
10012
|
service
|
|
10009
10013
|
}) => {
|
|
10010
10014
|
const spec = service._rawYaml.spec;
|
|
10011
|
-
switch (
|
|
10015
|
+
switch (service.displayType) {
|
|
10012
10016
|
case ServiceTypeEnum.ExternalName:
|
|
10013
10017
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(ValueDisplay, {
|
|
10014
10018
|
value: service.dnsRecord
|
|
10015
10019
|
});
|
|
10020
|
+
case ServiceTypeEnum.Headless:
|
|
10021
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(ValueDisplay, {
|
|
10022
|
+
value: ""
|
|
10023
|
+
});
|
|
10016
10024
|
default:
|
|
10017
10025
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(ValueDisplay, {
|
|
10018
10026
|
value: spec.clusterIP
|
|
@@ -10027,6 +10035,9 @@ var __publicField = (obj, key, value) => {
|
|
|
10027
10035
|
breakLine = true
|
|
10028
10036
|
}) => {
|
|
10029
10037
|
var _a, _b, _c, _d;
|
|
10038
|
+
const {
|
|
10039
|
+
i18n: i18n2
|
|
10040
|
+
} = useTranslation();
|
|
10030
10041
|
const spec = service._rawYaml.spec;
|
|
10031
10042
|
const status = service._rawYaml.status;
|
|
10032
10043
|
let content = "-";
|
|
@@ -10059,6 +10070,9 @@ var __publicField = (obj, key, value) => {
|
|
|
10059
10070
|
}) => ip).join(breakLine ? "\n" : ", ")
|
|
10060
10071
|
});
|
|
10061
10072
|
break;
|
|
10073
|
+
case ServiceTypeEnum.ClusterIP:
|
|
10074
|
+
content = i18n2.t("dovetail.not_support");
|
|
10075
|
+
break;
|
|
10062
10076
|
default:
|
|
10063
10077
|
content = /* @__PURE__ */ jsxRuntimeExports.jsx(ValueDisplay, {
|
|
10064
10078
|
value: ""
|
|
@@ -10230,6 +10244,7 @@ var __publicField = (obj, key, value) => {
|
|
|
10230
10244
|
setText(dayjs(date).fromNow());
|
|
10231
10245
|
};
|
|
10232
10246
|
i18n2.on("languageChanged", onChange);
|
|
10247
|
+
setText(dayjs(date).fromNow());
|
|
10233
10248
|
return () => i18n2.off("languageChanged", onChange);
|
|
10234
10249
|
}, [date, i18n2]);
|
|
10235
10250
|
if (!date)
|
|
@@ -10276,14 +10291,14 @@ var __publicField = (obj, key, value) => {
|
|
|
10276
10291
|
sortable: true
|
|
10277
10292
|
},
|
|
10278
10293
|
{
|
|
10279
|
-
key: "
|
|
10294
|
+
key: "lastTransitionTime",
|
|
10280
10295
|
display: true,
|
|
10281
|
-
dataIndex: "
|
|
10296
|
+
dataIndex: "lastTransitionTime",
|
|
10282
10297
|
title: t2("dovetail.updated_time"),
|
|
10283
10298
|
sortable: true,
|
|
10284
10299
|
width: 120,
|
|
10285
|
-
render: (value2
|
|
10286
|
-
const time = value2
|
|
10300
|
+
render: (value2) => {
|
|
10301
|
+
const time = value2;
|
|
10287
10302
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(Time, { date: new Date(time) });
|
|
10288
10303
|
}
|
|
10289
10304
|
},
|
|
@@ -10782,11 +10797,9 @@ var __publicField = (obj, key, value) => {
|
|
|
10782
10797
|
})]
|
|
10783
10798
|
});
|
|
10784
10799
|
};
|
|
10785
|
-
const EventsTable = ({}) => {
|
|
10786
|
-
var _a
|
|
10800
|
+
const EventsTable = ({ uid }) => {
|
|
10801
|
+
var _a;
|
|
10787
10802
|
const { i18n: i18n2 } = useTranslation();
|
|
10788
|
-
const parsed = core.useParsed();
|
|
10789
|
-
const [regardingNamespace, regardingName] = (_a = parsed == null ? void 0 : parsed.id) == null ? void 0 : _a.split("/");
|
|
10790
10803
|
const columns = React.useMemo(
|
|
10791
10804
|
() => [
|
|
10792
10805
|
{
|
|
@@ -10840,24 +10853,19 @@ var __publicField = (obj, key, value) => {
|
|
|
10840
10853
|
operator: "and",
|
|
10841
10854
|
value: [
|
|
10842
10855
|
{
|
|
10843
|
-
field: "regarding.
|
|
10844
|
-
operator: "eq",
|
|
10845
|
-
value: regardingNamespace
|
|
10846
|
-
},
|
|
10847
|
-
{
|
|
10848
|
-
field: "regarding.name",
|
|
10856
|
+
field: "regarding.uid",
|
|
10849
10857
|
operator: "eq",
|
|
10850
|
-
value:
|
|
10858
|
+
value: uid
|
|
10851
10859
|
}
|
|
10852
10860
|
]
|
|
10853
10861
|
}]
|
|
10854
10862
|
}
|
|
10855
10863
|
}
|
|
10856
|
-
}), [columns,
|
|
10864
|
+
}), [columns, uid]);
|
|
10857
10865
|
const { tableProps } = useEagleTable(params);
|
|
10858
10866
|
const component = React.useContext(ComponentContext);
|
|
10859
10867
|
const Table$1 = component.Table || Table;
|
|
10860
|
-
if (!((
|
|
10868
|
+
if (!((_a = tableProps.data) == null ? void 0 : _a.length) && !tableProps.loading) {
|
|
10861
10869
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
10862
10870
|
WidgetErrorContent,
|
|
10863
10871
|
{
|
|
@@ -11506,7 +11514,7 @@ var __publicField = (obj, key, value) => {
|
|
|
11506
11514
|
onSubmit
|
|
11507
11515
|
};
|
|
11508
11516
|
}
|
|
11509
|
-
const
|
|
11517
|
+
const index_1twfoei = "";
|
|
11510
11518
|
const EditButtonStyle = "esoz3jw";
|
|
11511
11519
|
function EditFieldModal(props) {
|
|
11512
11520
|
const {
|
|
@@ -11858,7 +11866,7 @@ var __publicField = (obj, key, value) => {
|
|
|
11858
11866
|
return {
|
|
11859
11867
|
key: "type",
|
|
11860
11868
|
title: i18n2.t("dovetail.type"),
|
|
11861
|
-
path: ["
|
|
11869
|
+
path: ["displayType"]
|
|
11862
11870
|
};
|
|
11863
11871
|
};
|
|
11864
11872
|
const ClusterIpField = (i18n2) => {
|
|
@@ -11906,8 +11914,8 @@ var __publicField = (obj, key, value) => {
|
|
|
11906
11914
|
return {
|
|
11907
11915
|
key: "event",
|
|
11908
11916
|
path: [],
|
|
11909
|
-
renderContent: () => {
|
|
11910
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { style: { padding: "0 24px", height: "100%" }, children: /* @__PURE__ */ jsxRuntimeExports.jsx(EventsTable, {}) });
|
|
11917
|
+
renderContent: (_, record) => {
|
|
11918
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { style: { padding: "0 24px", height: "100%" }, children: /* @__PURE__ */ jsxRuntimeExports.jsx(EventsTable, { uid: record.metadata.uid }) });
|
|
11911
11919
|
}
|
|
11912
11920
|
};
|
|
11913
11921
|
};
|
|
@@ -22170,6 +22178,7 @@ var __publicField = (obj, key, value) => {
|
|
|
22170
22178
|
});
|
|
22171
22179
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(eagle.Space, {
|
|
22172
22180
|
direction: "vertical",
|
|
22181
|
+
size: 16,
|
|
22173
22182
|
className: "cjxv8cf",
|
|
22174
22183
|
children: [fields, /* @__PURE__ */ jsxRuntimeExports.jsx(FormErrorAlert, {
|
|
22175
22184
|
errorMsgs: errorMsg ? [errorMsg] : [],
|
|
@@ -23477,6 +23486,9 @@ var __publicField = (obj, key, value) => {
|
|
|
23477
23486
|
errorNotification: false,
|
|
23478
23487
|
transformInitValues,
|
|
23479
23488
|
transformApplyValues,
|
|
23489
|
+
mutationMeta: {
|
|
23490
|
+
updateType: "put"
|
|
23491
|
+
},
|
|
23480
23492
|
...useFormProps
|
|
23481
23493
|
});
|
|
23482
23494
|
const kit = eagle.useUIKit();
|
|
@@ -24154,7 +24166,7 @@ var __publicField = (obj, key, value) => {
|
|
|
24154
24166
|
dataIndex,
|
|
24155
24167
|
align: "right",
|
|
24156
24168
|
title: i18n2.t("dovetail.restarts"),
|
|
24157
|
-
sortable:
|
|
24169
|
+
sortable: true
|
|
24158
24170
|
};
|
|
24159
24171
|
};
|
|
24160
24172
|
const ReplicasColumnRenderer = (i18n2) => {
|
|
@@ -24164,7 +24176,7 @@ var __publicField = (obj, key, value) => {
|
|
|
24164
24176
|
display: true,
|
|
24165
24177
|
dataIndex,
|
|
24166
24178
|
title: /* @__PURE__ */ jsxRuntimeExports.jsx(eagle.Tooltip, {
|
|
24167
|
-
title: i18n2.t("dovetail.
|
|
24179
|
+
title: i18n2.t("dovetail.ready_num_tooltip"),
|
|
24168
24180
|
children: /* @__PURE__ */ jsxRuntimeExports.jsx("span", {
|
|
24169
24181
|
className: DashedTitleStyle,
|
|
24170
24182
|
children: i18n2.t("dovetail.pod_num")
|
|
@@ -24185,6 +24197,7 @@ var __publicField = (obj, key, value) => {
|
|
|
24185
24197
|
isRelativeTime = true
|
|
24186
24198
|
} = {}) => {
|
|
24187
24199
|
const dataIndex = ["metadata", "creationTimestamp"];
|
|
24200
|
+
const kit = eagle.useUIKit();
|
|
24188
24201
|
return {
|
|
24189
24202
|
key: "creationTimestamp",
|
|
24190
24203
|
display: true,
|
|
@@ -24196,7 +24209,11 @@ var __publicField = (obj, key, value) => {
|
|
|
24196
24209
|
return isRelativeTime ? /* @__PURE__ */ jsxRuntimeExports.jsx(Time, {
|
|
24197
24210
|
date: new Date(value2)
|
|
24198
24211
|
}) : /* @__PURE__ */ jsxRuntimeExports.jsx(ValueDisplay, {
|
|
24199
|
-
value:
|
|
24212
|
+
value: /* @__PURE__ */ jsxRuntimeExports.jsx(kit.time, {
|
|
24213
|
+
date: value2,
|
|
24214
|
+
timeTemplate: "HH:mm:ss",
|
|
24215
|
+
dateTemplate: "YYYY-MM-DD"
|
|
24216
|
+
})
|
|
24200
24217
|
});
|
|
24201
24218
|
},
|
|
24202
24219
|
...config
|
|
@@ -24537,8 +24554,8 @@ var __publicField = (obj, key, value) => {
|
|
|
24537
24554
|
}),
|
|
24538
24555
|
tooltip: `${v.servicePort} > ${v.targetPort}/${v.protocol}`
|
|
24539
24556
|
}, v.servicePort));
|
|
24540
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
24541
|
-
|
|
24557
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(ValueDisplay, {
|
|
24558
|
+
value: content
|
|
24542
24559
|
});
|
|
24543
24560
|
}
|
|
24544
24561
|
};
|
package/dist/style.css
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
.t1vq0ett{margin-bottom:4px;}
|
|
2
2
|
.t139onst{color:rgba(44,56,82,0.60);}
|
|
3
|
-
.n18lzor8.ant-tag.ant-tag-gray{background-color:rgba(237,241,250,.6);border:1px solid rgba(211,218,235,.6);color:#00122e;}
|
|
4
|
-
.mvvgkkc.ant-modal.normal-modal .ant-modal-content{width:492px;border-radius:16px;}.mvvgkkc.ant-modal.normal-modal .ant-modal-body{padding:32px 40px;min-height:160px;}.mvvgkkc.ant-modal.normal-modal .ant-modal-header{border-radius:16px 16px 0 0;padding:32px 40px;padding-bottom:0;}.mvvgkkc.ant-modal.normal-modal .ant-modal-footer{padding:24px 40px;}.mvvgkkc.ant-modal.normal-modal .ant-modal-close-x{top:35px;right:40px;}
|
|
3
|
+
.n18lzor8.ant-tag.ant-tag-gray{background-color:rgba(237,241,250,.6);border:1px solid rgba(211,218,235,.6);color:#00122e;word-break:break-all;white-space:normal;display:inline;font-weight:bold;}
|
|
4
|
+
.mvvgkkc.ant-modal.normal-modal .ant-modal-content{width:492px;border-radius:16px;}.mvvgkkc.ant-modal.normal-modal .ant-modal-body{padding:32px 40px;min-height:160px;overflow-x:hidden;}.mvvgkkc.ant-modal.normal-modal .ant-modal-header{border-radius:16px 16px 0 0;padding:32px 40px;padding-bottom:0;}.mvvgkkc.ant-modal.normal-modal .ant-modal-footer{padding:24px 40px;}.mvvgkkc.ant-modal.normal-modal .ant-modal-close-x{top:35px;right:40px;}
|
|
5
5
|
.e5223w8.e5223w8{color:rgba(0,21,64,.3);}
|
|
6
6
|
.cdjsw14{width:100%;}.cdjsw14.overflow{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
|
|
7
7
|
.b142d7q8{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;}.b142d7q8 .breadcrumb-item:not(:last-of-type):after{content:'>';margin:0 8px;}
|
|
8
8
|
.egn3dbn{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;height:100%;}
|
|
9
|
-
.e136jgy8{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}.e136jgy8 .title{margin-bottom:8px;}.e136jgy8 .title.widget{background-clip:text;-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-image:linear-gradient(211.41deg,#929dad 0%,#d3dbe3 100%);}.e136jgy8 .title.list{color:rgba(44,56,82,0.60);}.e136jgy8 .title.card{color:rgba(0,21,64,0.30);}
|
|
9
|
+
.e136jgy8{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}.e136jgy8 .title{margin-bottom:8px;}.e136jgy8 .title.widget{background-clip:text;-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-image:linear-gradient(211.41deg,#929dad 0%,#d3dbe3 100%);}.e136jgy8 .title.list{color:rgba(44,56,82,0.60);}.e136jgy8 .title.card{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;height:60px;color:rgba(0,21,64,0.30);}
|
|
10
10
|
.ax1qopv{position:absolute;top:0;left:0;bottom:0;width:1px;background:$blue-60;-webkit-transform:translateX(-9999px);-ms-transform:translateX(-9999px);transform:translateX(-9999px);z-index:999;}.ax1qopv::before{content:'';position:absolute;height:34px;width:3px;top:0;left:-1px;background:$blue-60;}
|
|
11
11
|
.t1upn1sz{width:100%;border-top:1px solid rgba(211,218,235,0.6);display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;}.t1upn1sz .ant-table-pagination{display:none;}.t1upn1sz .table-container{min-height:0;}
|
|
12
12
|
.b1vtjd4k.ant-btn.ant-btn-link{display:block;}
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
.tf5s6s.ant-tabs{-webkit-flex:1;-ms-flex:1;flex:1;min-height:0;}.tf5s6s.ant-tabs .ant-tabs-nav{margin-bottom:0;margin-right:24px;}.tf5s6s.ant-tabs .ant-tabs-nav-list{margin-left:24px;}.tf5s6s.ant-tabs .ant-tabs-content-holder{overflow:auto;}.tf5s6s.ant-tabs .ant-tabs-content-holder .ant-tabs-content,.tf5s6s.ant-tabs .ant-tabs-content-holder .ant-tabs-tabpane-active{height:100%;}
|
|
44
44
|
.b11tbgf7.ant-btn-quiet.ant-btn{color:rgba(44,56,82,0.75);}
|
|
45
45
|
.c1dicff8{width:100%;vertical-align:top;}
|
|
46
|
-
.esoz3jw.ant-btn.ant-btn-link{height:22px;margin-left:8px;}
|
|
46
|
+
.esoz3jw.ant-btn.ant-btn-link{font-size:13px;height:22px;margin-left:8px;}
|
|
47
47
|
.w8ychfk{border-radius:8px;border:1px solid rgba(211,218,235,0.60);padding:16px;display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;}
|
|
48
48
|
.d1o004do{width:70px;height:70px;margin-right:16px;}
|
|
49
49
|
.dfo80qq{width:100%;}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface ModalInfo {
|
|
3
|
+
resource: string;
|
|
4
|
+
id?: string;
|
|
5
|
+
}
|
|
6
|
+
type ModalContextValue = ModalInfo & {
|
|
7
|
+
open: (info: ModalInfo) => void;
|
|
8
|
+
close: () => void;
|
|
9
|
+
};
|
|
10
|
+
export declare const ModalContext: React.Context<ModalContextValue>;
|
|
11
|
+
declare function ModalContextProvider(props: React.PropsWithChildren<Record<string, unknown>>): JSX.Element;
|
|
12
|
+
export default ModalContextProvider;
|