@prorobotech/openapi-k8s-toolkit 1.5.0-alpha.10 → 1.5.0-alpha.12
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/{index-DdLZFpsh.mjs → index-By6b9dtw.mjs} +2 -2
- package/dist/{index-DdLZFpsh.mjs.map → index-By6b9dtw.mjs.map} +1 -1
- package/dist/{index-d03WWr4w.mjs → index-DyxhwqLr.mjs} +198 -113
- package/dist/index-DyxhwqLr.mjs.map +1 -0
- package/dist/openapi-k8s-toolkit.es.js +1 -1
- package/dist/openapi-k8s-toolkit.umd.js +195 -110
- package/dist/openapi-k8s-toolkit.umd.js.map +1 -1
- package/dist/types/components/atoms/CursorPointerTag/CursorPointerTag.d.ts +33 -7
- package/dist/types/components/atoms/CursorPointerTagMinContent/CursorPointerTagMinContent.d.ts +33 -7
- package/dist/types/components/atoms/CustomSelect/styled.d.ts +1 -1
- package/dist/types/components/atoms/UncontrolledSelect/styled.d.ts +1 -1
- package/dist/types/components/molecules/BlackholeForm/atoms/ResetedFormItem/ResetedFormItem.d.ts +5 -6
- package/dist/types/components/molecules/BlackholeForm/organisms/BlackholeForm/styled.d.ts +2 -2
- package/dist/types/components/molecules/EnrichedTable/organisms/ClusterListTable/ClusterListTable.d.ts +3 -3
- package/dist/types/components/molecules/EnrichedTable/organisms/EnrichedTable/EnrichedTable.d.ts +3 -3
- package/dist/types/components/molecules/EnrichedTable/organisms/EnrichedTable/atoms/TinyButton/TinyButton.d.ts +26 -8
- package/dist/types/components/molecules/EnrichedTable/organisms/EnrichedTable/atoms/TrimmedTags/styled.d.ts +69 -16
- package/dist/types/components/molecules/EnrichedTable/organisms/EnrichedTable/types.d.ts +4 -0
- package/dist/types/components/molecules/EnrichedTable/organisms/EnrichedTable/utils.d.ts +3 -3
- package/dist/types/components/molecules/MarketPlace/atoms/AddCard/styled.d.ts +40 -4
- package/dist/types/components/molecules/MarketPlace/molecules/MarketplaceCard/styled.d.ts +33 -7
- package/dist/types/components/molecules/Search/styled.d.ts +71 -20
- package/dist/types/components/molecules/Terminals/PodLogsMonaco/styled.d.ts +26 -8
- package/dist/types/components/organisms/DynamicComponents/atoms/modals/AnnotationsEditModal/styled.d.ts +2 -2
- package/dist/types/components/organisms/DynamicComponents/atoms/modals/TaintsEditModal/styled.d.ts +2 -2
- package/dist/types/components/organisms/DynamicComponents/atoms/modals/TolerationsEditModal/styled.d.ts +2 -2
- package/dist/types/components/organisms/DynamicComponents/atoms/modals/gridColsValidation.d.ts +30 -0
- package/dist/types/components/organisms/DynamicComponents/atoms/modals/gridColsValidation.test.d.ts +1 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/ActionsDropdown/styled.d.ts +26 -8
- package/dist/types/components/organisms/DynamicComponents/molecules/DropdownRedirect/styled.d.ts +106 -33
- package/dist/types/components/organisms/DynamicRendererWithProviders/DynamicRendererWithProviders.d.ts +2 -0
- package/dist/types/components/organisms/DynamicRendererWithProviders/providers/factoryConfigProvider/factoryConfigProvider.d.ts +10 -2
- package/dist/types/components/organisms/DynamicRendererWithProviders/providers/factoryConfigProvider/factoryConfigProvider.test.d.ts +1 -1
- package/dist/types/components/organisms/DynamicRendererWithProviders/providers/factoryConfigProvider/index.d.ts +1 -0
- package/package.json +5 -5
- package/dist/index-d03WWr4w.mjs.map +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import styled, { css, createGlobalStyle } from 'styled-components';
|
|
2
2
|
import * as React$1 from 'react';
|
|
3
3
|
import React__default, { useState, Component, useRef, useReducer, useEffect, useCallback, useMemo, createContext, useContext, useLayoutEffect, Fragment, memo, createElement, isValidElement, cloneElement, useInsertionEffect, useSyncExternalStore, forwardRef, useImperativeHandle, PureComponent, Children, lazy, Suspense } from 'react';
|
|
4
|
-
import { Input, Tree, Modal, Alert, theme, Select, Tag, Flex, Typography, Result, Breadcrumb, Spin, Menu, Tooltip as Tooltip$1, Space, Button, ConfigProvider, Popover, Card as Card$2, Row, Col, Tabs, notification, Form, Switch, Segmented, Table, Progress, Statistic,
|
|
4
|
+
import { Input, Tree, Modal, Alert, theme, Select, Tag, Flex, Typography, Result, Breadcrumb, Spin, Menu, Tooltip as Tooltip$1, Space, Button, ConfigProvider, Popover, Card as Card$2, Row, Col, Tabs, notification, Form, Switch, Segmented, Table, Progress, Statistic, Checkbox, InputNumber, Upload, Dropdown, Slider, App, DatePicker, Radio, Empty } from 'antd';
|
|
5
5
|
import * as AntIcons from '@ant-design/icons';
|
|
6
6
|
import { LoadingOutlined, ExclamationCircleFilled, CloseCircleFilled, CheckCircleFilled, PlusOutlined, ClearOutlined, MinusOutlined, CaretDownOutlined, CaretRightOutlined, BulbOutlined, InfoCircleOutlined, SearchOutlined, EyeOutlined, EyeInvisibleOutlined, CopyOutlined, InboxOutlined, DeleteOutlined, WarningOutlined, MoreOutlined, DownOutlined, QuestionCircleOutlined, CheckOutlined, CloseOutlined, BugOutlined, EllipsisOutlined, PoweroffOutlined, FullscreenExitOutlined, FullscreenOutlined, SettingOutlined, ReloadOutlined } from '@ant-design/icons';
|
|
7
7
|
import { useNavigate, useSearchParams, useLocation, Link, useParams } from 'react-router-dom';
|
|
@@ -7982,7 +7982,7 @@ const DeleteModal = ({ name, onClose, endpoint }) => {
|
|
|
7982
7982
|
paddingRight: "30px"
|
|
7983
7983
|
}
|
|
7984
7984
|
},
|
|
7985
|
-
children: error && /* @__PURE__ */ jsxRuntimeExports.jsx(Alert, { type: "error",
|
|
7985
|
+
children: error && /* @__PURE__ */ jsxRuntimeExports.jsx(Alert, { type: "error", title: "Error while delete", description: error?.response?.data?.message })
|
|
7986
7986
|
}
|
|
7987
7987
|
);
|
|
7988
7988
|
};
|
|
@@ -8024,7 +8024,7 @@ const DeleteModalMany = ({ data, onClose }) => {
|
|
|
8024
8024
|
paddingRight: "30px"
|
|
8025
8025
|
}
|
|
8026
8026
|
},
|
|
8027
|
-
children: error && /* @__PURE__ */ jsxRuntimeExports.jsx(Alert, { type: "error",
|
|
8027
|
+
children: error && /* @__PURE__ */ jsxRuntimeExports.jsx(Alert, { type: "error", title: "Error while delete", description: error?.response?.data?.message })
|
|
8028
8028
|
}
|
|
8029
8029
|
);
|
|
8030
8030
|
};
|
|
@@ -8293,16 +8293,16 @@ const UncontrolledSelect$1 = styled(Select)`
|
|
|
8293
8293
|
cursor: ${({ $isCursorPointer }) => $isCursorPointer ? "pointer" : "default"} !important;
|
|
8294
8294
|
}
|
|
8295
8295
|
|
|
8296
|
-
|
|
8296
|
+
&&.ant-select {
|
|
8297
8297
|
background: none;
|
|
8298
8298
|
cursor: ${({ $isCursorPointer }) => $isCursorPointer ? "pointer" : "default"};
|
|
8299
8299
|
}
|
|
8300
8300
|
|
|
8301
|
-
|
|
8302
|
-
|
|
8303
|
-
|
|
8304
|
-
|
|
8305
|
-
|
|
8301
|
+
&&.ant-select,
|
|
8302
|
+
&&.ant-select-focused,
|
|
8303
|
+
&&.ant-select:focus,
|
|
8304
|
+
&&.ant-select:active,
|
|
8305
|
+
&&.ant-select-open {
|
|
8306
8306
|
align-items: flex-start;
|
|
8307
8307
|
outline: none !important;
|
|
8308
8308
|
outline-color: transparent !important;
|
|
@@ -8311,11 +8311,11 @@ const UncontrolledSelect$1 = styled(Select)`
|
|
|
8311
8311
|
padding-block: 4px !important;
|
|
8312
8312
|
}
|
|
8313
8313
|
|
|
8314
|
-
&& .ant-select-
|
|
8314
|
+
&& .ant-select-content {
|
|
8315
8315
|
gap: 4px;
|
|
8316
8316
|
}
|
|
8317
8317
|
|
|
8318
|
-
&& .ant-select-
|
|
8318
|
+
&& .ant-select-content-item-rest .ant-select-selection-item {
|
|
8319
8319
|
background: 0;
|
|
8320
8320
|
}
|
|
8321
8321
|
|
|
@@ -8342,16 +8342,16 @@ const CustomSelect$5 = styled(Select)`
|
|
|
8342
8342
|
|
|
8343
8343
|
/* stylelint-disable declaration-no-important */
|
|
8344
8344
|
|
|
8345
|
-
|
|
8345
|
+
&&&.ant-select {
|
|
8346
8346
|
background: none;
|
|
8347
8347
|
padding-inline-end: ${({ $paddingContainerEnd }) => $paddingContainerEnd || "12px"} !important;
|
|
8348
8348
|
}
|
|
8349
8349
|
|
|
8350
|
-
|
|
8351
|
-
|
|
8352
|
-
|
|
8353
|
-
|
|
8354
|
-
|
|
8350
|
+
&&.ant-select,
|
|
8351
|
+
&&.ant-select-focused,
|
|
8352
|
+
&&.ant-select:focus,
|
|
8353
|
+
&&.ant-select:active,
|
|
8354
|
+
&&.ant-select-open {
|
|
8355
8355
|
align-items: flex-start;
|
|
8356
8356
|
outline: none !important;
|
|
8357
8357
|
outline-color: transparent !important;
|
|
@@ -8360,11 +8360,11 @@ const CustomSelect$5 = styled(Select)`
|
|
|
8360
8360
|
padding-block: 4px !important;
|
|
8361
8361
|
}
|
|
8362
8362
|
|
|
8363
|
-
&& .ant-select-
|
|
8363
|
+
&& .ant-select-content {
|
|
8364
8364
|
gap: 4px;
|
|
8365
8365
|
}
|
|
8366
8366
|
|
|
8367
|
-
&& .ant-select-
|
|
8367
|
+
&& .ant-select-content-item-rest .ant-select-selection-item {
|
|
8368
8368
|
background: 0;
|
|
8369
8369
|
}
|
|
8370
8370
|
|
|
@@ -8375,7 +8375,7 @@ const CustomSelect$5 = styled(Select)`
|
|
|
8375
8375
|
padding-inline: 8px;
|
|
8376
8376
|
}
|
|
8377
8377
|
|
|
8378
|
-
|
|
8378
|
+
&&.ant-select-multiple .ant-select-content-item-suffix {
|
|
8379
8379
|
min-height: 22px !important;
|
|
8380
8380
|
margin-block: 0 !important;
|
|
8381
8381
|
}
|
|
@@ -35269,7 +35269,7 @@ const useAutoPerRequestError = (data) => {
|
|
|
35269
35269
|
const PerRequestError = ({ error }) => {
|
|
35270
35270
|
if (!error) return null;
|
|
35271
35271
|
const message = typeof error === "string" ? error : error.message;
|
|
35272
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(Alert, { type: "error", message, showIcon: true });
|
|
35272
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(Alert, { type: "error", title: message, showIcon: true });
|
|
35273
35273
|
};
|
|
35274
35274
|
|
|
35275
35275
|
const isExternalHref = (href) => {
|
|
@@ -36130,10 +36130,10 @@ const EnrichedTable$1 = ({
|
|
|
36130
36130
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(Flex, { justify: "center", children: /* @__PURE__ */ jsxRuntimeExports.jsx(Spin, {}) });
|
|
36131
36131
|
}
|
|
36132
36132
|
if (fetchUrlPrepared && fetchedDataError) {
|
|
36133
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(Alert, {
|
|
36133
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(Alert, { title: `An error has occurred: ${extractErrorMessage(fetchedDataError)}`, type: "error" });
|
|
36134
36134
|
}
|
|
36135
36135
|
if (k8sResourceToFetchPrepared && fetchedDataSocketError) {
|
|
36136
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(Alert, {
|
|
36136
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(Alert, { title: `An error has occurred: ${extractErrorMessage(fetchedDataSocketError)}`, type: "error" });
|
|
36137
36137
|
}
|
|
36138
36138
|
const dataFromOneOfHooks = fetchedData || fetchedDataSocket || {};
|
|
36139
36139
|
const items = Array.isArray(pathToItems) ? _$1.get(dataFromOneOfHooks || {}, pathToItems) : jp.query(dataFromOneOfHooks || {}, `$${pathToItems}`)[0];
|
|
@@ -44068,6 +44068,7 @@ const collapseManagedFieldsInEditor = async (editor) => {
|
|
|
44068
44068
|
};
|
|
44069
44069
|
|
|
44070
44070
|
const NOTIFICATION_KEY = "yaml-data-changed";
|
|
44071
|
+
const DESIGN_NEW_LAYOUT_EDITOR_HEIGHT_OFFSET = 24;
|
|
44071
44072
|
const YamlEditorSingleton$1 = ({
|
|
44072
44073
|
theme: theme$1,
|
|
44073
44074
|
cluster,
|
|
@@ -44090,6 +44091,7 @@ const YamlEditorSingleton$1 = ({
|
|
|
44090
44091
|
const [yamlData, setYamlData] = useState("");
|
|
44091
44092
|
const [isLoading, setIsLoading] = useState(false);
|
|
44092
44093
|
const [error, setError] = useState();
|
|
44094
|
+
const editorHeight = designNewLayout && !readOnly && designNewLayoutHeight ? Math.max(designNewLayoutHeight - DESIGN_NEW_LAYOUT_EDITOR_HEIGHT_OFFSET, 160) : designNewLayoutHeight;
|
|
44093
44095
|
const initialPrefillYamlRef = useRef(null);
|
|
44094
44096
|
const latestPrefillYamlRef = useRef(null);
|
|
44095
44097
|
const firstLoadRef = useRef(true);
|
|
@@ -44145,7 +44147,7 @@ const YamlEditorSingleton$1 = ({
|
|
|
44145
44147
|
);
|
|
44146
44148
|
api.info({
|
|
44147
44149
|
key: NOTIFICATION_KEY,
|
|
44148
|
-
|
|
44150
|
+
title: "Data changed",
|
|
44149
44151
|
description: "The source data has been updated. Reload to apply the latest changes (will discard your edits).",
|
|
44150
44152
|
btn,
|
|
44151
44153
|
placement: "bottomRight",
|
|
@@ -44188,7 +44190,7 @@ const YamlEditorSingleton$1 = ({
|
|
|
44188
44190
|
setIsLoading(false);
|
|
44189
44191
|
if (openNotification) {
|
|
44190
44192
|
api.success({
|
|
44191
|
-
|
|
44193
|
+
title: "Created successfully",
|
|
44192
44194
|
description: "Entry was created",
|
|
44193
44195
|
placement: "topRight"
|
|
44194
44196
|
});
|
|
@@ -44206,7 +44208,7 @@ const YamlEditorSingleton$1 = ({
|
|
|
44206
44208
|
setIsLoading(false);
|
|
44207
44209
|
if (openNotification) {
|
|
44208
44210
|
api.success({
|
|
44209
|
-
|
|
44211
|
+
title: "Updated successfully",
|
|
44210
44212
|
description: "Entry was updated",
|
|
44211
44213
|
placement: "bottomRight"
|
|
44212
44214
|
});
|
|
@@ -44220,12 +44222,12 @@ const YamlEditorSingleton$1 = ({
|
|
|
44220
44222
|
};
|
|
44221
44223
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
|
|
44222
44224
|
contextHolder,
|
|
44223
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(Styled$C.BorderRadiusContainer, { $designNewLayoutHeight:
|
|
44225
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Styled$C.BorderRadiusContainer, { $designNewLayoutHeight: editorHeight, $colorBorder: token.colorBorder, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
44224
44226
|
Ft$1,
|
|
44225
44227
|
{
|
|
44226
44228
|
defaultLanguage: "yaml",
|
|
44227
44229
|
width: "100%",
|
|
44228
|
-
height:
|
|
44230
|
+
height: editorHeight || "75vh",
|
|
44229
44231
|
value: yamlData,
|
|
44230
44232
|
onMount: (editor) => {
|
|
44231
44233
|
editorRef.current = editor;
|
|
@@ -44984,7 +44986,7 @@ const LabelsEditModal = ({
|
|
|
44984
44986
|
}
|
|
44985
44987
|
},
|
|
44986
44988
|
children: [
|
|
44987
|
-
error && /* @__PURE__ */ jsxRuntimeExports.jsx(Alert, { type: "error",
|
|
44989
|
+
error && /* @__PURE__ */ jsxRuntimeExports.jsx(Alert, { type: "error", title: "Error while submitting", description: error?.response?.data?.message }),
|
|
44988
44990
|
modalDescriptionText && /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
|
|
44989
44991
|
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { style: modalDescriptionTextStyle, children: modalDescriptionText }),
|
|
44990
44992
|
/* @__PURE__ */ jsxRuntimeExports.jsx(Spacer$1, { $space: 10, $samespace: true })
|
|
@@ -45041,6 +45043,27 @@ const LabelsEditModal = ({
|
|
|
45041
45043
|
);
|
|
45042
45044
|
};
|
|
45043
45045
|
|
|
45046
|
+
const ANTD_GRID_TOTAL = 24;
|
|
45047
|
+
const isNumberArray$1 = (value) => Array.isArray(value) && value.every((item) => typeof item === "number");
|
|
45048
|
+
const validateGridCols = (cols, { component, count, columns }) => {
|
|
45049
|
+
if (!isNumberArray$1(cols)) {
|
|
45050
|
+
return {
|
|
45051
|
+
valid: false,
|
|
45052
|
+
message: `[${component}] "cols" must be an array of ${count} numbers (${columns}). Got: ${JSON.stringify(cols)}.`
|
|
45053
|
+
};
|
|
45054
|
+
}
|
|
45055
|
+
const sum = cols.reduce((acc, span) => acc + span, 0);
|
|
45056
|
+
if (cols.length !== count || sum !== ANTD_GRID_TOTAL) {
|
|
45057
|
+
return {
|
|
45058
|
+
valid: false,
|
|
45059
|
+
message: `[${component}] "cols" expects exactly ${count} grid spans summing to ${ANTD_GRID_TOTAL} (${columns}). Got [${cols.join(
|
|
45060
|
+
", "
|
|
45061
|
+
)}] (length ${cols.length}, sum ${sum}). The modal layout will render incorrectly — fix "cols" in the factory config.`
|
|
45062
|
+
};
|
|
45063
|
+
}
|
|
45064
|
+
return { valid: true };
|
|
45065
|
+
};
|
|
45066
|
+
|
|
45044
45067
|
const ResetedFormList$3 = styled(Form.List)`
|
|
45045
45068
|
margin-bottom: 8px;
|
|
45046
45069
|
`;
|
|
@@ -45076,6 +45099,16 @@ const TaintsEditModal = ({
|
|
|
45076
45099
|
});
|
|
45077
45100
|
}
|
|
45078
45101
|
}, [open, form]);
|
|
45102
|
+
useEffect(() => {
|
|
45103
|
+
const result = validateGridCols(cols, {
|
|
45104
|
+
component: "Taints",
|
|
45105
|
+
count: 4,
|
|
45106
|
+
columns: "Key, Value, Effect, actions"
|
|
45107
|
+
});
|
|
45108
|
+
if (!result.valid) {
|
|
45109
|
+
console.warn(result.message);
|
|
45110
|
+
}
|
|
45111
|
+
}, [cols]);
|
|
45079
45112
|
const submit = () => {
|
|
45080
45113
|
form.validateFields().then(() => {
|
|
45081
45114
|
setIsLoading(true);
|
|
@@ -45120,7 +45153,7 @@ const TaintsEditModal = ({
|
|
|
45120
45153
|
}
|
|
45121
45154
|
},
|
|
45122
45155
|
children: [
|
|
45123
|
-
error && /* @__PURE__ */ jsxRuntimeExports.jsx(Alert, { type: "error",
|
|
45156
|
+
error && /* @__PURE__ */ jsxRuntimeExports.jsx(Alert, { type: "error", title: "Error while submitting", description: error?.response?.data?.message }),
|
|
45124
45157
|
modalDescriptionText && /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
|
|
45125
45158
|
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { style: modalDescriptionTextStyle, children: modalDescriptionText }),
|
|
45126
45159
|
/* @__PURE__ */ jsxRuntimeExports.jsx(Spacer$1, { $space: 10, $samespace: true })
|
|
@@ -45228,6 +45261,16 @@ const TolerationsEditModal = ({
|
|
|
45228
45261
|
});
|
|
45229
45262
|
}
|
|
45230
45263
|
}, [open, form]);
|
|
45264
|
+
useEffect(() => {
|
|
45265
|
+
const result = validateGridCols(cols, {
|
|
45266
|
+
component: "Tolerations",
|
|
45267
|
+
count: 5,
|
|
45268
|
+
columns: "Key, Operator, Value, Effect, actions"
|
|
45269
|
+
});
|
|
45270
|
+
if (!result.valid) {
|
|
45271
|
+
console.warn(result.message);
|
|
45272
|
+
}
|
|
45273
|
+
}, [cols]);
|
|
45231
45274
|
const submit = () => {
|
|
45232
45275
|
form.validateFields().then(() => {
|
|
45233
45276
|
setIsLoading(true);
|
|
@@ -45273,7 +45316,7 @@ const TolerationsEditModal = ({
|
|
|
45273
45316
|
}
|
|
45274
45317
|
},
|
|
45275
45318
|
children: [
|
|
45276
|
-
error && /* @__PURE__ */ jsxRuntimeExports.jsx(Alert, { type: "error",
|
|
45319
|
+
error && /* @__PURE__ */ jsxRuntimeExports.jsx(Alert, { type: "error", title: "Error while submitting", description: error?.response?.data?.message }),
|
|
45277
45320
|
modalDescriptionText && /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
|
|
45278
45321
|
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { style: modalDescriptionTextStyle, children: modalDescriptionText }),
|
|
45279
45322
|
/* @__PURE__ */ jsxRuntimeExports.jsx(Spacer$1, { $space: 10, $samespace: true })
|
|
@@ -45424,6 +45467,16 @@ const AnnotationsEditModal = ({
|
|
|
45424
45467
|
});
|
|
45425
45468
|
}
|
|
45426
45469
|
}, [open, form]);
|
|
45470
|
+
useEffect(() => {
|
|
45471
|
+
const result = validateGridCols(cols, {
|
|
45472
|
+
component: "Annotations",
|
|
45473
|
+
count: 3,
|
|
45474
|
+
columns: "Key, Value, actions"
|
|
45475
|
+
});
|
|
45476
|
+
if (!result.valid) {
|
|
45477
|
+
console.warn(result.message);
|
|
45478
|
+
}
|
|
45479
|
+
}, [cols]);
|
|
45427
45480
|
const submit = () => {
|
|
45428
45481
|
form.validateFields().then(() => {
|
|
45429
45482
|
const result = {};
|
|
@@ -45471,7 +45524,7 @@ const AnnotationsEditModal = ({
|
|
|
45471
45524
|
}
|
|
45472
45525
|
},
|
|
45473
45526
|
children: [
|
|
45474
|
-
error && /* @__PURE__ */ jsxRuntimeExports.jsx(Alert, { type: "error",
|
|
45527
|
+
error && /* @__PURE__ */ jsxRuntimeExports.jsx(Alert, { type: "error", title: "Error while submitting", description: error?.response?.data?.message }),
|
|
45475
45528
|
modalDescriptionText && /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
|
|
45476
45529
|
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { style: modalDescriptionTextStyle, children: modalDescriptionText }),
|
|
45477
45530
|
/* @__PURE__ */ jsxRuntimeExports.jsx(Spacer$1, { $space: 10, $samespace: true })
|
|
@@ -45650,7 +45703,7 @@ const Labels = ({ data, children }) => {
|
|
|
45650
45703
|
const linkPrefixPrepared = linkPrefix ? parseAll({ text: linkPrefix, replaceValues, multiQueryData }) : void 0;
|
|
45651
45704
|
const openNotificationSuccess = () => {
|
|
45652
45705
|
api.success({
|
|
45653
|
-
|
|
45706
|
+
title: notificationSuccessMessagePrepared,
|
|
45654
45707
|
description: notificationSuccessMessageDescriptionPrepared,
|
|
45655
45708
|
placement: "bottomRight"
|
|
45656
45709
|
});
|
|
@@ -45696,7 +45749,7 @@ const Labels = ({ data, children }) => {
|
|
|
45696
45749
|
setOpen(true);
|
|
45697
45750
|
},
|
|
45698
45751
|
icon: /* @__PURE__ */ jsxRuntimeExports.jsx(EditIcon, {}),
|
|
45699
|
-
|
|
45752
|
+
iconPlacement: "end",
|
|
45700
45753
|
children: "Edit"
|
|
45701
45754
|
}
|
|
45702
45755
|
) })
|
|
@@ -45828,7 +45881,7 @@ const Labels = ({ data, children }) => {
|
|
|
45828
45881
|
setOpen(true);
|
|
45829
45882
|
},
|
|
45830
45883
|
icon: /* @__PURE__ */ jsxRuntimeExports.jsx(EditIcon, {}),
|
|
45831
|
-
|
|
45884
|
+
iconPlacement: "end",
|
|
45832
45885
|
children: "Edit"
|
|
45833
45886
|
}
|
|
45834
45887
|
) })
|
|
@@ -46106,7 +46159,7 @@ const Taints = ({ data, children }) => {
|
|
|
46106
46159
|
const pathToValuePrepared = pathToValue ? parseAll({ text: pathToValue, replaceValues, multiQueryData }) : "no-pathToValue-provided";
|
|
46107
46160
|
const openNotificationSuccess = () => {
|
|
46108
46161
|
api.success({
|
|
46109
|
-
|
|
46162
|
+
title: notificationSuccessMessagePrepared,
|
|
46110
46163
|
description: notificationSuccessMessageDescriptionPrepared,
|
|
46111
46164
|
placement: "bottomRight"
|
|
46112
46165
|
});
|
|
@@ -46318,7 +46371,7 @@ const Tolerations = ({
|
|
|
46318
46371
|
const pathToValuePrepared = pathToValue ? parseAll({ text: pathToValue, replaceValues, multiQueryData }) : "no-pathToValue-provided";
|
|
46319
46372
|
const openNotificationSuccess = () => {
|
|
46320
46373
|
api.success({
|
|
46321
|
-
|
|
46374
|
+
title: notificationSuccessMessagePrepared,
|
|
46322
46375
|
description: notificationSuccessMessageDescriptionPrepared,
|
|
46323
46376
|
placement: "bottomRight"
|
|
46324
46377
|
});
|
|
@@ -46506,7 +46559,7 @@ const Annotations = ({
|
|
|
46506
46559
|
const pathToValuePrepared = pathToValue ? parseAll({ text: pathToValue, replaceValues, multiQueryData }) : "no-pathToValue-provided";
|
|
46507
46560
|
const openNotificationSuccess = () => {
|
|
46508
46561
|
api.success({
|
|
46509
|
-
|
|
46562
|
+
title: notificationSuccessMessagePrepared,
|
|
46510
46563
|
description: notificationSuccessMessageDescriptionPrepared,
|
|
46511
46564
|
placement: "bottomRight"
|
|
46512
46565
|
});
|
|
@@ -47559,7 +47612,7 @@ const DisabledTextArea = styled(Input.TextArea)`
|
|
|
47559
47612
|
${hiddenCursor}
|
|
47560
47613
|
`;
|
|
47561
47614
|
const NotificationOverrides = createGlobalStyle`
|
|
47562
|
-
.no-message-notif .ant-notification-notice-
|
|
47615
|
+
.no-message-notif .ant-notification-notice-title {
|
|
47563
47616
|
margin-bottom: 0 !important;
|
|
47564
47617
|
}
|
|
47565
47618
|
`;
|
|
@@ -47647,8 +47700,7 @@ const SecretBase64Plain = ({ data }) => {
|
|
|
47647
47700
|
if (valueToCopy !== null && valueToCopy !== void 0) {
|
|
47648
47701
|
await navigator.clipboard.writeText(valueToCopy);
|
|
47649
47702
|
notificationApi.info({
|
|
47650
|
-
|
|
47651
|
-
message: notificationText || "Text copied to clipboard",
|
|
47703
|
+
title: notificationText || "Text copied to clipboard",
|
|
47652
47704
|
placement: "bottomRight",
|
|
47653
47705
|
closeIcon: null,
|
|
47654
47706
|
style: {
|
|
@@ -47938,15 +47990,15 @@ const Events$1 = ({
|
|
|
47938
47990
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(PerRequestError, { error: errorToShow });
|
|
47939
47991
|
}
|
|
47940
47992
|
if (isPermissionCheckEnabled && (listPermission.isPending || watchPermission.isPending)) {
|
|
47941
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(Flex, { vertical: true, gap: 8, children: /* @__PURE__ */ jsxRuntimeExports.jsx(Alert, { type: "info",
|
|
47993
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(Flex, { vertical: true, gap: 8, children: /* @__PURE__ */ jsxRuntimeExports.jsx(Alert, { type: "info", title: "Checking permissions for events stream...", showIcon: true }) });
|
|
47942
47994
|
}
|
|
47943
47995
|
if (isPermissionCheckEnabled && (listPermission.isError || watchPermission.isError)) {
|
|
47944
47996
|
const statusCode = extractStatusCode(listPermission.error) ?? extractStatusCode(watchPermission.error);
|
|
47945
47997
|
const message = statusCode ? `Failed to check permissions for events stream (${statusCode})` : "Failed to check permissions for events stream";
|
|
47946
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(Flex, { vertical: true, gap: 8, children: /* @__PURE__ */ jsxRuntimeExports.jsx(Alert, { type: "error", message, showIcon: true }) });
|
|
47998
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(Flex, { vertical: true, gap: 8, children: /* @__PURE__ */ jsxRuntimeExports.jsx(Alert, { type: "error", title: message, showIcon: true }) });
|
|
47947
47999
|
}
|
|
47948
48000
|
if (isPermissionCheckEnabled && (listPermission.data?.status?.allowed !== true || watchPermission.data?.status?.allowed !== true)) {
|
|
47949
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(Flex, { vertical: true, gap: 8, children: /* @__PURE__ */ jsxRuntimeExports.jsx(Alert, { type: "error",
|
|
48001
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(Flex, { vertical: true, gap: 8, children: /* @__PURE__ */ jsxRuntimeExports.jsx(Alert, { type: "error", title: "Access denied (403)", showIcon: true }) });
|
|
47950
48002
|
}
|
|
47951
48003
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
|
|
47952
48004
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
@@ -48354,14 +48406,14 @@ const Toggler = ({ data, children }) => {
|
|
|
48354
48406
|
}) : "Success";
|
|
48355
48407
|
const openNotificationSuccess = () => {
|
|
48356
48408
|
api.success({
|
|
48357
|
-
|
|
48409
|
+
title: notificationSuccessMessagePrepared,
|
|
48358
48410
|
description: notificationSuccessMessageDescriptionPrepared,
|
|
48359
48411
|
placement: "bottomRight"
|
|
48360
48412
|
});
|
|
48361
48413
|
};
|
|
48362
48414
|
const openNotificationError = () => {
|
|
48363
48415
|
api.error({
|
|
48364
|
-
|
|
48416
|
+
title: notificationErrorMessagePrepared,
|
|
48365
48417
|
description: notificationErrorMessageDescriptionPrepared,
|
|
48366
48418
|
placement: "bottomRight"
|
|
48367
48419
|
});
|
|
@@ -48489,14 +48541,14 @@ const TogglerSegmented = ({
|
|
|
48489
48541
|
}) : "Success";
|
|
48490
48542
|
const openNotificationSuccess = () => {
|
|
48491
48543
|
api.success({
|
|
48492
|
-
|
|
48544
|
+
title: notificationSuccessMessagePrepared,
|
|
48493
48545
|
description: notificationSuccessMessageDescriptionPrepared,
|
|
48494
48546
|
placement: "bottomRight"
|
|
48495
48547
|
});
|
|
48496
48548
|
};
|
|
48497
48549
|
const openNotificationError = () => {
|
|
48498
48550
|
api.error({
|
|
48499
|
-
|
|
48551
|
+
title: notificationErrorMessagePrepared,
|
|
48500
48552
|
description: notificationErrorMessageDescriptionPrepared,
|
|
48501
48553
|
placement: "bottomRight"
|
|
48502
48554
|
});
|
|
@@ -78479,7 +78531,7 @@ const TitleSelect = styled(Select)`
|
|
|
78479
78531
|
&&.ant-select {
|
|
78480
78532
|
cursor: pointer;
|
|
78481
78533
|
|
|
78482
|
-
|
|
78534
|
+
&.ant-select {
|
|
78483
78535
|
border: none;
|
|
78484
78536
|
background: transparent;
|
|
78485
78537
|
box-shadow: none;
|
|
@@ -78488,25 +78540,23 @@ const TitleSelect = styled(Select)`
|
|
|
78488
78540
|
cursor: pointer;
|
|
78489
78541
|
}
|
|
78490
78542
|
|
|
78491
|
-
.ant-select-
|
|
78543
|
+
.ant-select-content {
|
|
78492
78544
|
font-size: 20px;
|
|
78493
78545
|
line-height: 24px;
|
|
78494
|
-
padding-inline-end: 24px;
|
|
78495
78546
|
cursor: pointer;
|
|
78496
78547
|
}
|
|
78497
78548
|
|
|
78498
|
-
.ant-select-
|
|
78549
|
+
.ant-select-suffix {
|
|
78499
78550
|
font-size: 14px;
|
|
78500
|
-
right: 0;
|
|
78501
78551
|
cursor: pointer;
|
|
78502
78552
|
color: inherit;
|
|
78503
78553
|
}
|
|
78504
78554
|
|
|
78505
|
-
&:hover
|
|
78555
|
+
&:hover {
|
|
78506
78556
|
border: none;
|
|
78507
78557
|
}
|
|
78508
78558
|
|
|
78509
|
-
&.ant-select-focused
|
|
78559
|
+
&.ant-select-focused {
|
|
78510
78560
|
border: none;
|
|
78511
78561
|
box-shadow: none;
|
|
78512
78562
|
}
|
|
@@ -78626,7 +78676,7 @@ const CopyButton = ({
|
|
|
78626
78676
|
tooltip,
|
|
78627
78677
|
style
|
|
78628
78678
|
} = data;
|
|
78629
|
-
const [
|
|
78679
|
+
const [notificationApi, contextHolder] = notification.useNotification();
|
|
78630
78680
|
const { data: multiQueryData, isLoading } = useMultiQuery();
|
|
78631
78681
|
const partsOfUrl = usePartsOfUrl();
|
|
78632
78682
|
const { shouldShowError, errorToShow } = useAutoPerRequestError(data);
|
|
@@ -78639,13 +78689,22 @@ const CopyButton = ({
|
|
|
78639
78689
|
try {
|
|
78640
78690
|
if (copyTextPrepared !== null && copyTextPrepared !== void 0 && copyTextPrepared !== "") {
|
|
78641
78691
|
await navigator.clipboard.writeText(copyTextPrepared);
|
|
78642
|
-
|
|
78692
|
+
notificationApi.success({
|
|
78693
|
+
title: successMessage,
|
|
78694
|
+
placement: "bottomRight"
|
|
78695
|
+
});
|
|
78643
78696
|
} else {
|
|
78644
|
-
|
|
78697
|
+
notificationApi.error({
|
|
78698
|
+
title: errorMessage,
|
|
78699
|
+
placement: "bottomRight"
|
|
78700
|
+
});
|
|
78645
78701
|
}
|
|
78646
78702
|
} catch (error) {
|
|
78647
78703
|
console.error("Copy to clipboard failed:", error);
|
|
78648
|
-
|
|
78704
|
+
notificationApi.error({
|
|
78705
|
+
title: errorMessage,
|
|
78706
|
+
placement: "bottomRight"
|
|
78707
|
+
});
|
|
78649
78708
|
}
|
|
78650
78709
|
};
|
|
78651
78710
|
if (isLoading) {
|
|
@@ -78728,7 +78787,7 @@ const LabelsModal = ({
|
|
|
78728
78787
|
const pathToValuePrepared = pathToValue ? parseAll({ text: pathToValue, replaceValues, multiQueryData }) : "no-pathToValue-provided";
|
|
78729
78788
|
const openNotificationSuccess = () => {
|
|
78730
78789
|
api.success({
|
|
78731
|
-
|
|
78790
|
+
title: notificationSuccessMessagePrepared,
|
|
78732
78791
|
description: notificationSuccessMessageDescriptionPrepared,
|
|
78733
78792
|
placement: "bottomRight"
|
|
78734
78793
|
});
|
|
@@ -78843,7 +78902,7 @@ const AnnotationsModal = ({
|
|
|
78843
78902
|
const pathToValuePrepared = pathToValue ? parseAll({ text: pathToValue, replaceValues, multiQueryData }) : "no-pathToValue-provided";
|
|
78844
78903
|
const openNotificationSuccess = () => {
|
|
78845
78904
|
api.success({
|
|
78846
|
-
|
|
78905
|
+
title: notificationSuccessMessagePrepared,
|
|
78847
78906
|
description: notificationSuccessMessageDescriptionPrepared,
|
|
78848
78907
|
placement: "bottomRight"
|
|
78849
78908
|
});
|
|
@@ -78948,7 +79007,7 @@ const TaintsModal = ({
|
|
|
78948
79007
|
const pathToValuePrepared = pathToValue ? parseAll({ text: pathToValue, replaceValues, multiQueryData }) : "no-pathToValue-provided";
|
|
78949
79008
|
const openNotificationSuccess = () => {
|
|
78950
79009
|
api.success({
|
|
78951
|
-
|
|
79010
|
+
title: notificationSuccessMessagePrepared,
|
|
78952
79011
|
description: notificationSuccessMessageDescriptionPrepared,
|
|
78953
79012
|
placement: "bottomRight"
|
|
78954
79013
|
});
|
|
@@ -79056,7 +79115,7 @@ const TolerationsModal = ({
|
|
|
79056
79115
|
const pathToValuePrepared = pathToValue ? parseAll({ text: pathToValue, replaceValues, multiQueryData }) : "no-pathToValue-provided";
|
|
79057
79116
|
const openNotificationSuccess = () => {
|
|
79058
79117
|
api.success({
|
|
79059
|
-
|
|
79118
|
+
title: notificationSuccessMessagePrepared,
|
|
79060
79119
|
description: notificationSuccessMessageDescriptionPrepared,
|
|
79061
79120
|
placement: "bottomRight"
|
|
79062
79121
|
});
|
|
@@ -79110,7 +79169,7 @@ const TolerationsModal = ({
|
|
|
79110
79169
|
};
|
|
79111
79170
|
|
|
79112
79171
|
const LazyEnrichedTableModal = lazy(
|
|
79113
|
-
() => import('./index-
|
|
79172
|
+
() => import('./index-By6b9dtw.mjs').then((mod) => ({ default: mod.EnrichedTableModal }))
|
|
79114
79173
|
);
|
|
79115
79174
|
const renderActiveType = (activeType, extraProps) => {
|
|
79116
79175
|
if (!activeType) return null;
|
|
@@ -80050,7 +80109,7 @@ const UsageGraphCard = ({
|
|
|
80050
80109
|
color: token.colorInfoBgHover,
|
|
80051
80110
|
styles: {
|
|
80052
80111
|
root: { marginTop: "-35px" },
|
|
80053
|
-
|
|
80112
|
+
container: { padding: 0, borderRadius: 6 }
|
|
80054
80113
|
},
|
|
80055
80114
|
children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
80056
80115
|
Styled$q.GradientBar,
|
|
@@ -80665,14 +80724,14 @@ const useDrainHandlers = (ctx, { showError }, notificationApi, invalidateMultiQu
|
|
|
80665
80724
|
const { drained, failed, skipped } = response.data;
|
|
80666
80725
|
if (failed.length > 0) {
|
|
80667
80726
|
notificationApi.warning({
|
|
80668
|
-
|
|
80727
|
+
title: `${drainLabel} partially completed`,
|
|
80669
80728
|
description: buildDrainFailureDescription({ drained, failed, skipped }),
|
|
80670
80729
|
placement: "bottomRight",
|
|
80671
80730
|
duration: 0
|
|
80672
80731
|
});
|
|
80673
80732
|
} else {
|
|
80674
80733
|
notificationApi.success({
|
|
80675
|
-
|
|
80734
|
+
title: `${drainLabel} successful`,
|
|
80676
80735
|
description: `Evicted ${drained} pod(s), skipped ${skipped}`,
|
|
80677
80736
|
placement: "bottomRight"
|
|
80678
80737
|
});
|
|
@@ -80792,7 +80851,7 @@ const useActionsDropdownHandlers = ({ replaceValues, multiQueryData }) => {
|
|
|
80792
80851
|
const showSuccess = (actionLabel) => {
|
|
80793
80852
|
invalidateMultiQuery();
|
|
80794
80853
|
notificationApi.success({
|
|
80795
|
-
|
|
80854
|
+
title: `${actionLabel} successful`,
|
|
80796
80855
|
placement: "bottomRight"
|
|
80797
80856
|
});
|
|
80798
80857
|
};
|
|
@@ -80807,7 +80866,7 @@ const useActionsDropdownHandlers = ({ replaceValues, multiQueryData }) => {
|
|
|
80807
80866
|
};
|
|
80808
80867
|
const showError = (actionLabel, error) => {
|
|
80809
80868
|
notificationApi.error({
|
|
80810
|
-
|
|
80869
|
+
title: `${actionLabel} failed`,
|
|
80811
80870
|
description: getErrorDescription(error),
|
|
80812
80871
|
placement: "bottomRight"
|
|
80813
80872
|
});
|
|
@@ -81088,7 +81147,7 @@ const OpenKubeletConfigModal = ({ open, onClose, props }) => {
|
|
|
81088
81147
|
{
|
|
81089
81148
|
type: "error",
|
|
81090
81149
|
showIcon: true,
|
|
81091
|
-
|
|
81150
|
+
title: "Failed to load kubelet config",
|
|
81092
81151
|
description: error instanceof Error ? error.message : "Unknown error"
|
|
81093
81152
|
}
|
|
81094
81153
|
),
|
|
@@ -81155,6 +81214,7 @@ const DownloadAsFilesModal = ({
|
|
|
81155
81214
|
resourceKind,
|
|
81156
81215
|
name
|
|
81157
81216
|
}) => {
|
|
81217
|
+
const { token } = theme.useToken();
|
|
81158
81218
|
const [selectedKeys, setSelectedKeys] = useState([]);
|
|
81159
81219
|
const { data, isLoading, isError, error } = useDirectUnknownResource({
|
|
81160
81220
|
uri: endpoint,
|
|
@@ -81209,7 +81269,7 @@ const DownloadAsFilesModal = ({
|
|
|
81209
81269
|
{
|
|
81210
81270
|
type: "error",
|
|
81211
81271
|
showIcon: true,
|
|
81212
|
-
|
|
81272
|
+
title: "Failed to load resource",
|
|
81213
81273
|
description: error instanceof Error ? error.message : "Unknown error"
|
|
81214
81274
|
}
|
|
81215
81275
|
),
|
|
@@ -81233,23 +81293,37 @@ const DownloadAsFilesModal = ({
|
|
|
81233
81293
|
}
|
|
81234
81294
|
) }),
|
|
81235
81295
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
81236
|
-
|
|
81296
|
+
"div",
|
|
81237
81297
|
{
|
|
81238
|
-
|
|
81239
|
-
|
|
81240
|
-
|
|
81241
|
-
|
|
81242
|
-
|
|
81243
|
-
|
|
81298
|
+
role: "list",
|
|
81299
|
+
style: {
|
|
81300
|
+
maxHeight: 400,
|
|
81301
|
+
overflow: "auto",
|
|
81302
|
+
border: `1px solid ${token.colorBorder}`,
|
|
81303
|
+
borderRadius: token.borderRadiusLG
|
|
81304
|
+
},
|
|
81305
|
+
children: entries.map((entry, index) => /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
81306
|
+
"div",
|
|
81244
81307
|
{
|
|
81245
|
-
|
|
81246
|
-
|
|
81247
|
-
|
|
81248
|
-
|
|
81249
|
-
|
|
81250
|
-
|
|
81251
|
-
|
|
81252
|
-
|
|
81308
|
+
role: "listitem",
|
|
81309
|
+
style: {
|
|
81310
|
+
padding: "4px 12px",
|
|
81311
|
+
borderBottom: index === entries.length - 1 ? void 0 : `1px solid ${token.colorSplit}`
|
|
81312
|
+
},
|
|
81313
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
81314
|
+
Checkbox,
|
|
81315
|
+
{
|
|
81316
|
+
checked: selectedKeys.includes(entry.key),
|
|
81317
|
+
onChange: (e) => handleToggleKey(entry.key, e.target.checked),
|
|
81318
|
+
children: [
|
|
81319
|
+
entry.key,
|
|
81320
|
+
entry.isBinary && /* @__PURE__ */ jsxRuntimeExports.jsx(Typography.Text, { type: "secondary", style: { marginLeft: 8 }, children: "(binary)" })
|
|
81321
|
+
]
|
|
81322
|
+
}
|
|
81323
|
+
)
|
|
81324
|
+
},
|
|
81325
|
+
`${entry.isBinary ? "binary" : "data"}:${entry.key}`
|
|
81326
|
+
))
|
|
81253
81327
|
}
|
|
81254
81328
|
)
|
|
81255
81329
|
] })
|
|
@@ -81488,7 +81562,7 @@ const CreateFromFilesModal = ({
|
|
|
81488
81562
|
paddingRight: "30px"
|
|
81489
81563
|
}
|
|
81490
81564
|
},
|
|
81491
|
-
children: /* @__PURE__ */ jsxRuntimeExports.jsxs(Space, {
|
|
81565
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsxs(Space, { orientation: "vertical", style: { width: "100%" }, size: "middle", children: [
|
|
81492
81566
|
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { children: [
|
|
81493
81567
|
/* @__PURE__ */ jsxRuntimeExports.jsx(Typography.Text, { strong: true, children: "Name" }),
|
|
81494
81568
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
@@ -82404,9 +82478,14 @@ const prepareUrlsToFetchForDynamicRenderer = ({
|
|
|
82404
82478
|
);
|
|
82405
82479
|
};
|
|
82406
82480
|
|
|
82407
|
-
const
|
|
82408
|
-
const FactoryConfigContextProvider =
|
|
82409
|
-
|
|
82481
|
+
const FactoryConfigContext = createContext({});
|
|
82482
|
+
const FactoryConfigContextProvider = ({
|
|
82483
|
+
children,
|
|
82484
|
+
value
|
|
82485
|
+
}) => {
|
|
82486
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(FactoryConfigContext.Provider, { value, children });
|
|
82487
|
+
};
|
|
82488
|
+
const useFactoryConfig = () => useContext(FactoryConfigContext);
|
|
82410
82489
|
|
|
82411
82490
|
const EffectiveAntdResultWrapper = ({
|
|
82412
82491
|
effectiveReqIndexes,
|
|
@@ -82430,6 +82509,7 @@ const DynamicRendererWithProviders = (props) => {
|
|
|
82430
82509
|
dataToApplyToContext,
|
|
82431
82510
|
theme,
|
|
82432
82511
|
nodeTerminalDefaultProfile,
|
|
82512
|
+
namespaceLabels,
|
|
82433
82513
|
disableEventBubbling,
|
|
82434
82514
|
effectiveReqIndexes,
|
|
82435
82515
|
effectiveItemsPath
|
|
@@ -82463,7 +82543,7 @@ const DynamicRendererWithProviders = (props) => {
|
|
|
82463
82543
|
e.stopPropagation();
|
|
82464
82544
|
}
|
|
82465
82545
|
},
|
|
82466
|
-
children: /* @__PURE__ */ jsxRuntimeExports.jsx(ThemeProvider, { theme, children: /* @__PURE__ */ jsxRuntimeExports.jsx(FactoryConfigContextProvider, { value: { nodeTerminalDefaultProfile }, children: /* @__PURE__ */ jsxRuntimeExports.jsx(PartsOfUrlProvider, { value: { partsOfUrl: location.pathname.split("/") }, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
82546
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx(ThemeProvider, { theme, children: /* @__PURE__ */ jsxRuntimeExports.jsx(FactoryConfigContextProvider, { value: { nodeTerminalDefaultProfile, namespaceLabels }, children: /* @__PURE__ */ jsxRuntimeExports.jsx(PartsOfUrlProvider, { value: { partsOfUrl: location.pathname.split("/") }, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
82467
82547
|
MultiQueryProvider,
|
|
82468
82548
|
{
|
|
82469
82549
|
items: [...preparedK8sResoucesUrls, ...preparedUrlsToFetch],
|
|
@@ -83530,7 +83610,7 @@ const EnrichedTableProvider = ({
|
|
|
83530
83610
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$n.LoadingContainer, { $minHeight: tableProps?.loadingMinHeight, children: /* @__PURE__ */ jsxRuntimeExports.jsx(Spin, {}) });
|
|
83531
83611
|
}
|
|
83532
83612
|
if (isError) {
|
|
83533
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(Alert, {
|
|
83613
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(Alert, { title: isError, type: "error" });
|
|
83534
83614
|
}
|
|
83535
83615
|
if (!preparedProps) {
|
|
83536
83616
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$n.LoadingContainer, { $minHeight: tableProps?.loadingMinHeight, children: /* @__PURE__ */ jsxRuntimeExports.jsx(Spin, {}) });
|
|
@@ -89184,7 +89264,7 @@ const BlackholeForm = ({
|
|
|
89184
89264
|
createNewEntry({ endpoint, body }).then((res) => {
|
|
89185
89265
|
const resName = res.data?.metadata?.name || name;
|
|
89186
89266
|
notificationApi.success({
|
|
89187
|
-
|
|
89267
|
+
title: `${kind} "${resName}" created successfully`,
|
|
89188
89268
|
placement: "bottomRight"
|
|
89189
89269
|
});
|
|
89190
89270
|
setIsLoading(false);
|
|
@@ -89204,7 +89284,7 @@ const BlackholeForm = ({
|
|
|
89204
89284
|
updateEntry({ endpoint, body }).then((res) => {
|
|
89205
89285
|
const resName = res.data?.metadata?.name || name;
|
|
89206
89286
|
notificationApi.success({
|
|
89207
|
-
|
|
89287
|
+
title: `${kind} "${resName}" updated successfully`,
|
|
89208
89288
|
placement: "bottomRight"
|
|
89209
89289
|
});
|
|
89210
89290
|
setIsLoading(false);
|
|
@@ -89454,7 +89534,7 @@ const BlackholeForm = ({
|
|
|
89454
89534
|
v = scrubLiteralWildcardKeys(form.getFieldsValue(true));
|
|
89455
89535
|
const formattedPaths = inactiveCleanupPaths.map((path) => prettyFieldPath(path)).join(", ");
|
|
89456
89536
|
notificationApi.info({
|
|
89457
|
-
|
|
89537
|
+
title: inactiveCleanupPaths.length === 1 ? "Cleared 1 inactive branch field" : `Cleared ${inactiveCleanupPaths.length} inactive branch fields`,
|
|
89458
89538
|
description: `Removed ${formattedPaths} to match the new selector.`,
|
|
89459
89539
|
placement: "bottomRight"
|
|
89460
89540
|
});
|
|
@@ -89909,7 +89989,7 @@ const BlackholeForm = ({
|
|
|
89909
89989
|
Alert,
|
|
89910
89990
|
{
|
|
89911
89991
|
type: "warning",
|
|
89912
|
-
|
|
89992
|
+
title: "Only the data from the form will be sent. Empty fields will be removed recursively."
|
|
89913
89993
|
}
|
|
89914
89994
|
)
|
|
89915
89995
|
] })
|
|
@@ -90175,7 +90255,7 @@ const BlackholeFormProvider = ({
|
|
|
90175
90255
|
);
|
|
90176
90256
|
}
|
|
90177
90257
|
if (isError) {
|
|
90178
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(Alert, {
|
|
90258
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(Alert, { title: isError, type: "error" });
|
|
90179
90259
|
}
|
|
90180
90260
|
if (!preparedData?.properties && !isError) {
|
|
90181
90261
|
return null;
|
|
@@ -90407,7 +90487,7 @@ const AddEditFormModal = ({
|
|
|
90407
90487
|
mode: "tags",
|
|
90408
90488
|
placeholder: "Enter tags. Separators: comma and space",
|
|
90409
90489
|
tokenSeparators: [",", " "],
|
|
90410
|
-
|
|
90490
|
+
styles: { popup: { root: { display: "none" } } }
|
|
90411
90491
|
}
|
|
90412
90492
|
) }),
|
|
90413
90493
|
/* @__PURE__ */ jsxRuntimeExports.jsx(Form.Item, { label: "Disabled", name: "disabled", children: /* @__PURE__ */ jsxRuntimeExports.jsx(Switch, {}) }),
|
|
@@ -90766,11 +90846,11 @@ const MarketPlace = ({
|
|
|
90766
90846
|
refetchInterval: false
|
|
90767
90847
|
});
|
|
90768
90848
|
const onCreateSuccess = () => api.success({
|
|
90769
|
-
|
|
90849
|
+
title: "Card created",
|
|
90770
90850
|
key: "create-marketplace-success"
|
|
90771
90851
|
});
|
|
90772
90852
|
const onUpdateSuccess = () => api.success({
|
|
90773
|
-
|
|
90853
|
+
title: "Card modified",
|
|
90774
90854
|
key: "update-marketplace-success"
|
|
90775
90855
|
});
|
|
90776
90856
|
useEffect(() => {
|
|
@@ -90833,7 +90913,7 @@ const MarketPlace = ({
|
|
|
90833
90913
|
Alert,
|
|
90834
90914
|
{
|
|
90835
90915
|
description: JSON.stringify(createUpdateError),
|
|
90836
|
-
|
|
90916
|
+
title: "Card was not created",
|
|
90837
90917
|
onClose: () => setCreateUpdateError(void 0),
|
|
90838
90918
|
type: "error"
|
|
90839
90919
|
}
|
|
@@ -90842,7 +90922,7 @@ const MarketPlace = ({
|
|
|
90842
90922
|
Alert,
|
|
90843
90923
|
{
|
|
90844
90924
|
description: JSON.stringify(deleteError),
|
|
90845
|
-
|
|
90925
|
+
title: "Card was not deleted",
|
|
90846
90926
|
onClose: () => setDeleteError(void 0),
|
|
90847
90927
|
type: "error"
|
|
90848
90928
|
}
|
|
@@ -91613,15 +91693,16 @@ const CustomSelect$2 = styled.div`
|
|
|
91613
91693
|
.ant-select:not(.ant-select-disabled) {
|
|
91614
91694
|
cursor: pointer;
|
|
91615
91695
|
|
|
91616
|
-
|
|
91696
|
+
&.ant-select {
|
|
91617
91697
|
cursor: pointer;
|
|
91618
91698
|
}
|
|
91619
91699
|
|
|
91620
|
-
.ant-select-
|
|
91700
|
+
.ant-select-input {
|
|
91621
91701
|
cursor: pointer;
|
|
91622
91702
|
}
|
|
91623
91703
|
|
|
91624
|
-
.ant-select-
|
|
91704
|
+
.ant-select-placeholder,
|
|
91705
|
+
.ant-select-content,
|
|
91625
91706
|
.ant-select-selection-item {
|
|
91626
91707
|
cursor: pointer;
|
|
91627
91708
|
}
|
|
@@ -91641,6 +91722,8 @@ const Styled$9 = {
|
|
|
91641
91722
|
};
|
|
91642
91723
|
|
|
91643
91724
|
const NodeTerminal = ({ cluster, nodeName, substractHeight, listPodTemplatesNs }) => {
|
|
91725
|
+
const { namespaceLabels } = useFactoryConfig();
|
|
91726
|
+
const namespaceLabel = namespaceLabels?.label?.toLowerCase() ?? "namespace";
|
|
91644
91727
|
const [selectedTemplate, setSelectedTemplate] = useState(null);
|
|
91645
91728
|
const [selectedContainer, setSelectedContainer] = useState(null);
|
|
91646
91729
|
const lifecycleEndpoint = `/api/clusters/${cluster}/openapi-bff-ws/terminal/terminalNode/terminalNode`;
|
|
@@ -91685,7 +91768,9 @@ const NodeTerminal = ({ cluster, nodeName, substractHeight, listPodTemplatesNs }
|
|
|
91685
91768
|
if (podTemplateNames.length === 0 && !isLoading) {
|
|
91686
91769
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(Styled$9.EmptyState, { children: [
|
|
91687
91770
|
/* @__PURE__ */ jsxRuntimeExports.jsxs(Typography.Text, { type: "secondary", children: [
|
|
91688
|
-
"No PodTemplates found in
|
|
91771
|
+
"No PodTemplates found in ",
|
|
91772
|
+
namespaceLabel,
|
|
91773
|
+
" “",
|
|
91689
91774
|
listPodTemplatesNs,
|
|
91690
91775
|
"”."
|
|
91691
91776
|
] }),
|
|
@@ -91888,7 +91973,7 @@ const PodLogs = ({ cluster, namespace, podName, containers, substractHeight }) =
|
|
|
91888
91973
|
var dayjs_min = {exports: {}};
|
|
91889
91974
|
|
|
91890
91975
|
(function (module, exports) {
|
|
91891
|
-
!function(t,e){module.exports=e();}(commonjsGlobal,(function(){var t=1e3,e=6e4,n=36e5,r="millisecond",i="second",s="minute",u="hour",a="day",o="week",c="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=/\[([^\]]+)]|
|
|
91976
|
+
!function(t,e){module.exports=e();}(commonjsGlobal,(function(){var t=1e3,e=6e4,n=36e5,r="millisecond",i="second",s="minute",u="hour",a="day",o="week",c="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=/\[([^\]]+)]|YYYY|YY|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(t){var e=["th","st","nd","rd"],n=t%100;return "["+t+(e[(n-20)%10]||e[n]||e[0])+"]"}},m=function(t,e,n){var r=String(t);return !r||r.length>=e?t:""+Array(e+1-r.length).join(n)+t},v={s:m,z:function(t){var e=-t.utcOffset(),n=Math.abs(e),r=Math.floor(n/60),i=n%60;return (e<=0?"+":"-")+m(r,2,"0")+":"+m(i,2,"0")},m:function t(e,n){if(e.date()<n.date())return -t(n,e);var r=12*(n.year()-e.year())+(n.month()-e.month()),i=e.clone().add(r,c),s=n-i<0,u=e.clone().add(r+(s?-1:1),c);return +(-(r+(n-i)/(s?i-u:u-i))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(t){return {M:c,y:h,w:o,d:a,D:d,h:u,m:s,s:i,ms:r,Q:f}[t]||String(t||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}},g="en",D={};D[g]=M;var p="$isDayjsObject",S=function(t){return t instanceof _||!(!t||!t[p])},w=function t(e,n,r){var i;if(!e)return g;if("string"==typeof e){var s=e.toLowerCase();D[s]&&(i=s),n&&(D[s]=n,i=s);var u=e.split("-");if(!i&&u.length>1)return t(u[0])}else {var a=e.name;D[a]=e,i=a;}return !r&&i&&(g=i),i||!r&&g},O=function(t,e){if(S(t))return t.clone();var n="object"==typeof e?e:{};return n.date=t,n.args=arguments,new _(n)},b=v;b.l=w,b.i=S,b.w=function(t,e){return O(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var _=function(){function M(t){this.$L=w(t.locale,null,true),this.parse(t),this.$x=this.$x||t.x||{},this[p]=true;}var m=M.prototype;return m.parse=function(t){this.$d=function(t){var e=t.date,n=t.utc;if(null===e)return new Date(NaN);if(b.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var r=e.match($);if(r){var i=r[2]-1||0,s=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,s)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,s)}}return new Date(e)}(t),this.init();},m.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds();},m.$utils=function(){return b},m.isValid=function(){return !(this.$d.toString()===l)},m.isSame=function(t,e){var n=O(t);return this.startOf(e)<=n&&n<=this.endOf(e)},m.isAfter=function(t,e){return O(t)<this.startOf(e)},m.isBefore=function(t,e){return this.endOf(e)<O(t)},m.$g=function(t,e,n){return b.u(t)?this[e]:this.set(n,t)},m.unix=function(){return Math.floor(this.valueOf()/1e3)},m.valueOf=function(){return this.$d.getTime()},m.startOf=function(t,e){var n=this,r=!!b.u(e)||e,f=b.p(t),l=function(t,e){var i=b.w(n.$u?Date.UTC(n.$y,e,t):new Date(n.$y,e,t),n);return r?i:i.endOf(a)},$=function(t,e){return b.w(n.toDate()[t].apply(n.toDate("s"),(r?[0,0,0,0]:[23,59,59,999]).slice(e)),n)},y=this.$W,M=this.$M,m=this.$D,v="set"+(this.$u?"UTC":"");switch(f){case h:return r?l(1,0):l(31,11);case c:return r?l(1,M):l(0,M+1);case o:var g=this.$locale().weekStart||0,D=(y<g?y+7:y)-g;return l(r?m-D:m+(6-D),M);case a:case d:return $(v+"Hours",0);case u:return $(v+"Minutes",1);case s:return $(v+"Seconds",2);case i:return $(v+"Milliseconds",3);default:return this.clone()}},m.endOf=function(t){return this.startOf(t,false)},m.$set=function(t,e){var n,o=b.p(t),f="set"+(this.$u?"UTC":""),l=(n={},n[a]=f+"Date",n[d]=f+"Date",n[c]=f+"Month",n[h]=f+"FullYear",n[u]=f+"Hours",n[s]=f+"Minutes",n[i]=f+"Seconds",n[r]=f+"Milliseconds",n)[o],$=o===a?this.$D+(e-this.$W):e;if(o===c||o===h){var y=this.clone().set(d,1);y.$d[l]($),y.init(),this.$d=y.set(d,Math.min(this.$D,y.daysInMonth())).$d;}else l&&this.$d[l]($);return this.init(),this},m.set=function(t,e){return this.clone().$set(t,e)},m.get=function(t){return this[b.p(t)]()},m.add=function(r,f){var d,l=this;r=Number(r);var $=b.p(f),y=function(t){var e=O(l);return b.w(e.date(e.date()+Math.round(t*r)),l)};if($===c)return this.set(c,this.$M+r);if($===h)return this.set(h,this.$y+r);if($===a)return y(1);if($===o)return y(7);var M=(d={},d[s]=e,d[u]=n,d[i]=t,d)[$]||1,m=this.$d.getTime()+r*M;return b.w(m,this)},m.subtract=function(t,e){return this.add(-1*t,e)},m.format=function(t){var e=this,n=this.$locale();if(!this.isValid())return n.invalidDate||l;var r=t||"YYYY-MM-DDTHH:mm:ssZ",i=b.z(this),s=this.$H,u=this.$m,a=this.$M,o=n.weekdays,c=n.months,f=n.meridiem,h=function(t,n,i,s){return t&&(t[n]||t(e,r))||i[n].slice(0,s)},d=function(t){return b.s(s%12||12,t,"0")},$=f||function(t,e,n){var r=t<12?"AM":"PM";return n?r.toLowerCase():r};return r.replace(y,(function(t,r){return r||function(t){switch(t){case "YY":return String(e.$y).slice(-2);case "YYYY":return b.s(e.$y,4,"0");case "M":return a+1;case "MM":return b.s(a+1,2,"0");case "MMM":return h(n.monthsShort,a,c,3);case "MMMM":return h(c,a);case "D":return e.$D;case "DD":return b.s(e.$D,2,"0");case "d":return String(e.$W);case "dd":return h(n.weekdaysMin,e.$W,o,2);case "ddd":return h(n.weekdaysShort,e.$W,o,3);case "dddd":return o[e.$W];case "H":return String(s);case "HH":return b.s(s,2,"0");case "h":return d(1);case "hh":return d(2);case "a":return $(s,u,true);case "A":return $(s,u,false);case "m":return String(u);case "mm":return b.s(u,2,"0");case "s":return String(e.$s);case "ss":return b.s(e.$s,2,"0");case "SSS":return b.s(e.$ms,3,"0");case "Z":return i}return null}(t)||i.replace(":","")}))},m.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},m.diff=function(r,d,l){var $,y=this,M=b.p(d),m=O(r),v=(m.utcOffset()-this.utcOffset())*e,g=this-m,D=function(){return b.m(y,m)};switch(M){case h:$=D()/12;break;case c:$=D();break;case f:$=D()/3;break;case o:$=(g-v)/6048e5;break;case a:$=(g-v)/864e5;break;case u:$=g/n;break;case s:$=g/e;break;case i:$=g/t;break;default:$=g;}return l?$:b.a($)},m.daysInMonth=function(){return this.endOf(c).$D},m.$locale=function(){return D[this.$L]},m.locale=function(t,e){if(!t)return this.$L;var n=this.clone(),r=w(t,e,true);return r&&(n.$L=r),n},m.clone=function(){return b.w(this.$d,this)},m.toDate=function(){return new Date(this.valueOf())},m.toJSON=function(){return this.isValid()?this.toISOString():null},m.toISOString=function(){return this.$d.toISOString()},m.toString=function(){return this.$d.toUTCString()},M}(),Y=_.prototype;return O.prototype=Y,[["$ms",r],["$s",i],["$m",s],["$H",u],["$W",a],["$M",c],["$y",h],["$D",d]].forEach((function(t){Y[t[1]]=function(e){return this.$g(e,t[0],t[1])};})),O.extend=function(t,e){return t.$i||(t(e,_,O),t.$i=true),O},O.locale=w,O.isDayjs=S,O.unix=function(t){return O(1e3*t)},O.en=D[g],O.Ls=D,O.p={},O}));
|
|
91892
91977
|
} (dayjs_min));
|
|
91893
91978
|
|
|
91894
91979
|
var dayjs_minExports = dayjs_min.exports;
|
|
@@ -91998,7 +92083,7 @@ const MonacoEditor = ({
|
|
|
91998
92083
|
if (!shownErrorsRef.current.has(errorKey)) {
|
|
91999
92084
|
shownErrorsRef.current.add(errorKey);
|
|
92000
92085
|
notificationApi.error({
|
|
92001
|
-
|
|
92086
|
+
title: "Log fetch error",
|
|
92002
92087
|
description: data.payload,
|
|
92003
92088
|
placement: "bottomRight",
|
|
92004
92089
|
duration: 10,
|
|
@@ -92117,7 +92202,7 @@ const CustomSelect = styled.div`
|
|
|
92117
92202
|
}
|
|
92118
92203
|
}
|
|
92119
92204
|
|
|
92120
|
-
.ant-select-
|
|
92205
|
+
.ant-select-placeholder {
|
|
92121
92206
|
overflow: hidden;
|
|
92122
92207
|
text-overflow: ellipsis;
|
|
92123
92208
|
white-space: nowrap;
|
|
@@ -92131,7 +92216,7 @@ const FilterInput = styled.div`
|
|
|
92131
92216
|
height: 32px;
|
|
92132
92217
|
}
|
|
92133
92218
|
|
|
92134
|
-
.ant-select-
|
|
92219
|
+
.ant-select-placeholder {
|
|
92135
92220
|
overflow: hidden;
|
|
92136
92221
|
text-overflow: ellipsis;
|
|
92137
92222
|
white-space: nowrap;
|
|
@@ -92248,7 +92333,7 @@ const PodLogsMonaco = ({
|
|
|
92248
92333
|
if (sinceTime && !isValidRFC3339(sinceTime) && !warningShownRef.current) {
|
|
92249
92334
|
warningShownRef.current = true;
|
|
92250
92335
|
notificationApi.warning({
|
|
92251
|
-
|
|
92336
|
+
title: "Invalid sinceTime format",
|
|
92252
92337
|
description: `Value "${sinceTime}" is not valid RFC3339. Expected format: "2024-01-01T00:00:00Z"`,
|
|
92253
92338
|
placement: "bottomRight",
|
|
92254
92339
|
duration: 10,
|
|
@@ -94074,7 +94159,7 @@ const Events = ({
|
|
|
94074
94159
|
const getPlural = kindsData?.kindsWithVersion ? pluralByKind(kindsData?.kindsWithVersion) : void 0;
|
|
94075
94160
|
const baseFactoriesMapping = navigationDataArr && navigationDataArr.items && navigationDataArr.items.length > 0 ? navigationDataArr.items[0].spec?.baseFactoriesMapping : void 0;
|
|
94076
94161
|
const listContent = (() => {
|
|
94077
|
-
if (fatalError && state.order.length === 0) return /* @__PURE__ */ jsxRuntimeExports.jsx(Alert, { type: "error",
|
|
94162
|
+
if (fatalError && state.order.length === 0) return /* @__PURE__ */ jsxRuntimeExports.jsx(Alert, { type: "error", title: fatalError, showIcon: true });
|
|
94078
94163
|
if (state.order.length > 0) {
|
|
94079
94164
|
return state.order.map((k) => /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
94080
94165
|
EventRow,
|
|
@@ -94816,4 +94901,4 @@ const usePluginManifest = ({
|
|
|
94816
94901
|
};
|
|
94817
94902
|
|
|
94818
94903
|
export { useCrdResourceSingle as $, getBuiltinResources as A, getBuiltinResourceSingle as B, getCrdResources as C, DeleteIcon as D, EnrichedTableProvider as E, getCrdResourceSingle as F, getApiResourceTypes as G, getApiResourceTypesByApiGroup as H, getBuiltinResourceTypes as I, getCrdData as J, getDirectUnknownResource as K, checkPermission as L, getSwagger as M, filterIfApiInstanceNamespaceScoped as N, filterIfBuiltInInstanceNamespaceScoped as O, PerRequestError as P, checkIfApiInstanceNamespaceScoped as Q, ReadOnlyModal as R, checkIfBuiltInInstanceNamespaceScoped as S, getKinds as T, useClusterList as U, useApiResources as V, useApiResourceSingle as W, useBuiltinResources as X, useBuiltinResourceSingle as Y, useCrdResources as Z, _$1 as _, useTheme as a, Search as a$, useApisResourceTypes as a0, useApiResourceTypesByGroup as a1, useBuiltinResourceTypes as a2, useCrdData as a3, useListWatch as a4, useInfiniteSentinel as a5, useK8sVerbs as a6, useManyK8sSmartResource as a7, useSmartResourceParams as a8, useResourceScope as a9, ResourceLink as aA, ResourceBadgeAbbr as aB, resourceBadgeAbbrCss as aC, ErrorBoundary as aD, ErrorBoundaryWithDataReset as aE, ManageableBreadcrumbsProvider as aF, prepareDataForManageableBreadcrumbs as aG, ManageableBreadcrumbs as aH, ManageableSidebarProvider as aI, prepareDataForManageableSidebar as aJ, ManageableSidebar as aK, EnrichedTable as aL, ClusterListTable as aM, getEnrichedColumns as aN, getEnrichedColumnsWithControls as aO, YamlEditorSingleton$1 as aP, BlackholeFormProvider as aQ, BlackholeForm as aR, getObjectFormItemsDraft as aS, MarketPlace as aT, MarketplaceCard as aU, ProjectInfoCard as aV, PodTerminal as aW, NodeTerminal as aX, PodLogs as aY, PodLogsMonaco as aZ, VMVNC as a_, useKinds as aa, useKindsRaw as ab, usePluginManifest as ac, Spacer$1 as ad, TreeWithSearch as ae, ConfirmModal as af, UpIcon as ag, DownIcon as ah, BackToDefaultIcon as ai, SuccessIcon as aj, feedbackIcons as ak, PlusIcon as al, MinusIcon as am, LockedIcon as an, UnlockedIcon as ao, PauseCircleIcon as ap, ResumeCircleIcon as aq, LookingGlassIcon as ar, EarthIcon as as, ContentCard$1 as at, FlexGrow as au, UncontrolledSelect as av, CustomSelect$4 as aw, CursorPointerTag as ax, CursorPointerTagMinContent as ay, CursorDefaultDiv as az, usePartsOfUrl as b, Events as b0, DynamicRenderer as b1, DynamicComponents as b2, DynamicRendererWithProviders as b3, prepareTemplate as b4, isFlatObject as b5, filterSelectOptions as b6, getStringByName as b7, floorToDecimal as b8, parseQuotaValue as b9, formatBytesAuto as bA, toBytes as bB, convertStorage as bC, parseValueWithUnit as bD, convertCores as bE, formatCoresAuto as bF, toCores as bG, convertCompute as bH, parseCoresWithUnit as bI, formatDateAuto as bJ, isValidRFC3339 as bK, parseQuotaValueCpu as ba, parseQuotaValueMemoryAndStorage as bb, normalizeValuesForQuotasToNumber as bc, getAllPathsFromObj as bd, getPrefixSubarrays as be, groupsToTreeData as bf, getBuiltinTreeData as bg, getGroupsByCategory as bh, createContextFactory as bi, prepareUrlsToFetchForDynamicRenderer as bj, deepMerge as bk, getSortedKinds as bl, getSortedKindsAll as bm, hslFromString as bn, getUppercase as bo, kindByGvr as bp, pluralByKind as bq, namespacedByGvr as br, getLinkToBuiltinForm as bs, getLinkToApiForm as bt, isMultilineString as bu, isMultilineFromYaml as bv, includesArray as bw, getResourceLink as bx, getNamespaceLink as by, convertBytes as bz, useAutoPerRequestError as c, usePermissions as d, useDirectUnknownResource as e, useK8sSmartResource as f, jsxRuntimeExports as g, EditIcon as h, PaddingContainer as i, jp as j, getLinkToForm as k, DeleteModal as l, mergePerRequestErrors as m, DeleteModalMany as n, getClusterList as o, parseAll as p, createNewEntry as q, updateEntry as r, serializeLabelsWithNoEncoding$1 as s, deleteEntry as t, useMultiQuery as u, patchEntryWithReplaceOp as v, patchEntryWithMergePatch as w, patchEntryWithDeleteOp as x, getApiResources as y, getApiResourceSingle as z };
|
|
94819
|
-
//# sourceMappingURL=index-
|
|
94904
|
+
//# sourceMappingURL=index-DyxhwqLr.mjs.map
|