ydb-embedded-ui 6.19.0 → 6.21.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/components/CriticalActionDialog/CriticalActionDialog.d.ts +2 -1
- package/dist/components/CriticalActionDialog/CriticalActionDialog.js +11 -3
- package/dist/components/CriticalActionDialog/CriticalActionDialog.js.map +1 -1
- package/dist/components/CriticalActionDialog/i18n/en.json +2 -1
- package/dist/components/CriticalActionDialog/i18n/index.d.ts +1 -1
- package/dist/components/DiskStateProgressBar/DiskStateProgressBar.scss +7 -36
- package/dist/components/PDiskInfo/PDiskInfo.js +2 -1
- package/dist/components/PDiskInfo/PDiskInfo.js.map +1 -1
- package/dist/components/PDiskInfo/PDiskInfo.scss +0 -14
- package/dist/components/StorageGroupInfo/StorageGroupInfo.d.ts +8 -0
- package/dist/components/StorageGroupInfo/StorageGroupInfo.js +123 -0
- package/dist/components/StorageGroupInfo/StorageGroupInfo.js.map +1 -0
- package/dist/components/StorageGroupInfo/i18n/en.json +22 -0
- package/dist/components/StorageGroupInfo/i18n/index.d.ts +1 -0
- package/dist/components/StorageGroupInfo/i18n/index.js +5 -0
- package/dist/components/StorageGroupInfo/i18n/index.js.map +1 -0
- package/dist/components/TabletsStatistic/TabletsStatistic.d.ts +2 -4
- package/dist/components/TabletsStatistic/TabletsStatistic.js.map +1 -1
- package/dist/components/Tag/Tag.d.ts +2 -1
- package/dist/components/Tag/Tag.js.map +1 -1
- package/dist/components/Tags/Tags.d.ts +2 -1
- package/dist/components/Tags/Tags.js.map +1 -1
- package/dist/containers/App/Content.js +7 -1
- package/dist/containers/App/Content.js.map +1 -1
- package/dist/containers/App/appSlots.d.ts +6 -0
- package/dist/containers/App/appSlots.js +1 -0
- package/dist/containers/App/appSlots.js.map +1 -1
- package/dist/containers/Cluster/ClusterInfo/ClusterInfo.js +3 -112
- package/dist/containers/Cluster/ClusterInfo/ClusterInfo.js.map +1 -1
- package/dist/containers/Cluster/ClusterInfo/ClusterInfo.scss +7 -14
- package/dist/containers/Cluster/ClusterInfo/components/DiskGroupsStatsBars/DiskGroupsStatsBars.d.ts +7 -0
- package/dist/containers/Cluster/ClusterInfo/components/DiskGroupsStatsBars/DiskGroupsStatsBars.js +43 -0
- package/dist/containers/Cluster/ClusterInfo/components/DiskGroupsStatsBars/DiskGroupsStatsBars.js.map +1 -0
- package/dist/containers/Cluster/ClusterInfo/components/DiskGroupsStatsBars/DiskGroupsStatsBars.scss +11 -0
- package/dist/containers/Cluster/ClusterInfo/components/NodesState/NodesState.d.ts +8 -0
- package/dist/containers/Cluster/ClusterInfo/components/NodesState/NodesState.js +8 -0
- package/dist/containers/Cluster/ClusterInfo/components/NodesState/NodesState.js.map +1 -0
- package/dist/containers/Cluster/ClusterInfo/components/NodesState/NodesState.scss +16 -0
- package/dist/containers/Cluster/ClusterInfo/shared.d.ts +1 -0
- package/dist/containers/Cluster/ClusterInfo/shared.js +3 -0
- package/dist/containers/Cluster/ClusterInfo/shared.js.map +1 -0
- package/dist/containers/Cluster/ClusterInfo/utils.d.ts +12 -0
- package/dist/containers/Cluster/ClusterInfo/utils.js +145 -0
- package/dist/containers/Cluster/ClusterInfo/utils.js.map +1 -1
- package/dist/containers/Cluster/i18n/en.json +7 -1
- package/dist/containers/Cluster/i18n/index.d.ts +1 -1
- package/dist/containers/Cluster/i18n/index.js +1 -2
- package/dist/containers/Cluster/i18n/index.js.map +1 -1
- package/dist/containers/Header/breadcrumbs.js +14 -0
- package/dist/containers/Header/breadcrumbs.js.map +1 -1
- package/dist/containers/Header/i18n/en.json +2 -1
- package/dist/containers/Header/i18n/index.d.ts +1 -1
- package/dist/containers/Nodes/Nodes.js +3 -13
- package/dist/containers/Nodes/Nodes.js.map +1 -1
- package/dist/containers/PDiskPage/DecommissionButton/DecommissionButton.js +1 -1
- package/dist/containers/PDiskPage/DecommissionButton/DecommissionButton.js.map +1 -1
- package/dist/containers/PDiskPage/PDiskPage.js +1 -1
- package/dist/containers/PDiskPage/PDiskPage.js.map +1 -1
- package/dist/containers/PDiskPage/PDiskPage.scss +15 -4
- package/dist/containers/Storage/StorageGroups/columns/getStorageGroupsColumns.js +3 -1
- package/dist/containers/Storage/StorageGroups/columns/getStorageGroupsColumns.js.map +1 -1
- package/dist/containers/StorageGroupPage/StorageGroupPage.d.ts +2 -0
- package/dist/containers/StorageGroupPage/StorageGroupPage.js +117 -0
- package/dist/containers/StorageGroupPage/StorageGroupPage.js.map +1 -0
- package/dist/containers/StorageGroupPage/StorageGroupPage.scss +40 -0
- package/dist/containers/StorageGroupPage/i18n/en.json +6 -0
- package/dist/containers/StorageGroupPage/i18n/index.d.ts +1 -0
- package/dist/containers/StorageGroupPage/i18n/index.js +5 -0
- package/dist/containers/StorageGroupPage/i18n/index.js.map +1 -0
- package/dist/containers/Tenant/Diagnostics/Diagnostics.js +4 -2
- package/dist/containers/Tenant/Diagnostics/Diagnostics.js.map +1 -1
- package/dist/containers/Tenant/Diagnostics/DiagnosticsPages.d.ts +30 -0
- package/dist/containers/Tenant/Diagnostics/DiagnosticsPages.js +5 -0
- package/dist/containers/Tenant/Diagnostics/DiagnosticsPages.js.map +1 -1
- package/dist/containers/UserSettings/i18n/en.json +0 -2
- package/dist/containers/UserSettings/i18n/index.d.ts +1 -1
- package/dist/containers/UserSettings/settings.d.ts +0 -1
- package/dist/containers/UserSettings/settings.js +2 -12
- package/dist/containers/UserSettings/settings.js.map +1 -1
- package/dist/routes.d.ts +3 -0
- package/dist/routes.js +5 -0
- package/dist/routes.js.map +1 -1
- package/dist/services/api.d.ts +3 -6
- package/dist/services/api.js +1 -6
- package/dist/services/api.js.map +1 -1
- package/dist/services/settings.d.ts +0 -1
- package/dist/services/settings.js +1 -2
- package/dist/services/settings.js.map +1 -1
- package/dist/store/reducers/capabilities/hooks.d.ts +1 -0
- package/dist/store/reducers/capabilities/hooks.js +3 -0
- package/dist/store/reducers/capabilities/hooks.js.map +1 -1
- package/dist/store/reducers/cluster/cluster.js +10 -1
- package/dist/store/reducers/cluster/cluster.js.map +1 -1
- package/dist/store/reducers/cluster/utils.d.ts +3 -1
- package/dist/store/reducers/cluster/utils.js +9 -3
- package/dist/store/reducers/cluster/utils.js.map +1 -1
- package/dist/store/reducers/executeQuery.js +1 -1
- package/dist/store/reducers/executeQuery.js.map +1 -1
- package/dist/store/reducers/explainQuery/utils.d.ts +1 -1
- package/dist/store/reducers/explainQuery/utils.js.map +1 -1
- package/dist/store/reducers/header/types.d.ts +5 -2
- package/dist/store/reducers/nodes/nodes.d.ts +1 -2
- package/dist/store/reducers/nodes/nodes.js +1 -16
- package/dist/store/reducers/nodes/nodes.js.map +1 -1
- package/dist/store/reducers/nodes/types.d.ts +2 -6
- package/dist/store/reducers/nodes/utils.d.ts +1 -4
- package/dist/store/reducers/nodes/utils.js +1 -41
- package/dist/store/reducers/nodes/utils.js.map +1 -1
- package/dist/store/reducers/storage/types.d.ts +19 -0
- package/dist/store/reducers/storage/utils.js +7 -2
- package/dist/store/reducers/storage/utils.js.map +1 -1
- package/dist/store/reducers/viewSchema/viewSchema.js +1 -1
- package/dist/store/reducers/viewSchema/viewSchema.js.map +1 -1
- package/dist/styles/mixins.scss +45 -0
- package/dist/types/api/capabilities.d.ts +1 -1
- package/dist/types/api/cluster.d.ts +31 -1
- package/dist/types/api/cluster.js +3 -1
- package/dist/types/api/cluster.js.map +1 -1
- package/dist/types/api/meta.d.ts +5 -2
- package/dist/utils/constants.d.ts +0 -1
- package/dist/utils/constants.js +0 -1
- package/dist/utils/constants.js.map +1 -1
- package/dist/utils/nodes.d.ts +1 -2
- package/dist/utils/nodes.js.map +1 -1
- package/dist/utils/versions/parseNodesToVersionsValues.d.ts +1 -1
- package/dist/utils/versions/parseNodesToVersionsValues.js +3 -2
- package/dist/utils/versions/parseNodesToVersionsValues.js.map +1 -1
- package/package.json +2 -1
- package/dist/containers/Cluster/i18n/ru.json +0 -16
- package/dist/types/api/compute.d.ts +0 -57
- package/dist/types/api/compute.js +0 -2
- package/dist/types/api/compute.js.map +0 -1
@@ -6,10 +6,11 @@ interface CriticalActionDialogProps<T> {
|
|
6
6
|
text?: string;
|
7
7
|
withRetry?: boolean;
|
8
8
|
retryButtonText?: string;
|
9
|
+
withCheckBox?: boolean;
|
9
10
|
onClose: VoidFunction;
|
10
11
|
onConfirm: (isRetry?: boolean) => Promise<T>;
|
11
12
|
onConfirmActionSuccess: VoidFunction;
|
12
13
|
onConfirmActionError: (error: unknown) => void;
|
13
14
|
}
|
14
|
-
export declare function CriticalActionDialog<T>({ visible, header, text, withRetry, retryButtonText, onClose, onConfirm, onConfirmActionSuccess, onConfirmActionError, }: CriticalActionDialogProps<T>): import("react/jsx-runtime").JSX.Element;
|
15
|
+
export declare function CriticalActionDialog<T>({ visible, header, text, withRetry, retryButtonText, withCheckBox, onClose, onConfirm, onConfirmActionSuccess, onConfirmActionError, }: CriticalActionDialogProps<T>): import("react/jsx-runtime").JSX.Element;
|
15
16
|
export {};
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
2
2
|
import React from 'react';
|
3
3
|
import { CircleXmarkFill, TriangleExclamationFill } from '@gravity-ui/icons';
|
4
|
-
import { Dialog, Icon } from '@gravity-ui/uikit';
|
4
|
+
import { Checkbox, Dialog, Icon } from '@gravity-ui/uikit';
|
5
5
|
import { cn } from '../../utils/cn';
|
6
6
|
import { criticalActionDialogKeyset } from './i18n';
|
7
7
|
import './CriticalActionDialog.scss';
|
@@ -15,9 +15,10 @@ const parseError = (error) => {
|
|
15
15
|
}
|
16
16
|
return criticalActionDialogKeyset('default-error');
|
17
17
|
};
|
18
|
-
export function CriticalActionDialog({ visible, header, text, withRetry, retryButtonText, onClose, onConfirm, onConfirmActionSuccess, onConfirmActionError, }) {
|
18
|
+
export function CriticalActionDialog({ visible, header, text, withRetry, retryButtonText, withCheckBox, onClose, onConfirm, onConfirmActionSuccess, onConfirmActionError, }) {
|
19
19
|
const [isLoading, setIsLoading] = React.useState(false);
|
20
20
|
const [error, setError] = React.useState();
|
21
|
+
const [checkBoxChecked, setCheckBoxChecked] = React.useState(false);
|
21
22
|
const onApply = async (isRetry) => {
|
22
23
|
setIsLoading(true);
|
23
24
|
return onConfirm(isRetry)
|
@@ -35,6 +36,13 @@ export function CriticalActionDialog({ visible, header, text, withRetry, retryBu
|
|
35
36
|
};
|
36
37
|
const handleTransitionExited = () => {
|
37
38
|
setError(undefined);
|
39
|
+
setCheckBoxChecked(false);
|
40
|
+
};
|
41
|
+
const renderCheckBox = () => {
|
42
|
+
if (withCheckBox) {
|
43
|
+
return (_jsx(Checkbox, { checked: checkBoxChecked, onUpdate: setCheckBoxChecked, children: criticalActionDialogKeyset('checkbox-text') }));
|
44
|
+
}
|
45
|
+
return null;
|
38
46
|
};
|
39
47
|
const renderDialogContent = () => {
|
40
48
|
if (error) {
|
@@ -42,7 +50,7 @@ export function CriticalActionDialog({ visible, header, text, withRetry, retryBu
|
|
42
50
|
? retryButtonText || criticalActionDialogKeyset('button-retry')
|
43
51
|
: undefined, textButtonCancel: criticalActionDialogKeyset('button-close'), onClickButtonApply: () => onApply(true), onClickButtonCancel: onClose })] }));
|
44
52
|
}
|
45
|
-
return (_jsxs(React.Fragment, { children: [_jsx(Dialog.Header, { caption: header }),
|
53
|
+
return (_jsxs(React.Fragment, { children: [_jsx(Dialog.Header, { caption: header }), _jsxs(Dialog.Body, { className: b('body'), children: [_jsxs("div", { className: b('body-message', { warning: true }), children: [_jsx("span", { className: b('warning-icon'), children: _jsx(Icon, { data: TriangleExclamationFill, size: 24 }) }), text] }), renderCheckBox()] }), _jsx(Dialog.Footer, { loading: isLoading, preset: "default", textButtonApply: criticalActionDialogKeyset('button-confirm'), textButtonCancel: criticalActionDialogKeyset('button-cancel'), propsButtonApply: { type: 'submit', disabled: withCheckBox && !checkBoxChecked }, onClickButtonCancel: onClose, onClickButtonApply: () => onApply() })] }));
|
46
54
|
};
|
47
55
|
return (_jsx(Dialog, { open: visible, hasCloseButton: false, className: b(), size: "s", onClose: onClose, onTransitionExited: handleTransitionExited, children: renderDialogContent() }));
|
48
56
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"CriticalActionDialog.js","sourceRoot":"","sources":["../../../src/components/CriticalActionDialog/CriticalActionDialog.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAC,eAAe,EAAE,uBAAuB,EAAC,MAAM,mBAAmB,CAAC;AAC3E,OAAO,EAAC,MAAM,EAAE,IAAI,EAAC,MAAM,mBAAmB,CAAC;
|
1
|
+
{"version":3,"file":"CriticalActionDialog.js","sourceRoot":"","sources":["../../../src/components/CriticalActionDialog/CriticalActionDialog.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAC,eAAe,EAAE,uBAAuB,EAAC,MAAM,mBAAmB,CAAC;AAC3E,OAAO,EAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAC,MAAM,mBAAmB,CAAC;AAGzD,OAAO,EAAC,EAAE,EAAC,MAAM,gBAAgB,CAAC;AAElC,OAAO,EAAC,0BAA0B,EAAC,MAAM,QAAQ,CAAC;AAElD,OAAO,6BAA6B,CAAC;AAErC,MAAM,CAAC,GAAG,EAAE,CAAC,qBAAqB,CAAC,CAAC;AAEpC,MAAM,UAAU,GAAG,CAAC,KAAqB,EAAE,EAAE;IACzC,IAAI,KAAK,CAAC,MAAM,KAAK,GAAG,EAAE,CAAC;QACvB,OAAO,0BAA0B,CAAC,iBAAiB,CAAC,CAAC;IACzD,CAAC;IACD,IAAI,KAAK,CAAC,UAAU,EAAE,CAAC;QACnB,OAAO,KAAK,CAAC,UAAU,CAAC;IAC5B,CAAC;IAED,OAAO,0BAA0B,CAAC,eAAe,CAAC,CAAC;AACvD,CAAC,CAAC;AAeF,MAAM,UAAU,oBAAoB,CAAI,EACpC,OAAO,EACP,MAAM,EACN,IAAI,EACJ,SAAS,EACT,eAAe,EACf,YAAY,EACZ,OAAO,EACP,SAAS,EACT,sBAAs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,SAAS,EAClB,MAAM,EAAC,SAAS,EAChB,eAAe,EAAE,0BAA0B,CAAC,gBAAgB,CAAC,EAC7D,gBAAgB,EAAE,0BAA0B,CAAC,eAAe,CAAC,EAC7D,gBAAgB,EAAE,EAAC,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,YAAY,IAAI,CAAC,eAAe,EAAC,EAC9E,mBAAmB,EAAE,OAAO,EAC5B,kBAAkB,EAAE,GAAG,EAAE,CAAC,OAAO,EAAE,GACrC,IACW,CACpB,CAAC;IACN,CAAC,CAAC;IAEF,OAAO,CACH,KAAC,MAAM,IACH,IAAI,EAAE,OAAO,EACb,cAAc,EAAE,KAAK,EACrB,SAAS,EAAE,CAAC,EAAE,EACd,IAAI,EAAC,GAAG,EACR,OAAO,EAAE,OAAO,EAChB,kBAAkB,EAAE,sBAAsB,YAEzC,mBAAmB,EAAE,GACjB,CACZ,CAAC;AACN,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
export declare const criticalActionDialogKeyset: (key: "default-error" | "no-rights-error" | "button-confirm" | "button-retry" | "button-cancel" | "button-close", params?: import("@gravity-ui/i18n").Params) => string;
|
1
|
+
export declare const criticalActionDialogKeyset: (key: "default-error" | "no-rights-error" | "button-confirm" | "button-retry" | "button-cancel" | "button-close" | "checkbox-text", params?: import("@gravity-ui/i18n").Params) => string;
|
@@ -1,3 +1,5 @@
|
|
1
|
+
@import '../../styles/mixins';
|
2
|
+
|
1
3
|
.storage-disk-progress-bar {
|
2
4
|
$block: &;
|
3
5
|
|
@@ -5,9 +7,6 @@
|
|
5
7
|
$outer-border-radius: 4px;
|
6
8
|
$inner-border-radius: $outer-border-radius - $border-width;
|
7
9
|
|
8
|
-
--progress-bar-border-color: var(--g-color-base-misc-heavy);
|
9
|
-
--progress-bar-background-color: var(--g-color-base-misc-light);
|
10
|
-
--progress-bar-fill-color: var(--g-color-base-misc-medium);
|
11
10
|
--progress-bar-full-height: var(--g-text-body-3-line-height);
|
12
11
|
--progress-bar-compact-height: 12px;
|
13
12
|
|
@@ -20,9 +19,10 @@
|
|
20
19
|
text-align: center;
|
21
20
|
|
22
21
|
color: var(--g-color-text-primary);
|
23
|
-
border: $border-width solid var(--
|
22
|
+
border: $border-width solid var(--entity-state-border-color);
|
24
23
|
border-radius: $outer-border-radius;
|
25
|
-
background-color: var(--
|
24
|
+
background-color: var(--entity-state-background-color);
|
25
|
+
@include entity-state-colors();
|
26
26
|
|
27
27
|
&_compact {
|
28
28
|
min-width: 0;
|
@@ -31,35 +31,6 @@
|
|
31
31
|
border-radius: 2px;
|
32
32
|
}
|
33
33
|
|
34
|
-
&_green {
|
35
|
-
--progress-bar-border-color: var(--g-color-base-positive-heavy);
|
36
|
-
--progress-bar-background-color: var(--g-color-base-positive-light);
|
37
|
-
--progress-bar-fill-color: var(--g-color-base-positive-medium);
|
38
|
-
}
|
39
|
-
|
40
|
-
&_blue {
|
41
|
-
--progress-bar-border-color: var(--g-color-base-info-heavy);
|
42
|
-
--progress-bar-background-color: var(--g-color-base-info-light);
|
43
|
-
--progress-bar-fill-color: var(--g-color-base-info-medium);
|
44
|
-
}
|
45
|
-
|
46
|
-
&_yellow {
|
47
|
-
--progress-bar-border-color: var(--g-color-base-warning-heavy);
|
48
|
-
--progress-bar-background-color: var(--g-color-base-yellow-light);
|
49
|
-
--progress-bar-fill-color: var(--g-color-base-yellow-medium);
|
50
|
-
}
|
51
|
-
|
52
|
-
&_orange {
|
53
|
-
--progress-bar-border-color: var(--ydb-color-status-orange);
|
54
|
-
--progress-bar-background-color: var(--g-color-base-warning-light);
|
55
|
-
--progress-bar-fill-color: var(--g-color-base-warning-medium);
|
56
|
-
}
|
57
|
-
&_red {
|
58
|
-
--progress-bar-border-color: var(--g-color-base-danger-heavy);
|
59
|
-
--progress-bar-background-color: var(--g-color-base-danger-light);
|
60
|
-
--progress-bar-fill-color: var(--g-color-base-danger-medium);
|
61
|
-
}
|
62
|
-
|
63
34
|
&_faded {
|
64
35
|
background-color: unset;
|
65
36
|
}
|
@@ -78,11 +49,11 @@
|
|
78
49
|
height: 100%;
|
79
50
|
|
80
51
|
border-radius: $inner-border-radius 0 0 $inner-border-radius;
|
81
|
-
background-color: var(--
|
52
|
+
background-color: var(--entity-state-fill-color);
|
82
53
|
|
83
54
|
&_faded {
|
84
55
|
// Bg color is light variant, use it to make bar less bright
|
85
|
-
background-color: var(--
|
56
|
+
background-color: var(--entity-state-background-color);
|
86
57
|
}
|
87
58
|
|
88
59
|
&_compact {
|
@@ -1,4 +1,5 @@
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
2
|
+
import { Flex } from '@gravity-ui/uikit';
|
2
3
|
import { getPDiskPagePath } from '../../routes';
|
3
4
|
import { selectIsUserAllowedToMakeChanges } from '../../store/reducers/authentication/authentication';
|
4
5
|
import { useDiskPagesAvailable } from '../../store/reducers/capabilities/hooks';
|
@@ -109,6 +110,6 @@ export function PDiskInfo({ pDisk, nodeId, withPDiskPageLink, className, }) {
|
|
109
110
|
withPDiskPageLink: withPDiskPageLink && diskPagesAvailable,
|
110
111
|
isUserAllowedToMakeChanges,
|
111
112
|
});
|
112
|
-
return (_jsxs(
|
113
|
+
return (_jsxs(Flex, { className: className, gap: 2, direction: "row", wrap: true, children: [_jsxs(Flex, { direction: "column", gap: 2, width: 500, children: [_jsx(InfoViewer, { info: generalInfo, renderEmptyState: () => null }), _jsx(InfoViewer, { info: spaceInfo, renderEmptyState: () => null })] }), _jsxs(Flex, { direction: "column", gap: 2, width: 500, children: [_jsx(InfoViewer, { info: statusInfo, renderEmptyState: () => null }), _jsx(InfoViewer, { info: additionalInfo, renderEmptyState: () => null })] })] }));
|
113
114
|
}
|
114
115
|
//# sourceMappingURL=PDiskInfo.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"PDiskInfo.js","sourceRoot":"","sources":["../../../src/components/PDiskInfo/PDiskInfo.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAC,gBAAgB,EAAC,MAAM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E,gBAAgB,EAAE,GAAG,EAAE,CAAC,IAAI,GAAI,EAC9D,KAAC,UAAU,IAAC,IAAI,EAAE,cAAc,EAAE,gBAAgB,EAAE,GAAG,EAAE,CAAC,IAAI,GAAI,IAC/D,IACJ,CACV,CAAC;AACN,CAAC"}
|
@@ -0,0 +1,8 @@
|
|
1
|
+
import type { PreparedStorageGroup } from '../../store/reducers/storage/types';
|
2
|
+
import type { InfoViewerProps } from '../InfoViewer/InfoViewer';
|
3
|
+
interface StorageGroupInfoProps extends Omit<InfoViewerProps, 'info'> {
|
4
|
+
data?: PreparedStorageGroup;
|
5
|
+
className?: string;
|
6
|
+
}
|
7
|
+
export declare function StorageGroupInfo({ data, className, ...infoViewerProps }: StorageGroupInfoProps): import("react/jsx-runtime").JSX.Element;
|
8
|
+
export {};
|
@@ -0,0 +1,123 @@
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
2
|
+
import { Flex } from '@gravity-ui/uikit';
|
3
|
+
import { valueIsDefined } from '../../utils';
|
4
|
+
import { formatStorageValuesToGb } from '../../utils/dataFormatters/dataFormatters';
|
5
|
+
import { formatToMs } from '../../utils/timeParsers';
|
6
|
+
import { bytesToSpeed } from '../../utils/utils';
|
7
|
+
import { EntityStatus } from '../EntityStatus/EntityStatus';
|
8
|
+
import { InfoViewer } from '../InfoViewer';
|
9
|
+
import { ProgressViewer } from '../ProgressViewer/ProgressViewer';
|
10
|
+
import { storageGroupInfoKeyset } from './i18n';
|
11
|
+
// eslint-disable-next-line complexity
|
12
|
+
export function StorageGroupInfo({ data, className, ...infoViewerProps }) {
|
13
|
+
const { Encryption, Overall, DiskSpace, MediaType, ErasureSpecies, Used, Limit, Usage, Read, Write, GroupGeneration, Latency, AllocationUnits, State, MissingDisks, Available, LatencyPutTabletLog, LatencyPutUserData, LatencyGetFast, } = data || {};
|
14
|
+
const storageGroupInfoFirstColumn = [];
|
15
|
+
if (valueIsDefined(GroupGeneration)) {
|
16
|
+
storageGroupInfoFirstColumn.push({
|
17
|
+
label: storageGroupInfoKeyset('group-generation'),
|
18
|
+
value: GroupGeneration,
|
19
|
+
});
|
20
|
+
}
|
21
|
+
if (valueIsDefined(ErasureSpecies)) {
|
22
|
+
storageGroupInfoFirstColumn.push({
|
23
|
+
label: storageGroupInfoKeyset('erasure-species'),
|
24
|
+
value: ErasureSpecies,
|
25
|
+
});
|
26
|
+
}
|
27
|
+
if (valueIsDefined(MediaType)) {
|
28
|
+
storageGroupInfoFirstColumn.push({
|
29
|
+
label: storageGroupInfoKeyset('media-type'),
|
30
|
+
value: MediaType,
|
31
|
+
});
|
32
|
+
}
|
33
|
+
if (valueIsDefined(Encryption)) {
|
34
|
+
storageGroupInfoFirstColumn.push({
|
35
|
+
label: storageGroupInfoKeyset('encryption'),
|
36
|
+
value: Encryption ? storageGroupInfoKeyset('yes') : storageGroupInfoKeyset('no'),
|
37
|
+
});
|
38
|
+
}
|
39
|
+
if (valueIsDefined(Overall)) {
|
40
|
+
storageGroupInfoFirstColumn.push({
|
41
|
+
label: storageGroupInfoKeyset('overall'),
|
42
|
+
value: _jsx(EntityStatus, { status: Overall }),
|
43
|
+
});
|
44
|
+
}
|
45
|
+
if (valueIsDefined(State)) {
|
46
|
+
storageGroupInfoFirstColumn.push({ label: storageGroupInfoKeyset('state'), value: State });
|
47
|
+
}
|
48
|
+
if (valueIsDefined(MissingDisks)) {
|
49
|
+
storageGroupInfoFirstColumn.push({
|
50
|
+
label: storageGroupInfoKeyset('missing-disks'),
|
51
|
+
value: MissingDisks,
|
52
|
+
});
|
53
|
+
}
|
54
|
+
const storageGroupInfoSecondColumn = [];
|
55
|
+
if (valueIsDefined(Used) && valueIsDefined(Limit)) {
|
56
|
+
storageGroupInfoSecondColumn.push({
|
57
|
+
label: storageGroupInfoKeyset('used-space'),
|
58
|
+
value: (_jsx(ProgressViewer, { value: Number(Used), capacity: Number(Limit), formatValues: formatStorageValuesToGb, colorizeProgress: true })),
|
59
|
+
});
|
60
|
+
}
|
61
|
+
if (valueIsDefined(Available)) {
|
62
|
+
storageGroupInfoSecondColumn.push({
|
63
|
+
label: storageGroupInfoKeyset('available'),
|
64
|
+
value: formatStorageValuesToGb(Number(Available)),
|
65
|
+
});
|
66
|
+
}
|
67
|
+
if (valueIsDefined(Usage)) {
|
68
|
+
storageGroupInfoSecondColumn.push({
|
69
|
+
label: storageGroupInfoKeyset('usage'),
|
70
|
+
value: `${Usage.toFixed(2)}%`,
|
71
|
+
});
|
72
|
+
}
|
73
|
+
if (valueIsDefined(DiskSpace)) {
|
74
|
+
storageGroupInfoSecondColumn.push({
|
75
|
+
label: storageGroupInfoKeyset('disk-space'),
|
76
|
+
value: _jsx(EntityStatus, { status: DiskSpace }),
|
77
|
+
});
|
78
|
+
}
|
79
|
+
if (valueIsDefined(Latency)) {
|
80
|
+
storageGroupInfoSecondColumn.push({
|
81
|
+
label: storageGroupInfoKeyset('latency'),
|
82
|
+
value: _jsx(EntityStatus, { status: Latency }),
|
83
|
+
});
|
84
|
+
}
|
85
|
+
if (valueIsDefined(LatencyPutTabletLog)) {
|
86
|
+
storageGroupInfoSecondColumn.push({
|
87
|
+
label: storageGroupInfoKeyset('latency-put-tablet-log'),
|
88
|
+
value: formatToMs(LatencyPutTabletLog),
|
89
|
+
});
|
90
|
+
}
|
91
|
+
if (valueIsDefined(LatencyPutUserData)) {
|
92
|
+
storageGroupInfoSecondColumn.push({
|
93
|
+
label: storageGroupInfoKeyset('latency-put-user-data'),
|
94
|
+
value: formatToMs(LatencyPutUserData),
|
95
|
+
});
|
96
|
+
}
|
97
|
+
if (valueIsDefined(LatencyGetFast)) {
|
98
|
+
storageGroupInfoSecondColumn.push({
|
99
|
+
label: storageGroupInfoKeyset('latency-get-fast'),
|
100
|
+
value: formatToMs(LatencyGetFast),
|
101
|
+
});
|
102
|
+
}
|
103
|
+
if (valueIsDefined(AllocationUnits)) {
|
104
|
+
storageGroupInfoSecondColumn.push({
|
105
|
+
label: storageGroupInfoKeyset('allocation-units'),
|
106
|
+
value: AllocationUnits,
|
107
|
+
});
|
108
|
+
}
|
109
|
+
if (valueIsDefined(Read)) {
|
110
|
+
storageGroupInfoSecondColumn.push({
|
111
|
+
label: storageGroupInfoKeyset('read-throughput'),
|
112
|
+
value: bytesToSpeed(Number(Read)),
|
113
|
+
});
|
114
|
+
}
|
115
|
+
if (valueIsDefined(Write)) {
|
116
|
+
storageGroupInfoSecondColumn.push({
|
117
|
+
label: storageGroupInfoKeyset('write-throughput'),
|
118
|
+
value: bytesToSpeed(Number(Write)),
|
119
|
+
});
|
120
|
+
}
|
121
|
+
return (_jsxs(Flex, { className: className, gap: 2, direction: "row", wrap: true, children: [_jsx(InfoViewer, { info: storageGroupInfoFirstColumn, ...infoViewerProps }), _jsx(InfoViewer, { info: storageGroupInfoSecondColumn, ...infoViewerProps })] }));
|
122
|
+
}
|
123
|
+
//# sourceMappingURL=StorageGroupInfo.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"StorageGroupInfo.js","sourceRoot":"","sources":["../../../src/components/StorageGroupInfo/StorageGroupInfo.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAC,IAAI,EAAC,MAAM,mBAAmB,CAAC;AAGvC,OAAO,EAAC,cAAc,EAAC,MAAM,aAAa,CAAC;AAC3C,OAAO,EAAC,uBAAuB,EAAC,MAAM,2CAA2C,CAAC;AAClF,OAAO,EAAC,UAAU,EAAC,MAAM,yBAAyB,CAAC;AACnD,OAAO,EAAC,YAAY,EAAC,MAAM,mBAAmB,CAAC;AAC/C,OAAO,EAAC,YAAY,EAAC,MAAM,8BAA8B,CAAC;AAC1D,OAAO,EAAC,UAAU,EAAC,MAAM,eAAe,CAAC;AAEzC,OAAO,EAAC,cAAc,EAAC,MAAM,kCAAkC,CAAC;AAEhE,OAAO,EAAC,sBAAsB,EAAC,MAAM,QAAQ,CAAC;AAO9C,sCAAsC;AACtC,MAAM,UAAU,gBAAgB,CAAC,EAAC,IAAI,EAAE,SAAS,EAAE,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sBAAsB,CAAC,kBAAkB,CAAC;YACjD,KAAK,EAAE,eAAe;SACzB,CAAC,CAAC;IACP,CAAC;IACD,IAAI,cAAc,CAAC,IAAI,CAAC,EAAE,CAAC;QACvB,4BAA4B,CAAC,IAAI,CAAC;YAC9B,KAAK,EAAE,sBAAsB,CAAC,iBAAiB,CAAC;YAChD,KAAK,EAAE,YAAY,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;SACpC,CAAC,CAAC;IACP,CAAC;IACD,IAAI,cAAc,CAAC,KAAK,CAAC,EAAE,CAAC;QACxB,4BAA4B,CAAC,IAAI,CAAC;YAC9B,KAAK,EAAE,sBAAsB,CAAC,kBAAkB,CAAC;YACjD,KAAK,EAAE,YAAY,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;SACrC,CAAC,CAAC;IACP,CAAC;IAED,OAAO,CACH,MAAC,IAAI,IAAC,SAAS,EAAE,SAAS,EAAE,GAAG,EAAE,CAAC,EAAE,SAAS,EAAC,KAAK,EAAC,IAAI,mBACpD,KAAC,UAAU,IAAC,IAAI,EAAE,2BAA2B,KAAM,eAAe,GAAI,EACtE,KAAC,UAAU,IAAC,IAAI,EAAE,4BAA4B,KAAM,eAAe,GAAI,IACpE,CACV,CAAC;AACN,CAAC"}
|
@@ -0,0 +1,22 @@
|
|
1
|
+
{
|
2
|
+
"encryption": "Encryption",
|
3
|
+
"overall": "Overall",
|
4
|
+
"disk-space": "Disk Space",
|
5
|
+
"media-type": "Media Type",
|
6
|
+
"erasure-species": "Erasure Species",
|
7
|
+
"used-space": "Used Space",
|
8
|
+
"usage": "Usage",
|
9
|
+
"read-throughput": "Read Throughput",
|
10
|
+
"write-throughput": "Write Throughput",
|
11
|
+
"yes": "Yes",
|
12
|
+
"no": "No",
|
13
|
+
"group-generation": "Group Generation",
|
14
|
+
"latency": "Latency",
|
15
|
+
"allocation-units": "Units",
|
16
|
+
"state": "State",
|
17
|
+
"missing-disks": "Missing Disks",
|
18
|
+
"available": "Available Space",
|
19
|
+
"latency-put-tablet-log": "Latency (Put Tablet Log)",
|
20
|
+
"latency-put-user-data": "Latency (Put User Data)",
|
21
|
+
"latency-get-fast": "Latency (Get Fast)"
|
22
|
+
}
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare const storageGroupInfoKeyset: (key: "state" | "yes" | "no" | "media-type" | "available" | "usage" | "read-throughput" | "write-throughput" | "encryption" | "overall" | "disk-space" | "erasure-species" | "used-space" | "group-generation" | "latency" | "allocation-units" | "missing-disks" | "latency-put-tablet-log" | "latency-put-user-data" | "latency-get-fast", params?: import("@gravity-ui/i18n").Params) => string;
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/StorageGroupInfo/i18n/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,eAAe,EAAC,MAAM,qBAAqB,CAAC;AAEpD,OAAO,EAAE,MAAM,WAAW,CAAC;AAE3B,MAAM,SAAS,GAAG,oBAAoB,CAAC;AAEvC,MAAM,CAAC,MAAM,sBAAsB,GAAG,eAAe,CAAC,SAAS,EAAE,EAAC,EAAE,EAAC,CAAC,CAAC"}
|
@@ -1,9 +1,7 @@
|
|
1
|
-
import type { TTabletStateInfo
|
2
|
-
import type { TTabletStateInfo as TFullTabletStateInfo } from '../../types/api/tablet';
|
1
|
+
import type { TTabletStateInfo } from '../../types/api/tablet';
|
3
2
|
import './TabletsStatistic.scss';
|
4
|
-
type Tablets = TFullTabletStateInfo[] | TComputeTabletStateInfo[];
|
5
3
|
interface TabletsStatisticProps {
|
6
|
-
tablets:
|
4
|
+
tablets: TTabletStateInfo[];
|
7
5
|
path: string | undefined;
|
8
6
|
nodeId: string | number;
|
9
7
|
backend?: string;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"TabletsStatistic.js","sourceRoot":"","sources":["../../../src/components/TabletsStatistic/TabletsStatistic.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAC,IAAI,EAAC,MAAM,kBAAkB,CAA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AAG,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAwB,EAAE,EAAE;IAC7F,MAAM,gBAAgB,GAAG,CAAC,IAA+C,EAAE,KAAa,EAAE,EAAE;;QACxF,MAAM,WAAW,GAAG,UAAU,CAC1B,MAAM,CAAC,IAAI,EACX,EAAC,EAAE,EAAE,MAAM,EAAE,SAAS,EAAE,OAAO,EAAC,EAChC;YACI,UAAU,EAAE,IAAI;YAChB,OAAO;SACV,CACJ,CAAC;QAEF,MAAM,KAAK,GAAG,GAAG,IAAI,CAAC,KAAK,KAAK,IAAI,CAAC,KAAK,EAAE,CAAC;QAC7C,MAAM,SAAS,GAAG,CAAC,CAAC,QAAQ,EAAE,EAAC,KAAK,EAAE,MAAA,IAAI,CAAC,KAAK,0CAAE,WAAW,EAAE,EAAC,CAAC,CAAC;QAElE,OAAO,OAAO,CAAC,CAAC,CAAC,CACb,YAAG,IAAI,EAAE,WAAW,EAAc,SAAS,EAAE,SAAS,YACjD,KAAK,IADiB,KAAK,CAE5B,CACP,CAAC,CAAC,CAAC,CACA,KAAC,IAAI,IAAC,EAAE,EAAE,WAAW,EAAc,SAAS,EAAE,SAAS,YAClD,KAAK,IADkB,KAAK,CAE1B,CACV,CAAC;IACN,CAAC,CAAC;IACF,MAAM,eAAe,GAAG,cAAc,CAAC,OAAO,CAAC,CAAC;IAEhD,OAAO,cAAK,SAAS,EAAE,CAAC,EAAE,YAAG,eAAe,CAAC,GAAG,CAAC,gBAAgB,CAAC,GAAO,CAAC;AAC9E,CAAC,CAAC"}
|
@@ -1,7 +1,8 @@
|
|
1
|
+
import React from 'react';
|
1
2
|
import './Tag.scss';
|
2
3
|
export type TagType = 'blue';
|
3
4
|
interface TagProps {
|
4
|
-
text:
|
5
|
+
text: React.ReactNode;
|
5
6
|
type?: TagType;
|
6
7
|
}
|
7
8
|
export declare const Tag: ({ text, type }: TagProps) => import("react/jsx-runtime").JSX.Element;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Tag.js","sourceRoot":"","sources":["../../../src/components/Tag/Tag.tsx"],"names":[],"mappings":";
|
1
|
+
{"version":3,"file":"Tag.js","sourceRoot":"","sources":["../../../src/components/Tag/Tag.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAC,EAAE,EAAC,MAAM,gBAAgB,CAAC;AAElC,OAAO,YAAY,CAAC;AAEpB,MAAM,CAAC,GAAG,EAAE,CAAC,KAAK,CAAC,CAAC;AASpB,MAAM,CAAC,MAAM,GAAG,GAAG,CAAC,EAAC,IAAI,EAAE,IAAI,EAAW,EAAE,EAAE;IAC1C,OAAO,cAAK,SAAS,EAAE,CAAC,CAAC,EAAC,IAAI,EAAC,CAAC,YAAG,IAAI,GAAO,CAAC;AACnD,CAAC,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Tags.js","sourceRoot":"","sources":["../../../src/components/Tags/Tags.tsx"],"names":[],"mappings":";
|
1
|
+
{"version":3,"file":"Tags.js","sourceRoot":"","sources":["../../../src/components/Tags/Tags.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAC,EAAE,EAAC,MAAM,gBAAgB,CAAC;AAElC,OAAO,EAAC,GAAG,EAAC,MAAM,QAAQ,CAAC;AAE3B,OAAO,aAAa,CAAC;AAErB,MAAM,CAAC,GAAG,EAAE,CAAC,MAAM,CAAC,CAAC;AAQrB,MAAM,CAAC,MAAM,IAAI,GAAG,CAAC,EAAC,IAAI,EAAE,QAAQ,EAAE,SAAS,GAAG,EAAE,EAAY,EAAE,EAAE;IAChE,OAAO,CACH,cAAK,SAAS,EAAE,CAAC,CAAC,IAAI,EAAE,SAAS,CAAC,YAC7B,IAAI;YACD,IAAI,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,QAAQ,EAAE,EAAE,CAAC,KAAC,GAAG,IAAC,IAAI,EAAE,GAAG,EAAiB,IAAI,EAAE,QAAQ,IAAxB,QAAQ,CAAwB,CAAC,GACpF,CACT,CAAC;AACN,CAAC,CAAC"}
|
@@ -14,7 +14,7 @@ import { lazyComponent } from '../../utils/lazyComponent';
|
|
14
14
|
import Authentication from '../Authentication/Authentication';
|
15
15
|
import { getClusterPath } from '../Cluster/utils';
|
16
16
|
import Header from '../Header/Header';
|
17
|
-
import { ClusterSlot, ClustersSlot, NodeSlot, PDiskPageSlot, RedirectSlot, RoutesSlot, TabletSlot, TenantSlot, VDiskPageSlot, } from './appSlots';
|
17
|
+
import { ClusterSlot, ClustersSlot, NodeSlot, PDiskPageSlot, RedirectSlot, RoutesSlot, StorageGroupSlot, TabletSlot, TenantSlot, VDiskPageSlot, } from './appSlots';
|
18
18
|
import i18n from './i18n';
|
19
19
|
import './App.scss';
|
20
20
|
const b = cn('app');
|
@@ -49,6 +49,12 @@ const routesSlots = [
|
|
49
49
|
component: lazyComponent(() => import('../VDiskPage/VDiskPage'), 'VDiskPage'),
|
50
50
|
wrapper: DataWrapper,
|
51
51
|
},
|
52
|
+
{
|
53
|
+
path: routes.storageGroup,
|
54
|
+
slot: StorageGroupSlot,
|
55
|
+
component: lazyComponent(() => import('../StorageGroupPage/StorageGroupPage'), 'StorageGroupPage'),
|
56
|
+
wrapper: DataWrapper,
|
57
|
+
},
|
52
58
|
{
|
53
59
|
path: routes.tablet,
|
54
60
|
slot: TabletSlot,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Content.js","sourceRoot":"","sources":["../../../src/containers/App/Content.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAC,OAAO,EAAC,MAAM,aAAa,CAAC;AAEpC,OAAO,EAAC,QAAQ,EAAE,KAAK,EAAE,MAAM,EAAC,MAAM,kBAAkB,CAAC;AAEzD,OAAO,EAAC,SAAS,EAAC,MAAM,6CAA6C,CAAC;AACtE,OAAO,EAAC,aAAa,EAAC,MAAM,8CAA8C,CAAC;AAC3E,OAAO,EAAC,QAAQ,EAAC,MAAM,wBAAwB,CAAC;AAGhD,OAAO,MAAM,MAAM,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C,SAAS,CAAC,CAAC;IAEvE,OAAO,CACH,KAAC,aAAa,IAAC,OAAO,EAAE,SAAS,EAAE,IAAI,EAAC,GAAG,YACvC,KAAC,SAAS,IAAC,KAAK,EAAE,KAAK,YAAG,QAAQ,GAAa,GACnC,CACnB,CAAC;AACN,CAAC;AAED,SAAS,YAAY;IACjB,YAAY,CAAC,oBAAoB,CAAC,SAAS,CAAC,CAAC;IAC7C,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAS,eAAe;IACpB,eAAe,CAAC,8BAA8B,CAAC,SAAS,CAAC,CAAC;IAC1D,OAAO,IAAI,CAAC;AAChB,CAAC;AAQD,SAAS,cAAc,CAAC,KAA0B;IAC9C,MAAM,EAAC,iBAAiB,EAAE,eAAe,EAAC,GAAG,KAAK,CAAC;IAEnD,OAAO,CACH,MAAC,MAAM,eACH,KAAC,KAAK,IAAC,IAAI,EAAE,MAAM,CAAC,IAAI,YACpB,KAAC,cAAc,IAAC,QAAQ,SAAG,GACvB,EACR,KAAC,KAAK,cACF,cAAK,SAAS,EAAE,CAAC,CAAC,EAAC,QAAQ,EAAE,iBAAiB,EAAC,CAAC,YAC3C,eAAe,CAAC,CAAC,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,KAAC,cAAc,KAAG,GACpD,GACF,IACH,CACZ,CAAC;AACN,CAAC;AAED,SAAS,eAAe,CAAC,KAAgB;IACrC,OAAO;QACH,eAAe,EAAE,KAAK,CAAC,cAAc,CAAC,eAAe;QACrD,iBAAiB,EAAE,KAAK,CAAC,iBAAiB;KAC7C,CAAC;AACN,CAAC;AAED,eAAe,OAAO,CAAC,eAAe,CAAC,CAAC,cAAc,CAAC,CAAC"}
|
@@ -3,6 +3,7 @@ import type { Cluster } from '../Cluster/Cluster';
|
|
3
3
|
import type { Clusters } from '../Clusters/Clusters';
|
4
4
|
import type { Node } from '../Node/Node';
|
5
5
|
import type { PDiskPage } from '../PDiskPage/PDiskPage';
|
6
|
+
import type { StorageGroupPage } from '../StorageGroupPage/StorageGroupPage';
|
6
7
|
import type { Tablet } from '../Tablet';
|
7
8
|
import type { Tenant } from '../Tenant/Tenant';
|
8
9
|
import type { VDiskPage } from '../VDiskPage/VDiskPage';
|
@@ -36,6 +37,11 @@ export declare const VDiskPageSlot: import("../../components/slots/types").SlotC
|
|
36
37
|
component: typeof VDiskPage;
|
37
38
|
} & RouteComponentProps) => React.ReactNode);
|
38
39
|
}, never>;
|
40
|
+
export declare const StorageGroupSlot: import("../../components/slots/types").SlotComponent<{
|
41
|
+
children: React.ReactNode | ((props: {
|
42
|
+
component: typeof StorageGroupPage;
|
43
|
+
} & RouteComponentProps) => React.ReactNode);
|
44
|
+
}, never>;
|
39
45
|
export declare const TabletSlot: import("../../components/slots/types").SlotComponent<{
|
40
46
|
children: React.ReactNode | ((props: {
|
41
47
|
component: typeof Tablet;
|
@@ -5,6 +5,7 @@ export const TenantSlot = createSlot('tenant');
|
|
5
5
|
export const NodeSlot = createSlot('node');
|
6
6
|
export const PDiskPageSlot = createSlot('pDisk');
|
7
7
|
export const VDiskPageSlot = createSlot('vDisk');
|
8
|
+
export const StorageGroupSlot = createSlot('storageGroup');
|
8
9
|
export const TabletSlot = createSlot('tablet');
|
9
10
|
export const RoutesSlot = createSlot('routes');
|
10
11
|
export const RedirectSlot = createSlot('redirect');
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"appSlots.js","sourceRoot":"","sources":["../../../src/containers/App/appSlots.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAC,UAAU,EAAC,MAAM,wBAAwB,CAAC;
|
1
|
+
{"version":3,"file":"appSlots.js","sourceRoot":"","sources":["../../../src/containers/App/appSlots.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAC,UAAU,EAAC,MAAM,wBAAwB,CAAC;AAUlD,MAAM,CAAC,MAAM,YAAY,GAAG,UAAU,CAInC,UAAU,CAAC,CAAC;AACf,MAAM,CAAC,MAAM,WAAW,GAAG,UAAU,CAIlC,SAAS,CAAC,CAAC;AACd,MAAM,CAAC,MAAM,UAAU,GAAG,UAAU,CAIjC,QAAQ,CAAC,CAAC;AACb,MAAM,CAAC,MAAM,QAAQ,GAAG,UAAU,CAI/B,MAAM,CAAC,CAAC;AACX,MAAM,CAAC,MAAM,aAAa,GAAG,UAAU,CAIpC,OAAO,CAAC,CAAC;AACZ,MAAM,CAAC,MAAM,aAAa,GAAG,UAAU,CAIpC,OAAO,CAAC,CAAC;AACZ,MAAM,CAAC,MAAM,gBAAgB,GAAG,UAAU,CAIvC,cAAc,CAAC,CAAC;AACnB,MAAM,CAAC,MAAM,UAAU,GAAG,UAAU,CAIjC,QAAQ,CAAC,CAAC;AAEb,MAAM,CAAC,MAAM,UAAU,GAAG,UAAU,CAA8B,QAAQ,CAAC,CAAC;AAC5E,MAAM,CAAC,MAAM,YAAY,GAAG,UAAU,CAAgB,UAAU,CAAC,CAAC"}
|