@dovetail-v2/refine 0.0.55 → 0.0.57
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-9d8bb154.js → MonacoYamlDiffEditor-06894d28.js} +1 -1
- package/dist/{index-0789694e.js → index-ced408be.js} +103 -67
- package/dist/refine.js +1 -1
- package/dist/refine.umd.cjs +101 -65
- package/dist/style.css +6 -5
- package/lib/src/components/LinkFallback/index.d.ts +4 -0
- package/lib/src/components/ModalContextProvider/index.d.ts +12 -0
- package/lib/src/components/NetworkPolicyRulesTable/NetworkPolicyRulesTable.d.ts +2 -1
- package/lib/src/components/ShowContent/ShowContent.d.ts +3 -2
- 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/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 +1 -1
- package/lib/src/App.js +0 -91
- package/lib/src/Dovetail.js +0 -45
- package/lib/src/components/Breadcrumb/index.js +0 -20
- package/lib/src/components/ConditionsTable/ConditionsTable.js +0 -56
- package/lib/src/components/ConditionsTable/index.js +0 -1
- package/lib/src/components/CreateButton/index.js +0 -10
- package/lib/src/components/CronJobDropdown/index.js +0 -26
- package/lib/src/components/CronjobJobsTable/index.js +0 -49
- package/lib/src/components/DeleteButton/index.js +0 -13
- package/lib/src/components/DeleteManyButton/index.js +0 -16
- package/lib/src/components/DrawerShow/DrawerShow.js +0 -13
- package/lib/src/components/DrawerShow/index.js +0 -1
- package/lib/src/components/EditButton/index.js +0 -13
- package/lib/src/components/EditField/index.js +0 -47
- package/lib/src/components/ErrorContent/index.js +0 -36
- package/lib/src/components/EventsTable/EventsTable.js +0 -59
- package/lib/src/components/EventsTable/index.js +0 -1
- package/lib/src/components/Form/KeyValueListWidget.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
|
@@ -10,7 +10,7 @@ import React__default, { createElement, isValidElement, cloneElement, Children,
|
|
|
10
10
|
import { ResourceContext, matchResourceFromRoute, useResource, useDelete, useNavigation, useBreadcrumb, useList, useParsed, useGo, useCan, useTable, useDeleteMany, CanAccess, useShow, useUpdate, useDataProvider, useRefineContext, useTranslate, useWarnAboutChange, useForm as useForm$2, flattenObjectKeys, pickNotDeprecated, useMenu, Refine } from "@refinedev/core";
|
|
11
11
|
import { parse, stringify } from "qs";
|
|
12
12
|
import { useLocation, useHistory, useParams, matchPath, Link, Route, NavLink, Router } from "react-router-dom";
|
|
13
|
-
import { Typo, Tag, useUIKit, kitContext, OverflowTooltip, Tooltip, StatusCapsule, usePushModal, Icon as Icon$1, Button, usePopModal, Loading, Divider, Fields, Space, Form, Modal,
|
|
13
|
+
import { Typo, Tag, useUIKit, kitContext, OverflowTooltip, Tooltip, StatusCapsule, usePushModal, Icon as Icon$1, Link as Link$1, Button, usePopModal, Loading, Divider, Fields, Space, Form, Modal, useMessage, ModalStack, KitStoreProvider } from "@cloudtower/eagle";
|
|
14
14
|
import { EditPen16PrimaryIcon, Download16GradientBlueIcon, TrashBinDelete16Icon, MoreEllipsis324BoldSecondaryIcon, MoreEllipsis324BoldBlueIcon, MoreEllipsis316BoldBlueIcon, PlusAddCreateNew16BoldOntintIcon, ArrowChevronLeft16BoldTertiaryIcon, ArrowChevronLeftSmall16BoldBlueIcon, EditPen16GradientBlueIcon, ViewEye16GradientGrayIcon, EntityFilterIgnoreGradient16GrayIcon, RecoverContinue16GradientBlueIcon, SuspendedPause16GradientBlueIcon, Retry16GradientBlueIcon, HierarchyTriangleRight16GrayIcon, HierarchyTriangleRight16BlueIcon, ClipboardCopy16GradientGrayIcon, ClipboardCopy16GradientBlueIcon, Retry16GradientGrayIcon, EditPen16GradientGrayIcon, Showdiff16GradientGrayIcon, Showdiff16GradientBlueIcon, XmarkFailedSeriousWarningFill16RedIcon, ExclamationErrorCircleFill16RedIcon, Pause16GradientBlueIcon } from "@cloudtower/icons-react";
|
|
15
15
|
import { omit as omit$1, merge, get as get$3, first, debounce, last, isObject as isObject$4, keyBy } from "lodash-es";
|
|
16
16
|
import yaml from "js-yaml";
|
|
@@ -1109,7 +1109,7 @@ const previous_log$1 = "Last startup logs";
|
|
|
1109
1109
|
const auto_wrap$1 = "Auto wrap";
|
|
1110
1110
|
const container_num$1 = "Containers";
|
|
1111
1111
|
const edit_resource_success$1 = "{{resource}} {{name}} was edited successfully";
|
|
1112
|
-
const redeploy_success_toast$1 = "{{kind}} was redeployed successfully";
|
|
1112
|
+
const redeploy_success_toast$1 = "{{kind}} {{name}} was redeployed successfully";
|
|
1113
1113
|
const redeploy_failed_toast$1 = "Failed to redeploy {{kind}} {{name}}";
|
|
1114
1114
|
const pause_success_toast$1 = "Successfully suspended";
|
|
1115
1115
|
const pause_failed_toast$1 = "Failed to suspend";
|
|
@@ -8599,7 +8599,7 @@ var styled_default = process.env.NODE_ENV !== "production" ? new Proxy(styled, {
|
|
|
8599
8599
|
return o(prop);
|
|
8600
8600
|
}
|
|
8601
8601
|
}) : styled;
|
|
8602
|
-
const
|
|
8602
|
+
const index_cp12i5 = "";
|
|
8603
8603
|
const ErrorWrapper = /* @__PURE__ */ styled_default("div")({
|
|
8604
8604
|
name: "ErrorWrapper",
|
|
8605
8605
|
class: "egn3dbn",
|
|
@@ -8642,11 +8642,11 @@ const WidgetErrorContent = (props) => {
|
|
|
8642
8642
|
]: Typo.Display.d2_bold_title
|
|
8643
8643
|
};
|
|
8644
8644
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(ErrorWrapper, {
|
|
8645
|
-
className: props.className,
|
|
8645
|
+
className: cx_default(props.className, type2),
|
|
8646
8646
|
style: props.style,
|
|
8647
8647
|
children: /* @__PURE__ */ jsxRuntimeExports.jsxs(ErrorContent, {
|
|
8648
8648
|
children: [/* @__PURE__ */ jsxRuntimeExports.jsx("p", {
|
|
8649
|
-
className: cx_default(fontMap[type2], "title"
|
|
8649
|
+
className: cx_default(fontMap[type2], "title"),
|
|
8650
8650
|
children: errorText || t2("dovetail.obtain_data_error")
|
|
8651
8651
|
}), !refetch ? null : /* @__PURE__ */ jsxRuntimeExports.jsx(kit.button, {
|
|
8652
8652
|
size: "small",
|
|
@@ -9468,7 +9468,7 @@ const SECRET_OPAQUE_INIT_VALUE = {
|
|
|
9468
9468
|
},
|
|
9469
9469
|
"type": "Opaque",
|
|
9470
9470
|
"data": {
|
|
9471
|
-
"key":
|
|
9471
|
+
"key": "value"
|
|
9472
9472
|
}
|
|
9473
9473
|
};
|
|
9474
9474
|
const SECRET_IMAGE_REPO_INIT_VALUE = {
|
|
@@ -9492,8 +9492,8 @@ const SECRET_BASIC_AUTH_INIT_VALUE = {
|
|
|
9492
9492
|
},
|
|
9493
9493
|
"type": "kubernetes.io/basic-auth",
|
|
9494
9494
|
"data": {
|
|
9495
|
-
"username":
|
|
9496
|
-
"password":
|
|
9495
|
+
"username": "example",
|
|
9496
|
+
"password": "example"
|
|
9497
9497
|
}
|
|
9498
9498
|
};
|
|
9499
9499
|
const SECRET_SSH_AUTH_INIT_VALUE = {
|
|
@@ -10042,7 +10042,7 @@ const ServiceOutClusterAccessComponent = ({
|
|
|
10042
10042
|
service,
|
|
10043
10043
|
breakLine = true
|
|
10044
10044
|
}) => {
|
|
10045
|
-
var _a, _b, _c, _d;
|
|
10045
|
+
var _a, _b, _c, _d, _e;
|
|
10046
10046
|
const {
|
|
10047
10047
|
i18n: i18n2
|
|
10048
10048
|
} = useTranslation();
|
|
@@ -10051,10 +10051,14 @@ const ServiceOutClusterAccessComponent = ({
|
|
|
10051
10051
|
let content = "-";
|
|
10052
10052
|
switch (spec.type) {
|
|
10053
10053
|
case ServiceTypeEnum.NodePort:
|
|
10054
|
-
|
|
10054
|
+
if (!breakLine) {
|
|
10055
|
+
content = (_a = spec.ports) == null ? void 0 : _a.filter((v) => !!v).map((p) => `${i18n2.t("dovetail.any_node_ip")}:${p.nodePort}`).join(", ");
|
|
10056
|
+
break;
|
|
10057
|
+
}
|
|
10058
|
+
content = (_b = spec.ports) == null ? void 0 : _b.filter((v) => !!v).map((p) => /* @__PURE__ */ jsxRuntimeExports.jsx(OverflowTooltip, {
|
|
10055
10059
|
content: /* @__PURE__ */ jsxRuntimeExports.jsxs("span", {
|
|
10056
10060
|
className: cx_default(Typo.Label.l4_regular_title, BreakLineStyle),
|
|
10057
|
-
children: [i18n2.t("dovetail.any_node_ip"), ":", p.nodePort
|
|
10061
|
+
children: [i18n2.t("dovetail.any_node_ip"), ":", p.nodePort]
|
|
10058
10062
|
}),
|
|
10059
10063
|
tooltip: `${i18n2.t("dovetail.any_node_ip")}:${p.nodePort}`
|
|
10060
10064
|
}, p.nodePort));
|
|
@@ -10063,12 +10067,14 @@ const ServiceOutClusterAccessComponent = ({
|
|
|
10063
10067
|
});
|
|
10064
10068
|
case ServiceTypeEnum.ExternalName:
|
|
10065
10069
|
content = /* @__PURE__ */ jsxRuntimeExports.jsx(ValueDisplay, {
|
|
10066
|
-
|
|
10070
|
+
useOverflow: false,
|
|
10071
|
+
value: (_c = spec.externalIPs) == null ? void 0 : _c.join(breakLine ? "\n" : ", ")
|
|
10067
10072
|
});
|
|
10068
10073
|
break;
|
|
10069
10074
|
case ServiceTypeEnum.LoadBalancer:
|
|
10070
10075
|
content = /* @__PURE__ */ jsxRuntimeExports.jsx(ValueDisplay, {
|
|
10071
|
-
|
|
10076
|
+
useOverflow: false,
|
|
10077
|
+
value: (_e = (_d = status.loadBalancer) == null ? void 0 : _d.ingress) == null ? void 0 : _e.map(({
|
|
10072
10078
|
ip
|
|
10073
10079
|
}) => ip).join(breakLine ? "\n" : ", ")
|
|
10074
10080
|
});
|
|
@@ -10078,6 +10084,7 @@ const ServiceOutClusterAccessComponent = ({
|
|
|
10078
10084
|
break;
|
|
10079
10085
|
default:
|
|
10080
10086
|
content = /* @__PURE__ */ jsxRuntimeExports.jsx(ValueDisplay, {
|
|
10087
|
+
useOverflow: false,
|
|
10081
10088
|
value: ""
|
|
10082
10089
|
});
|
|
10083
10090
|
break;
|
|
@@ -10901,8 +10908,25 @@ const ImageNames = ({
|
|
|
10901
10908
|
}, `${image2}-${index}`)) : value2.join(", ")
|
|
10902
10909
|
});
|
|
10903
10910
|
};
|
|
10911
|
+
const index_1m8lip = "";
|
|
10912
|
+
const LinkStyle$1 = "lmmrm55";
|
|
10913
|
+
function LinkFallback({
|
|
10914
|
+
fullPath
|
|
10915
|
+
}) {
|
|
10916
|
+
if (fullPath.includes("http") && !fullPath.includes("*")) {
|
|
10917
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(Link$1, {
|
|
10918
|
+
className: LinkStyle$1,
|
|
10919
|
+
href: fullPath,
|
|
10920
|
+
target: "_blank",
|
|
10921
|
+
children: fullPath
|
|
10922
|
+
});
|
|
10923
|
+
}
|
|
10924
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx("span", {
|
|
10925
|
+
children: fullPath
|
|
10926
|
+
});
|
|
10927
|
+
}
|
|
10904
10928
|
const index_cbhkdt = "";
|
|
10905
|
-
const LinkStyle
|
|
10929
|
+
const LinkStyle = "l1vnw9x0";
|
|
10906
10930
|
const ResourceLink = (props) => {
|
|
10907
10931
|
const {
|
|
10908
10932
|
name: name2,
|
|
@@ -10924,7 +10948,7 @@ const ResourceLink = (props) => {
|
|
|
10924
10948
|
});
|
|
10925
10949
|
};
|
|
10926
10950
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(kit.Link, {
|
|
10927
|
-
className: LinkStyle
|
|
10951
|
+
className: LinkStyle,
|
|
10928
10952
|
onClick,
|
|
10929
10953
|
children: resourceId
|
|
10930
10954
|
});
|
|
@@ -10952,7 +10976,10 @@ const IngressRulesTable = ({ ingress }) => {
|
|
|
10952
10976
|
dataIndex: "fullPath",
|
|
10953
10977
|
title: t2("dovetail.path"),
|
|
10954
10978
|
width: 478,
|
|
10955
|
-
sortable: true
|
|
10979
|
+
sortable: true,
|
|
10980
|
+
render(value2) {
|
|
10981
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(LinkFallback, { fullPath: value2 });
|
|
10982
|
+
}
|
|
10956
10983
|
},
|
|
10957
10984
|
{
|
|
10958
10985
|
key: "serviceName",
|
|
@@ -11119,14 +11146,14 @@ function Tabs(props) {
|
|
|
11119
11146
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(kit.tabsTabPane, { tab: tab.title, children: tab.children }, tab.title);
|
|
11120
11147
|
}) });
|
|
11121
11148
|
}
|
|
11122
|
-
const
|
|
11149
|
+
const ShowContent_vvz9yc = "";
|
|
11123
11150
|
const ShowContentWrapperStyle = "s9agep2";
|
|
11124
11151
|
const BackButton = "bo89gfi";
|
|
11125
11152
|
const ToolBarWrapper = "t1ohe42f";
|
|
11126
11153
|
const NameStyle = "nqm4qz0";
|
|
11127
11154
|
const TopBarStyle = "ticl0qc";
|
|
11128
11155
|
const ShowContentHeaderStyle = "so9uwk1";
|
|
11129
|
-
const GroupStyle = "ge26ou0";
|
|
11156
|
+
const GroupStyle$1 = "ge26ou0";
|
|
11130
11157
|
const GroupTitleStyle = "g17f8vl9";
|
|
11131
11158
|
const FullTabContentStyle = "fykgn2i";
|
|
11132
11159
|
const FieldWrapperStyle = "fngr745";
|
|
@@ -11141,7 +11168,7 @@ function ShowGroupComponent(props) {
|
|
|
11141
11168
|
operationEle
|
|
11142
11169
|
} = props;
|
|
11143
11170
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", {
|
|
11144
|
-
className: cx_default(GroupStyle, className),
|
|
11171
|
+
className: cx_default(GroupStyle$1, className),
|
|
11145
11172
|
children: [/* @__PURE__ */ jsxRuntimeExports.jsxs("div", {
|
|
11146
11173
|
className: cx_default(Typo.Heading.h2_bold_title, GroupTitleStyle),
|
|
11147
11174
|
children: [/* @__PURE__ */ jsxRuntimeExports.jsx("div", {
|
|
@@ -11295,11 +11322,17 @@ const ShowContent = (props) => {
|
|
|
11295
11322
|
children: (_a2 = tab.groups) == null ? void 0 : _a2.map((group) => {
|
|
11296
11323
|
const GroupContainer = group.title ? ShowGroupComponent : React__default.Fragment;
|
|
11297
11324
|
const FieldContainer = group.title ? kit.row : React__default.Fragment;
|
|
11325
|
+
const groupContainerProps = group.title ? {
|
|
11326
|
+
title: group.title || ""
|
|
11327
|
+
} : {};
|
|
11328
|
+
const fieldContainerProps = group.title ? {
|
|
11329
|
+
gutter: [24, 8]
|
|
11330
|
+
} : {};
|
|
11298
11331
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(GroupContainer, {
|
|
11299
|
-
|
|
11332
|
+
...groupContainerProps,
|
|
11300
11333
|
children: group.areas.map((area, index) => /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, {
|
|
11301
11334
|
children: [/* @__PURE__ */ jsxRuntimeExports.jsx(FieldContainer, {
|
|
11302
|
-
|
|
11335
|
+
...fieldContainerProps,
|
|
11303
11336
|
children: renderFields(area.fields, area.type, !!group.title)
|
|
11304
11337
|
}, index), index !== group.areas.length - 1 ? /* @__PURE__ */ jsxRuntimeExports.jsx(kit.divider, {
|
|
11305
11338
|
style: {
|
|
@@ -11323,8 +11356,9 @@ const ShowContent = (props) => {
|
|
|
11323
11356
|
}), tabs]
|
|
11324
11357
|
});
|
|
11325
11358
|
};
|
|
11326
|
-
const
|
|
11359
|
+
const KeyValueSecret_1ibo68a = "";
|
|
11327
11360
|
const ButtonStyle = "b11tbgf7";
|
|
11361
|
+
const GroupStyle = "gtbyh5g";
|
|
11328
11362
|
function KeyValueSecret(props) {
|
|
11329
11363
|
const {
|
|
11330
11364
|
data: data2 = {}
|
|
@@ -11346,6 +11380,7 @@ function KeyValueSecret(props) {
|
|
|
11346
11380
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(ShowGroupComponent, {
|
|
11347
11381
|
title: i18n2.t("dovetail.data"),
|
|
11348
11382
|
operationEle: toggleButton,
|
|
11383
|
+
className: GroupStyle,
|
|
11349
11384
|
children: /* @__PURE__ */ jsxRuntimeExports.jsx(KeyValue, {
|
|
11350
11385
|
data: data2,
|
|
11351
11386
|
hideSecret,
|
|
@@ -11465,7 +11500,7 @@ function getCommonErrors(responseBody, i18n2) {
|
|
|
11465
11500
|
[
|
|
11466
11501
|
`error.${cause.reason}`,
|
|
11467
11502
|
`error.${cause.code}`,
|
|
11468
|
-
`${
|
|
11503
|
+
`${cause.field ? `${cause.field}: ` : ""}${message2}`
|
|
11469
11504
|
],
|
|
11470
11505
|
{
|
|
11471
11506
|
...params,
|
|
@@ -11477,7 +11512,7 @@ function getCommonErrors(responseBody, i18n2) {
|
|
|
11477
11512
|
[
|
|
11478
11513
|
`error.${cause.reason}`,
|
|
11479
11514
|
`error.${cause.code}`,
|
|
11480
|
-
`${
|
|
11515
|
+
`${cause.field ? `${cause.field}: ` : ""}${message2}`
|
|
11481
11516
|
],
|
|
11482
11517
|
{
|
|
11483
11518
|
...params,
|
|
@@ -17651,6 +17686,12 @@ const PodLog = ({
|
|
|
17651
17686
|
scrollOffsetToBottom,
|
|
17652
17687
|
scrollUpdateWasRequested
|
|
17653
17688
|
} = params;
|
|
17689
|
+
if (scrollOffsetToBottom === -1) {
|
|
17690
|
+
setTimeout(() => {
|
|
17691
|
+
var _a2;
|
|
17692
|
+
(_a2 = logViewerRef.current) == null ? void 0 : _a2.scrollToBottom();
|
|
17693
|
+
}, 16);
|
|
17694
|
+
}
|
|
17654
17695
|
if (!scrollUpdateWasRequested) {
|
|
17655
17696
|
if (scrollOffsetToBottom > 0) {
|
|
17656
17697
|
setPaused(true);
|
|
@@ -17895,7 +17936,9 @@ const MonacoYamlEditor$1 = (props) => {
|
|
|
17895
17936
|
scrollBeyondLastLine: false,
|
|
17896
17937
|
model,
|
|
17897
17938
|
scrollbar: {
|
|
17898
|
-
handleMouseWheel: !isScrollOnFocus
|
|
17939
|
+
handleMouseWheel: !isScrollOnFocus,
|
|
17940
|
+
alwaysConsumeMouseWheel: false
|
|
17941
|
+
// https://github.com/microsoft/monaco-editor/issues/2007
|
|
17899
17942
|
},
|
|
17900
17943
|
tabSize: 2,
|
|
17901
17944
|
readOnly,
|
|
@@ -22898,7 +22941,7 @@ const Separator = () => {
|
|
|
22898
22941
|
});
|
|
22899
22942
|
};
|
|
22900
22943
|
const MonacoYamlEditor = React__default.lazy(() => Promise.resolve().then(() => MonacoYamlEditor$2));
|
|
22901
|
-
const MonacoYamlDiffEditor = React__default.lazy(() => import("./MonacoYamlDiffEditor-
|
|
22944
|
+
const MonacoYamlDiffEditor = React__default.lazy(() => import("./MonacoYamlDiffEditor-06894d28.js"));
|
|
22902
22945
|
const YamlEditorComponent = forwardRef(
|
|
22903
22946
|
function YamlEditorComponent2(props, ref) {
|
|
22904
22947
|
const {
|
|
@@ -24047,45 +24090,37 @@ const TextTags = (props) => {
|
|
|
24047
24090
|
});
|
|
24048
24091
|
return /* @__PURE__ */ jsxRuntimeExports.jsx("ul", { children: tags });
|
|
24049
24092
|
};
|
|
24050
|
-
const
|
|
24051
|
-
const LinkStyle = "l25ca2k";
|
|
24052
|
-
const IngressRulesComponent = ({
|
|
24053
|
-
ingress
|
|
24054
|
-
}) => {
|
|
24093
|
+
const IngressRulesComponent = ({ ingress }) => {
|
|
24055
24094
|
const kit = useUIKit();
|
|
24056
24095
|
const result = ingress.flattenedRules.map((r2) => {
|
|
24057
24096
|
const divider = " > ";
|
|
24058
|
-
|
|
24059
|
-
|
|
24060
|
-
|
|
24061
|
-
|
|
24062
|
-
|
|
24063
|
-
|
|
24064
|
-
|
|
24065
|
-
|
|
24066
|
-
|
|
24067
|
-
|
|
24068
|
-
|
|
24069
|
-
|
|
24070
|
-
|
|
24071
|
-
|
|
24072
|
-
|
|
24073
|
-
|
|
24074
|
-
|
|
24075
|
-
|
|
24076
|
-
|
|
24077
|
-
|
|
24078
|
-
|
|
24079
|
-
|
|
24080
|
-
|
|
24081
|
-
|
|
24082
|
-
|
|
24083
|
-
tooltip: `${r2.fullPath}${divider}:${r2.servicePort}`
|
|
24084
|
-
}, r2.fullPath);
|
|
24085
|
-
});
|
|
24086
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, {
|
|
24087
|
-
children: result
|
|
24097
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
24098
|
+
kit.overflowTooltip,
|
|
24099
|
+
{
|
|
24100
|
+
content: /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
|
|
24101
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(LinkFallback, { fullPath: r2.fullPath }),
|
|
24102
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { children: divider }),
|
|
24103
|
+
r2.serviceName ? /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
|
|
24104
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
24105
|
+
ResourceLink,
|
|
24106
|
+
{
|
|
24107
|
+
name: "services",
|
|
24108
|
+
namespace: ingress.metadata.namespace || "default",
|
|
24109
|
+
resourceId: r2.serviceName
|
|
24110
|
+
}
|
|
24111
|
+
),
|
|
24112
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("span", { children: [
|
|
24113
|
+
":",
|
|
24114
|
+
r2.servicePort
|
|
24115
|
+
] })
|
|
24116
|
+
] }) : r2.resourceName
|
|
24117
|
+
] }),
|
|
24118
|
+
tooltip: `${r2.fullPath}${divider}:${r2.servicePort}`
|
|
24119
|
+
},
|
|
24120
|
+
r2.fullPath
|
|
24121
|
+
);
|
|
24088
24122
|
});
|
|
24123
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, { children: result });
|
|
24089
24124
|
};
|
|
24090
24125
|
const columns_1h38dp = "";
|
|
24091
24126
|
const DashedTitleStyle = "dh5j833";
|
|
@@ -24385,6 +24420,7 @@ const ServiceInClusterAccessColumnRenderer = () => {
|
|
|
24385
24420
|
display: true,
|
|
24386
24421
|
dataIndex: [],
|
|
24387
24422
|
width: 160,
|
|
24423
|
+
sorter: void 0,
|
|
24388
24424
|
render(_, record) {
|
|
24389
24425
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(ServiceInClusterAccessComponent, {
|
|
24390
24426
|
service: record
|
|
@@ -24431,6 +24467,7 @@ const ServiceOutClusterAccessColumnRenderer = () => {
|
|
|
24431
24467
|
display: true,
|
|
24432
24468
|
dataIndex: [],
|
|
24433
24469
|
width: 160,
|
|
24470
|
+
sorter: void 0,
|
|
24434
24471
|
render(_, record) {
|
|
24435
24472
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(ServiceOutClusterAccessComponent, {
|
|
24436
24473
|
service: record
|
|
@@ -24469,7 +24506,7 @@ const IngressRulesColumnRenderer = (i18n2) => {
|
|
|
24469
24506
|
display: true,
|
|
24470
24507
|
dataIndex,
|
|
24471
24508
|
sortable: true,
|
|
24472
|
-
sorter:
|
|
24509
|
+
sorter: void 0,
|
|
24473
24510
|
width: 300,
|
|
24474
24511
|
render(_, record) {
|
|
24475
24512
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(IngressRulesComponent, {
|
|
@@ -24572,7 +24609,8 @@ const DataKeysColumnRenderer = (i18n2) => {
|
|
|
24572
24609
|
});
|
|
24573
24610
|
},
|
|
24574
24611
|
width: 300,
|
|
24575
|
-
sortable: true
|
|
24612
|
+
sortable: true,
|
|
24613
|
+
sorter: void 0
|
|
24576
24614
|
};
|
|
24577
24615
|
};
|
|
24578
24616
|
const PortMappingColumnRenderer = (i18n2, clusterVip) => {
|
|
@@ -24588,6 +24626,7 @@ const PortMappingColumnRenderer = (i18n2, clusterVip) => {
|
|
|
24588
24626
|
display: true,
|
|
24589
24627
|
dataIndex: ["displayPortMapping"],
|
|
24590
24628
|
width: 300,
|
|
24629
|
+
sorter: void 0,
|
|
24591
24630
|
render(value2, record) {
|
|
24592
24631
|
var _a;
|
|
24593
24632
|
const content = (_a = record.displayPortMapping) == null ? void 0 : _a.map((v) => /* @__PURE__ */ jsxRuntimeExports.jsx(OverflowTooltip, {
|
|
@@ -24662,10 +24701,7 @@ const Dovetail = (props) => {
|
|
|
24662
24701
|
options: {
|
|
24663
24702
|
warnWhenUnsavedChanges: true,
|
|
24664
24703
|
liveMode: "auto",
|
|
24665
|
-
disableTelemetry: true
|
|
24666
|
-
overtime: {
|
|
24667
|
-
interval: Number.MAX_SAFE_INTEGER
|
|
24668
|
-
}
|
|
24704
|
+
disableTelemetry: true
|
|
24669
24705
|
},
|
|
24670
24706
|
accessControlProvider,
|
|
24671
24707
|
resources: resourcesConfig.map((c2) => {
|
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-ced408be.js";
|
|
2
2
|
import "@cloudtower/eagle";
|
|
3
3
|
import "@refinedev/core";
|
|
4
4
|
import "@cloudtower/icons-react";
|