@dovetail-v2/refine 0.0.37 → 0.0.39
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-1aeca078.js → MonacoYamlDiffEditor-a74de414.js} +1 -1
- package/dist/{index-1003469d.js → index-a278c0e3.js} +199 -113
- package/dist/refine.js +1 -1
- package/dist/refine.umd.cjs +196 -110
- package/dist/style.css +23 -21
- package/lib/src/App.js +91 -0
- package/lib/src/Dovetail.d.ts +1 -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.d.ts +6 -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.d.ts +1 -1
- 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.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.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/useOpenForm.js +43 -0
- package/lib/src/hooks/useSchema.js +37 -0
- package/lib/src/hooks/useSubmitForm.js +42 -0
- 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.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.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/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.d.ts +2 -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 +3 -3
- package/lib/src/components/ModalContextProvider/index.d.ts +0 -12
- package/lib/src/hooks/useModal.d.ts +0 -0
- 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
|
@@ -10,8 +10,8 @@ import React__default, { createElement, isValidElement, cloneElement, Children,
|
|
|
10
10
|
import { ResourceContext, matchResourceFromRoute, useResource, useDelete, useNavigation, useBreadcrumb, useList, useParsed, useGo, useDeleteMany, CanAccess, useCan, useShow, useUpdate, useDataProvider, useRefineContext, useTranslate, useWarnAboutChange, useForm as useForm$1, flattenObjectKeys, useInvalidate, useUserFriendlyName, useModal, pickNotDeprecated, useMenu, useTable, 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, useUIKit, kitContext, Link as Link$1, OverflowTooltip, Tooltip, StatusCapsule, pushModal, Button, Icon as Icon$1, popModal, Loading, Divider, Fields, Form, Space, Modal, useMessage, ModalStack, KitStoreProvider } from "@cloudtower/eagle";
|
|
14
|
-
import { PlusAddCreateNew16BoldOntintIcon, EditPen16PrimaryIcon, Download16GradientBlueIcon, TrashBinDelete16Icon, MoreEllipsis324BoldSecondaryIcon, MoreEllipsis324BoldBlueIcon, MoreEllipsis316BoldBlueIcon, ArrowChevronLeft16BoldTertiaryIcon, ArrowChevronLeftSmall16BoldBlueIcon, EditPen16GradientBlueIcon,
|
|
13
|
+
import { Typo, Tag, useUIKit, kitContext, Link as Link$1, OverflowTooltip, Tooltip, StatusCapsule, pushModal, Button, Icon as Icon$1, popModal, Loading, Divider, Fields, Form, Space, Modal, useMessage, ModalStack, KitStoreProvider } from "@cloudtower/eagle";
|
|
14
|
+
import { PlusAddCreateNew16BoldOntintIcon, EditPen16PrimaryIcon, Download16GradientBlueIcon, TrashBinDelete16Icon, MoreEllipsis324BoldSecondaryIcon, MoreEllipsis324BoldBlueIcon, MoreEllipsis316BoldBlueIcon, 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 { get as get$2, first, debounce, last, isObject as isObject$2, merge, keyBy } from "lodash-es";
|
|
16
16
|
import yaml from "js-yaml";
|
|
17
17
|
import * as monaco from "monaco-editor";
|
|
@@ -1261,7 +1261,7 @@ const already_reset = "已重置";
|
|
|
1261
1261
|
const cancel = "取消";
|
|
1262
1262
|
const create = "创建";
|
|
1263
1263
|
const delete_resource = "删除 {{resource}}";
|
|
1264
|
-
const confirm_delete_text = "确认删除 {{kind}} {{target}} 吗?";
|
|
1264
|
+
const confirm_delete_text = "确认删除 {{kind}} <0>{{target}}</0> 吗?";
|
|
1265
1265
|
const delete_tip = "该操作无法被撤回。";
|
|
1266
1266
|
const edit = "编辑";
|
|
1267
1267
|
const namespace = "名字空间";
|
|
@@ -8034,10 +8034,11 @@ var cx = function cx2() {
|
|
|
8034
8034
|
};
|
|
8035
8035
|
var cx_default = cx;
|
|
8036
8036
|
const ConfigsContext = createContext({});
|
|
8037
|
-
const
|
|
8037
|
+
const useDeleteModal_1kqb6q3 = "";
|
|
8038
8038
|
const TextStyle = "t1vq0ett";
|
|
8039
8039
|
const TipStyle = "t139onst";
|
|
8040
|
-
const
|
|
8040
|
+
const NameStyle$1 = "n18lzor8";
|
|
8041
|
+
const ModalStyle = "mvvgkkc";
|
|
8041
8042
|
const useDeleteModal = (resource) => {
|
|
8042
8043
|
const configs = useContext(ConfigsContext);
|
|
8043
8044
|
const config = configs[resource];
|
|
@@ -8065,12 +8066,17 @@ const useDeleteModal = (resource) => {
|
|
|
8065
8066
|
children: /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, {
|
|
8066
8067
|
children: [/* @__PURE__ */ jsxRuntimeExports.jsx("div", {
|
|
8067
8068
|
className: cx_default(Typo.Label.l2_regular, TextStyle),
|
|
8068
|
-
children:
|
|
8069
|
-
|
|
8070
|
-
|
|
8071
|
-
|
|
8072
|
-
|
|
8073
|
-
}
|
|
8069
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx(Trans, {
|
|
8070
|
+
i18nKey: "dovetail.confirm_delete_text",
|
|
8071
|
+
tOptions: {
|
|
8072
|
+
target: id,
|
|
8073
|
+
kind: config.kind
|
|
8074
|
+
},
|
|
8075
|
+
shouldUnescape: true,
|
|
8076
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx(Tag, {
|
|
8077
|
+
color: "gray",
|
|
8078
|
+
className: NameStyle$1
|
|
8079
|
+
})
|
|
8074
8080
|
})
|
|
8075
8081
|
}), /* @__PURE__ */ jsxRuntimeExports.jsx("div", {
|
|
8076
8082
|
className: cx_default(Typo.Label.l4_regular, TipStyle),
|
|
@@ -8517,32 +8523,54 @@ var styled_default = process.env.NODE_ENV !== "production" ? new Proxy(styled, {
|
|
|
8517
8523
|
return o(prop);
|
|
8518
8524
|
}
|
|
8519
8525
|
}) : styled;
|
|
8520
|
-
const
|
|
8521
|
-
const ErrorWrapper
|
|
8526
|
+
const index_1rdsv5g = "";
|
|
8527
|
+
const ErrorWrapper = /* @__PURE__ */ styled_default("div")({
|
|
8522
8528
|
name: "ErrorWrapper",
|
|
8523
8529
|
class: "egn3dbn",
|
|
8524
8530
|
propsAsIs: false
|
|
8525
8531
|
});
|
|
8526
|
-
const ErrorContent
|
|
8532
|
+
const ErrorContent = /* @__PURE__ */ styled_default("div")({
|
|
8527
8533
|
name: "ErrorContent",
|
|
8528
8534
|
class: "e136jgy8",
|
|
8529
8535
|
propsAsIs: false
|
|
8530
8536
|
});
|
|
8531
|
-
|
|
8537
|
+
var ErrorContentType = /* @__PURE__ */ ((ErrorContentType2) => {
|
|
8538
|
+
ErrorContentType2["List"] = "list";
|
|
8539
|
+
ErrorContentType2["Card"] = "card";
|
|
8540
|
+
ErrorContentType2["Widget"] = "widget";
|
|
8541
|
+
return ErrorContentType2;
|
|
8542
|
+
})(ErrorContentType || {});
|
|
8543
|
+
const WidgetErrorContent = (props) => {
|
|
8532
8544
|
const {
|
|
8533
8545
|
refetch,
|
|
8534
|
-
errorText
|
|
8546
|
+
errorText,
|
|
8547
|
+
type: type2 = "list"
|
|
8548
|
+
/* List */
|
|
8535
8549
|
} = props;
|
|
8536
8550
|
const kit = useContext(kitContext);
|
|
8537
8551
|
const {
|
|
8538
8552
|
t: t2
|
|
8539
8553
|
} = useTranslation();
|
|
8540
|
-
|
|
8554
|
+
const fontMap = {
|
|
8555
|
+
[
|
|
8556
|
+
"widget"
|
|
8557
|
+
/* Widget */
|
|
8558
|
+
]: Typo.Label.l1_regular_title,
|
|
8559
|
+
[
|
|
8560
|
+
"card"
|
|
8561
|
+
/* Card */
|
|
8562
|
+
]: Typo.Label.l1_bold,
|
|
8563
|
+
[
|
|
8564
|
+
"list"
|
|
8565
|
+
/* List */
|
|
8566
|
+
]: Typo.Display.d2_bold_title
|
|
8567
|
+
};
|
|
8568
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(ErrorWrapper, {
|
|
8541
8569
|
className: props.className,
|
|
8542
8570
|
style: props.style,
|
|
8543
|
-
children: /* @__PURE__ */ jsxRuntimeExports.jsxs(ErrorContent
|
|
8571
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsxs(ErrorContent, {
|
|
8544
8572
|
children: [/* @__PURE__ */ jsxRuntimeExports.jsx("p", {
|
|
8545
|
-
className: cx_default(
|
|
8573
|
+
className: cx_default(fontMap[type2], "title", type2),
|
|
8546
8574
|
children: errorText || t2("dovetail.obtain_data_error")
|
|
8547
8575
|
}), !refetch ? null : /* @__PURE__ */ jsxRuntimeExports.jsx(kit.button, {
|
|
8548
8576
|
size: "small",
|
|
@@ -8556,36 +8584,6 @@ const WidgetErrorContent$1 = (props) => {
|
|
|
8556
8584
|
})
|
|
8557
8585
|
});
|
|
8558
8586
|
};
|
|
8559
|
-
const ErrorContent_1t51xnx = "";
|
|
8560
|
-
const ErrorWrapper = "eckm4od";
|
|
8561
|
-
const ErrorContent = "e1hl982n";
|
|
8562
|
-
const WidgetErrorContent = (props) => {
|
|
8563
|
-
const {
|
|
8564
|
-
refetch
|
|
8565
|
-
} = props;
|
|
8566
|
-
const kit = useContext(kitContext);
|
|
8567
|
-
const {
|
|
8568
|
-
t: t2
|
|
8569
|
-
} = useTranslation();
|
|
8570
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", {
|
|
8571
|
-
className: ErrorWrapper,
|
|
8572
|
-
style: props.style,
|
|
8573
|
-
children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", {
|
|
8574
|
-
className: ErrorContent,
|
|
8575
|
-
children: [/* @__PURE__ */ jsxRuntimeExports.jsx("p", {
|
|
8576
|
-
className: cx_default(Typo.Label.l1_regular_title, "title"),
|
|
8577
|
-
children: props.errorText || t2("dovetail.obtain_data_error")
|
|
8578
|
-
}), refetch ? /* @__PURE__ */ jsxRuntimeExports.jsx(kit.button, {
|
|
8579
|
-
type: "ordinary",
|
|
8580
|
-
onClick: (e2) => {
|
|
8581
|
-
e2.stopPropagation();
|
|
8582
|
-
refetch == null ? void 0 : refetch();
|
|
8583
|
-
},
|
|
8584
|
-
children: t2("dovetail.retry")
|
|
8585
|
-
}) : null]
|
|
8586
|
-
})
|
|
8587
|
-
});
|
|
8588
|
-
};
|
|
8589
8587
|
const TableWidgets_ny30pi = "";
|
|
8590
8588
|
const AuxiliaryLine = /* @__PURE__ */ styled_default("div")({
|
|
8591
8589
|
name: "AuxiliaryLine",
|
|
@@ -8709,10 +8707,11 @@ const PodSelectorTable = ({ podSelectors = {} }) => {
|
|
|
8709
8707
|
];
|
|
8710
8708
|
if (datas.length === 0) {
|
|
8711
8709
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
8712
|
-
WidgetErrorContent
|
|
8710
|
+
WidgetErrorContent,
|
|
8713
8711
|
{
|
|
8714
8712
|
errorText: t2("dovetail.no_resource", { kind: ` ${t2("dovetail.pod_selector")}` }),
|
|
8715
|
-
style: { padding: "15px 0" }
|
|
8713
|
+
style: { padding: "15px 0" },
|
|
8714
|
+
type: ErrorContentType.Card
|
|
8716
8715
|
}
|
|
8717
8716
|
);
|
|
8718
8717
|
}
|
|
@@ -8779,7 +8778,14 @@ const PortsTable = ({ service }) => {
|
|
|
8779
8778
|
id: port2.name || ""
|
|
8780
8779
|
}));
|
|
8781
8780
|
if ((ports == null ? void 0 : ports.length) === 0) {
|
|
8782
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
8781
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
8782
|
+
WidgetErrorContent,
|
|
8783
|
+
{
|
|
8784
|
+
errorText: t2("dovetail.no_resource", { kind: t2("dovetail.port") }),
|
|
8785
|
+
style: { padding: "15px 0" },
|
|
8786
|
+
type: ErrorContentType.Card
|
|
8787
|
+
}
|
|
8788
|
+
);
|
|
8783
8789
|
}
|
|
8784
8790
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
8785
8791
|
Table$1,
|
|
@@ -9932,7 +9938,7 @@ const ServiceOutClusterAccessComponent = ({
|
|
|
9932
9938
|
children: content || "-"
|
|
9933
9939
|
});
|
|
9934
9940
|
};
|
|
9935
|
-
const
|
|
9941
|
+
const index_1wlqq0y = "";
|
|
9936
9942
|
const TagWrapper = "t13a6vox";
|
|
9937
9943
|
const TagStyle = "t12ikbmp";
|
|
9938
9944
|
const Tags = (props) => {
|
|
@@ -10044,7 +10050,7 @@ var relativeTime$1 = { exports: {} };
|
|
|
10044
10050
|
})(relativeTime$1);
|
|
10045
10051
|
var relativeTimeExports = relativeTime$1.exports;
|
|
10046
10052
|
const relativeTime = /* @__PURE__ */ getDefaultExportFromCjs(relativeTimeExports);
|
|
10047
|
-
const
|
|
10053
|
+
const index_1779z85 = "";
|
|
10048
10054
|
dayjs.extend(relativeTime, {
|
|
10049
10055
|
thresholds: [{
|
|
10050
10056
|
l: "s",
|
|
@@ -10160,7 +10166,14 @@ const ConditionsTable = ({ conditions = [] }) => {
|
|
|
10160
10166
|
}
|
|
10161
10167
|
];
|
|
10162
10168
|
if (conditionsWithId.length === 0) {
|
|
10163
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
10169
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
10170
|
+
WidgetErrorContent,
|
|
10171
|
+
{
|
|
10172
|
+
errorText: t2("dovetail.no_resource", { kind: t2("dovetail.condition") }),
|
|
10173
|
+
style: { padding: "15px 0" },
|
|
10174
|
+
type: ErrorContentType.Card
|
|
10175
|
+
}
|
|
10176
|
+
);
|
|
10164
10177
|
}
|
|
10165
10178
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
10166
10179
|
Table$1,
|
|
@@ -10378,7 +10391,8 @@ const CronjobJobsTable = ({
|
|
|
10378
10391
|
const component = useContext(ComponentContext);
|
|
10379
10392
|
const Table$1 = component.Table || Table;
|
|
10380
10393
|
const {
|
|
10381
|
-
data: data2
|
|
10394
|
+
data: data2,
|
|
10395
|
+
isLoading
|
|
10382
10396
|
} = useList({
|
|
10383
10397
|
resource: "jobs",
|
|
10384
10398
|
meta: {
|
|
@@ -10392,6 +10406,14 @@ const CronjobJobsTable = ({
|
|
|
10392
10406
|
});
|
|
10393
10407
|
}, [data2 == null ? void 0 : data2.data, owner]);
|
|
10394
10408
|
const columns = [NameColumnRenderer(i18n2, "jobs"), StateDisplayColumnRenderer(i18n2), NameSpaceColumnRenderer(i18n2), WorkloadImageColumnRenderer(i18n2), CompletionsCountColumnRenderer(i18n2), DurationColumnRenderer(i18n2), AgeColumnRenderer(i18n2)];
|
|
10409
|
+
if (!(dataSource == null ? void 0 : dataSource.length) && !isLoading) {
|
|
10410
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(WidgetErrorContent, {
|
|
10411
|
+
errorText: i18n2.t("dovetail.no_resource", {
|
|
10412
|
+
kind: " Job"
|
|
10413
|
+
}),
|
|
10414
|
+
type: ErrorContentType.Card
|
|
10415
|
+
});
|
|
10416
|
+
}
|
|
10395
10417
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(kit.space, {
|
|
10396
10418
|
direction: "vertical",
|
|
10397
10419
|
className: WrapperStyle$5,
|
|
@@ -10400,7 +10422,7 @@ const CronjobJobsTable = ({
|
|
|
10400
10422
|
hideCreate: true
|
|
10401
10423
|
}), /* @__PURE__ */ jsxRuntimeExports.jsx(Table$1, {
|
|
10402
10424
|
tableKey: "cronjobs",
|
|
10403
|
-
loading:
|
|
10425
|
+
loading: isLoading,
|
|
10404
10426
|
data: dataSource || [],
|
|
10405
10427
|
columns,
|
|
10406
10428
|
rowKey: "id",
|
|
@@ -10468,7 +10490,7 @@ const EventsTable = ({}) => {
|
|
|
10468
10490
|
}, [data2 == null ? void 0 : data2.data, parsed]);
|
|
10469
10491
|
if (!(dataSource == null ? void 0 : dataSource.length) && !isLoading) {
|
|
10470
10492
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
10471
|
-
WidgetErrorContent
|
|
10493
|
+
WidgetErrorContent,
|
|
10472
10494
|
{
|
|
10473
10495
|
errorText: i18n2.t("dovetail.no_resource", { kind: i18n2.t("dovetail.event") })
|
|
10474
10496
|
}
|
|
@@ -10591,7 +10613,14 @@ const IngressRulesTable = ({ ingress }) => {
|
|
|
10591
10613
|
}
|
|
10592
10614
|
];
|
|
10593
10615
|
if ((rows == null ? void 0 : rows.length) === 0) {
|
|
10594
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
10616
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
10617
|
+
WidgetErrorContent,
|
|
10618
|
+
{
|
|
10619
|
+
errorText: t2("dovetail.no_resource", { kind: t2("dovetail.rule") }),
|
|
10620
|
+
style: { padding: "15px 0" },
|
|
10621
|
+
type: ErrorContentType.Card
|
|
10622
|
+
}
|
|
10623
|
+
);
|
|
10595
10624
|
}
|
|
10596
10625
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
10597
10626
|
Table$1,
|
|
@@ -10609,7 +10638,7 @@ const IngressRulesTable = ({ ingress }) => {
|
|
|
10609
10638
|
}
|
|
10610
10639
|
);
|
|
10611
10640
|
};
|
|
10612
|
-
const
|
|
10641
|
+
const KeyValue_1ebh6uj = "";
|
|
10613
10642
|
const ContentBlockStyle = "c8jy7dc";
|
|
10614
10643
|
const KeyStyle = "k2sddxl";
|
|
10615
10644
|
const ValueStyle$2 = "v16vicsr";
|
|
@@ -10633,8 +10662,9 @@ const KeyValue = (props) => {
|
|
|
10633
10662
|
})]
|
|
10634
10663
|
}, key2));
|
|
10635
10664
|
if (!result.length) {
|
|
10636
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(WidgetErrorContent
|
|
10637
|
-
errorText: empty2 || t2("dovetail.empty")
|
|
10665
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(WidgetErrorContent, {
|
|
10666
|
+
errorText: empty2 || t2("dovetail.empty"),
|
|
10667
|
+
type: ErrorContentType.Card
|
|
10638
10668
|
});
|
|
10639
10669
|
}
|
|
10640
10670
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, {
|
|
@@ -10792,7 +10822,7 @@ function Tabs(props) {
|
|
|
10792
10822
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(kit.tabsTabPane, { tab: tab.title, children: tab.children }, tab.title);
|
|
10793
10823
|
}) });
|
|
10794
10824
|
}
|
|
10795
|
-
const
|
|
10825
|
+
const ShowContent_fjwscu = "";
|
|
10796
10826
|
const ShowContentWrapperStyle = "s9agep2";
|
|
10797
10827
|
const BackButton = "bo89gfi";
|
|
10798
10828
|
const ToolBarWrapper = "t1ohe42f";
|
|
@@ -10973,7 +11003,11 @@ const ShowContent = (props) => {
|
|
|
10973
11003
|
children: [/* @__PURE__ */ jsxRuntimeExports.jsx(FieldContainer, {
|
|
10974
11004
|
gutter: [24, 8],
|
|
10975
11005
|
children: renderFields(area.fields, area.type, !!group.title)
|
|
10976
|
-
}, index), index !== group.areas.length - 1 ? /* @__PURE__ */ jsxRuntimeExports.jsx(kit.divider, {
|
|
11006
|
+
}, index), index !== group.areas.length - 1 ? /* @__PURE__ */ jsxRuntimeExports.jsx(kit.divider, {
|
|
11007
|
+
style: {
|
|
11008
|
+
margin: "8px 0 12px 0"
|
|
11009
|
+
}
|
|
11010
|
+
}) : null]
|
|
10977
11011
|
}))
|
|
10978
11012
|
}, group.title);
|
|
10979
11013
|
})
|
|
@@ -10991,20 +11025,37 @@ const ShowContent = (props) => {
|
|
|
10991
11025
|
}), tabs]
|
|
10992
11026
|
});
|
|
10993
11027
|
};
|
|
11028
|
+
const KeyValueSecret_1nzeh2v = "";
|
|
11029
|
+
const ButtonStyle = "b11tbgf7";
|
|
10994
11030
|
function KeyValueSecret(props) {
|
|
10995
|
-
const {
|
|
10996
|
-
|
|
11031
|
+
const {
|
|
11032
|
+
data: data2 = {}
|
|
11033
|
+
} = props;
|
|
11034
|
+
const {
|
|
11035
|
+
i18n: i18n2
|
|
11036
|
+
} = useTranslation();
|
|
10997
11037
|
const [hideSecret, setHideSecret] = useState(true);
|
|
10998
|
-
const toggleButton = /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
10999
|
-
|
|
11000
|
-
{
|
|
11001
|
-
|
|
11002
|
-
|
|
11003
|
-
|
|
11004
|
-
|
|
11005
|
-
|
|
11006
|
-
|
|
11007
|
-
|
|
11038
|
+
const toggleButton = /* @__PURE__ */ jsxRuntimeExports.jsx(Button, {
|
|
11039
|
+
type: "quiet",
|
|
11040
|
+
prefixIcon: /* @__PURE__ */ jsxRuntimeExports.jsx(Icon$1, {
|
|
11041
|
+
src: hideSecret ? ViewEye16GradientGrayIcon : EntityFilterIgnoreGradient16GrayIcon
|
|
11042
|
+
}),
|
|
11043
|
+
onClick: () => setHideSecret((v) => !v),
|
|
11044
|
+
className: ButtonStyle,
|
|
11045
|
+
size: "small",
|
|
11046
|
+
children: hideSecret ? i18n2.t("dovetail.show_data_value") : i18n2.t("dovetail.hide_data_value")
|
|
11047
|
+
});
|
|
11048
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(ShowGroupComponent, {
|
|
11049
|
+
title: i18n2.t("dovetail.data"),
|
|
11050
|
+
operationEle: toggleButton,
|
|
11051
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx(KeyValue, {
|
|
11052
|
+
data: data2,
|
|
11053
|
+
hideSecret,
|
|
11054
|
+
empty: i18n2.t("dovetail.no_resource", {
|
|
11055
|
+
kind: i18n2.t("dovetail.data")
|
|
11056
|
+
})
|
|
11057
|
+
})
|
|
11058
|
+
});
|
|
11008
11059
|
}
|
|
11009
11060
|
const WorkloadPodsTable_1giuese = "";
|
|
11010
11061
|
const WorkloadPodsTable = ({
|
|
@@ -11044,13 +11095,14 @@ const WorkloadPodsTable = ({
|
|
|
11044
11095
|
sortable: true
|
|
11045
11096
|
}, NodeNameColumnRenderer(i18n2), WorkloadImageColumnRenderer(i18n2), PodContainersNumColumnRenderer(i18n2), RestartCountColumnRenderer(i18n2), AgeColumnRenderer(i18n2)];
|
|
11046
11097
|
if ((dataSource == null ? void 0 : dataSource.length) === 0) {
|
|
11047
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(WidgetErrorContent
|
|
11098
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(WidgetErrorContent, {
|
|
11048
11099
|
errorText: i18n2.t("dovetail.no_resource", {
|
|
11049
11100
|
kind: ` ${i18n2.t("dovetail.pod")}`
|
|
11050
11101
|
}),
|
|
11051
11102
|
style: {
|
|
11052
11103
|
padding: "15px 0"
|
|
11053
|
-
}
|
|
11104
|
+
},
|
|
11105
|
+
type: ErrorContentType.Card
|
|
11054
11106
|
});
|
|
11055
11107
|
}
|
|
11056
11108
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(kit.space, {
|
|
@@ -17427,7 +17479,7 @@ const PodLog = ({
|
|
|
17427
17479
|
})]
|
|
17428
17480
|
}), /* @__PURE__ */ jsxRuntimeExports.jsx("div", {
|
|
17429
17481
|
className: ContentStyle$1,
|
|
17430
|
-
children: logType === "previous" && !logs.length ? /* @__PURE__ */ jsxRuntimeExports.jsx(WidgetErrorContent
|
|
17482
|
+
children: logType === "previous" && !logs.length ? /* @__PURE__ */ jsxRuntimeExports.jsx(WidgetErrorContent, {
|
|
17431
17483
|
style: {
|
|
17432
17484
|
height: "100%"
|
|
17433
17485
|
},
|
|
@@ -17653,13 +17705,14 @@ const NetworkPolicyRulesViewer = ({
|
|
|
17653
17705
|
t: t2
|
|
17654
17706
|
} = useTranslation();
|
|
17655
17707
|
if (!ingressOrEgress) {
|
|
17656
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(WidgetErrorContent
|
|
17708
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(WidgetErrorContent, {
|
|
17657
17709
|
errorText: t2("dovetail.no_resource", {
|
|
17658
17710
|
kind: kind || t2("dovetail.rule")
|
|
17659
17711
|
}),
|
|
17660
17712
|
style: {
|
|
17661
17713
|
padding: "15px 0"
|
|
17662
|
-
}
|
|
17714
|
+
},
|
|
17715
|
+
type: ErrorContentType.Card
|
|
17663
17716
|
});
|
|
17664
17717
|
}
|
|
17665
17718
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(MonacoYamlEditor$1, {
|
|
@@ -17740,7 +17793,14 @@ const PodContainersTable = ({
|
|
|
17740
17793
|
[containerStatuses, initContainerStatuses]
|
|
17741
17794
|
);
|
|
17742
17795
|
if (dataSource.length === 0) {
|
|
17743
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
17796
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
17797
|
+
WidgetErrorContent,
|
|
17798
|
+
{
|
|
17799
|
+
errorText: i18n2.t("dovetail.no_resource", { kind: i18n2.t("dovetail.container") }),
|
|
17800
|
+
style: { padding: "15px 0" },
|
|
17801
|
+
type: ErrorContentType.Card
|
|
17802
|
+
}
|
|
17803
|
+
);
|
|
17744
17804
|
}
|
|
17745
17805
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
17746
17806
|
Table$1,
|
|
@@ -18197,16 +18257,17 @@ function parseJSON(value2) {
|
|
|
18197
18257
|
return void 0;
|
|
18198
18258
|
}
|
|
18199
18259
|
}
|
|
18200
|
-
const
|
|
18260
|
+
const index_1uuzt53 = "";
|
|
18201
18261
|
const SelectStyle = "sj0ggy";
|
|
18202
|
-
const
|
|
18203
|
-
const
|
|
18204
|
-
const
|
|
18205
|
-
const
|
|
18206
|
-
const
|
|
18207
|
-
const
|
|
18208
|
-
const
|
|
18209
|
-
const
|
|
18262
|
+
const DropdownStyle = "d1eo8uqs";
|
|
18263
|
+
const SearchInputStyle = "s64gojc";
|
|
18264
|
+
const SelectContentStyle = "s16fqgtu";
|
|
18265
|
+
const TokenStyle = "tgaujbg";
|
|
18266
|
+
const CountTokenStyle = "c1vbd54v";
|
|
18267
|
+
const SelectOptionGroupStyle = "sxzmtrx";
|
|
18268
|
+
const LabelWrapperStyle = "lqrghwd";
|
|
18269
|
+
const AllNamespaceOptionStyle = "api7z1z";
|
|
18270
|
+
const OptionStyle = "o38b23x";
|
|
18210
18271
|
const NS_STORE_KEY = "namespace-filter";
|
|
18211
18272
|
const ALL_NS = "_all";
|
|
18212
18273
|
const useNamespacesFilter = () => {
|
|
@@ -18241,9 +18302,10 @@ const NamespacesFilter = ({
|
|
|
18241
18302
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(kit.select, {
|
|
18242
18303
|
loading: isLoading,
|
|
18243
18304
|
style: {
|
|
18244
|
-
width:
|
|
18305
|
+
width: 278
|
|
18245
18306
|
},
|
|
18246
18307
|
className: cx_default(SelectStyle, className),
|
|
18308
|
+
dropdownClassName: DropdownStyle,
|
|
18247
18309
|
searchValue: search,
|
|
18248
18310
|
virtual: false,
|
|
18249
18311
|
input: {
|
|
@@ -18277,12 +18339,13 @@ const NamespacesFilter = ({
|
|
|
18277
18339
|
const isAll = value22 === ALL_NS;
|
|
18278
18340
|
return isAll ? /* @__PURE__ */ jsxRuntimeExports.jsx("span", {
|
|
18279
18341
|
style: {
|
|
18280
|
-
marginLeft:
|
|
18342
|
+
marginLeft: 8
|
|
18281
18343
|
},
|
|
18282
18344
|
children: label2
|
|
18283
18345
|
}) : /* @__PURE__ */ jsxRuntimeExports.jsx(kit.token, {
|
|
18284
18346
|
className: cx_default(isCountToken ? CountTokenStyle : TokenStyle, isCountToken ? "" : "closable-token"),
|
|
18285
18347
|
closable,
|
|
18348
|
+
size: "medium",
|
|
18286
18349
|
onClose,
|
|
18287
18350
|
children: /* @__PURE__ */ jsxRuntimeExports.jsx(kit.overflowTooltip, {
|
|
18288
18351
|
content: isCountToken ? label2.replace(/[\s\.]/g, "") : label2
|
|
@@ -18352,7 +18415,9 @@ function ListPage(props) {
|
|
|
18352
18415
|
}), /* @__PURE__ */ jsxRuntimeExports.jsx(Divider, {
|
|
18353
18416
|
style: {
|
|
18354
18417
|
margin: 0,
|
|
18355
|
-
minHeight: 1
|
|
18418
|
+
minHeight: 1,
|
|
18419
|
+
marginRight: 24,
|
|
18420
|
+
width: "calc(100% - 24px)"
|
|
18356
18421
|
}
|
|
18357
18422
|
}), /* @__PURE__ */ jsxRuntimeExports.jsxs("div", {
|
|
18358
18423
|
className: ListContentStyle,
|
|
@@ -18360,7 +18425,7 @@ function ListPage(props) {
|
|
|
18360
18425
|
className: NamespaceFilterStyle
|
|
18361
18426
|
}), /* @__PURE__ */ jsxRuntimeExports.jsx("div", {
|
|
18362
18427
|
className: TableStyle,
|
|
18363
|
-
children: !(tableProps.data.length || tableProps.loading) ? /* @__PURE__ */ jsxRuntimeExports.jsx(WidgetErrorContent
|
|
18428
|
+
children: !(tableProps.data.length || tableProps.loading) ? /* @__PURE__ */ jsxRuntimeExports.jsx(WidgetErrorContent, {
|
|
18364
18429
|
errorText: tableProps.empty || t2("dovetail.no_resource", {
|
|
18365
18430
|
kind: ` ${config.kind}`
|
|
18366
18431
|
})
|
|
@@ -21652,6 +21717,11 @@ const RefineFormContent = (props) => {
|
|
|
21652
21717
|
meta: {}
|
|
21653
21718
|
});
|
|
21654
21719
|
}
|
|
21720
|
+
if (action === "edit" && c2.key === "name") {
|
|
21721
|
+
ele = /* @__PURE__ */ jsxRuntimeExports.jsx("div", {
|
|
21722
|
+
children: value2
|
|
21723
|
+
});
|
|
21724
|
+
}
|
|
21655
21725
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(Form.Item, {
|
|
21656
21726
|
label: c2.label,
|
|
21657
21727
|
labelCol: {
|
|
@@ -22214,7 +22284,7 @@ const useRefineForm = (props) => {
|
|
|
22214
22284
|
message: i18n2.t(
|
|
22215
22285
|
id ? "dovetail.edit_resource_success" : "dovetail.create_success_toast",
|
|
22216
22286
|
{
|
|
22217
|
-
|
|
22287
|
+
kind: formValue.kind,
|
|
22218
22288
|
name: formValue.metadata.name,
|
|
22219
22289
|
interpolation: { escapeValue: false }
|
|
22220
22290
|
}
|
|
@@ -22249,7 +22319,7 @@ const Separator = () => {
|
|
|
22249
22319
|
});
|
|
22250
22320
|
};
|
|
22251
22321
|
const MonacoYamlEditor = React__default.lazy(() => Promise.resolve().then(() => MonacoYamlEditor$2));
|
|
22252
|
-
const MonacoYamlDiffEditor = React__default.lazy(() => import("./MonacoYamlDiffEditor-
|
|
22322
|
+
const MonacoYamlDiffEditor = React__default.lazy(() => import("./MonacoYamlDiffEditor-a74de414.js"));
|
|
22253
22323
|
const YamlEditorComponent = forwardRef(
|
|
22254
22324
|
function YamlEditorComponent2(props, ref) {
|
|
22255
22325
|
const {
|
|
@@ -22914,7 +22984,7 @@ function YamlForm(props) {
|
|
|
22914
22984
|
isEdit: action === "edit"
|
|
22915
22985
|
})
|
|
22916
22986
|
})]
|
|
22917
|
-
}) : /* @__PURE__ */ jsxRuntimeExports.jsx(WidgetErrorContent
|
|
22987
|
+
}) : /* @__PURE__ */ jsxRuntimeExports.jsx(WidgetErrorContent, {
|
|
22918
22988
|
errorText: t2("dovetail.fetch_schema_fail"),
|
|
22919
22989
|
refetch: fetchSchema
|
|
22920
22990
|
});
|
|
@@ -22922,11 +22992,12 @@ function YamlForm(props) {
|
|
|
22922
22992
|
})
|
|
22923
22993
|
});
|
|
22924
22994
|
}
|
|
22925
|
-
const
|
|
22995
|
+
const FormModal_aey716 = "";
|
|
22926
22996
|
const FullscreenModalStyle = "f1nltbcu";
|
|
22927
|
-
const
|
|
22997
|
+
const FormDescStyle = "f1qgcca6";
|
|
22998
|
+
const ErrorStyle = "e1tl3wq2";
|
|
22928
22999
|
function FormModal(props) {
|
|
22929
|
-
var _a;
|
|
23000
|
+
var _a, _b, _c, _d;
|
|
22930
23001
|
const {
|
|
22931
23002
|
resource: resourceFromProps,
|
|
22932
23003
|
id,
|
|
@@ -22947,12 +23018,12 @@ function FormModal(props) {
|
|
|
22947
23018
|
});
|
|
22948
23019
|
const okText = i18n2.t(id ? "dovetail.save" : "dovetail.create");
|
|
22949
23020
|
const yamlFormProps = useMemo(() => {
|
|
22950
|
-
var _a2,
|
|
23021
|
+
var _a2, _b2, _c2;
|
|
22951
23022
|
return {
|
|
22952
23023
|
...props.formProps,
|
|
22953
23024
|
transformInitValues: (_a2 = config.formConfig) == null ? void 0 : _a2.transformInitValues,
|
|
22954
|
-
transformApplyValues: (
|
|
22955
|
-
initialValues: ((
|
|
23025
|
+
transformApplyValues: (_b2 = config.formConfig) == null ? void 0 : _b2.transformApplyValues,
|
|
23026
|
+
initialValues: ((_c2 = props.formProps) == null ? void 0 : _c2.initialValues) || (config == null ? void 0 : config.initValue),
|
|
22956
23027
|
id,
|
|
22957
23028
|
action: id ? "edit" : "create",
|
|
22958
23029
|
isShowLayout: false,
|
|
@@ -22972,7 +23043,8 @@ function FormModal(props) {
|
|
|
22972
23043
|
refineProps: {
|
|
22973
23044
|
onMutationSuccess: () => {
|
|
22974
23045
|
popModal();
|
|
22975
|
-
}
|
|
23046
|
+
},
|
|
23047
|
+
redirect: false
|
|
22976
23048
|
}
|
|
22977
23049
|
});
|
|
22978
23050
|
const isYamlForm = !((_a = config.formConfig) == null ? void 0 : _a.fields);
|
|
@@ -23004,10 +23076,10 @@ function FormModal(props) {
|
|
|
23004
23076
|
return i18n2.t(id ? "dovetail.save_failed" : "dovetail.create_failed");
|
|
23005
23077
|
}
|
|
23006
23078
|
})();
|
|
23007
|
-
return /* @__PURE__ */ jsxRuntimeExports.
|
|
23079
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs(Modal, {
|
|
23008
23080
|
className: FullscreenModalStyle,
|
|
23009
23081
|
width: "calc(100vw - 16px)",
|
|
23010
|
-
title,
|
|
23082
|
+
title: ((_b = config.formConfig) == null ? void 0 : _b.formTitle) || title,
|
|
23011
23083
|
error: errorText ? /* @__PURE__ */ jsxRuntimeExports.jsxs("div", {
|
|
23012
23084
|
className: ErrorStyle,
|
|
23013
23085
|
children: [/* @__PURE__ */ jsxRuntimeExports.jsx(ExclamationErrorCircleFill16RedIcon, {}), " ", errorText]
|
|
@@ -23019,7 +23091,10 @@ function FormModal(props) {
|
|
|
23019
23091
|
onCancel,
|
|
23020
23092
|
destroyOnClose: true,
|
|
23021
23093
|
fullscreen: true,
|
|
23022
|
-
children:
|
|
23094
|
+
children: [((_c = config.formConfig) == null ? void 0 : _c.formDesc) ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", {
|
|
23095
|
+
className: FormDescStyle,
|
|
23096
|
+
children: (_d = config.formConfig) == null ? void 0 : _d.formDesc
|
|
23097
|
+
}) : void 0, formEle]
|
|
23023
23098
|
});
|
|
23024
23099
|
}
|
|
23025
23100
|
const RefineFormPage_aqoiay = "";
|
|
@@ -23359,7 +23434,7 @@ const IngressRulesComponent = ({ ingress }) => {
|
|
|
23359
23434
|
const divider = " > ";
|
|
23360
23435
|
let pre = /* @__PURE__ */ jsxRuntimeExports.jsx("span", { children: r2.fullPath });
|
|
23361
23436
|
if (r2.fullPath.includes("http") && !r2.fullPath.includes("*")) {
|
|
23362
|
-
pre = /* @__PURE__ */ jsxRuntimeExports.jsx(kit.Link, { href: r2.fullPath, children: r2.fullPath });
|
|
23437
|
+
pre = /* @__PURE__ */ jsxRuntimeExports.jsx(kit.Link, { href: r2.fullPath, target: "_blank", children: r2.fullPath });
|
|
23363
23438
|
}
|
|
23364
23439
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
23365
23440
|
kit.overflowTooltip,
|
|
@@ -23663,7 +23738,8 @@ function ServiceInClusterAccessTitle() {
|
|
|
23663
23738
|
children: i18n2.t("dovetail.in_cluster_ip_desc")
|
|
23664
23739
|
}), /* @__PURE__ */ jsxRuntimeExports.jsx(Divider, {
|
|
23665
23740
|
style: {
|
|
23666
|
-
margin: "6px 0"
|
|
23741
|
+
margin: "6px 0",
|
|
23742
|
+
background: "rgba(107, 128, 167, 0.60)"
|
|
23667
23743
|
}
|
|
23668
23744
|
}), /* @__PURE__ */ jsxRuntimeExports.jsx("div", {
|
|
23669
23745
|
children: i18n2.t("dovetail.in_cluster_external_name_desc")
|
|
@@ -23710,7 +23786,9 @@ function ServiceOutClusterAccessTitle() {
|
|
|
23710
23786
|
i18nKey: "dovetail.out_cluster_lb_desc"
|
|
23711
23787
|
})
|
|
23712
23788
|
}), /* @__PURE__ */ jsxRuntimeExports.jsx("div", {
|
|
23713
|
-
children:
|
|
23789
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx(Trans, {
|
|
23790
|
+
i18nKey: "dovetail.out_external_name_desc"
|
|
23791
|
+
})
|
|
23714
23792
|
})]
|
|
23715
23793
|
}),
|
|
23716
23794
|
children: /* @__PURE__ */ jsxRuntimeExports.jsx("span", {
|
|
@@ -23988,7 +24066,15 @@ const useEagleTable = (params) => {
|
|
|
23988
24066
|
};
|
|
23989
24067
|
const styles = "";
|
|
23990
24068
|
const Dovetail = (props) => {
|
|
23991
|
-
const {
|
|
24069
|
+
const {
|
|
24070
|
+
resourcesConfig,
|
|
24071
|
+
urlPrefix = "",
|
|
24072
|
+
Layout: Layout2,
|
|
24073
|
+
history,
|
|
24074
|
+
globalStore,
|
|
24075
|
+
accessControlProvider,
|
|
24076
|
+
routerProvider: customRouterProvider
|
|
24077
|
+
} = props;
|
|
23992
24078
|
const msg = useMessage();
|
|
23993
24079
|
const notCustomResources = useMemo(() => {
|
|
23994
24080
|
return resourcesConfig.filter((c2) => !c2.isCustom);
|
|
@@ -24024,7 +24110,7 @@ const Dovetail = (props) => {
|
|
|
24024
24110
|
dataProvider: {
|
|
24025
24111
|
default: dataProvider(globalStore)
|
|
24026
24112
|
},
|
|
24027
|
-
routerProvider,
|
|
24113
|
+
routerProvider: customRouterProvider || routerProvider,
|
|
24028
24114
|
liveProvider: liveProvider(globalStore),
|
|
24029
24115
|
notificationProvider,
|
|
24030
24116
|
options: {
|
package/dist/refine.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { b5, bJ, A, ay, aA, ai, bl, aI, G, bz, bn, as, w, C, g, bN, al, aM, X, bP, $, a6, bY, aa, bo, bm, b$, ao, aS, t, ag, aX, b_, bK, a$, D, aF, b1, bZ, aG, aw, b8, bM, bO, bx, aj, a0, p, o, bQ, I, aP, av, q, bp, bS, an, aO, ab, ac, Q, ad, az, ah, aY, b0, T, by, b4, N, H, b, ax, M, b7, aU, aT, bR, bj, e, br, U, P, aK, s, Y, bi, aH, bW, bV, aD, aQ, n, am, aJ, v, aR, aE, c3, bL, b2, b9, ba, ak, R, _, a4, a3, b3, a1, bX, a2, a7, f, bE, bH, bD, bC, bF, bG, bA, bs, bv, bw, bu, bt, bq, bb, ap, aN, ae, k, be, i, aB, c2, m, bf, aC, l, au, aL, h, c1, ar, at, aW, aV, aq, S, a_, aZ, c0, bB, bk, bg, bh, V, bU, Z, W, bT, a5, a9, a8, c, bI, af, bc, x, J, d, O, L, K, r, a, z, y, B, E, b6, F, bd, u } from "./index-
|
|
1
|
+
import { b5, bJ, A, ay, aA, ai, bl, aI, G, bz, bn, as, w, C, g, bN, al, aM, X, bP, $, a6, bY, aa, bo, bm, b$, ao, aS, t, ag, aX, b_, bK, a$, D, aF, b1, bZ, aG, aw, b8, bM, bO, bx, aj, a0, p, o, bQ, I, aP, av, q, bp, bS, an, aO, ab, ac, Q, ad, az, ah, aY, b0, T, by, b4, N, H, b, ax, M, b7, aU, aT, bR, bj, e, br, U, P, aK, s, Y, bi, aH, bW, bV, aD, aQ, n, am, aJ, v, aR, aE, c3, bL, b2, b9, ba, ak, R, _, a4, a3, b3, a1, bX, a2, a7, f, bE, bH, bD, bC, bF, bG, bA, bs, bv, bw, bu, bt, bq, bb, ap, aN, ae, k, be, i, aB, c2, m, bf, aC, l, au, aL, h, c1, ar, at, aW, aV, aq, S, a_, aZ, c0, bB, bk, bg, bh, V, bU, Z, W, bT, a5, a9, a8, c, bI, af, bc, x, J, d, O, L, K, r, a, z, y, B, E, b6, F, bd, u } from "./index-a278c0e3.js";
|
|
2
2
|
import "@cloudtower/eagle";
|
|
3
3
|
import "@refinedev/core";
|
|
4
4
|
import "@cloudtower/icons-react";
|