ydb-embedded-ui 7.2.0 → 8.0.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/components/Graph/Graph.d.ts +1 -2
- package/dist/components/Graph/Graph.js +1 -1
- package/dist/components/Graph/Graph.js.map +1 -1
- package/dist/containers/Cluster/Cluster.js +2 -2
- package/dist/containers/Cluster/Cluster.js.map +1 -1
- package/dist/containers/Cluster/ClusterInfo/ClusterInfo.js +24 -8
- package/dist/containers/Cluster/ClusterInfo/ClusterInfo.js.map +1 -1
- package/dist/containers/Cluster/ClusterInfo/ClusterInfo.scss +7 -26
- package/dist/containers/Cluster/ClusterInfo/utils.d.ts +2 -4
- package/dist/containers/Cluster/ClusterInfo/utils.js +2 -19
- package/dist/containers/Cluster/ClusterInfo/utils.js.map +1 -1
- package/dist/containers/Cluster/i18n/en.json +3 -1
- package/dist/containers/Cluster/i18n/index.d.ts +1 -1
- package/dist/containers/Node/Node.d.ts +0 -1
- package/dist/containers/Node/Node.js +5 -3
- package/dist/containers/Node/Node.js.map +1 -1
- package/dist/containers/Operations/Operations.js +2 -1
- package/dist/containers/Operations/Operations.js.map +1 -1
- package/dist/containers/PDiskPage/PDiskPage.js +5 -2
- package/dist/containers/PDiskPage/PDiskPage.js.map +1 -1
- package/dist/containers/ReduxTooltip/ReduxTooltip.scss +0 -30
- package/dist/containers/Storage/PaginatedStorage.d.ts +1 -1
- package/dist/containers/Storage/StorageGroups/columns/hooks.d.ts +0 -2
- package/dist/containers/Storage/StorageGroups/columns/hooks.js +2 -5
- package/dist/containers/Storage/StorageGroups/columns/hooks.js.map +1 -1
- package/dist/containers/Storage/StorageGroups/columns/types.d.ts +2 -2
- package/dist/containers/Storage/StorageNodes/PaginatedStorageNodesTable.d.ts +1 -0
- package/dist/containers/Storage/StorageNodes/PaginatedStorageNodesTable.js +5 -2
- package/dist/containers/Storage/StorageNodes/PaginatedStorageNodesTable.js.map +1 -1
- package/dist/containers/Storage/StorageNodes/columns/types.d.ts +1 -1
- package/dist/containers/Storage/StorageVisibleEntitiesFilter/StorageVisibleEntitiesFilter.d.ts +0 -5
- package/dist/containers/Storage/StorageVisibleEntitiesFilter/StorageVisibleEntitiesFilter.js +1 -1
- package/dist/containers/Storage/StorageVisibleEntitiesFilter/StorageVisibleEntitiesFilter.js.map +1 -1
- package/dist/containers/Storage/utils/index.d.ts +3 -6
- package/dist/containers/Storage/utils/index.js +7 -34
- package/dist/containers/Storage/utils/index.js.map +1 -1
- package/dist/containers/StorageGroupPage/StorageGroupPage.js +4 -2
- package/dist/containers/StorageGroupPage/StorageGroupPage.js.map +1 -1
- package/dist/containers/Tablet/Tablet.d.ts +0 -1
- package/dist/containers/Tablet/Tablet.js +1 -1
- package/dist/containers/Tablet/Tablet.js.map +1 -1
- package/dist/containers/Tablet/components/TabletInfo/i18n/index.d.ts +1 -1
- package/dist/containers/Tenant/Diagnostics/Diagnostics.js +2 -2
- package/dist/containers/Tenant/Diagnostics/Diagnostics.js.map +1 -1
- package/dist/containers/Tenant/Diagnostics/DiagnosticsPages.d.ts +0 -163
- package/dist/containers/Tenant/Diagnostics/DiagnosticsPages.js +10 -10
- package/dist/containers/Tenant/Diagnostics/DiagnosticsPages.js.map +1 -1
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/TopNodesByCpu.d.ts +0 -5
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/TopNodesByCpu.js +1 -1
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/TopNodesByCpu.js.map +1 -1
- package/dist/containers/Tenant/Diagnostics/TopQueries/utils.d.ts +2 -2
- package/dist/containers/Tenant/Diagnostics/TopShards/utils.d.ts +1 -1
- package/dist/containers/Tenant/Query/Issues/models.d.ts +2 -2
- package/dist/containers/Tenant/Query/Issues/models.js +2 -2
- package/dist/containers/Tenant/Query/Issues/models.js.map +1 -1
- package/dist/containers/Tenant/Query/QueryEditor/helpers.d.ts +0 -1
- package/dist/containers/Tenant/Query/QueryEditor/helpers.js +1 -1
- package/dist/containers/Tenant/Query/QueryEditor/helpers.js.map +1 -1
- package/dist/containers/Tenant/Query/QueryResult/components/PlanToSvgButton/PlanToSvgButton.js +49 -8
- package/dist/containers/Tenant/Query/QueryResult/components/PlanToSvgButton/PlanToSvgButton.js.map +1 -1
- package/dist/containers/Tenant/Query/QueryResult/i18n/en.json +2 -1
- package/dist/containers/Tenant/Query/QueryResult/i18n/index.d.ts +1 -1
- package/dist/containers/Tenant/Query/QuerySettingsDialog/constants.d.ts +0 -104
- package/dist/containers/Tenant/Query/QuerySettingsDialog/constants.js +4 -4
- package/dist/containers/Tenant/Query/QuerySettingsDialog/constants.js.map +1 -1
- package/dist/containers/Tenant/Schema/SchemaViewer/columns.d.ts +0 -12
- package/dist/containers/Tenant/Schema/SchemaViewer/columns.js +1 -1
- package/dist/containers/Tenant/Schema/SchemaViewer/columns.js.map +1 -1
- package/dist/containers/Tenant/Schema/SchemaViewer/prepareData.d.ts +1 -2
- package/dist/containers/Tenant/Schema/SchemaViewer/prepareData.js +1 -1
- package/dist/containers/Tenant/Schema/SchemaViewer/prepareData.js.map +1 -1
- package/dist/containers/Tenant/utils/schema.d.ts +0 -1
- package/dist/containers/Tenant/utils/schema.js +0 -18
- package/dist/containers/Tenant/utils/schema.js.map +1 -1
- package/dist/containers/UserSettings/i18n/en.json +1 -3
- 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 -7
- package/dist/containers/UserSettings/settings.js.map +1 -1
- package/dist/containers/VDiskPage/VDiskPage.js +7 -2
- package/dist/containers/VDiskPage/VDiskPage.js.map +1 -1
- package/dist/containers/Versions/GroupedNodesTree/GroupedNodesTree.d.ts +0 -1
- package/dist/containers/Versions/GroupedNodesTree/GroupedNodesTree.js +1 -1
- package/dist/containers/Versions/GroupedNodesTree/GroupedNodesTree.js.map +1 -1
- package/dist/lib.d.ts +2 -2
- package/dist/lib.js +1 -1
- package/dist/lib.js.map +1 -1
- package/dist/routes.d.ts +2 -2
- 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/cluster/cluster.d.ts +0 -164
- package/dist/store/reducers/cluster/cluster.js +1 -1
- package/dist/store/reducers/cluster/cluster.js.map +1 -1
- package/dist/store/reducers/cluster/types.d.ts +2 -6
- package/dist/store/reducers/executeTopQueries/types.d.ts +0 -3
- package/dist/store/reducers/healthcheckInfo/healthcheckInfo.d.ts +0 -195
- package/dist/store/reducers/healthcheckInfo/healthcheckInfo.js +1 -1
- package/dist/store/reducers/healthcheckInfo/healthcheckInfo.js.map +1 -1
- package/dist/store/reducers/nodes/types.d.ts +1 -6
- package/dist/store/reducers/query/types.d.ts +2 -1
- package/dist/store/reducers/schema/schema.d.ts +0 -6
- package/dist/store/reducers/schema/schema.js +1 -1
- package/dist/store/reducers/schema/schema.js.map +1 -1
- package/dist/store/reducers/shardsWorkload/types.d.ts +0 -3
- package/dist/store/reducers/storage/types.d.ts +1 -6
- package/dist/store/reducers/storage/types.js.map +1 -1
- package/dist/store/reducers/storage/utils.d.ts +2 -5
- package/dist/store/reducers/storage/utils.js +3 -3
- package/dist/store/reducers/storage/utils.js.map +1 -1
- package/dist/store/reducers/tableSchemaData.d.ts +2 -1
- package/dist/store/reducers/tablets.d.ts +0 -131
- package/dist/store/reducers/tablets.js +1 -1
- package/dist/store/reducers/tablets.js.map +1 -1
- package/dist/store/reducers/tenants/utils.d.ts +0 -11
- package/dist/store/reducers/tenants/utils.js +1 -14
- package/dist/store/reducers/tenants/utils.js.map +1 -1
- package/dist/store/reducers/tooltip.d.ts +1 -1
- package/dist/store/reducers/tooltip.js +1 -1
- package/dist/store/reducers/vdisk/types.d.ts +0 -2
- package/dist/types/additionalProps.d.ts +2 -2
- package/dist/types/api/error.d.ts +1 -1
- package/dist/types/components.d.ts +5 -0
- package/dist/types/components.js +2 -0
- package/dist/types/components.js.map +1 -0
- package/dist/types/index.d.ts +0 -1
- package/dist/types/index.js.map +1 -1
- package/dist/types/store/tablet.d.ts +1 -8
- package/dist/types/store/tablets.d.ts +0 -8
- package/dist/types/store/tooltip.d.ts +2 -4
- package/dist/utils/constants.d.ts +0 -38
- package/dist/utils/constants.js +1 -28
- package/dist/utils/constants.js.map +1 -1
- package/dist/utils/dataFormatters/__test__/formatUptime.test.js +39 -4
- package/dist/utils/dataFormatters/__test__/formatUptime.test.js.map +1 -1
- package/dist/utils/dataFormatters/dataFormatters.d.ts +6 -3
- package/dist/utils/dataFormatters/dataFormatters.js +34 -16
- package/dist/utils/dataFormatters/dataFormatters.js.map +1 -1
- package/dist/utils/dataFormatters/i18n/en.json +3 -1
- package/dist/utils/dataFormatters/i18n/index.d.ts +1 -1
- package/dist/utils/dataFormatters/i18n/index.js +1 -2
- package/dist/utils/dataFormatters/i18n/index.js.map +1 -1
- package/dist/utils/errors/i18n/en.json +3 -0
- package/dist/utils/errors/i18n/index.d.ts +2 -0
- package/dist/utils/errors/i18n/index.js +5 -0
- package/dist/utils/errors/i18n/index.js.map +1 -0
- package/dist/utils/errors/index.d.ts +6 -0
- package/dist/utils/errors/index.js +33 -0
- package/dist/utils/errors/index.js.map +1 -0
- package/dist/utils/hooks/useTableSort.d.ts +1 -1
- package/dist/utils/monitoring.d.ts +3 -2
- package/dist/utils/nodes.js.map +1 -1
- package/dist/utils/tablet.d.ts +0 -2
- package/dist/utils/tablet.js +0 -10
- package/dist/utils/tablet.js.map +1 -1
- package/dist/utils/tooltip.d.ts +0 -4
- package/dist/utils/tooltip.js +1 -23
- package/dist/utils/tooltip.js.map +1 -1
- package/dist/utils/utils.d.ts +0 -1
- package/dist/utils/utils.js +0 -10
- package/dist/utils/utils.js.map +1 -1
- package/package.json +2 -2
- package/dist/components/GroupInfo/GroupInfo.d.ts +0 -7
- package/dist/components/GroupInfo/GroupInfo.js +0 -27
- package/dist/components/GroupInfo/GroupInfo.js.map +0 -1
- package/dist/components/GroupInfo/i18n/en.json +0 -6
- package/dist/components/GroupInfo/i18n/index.d.ts +0 -1
- package/dist/components/GroupInfo/i18n/index.js +0 -5
- package/dist/components/GroupInfo/i18n/index.js.map +0 -1
- package/dist/components/QuerySettingsDescription/index.d.ts +0 -1
- package/dist/components/QuerySettingsDescription/index.js +0 -2
- package/dist/components/QuerySettingsDescription/index.js.map +0 -1
- package/dist/components/Tablet/Tablet.d.ts +0 -8
- package/dist/components/Tablet/Tablet.js +0 -18
- package/dist/components/Tablet/Tablet.js.map +0 -1
- package/dist/components/Tablet/Tablet.scss +0 -40
- package/dist/components/Tablet/index.d.ts +0 -1
- package/dist/components/Tablet/index.js +0 -2
- package/dist/components/Tablet/index.js.map +0 -1
- package/dist/components/TabletsOverall/TabletsOverall.d.ts +0 -8
- package/dist/components/TabletsOverall/TabletsOverall.js +0 -69
- package/dist/components/TabletsOverall/TabletsOverall.js.map +0 -1
- package/dist/components/TabletsOverall/TabletsOverall.scss +0 -18
- package/dist/containers/ClusterModeGuard/index.d.ts +0 -1
- package/dist/containers/ClusterModeGuard/index.js +0 -2
- package/dist/containers/ClusterModeGuard/index.js.map +0 -1
- package/dist/containers/Nodes/columns/hooks.d.ts +0 -6
- package/dist/containers/Nodes/columns/hooks.js +0 -12
- package/dist/containers/Nodes/columns/hooks.js.map +0 -1
- package/dist/containers/Nodes/index.d.ts +0 -1
- package/dist/containers/Nodes/index.js +0 -2
- package/dist/containers/Nodes/index.js.map +0 -1
- package/dist/containers/PDiskPage/shared.d.ts +0 -1
- package/dist/containers/PDiskPage/shared.js +0 -3
- package/dist/containers/PDiskPage/shared.js.map +0 -1
- package/dist/containers/Storage/Storage.d.ts +0 -17
- package/dist/containers/Storage/Storage.js +0 -101
- package/dist/containers/Storage/Storage.js.map +0 -1
- package/dist/containers/Storage/StorageGroups/StorageGroupsTable.d.ts +0 -14
- package/dist/containers/Storage/StorageGroups/StorageGroupsTable.js +0 -14
- package/dist/containers/Storage/StorageGroups/StorageGroupsTable.js.map +0 -1
- package/dist/containers/Storage/StorageNodes/StorageNodesTable.d.ts +0 -16
- package/dist/containers/Storage/StorageNodes/StorageNodesTable.js +0 -22
- package/dist/containers/Storage/StorageNodes/StorageNodesTable.js.map +0 -1
- package/dist/containers/Storage/StorageNodes/shared.d.ts +0 -3
- package/dist/containers/Storage/StorageNodes/shared.js +0 -5
- package/dist/containers/Storage/StorageNodes/shared.js.map +0 -1
- package/dist/containers/Storage/StorageWrapper.d.ts +0 -10
- package/dist/containers/Storage/StorageWrapper.js +0 -20
- package/dist/containers/Storage/StorageWrapper.js.map +0 -1
- package/dist/store/reducers/nodes/selectors.d.ts +0 -4
- package/dist/store/reducers/nodes/selectors.js +0 -13
- package/dist/store/reducers/nodes/selectors.js.map +0 -1
- package/dist/store/reducers/schema/types.d.ts +0 -10
- package/dist/store/reducers/schema/types.js +0 -2
- package/dist/store/reducers/schema/types.js.map +0 -1
- package/dist/store/reducers/storage/selectors.d.ts +0 -4
- package/dist/store/reducers/storage/selectors.js +0 -37
- package/dist/store/reducers/storage/selectors.js.map +0 -1
- package/dist/utils/dataFormatters/i18n/ru.json +0 -3
@@ -1,11 +1,10 @@
|
|
1
|
-
import type { Data,
|
1
|
+
import type { Data, Options, Shapes } from '@gravity-ui/paranoid';
|
2
2
|
interface GraphProps<T> {
|
3
3
|
data: Data<T>;
|
4
4
|
opts?: Options;
|
5
5
|
shapes?: Shapes;
|
6
6
|
}
|
7
7
|
export declare function Graph<T>(props: GraphProps<T>): import("react/jsx-runtime").JSX.Element;
|
8
|
-
export declare const renderExplainNode: (node: GraphNode) => string;
|
9
8
|
interface YDBGraphProps<T> {
|
10
9
|
data: Data<T>;
|
11
10
|
}
|
@@ -24,7 +24,7 @@ export function Graph(props) {
|
|
24
24
|
}, [data, opts, shapes]);
|
25
25
|
return _jsx("div", { id: containerId, ref: containerRef, style: { overflow: 'auto' } });
|
26
26
|
}
|
27
|
-
|
27
|
+
const renderExplainNode = (node) => {
|
28
28
|
const parts = node.name.split('|');
|
29
29
|
return parts.length > 1 ? parts[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,CAAC,CAAC;QAC9C,OAAO,GAAG,EAAE;YACR,QAAQ,CAAC,OAAO,EAAE,CAAC;QACvB,CAAC,CAAC;IACN,CAAC,EAAE,CAAC,IAAI,EAAE,IAAI,EAAE,MAAM,CAAC,CAAC,CAAC;IAEzB,OAAO,cAAK,EAAE,EAAE,WAAW,EAAE,GAAG,EAAE,YAAY,EAAE,KAAK,EAAE,EAAC,QAAQ,EAAE,MAAM,EAAC,GAAI,CAAC;AAClF,CAAC;AAED,MAAM,iBAAiB,GAAG,CAAC,IAAe,EAAU,EAAE;IAClD,MAAM,KAAK,GAAG,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;IACnC,OAAO,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC;AACnD,CAAC,CAAC;AAEF,MAAM,aAAa,GAAY;IAC3B,eAAe,EAAE,iBAAiB;IAClC,YAAY,EAAE,QAAiB;IAC/B,qBAAqB,EAAE,IAAI;CAC9B,CAAC;AAEF,MAAM,YAAY,GAAG;IACjB,IAAI,EAAE,mBAAmB;CAC5B,CAAC;AAMF,MAAM,UAAU,QAAQ,CAAI,KAAuB;IAC/C,OAAO,KAAC,KAAK,OAAQ,KAAK,EAAE,IAAI,EAAE,aAAa,EAAE,MAAM,EAAE,YAAY,GAAI,CAAC;AAC9E,CAAC"}
|
@@ -15,7 +15,7 @@ import { cn } from '../../utils/cn';
|
|
15
15
|
import { useTypedDispatch, useTypedSelector } from '../../utils/hooks';
|
16
16
|
import { parseVersionsToVersionToColorMap } from '../../utils/versions';
|
17
17
|
import { Nodes } from '../Nodes/Nodes';
|
18
|
-
import {
|
18
|
+
import { PaginatedStorage } from '../Storage/PaginatedStorage';
|
19
19
|
import { TabletsTable } from '../Tablets/TabletsTable';
|
20
20
|
import { Tenants } from '../Tenants/Tenants';
|
21
21
|
import { Versions } from '../Versions/Versions';
|
@@ -58,7 +58,7 @@ export function Cluster({ additionalClusterProps, additionalTenantsProps, additi
|
|
58
58
|
return (_jsx(InternalLink, { to: path, onClick: () => {
|
59
59
|
dispatch(updateDefaultClusterTab(id));
|
60
60
|
}, children: node }, id));
|
61
|
-
} }) }), _jsxs(Switch, { children: [_jsx(Route, { path: getLocationObjectFromHref(getClusterPath(clusterTabsIds.overview)).pathname, children: _jsx(ClusterInfo, { cluster: cluster, versionToColor: versionToColor, loading: infoLoading, error: clusterError, additionalClusterProps: additionalClusterProps }) }), _jsx(Route, { path: getLocationObjectFromHref(getClusterPath(clusterTabsIds.tablets)).pathname, children: _jsx("div", { className: b('tablets'), children: _jsx(TabletsTable, { loading: infoLoading, tablets: clusterTablets, className: b('tablets-table') }) }) }), _jsx(Route, { path: getLocationObjectFromHref(getClusterPath(clusterTabsIds.tenants)).pathname, children: _jsx(Tenants, { additionalTenantsProps: additionalTenantsProps }) }), _jsx(Route, { path: getLocationObjectFromHref(getClusterPath(clusterTabsIds.nodes)).pathname, children: _jsx(Nodes, { parentRef: container, additionalNodesProps: additionalNodesProps }) }), _jsx(Route, { path: getLocationObjectFromHref(getClusterPath(clusterTabsIds.storage)).pathname, children: _jsx(
|
61
|
+
} }) }), _jsxs(Switch, { children: [_jsx(Route, { path: getLocationObjectFromHref(getClusterPath(clusterTabsIds.overview)).pathname, children: _jsx(ClusterInfo, { cluster: cluster, versionToColor: versionToColor, loading: infoLoading, error: clusterError, additionalClusterProps: additionalClusterProps }) }), _jsx(Route, { path: getLocationObjectFromHref(getClusterPath(clusterTabsIds.tablets)).pathname, children: _jsx("div", { className: b('tablets'), children: _jsx(TabletsTable, { loading: infoLoading, tablets: clusterTablets, className: b('tablets-table') }) }) }), _jsx(Route, { path: getLocationObjectFromHref(getClusterPath(clusterTabsIds.tenants)).pathname, children: _jsx(Tenants, { additionalTenantsProps: additionalTenantsProps }) }), _jsx(Route, { path: getLocationObjectFromHref(getClusterPath(clusterTabsIds.nodes)).pathname, children: _jsx(Nodes, { parentRef: container, additionalNodesProps: additionalNodesProps }) }), _jsx(Route, { path: getLocationObjectFromHref(getClusterPath(clusterTabsIds.storage)).pathname, children: _jsx(PaginatedStorage, { parentRef: container }) }), _jsx(Route, { path: getLocationObjectFromHref(getClusterPath(clusterTabsIds.versions)).pathname, children: _jsx(Versions, { versionToColor: versionToColor, cluster: cluster }) }), _jsx(Route, { render: () => (_jsx(Redirect, { to: getLocationObjectFromHref(getClusterPath(activeTabId)) })) })] })] }));
|
62
62
|
}
|
63
63
|
function useClusterTab() {
|
64
64
|
const dispatch = useTypedDispatch();
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Cluster.js","sourceRoot":"","sources":["../../../src/containers/Cluster/Cluster.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAC,QAAQ,EAAE,IAAI,EAAC,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAC,MAAM,EAAC,MAAM,oBAAoB,CAAC;AAC1C,OAAO,EAAC,QAAQ,EAAE,KAAK,EAAE,MAAM,EAAE,aAAa,EAAC,MAAM,kBAAkB,CAAC;AACxE,OAAO,EAAC,WAAW,EAAE,cAAc,EAAC,MAAM,kBAAkB,CAAC;AAE7D,OAAO,EAAC,kBAAkB,EAAC,MAAM,wDAAwD,CAAC;AAC1F,OAAO,EAAC,YAAY,EAAC,MAAM,4CAA4C,CAAC;AACxE,OAAO,EAAC,YAAY,EAAC,MAAM,+BAA+B,CAAC;AAC3D,OAAO,MAAM,EAAE,EAAC,yBAAyB,EAAC,MAAM,cAAc,CAAC;AAC/D,OAAO,EAAC,4BAA4B,EAAC,MAAM,yCAAyC,CAAC;AACrF,OAAO,EACH,UAAU,EACV,4BAA4B,EAC5B,kBAAkB,EAClB,uBAAuB,GAC1B,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EAAC,oBAAoB,EAAC,MAAM,oCAAoC,CAAC;AAOxE,OAAO,EAAC,EAAE,E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1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
2
|
+
import { DefinitionList, Flex } from '@gravity-ui/uikit';
|
2
3
|
import { ResponseError } from '../../../components/Errors/ResponseError';
|
3
|
-
import { InfoViewer } from '../../../components/InfoViewer/InfoViewer';
|
4
4
|
import { InfoViewerSkeleton } from '../../../components/InfoViewerSkeleton/InfoViewerSkeleton';
|
5
|
+
import { LinkWithIcon } from '../../../components/LinkWithIcon/LinkWithIcon';
|
6
|
+
import i18n from '../i18n';
|
5
7
|
import { b } from './shared';
|
6
8
|
import { getInfo, useClusterLinks } from './utils';
|
7
9
|
import './ClusterInfo.scss';
|
8
10
|
export const ClusterInfo = ({ cluster, loading, error, additionalClusterProps = {}, }) => {
|
9
11
|
const { info = [], links = [] } = additionalClusterProps;
|
10
12
|
const clusterLinks = useClusterLinks();
|
11
|
-
const
|
12
|
-
const
|
13
|
-
|
14
|
-
return _jsx(InfoViewerSkeleton, { className: b('skeleton'), rows: 9 });
|
15
|
-
}
|
13
|
+
const linksList = links.concat(clusterLinks);
|
14
|
+
const clusterInfo = getInfo(cluster !== null && cluster !== void 0 ? cluster : {}, info);
|
15
|
+
const renderInfo = () => {
|
16
16
|
if (error && !cluster) {
|
17
17
|
return null;
|
18
18
|
}
|
19
|
-
return _jsx(
|
19
|
+
return (_jsxs("div", { children: [_jsx("div", { className: b('section-title'), children: i18n('title_info') }), _jsx(DefinitionList, { nameMaxWidth: 200, children: clusterInfo.map(({ label, value }) => {
|
20
|
+
return (_jsx(DefinitionList.Item, { name: label, children: value }, label));
|
21
|
+
}) })] }));
|
22
|
+
};
|
23
|
+
const renderLinks = () => {
|
24
|
+
if (linksList.length) {
|
25
|
+
return (_jsxs("div", { children: [_jsx("div", { className: b('section-title'), children: i18n('title_links') }), _jsx(Flex, { direction: "column", gap: 4, children: linksList.map(({ title, url }) => {
|
26
|
+
return _jsx(LinkWithIcon, { title: title, url: url }, title);
|
27
|
+
}) })] }));
|
28
|
+
}
|
29
|
+
return null;
|
30
|
+
};
|
31
|
+
const renderContent = () => {
|
32
|
+
if (loading) {
|
33
|
+
return _jsx(InfoViewerSkeleton, { className: b('skeleton'), rows: 4 });
|
34
|
+
}
|
35
|
+
return (_jsxs(Flex, { gap: 10, wrap: "nowrap", children: [renderInfo(), renderLinks()] }));
|
20
36
|
};
|
21
|
-
return (_jsxs("div", { className: b(), children: [error ? _jsx(ResponseError, { error: error, className: b('error') }) : null,
|
37
|
+
return (_jsxs("div", { className: b(), children: [error ? _jsx(ResponseError, { error: error, className: b('error') }) : null, renderContent()] }));
|
22
38
|
};
|
23
39
|
//# sourceMappingURL=ClusterInfo.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ClusterInfo.js","sourceRoot":"","sources":["../../../../src/containers/Cluster/ClusterInfo/ClusterInfo.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAC,aAAa,EAAC,MAAM,0CAA0C,CAAC;AACvE,OAAO,EAAC,
|
1
|
+
{"version":3,"file":"ClusterInfo.js","sourceRoot":"","sources":["../../../../src/containers/Cluster/ClusterInfo/ClusterInfo.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAC,cAAc,EAAE,IAAI,EAAC,MAAM,mBAAmB,CAAC;AAEvD,OAAO,EAAC,aAAa,EAAC,MAAM,0CAA0C,CAAC;AACvE,OAAO,EAAC,kBAAkB,EAAC,MAAM,2DAA2D,CAAC;AAC7F,OAAO,EAAC,YAAY,EAAC,MAAM,+CAA+C,CAAC;AAK3E,OAAO,IAAI,MAAM,SAAS,CAAC;AAE3B,OAAO,EAAC,CAAC,EAAC,MAAM,UAAU,CAAC;AAC3B,OAAO,EAAC,OAAO,EAAE,eAAe,EAAC,MAAM,SAAS,CAAC;AAEjD,OAAO,oBAAoB,CAAC;AAU5B,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,EACxB,OAAO,EACP,OAAO,EACP,KAAK,EACL,sBAAsB,GAAG,EAAE,GACZ,EAAE,EAAE;IACnB,MAA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CAAC,CAAC,GACC,IACL,CACT,CAAC;QACN,CAAC;QAED,OAAO,IAAI,CAAC;IAChB,CAAC,CAAC;IAEF,MAAM,aAAa,GAAG,GAAG,EAAE;QACvB,IAAI,OAAO,EAAE,CAAC;YACV,OAAO,KAAC,kBAAkB,IAAC,SAAS,EAAE,CAAC,CAAC,UAAU,CAAC,EAAE,IAAI,EAAE,CAAC,GAAI,CAAC;QACrE,CAAC;QAED,OAAO,CACH,MAAC,IAAI,IAAC,GAAG,EAAE,EAAE,EAAE,IAAI,EAAC,QAAQ,aACvB,UAAU,EAAE,EACZ,WAAW,EAAE,IACX,CACV,CAAC;IACN,CAAC,CAAC;IAEF,OAAO,CACH,eAAK,SAAS,EAAE,CAAC,EAAE,aACd,KAAK,CAAC,CAAC,CAAC,KAAC,aAAa,IAAC,KAAK,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC,CAAC,OAAO,CAAC,GAAI,CAAC,CAAC,CAAC,IAAI,EACrE,aAAa,EAAE,IACd,CACT,CAAC;AACN,CAAC,CAAC"}
|
@@ -3,38 +3,19 @@
|
|
3
3
|
.cluster-info {
|
4
4
|
padding: 20px 0;
|
5
5
|
|
6
|
+
@include mixins.body-2-typography();
|
7
|
+
|
6
8
|
&__skeleton {
|
7
9
|
margin-top: 5px;
|
8
10
|
}
|
9
11
|
|
10
|
-
&
|
11
|
-
|
12
|
+
&__section-title {
|
13
|
+
margin: var(--g-spacing-1) 0 var(--g-spacing-3);
|
14
|
+
@include mixins.text-subheader-2();
|
12
15
|
}
|
13
16
|
|
14
|
-
&
|
15
|
-
|
16
|
-
padding: 0 15px !important;
|
17
|
-
|
18
|
-
.info-viewer__items {
|
19
|
-
grid-template-columns: repeat(2, minmax(auto, 250px));
|
20
|
-
}
|
21
|
-
|
22
|
-
.info-viewer__label {
|
23
|
-
width: 50px;
|
24
|
-
}
|
25
|
-
.info-viewer__value {
|
26
|
-
width: 130px;
|
27
|
-
}
|
28
|
-
}
|
29
|
-
|
30
|
-
&__tablets {
|
31
|
-
margin-left: 15px;
|
32
|
-
padding: 0 !important;
|
33
|
-
}
|
34
|
-
&__links {
|
35
|
-
display: flex;
|
36
|
-
flex-flow: row wrap;
|
37
|
-
gap: var(--g-spacing-2);
|
17
|
+
&__dc {
|
18
|
+
height: 20px;
|
38
19
|
}
|
39
20
|
|
40
21
|
&__clipboard-button {
|
@@ -1,7 +1,5 @@
|
|
1
|
-
import type { InfoViewerItem } from '../../../components/InfoViewer/InfoViewer';
|
2
1
|
import type { ClusterLink } from '../../../types/additionalProps';
|
3
2
|
import type { TClusterInfo } from '../../../types/api/cluster';
|
4
|
-
import type {
|
5
|
-
export declare const
|
6
|
-
export declare const getInfo: (cluster: TClusterInfo, additionalInfo: InfoViewerItem[], links: ClusterLink[]) => InfoViewerItem[];
|
3
|
+
import type { InfoItem } from '../../../types/components';
|
4
|
+
export declare const getInfo: (cluster: TClusterInfo, additionalInfo: InfoItem[]) => InfoItem[];
|
7
5
|
export declare function useClusterLinks(): ClusterLink[];
|
@@ -1,12 +1,10 @@
|
|
1
1
|
import { jsxs as _jsxs, jsx as _jsx } from "react/jsx-runtime";
|
2
2
|
import React from 'react';
|
3
3
|
import { Flex } from '@gravity-ui/uikit';
|
4
|
-
import { LinkWithIcon } from '../../../components/LinkWithIcon/LinkWithIcon';
|
5
4
|
import { ProgressViewer } from '../../../components/ProgressViewer/ProgressViewer';
|
6
5
|
import { Tags } from '../../../components/Tags';
|
7
6
|
import { useClusterBaseInfo } from '../../../store/reducers/cluster/cluster';
|
8
7
|
import { isClusterInfoV2 } from '../../../types/api/cluster';
|
9
|
-
import { EType } from '../../../types/api/tablet';
|
10
8
|
import { formatNumber } from '../../../utils/dataFormatters/dataFormatters';
|
11
9
|
import { parseJson } from '../../../utils/utils';
|
12
10
|
import i18n from '../i18n';
|
@@ -20,22 +18,13 @@ const COLORS_PRIORITY = {
|
|
20
18
|
Red: 1,
|
21
19
|
Grey: 0,
|
22
20
|
};
|
23
|
-
export const compareTablets = (tablet1, tablet2) => {
|
24
|
-
if (tablet1.Type === EType.TxAllocator) {
|
25
|
-
return 1;
|
26
|
-
}
|
27
|
-
if (tablet2.Type === EType.TxAllocator) {
|
28
|
-
return -1;
|
29
|
-
}
|
30
|
-
return 0;
|
31
|
-
};
|
32
21
|
const getDCInfo = (cluster) => {
|
33
22
|
if (isClusterInfoV2(cluster) && cluster.MapDataCenters) {
|
34
23
|
return Object.entries(cluster.MapDataCenters).map(([dc, count]) => (_jsxs(React.Fragment, { children: [dc, ": ", formatNumber(count)] }, dc)));
|
35
24
|
}
|
36
25
|
return undefined;
|
37
26
|
};
|
38
|
-
export const getInfo = (cluster, additionalInfo
|
27
|
+
export const getInfo = (cluster, additionalInfo) => {
|
39
28
|
const info = [];
|
40
29
|
if (isClusterInfoV2(cluster) && cluster.MapNodeStates) {
|
41
30
|
const arrayNodesStates = Object.entries(cluster.MapNodeStates);
|
@@ -53,7 +42,7 @@ export const getInfo = (cluster, additionalInfo, links) => {
|
|
53
42
|
if (dataCenters === null || dataCenters === void 0 ? void 0 : dataCenters.length) {
|
54
43
|
info.push({
|
55
44
|
label: i18n('label_dc'),
|
56
|
-
value: _jsx(Tags, { tags: dataCenters, gap: 2 }),
|
45
|
+
value: _jsx(Tags, { tags: dataCenters, gap: 2, className: b('dc') }),
|
57
46
|
});
|
58
47
|
}
|
59
48
|
info.push({
|
@@ -61,12 +50,6 @@ export const getInfo = (cluster, additionalInfo, links) => {
|
|
61
50
|
value: _jsx(ProgressViewer, { value: cluster === null || cluster === void 0 ? void 0 : cluster.LoadAverage, capacity: cluster === null || cluster === void 0 ? void 0 : cluster.NumberOfCpus }),
|
62
51
|
});
|
63
52
|
info.push(...additionalInfo);
|
64
|
-
if (links.length) {
|
65
|
-
info.push({
|
66
|
-
label: i18n('links'),
|
67
|
-
value: (_jsx("div", { className: b('links'), children: links.map(({ title, url }) => (_jsx(LinkWithIcon, { title: title, url: url }, title))) })),
|
68
|
-
});
|
69
|
-
}
|
70
53
|
return info;
|
71
54
|
};
|
72
55
|
/**
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../../src/containers/Cluster/ClusterInfo/utils.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAC,IAAI,EAAC,MAAM,mBAAmB,CAAC;
|
1
|
+
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../../src/containers/Cluster/ClusterInfo/utils.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAC,IAAI,EAAC,MAAM,mBAAmB,CAAC;AAEvC,OAAO,EAAC,cAAc,EAAC,MAAM,mDAAmD,CAAC;AACjF,OAAO,EAAC,IAAI,EAAC,MAAM,0BAA0B,CAAC;AAC9C,OAAO,EAAC,kBAAkB,EAAC,MAAM,yCAAyC,CAAC;AAE3E,OAAO,EAAC,eAAe,EAAC,MAAM,4BAA4B,CAAC;AAI3D,OAAO,EAAC,YAAY,EAAC,MAAM,8CAA8C,CAAC;AAC1E,OAAO,EAAC,SAAS,EAAC,MAAM,sBAAsB,CAAC;AAC/C,OAAO,IAAI,MAAM,SAAS,CAAC;AAE3B,OAAO,EAAC,UAAU,EAAC,MAAM,oCAAoC,CAAC;AAC9D,OAAO,EAAC,CAAC,EAAC,MAAM,UAAU,CAAC;AAE3B,MAAM,eAAe,GAA0B;IAC3C,KAAK,EAAE,CAAC;IACR,IAAI,EAAE,CAAC;IACP,MAAM,EAAE,CAAC;IACT,MAAM,EAAE,CAAC;IACT,GAAG,EAAE,CAAC;IACN,IAAI,EAAE,CAAC;CACV,CAAC;AAEF,MAAM,SAAS,GAAG,CAAC,OAAqB,EAAE,EAAE;IACxC,IAAI,eAAe,CAAC,OAAO,CAAC,IAAI,OAAO,CAAC,cAAc,EAAE,CAAC;QACrD,OAAO,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC,cAAc,CAAC,CAAC,GAAG,CAAC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EAAE,CAAC;YACZ,MAAM,CAAC,IAAI,CAAC;gBACR,KAAK,EAAE,IAAI,CAAC,YAAY,CAAC;gBACzB,GAAG,EAAE,SAAS;aACjB,CAAC,CAAC;QACP,CAAC;QAED,IAAI,WAAW,EAAE,CAAC;YACd,MAAM,CAAC,IAAI,CAAC;gBACR,KAAK,EAAE,IAAI,CAAC,cAAc,CAAC;gBAC3B,GAAG,EAAE,WAAW;aACnB,CAAC,CAAC;QACP,CAAC;QAED,OAAO,MAAM,CAAC;IAClB,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC,CAAC;AACzB,CAAC"}
|
@@ -9,12 +9,14 @@
|
|
9
9
|
"storage-size": "Storage size",
|
10
10
|
"storage-groups": "Storage groups, {{diskType}}",
|
11
11
|
"links": "Links",
|
12
|
-
"link_cores": "
|
12
|
+
"link_cores": "Coredumps",
|
13
13
|
"link_logging": "Logging",
|
14
14
|
"context_cores": "cores",
|
15
15
|
"title_cpu": "CPU",
|
16
16
|
"title_storage": "Storage",
|
17
17
|
"title_memory": "Memory",
|
18
|
+
"title_info": "Info",
|
19
|
+
"title_links": "Links",
|
18
20
|
"label_nodes": "Nodes",
|
19
21
|
"label_hosts": "Hosts",
|
20
22
|
"label_storage-groups": "Storage groups",
|
@@ -1,2 +1,2 @@
|
|
1
|
-
declare const _default: (key: "links" | "erasure" | "usage" | "storage-groups" | "title_storage" | "disk-type" | "allocated" | "available" | "label_nodes-state" | "label_dc" | "storage-size" | "link_cores" | "link_logging" | "context_cores" | "title_cpu" | "title_memory" | "label_nodes" | "label_hosts" | "label_storage-groups" | "label_databases" | "label_load", params?: import("@gravity-ui/i18n").Params) => string;
|
1
|
+
declare const _default: (key: "links" | "erasure" | "usage" | "storage-groups" | "title_storage" | "disk-type" | "allocated" | "available" | "label_nodes-state" | "label_dc" | "storage-size" | "link_cores" | "link_logging" | "context_cores" | "title_cpu" | "title_memory" | "title_info" | "title_links" | "label_nodes" | "label_hosts" | "label_storage-groups" | "label_databases" | "label_load", params?: import("@gravity-ui/i18n").Params) => string;
|
2
2
|
export default _default;
|
@@ -15,13 +15,13 @@ import { setHeaderBreadcrumbs } from '../../store/reducers/header/header';
|
|
15
15
|
import { nodeApi } from '../../store/reducers/node/node';
|
16
16
|
import { cn } from '../../utils/cn';
|
17
17
|
import { useAutoRefreshInterval, useTypedDispatch } from '../../utils/hooks';
|
18
|
-
import {
|
18
|
+
import { PaginatedStorage } from '../Storage/PaginatedStorage';
|
19
19
|
import { Tablets } from '../Tablets';
|
20
20
|
import { NODE_PAGES, OVERVIEW, STORAGE, STRUCTURE, TABLETS, getDefaultNodePath, nodePageQueryParams, } from './NodePages';
|
21
21
|
import NodeStructure from './NodeStructure/NodeStructure';
|
22
22
|
import './Node.scss';
|
23
23
|
const b = cn('node');
|
24
|
-
|
24
|
+
const STORAGE_ROLE = 'Storage';
|
25
25
|
export function Node(props) {
|
26
26
|
var _a, _b, _c;
|
27
27
|
const container = React.useRef(null);
|
@@ -76,7 +76,9 @@ export function Node(props) {
|
|
76
76
|
const renderTabContent = () => {
|
77
77
|
switch (activeTabVerified.id) {
|
78
78
|
case STORAGE: {
|
79
|
-
return (_jsx("div", { className: b('storage'), ref: container, children: _jsx(
|
79
|
+
return (_jsx("div", { className: b('storage'), ref: container, children: _jsx(PaginatedStorage, { nodeId: nodeId, parentRef: container, viewContext: {
|
80
|
+
nodeId: nodeId === null || nodeId === void 0 ? void 0 : nodeId.toString(),
|
81
|
+
} }) }));
|
80
82
|
}
|
81
83
|
case TABLETS: {
|
82
84
|
return (_jsx(Tablets, { nodeId: nodeId, database: tenantName, className: b('node-page-wrapper') }));
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Node.js","sourceRoot":"","sources":["../../../src/containers/Node/Node.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAC,IAAI,EAAC,MAAM,mBAAmB,CAAC;AACvC,OAAO,EAAC,MAAM,EAAC,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rB,CAAC;IACL,CAAC,CAAC;IAEF,IAAI,OAAO,IAAI,CAAC,kBAAkB,EAAE,CAAC;QACjC,OAAO,KAAC,MAAM,IAAC,IAAI,EAAC,GAAG,GAAG,CAAC;IAC/B,CAAC;IAED,IAAI,IAAI,EAAE,CAAC;QACP,OAAO,CACH,eAAK,SAAS,EAAE,CAAC,CAAC,IAAI,EAAE,KAAK,CAAC,SAAS,CAAC,aACpC,KAAC,MAAM,IACH,aAAa,EAAE,QAAQ,IAAI,CAAC,IAAI,mBAAmB,EACnD,YAAY,EAAE,GAAG,IAAI,CAAC,IAAI,mBAAmB,YAE7C,0BAAQ,iBAAiB,CAAC,KAAK,GAAS,GACnC,EAET,KAAC,eAAe,IACZ,IAAI,EAAE,IAAI,EACV,oBAAoB,EAAE,KAAK,CAAC,oBAAoB,EAChD,SAAS,EAAE,CAAC,CAAC,QAAQ,CAAC,GACxB,EACD,KAAK,CAAC,CAAC,CAAC,KAAC,aAAa,IAAC,KAAK,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC,CAAC,OAAO,CAAC,GAAI,CAAC,CAAC,CAAC,IAAI,EACrE,UAAU,EAAE,EACb,cAAK,SAAS,EAAE,CAAC,CAAC,SAAS,CAAC,YAAG,gBAAgB,EAAE,GAAO,IACtD,CACT,CAAC;IACN,CAAC;IAED,IAAI,KAAK,EAAE,CAAC;QACR,OAAO,KAAC,aAAa,IAAC,KAAK,EAAE,KAAK,GAAI,CAAC;IAC3C,CAAC;IAED,OAAO,cAAK,SAAS,EAAC,OAAO,6BAAmB,CAAC;AACrD,CAAC"}
|
@@ -9,6 +9,7 @@ import { operationsApi } from '../../store/reducers/operations';
|
|
9
9
|
import { useAutoRefreshInterval } from '../../utils/hooks';
|
10
10
|
import { OperationsControls } from './OperationsControls';
|
11
11
|
import { getColumns } from './columns';
|
12
|
+
import { OPERATIONS_SELECTED_COLUMNS_KEY } from './constants';
|
12
13
|
import i18n from './i18n';
|
13
14
|
import { b } from './shared';
|
14
15
|
import { useOperationsQueryParams } from './useOperationsQueryParams';
|
@@ -28,6 +29,6 @@ export function Operations({ database }) {
|
|
28
29
|
if (isAccessError(error)) {
|
29
30
|
return _jsx(AccessDenied, { position: "left" });
|
30
31
|
}
|
31
|
-
return (_jsxs(TableWithControlsLayout, { children: [_jsx(TableWithControlsLayout.Controls, { children: _jsx(OperationsControls, { kind: kind, searchValue: searchValue, entitiesCountCurrent: filteredOperations.length, entitiesCountTotal: (_a = data === null || data === void 0 ? void 0 : data.operations) === null || _a === void 0 ? void 0 : _a.length, entitiesLoading: isFetching, handleKindChange: handleKindChange, handleSearchChange: handleSearchChange }) }), error ? _jsx(ResponseError, { error: error }) : null, _jsx(TableWithControlsLayout.Table, { loading: isFetching, className: b('table'), children: data ? (_jsx(ResizeableDataTable, { columns: getColumns({ database, refreshTable: refetch }), data: filteredOperations, emptyDataMessage: i18n('title_empty') })) : null })] }));
|
32
|
+
return (_jsxs(TableWithControlsLayout, { children: [_jsx(TableWithControlsLayout.Controls, { children: _jsx(OperationsControls, { kind: kind, searchValue: searchValue, entitiesCountCurrent: filteredOperations.length, entitiesCountTotal: (_a = data === null || data === void 0 ? void 0 : data.operations) === null || _a === void 0 ? void 0 : _a.length, entitiesLoading: isFetching, handleKindChange: handleKindChange, handleSearchChange: handleSearchChange }) }), error ? _jsx(ResponseError, { error: error }) : null, _jsx(TableWithControlsLayout.Table, { loading: isFetching, className: b('table'), children: data ? (_jsx(ResizeableDataTable, { columns: getColumns({ database, refreshTable: refetch }), columnsWidthLSKey: OPERATIONS_SELECTED_COLUMNS_KEY, data: filteredOperations, emptyDataMessage: i18n('title_empty') })) : null })] }));
|
32
33
|
}
|
33
34
|
//# sourceMappingURL=Operations.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Operations.js","sourceRoot":"","sources":["../../../src/containers/Operations/Operations.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAC,YAAY,EAAC,M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IAChB,OAAO,EAAE,UAAU,CAAC,EAAC,QAAQ,EAAE,YAAY,EAAE,OAAO,EAAC,CAAC,EACtD,iBAAiB,EAAE,+BAA+B,EAClD,IAAI,EAAE,kBAAkB,EACxB,gBAAgB,EAAE,IAAI,CAAC,aAAa,CAAC,GACvC,CACL,CAAC,CAAC,CAAC,IAAI,GACoB,IACV,CAC7B,CAAC;AACN,CAAC"}
|
@@ -23,7 +23,7 @@ import { valueIsDefined } from '../../utils';
|
|
23
23
|
import { cn } from '../../utils/cn';
|
24
24
|
import { getPDiskId, getSeverityColor } from '../../utils/disks/helpers';
|
25
25
|
import { useAutoRefreshInterval, useTypedDispatch, useTypedSelector } from '../../utils/hooks';
|
26
|
-
import {
|
26
|
+
import { PaginatedStorage } from '../Storage/PaginatedStorage';
|
27
27
|
import { DecommissionButton } from './DecommissionButton/DecommissionButton';
|
28
28
|
import { DecommissionLabel } from './DecommissionLabel/DecommissionLabel';
|
29
29
|
import { PDiskSpaceDistribution } from './PDiskSpaceDistribution/PDiskSpaceDistribution';
|
@@ -144,7 +144,10 @@ export function PDiskPage() {
|
|
144
144
|
return pDiskData ? (_jsx("div", { className: pdiskPageCn('disk-distribution'), children: _jsx(PDiskSpaceDistribution, { data: pDiskData }) })) : null;
|
145
145
|
}
|
146
146
|
case 'storage': {
|
147
|
-
return pDiskParamsDefined ? (_jsx(
|
147
|
+
return pDiskParamsDefined ? (_jsx(PaginatedStorage, { nodeId: nodeId, pDiskId: pDiskId, parentRef: containerRef, viewContext: {
|
148
|
+
nodeId: nodeId === null || nodeId === void 0 ? void 0 : nodeId.toString(),
|
149
|
+
pDiskId: pDiskId === null || pDiskId === void 0 ? void 0 : pDiskId.toString(),
|
150
|
+
} })) : null;
|
148
151
|
}
|
149
152
|
default:
|
150
153
|
return null;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"PDiskPage.js","sourceRoot":"","sources":["../../../src/containers/PDiskPage/PDiskPage.tsx"],"names":[],"mappings":";AAAA,OA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AO,uBAAP,OAAO,CAAE,QAAQ,EAAE;qBAC/B,GACH,CACL,CAAC,CAAC,CAAC,IAAI,CAAC;YACb,CAAC;YACD;gBACI,OAAO,IAAI,CAAC;QACpB,CAAC;IACL,CAAC,CAAC;IAEF,MAAM,WAAW,GAAG,GAAG,EAAE;QACrB,IAAI,CAAC,cAAc,CAAC,KAAK,EAAE,CAAC;YACxB,OAAO,IAAI,CAAC;QAChB,CAAC;QACD,OAAO,KAAC,aAAa,IAAC,KAAK,EAAE,cAAc,CAAC,KAAK,GAAI,CAAC;IAC1D,CAAC,CAAC;IAEF,OAAO,CACH,eAAK,SAAS,EAAE,WAAW,CAAC,IAAI,CAAC,EAAE,GAAG,EAAE,YAAY,aAC/C,YAAY,EAAE,EACd,cAAc,EAAE,EAChB,eAAe,EAAE,EACjB,cAAc,EAAE,EAChB,WAAW,EAAE,EACb,UAAU,EAAE,EACZ,UAAU,EAAE,EACZ,iBAAiB,EAAE,IAClB,CACT,CAAC;AACN,CAAC"}
|
@@ -7,7 +7,6 @@
|
|
7
7
|
}
|
8
8
|
|
9
9
|
.node-tootltip,
|
10
|
-
.tabletsOverall-tooltip,
|
11
10
|
.histogram-tooltip {
|
12
11
|
padding: 10px;
|
13
12
|
|
@@ -18,35 +17,6 @@
|
|
18
17
|
}
|
19
18
|
}
|
20
19
|
|
21
|
-
.json-tooltip {
|
22
|
-
padding: 20px 20px 20px 0;
|
23
|
-
|
24
|
-
&__inspector {
|
25
|
-
@include mixins.json-tree-styles();
|
26
|
-
|
27
|
-
:not(.json-inspector__leaf_expanded).json-inspector__leaf_composite:before {
|
28
|
-
content: '';
|
29
|
-
}
|
30
|
-
.json-inspector__leaf_expanded.json-inspector__leaf_composite:before {
|
31
|
-
content: '';
|
32
|
-
}
|
33
|
-
|
34
|
-
& .json-inspector {
|
35
|
-
&__line:hover:after {
|
36
|
-
background: transparent;
|
37
|
-
}
|
38
|
-
&__show-original:hover:after,
|
39
|
-
&__show-original:hover:before {
|
40
|
-
color: transparent;
|
41
|
-
}
|
42
|
-
|
43
|
-
&__value_helper {
|
44
|
-
display: none;
|
45
|
-
}
|
46
|
-
}
|
47
|
-
}
|
48
|
-
}
|
49
|
-
|
50
20
|
.cell-tooltip {
|
51
21
|
padding: 10px;
|
52
22
|
|
@@ -4,7 +4,7 @@ export interface PaginatedStorageProps {
|
|
4
4
|
nodeId?: string | number;
|
5
5
|
groupId?: string | number;
|
6
6
|
pDiskId?: string | number;
|
7
|
-
viewContext
|
7
|
+
viewContext?: StorageViewContext;
|
8
8
|
parentRef: React.RefObject<HTMLElement>;
|
9
9
|
initialEntitiesCount?: number;
|
10
10
|
}
|
@@ -1,6 +1,4 @@
|
|
1
|
-
import type { StorageViewContext } from '../../types';
|
2
1
|
import type { GetStorageGroupsColumnsParams } from './types';
|
3
|
-
export declare function useGetStorageGroupsColumns(viewContext: StorageViewContext): import("./types").StorageGroupsColumn[];
|
4
2
|
export declare function useStorageGroupsSelectedColumns({ visibleEntities, viewContext, }: GetStorageGroupsColumnsParams): {
|
5
3
|
columnsToShow: import("./types").StorageGroupsColumn[];
|
6
4
|
columnsToSelect: import("@gravity-ui/uikit").TableColumnSetupItem[];
|
@@ -3,13 +3,10 @@ import { VISIBLE_ENTITIES } from '../../../../store/reducers/storage/constants';
|
|
3
3
|
import { useSelectedColumns } from '../../../../utils/hooks/useSelectedColumns';
|
4
4
|
import { getStorageGroupsColumns } from './columns';
|
5
5
|
import { DEFAULT_STORAGE_GROUPS_COLUMNS, REQUIRED_STORAGE_GROUPS_COLUMNS, STORAGE_GROUPS_COLUMNS_IDS, STORAGE_GROUPS_COLUMNS_TITLES, STORAGE_GROUPS_SELECTED_COLUMNS_LS_KEY, } from './constants';
|
6
|
-
export function
|
7
|
-
|
6
|
+
export function useStorageGroupsSelectedColumns({ visibleEntities, viewContext, }) {
|
7
|
+
const columns = React.useMemo(() => {
|
8
8
|
return getStorageGroupsColumns({ viewContext });
|
9
9
|
}, [viewContext]);
|
10
|
-
}
|
11
|
-
export function useStorageGroupsSelectedColumns({ visibleEntities, viewContext, }) {
|
12
|
-
const columns = useGetStorageGroupsColumns(viewContext);
|
13
10
|
const requiredColumns = React.useMemo(() => {
|
14
11
|
if (visibleEntities === VISIBLE_ENTITIES.missing) {
|
15
12
|
return [...REQUIRED_STORAGE_GROUPS_COLUMNS, STORAGE_GROUPS_COLUMNS_IDS.Degraded];
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"hooks.js","sourceRoot":"","sources":["../../../../../src/containers/Storage/StorageGroups/columns/hooks.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAC,gBAAgB,EAAC,MAAM,8CAA8C,CAAC;AAC9E,OAAO,EAAC,kBAAkB,EAAC,MAAM,4CAA4C,CAAC;
|
1
|
+
{"version":3,"file":"hooks.js","sourceRoot":"","sources":["../../../../../src/containers/Storage/StorageGroups/columns/hooks.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAC,gBAAgB,EAAC,MAAM,8CAA8C,CAAC;AAC9E,OAAO,EAAC,kBAAkB,EAAC,MAAM,4CAA4C,CAAC;AAE9E,OAAO,EAAC,uBAAuB,EAAC,MAAM,WAAW,CAAC;AAClD,OAAO,EACH,8BAA8B,EAC9B,+BAA+B,EAC/B,0BAA0B,EAC1B,6BAA6B,EAC7B,sCAAsC,GACzC,MAAM,aAAa,CAAC;AAGrB,MAAM,UAAU,+BAA+B,CAAC,EAC5C,eAAe,EACf,WAAW,GACiB;IAC5B,MAAM,OAAO,GAAG,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE;QAC/B,OAAO,uBAAuB,CAAC,EAAC,WAAW,EAAC,CAAC,CAAC;IAClD,CAAC,EAAE,CAAC,WAAW,CAAC,CAAC,CAAC;IAElB,MAAM,eAAe,GAAG,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE;QACvC,IAAI,eAAe,KAAK,gBAAgB,CAAC,OAAO,EAAE,CAAC;YAC/C,OAAO,CAAC,GAAG,+BAA+B,EAAE,0BAA0B,CAAC,QAAQ,CAAC,CAAC;QACrF,CAAC;QAED,IAAI,eAAe,KAAK,gBAAgB,CAAC,KAAK,EAAE,CAAC;YAC7C,OAAO,CAAC,GAAG,+BAA+B,EAAE,0BAA0B,CAAC,SAAS,CAAC,CAAC;QACtF,CAAC;QAED,OAAO,+BAA+B,CAAC;IAC3C,CAAC,EAAE,CAAC,eAAe,CAAC,CAAC,CAAC;IAEtB,OAAO,kBAAkB,CACrB,OAAO,EACP,sCAAsC,EACtC,6BAA6B,EAC7B,8BAA8B,EAC9B,eAAe,CAClB,CAAC;AACN,CAAC"}
|
@@ -3,10 +3,10 @@ import type { Column } from '../../../../utils/tableUtils/types';
|
|
3
3
|
import type { StorageViewContext } from '../../types';
|
4
4
|
export type StorageGroupsColumn = Column<PreparedStorageGroup>;
|
5
5
|
export interface GetStorageColumnsData {
|
6
|
-
viewContext
|
6
|
+
viewContext?: StorageViewContext;
|
7
7
|
}
|
8
8
|
export interface GetStorageGroupsColumnsParams {
|
9
9
|
visibleEntities?: VisibleEntities;
|
10
|
-
viewContext
|
10
|
+
viewContext?: StorageViewContext;
|
11
11
|
}
|
12
12
|
export type StorageColumnsGetter = (data?: GetStorageColumnsData) => StorageGroupsColumn[];
|
@@ -4,6 +4,7 @@ import type { VisibleEntities } from '../../../store/reducers/storage/types';
|
|
4
4
|
import type { NodesGroupByField } from '../../../types/api/nodes';
|
5
5
|
import { NodesUptimeFilterValues } from '../../../utils/nodes';
|
6
6
|
import type { StorageNodesColumn } from './columns/types';
|
7
|
+
import './StorageNodes.scss';
|
7
8
|
interface PaginatedStorageNodesTableProps {
|
8
9
|
columns: StorageNodesColumn[];
|
9
10
|
database?: string;
|
@@ -2,12 +2,15 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import React from 'react';
|
3
3
|
import { ResizeablePaginatedTable } from '../../../components/PaginatedTable';
|
4
4
|
import { VISIBLE_ENTITIES } from '../../../store/reducers/storage/constants';
|
5
|
-
import {
|
5
|
+
import { cn } from '../../../utils/cn';
|
6
|
+
import { NodesUptimeFilterValues, isUnavailableNode } from '../../../utils/nodes';
|
6
7
|
import { StorageNodesEmptyDataMessage } from './StorageNodesEmptyDataMessage';
|
7
8
|
import { STORAGE_NODES_COLUMNS_WIDTH_LS_KEY } from './columns/constants';
|
8
9
|
import { getStorageNodes } from './getNodes';
|
9
10
|
import i18n from './i18n';
|
10
|
-
import
|
11
|
+
import './StorageNodes.scss';
|
12
|
+
const b = cn('ydb-storage-nodes');
|
13
|
+
const getRowUnavailableClassName = (row) => b('node', { unavailable: isUnavailableNode(row) });
|
11
14
|
export const PaginatedStorageNodesTable = ({ columns, database, nodeId, groupId, filterGroup, filterGroupBy, searchValue, visibleEntities, nodesUptimeFilter, onShowAll, parentRef, renderControls, renderErrorMessage, initialEntitiesCount, }) => {
|
12
15
|
const tableFilters = React.useMemo(() => {
|
13
16
|
return {
|