@dovetail-v2/refine 0.0.66 → 0.1.0-test.2
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-bcc9a5fe.js → MonacoYamlDiffEditor-e737ae8d.js} +1 -1
- package/dist/{index-4ac6ee9d.js → index-0c7bfb69.js} +597 -454
- package/dist/refine.js +117 -110
- package/dist/refine.umd.cjs +489 -346
- package/lib/src/components/ListPage/index.d.ts +1 -0
- package/lib/src/components/ResourceFiledDisplays.d.ts +7 -0
- package/lib/src/components/ShowContent/fields.d.ts +7 -2
- package/lib/src/components/index.d.ts +1 -0
- package/lib/src/hooks/useEagleTable/columns.d.ts +6 -6
- package/lib/src/i18n.d.ts +26 -1
- package/lib/src/locales/en-US/index.d.ts +14 -0
- package/lib/src/locales/zh-CN/index.d.ts +12 -1
- package/lib/src/models/cronjob-model.d.ts +0 -1
- package/lib/src/models/daemonset-model.d.ts +0 -1
- package/lib/src/models/deployment-model.d.ts +0 -1
- package/lib/src/models/event-model.d.ts +0 -1
- package/lib/src/models/ingress-model.d.ts +0 -1
- package/lib/src/models/job-model.d.ts +0 -1
- package/lib/src/models/network-policy-model.d.ts +0 -1
- package/lib/src/models/node-model.d.ts +0 -1
- package/lib/src/models/persistent-volume-claim.d.ts +0 -1
- package/lib/src/models/persistent-volume.d.ts +0 -1
- package/lib/src/models/pod-metrics-model.d.ts +0 -1
- package/lib/src/models/pod-model.d.ts +0 -1
- package/lib/src/models/resource-model.d.ts +1 -1
- package/lib/src/models/service-model.d.ts +0 -1
- package/lib/src/models/statefulset-model.d.ts +0 -1
- package/lib/src/models/storage-class.d.ts +0 -1
- package/lib/src/models/workload-base-model.d.ts +0 -1
- package/lib/src/models/workload-model.d.ts +0 -1
- package/lib/src/pages/persistentvolumeclaims/index.d.ts +4 -0
- package/lib/src/pages/persistentvolumes/index.d.ts +3 -18
- package/package.json +5 -5
- package/lib/src/App.js +0 -91
- package/lib/src/Dovetail.js +0 -45
- package/lib/src/components/Breadcrumb/index.js +0 -20
- package/lib/src/components/ConditionsTable/ConditionsTable.js +0 -56
- package/lib/src/components/ConditionsTable/index.js +0 -1
- package/lib/src/components/CreateButton/index.js +0 -10
- package/lib/src/components/CronJobDropdown/index.js +0 -26
- package/lib/src/components/CronjobJobsTable/index.js +0 -49
- package/lib/src/components/DeleteButton/index.js +0 -13
- package/lib/src/components/DeleteManyButton/index.js +0 -16
- package/lib/src/components/DrawerShow/DrawerShow.js +0 -13
- package/lib/src/components/DrawerShow/index.js +0 -1
- package/lib/src/components/EditButton/index.js +0 -13
- package/lib/src/components/EditField/index.js +0 -47
- package/lib/src/components/ErrorContent/index.js +0 -36
- package/lib/src/components/EventsTable/EventsTable.js +0 -59
- package/lib/src/components/EventsTable/index.js +0 -1
- package/lib/src/components/Form/KeyValueListWidget.d.ts +0 -6
- package/lib/src/components/Form/KeyValueListWidget.js +0 -56
- package/lib/src/components/Form/MetadataForm.d.ts +0 -2
- package/lib/src/components/Form/MetadataForm.js +0 -9
- package/lib/src/components/Form/NameInputWidget.d.ts +0 -51
- package/lib/src/components/Form/NameInputWidget.js +0 -50
- package/lib/src/components/Form/NamespaceSelectWidget.d.ts +0 -9
- package/lib/src/components/Form/NamespaceSelectWidget.js +0 -21
- package/lib/src/components/Form/index.js +0 -4
- package/lib/src/components/Form/widget.d.ts +0 -5
- package/lib/src/components/Form/widget.js +0 -1
- package/lib/src/components/FormErrorAlert/index.js +0 -8
- package/lib/src/components/FormLayout/index.js +0 -21
- package/lib/src/components/FormModal/index.d.ts +0 -10
- package/lib/src/components/FormModal/index.js +0 -51
- package/lib/src/components/ImageNames/index.js +0 -14
- package/lib/src/components/IngressRulesComponent/index.js +0 -11
- package/lib/src/components/IngressRulesTable/IngressRulesTable.js +0 -51
- package/lib/src/components/IngressRulesTable/index.js +0 -1
- package/lib/src/components/K8sDropdown/index.js +0 -31
- package/lib/src/components/KeyValue/KeyValue.js +0 -27
- package/lib/src/components/KeyValue/index.js +0 -1
- package/lib/src/components/KeyValueData/index.d.ts +0 -6
- package/lib/src/components/KeyValueData/index.js +0 -50
- package/lib/src/components/Layout/index.js +0 -39
- package/lib/src/components/ListPage/index.js +0 -25
- package/lib/src/components/Menu/index.js +0 -36
- package/lib/src/components/NamespacesFilter/index.js +0 -34
- package/lib/src/components/NetworkPolicyRulesTable/NetworkPolicyRulesTable.d.ts +0 -7
- package/lib/src/components/NetworkPolicyRulesTable/NetworkPolicyRulesTable.js +0 -77
- package/lib/src/components/NetworkPolicyRulesTable/index.d.ts +0 -1
- package/lib/src/components/NetworkPolicyRulesTable/index.js +0 -1
- package/lib/src/components/PageShow/PageShow.js +0 -11
- package/lib/src/components/PageShow/index.js +0 -1
- package/lib/src/components/PodContainersTable/PodContainersTable.js +0 -78
- package/lib/src/components/PodContainersTable/index.js +0 -1
- package/lib/src/components/PodLog/index.js +0 -136
- package/lib/src/components/ReferenceLink/index.js +0 -17
- package/lib/src/components/RefineForm/RefineFormContent.d.ts +0 -10
- package/lib/src/components/RefineForm/RefineFormModal.d.ts +0 -8
- package/lib/src/components/RefineForm/RefineFormPage.d.ts +0 -7
- package/lib/src/components/RefineForm/index.d.ts +0 -3
- package/lib/src/components/RefineForm/type.d.ts +0 -20
- package/lib/src/components/RefineForm/useRefineForm.d.ts +0 -10
- package/lib/src/components/ResourceCRUD/ResourceCRUD.js +0 -15
- package/lib/src/components/ResourceCRUD/create/index.js +0 -13
- package/lib/src/components/ResourceCRUD/index.js +0 -4
- package/lib/src/components/ResourceCRUD/list/index.js +0 -19
- package/lib/src/components/ResourceCRUD/show/index.js +0 -6
- package/lib/src/components/ResourceLink/index.js +0 -21
- package/lib/src/components/ResourceUsageBar/index.js +0 -81
- package/lib/src/components/Separator/index.js +0 -11
- package/lib/src/components/ShowContent/ShowContent.js +0 -157
- package/lib/src/components/ShowContent/fields.js +0 -157
- package/lib/src/components/ShowContent/index.js +0 -2
- package/lib/src/components/StateTag/StateTag.js +0 -22
- package/lib/src/components/StateTag/index.js +0 -1
- package/lib/src/components/Table/ErrorContent.d.ts +0 -10
- package/lib/src/components/Table/ErrorContent.js +0 -36
- package/lib/src/components/Table/TableToolBar.js +0 -14
- package/lib/src/components/Table/TableWidgets.js +0 -28
- package/lib/src/components/Table/index.js +0 -69
- package/lib/src/components/Tags/index.js +0 -22
- package/lib/src/components/Time/index.js +0 -14
- package/lib/src/components/WorkloadDropdown/index.js +0 -24
- package/lib/src/components/WorkloadPodsTable/WorkloadPodsTable.js +0 -39
- package/lib/src/components/WorkloadPodsTable/index.js +0 -1
- package/lib/src/components/WorkloadReplicas/index.js +0 -50
- package/lib/src/components/YamlEditor/MonacoYamlDiffEditor.js +0 -34
- package/lib/src/components/YamlEditor/MonacoYamlEditor.js +0 -149
- package/lib/src/components/YamlEditor/YamlEditorComponent.js +0 -90
- package/lib/src/components/YamlEditor/index.js +0 -1
- package/lib/src/components/YamlEditor/style.js +0 -102
- package/lib/src/components/YamlEditor/yaml.worker.js +0 -1
- package/lib/src/components/YamlForm/index.d.ts +0 -21
- package/lib/src/components/YamlForm/index.js +0 -61
- package/lib/src/components/index.js +0 -38
- package/lib/src/constants/index.js +0 -2
- package/lib/src/constants/k8s.js +0 -203
- package/lib/src/constants/state.js +0 -15
- package/lib/src/contexts/component.js +0 -3
- package/lib/src/contexts/configs.js +0 -3
- package/lib/src/contexts/global-store.js +0 -3
- package/lib/src/contexts/index.js +0 -3
- package/lib/src/hooks/index.js +0 -7
- package/lib/src/hooks/useDeleteModal/index.js +0 -1
- package/lib/src/hooks/useDeleteModal/useDeleteManyModal.js +0 -31
- package/lib/src/hooks/useDeleteModal/useDeleteModal.js +0 -38
- package/lib/src/hooks/useDownloadYAML.js +0 -10
- package/lib/src/hooks/useEagleForm.d.ts +0 -47
- package/lib/src/hooks/useEagleForm.js +0 -177
- package/lib/src/hooks/useEagleTable/columns.js +0 -246
- package/lib/src/hooks/useEagleTable/index.js +0 -2
- package/lib/src/hooks/useEagleTable/useEagleTable.js +0 -63
- package/lib/src/hooks/useEdit.js +0 -19
- package/lib/src/hooks/useGlobalStore.js +0 -5
- package/lib/src/hooks/useK8sYamlEditor.js +0 -37
- package/lib/src/hooks/useOpenForm.js +0 -43
- package/lib/src/hooks/useSchema.js +0 -37
- package/lib/src/hooks/useSubmitForm.js +0 -42
- package/lib/src/i18n.js +0 -19
- package/lib/src/index.js +0 -13
- package/lib/src/locales/en-US/dovetail.json +0 -18
- package/lib/src/locales/en-US/index.js +0 -4
- package/lib/src/locales/index.js +0 -6
- package/lib/src/locales/zh-CN/dovetail.json +0 -91
- package/lib/src/locales/zh-CN/index.js +0 -4
- package/lib/src/main.js +0 -12
- package/lib/src/models/cronjob-model.js +0 -32
- package/lib/src/models/daemonset-model.js +0 -17
- package/lib/src/models/deployment-model.js +0 -17
- package/lib/src/models/event-model.js +0 -11
- package/lib/src/models/index.js +0 -14
- package/lib/src/models/ingress-model.js +0 -24
- package/lib/src/models/job-model.js +0 -56
- package/lib/src/models/network-policy-model.js +0 -10
- package/lib/src/models/pod-metrics-model.js +0 -34
- package/lib/src/models/pod-model.js +0 -78
- package/lib/src/models/resource-model.js +0 -34
- package/lib/src/models/server-instance-model.d.ts +0 -10
- package/lib/src/models/service-model.js +0 -17
- package/lib/src/models/statefulset-model.js +0 -17
- package/lib/src/models/types/index.js +0 -1
- package/lib/src/models/types/metric.js +0 -1
- package/lib/src/models/workload-base-model.js +0 -22
- package/lib/src/models/workload-model.js +0 -51
- package/lib/src/pages/configmaps/index.js +0 -15
- package/lib/src/pages/cronjobs/create/index.js +0 -6
- package/lib/src/pages/cronjobs/index.js +0 -3
- package/lib/src/pages/cronjobs/list/index.js +0 -42
- package/lib/src/pages/cronjobs/show/index.js +0 -16
- package/lib/src/pages/daemonsets/create/index.js +0 -6
- package/lib/src/pages/daemonsets/index.js +0 -3
- package/lib/src/pages/daemonsets/list/index.js +0 -32
- package/lib/src/pages/daemonsets/show/index.js +0 -16
- package/lib/src/pages/deployments/create/index.d.ts +0 -3
- package/lib/src/pages/deployments/create/index.js +0 -7
- package/lib/src/pages/deployments/index.js +0 -3
- package/lib/src/pages/deployments/list/index.js +0 -26
- package/lib/src/pages/deployments/show/index.js +0 -16
- package/lib/src/pages/ingresses/index.js +0 -26
- package/lib/src/pages/jobs/index.js +0 -34
- package/lib/src/pages/networkPolicies/index.js +0 -67
- package/lib/src/pages/pods/create/index.js +0 -6
- package/lib/src/pages/pods/index.js +0 -3
- package/lib/src/pages/pods/list/index.js +0 -81
- package/lib/src/pages/pods/show/index.js +0 -54
- package/lib/src/pages/secrets/index.js +0 -15
- package/lib/src/pages/services/index.js +0 -26
- package/lib/src/pages/statefulsets/create/index.d.ts +0 -3
- package/lib/src/pages/statefulsets/create/index.js +0 -6
- package/lib/src/pages/statefulsets/index.js +0 -3
- package/lib/src/pages/statefulsets/list/index.d.ts +0 -3
- package/lib/src/pages/statefulsets/list/index.js +0 -26
- package/lib/src/pages/statefulsets/show/index.d.ts +0 -3
- package/lib/src/pages/statefulsets/show/index.js +0 -16
- package/lib/src/plugins/index.js +0 -3
- package/lib/src/plugins/model-plugin.js +0 -46
- package/lib/src/plugins/relation-plugin.js +0 -81
- package/lib/src/plugins/type.js +0 -1
- package/lib/src/providers/index.js +0 -1
- package/lib/src/providers/router-provider/index.js +0 -100
- package/lib/src/types/index.js +0 -1
- package/lib/src/types/resource.js +0 -12
- package/lib/src/utils/addId.js +0 -8
- package/lib/src/utils/download.js +0 -9
- package/lib/src/utils/error.js +0 -53
- package/lib/src/utils/form.js +0 -9
- package/lib/src/utils/k8s.js +0 -6
- package/lib/src/utils/labels.js +0 -15
- package/lib/src/utils/match-selector.js +0 -12
- package/lib/src/utils/openapi.js +0 -33
- package/lib/src/utils/schema.js +0 -117
- package/lib/src/utils/selector.js +0 -12
- package/lib/src/utils/string.js +0 -6
- package/lib/src/utils/time.js +0 -46
- package/lib/src/utils/unit.js +0 -69
- package/lib/src/utils/yaml.js +0 -44
- package/lib/vite.config.js +0 -60
|
@@ -10,7 +10,7 @@ import React__default, { createElement, isValidElement, cloneElement, Children,
|
|
|
10
10
|
import { ResourceContext, matchResourceFromRoute, useResource, useDelete, useNavigation, useBreadcrumb, useList, useParsed, useGo, useCan, useTable, useDeleteMany, CanAccess, useShow, useUpdate, useDataProvider, useRefineContext, useTranslate, useWarnAboutChange, useForm as useForm$2, flattenObjectKeys, pickNotDeprecated, useMenu, Refine } from "@refinedev/core";
|
|
11
11
|
import { parse, stringify } from "qs";
|
|
12
12
|
import { useLocation, useHistory, useParams, matchPath, Link, Route, NavLink, Router } from "react-router-dom";
|
|
13
|
-
import { Typo, Tag, Input, Select, AntdOption, Button, Form, Space, TextArea, kitContext, Loading, Table as Table$1, Pagination, OverflowTooltip, StatusCapsule, Tooltip, usePushModal, Dropdown, Menu as Menu$1, Icon as Icon$1, Divider, Modal, Link as Link$1, Tabs as Tabs$1, TabsTabPane, Row, Col, Alert, usePopModal, Fields, DonutChart, SegmentControl, Checkbox, SearchInput, Token, AntdSelectOptGroup, MenuItemGroup, Layout as Layout$1, Time as Time$1, useMessage, ModalStack, KitStoreProvider } from "@cloudtower/eagle";
|
|
13
|
+
import { Typo, Tag, Input, Select, AntdOption, Button, Form, Space, TextArea, kitContext, Loading, Table as Table$1, Pagination, OverflowTooltip, StatusCapsule, Tooltip, usePushModal, Dropdown, Menu as Menu$1, Icon as Icon$1, Divider, Modal, Link as Link$1, Tabs as Tabs$1, TabsTabPane, Row, Col, Alert, usePopModal, Fields, DonutChart, Units, SegmentControl, Checkbox, SearchInput, Token, AntdSelectOptGroup, MenuItemGroup, Layout as Layout$1, Time as Time$1, useMessage, ModalStack, KitStoreProvider } from "@cloudtower/eagle";
|
|
14
14
|
import { EditPen16PrimaryIcon, Download16GradientBlueIcon, TrashBinDelete16Icon, MoreEllipsis324BoldSecondaryIcon, MoreEllipsis324BoldBlueIcon, MoreEllipsis316BoldBlueIcon, PlusAddCreateNew16BoldOntintIcon, ArrowChevronLeft16BoldTertiaryIcon, ArrowChevronLeftSmall16BoldBlueIcon, EditPen16GradientBlueIcon, ViewEye16GradientGrayIcon, EntityFilterIgnoreGradient16GrayIcon, RecoverContinue16GradientBlueIcon, SuspendedPause16GradientBlueIcon, Retry16GradientBlueIcon, HierarchyTriangleRight16GrayIcon, HierarchyTriangleRight16BlueIcon, ClipboardCopy16GradientGrayIcon, ClipboardCopy16GradientBlueIcon, Retry16GradientGrayIcon, EditPen16GradientGrayIcon, Showdiff16GradientGrayIcon, Showdiff16GradientBlueIcon, XmarkFailedSeriousWarningFill16RedIcon, ExclamationErrorCircleFill16RedIcon, Pause16GradientBlueIcon } from "@cloudtower/icons-react";
|
|
15
15
|
import { omit as omit$1, merge, get as get$3, first, debounce, last, isObject as isObject$4, keyBy } from "lodash-es";
|
|
16
16
|
import yaml from "js-yaml";
|
|
@@ -25,308 +25,301 @@ function getDefaultExportFromCjs(x) {
|
|
|
25
25
|
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
|
|
26
26
|
}
|
|
27
27
|
var dayjs_min = { exports: {} };
|
|
28
|
-
|
|
29
|
-
function
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
function
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
if (null === e3)
|
|
94
|
-
return /* @__PURE__ */ new Date(NaN);
|
|
95
|
-
if (b.u(e3))
|
|
96
|
-
return /* @__PURE__ */ new Date();
|
|
97
|
-
if (e3 instanceof Date)
|
|
98
|
-
return new Date(e3);
|
|
99
|
-
if ("string" == typeof e3 && !/Z$/i.test(e3)) {
|
|
100
|
-
var r3 = e3.match($);
|
|
101
|
-
if (r3) {
|
|
102
|
-
var i3 = r3[2] - 1 || 0, s3 = (r3[7] || "0").substring(0, 3);
|
|
103
|
-
return n3 ? new Date(Date.UTC(r3[1], i3, r3[3] || 1, r3[4] || 0, r3[5] || 0, r3[6] || 0, s3)) : new Date(r3[1], i3, r3[3] || 1, r3[4] || 0, r3[5] || 0, r3[6] || 0, s3);
|
|
104
|
-
}
|
|
105
|
-
}
|
|
28
|
+
(function(module, exports) {
|
|
29
|
+
!function(t2, e2) {
|
|
30
|
+
module.exports = e2();
|
|
31
|
+
}(commonjsGlobal, function() {
|
|
32
|
+
var t2 = 1e3, e2 = 6e4, n2 = 36e5, r2 = "millisecond", i2 = "second", s2 = "minute", u = "hour", a2 = "day", o = "week", c2 = "month", f = "quarter", h = "year", d = "date", l = "Invalid Date", $ = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, y = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, M = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(t3) {
|
|
33
|
+
var e3 = ["th", "st", "nd", "rd"], n3 = t3 % 100;
|
|
34
|
+
return "[" + t3 + (e3[(n3 - 20) % 10] || e3[n3] || e3[0]) + "]";
|
|
35
|
+
} }, m = function(t3, e3, n3) {
|
|
36
|
+
var r3 = String(t3);
|
|
37
|
+
return !r3 || r3.length >= e3 ? t3 : "" + Array(e3 + 1 - r3.length).join(n3) + t3;
|
|
38
|
+
}, v = { s: m, z: function(t3) {
|
|
39
|
+
var e3 = -t3.utcOffset(), n3 = Math.abs(e3), r3 = Math.floor(n3 / 60), i3 = n3 % 60;
|
|
40
|
+
return (e3 <= 0 ? "+" : "-") + m(r3, 2, "0") + ":" + m(i3, 2, "0");
|
|
41
|
+
}, m: function t3(e3, n3) {
|
|
42
|
+
if (e3.date() < n3.date())
|
|
43
|
+
return -t3(n3, e3);
|
|
44
|
+
var r3 = 12 * (n3.year() - e3.year()) + (n3.month() - e3.month()), i3 = e3.clone().add(r3, c2), s3 = n3 - i3 < 0, u2 = e3.clone().add(r3 + (s3 ? -1 : 1), c2);
|
|
45
|
+
return +(-(r3 + (n3 - i3) / (s3 ? i3 - u2 : u2 - i3)) || 0);
|
|
46
|
+
}, a: function(t3) {
|
|
47
|
+
return t3 < 0 ? Math.ceil(t3) || 0 : Math.floor(t3);
|
|
48
|
+
}, p: function(t3) {
|
|
49
|
+
return { M: c2, y: h, w: o, d: a2, D: d, h: u, m: s2, s: i2, ms: r2, Q: f }[t3] || String(t3 || "").toLowerCase().replace(/s$/, "");
|
|
50
|
+
}, u: function(t3) {
|
|
51
|
+
return void 0 === t3;
|
|
52
|
+
} }, g = "en", D = {};
|
|
53
|
+
D[g] = M;
|
|
54
|
+
var p = "$isDayjsObject", S = function(t3) {
|
|
55
|
+
return t3 instanceof _ || !(!t3 || !t3[p]);
|
|
56
|
+
}, w = function t3(e3, n3, r3) {
|
|
57
|
+
var i3;
|
|
58
|
+
if (!e3)
|
|
59
|
+
return g;
|
|
60
|
+
if ("string" == typeof e3) {
|
|
61
|
+
var s3 = e3.toLowerCase();
|
|
62
|
+
D[s3] && (i3 = s3), n3 && (D[s3] = n3, i3 = s3);
|
|
63
|
+
var u2 = e3.split("-");
|
|
64
|
+
if (!i3 && u2.length > 1)
|
|
65
|
+
return t3(u2[0]);
|
|
66
|
+
} else {
|
|
67
|
+
var a3 = e3.name;
|
|
68
|
+
D[a3] = e3, i3 = a3;
|
|
69
|
+
}
|
|
70
|
+
return !r3 && i3 && (g = i3), i3 || !r3 && g;
|
|
71
|
+
}, O = function(t3, e3) {
|
|
72
|
+
if (S(t3))
|
|
73
|
+
return t3.clone();
|
|
74
|
+
var n3 = "object" == typeof e3 ? e3 : {};
|
|
75
|
+
return n3.date = t3, n3.args = arguments, new _(n3);
|
|
76
|
+
}, b = v;
|
|
77
|
+
b.l = w, b.i = S, b.w = function(t3, e3) {
|
|
78
|
+
return O(t3, { locale: e3.$L, utc: e3.$u, x: e3.$x, $offset: e3.$offset });
|
|
79
|
+
};
|
|
80
|
+
var _ = function() {
|
|
81
|
+
function M2(t3) {
|
|
82
|
+
this.$L = w(t3.locale, null, true), this.parse(t3), this.$x = this.$x || t3.x || {}, this[p] = true;
|
|
83
|
+
}
|
|
84
|
+
var m2 = M2.prototype;
|
|
85
|
+
return m2.parse = function(t3) {
|
|
86
|
+
this.$d = function(t4) {
|
|
87
|
+
var e3 = t4.date, n3 = t4.utc;
|
|
88
|
+
if (null === e3)
|
|
89
|
+
return /* @__PURE__ */ new Date(NaN);
|
|
90
|
+
if (b.u(e3))
|
|
91
|
+
return /* @__PURE__ */ new Date();
|
|
92
|
+
if (e3 instanceof Date)
|
|
106
93
|
return new Date(e3);
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
return
|
|
115
|
-
},
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
return y2(7);
|
|
184
|
-
var M3 = (d2 = {}, d2[s2] = e2, d2[u] = n2, d2[i2] = t2, d2)[$2] || 1, m3 = this.$d.getTime() + r3 * M3;
|
|
185
|
-
return b.w(m3, this);
|
|
186
|
-
}, m2.subtract = function(t3, e3) {
|
|
187
|
-
return this.add(-1 * t3, e3);
|
|
188
|
-
}, m2.format = function(t3) {
|
|
189
|
-
var e3 = this, n3 = this.$locale();
|
|
190
|
-
if (!this.isValid())
|
|
191
|
-
return n3.invalidDate || l;
|
|
192
|
-
var r3 = t3 || "YYYY-MM-DDTHH:mm:ssZ", i3 = b.z(this), s3 = this.$H, u2 = this.$m, a3 = this.$M, o2 = n3.weekdays, c3 = n3.months, f2 = n3.meridiem, h2 = function(t4, n4, i4, s4) {
|
|
193
|
-
return t4 && (t4[n4] || t4(e3, r3)) || i4[n4].slice(0, s4);
|
|
194
|
-
}, d2 = function(t4) {
|
|
195
|
-
return b.s(s3 % 12 || 12, t4, "0");
|
|
196
|
-
}, $2 = f2 || function(t4, e4, n4) {
|
|
197
|
-
var r4 = t4 < 12 ? "AM" : "PM";
|
|
198
|
-
return n4 ? r4.toLowerCase() : r4;
|
|
199
|
-
};
|
|
200
|
-
return r3.replace(y, function(t4, r4) {
|
|
201
|
-
return r4 || function(t5) {
|
|
202
|
-
switch (t5) {
|
|
203
|
-
case "YY":
|
|
204
|
-
return String(e3.$y).slice(-2);
|
|
205
|
-
case "YYYY":
|
|
206
|
-
return b.s(e3.$y, 4, "0");
|
|
207
|
-
case "M":
|
|
208
|
-
return a3 + 1;
|
|
209
|
-
case "MM":
|
|
210
|
-
return b.s(a3 + 1, 2, "0");
|
|
211
|
-
case "MMM":
|
|
212
|
-
return h2(n3.monthsShort, a3, c3, 3);
|
|
213
|
-
case "MMMM":
|
|
214
|
-
return h2(c3, a3);
|
|
215
|
-
case "D":
|
|
216
|
-
return e3.$D;
|
|
217
|
-
case "DD":
|
|
218
|
-
return b.s(e3.$D, 2, "0");
|
|
219
|
-
case "d":
|
|
220
|
-
return String(e3.$W);
|
|
221
|
-
case "dd":
|
|
222
|
-
return h2(n3.weekdaysMin, e3.$W, o2, 2);
|
|
223
|
-
case "ddd":
|
|
224
|
-
return h2(n3.weekdaysShort, e3.$W, o2, 3);
|
|
225
|
-
case "dddd":
|
|
226
|
-
return o2[e3.$W];
|
|
227
|
-
case "H":
|
|
228
|
-
return String(s3);
|
|
229
|
-
case "HH":
|
|
230
|
-
return b.s(s3, 2, "0");
|
|
231
|
-
case "h":
|
|
232
|
-
return d2(1);
|
|
233
|
-
case "hh":
|
|
234
|
-
return d2(2);
|
|
235
|
-
case "a":
|
|
236
|
-
return $2(s3, u2, true);
|
|
237
|
-
case "A":
|
|
238
|
-
return $2(s3, u2, false);
|
|
239
|
-
case "m":
|
|
240
|
-
return String(u2);
|
|
241
|
-
case "mm":
|
|
242
|
-
return b.s(u2, 2, "0");
|
|
243
|
-
case "s":
|
|
244
|
-
return String(e3.$s);
|
|
245
|
-
case "ss":
|
|
246
|
-
return b.s(e3.$s, 2, "0");
|
|
247
|
-
case "SSS":
|
|
248
|
-
return b.s(e3.$ms, 3, "0");
|
|
249
|
-
case "Z":
|
|
250
|
-
return i3;
|
|
251
|
-
}
|
|
252
|
-
return null;
|
|
253
|
-
}(t4) || i3.replace(":", "");
|
|
254
|
-
});
|
|
255
|
-
}, m2.utcOffset = function() {
|
|
256
|
-
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
257
|
-
}, m2.diff = function(r3, d2, l2) {
|
|
258
|
-
var $2, y2 = this, M3 = b.p(d2), m3 = O(r3), v2 = (m3.utcOffset() - this.utcOffset()) * e2, g2 = this - m3, D2 = function() {
|
|
259
|
-
return b.m(y2, m3);
|
|
260
|
-
};
|
|
261
|
-
switch (M3) {
|
|
262
|
-
case h:
|
|
263
|
-
$2 = D2() / 12;
|
|
264
|
-
break;
|
|
265
|
-
case c2:
|
|
266
|
-
$2 = D2();
|
|
267
|
-
break;
|
|
268
|
-
case f:
|
|
269
|
-
$2 = D2() / 3;
|
|
270
|
-
break;
|
|
271
|
-
case o:
|
|
272
|
-
$2 = (g2 - v2) / 6048e5;
|
|
273
|
-
break;
|
|
274
|
-
case a2:
|
|
275
|
-
$2 = (g2 - v2) / 864e5;
|
|
276
|
-
break;
|
|
277
|
-
case u:
|
|
278
|
-
$2 = g2 / n2;
|
|
279
|
-
break;
|
|
280
|
-
case s2:
|
|
281
|
-
$2 = g2 / e2;
|
|
282
|
-
break;
|
|
283
|
-
case i2:
|
|
284
|
-
$2 = g2 / t2;
|
|
285
|
-
break;
|
|
286
|
-
default:
|
|
287
|
-
$2 = g2;
|
|
288
|
-
}
|
|
289
|
-
return l2 ? $2 : b.a($2);
|
|
290
|
-
}, m2.daysInMonth = function() {
|
|
291
|
-
return this.endOf(c2).$D;
|
|
292
|
-
}, m2.$locale = function() {
|
|
293
|
-
return D[this.$L];
|
|
294
|
-
}, m2.locale = function(t3, e3) {
|
|
295
|
-
if (!t3)
|
|
296
|
-
return this.$L;
|
|
297
|
-
var n3 = this.clone(), r3 = w(t3, e3, true);
|
|
298
|
-
return r3 && (n3.$L = r3), n3;
|
|
299
|
-
}, m2.clone = function() {
|
|
300
|
-
return b.w(this.$d, this);
|
|
301
|
-
}, m2.toDate = function() {
|
|
302
|
-
return new Date(this.valueOf());
|
|
303
|
-
}, m2.toJSON = function() {
|
|
304
|
-
return this.isValid() ? this.toISOString() : null;
|
|
305
|
-
}, m2.toISOString = function() {
|
|
306
|
-
return this.$d.toISOString();
|
|
307
|
-
}, m2.toString = function() {
|
|
308
|
-
return this.$d.toUTCString();
|
|
309
|
-
}, M2;
|
|
310
|
-
}(), k = _.prototype;
|
|
311
|
-
return O.prototype = k, [["$ms", r2], ["$s", i2], ["$m", s2], ["$H", u], ["$W", a2], ["$M", c2], ["$y", h], ["$D", d]].forEach(function(t3) {
|
|
312
|
-
k[t3[1]] = function(e3) {
|
|
313
|
-
return this.$g(e3, t3[0], t3[1]);
|
|
94
|
+
if ("string" == typeof e3 && !/Z$/i.test(e3)) {
|
|
95
|
+
var r3 = e3.match($);
|
|
96
|
+
if (r3) {
|
|
97
|
+
var i3 = r3[2] - 1 || 0, s3 = (r3[7] || "0").substring(0, 3);
|
|
98
|
+
return n3 ? new Date(Date.UTC(r3[1], i3, r3[3] || 1, r3[4] || 0, r3[5] || 0, r3[6] || 0, s3)) : new Date(r3[1], i3, r3[3] || 1, r3[4] || 0, r3[5] || 0, r3[6] || 0, s3);
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
return new Date(e3);
|
|
102
|
+
}(t3), this.init();
|
|
103
|
+
}, m2.init = function() {
|
|
104
|
+
var t3 = this.$d;
|
|
105
|
+
this.$y = t3.getFullYear(), this.$M = t3.getMonth(), this.$D = t3.getDate(), this.$W = t3.getDay(), this.$H = t3.getHours(), this.$m = t3.getMinutes(), this.$s = t3.getSeconds(), this.$ms = t3.getMilliseconds();
|
|
106
|
+
}, m2.$utils = function() {
|
|
107
|
+
return b;
|
|
108
|
+
}, m2.isValid = function() {
|
|
109
|
+
return !(this.$d.toString() === l);
|
|
110
|
+
}, m2.isSame = function(t3, e3) {
|
|
111
|
+
var n3 = O(t3);
|
|
112
|
+
return this.startOf(e3) <= n3 && n3 <= this.endOf(e3);
|
|
113
|
+
}, m2.isAfter = function(t3, e3) {
|
|
114
|
+
return O(t3) < this.startOf(e3);
|
|
115
|
+
}, m2.isBefore = function(t3, e3) {
|
|
116
|
+
return this.endOf(e3) < O(t3);
|
|
117
|
+
}, m2.$g = function(t3, e3, n3) {
|
|
118
|
+
return b.u(t3) ? this[e3] : this.set(n3, t3);
|
|
119
|
+
}, m2.unix = function() {
|
|
120
|
+
return Math.floor(this.valueOf() / 1e3);
|
|
121
|
+
}, m2.valueOf = function() {
|
|
122
|
+
return this.$d.getTime();
|
|
123
|
+
}, m2.startOf = function(t3, e3) {
|
|
124
|
+
var n3 = this, r3 = !!b.u(e3) || e3, f2 = b.p(t3), l2 = function(t4, e4) {
|
|
125
|
+
var i3 = b.w(n3.$u ? Date.UTC(n3.$y, e4, t4) : new Date(n3.$y, e4, t4), n3);
|
|
126
|
+
return r3 ? i3 : i3.endOf(a2);
|
|
127
|
+
}, $2 = function(t4, e4) {
|
|
128
|
+
return b.w(n3.toDate()[t4].apply(n3.toDate("s"), (r3 ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(e4)), n3);
|
|
129
|
+
}, y2 = this.$W, M3 = this.$M, m3 = this.$D, v2 = "set" + (this.$u ? "UTC" : "");
|
|
130
|
+
switch (f2) {
|
|
131
|
+
case h:
|
|
132
|
+
return r3 ? l2(1, 0) : l2(31, 11);
|
|
133
|
+
case c2:
|
|
134
|
+
return r3 ? l2(1, M3) : l2(0, M3 + 1);
|
|
135
|
+
case o:
|
|
136
|
+
var g2 = this.$locale().weekStart || 0, D2 = (y2 < g2 ? y2 + 7 : y2) - g2;
|
|
137
|
+
return l2(r3 ? m3 - D2 : m3 + (6 - D2), M3);
|
|
138
|
+
case a2:
|
|
139
|
+
case d:
|
|
140
|
+
return $2(v2 + "Hours", 0);
|
|
141
|
+
case u:
|
|
142
|
+
return $2(v2 + "Minutes", 1);
|
|
143
|
+
case s2:
|
|
144
|
+
return $2(v2 + "Seconds", 2);
|
|
145
|
+
case i2:
|
|
146
|
+
return $2(v2 + "Milliseconds", 3);
|
|
147
|
+
default:
|
|
148
|
+
return this.clone();
|
|
149
|
+
}
|
|
150
|
+
}, m2.endOf = function(t3) {
|
|
151
|
+
return this.startOf(t3, false);
|
|
152
|
+
}, m2.$set = function(t3, e3) {
|
|
153
|
+
var n3, o2 = b.p(t3), f2 = "set" + (this.$u ? "UTC" : ""), l2 = (n3 = {}, n3[a2] = f2 + "Date", n3[d] = f2 + "Date", n3[c2] = f2 + "Month", n3[h] = f2 + "FullYear", n3[u] = f2 + "Hours", n3[s2] = f2 + "Minutes", n3[i2] = f2 + "Seconds", n3[r2] = f2 + "Milliseconds", n3)[o2], $2 = o2 === a2 ? this.$D + (e3 - this.$W) : e3;
|
|
154
|
+
if (o2 === c2 || o2 === h) {
|
|
155
|
+
var y2 = this.clone().set(d, 1);
|
|
156
|
+
y2.$d[l2]($2), y2.init(), this.$d = y2.set(d, Math.min(this.$D, y2.daysInMonth())).$d;
|
|
157
|
+
} else
|
|
158
|
+
l2 && this.$d[l2]($2);
|
|
159
|
+
return this.init(), this;
|
|
160
|
+
}, m2.set = function(t3, e3) {
|
|
161
|
+
return this.clone().$set(t3, e3);
|
|
162
|
+
}, m2.get = function(t3) {
|
|
163
|
+
return this[b.p(t3)]();
|
|
164
|
+
}, m2.add = function(r3, f2) {
|
|
165
|
+
var d2, l2 = this;
|
|
166
|
+
r3 = Number(r3);
|
|
167
|
+
var $2 = b.p(f2), y2 = function(t3) {
|
|
168
|
+
var e3 = O(l2);
|
|
169
|
+
return b.w(e3.date(e3.date() + Math.round(t3 * r3)), l2);
|
|
314
170
|
};
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
}
|
|
324
|
-
|
|
171
|
+
if ($2 === c2)
|
|
172
|
+
return this.set(c2, this.$M + r3);
|
|
173
|
+
if ($2 === h)
|
|
174
|
+
return this.set(h, this.$y + r3);
|
|
175
|
+
if ($2 === a2)
|
|
176
|
+
return y2(1);
|
|
177
|
+
if ($2 === o)
|
|
178
|
+
return y2(7);
|
|
179
|
+
var M3 = (d2 = {}, d2[s2] = e2, d2[u] = n2, d2[i2] = t2, d2)[$2] || 1, m3 = this.$d.getTime() + r3 * M3;
|
|
180
|
+
return b.w(m3, this);
|
|
181
|
+
}, m2.subtract = function(t3, e3) {
|
|
182
|
+
return this.add(-1 * t3, e3);
|
|
183
|
+
}, m2.format = function(t3) {
|
|
184
|
+
var e3 = this, n3 = this.$locale();
|
|
185
|
+
if (!this.isValid())
|
|
186
|
+
return n3.invalidDate || l;
|
|
187
|
+
var r3 = t3 || "YYYY-MM-DDTHH:mm:ssZ", i3 = b.z(this), s3 = this.$H, u2 = this.$m, a3 = this.$M, o2 = n3.weekdays, c3 = n3.months, f2 = n3.meridiem, h2 = function(t4, n4, i4, s4) {
|
|
188
|
+
return t4 && (t4[n4] || t4(e3, r3)) || i4[n4].slice(0, s4);
|
|
189
|
+
}, d2 = function(t4) {
|
|
190
|
+
return b.s(s3 % 12 || 12, t4, "0");
|
|
191
|
+
}, $2 = f2 || function(t4, e4, n4) {
|
|
192
|
+
var r4 = t4 < 12 ? "AM" : "PM";
|
|
193
|
+
return n4 ? r4.toLowerCase() : r4;
|
|
194
|
+
};
|
|
195
|
+
return r3.replace(y, function(t4, r4) {
|
|
196
|
+
return r4 || function(t5) {
|
|
197
|
+
switch (t5) {
|
|
198
|
+
case "YY":
|
|
199
|
+
return String(e3.$y).slice(-2);
|
|
200
|
+
case "YYYY":
|
|
201
|
+
return b.s(e3.$y, 4, "0");
|
|
202
|
+
case "M":
|
|
203
|
+
return a3 + 1;
|
|
204
|
+
case "MM":
|
|
205
|
+
return b.s(a3 + 1, 2, "0");
|
|
206
|
+
case "MMM":
|
|
207
|
+
return h2(n3.monthsShort, a3, c3, 3);
|
|
208
|
+
case "MMMM":
|
|
209
|
+
return h2(c3, a3);
|
|
210
|
+
case "D":
|
|
211
|
+
return e3.$D;
|
|
212
|
+
case "DD":
|
|
213
|
+
return b.s(e3.$D, 2, "0");
|
|
214
|
+
case "d":
|
|
215
|
+
return String(e3.$W);
|
|
216
|
+
case "dd":
|
|
217
|
+
return h2(n3.weekdaysMin, e3.$W, o2, 2);
|
|
218
|
+
case "ddd":
|
|
219
|
+
return h2(n3.weekdaysShort, e3.$W, o2, 3);
|
|
220
|
+
case "dddd":
|
|
221
|
+
return o2[e3.$W];
|
|
222
|
+
case "H":
|
|
223
|
+
return String(s3);
|
|
224
|
+
case "HH":
|
|
225
|
+
return b.s(s3, 2, "0");
|
|
226
|
+
case "h":
|
|
227
|
+
return d2(1);
|
|
228
|
+
case "hh":
|
|
229
|
+
return d2(2);
|
|
230
|
+
case "a":
|
|
231
|
+
return $2(s3, u2, true);
|
|
232
|
+
case "A":
|
|
233
|
+
return $2(s3, u2, false);
|
|
234
|
+
case "m":
|
|
235
|
+
return String(u2);
|
|
236
|
+
case "mm":
|
|
237
|
+
return b.s(u2, 2, "0");
|
|
238
|
+
case "s":
|
|
239
|
+
return String(e3.$s);
|
|
240
|
+
case "ss":
|
|
241
|
+
return b.s(e3.$s, 2, "0");
|
|
242
|
+
case "SSS":
|
|
243
|
+
return b.s(e3.$ms, 3, "0");
|
|
244
|
+
case "Z":
|
|
245
|
+
return i3;
|
|
246
|
+
}
|
|
247
|
+
return null;
|
|
248
|
+
}(t4) || i3.replace(":", "");
|
|
249
|
+
});
|
|
250
|
+
}, m2.utcOffset = function() {
|
|
251
|
+
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
252
|
+
}, m2.diff = function(r3, d2, l2) {
|
|
253
|
+
var $2, y2 = this, M3 = b.p(d2), m3 = O(r3), v2 = (m3.utcOffset() - this.utcOffset()) * e2, g2 = this - m3, D2 = function() {
|
|
254
|
+
return b.m(y2, m3);
|
|
255
|
+
};
|
|
256
|
+
switch (M3) {
|
|
257
|
+
case h:
|
|
258
|
+
$2 = D2() / 12;
|
|
259
|
+
break;
|
|
260
|
+
case c2:
|
|
261
|
+
$2 = D2();
|
|
262
|
+
break;
|
|
263
|
+
case f:
|
|
264
|
+
$2 = D2() / 3;
|
|
265
|
+
break;
|
|
266
|
+
case o:
|
|
267
|
+
$2 = (g2 - v2) / 6048e5;
|
|
268
|
+
break;
|
|
269
|
+
case a2:
|
|
270
|
+
$2 = (g2 - v2) / 864e5;
|
|
271
|
+
break;
|
|
272
|
+
case u:
|
|
273
|
+
$2 = g2 / n2;
|
|
274
|
+
break;
|
|
275
|
+
case s2:
|
|
276
|
+
$2 = g2 / e2;
|
|
277
|
+
break;
|
|
278
|
+
case i2:
|
|
279
|
+
$2 = g2 / t2;
|
|
280
|
+
break;
|
|
281
|
+
default:
|
|
282
|
+
$2 = g2;
|
|
283
|
+
}
|
|
284
|
+
return l2 ? $2 : b.a($2);
|
|
285
|
+
}, m2.daysInMonth = function() {
|
|
286
|
+
return this.endOf(c2).$D;
|
|
287
|
+
}, m2.$locale = function() {
|
|
288
|
+
return D[this.$L];
|
|
289
|
+
}, m2.locale = function(t3, e3) {
|
|
290
|
+
if (!t3)
|
|
291
|
+
return this.$L;
|
|
292
|
+
var n3 = this.clone(), r3 = w(t3, e3, true);
|
|
293
|
+
return r3 && (n3.$L = r3), n3;
|
|
294
|
+
}, m2.clone = function() {
|
|
295
|
+
return b.w(this.$d, this);
|
|
296
|
+
}, m2.toDate = function() {
|
|
297
|
+
return new Date(this.valueOf());
|
|
298
|
+
}, m2.toJSON = function() {
|
|
299
|
+
return this.isValid() ? this.toISOString() : null;
|
|
300
|
+
}, m2.toISOString = function() {
|
|
301
|
+
return this.$d.toISOString();
|
|
302
|
+
}, m2.toString = function() {
|
|
303
|
+
return this.$d.toUTCString();
|
|
304
|
+
}, M2;
|
|
305
|
+
}(), k = _.prototype;
|
|
306
|
+
return O.prototype = k, [["$ms", r2], ["$s", i2], ["$m", s2], ["$H", u], ["$W", a2], ["$M", c2], ["$y", h], ["$D", d]].forEach(function(t3) {
|
|
307
|
+
k[t3[1]] = function(e3) {
|
|
308
|
+
return this.$g(e3, t3[0], t3[1]);
|
|
309
|
+
};
|
|
310
|
+
}), O.extend = function(t3, e3) {
|
|
311
|
+
return t3.$i || (t3(e3, _, O), t3.$i = true), O;
|
|
312
|
+
}, O.locale = w, O.isDayjs = S, O.unix = function(t3) {
|
|
313
|
+
return O(1e3 * t3);
|
|
314
|
+
}, O.en = D[g], O.Ls = D, O.p = {}, O;
|
|
315
|
+
});
|
|
316
|
+
})(dayjs_min);
|
|
317
|
+
var dayjs_minExports = dayjs_min.exports;
|
|
325
318
|
const dayjs = /* @__PURE__ */ getDefaultExportFromCjs(dayjs_minExports);
|
|
326
319
|
var zh = { exports: {} };
|
|
327
320
|
(function(module, exports) {
|
|
328
321
|
!function(e2, _) {
|
|
329
|
-
module.exports = _(
|
|
322
|
+
module.exports = _(dayjs_minExports);
|
|
330
323
|
}(commonjsGlobal, function(e2) {
|
|
331
324
|
function _(e3) {
|
|
332
325
|
return e3 && "object" == typeof e3 && "default" in e3 ? e3 : { default: e3 };
|
|
@@ -1159,7 +1152,21 @@ const path_type$1 = "Path type";
|
|
|
1159
1152
|
const only_support_one_yaml$1 = "Only one YAML configuration is supported at a time.";
|
|
1160
1153
|
const not_support$1 = "Not supported";
|
|
1161
1154
|
const stopped$1 = "Stopped";
|
|
1162
|
-
const any_node_ip = "Any node IP";
|
|
1155
|
+
const any_node_ip$1 = "Any node IP";
|
|
1156
|
+
const storage_class$1 = "Storage class";
|
|
1157
|
+
const persistent_volume$1 = "Persistent volume";
|
|
1158
|
+
const provisioner$1 = "Provisioner";
|
|
1159
|
+
const file_system$1 = "File system";
|
|
1160
|
+
const capacity$1 = "Capacity";
|
|
1161
|
+
const phase$1 = "Phase";
|
|
1162
|
+
const volume_mode$1 = "Volume mode";
|
|
1163
|
+
const access_mode$1 = "Access mode";
|
|
1164
|
+
const block$1 = "Block";
|
|
1165
|
+
const pv_phase_available$1 = "Available";
|
|
1166
|
+
const pv_phase_bound$1 = "Bound";
|
|
1167
|
+
const pv_phase_released$1 = "Released";
|
|
1168
|
+
const pv_phase_failed$1 = "Failed";
|
|
1169
|
+
const pv_phase_pending$1 = "Pending";
|
|
1163
1170
|
const dovetail$1 = {
|
|
1164
1171
|
copy: copy$1,
|
|
1165
1172
|
reset_arguments: reset_arguments$1,
|
|
@@ -1315,7 +1322,21 @@ const dovetail$1 = {
|
|
|
1315
1322
|
only_support_one_yaml: only_support_one_yaml$1,
|
|
1316
1323
|
not_support: not_support$1,
|
|
1317
1324
|
stopped: stopped$1,
|
|
1318
|
-
any_node_ip
|
|
1325
|
+
any_node_ip: any_node_ip$1,
|
|
1326
|
+
storage_class: storage_class$1,
|
|
1327
|
+
persistent_volume: persistent_volume$1,
|
|
1328
|
+
provisioner: provisioner$1,
|
|
1329
|
+
file_system: file_system$1,
|
|
1330
|
+
capacity: capacity$1,
|
|
1331
|
+
phase: phase$1,
|
|
1332
|
+
volume_mode: volume_mode$1,
|
|
1333
|
+
access_mode: access_mode$1,
|
|
1334
|
+
block: block$1,
|
|
1335
|
+
pv_phase_available: pv_phase_available$1,
|
|
1336
|
+
pv_phase_bound: pv_phase_bound$1,
|
|
1337
|
+
pv_phase_released: pv_phase_released$1,
|
|
1338
|
+
pv_phase_failed: pv_phase_failed$1,
|
|
1339
|
+
pv_phase_pending: pv_phase_pending$1
|
|
1319
1340
|
};
|
|
1320
1341
|
const EN = {
|
|
1321
1342
|
dovetail: dovetail$1
|
|
@@ -1472,10 +1493,21 @@ const out_external_name_desc = "ExternalName 展示 <strong>external-ip</strong>
|
|
|
1472
1493
|
const only_support_one_yaml = "一次仅支持输入一个 YAML 配置。";
|
|
1473
1494
|
const not_support = "不支持";
|
|
1474
1495
|
const stopped = "已停止";
|
|
1496
|
+
const any_node_ip = "任意节点 IP";
|
|
1475
1497
|
const storage_class = "存储类";
|
|
1476
|
-
const
|
|
1498
|
+
const persistent_volume = "持久卷";
|
|
1477
1499
|
const provisioner = "制备器";
|
|
1478
1500
|
const file_system = "文件系统";
|
|
1501
|
+
const capacity = "容量";
|
|
1502
|
+
const phase = "阶段";
|
|
1503
|
+
const volume_mode = "卷模式";
|
|
1504
|
+
const access_mode = "访问模式";
|
|
1505
|
+
const block = "块";
|
|
1506
|
+
const pv_phase_available = "可用";
|
|
1507
|
+
const pv_phase_bound = "已绑定";
|
|
1508
|
+
const pv_phase_released = "已释放";
|
|
1509
|
+
const pv_phase_failed = "失败";
|
|
1510
|
+
const pv_phase_pending = "等待中";
|
|
1479
1511
|
const dovetail = {
|
|
1480
1512
|
copy,
|
|
1481
1513
|
reset_arguments,
|
|
@@ -1632,10 +1664,21 @@ const dovetail = {
|
|
|
1632
1664
|
only_support_one_yaml,
|
|
1633
1665
|
not_support,
|
|
1634
1666
|
stopped,
|
|
1667
|
+
any_node_ip,
|
|
1635
1668
|
storage_class,
|
|
1636
|
-
|
|
1669
|
+
persistent_volume,
|
|
1637
1670
|
provisioner,
|
|
1638
|
-
file_system
|
|
1671
|
+
file_system,
|
|
1672
|
+
capacity,
|
|
1673
|
+
phase,
|
|
1674
|
+
volume_mode,
|
|
1675
|
+
access_mode,
|
|
1676
|
+
block,
|
|
1677
|
+
pv_phase_available,
|
|
1678
|
+
pv_phase_bound,
|
|
1679
|
+
pv_phase_released,
|
|
1680
|
+
pv_phase_failed,
|
|
1681
|
+
pv_phase_pending
|
|
1639
1682
|
};
|
|
1640
1683
|
const ZH = {
|
|
1641
1684
|
dovetail
|
|
@@ -8955,12 +8998,19 @@ class ResourceModel {
|
|
|
8955
8998
|
__publicField(this, "kind");
|
|
8956
8999
|
__publicField(this, "metadata");
|
|
8957
9000
|
this._rawYaml = _rawYaml;
|
|
8958
|
-
this._globalStore = _globalStore;
|
|
8959
9001
|
Object.keys(_rawYaml).forEach((key2) => {
|
|
8960
9002
|
Object.defineProperty(this, key2, {
|
|
8961
|
-
|
|
9003
|
+
get() {
|
|
9004
|
+
return _rawYaml[key2];
|
|
9005
|
+
}
|
|
8962
9006
|
});
|
|
8963
9007
|
});
|
|
9008
|
+
Object.defineProperty(this, "_globalStore", {
|
|
9009
|
+
get() {
|
|
9010
|
+
return _globalStore;
|
|
9011
|
+
},
|
|
9012
|
+
enumerable: false
|
|
9013
|
+
});
|
|
8964
9014
|
}
|
|
8965
9015
|
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
8966
9016
|
async init() {
|
|
@@ -8990,7 +9040,6 @@ class IngressModel extends ResourceModel {
|
|
|
8990
9040
|
super(_rawYaml, _globalStore);
|
|
8991
9041
|
__publicField(this, "flattenedRules", []);
|
|
8992
9042
|
this._rawYaml = _rawYaml;
|
|
8993
|
-
this._globalStore = _globalStore;
|
|
8994
9043
|
}
|
|
8995
9044
|
async init() {
|
|
8996
9045
|
var _a, _b, _c, _d;
|
|
@@ -9033,7 +9082,6 @@ class NetworkPolicyModel extends ResourceModel {
|
|
|
9033
9082
|
constructor(_rawYaml, _globalStore) {
|
|
9034
9083
|
super(_rawYaml, _globalStore);
|
|
9035
9084
|
this._rawYaml = _rawYaml;
|
|
9036
|
-
this._globalStore = _globalStore;
|
|
9037
9085
|
}
|
|
9038
9086
|
}
|
|
9039
9087
|
const BASE_INIT_VALUE = {
|
|
@@ -9615,7 +9663,6 @@ class WorkloadBaseModel extends ResourceModel {
|
|
|
9615
9663
|
constructor(_rawYaml, _globalStore) {
|
|
9616
9664
|
super(_rawYaml, _globalStore);
|
|
9617
9665
|
this._rawYaml = _rawYaml;
|
|
9618
|
-
this._globalStore = _globalStore;
|
|
9619
9666
|
}
|
|
9620
9667
|
get imageNames() {
|
|
9621
9668
|
var _a, _b, _c, _d;
|
|
@@ -9634,7 +9681,6 @@ class JobModel extends WorkloadBaseModel {
|
|
|
9634
9681
|
super(_rawYaml, _globalStore);
|
|
9635
9682
|
__publicField(this, "restarts", 0);
|
|
9636
9683
|
this._rawYaml = _rawYaml;
|
|
9637
|
-
this._globalStore = _globalStore;
|
|
9638
9684
|
}
|
|
9639
9685
|
async init() {
|
|
9640
9686
|
await this.getRestarts();
|
|
@@ -9702,7 +9748,6 @@ class WorkloadModel extends WorkloadBaseModel {
|
|
|
9702
9748
|
super(_rawYaml, _globalStore);
|
|
9703
9749
|
__publicField(this, "restarts", 0);
|
|
9704
9750
|
this._rawYaml = _rawYaml;
|
|
9705
|
-
this._globalStore = _globalStore;
|
|
9706
9751
|
}
|
|
9707
9752
|
async init() {
|
|
9708
9753
|
await this.getRestarts();
|
|
@@ -9823,7 +9868,6 @@ class PodModel extends WorkloadBaseModel {
|
|
|
9823
9868
|
__publicField(this, "request");
|
|
9824
9869
|
__publicField(this, "limit");
|
|
9825
9870
|
this._rawYaml = _rawYaml;
|
|
9826
|
-
this._globalStore = _globalStore;
|
|
9827
9871
|
let cpuRequestNum = 0;
|
|
9828
9872
|
let memoryRequestNum = 0;
|
|
9829
9873
|
let cpuLimitNum = 0;
|
|
@@ -9904,7 +9948,6 @@ class PodMetricsModel extends ResourceModel {
|
|
|
9904
9948
|
super(_rawYaml, _globalStore);
|
|
9905
9949
|
__publicField(this, "usage");
|
|
9906
9950
|
this._rawYaml = _rawYaml;
|
|
9907
|
-
this._globalStore = _globalStore;
|
|
9908
9951
|
let cpuUsageNum = 0;
|
|
9909
9952
|
let memoryUsageNum = 0;
|
|
9910
9953
|
for (const container2 of _rawYaml.containers) {
|
|
@@ -9933,7 +9976,6 @@ class CronJobModel extends WorkloadBaseModel {
|
|
|
9933
9976
|
constructor(_rawYaml, _globalStore) {
|
|
9934
9977
|
super(_rawYaml, _globalStore);
|
|
9935
9978
|
this._rawYaml = _rawYaml;
|
|
9936
|
-
this._globalStore = _globalStore;
|
|
9937
9979
|
}
|
|
9938
9980
|
get stateDisplay() {
|
|
9939
9981
|
var _a;
|
|
@@ -9961,7 +10003,6 @@ class EventModel extends ResourceModel {
|
|
|
9961
10003
|
constructor(_rawYaml, _globalStore) {
|
|
9962
10004
|
super(_rawYaml, _globalStore);
|
|
9963
10005
|
this._rawYaml = _rawYaml;
|
|
9964
|
-
this._globalStore = _globalStore;
|
|
9965
10006
|
this.id = _rawYaml.metadata.uid || _rawYaml.id;
|
|
9966
10007
|
}
|
|
9967
10008
|
}
|
|
@@ -9969,7 +10010,6 @@ class DeploymentModel extends WorkloadModel {
|
|
|
9969
10010
|
constructor(_rawYaml, _globalStore) {
|
|
9970
10011
|
super(_rawYaml, _globalStore);
|
|
9971
10012
|
this._rawYaml = _rawYaml;
|
|
9972
|
-
this._globalStore = _globalStore;
|
|
9973
10013
|
}
|
|
9974
10014
|
get stateDisplay() {
|
|
9975
10015
|
var _a, _b, _c;
|
|
@@ -9985,7 +10025,6 @@ class DaemonSetModel extends WorkloadModel {
|
|
|
9985
10025
|
constructor(_rawYaml, _globalStore) {
|
|
9986
10026
|
super(_rawYaml, _globalStore);
|
|
9987
10027
|
this._rawYaml = _rawYaml;
|
|
9988
|
-
this._globalStore = _globalStore;
|
|
9989
10028
|
}
|
|
9990
10029
|
get stateDisplay() {
|
|
9991
10030
|
var _a, _b;
|
|
@@ -10005,7 +10044,6 @@ class StatefulSetModel extends WorkloadModel {
|
|
|
10005
10044
|
constructor(_rawYaml, _globalStore) {
|
|
10006
10045
|
super(_rawYaml, _globalStore);
|
|
10007
10046
|
this._rawYaml = _rawYaml;
|
|
10008
|
-
this._globalStore = _globalStore;
|
|
10009
10047
|
}
|
|
10010
10048
|
get stateDisplay() {
|
|
10011
10049
|
var _a, _b, _c;
|
|
@@ -10029,7 +10067,6 @@ class ServiceModel extends ResourceModel {
|
|
|
10029
10067
|
constructor(_rawYaml, _globalStore) {
|
|
10030
10068
|
super(_rawYaml, _globalStore);
|
|
10031
10069
|
this._rawYaml = _rawYaml;
|
|
10032
|
-
this._globalStore = _globalStore;
|
|
10033
10070
|
}
|
|
10034
10071
|
get displayType() {
|
|
10035
10072
|
const spec = this._rawYaml.spec;
|
|
@@ -10068,7 +10105,6 @@ class NodeModel extends WorkloadBaseModel {
|
|
|
10068
10105
|
constructor(_rawYaml, _globalStore) {
|
|
10069
10106
|
super(_rawYaml, _globalStore);
|
|
10070
10107
|
this._rawYaml = _rawYaml;
|
|
10071
|
-
this._globalStore = _globalStore;
|
|
10072
10108
|
}
|
|
10073
10109
|
get role() {
|
|
10074
10110
|
return "node-role.kubernetes.io/control-plane" in (this.metadata.labels || {}) ? "Control Plane" : "Worker";
|
|
@@ -10093,7 +10129,6 @@ class StorageClassModel extends ResourceModel {
|
|
|
10093
10129
|
super(_rawYaml, _globalStore);
|
|
10094
10130
|
__publicField(this, "pvs", []);
|
|
10095
10131
|
this._rawYaml = _rawYaml;
|
|
10096
|
-
this._globalStore = _globalStore;
|
|
10097
10132
|
}
|
|
10098
10133
|
async init() {
|
|
10099
10134
|
const pvs = await this._globalStore.get("persistentvolumes", {
|
|
@@ -10112,14 +10147,12 @@ class PersistentVolumeModel extends ResourceModel {
|
|
|
10112
10147
|
constructor(_rawYaml, _globalStore) {
|
|
10113
10148
|
super(_rawYaml, _globalStore);
|
|
10114
10149
|
this._rawYaml = _rawYaml;
|
|
10115
|
-
this._globalStore = _globalStore;
|
|
10116
10150
|
}
|
|
10117
10151
|
}
|
|
10118
10152
|
class PersistentVolumeClaimModel extends ResourceModel {
|
|
10119
10153
|
constructor(_rawYaml, _globalStore) {
|
|
10120
10154
|
super(_rawYaml, _globalStore);
|
|
10121
10155
|
this._rawYaml = _rawYaml;
|
|
10122
|
-
this._globalStore = _globalStore;
|
|
10123
10156
|
}
|
|
10124
10157
|
}
|
|
10125
10158
|
const index_1lzkrja = "";
|
|
@@ -11489,6 +11522,27 @@ function KeyValueSecret(props) {
|
|
|
11489
11522
|
})
|
|
11490
11523
|
});
|
|
11491
11524
|
}
|
|
11525
|
+
function PVPhaseDisplay(props) {
|
|
11526
|
+
const { value: value2 } = props;
|
|
11527
|
+
const i18n2 = useTranslation();
|
|
11528
|
+
const map = {
|
|
11529
|
+
Available: i18n2.t("dovetail.pv_phase_available"),
|
|
11530
|
+
Bound: i18n2.t("dovetail.pv_phase_bound"),
|
|
11531
|
+
Failed: i18n2.t("dovetail.pv_phase_released"),
|
|
11532
|
+
Pending: i18n2.t("dovetail.pv_phase_failed"),
|
|
11533
|
+
Released: i18n2.t("dovetail.pv_phase_pending")
|
|
11534
|
+
};
|
|
11535
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: map[value2] || value2 });
|
|
11536
|
+
}
|
|
11537
|
+
function PVVolumeModeDisplay(props) {
|
|
11538
|
+
const { value: value2 } = props;
|
|
11539
|
+
const i18n2 = useTranslation();
|
|
11540
|
+
const map = {
|
|
11541
|
+
Block: i18n2.t("dovetail.block"),
|
|
11542
|
+
Filesystem: i18n2.t("dovetail.file_system")
|
|
11543
|
+
};
|
|
11544
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: map[value2] || value2 });
|
|
11545
|
+
}
|
|
11492
11546
|
const WorkloadPodsTable_1giuese = "";
|
|
11493
11547
|
const WorkloadPodsTable = ({
|
|
11494
11548
|
namespace: namespace2,
|
|
@@ -12154,13 +12208,6 @@ const StorageClassProvisionerField = (i18n2) => {
|
|
|
12154
12208
|
title: i18n2.t("dovetail.provisioner")
|
|
12155
12209
|
};
|
|
12156
12210
|
};
|
|
12157
|
-
const StorageClassFsTypeField = (i18n2) => {
|
|
12158
|
-
return {
|
|
12159
|
-
key: "fstype",
|
|
12160
|
-
path: ["parameters", "csi.storage.k8s.io/fstype"],
|
|
12161
|
-
title: i18n2.t("dovetail.file_system")
|
|
12162
|
-
};
|
|
12163
|
-
};
|
|
12164
12211
|
const StorageClassPvField = () => {
|
|
12165
12212
|
return {
|
|
12166
12213
|
key: "pvs",
|
|
@@ -12177,6 +12224,63 @@ const StorageClassPvField = () => {
|
|
|
12177
12224
|
}
|
|
12178
12225
|
};
|
|
12179
12226
|
};
|
|
12227
|
+
const PVCapacityField = (i18n2) => {
|
|
12228
|
+
return {
|
|
12229
|
+
key: "capacity",
|
|
12230
|
+
path: ["spec", "capacity", "storage"],
|
|
12231
|
+
title: i18n2.t("dovetail.capacity"),
|
|
12232
|
+
renderContent(value2) {
|
|
12233
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(Units.Byte, { rawValue: parseSi(value2), decimals: 1 });
|
|
12234
|
+
}
|
|
12235
|
+
};
|
|
12236
|
+
};
|
|
12237
|
+
const PVCStorageField = (i18n2) => {
|
|
12238
|
+
return {
|
|
12239
|
+
key: "storage",
|
|
12240
|
+
path: ["spec", "resources", "requests", "storage"],
|
|
12241
|
+
title: i18n2.t("dovetail.capacity"),
|
|
12242
|
+
renderContent(value2) {
|
|
12243
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(Units.Byte, { rawValue: parseSi(value2), decimals: 1 });
|
|
12244
|
+
}
|
|
12245
|
+
};
|
|
12246
|
+
};
|
|
12247
|
+
const PVStorageClassField = (i18n2) => {
|
|
12248
|
+
return {
|
|
12249
|
+
key: "storageClass",
|
|
12250
|
+
path: ["spec", "storageClassName"],
|
|
12251
|
+
title: i18n2.t("dovetail.storage_class"),
|
|
12252
|
+
renderContent(value2) {
|
|
12253
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(ResourceLink, { resourceName: "storageclasses", namespace: "", resourceId: value2 });
|
|
12254
|
+
}
|
|
12255
|
+
};
|
|
12256
|
+
};
|
|
12257
|
+
const PVPhaseField = (i18n2) => {
|
|
12258
|
+
return {
|
|
12259
|
+
key: "phase",
|
|
12260
|
+
path: ["status", "phase"],
|
|
12261
|
+
title: i18n2.t("dovetail.phase"),
|
|
12262
|
+
renderContent(value2) {
|
|
12263
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(PVPhaseDisplay, { value: value2 });
|
|
12264
|
+
}
|
|
12265
|
+
};
|
|
12266
|
+
};
|
|
12267
|
+
const PVVolumeModeField = (i18n2) => {
|
|
12268
|
+
return {
|
|
12269
|
+
key: "mode",
|
|
12270
|
+
path: ["spec", "volumeMode"],
|
|
12271
|
+
title: i18n2.t("dovetail.volume_mode"),
|
|
12272
|
+
renderContent(value2) {
|
|
12273
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(PVVolumeModeDisplay, { value: value2 });
|
|
12274
|
+
}
|
|
12275
|
+
};
|
|
12276
|
+
};
|
|
12277
|
+
const PVAccessModeField = (i18n2) => {
|
|
12278
|
+
return {
|
|
12279
|
+
key: "accessMode",
|
|
12280
|
+
path: ["spec", "accessModes"],
|
|
12281
|
+
title: i18n2.t("dovetail.access_mode")
|
|
12282
|
+
};
|
|
12283
|
+
};
|
|
12180
12284
|
function __rest(s2, e2) {
|
|
12181
12285
|
var t2 = {};
|
|
12182
12286
|
for (var p in s2)
|
|
@@ -18474,7 +18578,7 @@ const NetworkPolicyEgressRulesGroup = (i18n2) => ({
|
|
|
18474
18578
|
]
|
|
18475
18579
|
});
|
|
18476
18580
|
const StorageClassPvGroup = (i18n2) => ({
|
|
18477
|
-
title: i18n2.t("dovetail.
|
|
18581
|
+
title: i18n2.t("dovetail.persistent_volume"),
|
|
18478
18582
|
areas: [
|
|
18479
18583
|
{
|
|
18480
18584
|
fields: [StorageClassPvField()]
|
|
@@ -18982,7 +19086,8 @@ const NamespaceFilterStyle = "n1rqcyjn";
|
|
|
18982
19086
|
function ListPage(props) {
|
|
18983
19087
|
const {
|
|
18984
19088
|
selectedKeys,
|
|
18985
|
-
tableProps
|
|
19089
|
+
tableProps,
|
|
19090
|
+
contentClassName
|
|
18986
19091
|
} = props;
|
|
18987
19092
|
const {
|
|
18988
19093
|
Table: TableComponent
|
|
@@ -19011,7 +19116,7 @@ function ListPage(props) {
|
|
|
19011
19116
|
}
|
|
19012
19117
|
})]
|
|
19013
19118
|
}) : void 0, /* @__PURE__ */ jsxRuntimeExports.jsxs("div", {
|
|
19014
|
-
className: ListContentStyle,
|
|
19119
|
+
className: cx_default(ListContentStyle, contentClassName),
|
|
19015
19120
|
children: [!config.hideNamespacesFilter ? /* @__PURE__ */ jsxRuntimeExports.jsx(NamespacesFilter, {
|
|
19016
19121
|
className: NamespaceFilterStyle
|
|
19017
19122
|
}) : void 0, /* @__PURE__ */ jsxRuntimeExports.jsx("div", {
|
|
@@ -23076,7 +23181,7 @@ const Separator = () => {
|
|
|
23076
23181
|
});
|
|
23077
23182
|
};
|
|
23078
23183
|
const MonacoYamlEditor = React__default.lazy(() => Promise.resolve().then(() => MonacoYamlEditor$2));
|
|
23079
|
-
const MonacoYamlDiffEditor = React__default.lazy(() => import("./MonacoYamlDiffEditor-
|
|
23184
|
+
const MonacoYamlDiffEditor = React__default.lazy(() => import("./MonacoYamlDiffEditor-e737ae8d.js"));
|
|
23080
23185
|
const YamlEditorComponent = forwardRef(
|
|
23081
23186
|
function YamlEditorComponent2(props, ref) {
|
|
23082
23187
|
const {
|
|
@@ -24817,24 +24922,38 @@ const ProvisionerColumnRenderer = (i18n2) => {
|
|
|
24817
24922
|
sortable: true
|
|
24818
24923
|
};
|
|
24819
24924
|
};
|
|
24820
|
-
const
|
|
24925
|
+
const PVCapacityColumnRenderer = (i18n2) => {
|
|
24821
24926
|
return {
|
|
24822
|
-
key: "
|
|
24927
|
+
key: "capacity",
|
|
24823
24928
|
display: true,
|
|
24824
|
-
dataIndex: ["
|
|
24825
|
-
title: i18n2.t("dovetail.
|
|
24929
|
+
dataIndex: ["spec", "capacity", "storage"],
|
|
24930
|
+
title: i18n2.t("dovetail.capacity"),
|
|
24826
24931
|
width: 120,
|
|
24827
|
-
sortable: true
|
|
24932
|
+
sortable: true,
|
|
24933
|
+
align: "right",
|
|
24934
|
+
render(value2) {
|
|
24935
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(Units.Byte, {
|
|
24936
|
+
rawValue: parseSi(value2),
|
|
24937
|
+
decimals: 1
|
|
24938
|
+
});
|
|
24939
|
+
}
|
|
24828
24940
|
};
|
|
24829
24941
|
};
|
|
24830
|
-
const
|
|
24942
|
+
const PVCStorageColumnRenderer = (i18n2) => {
|
|
24831
24943
|
return {
|
|
24832
|
-
key: "
|
|
24944
|
+
key: "storage",
|
|
24833
24945
|
display: true,
|
|
24834
|
-
dataIndex: ["spec", "
|
|
24946
|
+
dataIndex: ["spec", "resources", "requests", "storage"],
|
|
24835
24947
|
title: i18n2.t("dovetail.capacity"),
|
|
24836
24948
|
width: 120,
|
|
24837
|
-
sortable: true
|
|
24949
|
+
sortable: true,
|
|
24950
|
+
align: "right",
|
|
24951
|
+
render(value2) {
|
|
24952
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(Units.Byte, {
|
|
24953
|
+
rawValue: parseSi(value2),
|
|
24954
|
+
decimals: 1
|
|
24955
|
+
});
|
|
24956
|
+
}
|
|
24838
24957
|
};
|
|
24839
24958
|
};
|
|
24840
24959
|
const PVStorageClassColumnRenderer = (i18n2) => {
|
|
@@ -24844,7 +24963,14 @@ const PVStorageClassColumnRenderer = (i18n2) => {
|
|
|
24844
24963
|
dataIndex: ["spec", "storageClassName"],
|
|
24845
24964
|
title: i18n2.t("dovetail.storage_class"),
|
|
24846
24965
|
width: 120,
|
|
24847
|
-
sortable: true
|
|
24966
|
+
sortable: true,
|
|
24967
|
+
render(value2) {
|
|
24968
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(ResourceLink, {
|
|
24969
|
+
resourceName: "storageclasses",
|
|
24970
|
+
namespace: "",
|
|
24971
|
+
resourceId: value2
|
|
24972
|
+
});
|
|
24973
|
+
}
|
|
24848
24974
|
};
|
|
24849
24975
|
};
|
|
24850
24976
|
const PVPhaseColumnRenderer = (i18n2) => {
|
|
@@ -24854,17 +24980,27 @@ const PVPhaseColumnRenderer = (i18n2) => {
|
|
|
24854
24980
|
dataIndex: ["status", "phase"],
|
|
24855
24981
|
title: i18n2.t("dovetail.phase"),
|
|
24856
24982
|
width: 120,
|
|
24857
|
-
sortable: true
|
|
24983
|
+
sortable: true,
|
|
24984
|
+
render(value2) {
|
|
24985
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(PVPhaseDisplay, {
|
|
24986
|
+
value: value2
|
|
24987
|
+
});
|
|
24988
|
+
}
|
|
24858
24989
|
};
|
|
24859
24990
|
};
|
|
24860
|
-
const
|
|
24991
|
+
const PVVolumeModeColumnRenderer = (i18n2) => {
|
|
24861
24992
|
return {
|
|
24862
24993
|
key: "mode",
|
|
24863
24994
|
display: true,
|
|
24864
24995
|
dataIndex: ["spec", "volumeMode"],
|
|
24865
24996
|
title: i18n2.t("dovetail.volume_mode"),
|
|
24866
24997
|
width: 120,
|
|
24867
|
-
sortable: true
|
|
24998
|
+
sortable: true,
|
|
24999
|
+
render(value2) {
|
|
25000
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(PVVolumeModeDisplay, {
|
|
25001
|
+
value: value2
|
|
25002
|
+
});
|
|
25003
|
+
}
|
|
24868
25004
|
};
|
|
24869
25005
|
};
|
|
24870
25006
|
const PVAccessModeColumnRenderer = (i18n2) => {
|
|
@@ -25101,11 +25237,11 @@ const dovetailRefineI18n = i18n;
|
|
|
25101
25237
|
export {
|
|
25102
25238
|
NamespaceSelectWidget as $,
|
|
25103
25239
|
AgeColumnRenderer as A,
|
|
25104
|
-
|
|
25240
|
+
PVStorageClassColumnRenderer as B,
|
|
25105
25241
|
CommonSorter as C,
|
|
25106
25242
|
DurationColumnRenderer as D,
|
|
25107
|
-
|
|
25108
|
-
|
|
25243
|
+
PVPhaseColumnRenderer as E,
|
|
25244
|
+
PVVolumeModeColumnRenderer as F,
|
|
25109
25245
|
PVAccessModeColumnRenderer as G,
|
|
25110
25246
|
ColumnKeys as H,
|
|
25111
25247
|
IngressRulesColumnRenderer as I,
|
|
@@ -25128,7 +25264,7 @@ export {
|
|
|
25128
25264
|
rfc1123LabelRules as Z,
|
|
25129
25265
|
rfc1035LabelRules as _,
|
|
25130
25266
|
useSchema as a,
|
|
25131
|
-
|
|
25267
|
+
BasicGroup as a$,
|
|
25132
25268
|
namespaceRules as a0,
|
|
25133
25269
|
KeyValueListWidget as a1,
|
|
25134
25270
|
MetadataForm as a2,
|
|
@@ -25157,15 +25293,15 @@ export {
|
|
|
25157
25293
|
PortsTableField as aP,
|
|
25158
25294
|
DurationField as aQ,
|
|
25159
25295
|
StorageClassProvisionerField as aR,
|
|
25160
|
-
|
|
25161
|
-
|
|
25162
|
-
|
|
25163
|
-
|
|
25164
|
-
|
|
25165
|
-
|
|
25166
|
-
|
|
25167
|
-
|
|
25168
|
-
|
|
25296
|
+
StorageClassPvField as aS,
|
|
25297
|
+
PVCapacityField as aT,
|
|
25298
|
+
PVCStorageField as aU,
|
|
25299
|
+
PVStorageClassField as aV,
|
|
25300
|
+
PVPhaseField as aW,
|
|
25301
|
+
PVVolumeModeField as aX,
|
|
25302
|
+
PVAccessModeField as aY,
|
|
25303
|
+
EventsTab as aZ,
|
|
25304
|
+
PodLogTab as a_,
|
|
25169
25305
|
ImageNames as aa,
|
|
25170
25306
|
ResourceList as ab,
|
|
25171
25307
|
ResourceShow as ac,
|
|
@@ -25193,102 +25329,109 @@ export {
|
|
|
25193
25329
|
JobsField as ay,
|
|
25194
25330
|
DataField as az,
|
|
25195
25331
|
useDeleteModal as b,
|
|
25196
|
-
|
|
25197
|
-
|
|
25198
|
-
|
|
25199
|
-
|
|
25200
|
-
|
|
25201
|
-
|
|
25202
|
-
|
|
25203
|
-
|
|
25204
|
-
|
|
25205
|
-
|
|
25206
|
-
|
|
25207
|
-
|
|
25208
|
-
|
|
25209
|
-
|
|
25210
|
-
|
|
25211
|
-
|
|
25212
|
-
|
|
25213
|
-
|
|
25214
|
-
|
|
25215
|
-
|
|
25216
|
-
|
|
25217
|
-
|
|
25218
|
-
|
|
25219
|
-
|
|
25220
|
-
|
|
25221
|
-
|
|
25222
|
-
|
|
25223
|
-
|
|
25224
|
-
|
|
25225
|
-
|
|
25226
|
-
|
|
25227
|
-
|
|
25228
|
-
|
|
25229
|
-
|
|
25230
|
-
|
|
25231
|
-
|
|
25232
|
-
|
|
25233
|
-
|
|
25234
|
-
|
|
25235
|
-
|
|
25236
|
-
|
|
25237
|
-
|
|
25238
|
-
|
|
25239
|
-
|
|
25240
|
-
|
|
25241
|
-
|
|
25242
|
-
|
|
25243
|
-
|
|
25244
|
-
|
|
25245
|
-
|
|
25246
|
-
|
|
25247
|
-
|
|
25248
|
-
|
|
25249
|
-
|
|
25250
|
-
|
|
25251
|
-
|
|
25252
|
-
|
|
25253
|
-
|
|
25254
|
-
|
|
25255
|
-
|
|
25256
|
-
|
|
25257
|
-
|
|
25258
|
-
|
|
25259
|
-
|
|
25332
|
+
SECRET_BASIC_AUTH_INIT_VALUE as b$,
|
|
25333
|
+
PodsGroup as b0,
|
|
25334
|
+
PodContainersGroup as b1,
|
|
25335
|
+
ServicePodsGroup as b2,
|
|
25336
|
+
ConditionsGroup as b3,
|
|
25337
|
+
SecretDataGroup as b4,
|
|
25338
|
+
JobsGroup as b5,
|
|
25339
|
+
IngressRulesGroup as b6,
|
|
25340
|
+
PodSelectorGroup as b7,
|
|
25341
|
+
PortsGroup as b8,
|
|
25342
|
+
DataGroup as b9,
|
|
25343
|
+
Tags as bA,
|
|
25344
|
+
TextTags as bB,
|
|
25345
|
+
PodLog as bC,
|
|
25346
|
+
NetworkPolicyRulesViewer as bD,
|
|
25347
|
+
PVPhaseDisplay as bE,
|
|
25348
|
+
PVVolumeModeDisplay as bF,
|
|
25349
|
+
Tabs as bG,
|
|
25350
|
+
ResourceSelect as bH,
|
|
25351
|
+
BASE_INIT_VALUE as bI,
|
|
25352
|
+
DEPLOYMENT_INIT_VALUE as bJ,
|
|
25353
|
+
CRONJOB_INIT_VALUE as bK,
|
|
25354
|
+
DAEMONSET_INIT_VALUE as bL,
|
|
25355
|
+
JOB_INIT_VALUE as bM,
|
|
25356
|
+
STATEFULSET_INIT_VALUE as bN,
|
|
25357
|
+
POD_INIT_VALUE as bO,
|
|
25358
|
+
SERVICE_CLUSTER_IP_INIT_VALUE as bP,
|
|
25359
|
+
SERVICE_NODE_PORT_INIT_VALUE as bQ,
|
|
25360
|
+
SERVICE_LOAD_BALANCER_INIT_VALUE as bR,
|
|
25361
|
+
SERVICE_EXTERNAL_NAME_INIT_VALUE as bS,
|
|
25362
|
+
SERVICE_HEADLESS_INIT_VALUE as bT,
|
|
25363
|
+
INGRESS_INIT_VALUE as bU,
|
|
25364
|
+
NETWORK_POLICY_INIT_VALUE as bV,
|
|
25365
|
+
CONFIG_MAP_INIT_VALUE as bW,
|
|
25366
|
+
SERVER_INSTANCE_INIT_VALUE as bX,
|
|
25367
|
+
TIMESTAMP_LABEL as bY,
|
|
25368
|
+
SECRET_OPAQUE_INIT_VALUE as bZ,
|
|
25369
|
+
SECRET_IMAGE_REPO_INIT_VALUE as b_,
|
|
25370
|
+
NetworkPolicyIngressRulesGroup as ba,
|
|
25371
|
+
NetworkPolicyEgressRulesGroup as bb,
|
|
25372
|
+
StorageClassPvGroup as bc,
|
|
25373
|
+
ShowGroupComponent as bd,
|
|
25374
|
+
ShowContent as be,
|
|
25375
|
+
DeleteManyButton as bf,
|
|
25376
|
+
ListPage as bg,
|
|
25377
|
+
StateTagStyle as bh,
|
|
25378
|
+
StateTag as bi,
|
|
25379
|
+
DrawerShow as bj,
|
|
25380
|
+
Menu as bk,
|
|
25381
|
+
EditButton as bl,
|
|
25382
|
+
ReferenceLink as bm,
|
|
25383
|
+
ResourceLink as bn,
|
|
25384
|
+
NS_STORE_KEY as bo,
|
|
25385
|
+
ALL_NS as bp,
|
|
25386
|
+
useNamespacesFilter as bq,
|
|
25387
|
+
NamespacesFilter as br,
|
|
25388
|
+
FormModal as bs,
|
|
25389
|
+
RefineFormContent as bt,
|
|
25390
|
+
RefineFormPage as bu,
|
|
25391
|
+
SchemaStrategy as bv,
|
|
25392
|
+
YamlForm as bw,
|
|
25393
|
+
useRefineForm as bx,
|
|
25394
|
+
ServiceInClusterAccessComponent as by,
|
|
25395
|
+
ServiceOutClusterAccessComponent as bz,
|
|
25260
25396
|
NameSpaceColumnRenderer as c,
|
|
25261
|
-
|
|
25262
|
-
|
|
25263
|
-
|
|
25264
|
-
|
|
25265
|
-
|
|
25266
|
-
|
|
25267
|
-
|
|
25268
|
-
|
|
25269
|
-
|
|
25270
|
-
|
|
25271
|
-
|
|
25272
|
-
|
|
25273
|
-
|
|
25274
|
-
|
|
25275
|
-
|
|
25276
|
-
|
|
25277
|
-
|
|
25278
|
-
|
|
25279
|
-
|
|
25280
|
-
|
|
25281
|
-
|
|
25282
|
-
|
|
25283
|
-
|
|
25284
|
-
|
|
25285
|
-
|
|
25286
|
-
|
|
25287
|
-
|
|
25288
|
-
|
|
25289
|
-
|
|
25290
|
-
|
|
25291
|
-
|
|
25397
|
+
SECRET_SSH_AUTH_INIT_VALUE as c0,
|
|
25398
|
+
SECRET_TLS_INIT_VALUE as c1,
|
|
25399
|
+
SECRET_CUSTOM_INIT_VALUE as c2,
|
|
25400
|
+
NODE_INIT_VALUE as c3,
|
|
25401
|
+
STORAGE_CLASS_INIT_VALUE as c4,
|
|
25402
|
+
WorkloadState as c5,
|
|
25403
|
+
AccessControlAuth as c6,
|
|
25404
|
+
Dovetail as c7,
|
|
25405
|
+
RESOURCE_GROUP as c8,
|
|
25406
|
+
FormType as c9,
|
|
25407
|
+
RelationPlugin as cA,
|
|
25408
|
+
relationPlugin as cB,
|
|
25409
|
+
ComponentContext as ca,
|
|
25410
|
+
GlobalStoreContext as cb,
|
|
25411
|
+
ConfigsContext as cc,
|
|
25412
|
+
IngressModel as cd,
|
|
25413
|
+
NetworkPolicyModel as ce,
|
|
25414
|
+
JobModel as cf,
|
|
25415
|
+
WorkloadModel as cg,
|
|
25416
|
+
WorkloadBaseModel as ch,
|
|
25417
|
+
PodModel as ci,
|
|
25418
|
+
PodMetricsModel as cj,
|
|
25419
|
+
ResourceModel as ck,
|
|
25420
|
+
CronJobModel as cl,
|
|
25421
|
+
EventModel as cm,
|
|
25422
|
+
DeploymentModel as cn,
|
|
25423
|
+
DaemonSetModel as co,
|
|
25424
|
+
StatefulSetModel as cp,
|
|
25425
|
+
ServiceTypeEnum as cq,
|
|
25426
|
+
ServiceModel as cr,
|
|
25427
|
+
NodeRole as cs,
|
|
25428
|
+
NodeModel as ct,
|
|
25429
|
+
StorageClassModel as cu,
|
|
25430
|
+
PersistentVolumeModel as cv,
|
|
25431
|
+
PersistentVolumeClaimModel as cw,
|
|
25432
|
+
ProviderPlugins as cx,
|
|
25433
|
+
ModelPlugin as cy,
|
|
25434
|
+
modelPlugin as cz,
|
|
25292
25435
|
dovetailRefineI18n as d,
|
|
25293
25436
|
WorkloadRestartsColumnRenderer as e,
|
|
25294
25437
|
NodeNameColumnRenderer as f,
|
|
@@ -25311,5 +25454,5 @@ export {
|
|
|
25311
25454
|
PortMappingColumnRenderer as w,
|
|
25312
25455
|
ProvisionerColumnRenderer as x,
|
|
25313
25456
|
PVCapacityColumnRenderer as y,
|
|
25314
|
-
|
|
25457
|
+
PVCStorageColumnRenderer as z
|
|
25315
25458
|
};
|