@dovetail-v2/refine 0.2.6 → 0.2.8
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-7a07db88.cjs +59 -0
- package/dist/{MonacoYamlDiffEditor-a6fe7989.js → MonacoYamlDiffEditor-7de94ad2.js} +1 -24
- package/dist/MonacoYamlEditor-2c3897de.cjs +206 -0
- package/dist/{MonacoYamlEditor-9a71461b.js → MonacoYamlEditor-c8ef62dc.js} +2 -9
- package/dist/PodShell-43c7028e.cjs +216 -0
- package/dist/PodShell-ba204cde.js +216 -0
- package/dist/common-1eb43414.cjs +982 -0
- package/dist/common-feae5742.js +983 -0
- package/{lib → dist}/components/PodShellModal/PodShell.d.ts +3 -5
- package/dist/components/PodShellModal/index.d.ts +10 -0
- package/dist/components/Shell/Connecting.d.ts +2 -0
- package/dist/components/Shell/common.d.ts +5 -0
- package/{lib → dist}/components/Shell/index.d.ts +1 -5
- package/{lib → dist}/components/index.d.ts +0 -1
- package/{lib → dist}/constants/state.d.ts +3 -1
- package/{lib → dist}/i18n.d.ts +4 -0
- package/dist/index-31874f77.cjs +496 -0
- package/dist/index-40deb620.js +497 -0
- package/dist/{index-d9e1f169.js → index-6e832950.js} +286 -1919
- package/dist/index-92ab679c.cjs +19002 -0
- package/{lib → dist}/locales/en-US/index.d.ts +2 -0
- package/{lib → dist}/locales/zh-CN/index.d.ts +2 -0
- package/dist/refine.cjs +280 -0
- package/dist/refine.js +248 -257
- package/dist/shell.cjs +17 -0
- package/dist/shell.d.ts +2 -0
- package/dist/shell.js +17 -0
- package/dist/style.css +1311 -1266
- package/package.json +4 -4
- package/dist/refine.umd.cjs +0 -20823
- package/lib/components/PodShellModal/index.d.ts +0 -10
- /package/{lib → dist}/App.d.ts +0 -0
- /package/{lib → dist}/Dovetail.d.ts +0 -0
- /package/{lib → dist}/components/Breadcrumb/index.d.ts +0 -0
- /package/{lib → dist}/components/ConditionsTable/ConditionsTable.d.ts +0 -0
- /package/{lib → dist}/components/ConditionsTable/index.d.ts +0 -0
- /package/{lib → dist}/components/CreateButton/index.d.ts +0 -0
- /package/{lib → dist}/components/CronjobJobsTable/index.d.ts +0 -0
- /package/{lib → dist}/components/DeleteButton/index.d.ts +0 -0
- /package/{lib → dist}/components/DeleteManyButton/index.d.ts +0 -0
- /package/{lib → dist}/components/DrawerShow/DrawerShow.d.ts +0 -0
- /package/{lib → dist}/components/DrawerShow/index.d.ts +0 -0
- /package/{lib → dist}/components/DropdownMenuItems/EditAnnotationDropdownMenuItem.d.ts +0 -0
- /package/{lib → dist}/components/DropdownMenuItems/EditLabelDropdownMenuItem.d.ts +0 -0
- /package/{lib → dist}/components/DropdownMenuItems/EditNodeTaintDropdownMenuItem.d.ts +0 -0
- /package/{lib → dist}/components/DropdownMenuItems/index.d.ts +0 -0
- /package/{lib → dist}/components/Dropdowns/CronJobDropdown/index.d.ts +0 -0
- /package/{lib → dist}/components/Dropdowns/K8sDropdown/index.d.ts +0 -0
- /package/{lib → dist}/components/Dropdowns/PodDropdown/index.d.ts +0 -0
- /package/{lib → dist}/components/Dropdowns/ReplicasDropdown/index.d.ts +0 -0
- /package/{lib → dist}/components/Dropdowns/WorkloadDropdown/index.d.ts +0 -0
- /package/{lib → dist}/components/DurationTime/index.d.ts +0 -0
- /package/{lib → dist}/components/EditButton/index.d.ts +0 -0
- /package/{lib → dist}/components/EditField/index.d.ts +0 -0
- /package/{lib → dist}/components/EditMetadataForm/EditAnnotationForm.d.ts +0 -0
- /package/{lib → dist}/components/EditMetadataForm/EditLabelForm.d.ts +0 -0
- /package/{lib → dist}/components/EditMetadataForm/EditNodeTaintForm.d.ts +0 -0
- /package/{lib → dist}/components/EditMetadataForm/KeyValueTableForm.d.ts +0 -0
- /package/{lib → dist}/components/EditMetadataForm/LabelFormatPopover.d.ts +0 -0
- /package/{lib → dist}/components/EditMetadataForm/index.d.ts +0 -0
- /package/{lib → dist}/components/ErrorContent/index.d.ts +0 -0
- /package/{lib → dist}/components/EventsTable/EventsTable.d.ts +0 -0
- /package/{lib → dist}/components/EventsTable/index.d.ts +0 -0
- /package/{lib → dist}/components/Form/FormModal.d.ts +0 -0
- /package/{lib → dist}/components/Form/FormModeSegmentControl.d.ts +0 -0
- /package/{lib → dist}/components/Form/RefineFormContainer.d.ts +0 -0
- /package/{lib → dist}/components/Form/RefineFormContent.d.ts +0 -0
- /package/{lib → dist}/components/Form/RefineFormPage.d.ts +0 -0
- /package/{lib → dist}/components/Form/YamlForm.d.ts +0 -0
- /package/{lib → dist}/components/Form/YamlFormContainer.d.ts +0 -0
- /package/{lib → dist}/components/Form/index.d.ts +0 -0
- /package/{lib → dist}/components/Form/type.d.ts +0 -0
- /package/{lib → dist}/components/Form/useFieldsConfig.d.ts +0 -0
- /package/{lib → dist}/components/Form/useReactHookForm.d.ts +0 -0
- /package/{lib → dist}/components/Form/useRefineForm.d.ts +0 -0
- /package/{lib → dist}/components/Form/useYamlForm.d.ts +0 -0
- /package/{lib → dist}/components/FormErrorAlert/index.d.ts +0 -0
- /package/{lib → dist}/components/FormLayout/index.d.ts +0 -0
- /package/{lib → dist}/components/FormWidgets/KeyValueListWidget.d.ts +0 -0
- /package/{lib → dist}/components/FormWidgets/MetadataForm.d.ts +0 -0
- /package/{lib → dist}/components/FormWidgets/NameInputWidget.d.ts +0 -0
- /package/{lib → dist}/components/FormWidgets/NamespaceSelectWidget.d.ts +0 -0
- /package/{lib → dist}/components/FormWidgets/index.d.ts +0 -0
- /package/{lib → dist}/components/FormWidgets/widget.d.ts +0 -0
- /package/{lib → dist}/components/ImageNames/index.d.ts +0 -0
- /package/{lib → dist}/components/IngressRulesComponent/index.d.ts +0 -0
- /package/{lib → dist}/components/IngressRulesTable/IngressRulesTable.d.ts +0 -0
- /package/{lib → dist}/components/IngressRulesTable/index.d.ts +0 -0
- /package/{lib → dist}/components/InternalBaseTable/TableWidgets.d.ts +0 -0
- /package/{lib → dist}/components/InternalBaseTable/index.d.ts +0 -0
- /package/{lib → dist}/components/KeyValue/KeyValue.d.ts +0 -0
- /package/{lib → dist}/components/KeyValue/KeyValueAnnotation.d.ts +0 -0
- /package/{lib → dist}/components/KeyValue/KeyValueSecret.d.ts +0 -0
- /package/{lib → dist}/components/KeyValue/index.d.ts +0 -0
- /package/{lib → dist}/components/Layout/index.d.ts +0 -0
- /package/{lib → dist}/components/LinkFallback/index.d.ts +0 -0
- /package/{lib → dist}/components/ListPage/index.d.ts +0 -0
- /package/{lib → dist}/components/Menu/index.d.ts +0 -0
- /package/{lib → dist}/components/NamespacesFilter/index.d.ts +0 -0
- /package/{lib → dist}/components/NetworkPolicyRulesViewer/NetworkPolicyRulesViewer.d.ts +0 -0
- /package/{lib → dist}/components/NetworkPolicyRulesViewer/index.d.ts +0 -0
- /package/{lib → dist}/components/NodeTaintsTable/NodeTaintsTable.d.ts +0 -0
- /package/{lib → dist}/components/NodeTaintsTable/index.d.ts +0 -0
- /package/{lib → dist}/components/PVCDistributeStorage/index.d.ts +0 -0
- /package/{lib → dist}/components/PageShow/PageShow.d.ts +0 -0
- /package/{lib → dist}/components/PageShow/index.d.ts +0 -0
- /package/{lib → dist}/components/PodContainersTable/PodContainersTable.d.ts +0 -0
- /package/{lib → dist}/components/PodContainersTable/index.d.ts +0 -0
- /package/{lib → dist}/components/PodLog/index.d.ts +0 -0
- /package/{lib → dist}/components/PodSelectorTable/index.d.ts +0 -0
- /package/{lib → dist}/components/PortsTable/index.d.ts +0 -0
- /package/{lib → dist}/components/ReferenceLink/index.d.ts +0 -0
- /package/{lib → dist}/components/ResourceCRUD/ResourceCRUD.d.ts +0 -0
- /package/{lib → dist}/components/ResourceCRUD/create/index.d.ts +0 -0
- /package/{lib → dist}/components/ResourceCRUD/index.d.ts +0 -0
- /package/{lib → dist}/components/ResourceCRUD/list/index.d.ts +0 -0
- /package/{lib → dist}/components/ResourceCRUD/show/index.d.ts +0 -0
- /package/{lib → dist}/components/ResourceFiledDisplays.d.ts +0 -0
- /package/{lib → dist}/components/ResourceLink/index.d.ts +0 -0
- /package/{lib → dist}/components/ResourceSelect/index.d.ts +0 -0
- /package/{lib → dist}/components/ResourceTable/index.d.ts +0 -0
- /package/{lib → dist}/components/ResourceUsageBar/index.d.ts +0 -0
- /package/{lib → dist}/components/Separator/index.d.ts +0 -0
- /package/{lib → dist}/components/ServiceComponents/index.d.ts +0 -0
- /package/{lib → dist}/components/Shell/ShellToolbar.d.ts +0 -0
- /package/{lib → dist}/components/ShowContent/ShowContent.d.ts +0 -0
- /package/{lib → dist}/components/ShowContent/fields.d.ts +0 -0
- /package/{lib → dist}/components/ShowContent/groups.d.ts +0 -0
- /package/{lib → dist}/components/ShowContent/index.d.ts +0 -0
- /package/{lib → dist}/components/ShowContent/tabs.d.ts +0 -0
- /package/{lib → dist}/components/StateTag/StateTag.d.ts +0 -0
- /package/{lib → dist}/components/StateTag/index.d.ts +0 -0
- /package/{lib → dist}/components/Table/index.d.ts +0 -0
- /package/{lib → dist}/components/TableToolbar/index.d.ts +0 -0
- /package/{lib → dist}/components/Tabs/index.d.ts +0 -0
- /package/{lib → dist}/components/Tags/index.d.ts +0 -0
- /package/{lib → dist}/components/TextTags/index.d.ts +0 -0
- /package/{lib → dist}/components/Time/index.d.ts +0 -0
- /package/{lib → dist}/components/ValueDisplay/index.d.ts +0 -0
- /package/{lib → dist}/components/WorkloadPodsTable/WorkloadPodsTable.d.ts +0 -0
- /package/{lib → dist}/components/WorkloadPodsTable/index.d.ts +0 -0
- /package/{lib → dist}/components/WorkloadReplicas/index.d.ts +0 -0
- /package/{lib → dist}/components/YamlEditor/MonacoYamlDiffEditor.d.ts +0 -0
- /package/{lib → dist}/components/YamlEditor/MonacoYamlEditor.d.ts +0 -0
- /package/{lib → dist}/components/YamlEditor/YamlEditorComponent.d.ts +0 -0
- /package/{lib → dist}/components/YamlEditor/index.d.ts +0 -0
- /package/{lib → dist}/components/YamlEditor/style.d.ts +0 -0
- /package/{lib → dist}/components/YamlEditor/yaml.worker.d.ts +0 -0
- /package/{lib → dist}/constants/auth.d.ts +0 -0
- /package/{lib → dist}/constants/index.d.ts +0 -0
- /package/{lib → dist}/constants/k8s.d.ts +0 -0
- /package/{lib → dist}/contexts/component.d.ts +0 -0
- /package/{lib → dist}/contexts/configs.d.ts +0 -0
- /package/{lib → dist}/contexts/constants.d.ts +0 -0
- /package/{lib → dist}/contexts/global-store.d.ts +0 -0
- /package/{lib → dist}/contexts/index.d.ts +0 -0
- /package/{lib → dist}/hooks/index.d.ts +0 -0
- /package/{lib → dist}/hooks/useDeleteModal/index.d.ts +0 -0
- /package/{lib → dist}/hooks/useDeleteModal/useDeleteManyModal.d.ts +0 -0
- /package/{lib → dist}/hooks/useDeleteModal/useDeleteModal.d.ts +0 -0
- /package/{lib → dist}/hooks/useDeleteModal/useDeleteModalOnly.d.ts +0 -0
- /package/{lib → dist}/hooks/useDeleteModal/useFailedModal.d.ts +0 -0
- /package/{lib → dist}/hooks/useDownloadYAML.d.ts +0 -0
- /package/{lib → dist}/hooks/useEagleTable/columns.d.ts +0 -0
- /package/{lib → dist}/hooks/useEagleTable/index.d.ts +0 -0
- /package/{lib → dist}/hooks/useEagleTable/useEagleTable.d.ts +0 -0
- /package/{lib → dist}/hooks/useEdit.d.ts +0 -0
- /package/{lib → dist}/hooks/useGlobalStore.d.ts +0 -0
- /package/{lib → dist}/hooks/useK8sYamlEditor.d.ts +0 -0
- /package/{lib → dist}/hooks/useNamespaceRefineFilter.d.ts +0 -0
- /package/{lib → dist}/hooks/useOpenForm.d.ts +0 -0
- /package/{lib → dist}/hooks/usePathMap.d.ts +0 -0
- /package/{lib → dist}/hooks/useSchema.d.ts +0 -0
- /package/{lib → dist}/hooks/useSubmitForm.d.ts +0 -0
- /package/{lib → dist}/hooks/useTableData.d.ts +0 -0
- /package/{lib → dist}/index.d.ts +0 -0
- /package/{lib → dist}/locales/index.d.ts +0 -0
- /package/{lib → dist}/main.d.ts +0 -0
- /package/{lib → dist}/models/cronjob-model.d.ts +0 -0
- /package/{lib → dist}/models/daemonset-model.d.ts +0 -0
- /package/{lib → dist}/models/deployment-model.d.ts +0 -0
- /package/{lib → dist}/models/event-model.d.ts +0 -0
- /package/{lib → dist}/models/index.d.ts +0 -0
- /package/{lib → dist}/models/ingress-model.d.ts +0 -0
- /package/{lib → dist}/models/job-model.d.ts +0 -0
- /package/{lib → dist}/models/network-policy-model.d.ts +0 -0
- /package/{lib → dist}/models/node-model.d.ts +0 -0
- /package/{lib → dist}/models/persistent-volume-claim.d.ts +0 -0
- /package/{lib → dist}/models/persistent-volume.d.ts +0 -0
- /package/{lib → dist}/models/pod-metrics-model.d.ts +0 -0
- /package/{lib → dist}/models/pod-model.d.ts +0 -0
- /package/{lib → dist}/models/resource-model.d.ts +0 -0
- /package/{lib → dist}/models/service-model.d.ts +0 -0
- /package/{lib → dist}/models/statefulset-model.d.ts +0 -0
- /package/{lib → dist}/models/storage-class.d.ts +0 -0
- /package/{lib → dist}/models/types/index.d.ts +0 -0
- /package/{lib → dist}/models/types/metric.d.ts +0 -0
- /package/{lib → dist}/models/workload-base-model.d.ts +0 -0
- /package/{lib → dist}/models/workload-model.d.ts +0 -0
- /package/{lib → dist}/pages/configmaps/index.d.ts +0 -0
- /package/{lib → dist}/pages/cronjobs/create/index.d.ts +0 -0
- /package/{lib → dist}/pages/cronjobs/index.d.ts +0 -0
- /package/{lib → dist}/pages/cronjobs/list/index.d.ts +0 -0
- /package/{lib → dist}/pages/cronjobs/show/index.d.ts +0 -0
- /package/{lib → dist}/pages/daemonsets/create/index.d.ts +0 -0
- /package/{lib → dist}/pages/daemonsets/index.d.ts +0 -0
- /package/{lib → dist}/pages/daemonsets/list/index.d.ts +0 -0
- /package/{lib → dist}/pages/daemonsets/show/index.d.ts +0 -0
- /package/{lib → dist}/pages/deployments/index.d.ts +0 -0
- /package/{lib → dist}/pages/deployments/list/index.d.ts +0 -0
- /package/{lib → dist}/pages/deployments/show/index.d.ts +0 -0
- /package/{lib → dist}/pages/ingresses/index.d.ts +0 -0
- /package/{lib → dist}/pages/jobs/index.d.ts +0 -0
- /package/{lib → dist}/pages/networkPolicies/index.d.ts +0 -0
- /package/{lib → dist}/pages/nodes/index.d.ts +0 -0
- /package/{lib → dist}/pages/nodes/list/index.d.ts +0 -0
- /package/{lib → dist}/pages/nodes/show/index.d.ts +0 -0
- /package/{lib → dist}/pages/persistentvolumeclaims/index.d.ts +0 -0
- /package/{lib → dist}/pages/persistentvolumes/index.d.ts +0 -0
- /package/{lib → dist}/pages/pods/create/index.d.ts +0 -0
- /package/{lib → dist}/pages/pods/index.d.ts +0 -0
- /package/{lib → dist}/pages/pods/list/index.d.ts +0 -0
- /package/{lib → dist}/pages/pods/show/index.d.ts +0 -0
- /package/{lib → dist}/pages/secrets/index.d.ts +0 -0
- /package/{lib → dist}/pages/services/index.d.ts +0 -0
- /package/{lib → dist}/pages/statefulsets/index.d.ts +0 -0
- /package/{lib → dist}/pages/storageclasses/form/index.d.ts +0 -0
- /package/{lib → dist}/pages/storageclasses/index.d.ts +0 -0
- /package/{lib → dist}/plugins/index.d.ts +0 -0
- /package/{lib → dist}/plugins/model-plugin.d.ts +0 -0
- /package/{lib → dist}/plugins/relation-plugin.d.ts +0 -0
- /package/{lib → dist}/plugins/type.d.ts +0 -0
- /package/{lib → dist}/providers/index.d.ts +0 -0
- /package/{lib → dist}/providers/router-provider/index.d.ts +0 -0
- /package/{lib → dist}/styles/button.d.ts +0 -0
- /package/{lib → dist}/styles/modal.d.ts +0 -0
- /package/{lib → dist}/styles/tag.d.ts +0 -0
- /package/{lib → dist}/types/globalStore.d.ts +0 -0
- /package/{lib → dist}/types/index.d.ts +0 -0
- /package/{lib → dist}/types/resource.d.ts +0 -0
- /package/{lib → dist}/utils/addId.d.ts +0 -0
- /package/{lib → dist}/utils/download.d.ts +0 -0
- /package/{lib → dist}/utils/error.d.ts +0 -0
- /package/{lib → dist}/utils/form.d.ts +0 -0
- /package/{lib → dist}/utils/index.d.ts +0 -0
- /package/{lib → dist}/utils/k8s.d.ts +0 -0
- /package/{lib → dist}/utils/labels.d.ts +0 -0
- /package/{lib → dist}/utils/match-selector.d.ts +0 -0
- /package/{lib → dist}/utils/object.d.ts +0 -0
- /package/{lib → dist}/utils/openapi.d.ts +0 -0
- /package/{lib → dist}/utils/schema-store.d.ts +0 -0
- /package/{lib → dist}/utils/schema.d.ts +0 -0
- /package/{lib → dist}/utils/selector.d.ts +0 -0
- /package/{lib → dist}/utils/shell.d.ts +0 -0
- /package/{lib → dist}/utils/storage.d.ts +0 -0
- /package/{lib → dist}/utils/string.d.ts +0 -0
- /package/{lib → dist}/utils/time.d.ts +0 -0
- /package/{lib → dist}/utils/unit.d.ts +0 -0
- /package/{lib → dist}/utils/validation.d.ts +0 -0
- /package/{lib → dist}/utils/yaml.d.ts +0 -0
|
@@ -6,26 +6,19 @@ var __publicField = (obj, key2, value2) => {
|
|
|
6
6
|
};
|
|
7
7
|
import dayjs from "dayjs";
|
|
8
8
|
import i18n from "i18next";
|
|
9
|
-
import
|
|
10
|
-
import React__default, { createElement, isValidElement, cloneElement, Children, createContext, useContext, useState, useRef, useEffect, useCallback, useMemo, useImperativeHandle, lazy, Suspense, forwardRef } from "react";
|
|
9
|
+
import { w as warnOnce, g as getDefaults, a as warn, b as getI18n, s as setDefaults, d as setI18n, I as I18nContext, j as jsxRuntimeExports, u as useTranslation, c as cx_default, S as SocketStatus } from "./common-feae5742.js";
|
|
11
10
|
import { ResourceContext, matchResourceFromRoute, useResource, useDelete, useNavigation, useBreadcrumb, useList, CanAccess, useUpdate, useParsed, useGo, useCan, useTable, useDeleteMany, useShow, useDataProvider, useRefineContext, useTranslate, useWarnAboutChange, useForm as useForm$2, flattenObjectKeys, pickNotDeprecated, useMenu, Refine } from "@refinedev/core";
|
|
12
11
|
import { parse, stringify } from "qs";
|
|
12
|
+
import * as React from "react";
|
|
13
|
+
import React__default, { createElement, isValidElement, cloneElement, Children, useContext, useCallback, createContext, useState, useEffect, useMemo, useRef, useImperativeHandle, lazy, Suspense, forwardRef } from "react";
|
|
13
14
|
import { useLocation, useHistory, useParams, matchPath, Link, Route, NavLink, Router } from "react-router-dom";
|
|
14
|
-
import { usePushModal, usePopModal, DeleteDialog, Tag, RejectDialog, RejectDialogType, Input, Select, AntdOption, Button, Form, Space, TextArea, kitContext, Typo, Loading, Table as Table$2, Pagination, Alert, Modal, Fields, Units, Link as Link$1, OverflowTooltip, Tooltip, Dropdown, Menu as Menu$1, Icon as Icon$1, Divider, StatusCapsule, Tabs as Tabs$1, TabsTabPane, Row, Col, Popover, AntdTable, TableForm, getOptions, DonutChart, SegmentControl, Checkbox, useMessage,
|
|
15
|
-
import { EditPen16PrimaryIcon, Download16GradientBlueIcon, TrashBinDelete16Icon, MoreEllipsis324BoldSecondaryIcon, MoreEllipsis324BoldBlueIcon, MoreEllipsis316BoldBlueIcon, PlusAddCreateNew16BoldOntintIcon, ArrowChevronLeft16BoldTertiaryIcon, ArrowChevronLeftSmall16BoldBlueIcon, ViewEye16GradientGrayIcon, EntityFilterIgnoreGradient16GrayIcon, InfoICircleFill16GrayIcon, InfoICircleFill16Gray70Icon, RecoverContinue16GradientBlueIcon, SuspendedPause16GradientBlueIcon, Retry16GradientBlueIcon,
|
|
15
|
+
import { usePushModal, usePopModal, DeleteDialog, Tag, RejectDialog, RejectDialogType, Input, Select, AntdOption, Button, Form, Space, TextArea, kitContext, Typo, Loading, Table as Table$2, Pagination, Alert, Modal, Fields, Units, Link as Link$1, OverflowTooltip, Tooltip, Dropdown, Menu as Menu$1, Icon as Icon$1, Divider, StatusCapsule, Tabs as Tabs$1, TabsTabPane, Row, Col, Popover, AntdTable, TableForm, getOptions, DonutChart, SegmentControl, Checkbox, useMessage, SearchInput, Token, AntdSelectOptGroup, MenuItemGroup, Layout as Layout$1, Time as Time$1, ModalStack, KitStoreProvider, ConfigProvider } from "@cloudtower/eagle";
|
|
16
|
+
import { EditPen16PrimaryIcon, Download16GradientBlueIcon, TrashBinDelete16Icon, MoreEllipsis324BoldSecondaryIcon, MoreEllipsis324BoldBlueIcon, MoreEllipsis316BoldBlueIcon, PlusAddCreateNew16BoldOntintIcon, ArrowChevronLeft16BoldTertiaryIcon, ArrowChevronLeftSmall16BoldBlueIcon, ViewEye16GradientGrayIcon, EntityFilterIgnoreGradient16GrayIcon, InfoICircleFill16GrayIcon, InfoICircleFill16Gray70Icon, RecoverContinue16GradientBlueIcon, SuspendedPause16GradientBlueIcon, Retry16GradientBlueIcon, OpenTerminal16GradientBlueIcon, HierarchyTriangleRight16GrayIcon, HierarchyTriangleRight16BlueIcon, ClipboardCopy16GradientGrayIcon, ClipboardCopy16GradientBlueIcon, Retry16GradientGrayIcon, EditPen16GradientGrayIcon, EditPen16GradientBlueIcon, Showdiff16GradientGrayIcon, Showdiff16GradientBlueIcon, XmarkFailedSeriousWarningFill16RedIcon, ExclamationErrorCircleFill16RedIcon, Pause16GradientBlueIcon, EditPen16BlueIcon } from "@cloudtower/icons-react";
|
|
16
17
|
import { first, get as get$2, cloneDeep, set, omit as omit$1, merge, debounce, last, setWith, clone, isObject as isObject$3, uniq, keyBy } from "lodash-es";
|
|
17
18
|
import yaml$2 from "js-yaml";
|
|
18
19
|
import { useLocalStorage } from "usehooks-ts";
|
|
19
20
|
import { paginateData, sortData, dataProvider, liveProvider } from "k8s-api-provider";
|
|
20
21
|
import { LogViewer } from "@patternfly/react-log-viewer";
|
|
21
|
-
import { CanvasAddon } from "@xterm/addon-canvas";
|
|
22
|
-
import { FitAddon } from "@xterm/addon-fit";
|
|
23
|
-
import { SearchAddon } from "@xterm/addon-search";
|
|
24
|
-
import { WebLinksAddon } from "@xterm/addon-web-links";
|
|
25
|
-
import { WebglAddon } from "@xterm/addon-webgl";
|
|
26
|
-
import { Terminal } from "@xterm/xterm";
|
|
27
|
-
import copyToClipboard$1 from "copy-to-clipboard";
|
|
28
|
-
import { Buffer as Buffer2 } from "buffer";
|
|
29
22
|
import { Controller, useForm as useForm$1 } from "react-hook-form";
|
|
30
23
|
import { useForm as useForm$3 } from "sunflower-antd";
|
|
31
24
|
import { Drawer } from "antd";
|
|
@@ -142,143 +135,6 @@ var c = { parse: function(e2, t2) {
|
|
|
142
135
|
return e3 + a("", t2);
|
|
143
136
|
}, "");
|
|
144
137
|
} };
|
|
145
|
-
function warn() {
|
|
146
|
-
if (console && console.warn) {
|
|
147
|
-
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
148
|
-
args[_key] = arguments[_key];
|
|
149
|
-
}
|
|
150
|
-
if (typeof args[0] === "string")
|
|
151
|
-
args[0] = `react-i18next:: ${args[0]}`;
|
|
152
|
-
console.warn(...args);
|
|
153
|
-
}
|
|
154
|
-
}
|
|
155
|
-
const alreadyWarned = {};
|
|
156
|
-
function warnOnce() {
|
|
157
|
-
for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
|
|
158
|
-
args[_key2] = arguments[_key2];
|
|
159
|
-
}
|
|
160
|
-
if (typeof args[0] === "string" && alreadyWarned[args[0]])
|
|
161
|
-
return;
|
|
162
|
-
if (typeof args[0] === "string")
|
|
163
|
-
alreadyWarned[args[0]] = /* @__PURE__ */ new Date();
|
|
164
|
-
warn(...args);
|
|
165
|
-
}
|
|
166
|
-
const loadedClb = (i18n2, cb) => () => {
|
|
167
|
-
if (i18n2.isInitialized) {
|
|
168
|
-
cb();
|
|
169
|
-
} else {
|
|
170
|
-
const initialized = () => {
|
|
171
|
-
setTimeout(() => {
|
|
172
|
-
i18n2.off("initialized", initialized);
|
|
173
|
-
}, 0);
|
|
174
|
-
cb();
|
|
175
|
-
};
|
|
176
|
-
i18n2.on("initialized", initialized);
|
|
177
|
-
}
|
|
178
|
-
};
|
|
179
|
-
function loadNamespaces(i18n2, ns, cb) {
|
|
180
|
-
i18n2.loadNamespaces(ns, loadedClb(i18n2, cb));
|
|
181
|
-
}
|
|
182
|
-
function loadLanguages(i18n2, lng, ns, cb) {
|
|
183
|
-
if (typeof ns === "string")
|
|
184
|
-
ns = [ns];
|
|
185
|
-
ns.forEach((n2) => {
|
|
186
|
-
if (i18n2.options.ns.indexOf(n2) < 0)
|
|
187
|
-
i18n2.options.ns.push(n2);
|
|
188
|
-
});
|
|
189
|
-
i18n2.loadLanguages(lng, loadedClb(i18n2, cb));
|
|
190
|
-
}
|
|
191
|
-
function oldI18nextHasLoadedNamespace(ns, i18n2) {
|
|
192
|
-
let options = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
193
|
-
const lng = i18n2.languages[0];
|
|
194
|
-
const fallbackLng = i18n2.options ? i18n2.options.fallbackLng : false;
|
|
195
|
-
const lastLng = i18n2.languages[i18n2.languages.length - 1];
|
|
196
|
-
if (lng.toLowerCase() === "cimode")
|
|
197
|
-
return true;
|
|
198
|
-
const loadNotPending = (l, n2) => {
|
|
199
|
-
const loadState = i18n2.services.backendConnector.state[`${l}|${n2}`];
|
|
200
|
-
return loadState === -1 || loadState === 2;
|
|
201
|
-
};
|
|
202
|
-
if (options.bindI18n && options.bindI18n.indexOf("languageChanging") > -1 && i18n2.services.backendConnector.backend && i18n2.isLanguageChangingTo && !loadNotPending(i18n2.isLanguageChangingTo, ns))
|
|
203
|
-
return false;
|
|
204
|
-
if (i18n2.hasResourceBundle(lng, ns))
|
|
205
|
-
return true;
|
|
206
|
-
if (!i18n2.services.backendConnector.backend || i18n2.options.resources && !i18n2.options.partialBundledLanguages)
|
|
207
|
-
return true;
|
|
208
|
-
if (loadNotPending(lng, ns) && (!fallbackLng || loadNotPending(lastLng, ns)))
|
|
209
|
-
return true;
|
|
210
|
-
return false;
|
|
211
|
-
}
|
|
212
|
-
function hasLoadedNamespace(ns, i18n2) {
|
|
213
|
-
let options = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
214
|
-
if (!i18n2.languages || !i18n2.languages.length) {
|
|
215
|
-
warnOnce("i18n.languages were undefined or empty", i18n2.languages);
|
|
216
|
-
return true;
|
|
217
|
-
}
|
|
218
|
-
const isNewerI18next = i18n2.options.ignoreJSONStructure !== void 0;
|
|
219
|
-
if (!isNewerI18next) {
|
|
220
|
-
return oldI18nextHasLoadedNamespace(ns, i18n2, options);
|
|
221
|
-
}
|
|
222
|
-
return i18n2.hasLoadedNamespace(ns, {
|
|
223
|
-
lng: options.lng,
|
|
224
|
-
precheck: (i18nInstance2, loadNotPending) => {
|
|
225
|
-
if (options.bindI18n && options.bindI18n.indexOf("languageChanging") > -1 && i18nInstance2.services.backendConnector.backend && i18nInstance2.isLanguageChangingTo && !loadNotPending(i18nInstance2.isLanguageChangingTo, ns))
|
|
226
|
-
return false;
|
|
227
|
-
}
|
|
228
|
-
});
|
|
229
|
-
}
|
|
230
|
-
const matchHtmlEntity = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g;
|
|
231
|
-
const htmlEntities = {
|
|
232
|
-
"&": "&",
|
|
233
|
-
"&": "&",
|
|
234
|
-
"<": "<",
|
|
235
|
-
"<": "<",
|
|
236
|
-
">": ">",
|
|
237
|
-
">": ">",
|
|
238
|
-
"'": "'",
|
|
239
|
-
"'": "'",
|
|
240
|
-
""": '"',
|
|
241
|
-
""": '"',
|
|
242
|
-
" ": " ",
|
|
243
|
-
" ": " ",
|
|
244
|
-
"©": "©",
|
|
245
|
-
"©": "©",
|
|
246
|
-
"®": "®",
|
|
247
|
-
"®": "®",
|
|
248
|
-
"…": "…",
|
|
249
|
-
"…": "…",
|
|
250
|
-
"/": "/",
|
|
251
|
-
"/": "/"
|
|
252
|
-
};
|
|
253
|
-
const unescapeHtmlEntity = (m) => htmlEntities[m];
|
|
254
|
-
const unescape = (text) => text.replace(matchHtmlEntity, unescapeHtmlEntity);
|
|
255
|
-
let defaultOptions = {
|
|
256
|
-
bindI18n: "languageChanged",
|
|
257
|
-
bindI18nStore: "",
|
|
258
|
-
transEmptyNodeValue: "",
|
|
259
|
-
transSupportBasicHtmlNodes: true,
|
|
260
|
-
transWrapTextNodes: "",
|
|
261
|
-
transKeepBasicHtmlNodesFor: ["br", "strong", "i", "p"],
|
|
262
|
-
useSuspense: true,
|
|
263
|
-
unescape
|
|
264
|
-
};
|
|
265
|
-
function setDefaults() {
|
|
266
|
-
let options = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
267
|
-
defaultOptions = {
|
|
268
|
-
...defaultOptions,
|
|
269
|
-
...options
|
|
270
|
-
};
|
|
271
|
-
}
|
|
272
|
-
function getDefaults() {
|
|
273
|
-
return defaultOptions;
|
|
274
|
-
}
|
|
275
|
-
let i18nInstance;
|
|
276
|
-
function setI18n(instance) {
|
|
277
|
-
i18nInstance = instance;
|
|
278
|
-
}
|
|
279
|
-
function getI18n() {
|
|
280
|
-
return i18nInstance;
|
|
281
|
-
}
|
|
282
138
|
function hasChildren(node, checkLength) {
|
|
283
139
|
if (!node)
|
|
284
140
|
return false;
|
|
@@ -543,21 +399,6 @@ const initReactI18next = {
|
|
|
543
399
|
setI18n(instance);
|
|
544
400
|
}
|
|
545
401
|
};
|
|
546
|
-
const I18nContext = createContext();
|
|
547
|
-
class ReportNamespaces {
|
|
548
|
-
constructor() {
|
|
549
|
-
this.usedNamespaces = {};
|
|
550
|
-
}
|
|
551
|
-
addUsedNamespaces(namespaces) {
|
|
552
|
-
namespaces.forEach((ns) => {
|
|
553
|
-
if (!this.usedNamespaces[ns])
|
|
554
|
-
this.usedNamespaces[ns] = true;
|
|
555
|
-
});
|
|
556
|
-
}
|
|
557
|
-
getUsedNamespaces() {
|
|
558
|
-
return Object.keys(this.usedNamespaces);
|
|
559
|
-
}
|
|
560
|
-
}
|
|
561
402
|
function Trans(_ref) {
|
|
562
403
|
let {
|
|
563
404
|
children,
|
|
@@ -598,126 +439,6 @@ function Trans(_ref) {
|
|
|
598
439
|
...additionalProps
|
|
599
440
|
});
|
|
600
441
|
}
|
|
601
|
-
const usePrevious = (value2, ignore) => {
|
|
602
|
-
const ref = useRef();
|
|
603
|
-
useEffect(() => {
|
|
604
|
-
ref.current = ignore ? ref.current : value2;
|
|
605
|
-
}, [value2, ignore]);
|
|
606
|
-
return ref.current;
|
|
607
|
-
};
|
|
608
|
-
function useTranslation(ns) {
|
|
609
|
-
let props = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
610
|
-
const {
|
|
611
|
-
i18n: i18nFromProps
|
|
612
|
-
} = props;
|
|
613
|
-
const {
|
|
614
|
-
i18n: i18nFromContext,
|
|
615
|
-
defaultNS: defaultNSFromContext
|
|
616
|
-
} = useContext(I18nContext) || {};
|
|
617
|
-
const i18n2 = i18nFromProps || i18nFromContext || getI18n();
|
|
618
|
-
if (i18n2 && !i18n2.reportNamespaces)
|
|
619
|
-
i18n2.reportNamespaces = new ReportNamespaces();
|
|
620
|
-
if (!i18n2) {
|
|
621
|
-
warnOnce("You will need to pass in an i18next instance by using initReactI18next");
|
|
622
|
-
const notReadyT = (k, optsOrDefaultValue) => {
|
|
623
|
-
if (typeof optsOrDefaultValue === "string")
|
|
624
|
-
return optsOrDefaultValue;
|
|
625
|
-
if (optsOrDefaultValue && typeof optsOrDefaultValue === "object" && typeof optsOrDefaultValue.defaultValue === "string")
|
|
626
|
-
return optsOrDefaultValue.defaultValue;
|
|
627
|
-
return Array.isArray(k) ? k[k.length - 1] : k;
|
|
628
|
-
};
|
|
629
|
-
const retNotReady = [notReadyT, {}, false];
|
|
630
|
-
retNotReady.t = notReadyT;
|
|
631
|
-
retNotReady.i18n = {};
|
|
632
|
-
retNotReady.ready = false;
|
|
633
|
-
return retNotReady;
|
|
634
|
-
}
|
|
635
|
-
if (i18n2.options.react && i18n2.options.react.wait !== void 0)
|
|
636
|
-
warnOnce("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");
|
|
637
|
-
const i18nOptions = {
|
|
638
|
-
...getDefaults(),
|
|
639
|
-
...i18n2.options.react,
|
|
640
|
-
...props
|
|
641
|
-
};
|
|
642
|
-
const {
|
|
643
|
-
useSuspense,
|
|
644
|
-
keyPrefix
|
|
645
|
-
} = i18nOptions;
|
|
646
|
-
let namespaces = ns || defaultNSFromContext || i18n2.options && i18n2.options.defaultNS;
|
|
647
|
-
namespaces = typeof namespaces === "string" ? [namespaces] : namespaces || ["translation"];
|
|
648
|
-
if (i18n2.reportNamespaces.addUsedNamespaces)
|
|
649
|
-
i18n2.reportNamespaces.addUsedNamespaces(namespaces);
|
|
650
|
-
const ready = (i18n2.isInitialized || i18n2.initializedStoreOnce) && namespaces.every((n2) => hasLoadedNamespace(n2, i18n2, i18nOptions));
|
|
651
|
-
function getT() {
|
|
652
|
-
return i18n2.getFixedT(props.lng || null, i18nOptions.nsMode === "fallback" ? namespaces : namespaces[0], keyPrefix);
|
|
653
|
-
}
|
|
654
|
-
const [t2, setT] = useState(getT);
|
|
655
|
-
let joinedNS = namespaces.join();
|
|
656
|
-
if (props.lng)
|
|
657
|
-
joinedNS = `${props.lng}${joinedNS}`;
|
|
658
|
-
const previousJoinedNS = usePrevious(joinedNS);
|
|
659
|
-
const isMounted = useRef(true);
|
|
660
|
-
useEffect(() => {
|
|
661
|
-
const {
|
|
662
|
-
bindI18n,
|
|
663
|
-
bindI18nStore
|
|
664
|
-
} = i18nOptions;
|
|
665
|
-
isMounted.current = true;
|
|
666
|
-
if (!ready && !useSuspense) {
|
|
667
|
-
if (props.lng) {
|
|
668
|
-
loadLanguages(i18n2, props.lng, namespaces, () => {
|
|
669
|
-
if (isMounted.current)
|
|
670
|
-
setT(getT);
|
|
671
|
-
});
|
|
672
|
-
} else {
|
|
673
|
-
loadNamespaces(i18n2, namespaces, () => {
|
|
674
|
-
if (isMounted.current)
|
|
675
|
-
setT(getT);
|
|
676
|
-
});
|
|
677
|
-
}
|
|
678
|
-
}
|
|
679
|
-
if (ready && previousJoinedNS && previousJoinedNS !== joinedNS && isMounted.current) {
|
|
680
|
-
setT(getT);
|
|
681
|
-
}
|
|
682
|
-
function boundReset() {
|
|
683
|
-
if (isMounted.current)
|
|
684
|
-
setT(getT);
|
|
685
|
-
}
|
|
686
|
-
if (bindI18n && i18n2)
|
|
687
|
-
i18n2.on(bindI18n, boundReset);
|
|
688
|
-
if (bindI18nStore && i18n2)
|
|
689
|
-
i18n2.store.on(bindI18nStore, boundReset);
|
|
690
|
-
return () => {
|
|
691
|
-
isMounted.current = false;
|
|
692
|
-
if (bindI18n && i18n2)
|
|
693
|
-
bindI18n.split(" ").forEach((e2) => i18n2.off(e2, boundReset));
|
|
694
|
-
if (bindI18nStore && i18n2)
|
|
695
|
-
bindI18nStore.split(" ").forEach((e2) => i18n2.store.off(e2, boundReset));
|
|
696
|
-
};
|
|
697
|
-
}, [i18n2, joinedNS]);
|
|
698
|
-
const isInitial = useRef(true);
|
|
699
|
-
useEffect(() => {
|
|
700
|
-
if (isMounted.current && !isInitial.current) {
|
|
701
|
-
setT(getT);
|
|
702
|
-
}
|
|
703
|
-
isInitial.current = false;
|
|
704
|
-
}, [i18n2, keyPrefix]);
|
|
705
|
-
const ret = [t2, i18n2, ready];
|
|
706
|
-
ret.t = t2;
|
|
707
|
-
ret.i18n = i18n2;
|
|
708
|
-
ret.ready = ready;
|
|
709
|
-
if (ready)
|
|
710
|
-
return ret;
|
|
711
|
-
if (!ready && !useSuspense)
|
|
712
|
-
return ret;
|
|
713
|
-
throw new Promise((resolve) => {
|
|
714
|
-
if (props.lng) {
|
|
715
|
-
loadLanguages(i18n2, props.lng, namespaces, () => resolve());
|
|
716
|
-
} else {
|
|
717
|
-
loadNamespaces(i18n2, namespaces, () => resolve());
|
|
718
|
-
}
|
|
719
|
-
});
|
|
720
|
-
}
|
|
721
442
|
const copy$1 = "Copy";
|
|
722
443
|
const reset_arguments$1 = "Reset";
|
|
723
444
|
const view_changes$1 = "Show diff";
|
|
@@ -778,6 +499,8 @@ const succeeded_state$1 = "Succeeded";
|
|
|
778
499
|
const unknown_state$1 = "Unknown";
|
|
779
500
|
const pending_state$1 = "Pending";
|
|
780
501
|
const waiting_state$1 = "Waiting";
|
|
502
|
+
const active_state$1 = "Active";
|
|
503
|
+
const deleting_state$1 = "Deleting";
|
|
781
504
|
const expand$1 = "Expand";
|
|
782
505
|
const fold$1 = "Collapse";
|
|
783
506
|
const rule$1 = "Rule";
|
|
@@ -1017,6 +740,8 @@ const dovetail$1 = {
|
|
|
1017
740
|
unknown_state: unknown_state$1,
|
|
1018
741
|
pending_state: pending_state$1,
|
|
1019
742
|
waiting_state: waiting_state$1,
|
|
743
|
+
active_state: active_state$1,
|
|
744
|
+
deleting_state: deleting_state$1,
|
|
1020
745
|
expand: expand$1,
|
|
1021
746
|
fold: fold$1,
|
|
1022
747
|
rule: rule$1,
|
|
@@ -1268,6 +993,8 @@ const terminated_state = "已终止";
|
|
|
1268
993
|
const unknown_state = "未知";
|
|
1269
994
|
const pending_state = "待处理";
|
|
1270
995
|
const waiting_state = "等待中";
|
|
996
|
+
const active_state = "活跃";
|
|
997
|
+
const deleting_state = "删除中";
|
|
1271
998
|
const create_resource = "创建{{resource}}";
|
|
1272
999
|
const edit_resource = "编辑{{resource}}";
|
|
1273
1000
|
const sec = "秒";
|
|
@@ -1506,6 +1233,8 @@ const dovetail = {
|
|
|
1506
1233
|
unknown_state,
|
|
1507
1234
|
pending_state,
|
|
1508
1235
|
waiting_state,
|
|
1236
|
+
active_state,
|
|
1237
|
+
deleting_state,
|
|
1509
1238
|
create_resource,
|
|
1510
1239
|
edit_resource,
|
|
1511
1240
|
sec,
|
|
@@ -1697,672 +1426,6 @@ dayjs.locale("zh");
|
|
|
1697
1426
|
i18n.on("languageChanged", (lng) => {
|
|
1698
1427
|
dayjs.locale(lng);
|
|
1699
1428
|
});
|
|
1700
|
-
var jsxRuntime = { exports: {} };
|
|
1701
|
-
var reactJsxRuntime_production_min = {};
|
|
1702
|
-
/** @license React v16.14.0
|
|
1703
|
-
* react-jsx-runtime.production.min.js
|
|
1704
|
-
*
|
|
1705
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
1706
|
-
*
|
|
1707
|
-
* This source code is licensed under the MIT license found in the
|
|
1708
|
-
* LICENSE file in the root directory of this source tree.
|
|
1709
|
-
*/
|
|
1710
|
-
var hasRequiredReactJsxRuntime_production_min;
|
|
1711
|
-
function requireReactJsxRuntime_production_min() {
|
|
1712
|
-
if (hasRequiredReactJsxRuntime_production_min)
|
|
1713
|
-
return reactJsxRuntime_production_min;
|
|
1714
|
-
hasRequiredReactJsxRuntime_production_min = 1;
|
|
1715
|
-
var f = React__default, g = 60103;
|
|
1716
|
-
reactJsxRuntime_production_min.Fragment = 60107;
|
|
1717
|
-
if ("function" === typeof Symbol && Symbol.for) {
|
|
1718
|
-
var h = Symbol.for;
|
|
1719
|
-
g = h("react.element");
|
|
1720
|
-
reactJsxRuntime_production_min.Fragment = h("react.fragment");
|
|
1721
|
-
}
|
|
1722
|
-
var m = f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, n2 = Object.prototype.hasOwnProperty, p = { key: true, ref: true, __self: true, __source: true };
|
|
1723
|
-
function q(c2, a2, k) {
|
|
1724
|
-
var b, d = {}, e2 = null, l = null;
|
|
1725
|
-
void 0 !== k && (e2 = "" + k);
|
|
1726
|
-
void 0 !== a2.key && (e2 = "" + a2.key);
|
|
1727
|
-
void 0 !== a2.ref && (l = a2.ref);
|
|
1728
|
-
for (b in a2)
|
|
1729
|
-
n2.call(a2, b) && !p.hasOwnProperty(b) && (d[b] = a2[b]);
|
|
1730
|
-
if (c2 && c2.defaultProps)
|
|
1731
|
-
for (b in a2 = c2.defaultProps, a2)
|
|
1732
|
-
void 0 === d[b] && (d[b] = a2[b]);
|
|
1733
|
-
return { $$typeof: g, type: c2, key: e2, ref: l, props: d, _owner: m.current };
|
|
1734
|
-
}
|
|
1735
|
-
reactJsxRuntime_production_min.jsx = q;
|
|
1736
|
-
reactJsxRuntime_production_min.jsxs = q;
|
|
1737
|
-
return reactJsxRuntime_production_min;
|
|
1738
|
-
}
|
|
1739
|
-
var reactJsxRuntime_development = {};
|
|
1740
|
-
/** @license React v16.14.0
|
|
1741
|
-
* react-jsx-runtime.development.js
|
|
1742
|
-
*
|
|
1743
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
1744
|
-
*
|
|
1745
|
-
* This source code is licensed under the MIT license found in the
|
|
1746
|
-
* LICENSE file in the root directory of this source tree.
|
|
1747
|
-
*/
|
|
1748
|
-
var hasRequiredReactJsxRuntime_development;
|
|
1749
|
-
function requireReactJsxRuntime_development() {
|
|
1750
|
-
if (hasRequiredReactJsxRuntime_development)
|
|
1751
|
-
return reactJsxRuntime_development;
|
|
1752
|
-
hasRequiredReactJsxRuntime_development = 1;
|
|
1753
|
-
(function(exports) {
|
|
1754
|
-
if (process.env.NODE_ENV !== "production") {
|
|
1755
|
-
(function() {
|
|
1756
|
-
var React2 = React__default;
|
|
1757
|
-
var REACT_ELEMENT_TYPE = 60103;
|
|
1758
|
-
var REACT_PORTAL_TYPE = 60106;
|
|
1759
|
-
exports.Fragment = 60107;
|
|
1760
|
-
var REACT_STRICT_MODE_TYPE = 60108;
|
|
1761
|
-
var REACT_PROFILER_TYPE = 60114;
|
|
1762
|
-
var REACT_PROVIDER_TYPE = 60109;
|
|
1763
|
-
var REACT_CONTEXT_TYPE = 60110;
|
|
1764
|
-
var REACT_FORWARD_REF_TYPE = 60112;
|
|
1765
|
-
var REACT_SUSPENSE_TYPE = 60113;
|
|
1766
|
-
var REACT_SUSPENSE_LIST_TYPE = 60120;
|
|
1767
|
-
var REACT_MEMO_TYPE = 60115;
|
|
1768
|
-
var REACT_LAZY_TYPE = 60116;
|
|
1769
|
-
var REACT_BLOCK_TYPE = 60121;
|
|
1770
|
-
var REACT_SERVER_BLOCK_TYPE = 60122;
|
|
1771
|
-
var REACT_FUNDAMENTAL_TYPE = 60117;
|
|
1772
|
-
var REACT_DEBUG_TRACING_MODE_TYPE = 60129;
|
|
1773
|
-
var REACT_LEGACY_HIDDEN_TYPE = 60131;
|
|
1774
|
-
if (typeof Symbol === "function" && Symbol.for) {
|
|
1775
|
-
var symbolFor = Symbol.for;
|
|
1776
|
-
REACT_ELEMENT_TYPE = symbolFor("react.element");
|
|
1777
|
-
REACT_PORTAL_TYPE = symbolFor("react.portal");
|
|
1778
|
-
exports.Fragment = symbolFor("react.fragment");
|
|
1779
|
-
REACT_STRICT_MODE_TYPE = symbolFor("react.strict_mode");
|
|
1780
|
-
REACT_PROFILER_TYPE = symbolFor("react.profiler");
|
|
1781
|
-
REACT_PROVIDER_TYPE = symbolFor("react.provider");
|
|
1782
|
-
REACT_CONTEXT_TYPE = symbolFor("react.context");
|
|
1783
|
-
REACT_FORWARD_REF_TYPE = symbolFor("react.forward_ref");
|
|
1784
|
-
REACT_SUSPENSE_TYPE = symbolFor("react.suspense");
|
|
1785
|
-
REACT_SUSPENSE_LIST_TYPE = symbolFor("react.suspense_list");
|
|
1786
|
-
REACT_MEMO_TYPE = symbolFor("react.memo");
|
|
1787
|
-
REACT_LAZY_TYPE = symbolFor("react.lazy");
|
|
1788
|
-
REACT_BLOCK_TYPE = symbolFor("react.block");
|
|
1789
|
-
REACT_SERVER_BLOCK_TYPE = symbolFor("react.server.block");
|
|
1790
|
-
REACT_FUNDAMENTAL_TYPE = symbolFor("react.fundamental");
|
|
1791
|
-
symbolFor("react.scope");
|
|
1792
|
-
symbolFor("react.opaque.id");
|
|
1793
|
-
REACT_DEBUG_TRACING_MODE_TYPE = symbolFor("react.debug_trace_mode");
|
|
1794
|
-
symbolFor("react.offscreen");
|
|
1795
|
-
REACT_LEGACY_HIDDEN_TYPE = symbolFor("react.legacy_hidden");
|
|
1796
|
-
}
|
|
1797
|
-
var MAYBE_ITERATOR_SYMBOL = typeof Symbol === "function" && Symbol.iterator;
|
|
1798
|
-
var FAUX_ITERATOR_SYMBOL = "@@iterator";
|
|
1799
|
-
function getIteratorFn(maybeIterable) {
|
|
1800
|
-
if (maybeIterable === null || typeof maybeIterable !== "object") {
|
|
1801
|
-
return null;
|
|
1802
|
-
}
|
|
1803
|
-
var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL];
|
|
1804
|
-
if (typeof maybeIterator === "function") {
|
|
1805
|
-
return maybeIterator;
|
|
1806
|
-
}
|
|
1807
|
-
return null;
|
|
1808
|
-
}
|
|
1809
|
-
var ReactSharedInternals = React2.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
1810
|
-
function error(format) {
|
|
1811
|
-
{
|
|
1812
|
-
for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
|
|
1813
|
-
args[_key2 - 1] = arguments[_key2];
|
|
1814
|
-
}
|
|
1815
|
-
printWarning("error", format, args);
|
|
1816
|
-
}
|
|
1817
|
-
}
|
|
1818
|
-
function printWarning(level, format, args) {
|
|
1819
|
-
{
|
|
1820
|
-
var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;
|
|
1821
|
-
var stack = "";
|
|
1822
|
-
if (currentlyValidatingElement) {
|
|
1823
|
-
var name2 = getComponentName(currentlyValidatingElement.type);
|
|
1824
|
-
var owner = currentlyValidatingElement._owner;
|
|
1825
|
-
stack += describeComponentFrame(name2, currentlyValidatingElement._source, owner && getComponentName(owner.type));
|
|
1826
|
-
}
|
|
1827
|
-
stack += ReactDebugCurrentFrame.getStackAddendum();
|
|
1828
|
-
if (stack !== "") {
|
|
1829
|
-
format += "%s";
|
|
1830
|
-
args = args.concat([stack]);
|
|
1831
|
-
}
|
|
1832
|
-
var argsWithFormat = args.map(function(item) {
|
|
1833
|
-
return "" + item;
|
|
1834
|
-
});
|
|
1835
|
-
argsWithFormat.unshift("Warning: " + format);
|
|
1836
|
-
Function.prototype.apply.call(console[level], console, argsWithFormat);
|
|
1837
|
-
}
|
|
1838
|
-
}
|
|
1839
|
-
var enableScopeAPI = false;
|
|
1840
|
-
function isValidElementType(type2) {
|
|
1841
|
-
if (typeof type2 === "string" || typeof type2 === "function") {
|
|
1842
|
-
return true;
|
|
1843
|
-
}
|
|
1844
|
-
if (type2 === exports.Fragment || type2 === REACT_PROFILER_TYPE || type2 === REACT_DEBUG_TRACING_MODE_TYPE || type2 === REACT_STRICT_MODE_TYPE || type2 === REACT_SUSPENSE_TYPE || type2 === REACT_SUSPENSE_LIST_TYPE || type2 === REACT_LEGACY_HIDDEN_TYPE || enableScopeAPI) {
|
|
1845
|
-
return true;
|
|
1846
|
-
}
|
|
1847
|
-
if (typeof type2 === "object" && type2 !== null) {
|
|
1848
|
-
if (type2.$$typeof === REACT_LAZY_TYPE || type2.$$typeof === REACT_MEMO_TYPE || type2.$$typeof === REACT_PROVIDER_TYPE || type2.$$typeof === REACT_CONTEXT_TYPE || type2.$$typeof === REACT_FORWARD_REF_TYPE || type2.$$typeof === REACT_FUNDAMENTAL_TYPE || type2.$$typeof === REACT_BLOCK_TYPE || type2[0] === REACT_SERVER_BLOCK_TYPE) {
|
|
1849
|
-
return true;
|
|
1850
|
-
}
|
|
1851
|
-
}
|
|
1852
|
-
return false;
|
|
1853
|
-
}
|
|
1854
|
-
var BEFORE_SLASH_RE = /^(.*)[\\\/]/;
|
|
1855
|
-
function describeComponentFrame(name2, source, ownerName) {
|
|
1856
|
-
var sourceInfo = "";
|
|
1857
|
-
if (source) {
|
|
1858
|
-
var path2 = source.fileName;
|
|
1859
|
-
var fileName = path2.replace(BEFORE_SLASH_RE, "");
|
|
1860
|
-
{
|
|
1861
|
-
if (/^index\./.test(fileName)) {
|
|
1862
|
-
var match = path2.match(BEFORE_SLASH_RE);
|
|
1863
|
-
if (match) {
|
|
1864
|
-
var pathBeforeSlash = match[1];
|
|
1865
|
-
if (pathBeforeSlash) {
|
|
1866
|
-
var folderName = pathBeforeSlash.replace(BEFORE_SLASH_RE, "");
|
|
1867
|
-
fileName = folderName + "/" + fileName;
|
|
1868
|
-
}
|
|
1869
|
-
}
|
|
1870
|
-
}
|
|
1871
|
-
}
|
|
1872
|
-
sourceInfo = " (at " + fileName + ":" + source.lineNumber + ")";
|
|
1873
|
-
} else if (ownerName) {
|
|
1874
|
-
sourceInfo = " (created by " + ownerName + ")";
|
|
1875
|
-
}
|
|
1876
|
-
return "\n in " + (name2 || "Unknown") + sourceInfo;
|
|
1877
|
-
}
|
|
1878
|
-
var Resolved = 1;
|
|
1879
|
-
function refineResolvedLazyComponent(lazyComponent) {
|
|
1880
|
-
return lazyComponent._status === Resolved ? lazyComponent._result : null;
|
|
1881
|
-
}
|
|
1882
|
-
function getWrappedName(outerType, innerType, wrapperName) {
|
|
1883
|
-
var functionName = innerType.displayName || innerType.name || "";
|
|
1884
|
-
return outerType.displayName || (functionName !== "" ? wrapperName + "(" + functionName + ")" : wrapperName);
|
|
1885
|
-
}
|
|
1886
|
-
function getComponentName(type2) {
|
|
1887
|
-
if (type2 == null) {
|
|
1888
|
-
return null;
|
|
1889
|
-
}
|
|
1890
|
-
{
|
|
1891
|
-
if (typeof type2.tag === "number") {
|
|
1892
|
-
error("Received an unexpected object in getComponentName(). This is likely a bug in React. Please file an issue.");
|
|
1893
|
-
}
|
|
1894
|
-
}
|
|
1895
|
-
if (typeof type2 === "function") {
|
|
1896
|
-
return type2.displayName || type2.name || null;
|
|
1897
|
-
}
|
|
1898
|
-
if (typeof type2 === "string") {
|
|
1899
|
-
return type2;
|
|
1900
|
-
}
|
|
1901
|
-
switch (type2) {
|
|
1902
|
-
case exports.Fragment:
|
|
1903
|
-
return "Fragment";
|
|
1904
|
-
case REACT_PORTAL_TYPE:
|
|
1905
|
-
return "Portal";
|
|
1906
|
-
case REACT_PROFILER_TYPE:
|
|
1907
|
-
return "Profiler";
|
|
1908
|
-
case REACT_STRICT_MODE_TYPE:
|
|
1909
|
-
return "StrictMode";
|
|
1910
|
-
case REACT_SUSPENSE_TYPE:
|
|
1911
|
-
return "Suspense";
|
|
1912
|
-
case REACT_SUSPENSE_LIST_TYPE:
|
|
1913
|
-
return "SuspenseList";
|
|
1914
|
-
}
|
|
1915
|
-
if (typeof type2 === "object") {
|
|
1916
|
-
switch (type2.$$typeof) {
|
|
1917
|
-
case REACT_CONTEXT_TYPE:
|
|
1918
|
-
return "Context.Consumer";
|
|
1919
|
-
case REACT_PROVIDER_TYPE:
|
|
1920
|
-
return "Context.Provider";
|
|
1921
|
-
case REACT_FORWARD_REF_TYPE:
|
|
1922
|
-
return getWrappedName(type2, type2.render, "ForwardRef");
|
|
1923
|
-
case REACT_MEMO_TYPE:
|
|
1924
|
-
return getComponentName(type2.type);
|
|
1925
|
-
case REACT_BLOCK_TYPE:
|
|
1926
|
-
return getComponentName(type2.render);
|
|
1927
|
-
case REACT_LAZY_TYPE: {
|
|
1928
|
-
var thenable = type2;
|
|
1929
|
-
var resolvedThenable = refineResolvedLazyComponent(thenable);
|
|
1930
|
-
if (resolvedThenable) {
|
|
1931
|
-
return getComponentName(resolvedThenable);
|
|
1932
|
-
}
|
|
1933
|
-
break;
|
|
1934
|
-
}
|
|
1935
|
-
}
|
|
1936
|
-
}
|
|
1937
|
-
return null;
|
|
1938
|
-
}
|
|
1939
|
-
var loggedTypeFailures = {};
|
|
1940
|
-
ReactSharedInternals.ReactDebugCurrentFrame;
|
|
1941
|
-
var currentlyValidatingElement = null;
|
|
1942
|
-
function setCurrentlyValidatingElement(element) {
|
|
1943
|
-
{
|
|
1944
|
-
currentlyValidatingElement = element;
|
|
1945
|
-
}
|
|
1946
|
-
}
|
|
1947
|
-
function checkPropTypes(typeSpecs, values, location2, componentName, element) {
|
|
1948
|
-
{
|
|
1949
|
-
var has2 = Function.call.bind(Object.prototype.hasOwnProperty);
|
|
1950
|
-
for (var typeSpecName in typeSpecs) {
|
|
1951
|
-
if (has2(typeSpecs, typeSpecName)) {
|
|
1952
|
-
var error$1 = void 0;
|
|
1953
|
-
try {
|
|
1954
|
-
if (typeof typeSpecs[typeSpecName] !== "function") {
|
|
1955
|
-
var err = Error((componentName || "React class") + ": " + location2 + " type `" + typeSpecName + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof typeSpecs[typeSpecName] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
1956
|
-
err.name = "Invariant Violation";
|
|
1957
|
-
throw err;
|
|
1958
|
-
}
|
|
1959
|
-
error$1 = typeSpecs[typeSpecName](values, typeSpecName, componentName, location2, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
1960
|
-
} catch (ex) {
|
|
1961
|
-
error$1 = ex;
|
|
1962
|
-
}
|
|
1963
|
-
if (error$1 && !(error$1 instanceof Error)) {
|
|
1964
|
-
setCurrentlyValidatingElement(element);
|
|
1965
|
-
error("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", componentName || "React class", location2, typeSpecName, typeof error$1);
|
|
1966
|
-
setCurrentlyValidatingElement(null);
|
|
1967
|
-
}
|
|
1968
|
-
if (error$1 instanceof Error && !(error$1.message in loggedTypeFailures)) {
|
|
1969
|
-
loggedTypeFailures[error$1.message] = true;
|
|
1970
|
-
setCurrentlyValidatingElement(element);
|
|
1971
|
-
error("Failed %s type: %s", location2, error$1.message);
|
|
1972
|
-
setCurrentlyValidatingElement(null);
|
|
1973
|
-
}
|
|
1974
|
-
}
|
|
1975
|
-
}
|
|
1976
|
-
}
|
|
1977
|
-
}
|
|
1978
|
-
var ReactCurrentOwner = ReactSharedInternals.ReactCurrentOwner;
|
|
1979
|
-
var hasOwnProperty2 = Object.prototype.hasOwnProperty;
|
|
1980
|
-
var RESERVED_PROPS = {
|
|
1981
|
-
key: true,
|
|
1982
|
-
ref: true,
|
|
1983
|
-
__self: true,
|
|
1984
|
-
__source: true
|
|
1985
|
-
};
|
|
1986
|
-
var specialPropKeyWarningShown;
|
|
1987
|
-
var specialPropRefWarningShown;
|
|
1988
|
-
var didWarnAboutStringRefs;
|
|
1989
|
-
{
|
|
1990
|
-
didWarnAboutStringRefs = {};
|
|
1991
|
-
}
|
|
1992
|
-
function hasValidRef(config) {
|
|
1993
|
-
{
|
|
1994
|
-
if (hasOwnProperty2.call(config, "ref")) {
|
|
1995
|
-
var getter = Object.getOwnPropertyDescriptor(config, "ref").get;
|
|
1996
|
-
if (getter && getter.isReactWarning) {
|
|
1997
|
-
return false;
|
|
1998
|
-
}
|
|
1999
|
-
}
|
|
2000
|
-
}
|
|
2001
|
-
return config.ref !== void 0;
|
|
2002
|
-
}
|
|
2003
|
-
function hasValidKey(config) {
|
|
2004
|
-
{
|
|
2005
|
-
if (hasOwnProperty2.call(config, "key")) {
|
|
2006
|
-
var getter = Object.getOwnPropertyDescriptor(config, "key").get;
|
|
2007
|
-
if (getter && getter.isReactWarning) {
|
|
2008
|
-
return false;
|
|
2009
|
-
}
|
|
2010
|
-
}
|
|
2011
|
-
}
|
|
2012
|
-
return config.key !== void 0;
|
|
2013
|
-
}
|
|
2014
|
-
function warnIfStringRefCannotBeAutoConverted(config, self2) {
|
|
2015
|
-
{
|
|
2016
|
-
if (typeof config.ref === "string" && ReactCurrentOwner.current && self2 && ReactCurrentOwner.current.stateNode !== self2) {
|
|
2017
|
-
var componentName = getComponentName(ReactCurrentOwner.current.type);
|
|
2018
|
-
if (!didWarnAboutStringRefs[componentName]) {
|
|
2019
|
-
error('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', getComponentName(ReactCurrentOwner.current.type), config.ref);
|
|
2020
|
-
didWarnAboutStringRefs[componentName] = true;
|
|
2021
|
-
}
|
|
2022
|
-
}
|
|
2023
|
-
}
|
|
2024
|
-
}
|
|
2025
|
-
function defineKeyPropWarningGetter(props, displayName) {
|
|
2026
|
-
{
|
|
2027
|
-
var warnAboutAccessingKey = function() {
|
|
2028
|
-
if (!specialPropKeyWarningShown) {
|
|
2029
|
-
specialPropKeyWarningShown = true;
|
|
2030
|
-
error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", displayName);
|
|
2031
|
-
}
|
|
2032
|
-
};
|
|
2033
|
-
warnAboutAccessingKey.isReactWarning = true;
|
|
2034
|
-
Object.defineProperty(props, "key", {
|
|
2035
|
-
get: warnAboutAccessingKey,
|
|
2036
|
-
configurable: true
|
|
2037
|
-
});
|
|
2038
|
-
}
|
|
2039
|
-
}
|
|
2040
|
-
function defineRefPropWarningGetter(props, displayName) {
|
|
2041
|
-
{
|
|
2042
|
-
var warnAboutAccessingRef = function() {
|
|
2043
|
-
if (!specialPropRefWarningShown) {
|
|
2044
|
-
specialPropRefWarningShown = true;
|
|
2045
|
-
error("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", displayName);
|
|
2046
|
-
}
|
|
2047
|
-
};
|
|
2048
|
-
warnAboutAccessingRef.isReactWarning = true;
|
|
2049
|
-
Object.defineProperty(props, "ref", {
|
|
2050
|
-
get: warnAboutAccessingRef,
|
|
2051
|
-
configurable: true
|
|
2052
|
-
});
|
|
2053
|
-
}
|
|
2054
|
-
}
|
|
2055
|
-
var ReactElement = function(type2, key2, ref, self2, source, owner, props) {
|
|
2056
|
-
var element = {
|
|
2057
|
-
// This tag allows us to uniquely identify this as a React Element
|
|
2058
|
-
$$typeof: REACT_ELEMENT_TYPE,
|
|
2059
|
-
// Built-in properties that belong on the element
|
|
2060
|
-
type: type2,
|
|
2061
|
-
key: key2,
|
|
2062
|
-
ref,
|
|
2063
|
-
props,
|
|
2064
|
-
// Record the component responsible for creating this element.
|
|
2065
|
-
_owner: owner
|
|
2066
|
-
};
|
|
2067
|
-
{
|
|
2068
|
-
element._store = {};
|
|
2069
|
-
Object.defineProperty(element._store, "validated", {
|
|
2070
|
-
configurable: false,
|
|
2071
|
-
enumerable: false,
|
|
2072
|
-
writable: true,
|
|
2073
|
-
value: false
|
|
2074
|
-
});
|
|
2075
|
-
Object.defineProperty(element, "_self", {
|
|
2076
|
-
configurable: false,
|
|
2077
|
-
enumerable: false,
|
|
2078
|
-
writable: false,
|
|
2079
|
-
value: self2
|
|
2080
|
-
});
|
|
2081
|
-
Object.defineProperty(element, "_source", {
|
|
2082
|
-
configurable: false,
|
|
2083
|
-
enumerable: false,
|
|
2084
|
-
writable: false,
|
|
2085
|
-
value: source
|
|
2086
|
-
});
|
|
2087
|
-
if (Object.freeze) {
|
|
2088
|
-
Object.freeze(element.props);
|
|
2089
|
-
Object.freeze(element);
|
|
2090
|
-
}
|
|
2091
|
-
}
|
|
2092
|
-
return element;
|
|
2093
|
-
};
|
|
2094
|
-
function jsxDEV(type2, config, maybeKey, source, self2) {
|
|
2095
|
-
{
|
|
2096
|
-
var propName;
|
|
2097
|
-
var props = {};
|
|
2098
|
-
var key2 = null;
|
|
2099
|
-
var ref = null;
|
|
2100
|
-
if (maybeKey !== void 0) {
|
|
2101
|
-
key2 = "" + maybeKey;
|
|
2102
|
-
}
|
|
2103
|
-
if (hasValidKey(config)) {
|
|
2104
|
-
key2 = "" + config.key;
|
|
2105
|
-
}
|
|
2106
|
-
if (hasValidRef(config)) {
|
|
2107
|
-
ref = config.ref;
|
|
2108
|
-
warnIfStringRefCannotBeAutoConverted(config, self2);
|
|
2109
|
-
}
|
|
2110
|
-
for (propName in config) {
|
|
2111
|
-
if (hasOwnProperty2.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {
|
|
2112
|
-
props[propName] = config[propName];
|
|
2113
|
-
}
|
|
2114
|
-
}
|
|
2115
|
-
if (type2 && type2.defaultProps) {
|
|
2116
|
-
var defaultProps = type2.defaultProps;
|
|
2117
|
-
for (propName in defaultProps) {
|
|
2118
|
-
if (props[propName] === void 0) {
|
|
2119
|
-
props[propName] = defaultProps[propName];
|
|
2120
|
-
}
|
|
2121
|
-
}
|
|
2122
|
-
}
|
|
2123
|
-
if (key2 || ref) {
|
|
2124
|
-
var displayName = typeof type2 === "function" ? type2.displayName || type2.name || "Unknown" : type2;
|
|
2125
|
-
if (key2) {
|
|
2126
|
-
defineKeyPropWarningGetter(props, displayName);
|
|
2127
|
-
}
|
|
2128
|
-
if (ref) {
|
|
2129
|
-
defineRefPropWarningGetter(props, displayName);
|
|
2130
|
-
}
|
|
2131
|
-
}
|
|
2132
|
-
return ReactElement(type2, key2, ref, self2, source, ReactCurrentOwner.current, props);
|
|
2133
|
-
}
|
|
2134
|
-
}
|
|
2135
|
-
var ReactCurrentOwner$1 = ReactSharedInternals.ReactCurrentOwner;
|
|
2136
|
-
ReactSharedInternals.ReactDebugCurrentFrame;
|
|
2137
|
-
function setCurrentlyValidatingElement$1(element) {
|
|
2138
|
-
currentlyValidatingElement = element;
|
|
2139
|
-
}
|
|
2140
|
-
var propTypesMisspellWarningShown;
|
|
2141
|
-
{
|
|
2142
|
-
propTypesMisspellWarningShown = false;
|
|
2143
|
-
}
|
|
2144
|
-
function isValidElement2(object2) {
|
|
2145
|
-
{
|
|
2146
|
-
return typeof object2 === "object" && object2 !== null && object2.$$typeof === REACT_ELEMENT_TYPE;
|
|
2147
|
-
}
|
|
2148
|
-
}
|
|
2149
|
-
function getDeclarationErrorAddendum() {
|
|
2150
|
-
{
|
|
2151
|
-
if (ReactCurrentOwner$1.current) {
|
|
2152
|
-
var name2 = getComponentName(ReactCurrentOwner$1.current.type);
|
|
2153
|
-
if (name2) {
|
|
2154
|
-
return "\n\nCheck the render method of `" + name2 + "`.";
|
|
2155
|
-
}
|
|
2156
|
-
}
|
|
2157
|
-
return "";
|
|
2158
|
-
}
|
|
2159
|
-
}
|
|
2160
|
-
function getSourceInfoErrorAddendum(source) {
|
|
2161
|
-
{
|
|
2162
|
-
if (source !== void 0) {
|
|
2163
|
-
var fileName = source.fileName.replace(/^.*[\\\/]/, "");
|
|
2164
|
-
var lineNumber = source.lineNumber;
|
|
2165
|
-
return "\n\nCheck your code at " + fileName + ":" + lineNumber + ".";
|
|
2166
|
-
}
|
|
2167
|
-
return "";
|
|
2168
|
-
}
|
|
2169
|
-
}
|
|
2170
|
-
var ownerHasKeyUseWarning = {};
|
|
2171
|
-
function getCurrentComponentErrorInfo(parentType) {
|
|
2172
|
-
{
|
|
2173
|
-
var info = getDeclarationErrorAddendum();
|
|
2174
|
-
if (!info) {
|
|
2175
|
-
var parentName = typeof parentType === "string" ? parentType : parentType.displayName || parentType.name;
|
|
2176
|
-
if (parentName) {
|
|
2177
|
-
info = "\n\nCheck the top-level render call using <" + parentName + ">.";
|
|
2178
|
-
}
|
|
2179
|
-
}
|
|
2180
|
-
return info;
|
|
2181
|
-
}
|
|
2182
|
-
}
|
|
2183
|
-
function validateExplicitKey(element, parentType) {
|
|
2184
|
-
{
|
|
2185
|
-
if (!element._store || element._store.validated || element.key != null) {
|
|
2186
|
-
return;
|
|
2187
|
-
}
|
|
2188
|
-
element._store.validated = true;
|
|
2189
|
-
var currentComponentErrorInfo = getCurrentComponentErrorInfo(parentType);
|
|
2190
|
-
if (ownerHasKeyUseWarning[currentComponentErrorInfo]) {
|
|
2191
|
-
return;
|
|
2192
|
-
}
|
|
2193
|
-
ownerHasKeyUseWarning[currentComponentErrorInfo] = true;
|
|
2194
|
-
var childOwner = "";
|
|
2195
|
-
if (element && element._owner && element._owner !== ReactCurrentOwner$1.current) {
|
|
2196
|
-
childOwner = " It was passed a child from " + getComponentName(element._owner.type) + ".";
|
|
2197
|
-
}
|
|
2198
|
-
setCurrentlyValidatingElement$1(element);
|
|
2199
|
-
error('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', currentComponentErrorInfo, childOwner);
|
|
2200
|
-
setCurrentlyValidatingElement$1(null);
|
|
2201
|
-
}
|
|
2202
|
-
}
|
|
2203
|
-
function validateChildKeys(node, parentType) {
|
|
2204
|
-
{
|
|
2205
|
-
if (typeof node !== "object") {
|
|
2206
|
-
return;
|
|
2207
|
-
}
|
|
2208
|
-
if (Array.isArray(node)) {
|
|
2209
|
-
for (var i2 = 0; i2 < node.length; i2++) {
|
|
2210
|
-
var child = node[i2];
|
|
2211
|
-
if (isValidElement2(child)) {
|
|
2212
|
-
validateExplicitKey(child, parentType);
|
|
2213
|
-
}
|
|
2214
|
-
}
|
|
2215
|
-
} else if (isValidElement2(node)) {
|
|
2216
|
-
if (node._store) {
|
|
2217
|
-
node._store.validated = true;
|
|
2218
|
-
}
|
|
2219
|
-
} else if (node) {
|
|
2220
|
-
var iteratorFn = getIteratorFn(node);
|
|
2221
|
-
if (typeof iteratorFn === "function") {
|
|
2222
|
-
if (iteratorFn !== node.entries) {
|
|
2223
|
-
var iterator = iteratorFn.call(node);
|
|
2224
|
-
var step;
|
|
2225
|
-
while (!(step = iterator.next()).done) {
|
|
2226
|
-
if (isValidElement2(step.value)) {
|
|
2227
|
-
validateExplicitKey(step.value, parentType);
|
|
2228
|
-
}
|
|
2229
|
-
}
|
|
2230
|
-
}
|
|
2231
|
-
}
|
|
2232
|
-
}
|
|
2233
|
-
}
|
|
2234
|
-
}
|
|
2235
|
-
function validatePropTypes(element) {
|
|
2236
|
-
{
|
|
2237
|
-
var type2 = element.type;
|
|
2238
|
-
if (type2 === null || type2 === void 0 || typeof type2 === "string") {
|
|
2239
|
-
return;
|
|
2240
|
-
}
|
|
2241
|
-
var propTypes;
|
|
2242
|
-
if (typeof type2 === "function") {
|
|
2243
|
-
propTypes = type2.propTypes;
|
|
2244
|
-
} else if (typeof type2 === "object" && (type2.$$typeof === REACT_FORWARD_REF_TYPE || // Note: Memo only checks outer props here.
|
|
2245
|
-
// Inner props are checked in the reconciler.
|
|
2246
|
-
type2.$$typeof === REACT_MEMO_TYPE)) {
|
|
2247
|
-
propTypes = type2.propTypes;
|
|
2248
|
-
} else {
|
|
2249
|
-
return;
|
|
2250
|
-
}
|
|
2251
|
-
if (propTypes) {
|
|
2252
|
-
var name2 = getComponentName(type2);
|
|
2253
|
-
checkPropTypes(propTypes, element.props, "prop", name2, element);
|
|
2254
|
-
} else if (type2.PropTypes !== void 0 && !propTypesMisspellWarningShown) {
|
|
2255
|
-
propTypesMisspellWarningShown = true;
|
|
2256
|
-
var _name = getComponentName(type2);
|
|
2257
|
-
error("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", _name || "Unknown");
|
|
2258
|
-
}
|
|
2259
|
-
if (typeof type2.getDefaultProps === "function" && !type2.getDefaultProps.isReactClassApproved) {
|
|
2260
|
-
error("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
2261
|
-
}
|
|
2262
|
-
}
|
|
2263
|
-
}
|
|
2264
|
-
function validateFragmentProps(fragment) {
|
|
2265
|
-
{
|
|
2266
|
-
var keys = Object.keys(fragment.props);
|
|
2267
|
-
for (var i2 = 0; i2 < keys.length; i2++) {
|
|
2268
|
-
var key2 = keys[i2];
|
|
2269
|
-
if (key2 !== "children" && key2 !== "key") {
|
|
2270
|
-
setCurrentlyValidatingElement$1(fragment);
|
|
2271
|
-
error("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", key2);
|
|
2272
|
-
setCurrentlyValidatingElement$1(null);
|
|
2273
|
-
break;
|
|
2274
|
-
}
|
|
2275
|
-
}
|
|
2276
|
-
if (fragment.ref !== null) {
|
|
2277
|
-
setCurrentlyValidatingElement$1(fragment);
|
|
2278
|
-
error("Invalid attribute `ref` supplied to `React.Fragment`.");
|
|
2279
|
-
setCurrentlyValidatingElement$1(null);
|
|
2280
|
-
}
|
|
2281
|
-
}
|
|
2282
|
-
}
|
|
2283
|
-
function jsxWithValidation(type2, props, key2, isStaticChildren, source, self2) {
|
|
2284
|
-
{
|
|
2285
|
-
var validType = isValidElementType(type2);
|
|
2286
|
-
if (!validType) {
|
|
2287
|
-
var info = "";
|
|
2288
|
-
if (type2 === void 0 || typeof type2 === "object" && type2 !== null && Object.keys(type2).length === 0) {
|
|
2289
|
-
info += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.";
|
|
2290
|
-
}
|
|
2291
|
-
var sourceInfo = getSourceInfoErrorAddendum(source);
|
|
2292
|
-
if (sourceInfo) {
|
|
2293
|
-
info += sourceInfo;
|
|
2294
|
-
} else {
|
|
2295
|
-
info += getDeclarationErrorAddendum();
|
|
2296
|
-
}
|
|
2297
|
-
var typeString;
|
|
2298
|
-
if (type2 === null) {
|
|
2299
|
-
typeString = "null";
|
|
2300
|
-
} else if (Array.isArray(type2)) {
|
|
2301
|
-
typeString = "array";
|
|
2302
|
-
} else if (type2 !== void 0 && type2.$$typeof === REACT_ELEMENT_TYPE) {
|
|
2303
|
-
typeString = "<" + (getComponentName(type2.type) || "Unknown") + " />";
|
|
2304
|
-
info = " Did you accidentally export a JSX literal instead of a component?";
|
|
2305
|
-
} else {
|
|
2306
|
-
typeString = typeof type2;
|
|
2307
|
-
}
|
|
2308
|
-
error("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", typeString, info);
|
|
2309
|
-
}
|
|
2310
|
-
var element = jsxDEV(type2, props, key2, source, self2);
|
|
2311
|
-
if (element == null) {
|
|
2312
|
-
return element;
|
|
2313
|
-
}
|
|
2314
|
-
if (validType) {
|
|
2315
|
-
var children = props.children;
|
|
2316
|
-
if (children !== void 0) {
|
|
2317
|
-
if (isStaticChildren) {
|
|
2318
|
-
if (Array.isArray(children)) {
|
|
2319
|
-
for (var i2 = 0; i2 < children.length; i2++) {
|
|
2320
|
-
validateChildKeys(children[i2], type2);
|
|
2321
|
-
}
|
|
2322
|
-
if (Object.freeze) {
|
|
2323
|
-
Object.freeze(children);
|
|
2324
|
-
}
|
|
2325
|
-
} else {
|
|
2326
|
-
error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
2327
|
-
}
|
|
2328
|
-
} else {
|
|
2329
|
-
validateChildKeys(children, type2);
|
|
2330
|
-
}
|
|
2331
|
-
}
|
|
2332
|
-
}
|
|
2333
|
-
if (type2 === exports.Fragment) {
|
|
2334
|
-
validateFragmentProps(element);
|
|
2335
|
-
} else {
|
|
2336
|
-
validatePropTypes(element);
|
|
2337
|
-
}
|
|
2338
|
-
return element;
|
|
2339
|
-
}
|
|
2340
|
-
}
|
|
2341
|
-
function jsxWithValidationStatic(type2, props, key2) {
|
|
2342
|
-
{
|
|
2343
|
-
return jsxWithValidation(type2, props, key2, true);
|
|
2344
|
-
}
|
|
2345
|
-
}
|
|
2346
|
-
function jsxWithValidationDynamic(type2, props, key2) {
|
|
2347
|
-
{
|
|
2348
|
-
return jsxWithValidation(type2, props, key2, false);
|
|
2349
|
-
}
|
|
2350
|
-
}
|
|
2351
|
-
var jsx = jsxWithValidationDynamic;
|
|
2352
|
-
var jsxs = jsxWithValidationStatic;
|
|
2353
|
-
exports.jsx = jsx;
|
|
2354
|
-
exports.jsxs = jsxs;
|
|
2355
|
-
})();
|
|
2356
|
-
}
|
|
2357
|
-
})(reactJsxRuntime_development);
|
|
2358
|
-
return reactJsxRuntime_development;
|
|
2359
|
-
}
|
|
2360
|
-
if (process.env.NODE_ENV === "production") {
|
|
2361
|
-
jsxRuntime.exports = requireReactJsxRuntime_production_min();
|
|
2362
|
-
} else {
|
|
2363
|
-
jsxRuntime.exports = requireReactJsxRuntime_development();
|
|
2364
|
-
}
|
|
2365
|
-
var jsxRuntimeExports = jsxRuntime.exports;
|
|
2366
1429
|
const stringifyConfig = {
|
|
2367
1430
|
addQueryPrefix: true,
|
|
2368
1431
|
skipNulls: true,
|
|
@@ -3176,7 +2239,7 @@ lodash.exports;
|
|
|
3176
2239
|
var reIsNative2 = RegExp2(
|
|
3177
2240
|
"^" + funcToString2.call(hasOwnProperty2).replace(reRegExpChar2, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
3178
2241
|
);
|
|
3179
|
-
var
|
|
2242
|
+
var Buffer2 = moduleExports ? context.Buffer : undefined$1, Symbol2 = context.Symbol, Uint8Array2 = context.Uint8Array, allocUnsafe = Buffer2 ? Buffer2.allocUnsafe : undefined$1, getPrototype = overArg(Object2.getPrototypeOf, Object2), objectCreate = Object2.create, propertyIsEnumerable2 = objectProto2.propertyIsEnumerable, splice2 = arrayProto2.splice, spreadableSymbol = Symbol2 ? Symbol2.isConcatSpreadable : undefined$1, symIterator = Symbol2 ? Symbol2.iterator : undefined$1, symToStringTag2 = Symbol2 ? Symbol2.toStringTag : undefined$1;
|
|
3180
2243
|
var defineProperty = function() {
|
|
3181
2244
|
try {
|
|
3182
2245
|
var func = getNative2(Object2, "defineProperty");
|
|
@@ -3186,7 +2249,7 @@ lodash.exports;
|
|
|
3186
2249
|
}
|
|
3187
2250
|
}();
|
|
3188
2251
|
var ctxClearTimeout = context.clearTimeout !== root2.clearTimeout && context.clearTimeout, ctxNow = Date2 && Date2.now !== root2.Date.now && Date2.now, ctxSetTimeout = context.setTimeout !== root2.setTimeout && context.setTimeout;
|
|
3189
|
-
var nativeCeil = Math2.ceil, nativeFloor = Math2.floor, nativeGetSymbols = Object2.getOwnPropertySymbols, nativeIsBuffer =
|
|
2252
|
+
var nativeCeil = Math2.ceil, nativeFloor = Math2.floor, nativeGetSymbols = Object2.getOwnPropertySymbols, nativeIsBuffer = Buffer2 ? Buffer2.isBuffer : undefined$1, nativeIsFinite = context.isFinite, nativeJoin = arrayProto2.join, nativeKeys = overArg(Object2.keys, Object2), nativeMax = Math2.max, nativeMin = Math2.min, nativeNow = Date2.now, nativeParseInt = context.parseInt, nativeRandom = Math2.random, nativeReverse = arrayProto2.reverse;
|
|
3190
2253
|
var DataView = getNative2(context, "DataView"), Map2 = getNative2(context, "Map"), Promise2 = getNative2(context, "Promise"), Set = getNative2(context, "Set"), WeakMap = getNative2(context, "WeakMap"), nativeCreate2 = getNative2(Object2, "create");
|
|
3191
2254
|
var metaMap = WeakMap && new WeakMap();
|
|
3192
2255
|
var realNames = {};
|
|
@@ -4465,7 +3528,7 @@ lodash.exports;
|
|
|
4465
3528
|
end = end === undefined$1 ? length : end;
|
|
4466
3529
|
return !start && end >= length ? array : baseSlice(array, start, end);
|
|
4467
3530
|
}
|
|
4468
|
-
var
|
|
3531
|
+
var clearTimeout = ctxClearTimeout || function(id) {
|
|
4469
3532
|
return root2.clearTimeout(id);
|
|
4470
3533
|
};
|
|
4471
3534
|
function cloneBuffer(buffer, isDeep) {
|
|
@@ -6336,7 +5399,7 @@ lodash.exports;
|
|
|
6336
5399
|
}
|
|
6337
5400
|
function cancel2() {
|
|
6338
5401
|
if (timerId !== undefined$1) {
|
|
6339
|
-
|
|
5402
|
+
clearTimeout(timerId);
|
|
6340
5403
|
}
|
|
6341
5404
|
lastInvokeTime = 0;
|
|
6342
5405
|
lastArgs = lastCallTime = lastThis = timerId = undefined$1;
|
|
@@ -6354,7 +5417,7 @@ lodash.exports;
|
|
|
6354
5417
|
return leadingEdge(lastCallTime);
|
|
6355
5418
|
}
|
|
6356
5419
|
if (maxing) {
|
|
6357
|
-
|
|
5420
|
+
clearTimeout(timerId);
|
|
6358
5421
|
timerId = setTimeout2(timerExpired, wait);
|
|
6359
5422
|
return invokeFunc(lastCallTime);
|
|
6360
5423
|
}
|
|
@@ -7243,7 +6306,7 @@ lodash.exports;
|
|
|
7243
6306
|
}
|
|
7244
6307
|
return result2 + omission;
|
|
7245
6308
|
}
|
|
7246
|
-
function
|
|
6309
|
+
function unescape(string) {
|
|
7247
6310
|
string = toString2(string);
|
|
7248
6311
|
return string && reHasEscapedHtml.test(string) ? string.replace(reEscapedHtml, unescapeHtmlChar) : string;
|
|
7249
6312
|
}
|
|
@@ -7757,7 +6820,7 @@ lodash.exports;
|
|
|
7757
6820
|
lodash2.trimEnd = trimEnd;
|
|
7758
6821
|
lodash2.trimStart = trimStart;
|
|
7759
6822
|
lodash2.truncate = truncate;
|
|
7760
|
-
lodash2.unescape =
|
|
6823
|
+
lodash2.unescape = unescape;
|
|
7761
6824
|
lodash2.uniqueId = uniqueId;
|
|
7762
6825
|
lodash2.upperCase = upperCase;
|
|
7763
6826
|
lodash2.upperFirst = upperFirst;
|
|
@@ -8393,31 +7456,6 @@ const useDeleteModal = ({
|
|
|
8393
7456
|
});
|
|
8394
7457
|
return { openDeleteConfirmModal, closeDeleteConfirmModal };
|
|
8395
7458
|
};
|
|
8396
|
-
var cx = function cx2() {
|
|
8397
|
-
const presentClassNames = Array.prototype.slice.call(arguments).filter(Boolean);
|
|
8398
|
-
const atomicClasses = {};
|
|
8399
|
-
const nonAtomicClasses = [];
|
|
8400
|
-
presentClassNames.forEach((arg) => {
|
|
8401
|
-
const individualClassNames = arg ? arg.split(" ") : [];
|
|
8402
|
-
individualClassNames.forEach((className) => {
|
|
8403
|
-
if (className.startsWith("atm_")) {
|
|
8404
|
-
const [, keyHash] = className.split("_");
|
|
8405
|
-
atomicClasses[keyHash] = className;
|
|
8406
|
-
} else {
|
|
8407
|
-
nonAtomicClasses.push(className);
|
|
8408
|
-
}
|
|
8409
|
-
});
|
|
8410
|
-
});
|
|
8411
|
-
const result = [];
|
|
8412
|
-
for (const keyHash in atomicClasses) {
|
|
8413
|
-
if (Object.prototype.hasOwnProperty.call(atomicClasses, keyHash)) {
|
|
8414
|
-
result.push(atomicClasses[keyHash]);
|
|
8415
|
-
}
|
|
8416
|
-
}
|
|
8417
|
-
result.push(...nonAtomicClasses);
|
|
8418
|
-
return result.join(" ");
|
|
8419
|
-
};
|
|
8420
|
-
var cx_default = cx;
|
|
8421
7459
|
const index_18b69qa = "";
|
|
8422
7460
|
const EMPTY_VALUES = [void 0, null, "", "-"];
|
|
8423
7461
|
const EmptyStyle = "e5223w8";
|
|
@@ -10209,6 +9247,8 @@ var ResourceState = /* @__PURE__ */ ((ResourceState2) => {
|
|
|
10209
9247
|
ResourceState2["BOUND"] = "bound";
|
|
10210
9248
|
ResourceState2["RELEASED"] = "released";
|
|
10211
9249
|
ResourceState2["LOST"] = "lost";
|
|
9250
|
+
ResourceState2["ACTIVE"] = "active";
|
|
9251
|
+
ResourceState2["DELETING"] = "deleting";
|
|
10212
9252
|
return ResourceState2;
|
|
10213
9253
|
})(ResourceState || {});
|
|
10214
9254
|
function matchSelector(pod2, selector, namespace2 = "default") {
|
|
@@ -11411,7 +10451,7 @@ const DeleteManyButton = (props) => {
|
|
|
11411
10451
|
};
|
|
11412
10452
|
const index_1iwpuwe = "";
|
|
11413
10453
|
const ToolbarWrapperStyle = "t1908hhn";
|
|
11414
|
-
const ToolbarStyle$
|
|
10454
|
+
const ToolbarStyle$1 = "t1ym1gqo";
|
|
11415
10455
|
const TitleStyle$2 = "t38ugwl";
|
|
11416
10456
|
const DescriptionStyle = "d13nfex0";
|
|
11417
10457
|
const TableToolBar = ({
|
|
@@ -11427,7 +10467,7 @@ const TableToolBar = ({
|
|
|
11427
10467
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", {
|
|
11428
10468
|
className: cx_default(ToolbarWrapperStyle, "table-toolbar"),
|
|
11429
10469
|
children: [/* @__PURE__ */ jsxRuntimeExports.jsxs(Space, {
|
|
11430
|
-
className: ToolbarStyle$
|
|
10470
|
+
className: ToolbarStyle$1,
|
|
11431
10471
|
children: [/* @__PURE__ */ jsxRuntimeExports.jsx("span", {
|
|
11432
10472
|
className: cx_default(Typo.Display.d2_regular_title, TitleStyle$2),
|
|
11433
10473
|
children: title || ((_a = resource == null ? void 0 : resource.meta) == null ? void 0 : _a.kind)
|
|
@@ -11891,7 +10931,9 @@ const StateTag = (props) => {
|
|
|
11891
10931
|
[ResourceState.AVAILABLE]: "blue",
|
|
11892
10932
|
[ResourceState.BOUND]: "green",
|
|
11893
10933
|
[ResourceState.RELEASED]: "gray",
|
|
11894
|
-
[ResourceState.LOST]: "red"
|
|
10934
|
+
[ResourceState.LOST]: "red",
|
|
10935
|
+
[ResourceState.ACTIVE]: "green",
|
|
10936
|
+
[ResourceState.DELETING]: "loading"
|
|
11895
10937
|
};
|
|
11896
10938
|
const finalColorMap = (customResourceStateMap == null ? void 0 : customResourceStateMap.color) || defaultStateMap;
|
|
11897
10939
|
const finalTextMap = customResourceStateMap == null ? void 0 : customResourceStateMap.text;
|
|
@@ -13397,8 +12439,8 @@ const ResourceTableField = (resource, useTableParams) => {
|
|
|
13397
12439
|
const baseNoReset = "";
|
|
13398
12440
|
const index_v855ki = "";
|
|
13399
12441
|
const WrapperStyle$3 = "wve7dfm";
|
|
13400
|
-
const ToolbarStyle
|
|
13401
|
-
const ToolbarAreaStyle
|
|
12442
|
+
const ToolbarStyle = "t9oeh3c";
|
|
12443
|
+
const ToolbarAreaStyle = "t1u2zqn6";
|
|
13402
12444
|
const ContentStyle$1 = "c8wrcus";
|
|
13403
12445
|
const PodLog = ({
|
|
13404
12446
|
pod: pod2
|
|
@@ -13518,9 +12560,9 @@ const PodLog = ({
|
|
|
13518
12560
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", {
|
|
13519
12561
|
className: WrapperStyle$3,
|
|
13520
12562
|
children: [/* @__PURE__ */ jsxRuntimeExports.jsxs("div", {
|
|
13521
|
-
className: ToolbarStyle
|
|
12563
|
+
className: ToolbarStyle,
|
|
13522
12564
|
children: [/* @__PURE__ */ jsxRuntimeExports.jsxs("span", {
|
|
13523
|
-
className: ToolbarAreaStyle
|
|
12565
|
+
className: ToolbarAreaStyle,
|
|
13524
12566
|
children: [/* @__PURE__ */ jsxRuntimeExports.jsx(SegmentControl, {
|
|
13525
12567
|
options: [{
|
|
13526
12568
|
label: t2("dovetail.realtime_log"),
|
|
@@ -13557,7 +12599,7 @@ const PodLog = ({
|
|
|
13557
12599
|
}, container2.name))]
|
|
13558
12600
|
})]
|
|
13559
12601
|
}), /* @__PURE__ */ jsxRuntimeExports.jsxs("span", {
|
|
13560
|
-
className: ToolbarAreaStyle
|
|
12602
|
+
className: ToolbarAreaStyle,
|
|
13561
12603
|
children: [/* @__PURE__ */ jsxRuntimeExports.jsx(Checkbox, {
|
|
13562
12604
|
checked: wrap,
|
|
13563
12605
|
onChange: (e2) => setWrap(e2.target.checked),
|
|
@@ -13625,7 +12667,7 @@ const PodLogTab = (i18n2) => ({
|
|
|
13625
12667
|
]
|
|
13626
12668
|
});
|
|
13627
12669
|
const NetworkPolicyRulesViewer_r6jity = "";
|
|
13628
|
-
const MonacoYamlEditor$1 = lazy(() => import("./MonacoYamlEditor-
|
|
12670
|
+
const MonacoYamlEditor$1 = lazy(() => import("./MonacoYamlEditor-c8ef62dc.js"));
|
|
13629
12671
|
const EditorStyle$1 = "e1cjl2b8";
|
|
13630
12672
|
const NetworkPolicyRulesViewer = ({
|
|
13631
12673
|
ingressOrEgress,
|
|
@@ -15755,680 +14797,9 @@ var CloseCircleFilled = function CloseCircleFilled2(props, ref) {
|
|
|
15755
14797
|
};
|
|
15756
14798
|
CloseCircleFilled.displayName = "CloseCircleFilled";
|
|
15757
14799
|
const CloseCircleFilled$1 = React.forwardRef(CloseCircleFilled);
|
|
15758
|
-
const
|
|
15759
|
-
|
|
15760
|
-
|
|
15761
|
-
const IconWrapperStyle = "ix8ych8";
|
|
15762
|
-
const IconStyle$1 = "i58m6oo";
|
|
15763
|
-
const DividerStyle = "d1t2oa87";
|
|
15764
|
-
const TooltipStyle = "tuo8xdg";
|
|
15765
|
-
function ShellToolbar(props) {
|
|
15766
|
-
const {
|
|
15767
|
-
className,
|
|
15768
|
-
leftSlot,
|
|
15769
|
-
operations = ["fontSize", "downloadLog", "clear"],
|
|
15770
|
-
searchMatchedTotal,
|
|
15771
|
-
onSetFontSize,
|
|
15772
|
-
onSearchNext,
|
|
15773
|
-
onSearchPre,
|
|
15774
|
-
onDownloadLog,
|
|
15775
|
-
onClear
|
|
15776
|
-
} = props;
|
|
15777
|
-
const {
|
|
15778
|
-
t: t2
|
|
15779
|
-
} = useTranslation();
|
|
15780
|
-
const fontSizeOptions = [12, 13, 14, 16, 20];
|
|
15781
|
-
const operationMap = {
|
|
15782
|
-
fontSize: /* @__PURE__ */ jsxRuntimeExports.jsx(DropdownMenu, {
|
|
15783
|
-
trigger: ["click"],
|
|
15784
|
-
items: fontSizeOptions.map((size) => ({
|
|
15785
|
-
key: `${size}`,
|
|
15786
|
-
title: `${size}px`,
|
|
15787
|
-
text: `${size}px`,
|
|
15788
|
-
onClick: () => {
|
|
15789
|
-
onSetFontSize == null ? void 0 : onSetFontSize(size);
|
|
15790
|
-
}
|
|
15791
|
-
})),
|
|
15792
|
-
slotsElements: {
|
|
15793
|
-
trigger: () => /* @__PURE__ */ jsxRuntimeExports.jsx(Tooltip, {
|
|
15794
|
-
title: /* @__PURE__ */ jsxRuntimeExports.jsx("span", {
|
|
15795
|
-
className: TooltipStyle,
|
|
15796
|
-
children: t2("dovetail.font_size")
|
|
15797
|
-
}),
|
|
15798
|
-
children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", {
|
|
15799
|
-
style: {
|
|
15800
|
-
display: "flex",
|
|
15801
|
-
alignItems: "center"
|
|
15802
|
-
},
|
|
15803
|
-
children: /* @__PURE__ */ jsxRuntimeExports.jsx(Icon$1, {
|
|
15804
|
-
className: IconStyle$1,
|
|
15805
|
-
src: FontSize16GrayIcon,
|
|
15806
|
-
hoverSrc: FontSize16BlueIcon
|
|
15807
|
-
})
|
|
15808
|
-
})
|
|
15809
|
-
})
|
|
15810
|
-
}
|
|
15811
|
-
}),
|
|
15812
|
-
downloadLog: /* @__PURE__ */ jsxRuntimeExports.jsx(Tooltip, {
|
|
15813
|
-
title: /* @__PURE__ */ jsxRuntimeExports.jsx("span", {
|
|
15814
|
-
className: TooltipStyle,
|
|
15815
|
-
children: t2("dovetail.download_shell_content")
|
|
15816
|
-
}),
|
|
15817
|
-
children: /* @__PURE__ */ jsxRuntimeExports.jsx(Icon$1, {
|
|
15818
|
-
className: IconStyle$1,
|
|
15819
|
-
src: LogCollection16GrayIcon,
|
|
15820
|
-
hoverSrc: LogCollection16GradientBlueIcon,
|
|
15821
|
-
onClick: onDownloadLog
|
|
15822
|
-
})
|
|
15823
|
-
}),
|
|
15824
|
-
clear: /* @__PURE__ */ jsxRuntimeExports.jsx(Tooltip, {
|
|
15825
|
-
title: /* @__PURE__ */ jsxRuntimeExports.jsx("span", {
|
|
15826
|
-
className: TooltipStyle,
|
|
15827
|
-
children: t2("dovetail.clear_shell")
|
|
15828
|
-
}),
|
|
15829
|
-
children: /* @__PURE__ */ jsxRuntimeExports.jsx(Icon$1, {
|
|
15830
|
-
className: IconStyle$1,
|
|
15831
|
-
src: TrashBinDeletePermanently16GrayIcon,
|
|
15832
|
-
hoverSrc: TrashBinDeletePermanently16BlueIcon,
|
|
15833
|
-
onClick: onClear
|
|
15834
|
-
})
|
|
15835
|
-
})
|
|
15836
|
-
};
|
|
15837
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", {
|
|
15838
|
-
className: cx_default(ToolbarStyle$1, className),
|
|
15839
|
-
children: [/* @__PURE__ */ jsxRuntimeExports.jsx("div", {
|
|
15840
|
-
className: ToolbarAreaStyle,
|
|
15841
|
-
children: leftSlot
|
|
15842
|
-
}), /* @__PURE__ */ jsxRuntimeExports.jsxs("div", {
|
|
15843
|
-
className: ToolbarAreaStyle,
|
|
15844
|
-
children: [/* @__PURE__ */ jsxRuntimeExports.jsx(SearchInput, {
|
|
15845
|
-
placeholder: t2("dovetail.search"),
|
|
15846
|
-
size: "small",
|
|
15847
|
-
total: searchMatchedTotal,
|
|
15848
|
-
onChange: (str) => {
|
|
15849
|
-
onSearchNext(str);
|
|
15850
|
-
},
|
|
15851
|
-
onSearchNext: (str) => {
|
|
15852
|
-
onSearchNext(str);
|
|
15853
|
-
},
|
|
15854
|
-
onSearchPrev: (str) => {
|
|
15855
|
-
onSearchPre(str);
|
|
15856
|
-
}
|
|
15857
|
-
}), /* @__PURE__ */ jsxRuntimeExports.jsx("div", {
|
|
15858
|
-
className: DividerStyle
|
|
15859
|
-
}), /* @__PURE__ */ jsxRuntimeExports.jsx("div", {
|
|
15860
|
-
className: IconWrapperStyle,
|
|
15861
|
-
children: operations.map((operation) => typeof operation === "string" ? operationMap[operation] || null : operation)
|
|
15862
|
-
})]
|
|
15863
|
-
})]
|
|
15864
|
-
});
|
|
15865
|
-
}
|
|
15866
|
-
const xterm = "";
|
|
15867
|
-
const index_1bj2t02 = "";
|
|
15868
|
-
const ContainerStyle = "c1q5a2qi";
|
|
15869
|
-
const ShellStyle = "sdz5fm1";
|
|
15870
|
-
const LoadingStyle = "lbp0h2e";
|
|
15871
|
-
const ErrorAlertStyle = "eioilqy";
|
|
15872
|
-
const ToolbarStyle = "trlau0c";
|
|
15873
|
-
var SocketStatus = /* @__PURE__ */ ((SocketStatus2) => {
|
|
15874
|
-
SocketStatus2["Opening"] = "Opening";
|
|
15875
|
-
SocketStatus2["Open"] = "Open";
|
|
15876
|
-
SocketStatus2["Disconnected"] = "Disconnected";
|
|
15877
|
-
return SocketStatus2;
|
|
15878
|
-
})(SocketStatus || {});
|
|
15879
|
-
const Shell = React__default.forwardRef(function Shell2(props, ref) {
|
|
15880
|
-
const {
|
|
15881
|
-
className,
|
|
15882
|
-
url,
|
|
15883
|
-
protocols,
|
|
15884
|
-
timeout = 1e4,
|
|
15885
|
-
logFileName,
|
|
15886
|
-
operations,
|
|
15887
|
-
isHideToolbar,
|
|
15888
|
-
toolbarLeftSlot,
|
|
15889
|
-
shellOptions,
|
|
15890
|
-
loadingElement,
|
|
15891
|
-
encode,
|
|
15892
|
-
decode,
|
|
15893
|
-
onSocketStatusChange,
|
|
15894
|
-
onTermInit,
|
|
15895
|
-
onSocketInit,
|
|
15896
|
-
children
|
|
15897
|
-
} = props;
|
|
15898
|
-
const terminalRef = useRef(null);
|
|
15899
|
-
const termInstanceRef = useRef(null);
|
|
15900
|
-
const fitAddonRef = useRef(null);
|
|
15901
|
-
const searchAddonRef = useRef(null);
|
|
15902
|
-
const socketRef = useRef(null);
|
|
15903
|
-
const backlogRef = useRef([]);
|
|
15904
|
-
const containerRef = useRef(null);
|
|
15905
|
-
const [socketStatus, setSocketStatus] = useState(
|
|
15906
|
-
"Opening"
|
|
15907
|
-
/* Opening */
|
|
15908
|
-
);
|
|
15909
|
-
const [loading, setLoading] = useState(false);
|
|
15910
|
-
const [error, setError] = useState(null);
|
|
15911
|
-
const [searchMatchedTotal, setSearchMatchedTotal] = useState(0);
|
|
15912
|
-
const {
|
|
15913
|
-
t: t2
|
|
15914
|
-
} = useTranslation();
|
|
15915
|
-
const searchOptions = useMemo(() => ({
|
|
15916
|
-
decorations: {
|
|
15917
|
-
activeMatchColorOverviewRuler: "#FEA008",
|
|
15918
|
-
matchOverviewRuler: "#E07F00",
|
|
15919
|
-
activeMatchBackground: "#FEA008",
|
|
15920
|
-
matchBackground: "#E07F00"
|
|
15921
|
-
}
|
|
15922
|
-
}), []);
|
|
15923
|
-
const reset = useCallback(() => {
|
|
15924
|
-
var _a, _b;
|
|
15925
|
-
(_a = termInstanceRef.current) == null ? void 0 : _a.clear();
|
|
15926
|
-
(_b = termInstanceRef.current) == null ? void 0 : _b.reset();
|
|
15927
|
-
}, []);
|
|
15928
|
-
const send = useCallback((message2, callback) => {
|
|
15929
|
-
if (socketRef.current && socketRef.current.readyState === socketRef.current.OPEN) {
|
|
15930
|
-
socketRef.current.send(message2);
|
|
15931
|
-
callback == null ? void 0 : callback();
|
|
15932
|
-
} else {
|
|
15933
|
-
backlogRef.current.push({
|
|
15934
|
-
message: message2,
|
|
15935
|
-
callback
|
|
15936
|
-
});
|
|
15937
|
-
}
|
|
15938
|
-
}, []);
|
|
15939
|
-
const fit = useCallback(() => {
|
|
15940
|
-
var _a;
|
|
15941
|
-
if (!fitAddonRef.current)
|
|
15942
|
-
return;
|
|
15943
|
-
fitAddonRef.current.fit();
|
|
15944
|
-
const {
|
|
15945
|
-
rows,
|
|
15946
|
-
cols
|
|
15947
|
-
} = fitAddonRef.current.proposeDimensions() || {};
|
|
15948
|
-
if (rows && cols) {
|
|
15949
|
-
(_a = props.fit) == null ? void 0 : _a.call(props, {
|
|
15950
|
-
rows,
|
|
15951
|
-
cols
|
|
15952
|
-
});
|
|
15953
|
-
}
|
|
15954
|
-
}, [encode, send, props.fit]);
|
|
15955
|
-
const debouncedFit = useMemo(() => debounce(fit, 200), [fit]);
|
|
15956
|
-
const flush = useCallback(() => {
|
|
15957
|
-
const backlog = backlogRef.current.slice();
|
|
15958
|
-
backlogRef.current = [];
|
|
15959
|
-
for (const data2 of backlog) {
|
|
15960
|
-
send(data2.message, data2.callback);
|
|
15961
|
-
}
|
|
15962
|
-
}, [send]);
|
|
15963
|
-
const connect = useCallback(() => {
|
|
15964
|
-
if (socketRef.current) {
|
|
15965
|
-
socketRef.current.close();
|
|
15966
|
-
socketRef.current = null;
|
|
15967
|
-
}
|
|
15968
|
-
if (url) {
|
|
15969
|
-
let onSocketError = function() {
|
|
15970
|
-
setLoading(false);
|
|
15971
|
-
setError(true);
|
|
15972
|
-
}, onSocketOpen = function() {
|
|
15973
|
-
var _a;
|
|
15974
|
-
(_a = props.onSocketOpen) == null ? void 0 : _a.call(props, socket);
|
|
15975
|
-
clearTimeout(timer);
|
|
15976
|
-
setSocketStatus(
|
|
15977
|
-
"Open"
|
|
15978
|
-
/* Open */
|
|
15979
|
-
);
|
|
15980
|
-
fit();
|
|
15981
|
-
flush();
|
|
15982
|
-
setError(false);
|
|
15983
|
-
setLoading(false);
|
|
15984
|
-
}, onSocketClose = function() {
|
|
15985
|
-
setLoading(false);
|
|
15986
|
-
setError(true);
|
|
15987
|
-
if (props.onSocketClose) {
|
|
15988
|
-
props.onSocketClose(socket, termInstanceRef.current);
|
|
15989
|
-
} else {
|
|
15990
|
-
setSocketStatus(
|
|
15991
|
-
"Disconnected"
|
|
15992
|
-
/* Disconnected */
|
|
15993
|
-
);
|
|
15994
|
-
}
|
|
15995
|
-
}, onSocketMessage = function(e2) {
|
|
15996
|
-
var _a;
|
|
15997
|
-
if (props.onSocketMessage) {
|
|
15998
|
-
props.onSocketMessage(e2, socket, termInstanceRef.current);
|
|
15999
|
-
} else {
|
|
16000
|
-
const msg = (decode == null ? void 0 : decode(e2.data)) || e2.data;
|
|
16001
|
-
(_a = termInstanceRef.current) == null ? void 0 : _a.write(msg);
|
|
16002
|
-
}
|
|
16003
|
-
};
|
|
16004
|
-
setLoading(true);
|
|
16005
|
-
setError(false);
|
|
16006
|
-
const socket = new WebSocket(url, protocols);
|
|
16007
|
-
const timer = setTimeout(() => {
|
|
16008
|
-
setLoading(false);
|
|
16009
|
-
socket.close();
|
|
16010
|
-
}, timeout);
|
|
16011
|
-
setSocketStatus(
|
|
16012
|
-
"Opening"
|
|
16013
|
-
/* Opening */
|
|
16014
|
-
);
|
|
16015
|
-
onSocketInit == null ? void 0 : onSocketInit(socket);
|
|
16016
|
-
socket.addEventListener("open", onSocketOpen);
|
|
16017
|
-
socket.addEventListener("message", onSocketMessage);
|
|
16018
|
-
socket.addEventListener("close", onSocketClose);
|
|
16019
|
-
socket.addEventListener("error", onSocketError);
|
|
16020
|
-
socketRef.current = socket;
|
|
16021
|
-
return function disconnect() {
|
|
16022
|
-
if (socket) {
|
|
16023
|
-
socket.close();
|
|
16024
|
-
socket.removeEventListener("open", onSocketOpen);
|
|
16025
|
-
socket.removeEventListener("message", onSocketMessage);
|
|
16026
|
-
socket.removeEventListener("close", onSocketClose);
|
|
16027
|
-
socket.removeEventListener("error", onSocketError);
|
|
16028
|
-
socketRef.current = null;
|
|
16029
|
-
}
|
|
16030
|
-
};
|
|
16031
|
-
}
|
|
16032
|
-
}, [url, protocols, decode, props.onSocketClose, props.onSocketMessage, props.onSocketOpen, reset, flush, fit, onSocketInit, timeout]);
|
|
16033
|
-
const setupTerminal = useCallback(() => {
|
|
16034
|
-
if (terminalRef.current) {
|
|
16035
|
-
let onKeyDown = function(event2) {
|
|
16036
|
-
if (event2.ctrlKey && event2.shiftKey && event2.key === "C") {
|
|
16037
|
-
event2.preventDefault();
|
|
16038
|
-
copyToClipboard$1(term.getSelection());
|
|
16039
|
-
}
|
|
16040
|
-
}, onResize = function() {
|
|
16041
|
-
fit();
|
|
16042
|
-
};
|
|
16043
|
-
if (termInstanceRef.current) {
|
|
16044
|
-
termInstanceRef.current.reset();
|
|
16045
|
-
termInstanceRef.current.dispose();
|
|
16046
|
-
}
|
|
16047
|
-
const term = new Terminal({
|
|
16048
|
-
cursorBlink: true,
|
|
16049
|
-
cols: 150,
|
|
16050
|
-
allowProposedApi: true,
|
|
16051
|
-
fontSize: 12,
|
|
16052
|
-
theme: {
|
|
16053
|
-
background: "#00122E"
|
|
16054
|
-
},
|
|
16055
|
-
...shellOptions
|
|
16056
|
-
});
|
|
16057
|
-
let renderAddon = null;
|
|
16058
|
-
try {
|
|
16059
|
-
renderAddon = new WebglAddon();
|
|
16060
|
-
} catch {
|
|
16061
|
-
renderAddon = new CanvasAddon();
|
|
16062
|
-
}
|
|
16063
|
-
onTermInit == null ? void 0 : onTermInit(term);
|
|
16064
|
-
term.loadAddon(fitAddonRef.current = new FitAddon());
|
|
16065
|
-
term.loadAddon(searchAddonRef.current = new SearchAddon());
|
|
16066
|
-
term.loadAddon(new WebLinksAddon());
|
|
16067
|
-
term.loadAddon(renderAddon);
|
|
16068
|
-
term.open(terminalRef.current);
|
|
16069
|
-
fit();
|
|
16070
|
-
flush();
|
|
16071
|
-
document.addEventListener("keydown", onKeyDown);
|
|
16072
|
-
window.addEventListener("resize", onResize);
|
|
16073
|
-
searchAddonRef.current.onDidChangeResults(({
|
|
16074
|
-
resultCount
|
|
16075
|
-
}) => {
|
|
16076
|
-
setSearchMatchedTotal(resultCount);
|
|
16077
|
-
});
|
|
16078
|
-
term.onData((input) => {
|
|
16079
|
-
send(encode(input));
|
|
16080
|
-
});
|
|
16081
|
-
termInstanceRef.current = term;
|
|
16082
|
-
return function destroy() {
|
|
16083
|
-
document.removeEventListener("keydown", onKeyDown);
|
|
16084
|
-
window.removeEventListener("resize", onResize);
|
|
16085
|
-
termInstanceRef.current = null;
|
|
16086
|
-
fitAddonRef.current = null;
|
|
16087
|
-
searchAddonRef.current = null;
|
|
16088
|
-
term.clear();
|
|
16089
|
-
term.dispose();
|
|
16090
|
-
};
|
|
16091
|
-
}
|
|
16092
|
-
}, [send, encode, onTermInit, fit, flush, shellOptions]);
|
|
16093
|
-
const searchNext = useCallback((search2) => {
|
|
16094
|
-
var _a;
|
|
16095
|
-
(_a = searchAddonRef.current) == null ? void 0 : _a.findNext(search2 || "", searchOptions);
|
|
16096
|
-
}, [searchOptions]);
|
|
16097
|
-
const searchPrevious = useCallback((search2) => {
|
|
16098
|
-
var _a;
|
|
16099
|
-
(_a = searchAddonRef.current) == null ? void 0 : _a.findPrevious(search2 || "", searchOptions);
|
|
16100
|
-
}, [searchOptions]);
|
|
16101
|
-
const getAllTerminalContents = useCallback(() => {
|
|
16102
|
-
if (!termInstanceRef.current)
|
|
16103
|
-
return [];
|
|
16104
|
-
const buffer = termInstanceRef.current.buffer.active;
|
|
16105
|
-
const lines = [];
|
|
16106
|
-
for (let i2 = 0; i2 < buffer.length; i2++) {
|
|
16107
|
-
const line = buffer.getLine(i2);
|
|
16108
|
-
if (line) {
|
|
16109
|
-
lines.push(line.translateToString(true));
|
|
16110
|
-
}
|
|
16111
|
-
}
|
|
16112
|
-
return lines;
|
|
16113
|
-
}, []);
|
|
16114
|
-
const clear = useCallback(() => {
|
|
16115
|
-
var _a;
|
|
16116
|
-
(_a = termInstanceRef.current) == null ? void 0 : _a.clear();
|
|
16117
|
-
}, []);
|
|
16118
|
-
const downloadContent = useCallback(() => {
|
|
16119
|
-
const content = (getAllTerminalContents() || []).join("\n");
|
|
16120
|
-
const blob = new Blob([content], {
|
|
16121
|
-
type: "text/plain"
|
|
16122
|
-
});
|
|
16123
|
-
const url2 = window.URL.createObjectURL(blob);
|
|
16124
|
-
const a2 = document.createElement("a");
|
|
16125
|
-
a2.href = url2;
|
|
16126
|
-
a2.download = `${logFileName || "term"}.log`;
|
|
16127
|
-
document.body.appendChild(a2);
|
|
16128
|
-
a2.click();
|
|
16129
|
-
setTimeout(() => {
|
|
16130
|
-
document.body.removeChild(a2);
|
|
16131
|
-
window.URL.revokeObjectURL(url2);
|
|
16132
|
-
}, 0);
|
|
16133
|
-
}, [getAllTerminalContents, logFileName]);
|
|
16134
|
-
const setOptions = useCallback((options) => {
|
|
16135
|
-
Object.entries(options).forEach(([key2, value2]) => {
|
|
16136
|
-
if (termInstanceRef.current) {
|
|
16137
|
-
termInstanceRef.current.options[key2] = value2;
|
|
16138
|
-
}
|
|
16139
|
-
});
|
|
16140
|
-
fit();
|
|
16141
|
-
}, [fit]);
|
|
16142
|
-
const writeln = useCallback((data2) => {
|
|
16143
|
-
var _a;
|
|
16144
|
-
(_a = termInstanceRef.current) == null ? void 0 : _a.writeln(data2);
|
|
16145
|
-
}, []);
|
|
16146
|
-
const onClear = useCallback(() => {
|
|
16147
|
-
var _a;
|
|
16148
|
-
clear();
|
|
16149
|
-
(_a = props.onClear) == null ? void 0 : _a.call(props);
|
|
16150
|
-
}, [clear, props.onClear]);
|
|
16151
|
-
useEffect(() => {
|
|
16152
|
-
const destroy = setupTerminal();
|
|
16153
|
-
return () => {
|
|
16154
|
-
destroy == null ? void 0 : destroy();
|
|
16155
|
-
};
|
|
16156
|
-
}, []);
|
|
16157
|
-
useEffect(() => {
|
|
16158
|
-
const disconnect = connect();
|
|
16159
|
-
return () => {
|
|
16160
|
-
disconnect == null ? void 0 : disconnect();
|
|
16161
|
-
};
|
|
16162
|
-
}, [url, protocols]);
|
|
16163
|
-
useEffect(() => {
|
|
16164
|
-
onSocketStatusChange == null ? void 0 : onSocketStatusChange(socketStatus);
|
|
16165
|
-
}, [socketStatus]);
|
|
16166
|
-
useEffect(() => {
|
|
16167
|
-
if (!containerRef.current)
|
|
16168
|
-
return;
|
|
16169
|
-
const resizeObserver = new ResizeObserver(() => {
|
|
16170
|
-
debouncedFit();
|
|
16171
|
-
});
|
|
16172
|
-
resizeObserver.observe(containerRef.current);
|
|
16173
|
-
return () => resizeObserver.disconnect();
|
|
16174
|
-
}, [debouncedFit]);
|
|
16175
|
-
useImperativeHandle(ref, () => ({
|
|
16176
|
-
clear,
|
|
16177
|
-
setSocketStatus,
|
|
16178
|
-
fit,
|
|
16179
|
-
send,
|
|
16180
|
-
connect,
|
|
16181
|
-
searchNext,
|
|
16182
|
-
searchPrevious,
|
|
16183
|
-
getAllTerminalContents,
|
|
16184
|
-
setOptions,
|
|
16185
|
-
setLoading,
|
|
16186
|
-
setError,
|
|
16187
|
-
writeln
|
|
16188
|
-
}), [send, searchNext, searchPrevious, getAllTerminalContents, fit, clear, connect, setOptions, writeln]);
|
|
16189
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", {
|
|
16190
|
-
ref: containerRef,
|
|
16191
|
-
className: ContainerStyle,
|
|
16192
|
-
children: [!!error ? /* @__PURE__ */ jsxRuntimeExports.jsx(Alert, {
|
|
16193
|
-
style: {
|
|
16194
|
-
margin: 8,
|
|
16195
|
-
marginBottom: 4
|
|
16196
|
-
},
|
|
16197
|
-
message: /* @__PURE__ */ jsxRuntimeExports.jsxs("span", {
|
|
16198
|
-
className: ErrorAlertStyle,
|
|
16199
|
-
children: [t2("dovetail.disconnected"), /* @__PURE__ */ jsxRuntimeExports.jsx(Link$1, {
|
|
16200
|
-
onClick: () => {
|
|
16201
|
-
if (props.onReconnect) {
|
|
16202
|
-
props.onReconnect();
|
|
16203
|
-
} else {
|
|
16204
|
-
connect();
|
|
16205
|
-
}
|
|
16206
|
-
},
|
|
16207
|
-
children: t2("dovetail.reconnect")
|
|
16208
|
-
})]
|
|
16209
|
-
}),
|
|
16210
|
-
type: "error"
|
|
16211
|
-
}) : null, isHideToolbar ? null : /* @__PURE__ */ jsxRuntimeExports.jsx(ShellToolbar, {
|
|
16212
|
-
className: ToolbarStyle,
|
|
16213
|
-
leftSlot: toolbarLeftSlot,
|
|
16214
|
-
searchMatchedTotal,
|
|
16215
|
-
operations,
|
|
16216
|
-
onSearchNext: searchNext,
|
|
16217
|
-
onSearchPre: searchPrevious,
|
|
16218
|
-
onClear,
|
|
16219
|
-
onDownloadLog: downloadContent,
|
|
16220
|
-
onSetFontSize: (fontSize) => {
|
|
16221
|
-
setOptions({
|
|
16222
|
-
fontSize
|
|
16223
|
-
});
|
|
16224
|
-
}
|
|
16225
|
-
}), loading ? loadingElement || /* @__PURE__ */ jsxRuntimeExports.jsxs("div", {
|
|
16226
|
-
className: LoadingStyle,
|
|
16227
|
-
children: [/* @__PURE__ */ jsxRuntimeExports.jsx(Icon$1, {
|
|
16228
|
-
src: Loading24GradientBlueIcon,
|
|
16229
|
-
iconWidth: 24,
|
|
16230
|
-
iconHeight: 24,
|
|
16231
|
-
isRotate: true
|
|
16232
|
-
}), /* @__PURE__ */ jsxRuntimeExports.jsx("span", {
|
|
16233
|
-
className: Typo.Display.d2_bold_title,
|
|
16234
|
-
children: t2("dovetail.connecting")
|
|
16235
|
-
})]
|
|
16236
|
-
}) : null, /* @__PURE__ */ jsxRuntimeExports.jsx("div", {
|
|
16237
|
-
className: cx_default(ShellStyle, className),
|
|
16238
|
-
style: {
|
|
16239
|
-
display: loading ? "none" : "block"
|
|
16240
|
-
},
|
|
16241
|
-
children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", {
|
|
16242
|
-
ref: terminalRef,
|
|
16243
|
-
style: {
|
|
16244
|
-
height: "100%"
|
|
16245
|
-
},
|
|
16246
|
-
children
|
|
16247
|
-
})
|
|
16248
|
-
})]
|
|
16249
|
-
});
|
|
16250
|
-
});
|
|
16251
|
-
function addParam(url, key2, val) {
|
|
16252
|
-
let out = url + (url.includes("?") ? "&" : "?");
|
|
16253
|
-
if (!Array.isArray(val)) {
|
|
16254
|
-
val = [val];
|
|
16255
|
-
}
|
|
16256
|
-
out += val.map((v) => {
|
|
16257
|
-
if (v === null) {
|
|
16258
|
-
return `${encodeURIComponent(key2)}`;
|
|
16259
|
-
} else {
|
|
16260
|
-
return `${encodeURIComponent(key2)}=${encodeURIComponent(v)}`;
|
|
16261
|
-
}
|
|
16262
|
-
}).join("&");
|
|
16263
|
-
return out;
|
|
16264
|
-
}
|
|
16265
|
-
function addParams(url, params) {
|
|
16266
|
-
if (params && typeof params === "object") {
|
|
16267
|
-
Object.keys(params).forEach((key2) => {
|
|
16268
|
-
url = addParam(url, key2, params[key2]);
|
|
16269
|
-
});
|
|
16270
|
-
}
|
|
16271
|
-
return url;
|
|
16272
|
-
}
|
|
16273
|
-
function base64Encode(str, alphabet = "normal") {
|
|
16274
|
-
let buf;
|
|
16275
|
-
if (str === null || typeof str === "undefined") {
|
|
16276
|
-
return str;
|
|
16277
|
-
}
|
|
16278
|
-
if (typeof Buffer2.from === "function" && Buffer2.from !== Uint8Array.from) {
|
|
16279
|
-
buf = Buffer2.from(str);
|
|
16280
|
-
} else {
|
|
16281
|
-
buf = new Buffer2(str);
|
|
16282
|
-
}
|
|
16283
|
-
if (alphabet === "url") {
|
|
16284
|
-
const m = {
|
|
16285
|
-
"+": "-",
|
|
16286
|
-
"/": "_"
|
|
16287
|
-
};
|
|
16288
|
-
return buf.toString("base64").replace(/[+/]|=+$/g, (char) => m[char] || "");
|
|
16289
|
-
}
|
|
16290
|
-
return buf.toString("base64");
|
|
16291
|
-
}
|
|
16292
|
-
function base64DecodeToBuffer(str) {
|
|
16293
|
-
if (str === null || typeof str === "undefined") {
|
|
16294
|
-
return str;
|
|
16295
|
-
}
|
|
16296
|
-
if (typeof Buffer2.from === "function" && Buffer2.from !== Uint8Array.from) {
|
|
16297
|
-
return Buffer2.from(str, "base64");
|
|
16298
|
-
} else {
|
|
16299
|
-
return new Buffer2(str, "base64");
|
|
16300
|
-
}
|
|
16301
|
-
}
|
|
16302
|
-
function base64Decode(str) {
|
|
16303
|
-
return !str ? str : base64DecodeToBuffer(str.replace(/[-_]/g, (char) => char === "-" ? "+" : "/")).toString();
|
|
16304
|
-
}
|
|
16305
|
-
const BACKUP_SHELLS = [
|
|
16306
|
-
"windows",
|
|
16307
|
-
"linux"
|
|
16308
|
-
/* Linux */
|
|
16309
|
-
];
|
|
16310
|
-
const COMMANDS = {
|
|
16311
|
-
[
|
|
16312
|
-
"linux"
|
|
16313
|
-
/* Linux */
|
|
16314
|
-
]: [
|
|
16315
|
-
"/bin/sh",
|
|
16316
|
-
"-c",
|
|
16317
|
-
'TERM=xterm-256color; export TERM; [ -x /bin/bash ] && ([ -x /usr/bin/script ] && /usr/bin/script -q -c "/bin/bash" /dev/null || exec /bin/bash) || exec /bin/sh'
|
|
16318
|
-
],
|
|
16319
|
-
[
|
|
16320
|
-
"windows"
|
|
16321
|
-
/* Windows */
|
|
16322
|
-
]: ["cmd"]
|
|
16323
|
-
};
|
|
16324
|
-
const PodShell = React__default.forwardRef(function PodShell2(props, ref) {
|
|
16325
|
-
const { pod: pod2, basePath, onSocketStatusChange } = props;
|
|
16326
|
-
const id = pod2.id;
|
|
16327
|
-
const [namespace2, name2] = useMemo(() => id.split("/"), [id]);
|
|
16328
|
-
const shellRef = useRef(null);
|
|
16329
|
-
const errorMsgRef = useRef("");
|
|
16330
|
-
const [osIndex, setOsIndex] = useState(0);
|
|
16331
|
-
const [container2, setContainer] = useState("");
|
|
16332
|
-
const containers2 = useMemo(() => {
|
|
16333
|
-
var _a, _b;
|
|
16334
|
-
return (((_a = pod2 == null ? void 0 : pod2._rawYaml.status) == null ? void 0 : _a.containerStatuses) || []).concat(((_b = pod2 == null ? void 0 : pod2._rawYaml.status) == null ? void 0 : _b.initContainerStatuses) || []).map((containerStatus) => containerStatus.name);
|
|
16335
|
-
}, [pod2]);
|
|
16336
|
-
const url = useMemo(() => {
|
|
16337
|
-
const os = BACKUP_SHELLS[osIndex];
|
|
16338
|
-
const protocol2 = location.protocol.includes("https") ? "wss" : "ws";
|
|
16339
|
-
const url2 = container2 && os ? addParams(
|
|
16340
|
-
`${protocol2}://${location.host}${basePath}/api/v1/namespaces/${namespace2}/pods/${name2}/exec`,
|
|
16341
|
-
{
|
|
16342
|
-
container: container2,
|
|
16343
|
-
stdout: "true",
|
|
16344
|
-
stdin: "true",
|
|
16345
|
-
stderr: "true",
|
|
16346
|
-
tty: "true",
|
|
16347
|
-
command: COMMANDS[
|
|
16348
|
-
os || "linux"
|
|
16349
|
-
/* Linux */
|
|
16350
|
-
]
|
|
16351
|
-
}
|
|
16352
|
-
) : "";
|
|
16353
|
-
return url2;
|
|
16354
|
-
}, [container2, name2, namespace2, osIndex, basePath]);
|
|
16355
|
-
const onSocketClose = useCallback((socket, term) => {
|
|
16356
|
-
var _a, _b;
|
|
16357
|
-
if (errorMsgRef.current) {
|
|
16358
|
-
if (osIndex + 1 < BACKUP_SHELLS.length) {
|
|
16359
|
-
setOsIndex(osIndex + 1);
|
|
16360
|
-
} else {
|
|
16361
|
-
term == null ? void 0 : term.writeln(`\x1B[38;2;255;82;82m${errorMsgRef.current}`);
|
|
16362
|
-
(_a = shellRef.current) == null ? void 0 : _a.setSocketStatus(SocketStatus.Disconnected);
|
|
16363
|
-
errorMsgRef.current = "";
|
|
16364
|
-
}
|
|
16365
|
-
} else {
|
|
16366
|
-
(_b = shellRef.current) == null ? void 0 : _b.setSocketStatus(SocketStatus.Disconnected);
|
|
16367
|
-
}
|
|
16368
|
-
}, [osIndex]);
|
|
16369
|
-
const onSocketMessage = useCallback((e2, socket, term) => {
|
|
16370
|
-
const type2 = e2.data.substr(0, 1);
|
|
16371
|
-
const msg = base64Decode(e2.data.substr(1));
|
|
16372
|
-
if (`${type2}` === "1") {
|
|
16373
|
-
term == null ? void 0 : term.write(msg);
|
|
16374
|
-
} else {
|
|
16375
|
-
if (`${type2}` === "3") {
|
|
16376
|
-
errorMsgRef.current = msg;
|
|
16377
|
-
}
|
|
16378
|
-
}
|
|
16379
|
-
}, []);
|
|
16380
|
-
const fit = useCallback(({ rows, cols }) => {
|
|
16381
|
-
var _a;
|
|
16382
|
-
const message2 = `${"4"}${base64Encode(
|
|
16383
|
-
JSON.stringify({
|
|
16384
|
-
Width: Math.floor(cols),
|
|
16385
|
-
Height: Math.floor(rows)
|
|
16386
|
-
})
|
|
16387
|
-
)}`;
|
|
16388
|
-
(_a = shellRef.current) == null ? void 0 : _a.send(message2);
|
|
16389
|
-
}, []);
|
|
16390
|
-
const encode = useCallback((input) => `${"0"}${base64Encode(input)}`, []);
|
|
16391
|
-
useEffect(() => {
|
|
16392
|
-
if (!container2 && containers2.length) {
|
|
16393
|
-
setContainer(containers2[0]);
|
|
16394
|
-
}
|
|
16395
|
-
}, [containers2, container2]);
|
|
16396
|
-
useImperativeHandle(ref, () => ({
|
|
16397
|
-
getAllTerminalContents: () => {
|
|
16398
|
-
var _a;
|
|
16399
|
-
return ((_a = shellRef.current) == null ? void 0 : _a.getAllTerminalContents()) || [];
|
|
16400
|
-
}
|
|
16401
|
-
}), []);
|
|
16402
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
16403
|
-
Shell,
|
|
16404
|
-
{
|
|
16405
|
-
ref: shellRef,
|
|
16406
|
-
url,
|
|
16407
|
-
protocols: "base64.channel.k8s.io",
|
|
16408
|
-
encode,
|
|
16409
|
-
fit,
|
|
16410
|
-
toolbarLeftSlot: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
16411
|
-
Select,
|
|
16412
|
-
{
|
|
16413
|
-
input: {
|
|
16414
|
-
value: container2,
|
|
16415
|
-
onChange(value2) {
|
|
16416
|
-
setContainer(value2);
|
|
16417
|
-
}
|
|
16418
|
-
},
|
|
16419
|
-
style: {
|
|
16420
|
-
width: "256px"
|
|
16421
|
-
},
|
|
16422
|
-
size: "small",
|
|
16423
|
-
children: containers2.map((containerName) => /* @__PURE__ */ jsxRuntimeExports.jsx(AntdOption, { value: containerName, label: containerName, children: containerName }, containerName))
|
|
16424
|
-
}
|
|
16425
|
-
),
|
|
16426
|
-
onSocketMessage,
|
|
16427
|
-
onSocketClose,
|
|
16428
|
-
onSocketStatusChange
|
|
16429
|
-
}
|
|
16430
|
-
);
|
|
16431
|
-
});
|
|
14800
|
+
const PodShell = lazy(
|
|
14801
|
+
() => import("./PodShell-ba204cde.js").then((module) => ({ default: module.PodShell }))
|
|
14802
|
+
);
|
|
16432
14803
|
function PodShellModal(props) {
|
|
16433
14804
|
const { pod: pod2 } = props;
|
|
16434
14805
|
const { t: t2 } = useTranslation();
|
|
@@ -16450,14 +14821,14 @@ function PodShellModal(props) {
|
|
|
16450
14821
|
destroyOnClose: true,
|
|
16451
14822
|
fullscreen: true,
|
|
16452
14823
|
visible: true,
|
|
16453
|
-
children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
14824
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx(Suspense, { fallback: /* @__PURE__ */ jsxRuntimeExports.jsx(Loading, {}), children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
16454
14825
|
PodShell,
|
|
16455
14826
|
{
|
|
16456
14827
|
pod: pod2,
|
|
16457
14828
|
onSocketStatusChange: setSocketStatus,
|
|
16458
14829
|
basePath: (globalStore == null ? void 0 : globalStore.apiUrl) || ""
|
|
16459
14830
|
}
|
|
16460
|
-
)
|
|
14831
|
+
) })
|
|
16461
14832
|
}
|
|
16462
14833
|
);
|
|
16463
14834
|
}
|
|
@@ -17720,8 +16091,8 @@ const PlainCodeStyle = "pqch97v";
|
|
|
17720
16091
|
const ErrorMsgStyle = "eh2qjnl";
|
|
17721
16092
|
const ErrorWrapperStyle = "e19q2bnp";
|
|
17722
16093
|
const YamlEditorStyle = "y16u5v3w";
|
|
17723
|
-
const MonacoYamlEditor = React__default.lazy(() => import("./MonacoYamlEditor-
|
|
17724
|
-
const MonacoYamlDiffEditor = React__default.lazy(() => import("./MonacoYamlDiffEditor-
|
|
16094
|
+
const MonacoYamlEditor = React__default.lazy(() => import("./MonacoYamlEditor-c8ef62dc.js"));
|
|
16095
|
+
const MonacoYamlDiffEditor = React__default.lazy(() => import("./MonacoYamlDiffEditor-7de94ad2.js"));
|
|
17725
16096
|
const YamlEditorComponent = forwardRef(
|
|
17726
16097
|
function YamlEditorComponent2(props, ref) {
|
|
17727
16098
|
const {
|
|
@@ -20352,269 +18723,265 @@ const relationPlugin = new RelationPlugin();
|
|
|
20352
18723
|
const ProviderPlugins = [relationPlugin, modelPlugin];
|
|
20353
18724
|
const dovetailRefineI18n = i18n;
|
|
20354
18725
|
export {
|
|
20355
|
-
|
|
18726
|
+
useGlobalStore as $,
|
|
20356
18727
|
AgeColumnRenderer as A,
|
|
20357
|
-
|
|
18728
|
+
PVCapacityColumnRenderer as B,
|
|
20358
18729
|
CommonSorter as C,
|
|
20359
18730
|
DurationColumnRenderer as D,
|
|
20360
|
-
|
|
20361
|
-
|
|
20362
|
-
|
|
20363
|
-
|
|
18731
|
+
PVCStorageColumnRenderer as E,
|
|
18732
|
+
PVRefColumnRenderer as F,
|
|
18733
|
+
PVStorageClassColumnRenderer as G,
|
|
18734
|
+
PVPhaseColumnRenderer as H,
|
|
20364
18735
|
IngressRulesColumnRenderer as I,
|
|
20365
|
-
|
|
20366
|
-
|
|
20367
|
-
|
|
20368
|
-
|
|
18736
|
+
PVCRefColumnRenderer as J,
|
|
18737
|
+
PVCSIRefColumnRenderer as K,
|
|
18738
|
+
PVVolumeModeColumnRenderer as L,
|
|
18739
|
+
PVAccessModeColumnRenderer as M,
|
|
20369
18740
|
NameColumnRenderer as N,
|
|
20370
|
-
|
|
18741
|
+
IsDefaultSCColumnRenderer as O,
|
|
20371
18742
|
PlainTextNameColumnRenderer as P,
|
|
20372
|
-
|
|
18743
|
+
SCReclaimPolicyColumnRenderer as Q,
|
|
20373
18744
|
ReplicasColumnRenderer as R,
|
|
20374
18745
|
StateDisplayColumnRenderer as S,
|
|
20375
|
-
|
|
20376
|
-
|
|
20377
|
-
|
|
18746
|
+
SCAllowExpandColumnRenderer as T,
|
|
18747
|
+
ColumnKeys as U,
|
|
18748
|
+
addDefaultRenderToColumns as V,
|
|
20378
18749
|
WorkloadImageColumnRenderer as W,
|
|
20379
|
-
|
|
18750
|
+
useEagleTable as X,
|
|
20380
18751
|
YamlEditorStyle as Y,
|
|
20381
|
-
|
|
20382
|
-
|
|
18752
|
+
useDownloadYAML as Z,
|
|
18753
|
+
useEdit as _,
|
|
20383
18754
|
useApiGroupSchema as a,
|
|
20384
|
-
|
|
20385
|
-
|
|
20386
|
-
|
|
20387
|
-
|
|
20388
|
-
|
|
20389
|
-
|
|
20390
|
-
|
|
20391
|
-
|
|
20392
|
-
|
|
20393
|
-
|
|
20394
|
-
|
|
20395
|
-
|
|
20396
|
-
|
|
20397
|
-
|
|
20398
|
-
|
|
20399
|
-
|
|
20400
|
-
|
|
20401
|
-
|
|
20402
|
-
|
|
20403
|
-
|
|
20404
|
-
|
|
20405
|
-
|
|
20406
|
-
|
|
20407
|
-
|
|
20408
|
-
|
|
20409
|
-
|
|
20410
|
-
|
|
20411
|
-
|
|
20412
|
-
|
|
20413
|
-
|
|
20414
|
-
|
|
20415
|
-
|
|
20416
|
-
|
|
20417
|
-
|
|
20418
|
-
|
|
20419
|
-
|
|
20420
|
-
|
|
20421
|
-
|
|
20422
|
-
|
|
20423
|
-
|
|
20424
|
-
|
|
20425
|
-
|
|
20426
|
-
|
|
20427
|
-
|
|
20428
|
-
|
|
20429
|
-
|
|
20430
|
-
|
|
20431
|
-
|
|
20432
|
-
|
|
20433
|
-
|
|
20434
|
-
|
|
20435
|
-
|
|
20436
|
-
|
|
20437
|
-
|
|
20438
|
-
|
|
20439
|
-
|
|
20440
|
-
|
|
20441
|
-
|
|
20442
|
-
|
|
20443
|
-
|
|
20444
|
-
|
|
20445
|
-
|
|
20446
|
-
|
|
20447
|
-
|
|
18755
|
+
ServiceInnerClusterAccessField as a$,
|
|
18756
|
+
useOpenForm as a0,
|
|
18757
|
+
index as a1,
|
|
18758
|
+
WidgetErrorContent as a2,
|
|
18759
|
+
Breadcrumb as a3,
|
|
18760
|
+
NameInputWidget as a4,
|
|
18761
|
+
dnsSubDomainRules as a5,
|
|
18762
|
+
rfc1123LabelRules as a6,
|
|
18763
|
+
rfc1035LabelRules as a7,
|
|
18764
|
+
NamespaceSelectWidget as a8,
|
|
18765
|
+
namespaceRules as a9,
|
|
18766
|
+
KeyValue as aA,
|
|
18767
|
+
KeyValueAnnotation as aB,
|
|
18768
|
+
KeyValueSecret as aC,
|
|
18769
|
+
Separator as aD,
|
|
18770
|
+
YamlEditorComponent as aE,
|
|
18771
|
+
DeleteButton as aF,
|
|
18772
|
+
Layout as aG,
|
|
18773
|
+
AreaType as aH,
|
|
18774
|
+
ImageField as aI,
|
|
18775
|
+
ReplicaField as aJ,
|
|
18776
|
+
ConditionsField as aK,
|
|
18777
|
+
NodeTaintsField as aL,
|
|
18778
|
+
PodsField as aM,
|
|
18779
|
+
JobsField as aN,
|
|
18780
|
+
DataField as aO,
|
|
18781
|
+
SecretDataField as aP,
|
|
18782
|
+
StartTimeField as aQ,
|
|
18783
|
+
ServiceTypeField as aR,
|
|
18784
|
+
ClusterIpField as aS,
|
|
18785
|
+
SessionAffinityField as aT,
|
|
18786
|
+
ServicePodsField as aU,
|
|
18787
|
+
IngressRulesTableTabField as aV,
|
|
18788
|
+
EventsTableTabField as aW,
|
|
18789
|
+
NamespaceField as aX,
|
|
18790
|
+
AgeField as aY,
|
|
18791
|
+
LabelsField as aZ,
|
|
18792
|
+
AnnotationsField as a_,
|
|
18793
|
+
KeyValueListWidget as aa,
|
|
18794
|
+
MetadataForm as ab,
|
|
18795
|
+
PageShow as ac,
|
|
18796
|
+
Time as ad,
|
|
18797
|
+
ConditionsTable as ae,
|
|
18798
|
+
FormErrorAlert as af,
|
|
18799
|
+
PodContainersTable as ag,
|
|
18800
|
+
WorkloadDropdown as ah,
|
|
18801
|
+
ReplicasDropdown as ai,
|
|
18802
|
+
PodDropdown as aj,
|
|
18803
|
+
CreateButton as ak,
|
|
18804
|
+
ImageNames as al,
|
|
18805
|
+
ResourceList as am,
|
|
18806
|
+
ResourceShow as an,
|
|
18807
|
+
ResourceForm as ao,
|
|
18808
|
+
ResourceCRUD as ap,
|
|
18809
|
+
WorkloadPodsTable as aq,
|
|
18810
|
+
CronJobDropdown as ar,
|
|
18811
|
+
K8sDropdown as as,
|
|
18812
|
+
EditLabelDropdownMenuItem as at,
|
|
18813
|
+
EditAnnotationDropdownMenuItem as au,
|
|
18814
|
+
EditNodeTaintDropdownMenuItem as av,
|
|
18815
|
+
ResourceUsageBar as aw,
|
|
18816
|
+
WorkloadReplicasForm as ax,
|
|
18817
|
+
WorkloadReplicas as ay,
|
|
18818
|
+
CronjobJobsTable as az,
|
|
20448
18819
|
useSchema as b,
|
|
20449
|
-
|
|
20450
|
-
|
|
20451
|
-
|
|
20452
|
-
|
|
20453
|
-
|
|
20454
|
-
|
|
20455
|
-
|
|
20456
|
-
|
|
20457
|
-
|
|
20458
|
-
|
|
20459
|
-
|
|
20460
|
-
|
|
20461
|
-
|
|
20462
|
-
|
|
20463
|
-
|
|
20464
|
-
|
|
20465
|
-
|
|
20466
|
-
|
|
20467
|
-
|
|
20468
|
-
|
|
20469
|
-
|
|
20470
|
-
|
|
20471
|
-
|
|
20472
|
-
|
|
20473
|
-
|
|
20474
|
-
|
|
20475
|
-
|
|
20476
|
-
|
|
20477
|
-
|
|
20478
|
-
|
|
20479
|
-
|
|
20480
|
-
|
|
20481
|
-
|
|
20482
|
-
|
|
20483
|
-
|
|
20484
|
-
|
|
20485
|
-
|
|
20486
|
-
|
|
20487
|
-
|
|
20488
|
-
|
|
20489
|
-
|
|
20490
|
-
|
|
20491
|
-
|
|
20492
|
-
|
|
20493
|
-
|
|
20494
|
-
|
|
20495
|
-
|
|
20496
|
-
|
|
20497
|
-
|
|
20498
|
-
|
|
20499
|
-
|
|
20500
|
-
|
|
20501
|
-
|
|
20502
|
-
|
|
20503
|
-
|
|
20504
|
-
|
|
20505
|
-
|
|
20506
|
-
|
|
20507
|
-
|
|
20508
|
-
|
|
20509
|
-
|
|
20510
|
-
|
|
20511
|
-
|
|
20512
|
-
|
|
20513
|
-
|
|
20514
|
-
|
|
20515
|
-
|
|
20516
|
-
|
|
20517
|
-
|
|
20518
|
-
|
|
20519
|
-
|
|
20520
|
-
|
|
20521
|
-
|
|
20522
|
-
|
|
20523
|
-
|
|
20524
|
-
|
|
20525
|
-
|
|
20526
|
-
|
|
20527
|
-
|
|
20528
|
-
|
|
20529
|
-
|
|
20530
|
-
|
|
20531
|
-
|
|
20532
|
-
|
|
20533
|
-
|
|
20534
|
-
|
|
20535
|
-
|
|
20536
|
-
|
|
20537
|
-
|
|
20538
|
-
|
|
20539
|
-
|
|
20540
|
-
|
|
20541
|
-
|
|
20542
|
-
|
|
20543
|
-
|
|
20544
|
-
|
|
20545
|
-
|
|
20546
|
-
|
|
20547
|
-
|
|
20548
|
-
|
|
20549
|
-
|
|
20550
|
-
|
|
20551
|
-
|
|
20552
|
-
|
|
20553
|
-
|
|
20554
|
-
|
|
20555
|
-
|
|
20556
|
-
|
|
20557
|
-
|
|
20558
|
-
|
|
20559
|
-
|
|
20560
|
-
|
|
20561
|
-
|
|
20562
|
-
|
|
20563
|
-
|
|
20564
|
-
|
|
20565
|
-
|
|
20566
|
-
|
|
20567
|
-
|
|
20568
|
-
|
|
20569
|
-
|
|
20570
|
-
|
|
20571
|
-
|
|
20572
|
-
|
|
20573
|
-
|
|
20574
|
-
|
|
20575
|
-
|
|
20576
|
-
|
|
20577
|
-
|
|
18820
|
+
Tags as b$,
|
|
18821
|
+
ServiceOutClusterAccessField as b0,
|
|
18822
|
+
PodSelectorField as b1,
|
|
18823
|
+
PortsTableField as b2,
|
|
18824
|
+
DurationField as b3,
|
|
18825
|
+
StorageClassProvisionerField as b4,
|
|
18826
|
+
StorageClassPvField as b5,
|
|
18827
|
+
PVCapacityField as b6,
|
|
18828
|
+
PVCStorageField as b7,
|
|
18829
|
+
PVRefField as b8,
|
|
18830
|
+
PVStorageClassField as b9,
|
|
18831
|
+
NetworkPolicyEgressRulesGroup as bA,
|
|
18832
|
+
StorageClassPvGroup as bB,
|
|
18833
|
+
ResourceTableGroup as bC,
|
|
18834
|
+
ShowGroupComponent as bD,
|
|
18835
|
+
ShowContent as bE,
|
|
18836
|
+
DeleteManyButton as bF,
|
|
18837
|
+
ListPage as bG,
|
|
18838
|
+
StateTag as bH,
|
|
18839
|
+
DrawerShow as bI,
|
|
18840
|
+
Menu as bJ,
|
|
18841
|
+
Table as bK,
|
|
18842
|
+
EditButton as bL,
|
|
18843
|
+
ReferenceLink as bM,
|
|
18844
|
+
ResourceLink as bN,
|
|
18845
|
+
NS_STORE_KEY as bO,
|
|
18846
|
+
ALL_NS as bP,
|
|
18847
|
+
useNamespacesFilter as bQ,
|
|
18848
|
+
NamespacesFilter as bR,
|
|
18849
|
+
FormModal as bS,
|
|
18850
|
+
renderCommonFormFiled as bT,
|
|
18851
|
+
RefineFormContent as bU,
|
|
18852
|
+
RefineFormPage as bV,
|
|
18853
|
+
SchemaStrategy as bW,
|
|
18854
|
+
YamlForm as bX,
|
|
18855
|
+
useRefineForm as bY,
|
|
18856
|
+
ServiceInClusterAccessComponent as bZ,
|
|
18857
|
+
ServiceOutClusterAccessComponent as b_,
|
|
18858
|
+
PVPhaseField as ba,
|
|
18859
|
+
PVVolumeModeField as bb,
|
|
18860
|
+
PVAccessModeField as bc,
|
|
18861
|
+
PVCPodsField as bd,
|
|
18862
|
+
PVCRefField as be,
|
|
18863
|
+
PVCSIRefField as bf,
|
|
18864
|
+
IsDefaultSCField as bg,
|
|
18865
|
+
SCReclaimPolicyField as bh,
|
|
18866
|
+
IsSCAllowVolumeExpansionField as bi,
|
|
18867
|
+
ResourceTableField as bj,
|
|
18868
|
+
EventsTab as bk,
|
|
18869
|
+
PodLogTab as bl,
|
|
18870
|
+
BasicGroup as bm,
|
|
18871
|
+
PodsGroup as bn,
|
|
18872
|
+
PodContainersGroup as bo,
|
|
18873
|
+
ServicePodsGroup as bp,
|
|
18874
|
+
PVCPodsGroup as bq,
|
|
18875
|
+
ConditionsGroup as br,
|
|
18876
|
+
NodeTaintsGroup as bs,
|
|
18877
|
+
SecretDataGroup as bt,
|
|
18878
|
+
JobsGroup as bu,
|
|
18879
|
+
IngressRulesGroup as bv,
|
|
18880
|
+
PodSelectorGroup as bw,
|
|
18881
|
+
PortsGroup as bx,
|
|
18882
|
+
DataGroup as by,
|
|
18883
|
+
NetworkPolicyIngressRulesGroup as bz,
|
|
18884
|
+
useDeleteModal as c,
|
|
18885
|
+
NodeRole as c$,
|
|
18886
|
+
TextTags as c0,
|
|
18887
|
+
PodLog as c1,
|
|
18888
|
+
NetworkPolicyRulesViewer as c2,
|
|
18889
|
+
PVVolumeModeDisplay as c3,
|
|
18890
|
+
Tabs as c4,
|
|
18891
|
+
ResourceSelect as c5,
|
|
18892
|
+
PodShellModal as c6,
|
|
18893
|
+
PodShell as c7,
|
|
18894
|
+
ResourceTable as c8,
|
|
18895
|
+
ErrorWrapper as c9,
|
|
18896
|
+
PV_INIT_VALUE as cA,
|
|
18897
|
+
PVC_INIT_VALUE as cB,
|
|
18898
|
+
ResourceState as cC,
|
|
18899
|
+
AccessControlAuth as cD,
|
|
18900
|
+
Dovetail as cE,
|
|
18901
|
+
RESOURCE_GROUP as cF,
|
|
18902
|
+
FormContainerType as cG,
|
|
18903
|
+
FormType as cH,
|
|
18904
|
+
FormMode as cI,
|
|
18905
|
+
ComponentContext as cJ,
|
|
18906
|
+
GlobalStoreContext as cK,
|
|
18907
|
+
ConfigsContext as cL,
|
|
18908
|
+
IngressModel as cM,
|
|
18909
|
+
NetworkPolicyModel as cN,
|
|
18910
|
+
JobModel as cO,
|
|
18911
|
+
WorkloadModel as cP,
|
|
18912
|
+
WorkloadBaseModel as cQ,
|
|
18913
|
+
PodModel as cR,
|
|
18914
|
+
PodMetricsModel as cS,
|
|
18915
|
+
ResourceModel as cT,
|
|
18916
|
+
CronJobModel as cU,
|
|
18917
|
+
EventModel as cV,
|
|
18918
|
+
DeploymentModel as cW,
|
|
18919
|
+
DaemonSetModel as cX,
|
|
18920
|
+
StatefulSetModel as cY,
|
|
18921
|
+
ServiceTypeEnum as cZ,
|
|
18922
|
+
ServiceModel as c_,
|
|
18923
|
+
ErrorContentType as ca,
|
|
18924
|
+
BASE_INIT_VALUE as cb,
|
|
18925
|
+
DEPLOYMENT_INIT_VALUE as cc,
|
|
18926
|
+
CRONJOB_INIT_VALUE as cd,
|
|
18927
|
+
DAEMONSET_INIT_VALUE as ce,
|
|
18928
|
+
JOB_INIT_VALUE as cf,
|
|
18929
|
+
STATEFULSET_INIT_VALUE as cg,
|
|
18930
|
+
POD_INIT_VALUE as ch,
|
|
18931
|
+
SERVICE_CLUSTER_IP_INIT_VALUE as ci,
|
|
18932
|
+
SERVICE_NODE_PORT_INIT_VALUE as cj,
|
|
18933
|
+
SERVICE_LOAD_BALANCER_INIT_VALUE as ck,
|
|
18934
|
+
SERVICE_EXTERNAL_NAME_INIT_VALUE as cl,
|
|
18935
|
+
SERVICE_HEADLESS_INIT_VALUE as cm,
|
|
18936
|
+
INGRESS_INIT_VALUE as cn,
|
|
18937
|
+
NETWORK_POLICY_INIT_VALUE as co,
|
|
18938
|
+
CONFIG_MAP_INIT_VALUE as cp,
|
|
18939
|
+
SERVER_INSTANCE_INIT_VALUE as cq,
|
|
18940
|
+
REDEPLOY_TIMESTAMP_KEY as cr,
|
|
18941
|
+
SECRET_OPAQUE_INIT_VALUE as cs,
|
|
18942
|
+
SECRET_IMAGE_REPO_INIT_VALUE as ct,
|
|
18943
|
+
SECRET_BASIC_AUTH_INIT_VALUE as cu,
|
|
18944
|
+
SECRET_SSH_AUTH_INIT_VALUE as cv,
|
|
18945
|
+
SECRET_TLS_INIT_VALUE as cw,
|
|
18946
|
+
SECRET_CUSTOM_INIT_VALUE as cx,
|
|
18947
|
+
NODE_INIT_VALUE as cy,
|
|
18948
|
+
STORAGE_CLASS_INIT_VALUE as cz,
|
|
20578
18949
|
dovetailRefineI18n as d,
|
|
20579
|
-
|
|
20580
|
-
|
|
20581
|
-
|
|
20582
|
-
|
|
20583
|
-
|
|
20584
|
-
|
|
20585
|
-
|
|
20586
|
-
|
|
20587
|
-
|
|
20588
|
-
|
|
20589
|
-
|
|
20590
|
-
|
|
20591
|
-
|
|
20592
|
-
|
|
20593
|
-
|
|
20594
|
-
|
|
20595
|
-
|
|
20596
|
-
|
|
20597
|
-
|
|
20598
|
-
|
|
20599
|
-
|
|
20600
|
-
|
|
20601
|
-
|
|
20602
|
-
|
|
20603
|
-
|
|
20604
|
-
|
|
20605
|
-
|
|
20606
|
-
|
|
20607
|
-
ServiceTypeColumnRenderer as n,
|
|
20608
|
-
ServiceInClusterAccessTitle as o,
|
|
20609
|
-
ServiceInClusterAccessColumnRenderer as p,
|
|
20610
|
-
ServiceOutClusterAccessTitle as q,
|
|
18950
|
+
NodeModel as d0,
|
|
18951
|
+
StorageClassModel as d1,
|
|
18952
|
+
PersistentVolumeModel as d2,
|
|
18953
|
+
PersistentVolumeClaimModel as d3,
|
|
18954
|
+
ProviderPlugins as d4,
|
|
18955
|
+
ModelPlugin as d5,
|
|
18956
|
+
modelPlugin as d6,
|
|
18957
|
+
RelationPlugin as d7,
|
|
18958
|
+
relationPlugin as d8,
|
|
18959
|
+
generateValueFromSchema as d9,
|
|
18960
|
+
generateSchemaTypeValue as da,
|
|
18961
|
+
resolveRef as db,
|
|
18962
|
+
getApiVersion as dc,
|
|
18963
|
+
pruneBeforeEdit as dd,
|
|
18964
|
+
matchSelector as de,
|
|
18965
|
+
useDeleteModalOnly as e,
|
|
18966
|
+
useFailedModal as f,
|
|
18967
|
+
NameSpaceColumnRenderer as g,
|
|
18968
|
+
WorkloadRestartsColumnRenderer as h,
|
|
18969
|
+
NodeNameColumnRenderer as i,
|
|
18970
|
+
RestartCountColumnRenderer as j,
|
|
18971
|
+
CompletionsCountColumnRenderer as k,
|
|
18972
|
+
ServiceTypeColumnRenderer as l,
|
|
18973
|
+
ServiceInClusterAccessTitle as m,
|
|
18974
|
+
ServiceInClusterAccessColumnRenderer as n,
|
|
18975
|
+
ServiceOutClusterAccessTitle as o,
|
|
18976
|
+
ServiceOutClusterAccessColumnRenderer as p,
|
|
18977
|
+
PodWorkloadColumnRenderer as q,
|
|
20611
18978
|
routerProvider as r,
|
|
20612
|
-
|
|
20613
|
-
|
|
18979
|
+
IngressDefaultBackendColumnRenderer as s,
|
|
18980
|
+
IngressClassColumnRenderer as t,
|
|
20614
18981
|
useNamespaceRefineFilter as u,
|
|
20615
|
-
|
|
20616
|
-
|
|
20617
|
-
|
|
20618
|
-
|
|
20619
|
-
|
|
18982
|
+
IngressTlsColumnRenderer as v,
|
|
18983
|
+
PodContainersNumColumnRenderer as w,
|
|
18984
|
+
DataKeysColumnRenderer as x,
|
|
18985
|
+
PortMappingColumnRenderer as y,
|
|
18986
|
+
ProvisionerColumnRenderer as z
|
|
20620
18987
|
};
|