ydb-embedded-ui 6.16.0 → 6.17.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/components/ContentWithPopup/ContentWithPopup.d.ts +2 -1
- package/dist/components/ContentWithPopup/ContentWithPopup.js +9 -2
- package/dist/components/ContentWithPopup/ContentWithPopup.js.map +1 -1
- package/dist/components/ErrorBoundary/ErrorBoundary.scss +2 -0
- package/dist/components/FullNodeViewer/FullNodeViewer.js +1 -1
- package/dist/components/FullNodeViewer/FullNodeViewer.js.map +1 -1
- package/dist/components/InfoViewer/InfoViewer.d.ts +0 -1
- package/dist/components/InfoViewer/InfoViewer.js +0 -1
- package/dist/components/InfoViewer/InfoViewer.js.map +1 -1
- package/dist/components/InfoViewer/index.d.ts +1 -1
- package/dist/components/InfoViewer/index.js +1 -1
- package/dist/components/InfoViewer/index.js.map +1 -1
- package/dist/components/NodeHostWrapper/NodeHostWrapper.d.ts +2 -1
- package/dist/components/NodeHostWrapper/NodeHostWrapper.js +2 -2
- package/dist/components/NodeHostWrapper/NodeHostWrapper.js.map +1 -1
- package/dist/components/PaginatedTable/PaginatedTable.scss +8 -0
- package/dist/components/PaginatedTable/TableChunk.js +2 -1
- package/dist/components/PaginatedTable/TableChunk.js.map +1 -1
- package/dist/components/PaginatedTable/TableHead.js +1 -1
- package/dist/components/PaginatedTable/TableHead.js.map +1 -1
- package/dist/components/TabletsStatistic/TabletsStatistic.d.ts +2 -2
- package/dist/components/TabletsStatistic/TabletsStatistic.js +4 -6
- package/dist/components/TabletsStatistic/TabletsStatistic.js.map +1 -1
- package/dist/components/YDBDefinitionList/YDBDefinitionList.d.ts +9 -0
- package/dist/components/YDBDefinitionList/YDBDefinitionList.js +23 -0
- package/dist/components/YDBDefinitionList/YDBDefinitionList.js.map +1 -0
- package/dist/{containers/Tenant/Info/View/View.scss → components/YDBDefinitionList/YDBDefinitionList.scss} +6 -6
- package/dist/components/YDBDefinitionList/i18n/en.json +3 -0
- package/dist/components/YDBDefinitionList/i18n/index.d.ts +2 -0
- package/dist/components/YDBDefinitionList/i18n/index.js +5 -0
- package/dist/components/YDBDefinitionList/i18n/index.js.map +1 -0
- package/dist/containers/App/Content.js +1 -7
- package/dist/containers/App/Content.js.map +1 -1
- package/dist/containers/App/appSlots.d.ts +0 -6
- package/dist/containers/App/appSlots.js +0 -1
- package/dist/containers/App/appSlots.js.map +1 -1
- package/dist/containers/Cluster/Cluster.js +4 -13
- package/dist/containers/Cluster/Cluster.js.map +1 -1
- package/dist/containers/Cluster/ClusterInfo/ClusterInfo.d.ts +3 -3
- package/dist/containers/Cluster/ClusterInfo/ClusterInfo.js +18 -2
- package/dist/containers/Cluster/ClusterInfo/ClusterInfo.js.map +1 -1
- package/dist/containers/Header/Header.js +6 -7
- package/dist/containers/Header/Header.js.map +1 -1
- package/dist/containers/Header/breadcrumbs.js +26 -30
- package/dist/containers/Header/breadcrumbs.js.map +1 -1
- package/dist/containers/Node/Node.js +12 -6
- package/dist/containers/Node/Node.js.map +1 -1
- package/dist/containers/Node/NodePages.d.ts +2 -1
- package/dist/containers/Node/NodePages.js +2 -2
- package/dist/containers/Node/NodePages.js.map +1 -1
- package/dist/containers/Nodes/Nodes.js +1 -0
- package/dist/containers/Nodes/Nodes.js.map +1 -1
- package/dist/containers/Nodes/PaginatedNodes.js +1 -0
- package/dist/containers/Nodes/PaginatedNodes.js.map +1 -1
- package/dist/containers/Nodes/getNodesColumns.d.ts +3 -3
- package/dist/containers/Nodes/getNodesColumns.js +9 -9
- package/dist/containers/Nodes/getNodesColumns.js.map +1 -1
- package/dist/containers/PDiskPage/PDiskGroups/PDiskGroups.js +2 -2
- package/dist/containers/PDiskPage/PDiskGroups/PDiskGroups.js.map +1 -1
- package/dist/containers/Storage/Storage.js +1 -1
- package/dist/containers/Storage/Storage.js.map +1 -1
- package/dist/containers/Storage/StorageGroups/getStorageGroupsColumns.d.ts +1 -1
- package/dist/containers/Storage/StorageGroups/getStorageGroupsColumns.js +1 -1
- package/dist/containers/Storage/StorageGroups/getStorageGroupsColumns.js.map +1 -1
- package/dist/containers/Storage/StorageNodes/PaginatedStorageNodes.js +2 -2
- package/dist/containers/Storage/StorageNodes/PaginatedStorageNodes.js.map +1 -1
- package/dist/containers/Storage/StorageNodes/StorageNodes.d.ts +2 -1
- package/dist/containers/Storage/StorageNodes/StorageNodes.js +2 -2
- package/dist/containers/Storage/StorageNodes/StorageNodes.js.map +1 -1
- package/dist/containers/Storage/StorageNodes/getStorageNodesColumns.d.ts +1 -1
- package/dist/containers/Storage/StorageNodes/getStorageNodesColumns.js +4 -4
- package/dist/containers/Storage/StorageNodes/getStorageNodesColumns.js.map +1 -1
- package/dist/containers/Tablet/Tablet.js +33 -12
- package/dist/containers/Tablet/Tablet.js.map +1 -1
- package/dist/containers/Tablets/Tablets.d.ts +2 -1
- package/dist/containers/Tablets/Tablets.js +89 -85
- package/dist/containers/Tablets/Tablets.js.map +1 -1
- package/dist/containers/Tenant/Diagnostics/Diagnostics.js +1 -1
- package/dist/containers/Tenant/Diagnostics/Diagnostics.js.map +1 -1
- package/dist/containers/Tenant/Diagnostics/Overview/AsyncReplicationInfo/AsyncReplicationInfo.js +39 -20
- package/dist/containers/Tenant/Diagnostics/Overview/AsyncReplicationInfo/AsyncReplicationInfo.js.map +1 -1
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantStorage/TenantStorage.js +1 -1
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantStorage/TenantStorage.js.map +1 -1
- package/dist/containers/Tenant/Info/View/View.d.ts +0 -1
- package/dist/containers/Tenant/Info/View/View.js +3 -5
- package/dist/containers/Tenant/Info/View/View.js.map +1 -1
- package/dist/containers/Tenant/ObjectSummary/ObjectSummary.js +1 -1
- package/dist/containers/Tenant/ObjectSummary/ObjectSummary.js.map +1 -1
- package/dist/containers/Tenant/ObjectSummary/ObjectSummary.scss +3 -0
- package/dist/containers/Tenant/Schema/SchemaViewer/KeysView.d.ts +8 -0
- package/dist/containers/Tenant/Schema/SchemaViewer/KeysView.js +15 -0
- package/dist/containers/Tenant/Schema/SchemaViewer/KeysView.js.map +1 -0
- package/dist/containers/Tenant/Schema/SchemaViewer/SchemaViewer.js +7 -13
- package/dist/containers/Tenant/Schema/SchemaViewer/SchemaViewer.js.map +1 -1
- package/dist/containers/Tenant/Schema/SchemaViewer/SchemaViewer.scss +62 -3
- package/dist/containers/Tenant/Schema/SchemaViewer/columns.js +2 -20
- package/dist/containers/Tenant/Schema/SchemaViewer/columns.js.map +1 -1
- package/dist/containers/Tenant/Schema/SchemaViewer/i18n/en.json +3 -2
- package/dist/containers/Tenant/Schema/SchemaViewer/i18n/index.d.ts +1 -1
- package/dist/containers/Tenant/Schema/SchemaViewer/prepareData.js +11 -21
- package/dist/containers/Tenant/Schema/SchemaViewer/prepareData.js.map +1 -1
- package/dist/containers/Tenant/Schema/SchemaViewer/types.d.ts +1 -2
- package/dist/containers/Tenant/Schema/SchemaViewer/utils.d.ts +3 -0
- package/dist/containers/Tenant/Schema/SchemaViewer/utils.js +9 -0
- package/dist/containers/Tenant/Schema/SchemaViewer/utils.js.map +1 -0
- package/dist/containers/Tenants/Tenants.js +2 -2
- package/dist/containers/Tenants/Tenants.js.map +1 -1
- package/dist/containers/UserSettings/i18n/en.json +0 -1
- package/dist/containers/UserSettings/i18n/index.d.ts +1 -1
- package/dist/containers/UserSettings/settings.js +0 -3
- package/dist/containers/UserSettings/settings.js.map +1 -1
- package/dist/containers/VDiskPage/VDiskPage.d.ts +4 -0
- package/dist/containers/VDiskPage/VDiskPage.js +14 -10
- package/dist/containers/VDiskPage/VDiskPage.js.map +1 -1
- package/dist/containers/VDiskPage/VDiskPage.scss +9 -0
- package/dist/containers/Versions/GroupedNodesTree/GroupedNodesTree.d.ts +2 -2
- package/dist/containers/Versions/GroupedNodesTree/GroupedNodesTree.js.map +1 -1
- package/dist/containers/Versions/NodesTable/NodesTable.d.ts +2 -2
- package/dist/containers/Versions/NodesTable/NodesTable.js.map +1 -1
- package/dist/containers/Versions/NodesTreeTitle/NodesTreeTitle.d.ts +2 -2
- package/dist/containers/Versions/NodesTreeTitle/NodesTreeTitle.js.map +1 -1
- package/dist/containers/Versions/Versions.js +3 -2
- package/dist/containers/Versions/Versions.js.map +1 -1
- package/dist/containers/Versions/groupNodes.d.ts +4 -4
- package/dist/containers/Versions/groupNodes.js.map +1 -1
- package/dist/containers/Versions/types.d.ts +2 -2
- package/dist/services/api.d.ts +8 -7
- package/dist/services/api.js +20 -11
- package/dist/services/api.js.map +1 -1
- package/dist/store/configureStore.d.ts +2 -2
- package/dist/store/defaultStore.d.ts +1 -1
- package/dist/store/reducers/header/types.d.ts +7 -7
- package/dist/store/reducers/heatmap.js +2 -2
- package/dist/store/reducers/heatmap.js.map +1 -1
- package/dist/store/reducers/index.d.ts +2 -2
- package/dist/store/reducers/nodes/types.d.ts +6 -0
- package/dist/store/reducers/nodes/utils.js +6 -0
- package/dist/store/reducers/nodes/utils.js.map +1 -1
- package/dist/store/reducers/tablet.d.ts +1 -0
- package/dist/store/reducers/tablet.js +3 -3
- package/dist/store/reducers/tablet.js.map +1 -1
- package/dist/store/reducers/tenants/selectors.d.ts +9 -10
- package/dist/store/reducers/tenants/selectors.js +8 -7
- package/dist/store/reducers/tenants/selectors.js.map +1 -1
- package/dist/store/reducers/vdisk/types.d.ts +1 -1
- package/dist/store/reducers/vdisk/vdisk.d.ts +1 -1
- package/dist/store/state-url-mapping.d.ts +0 -8
- package/dist/store/state-url-mapping.js +0 -8
- package/dist/store/state-url-mapping.js.map +1 -1
- package/dist/styles/mixins.scss +5 -0
- package/dist/types/api/nodes.d.ts +5 -0
- package/dist/types/api/nodes.js.map +1 -1
- package/dist/types/store/heatmap.d.ts +0 -1
- package/dist/types/store/tablets.d.ts +1 -1
- package/dist/utils/constants.d.ts +1 -0
- package/dist/utils/constants.js +1 -0
- package/dist/utils/constants.js.map +1 -1
- package/dist/utils/versions/parseNodesToVersionsValues.d.ts +7 -0
- package/dist/utils/versions/parseNodesToVersionsValues.js +10 -0
- package/dist/utils/versions/parseNodesToVersionsValues.js.map +1 -1
- package/package.json +1 -1
- package/dist/containers/TabletsFilters/TabletsFilters.d.ts +0 -2
- package/dist/containers/TabletsFilters/TabletsFilters.js +0 -91
- package/dist/containers/TabletsFilters/TabletsFilters.js.map +0 -1
- package/dist/containers/TabletsFilters/TabletsFilters.scss +0 -80
- package/dist/containers/TabletsFilters/i18n/en.json +0 -3
- package/dist/containers/TabletsFilters/i18n/index.d.ts +0 -2
- package/dist/containers/TabletsFilters/i18n/index.js +0 -6
- package/dist/containers/TabletsFilters/i18n/index.js.map +0 -1
- package/dist/containers/TabletsFilters/i18n/ru.json +0 -3
- package/dist/store/reducers/clusterNodes/clusterNodes.d.ts +0 -5
- package/dist/store/reducers/clusterNodes/clusterNodes.js +0 -22
- package/dist/store/reducers/clusterNodes/clusterNodes.js.map +0 -1
- package/dist/store/reducers/tabletsFilters.d.ts +0 -44
- package/dist/store/reducers/tabletsFilters.js +0 -20
- package/dist/store/reducers/tabletsFilters.js.map +0 -1
@@ -1,18 +1,21 @@
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
2
|
+
import React from 'react';
|
2
3
|
import { ContentWithPopup } from '../../../components/ContentWithPopup/ContentWithPopup';
|
3
4
|
import { ResponseError } from '../../../components/Errors/ResponseError';
|
4
|
-
import InfoViewer from '../../../components/InfoViewer/InfoViewer';
|
5
|
+
import { InfoViewer } from '../../../components/InfoViewer/InfoViewer';
|
5
6
|
import { InfoViewerSkeleton } from '../../../components/InfoViewerSkeleton/InfoViewerSkeleton';
|
6
7
|
import { LinkWithIcon } from '../../../components/LinkWithIcon/LinkWithIcon';
|
7
8
|
import { ProgressViewer } from '../../../components/ProgressViewer/ProgressViewer';
|
8
9
|
import { Tablet } from '../../../components/Tablet';
|
9
10
|
import { Tags } from '../../../components/Tags';
|
10
11
|
import { backend, customBackend } from '../../../store';
|
12
|
+
import { nodesApi } from '../../../store/reducers/nodes/nodes';
|
11
13
|
import { formatBytes, getSizeWithSignificantDigits } from '../../../utils/bytesParsers';
|
12
14
|
import { cn } from '../../../utils/cn';
|
13
15
|
import { DEVELOPER_UI_TITLE } from '../../../utils/constants';
|
14
16
|
import { formatStorageValues } from '../../../utils/dataFormatters/dataFormatters';
|
15
17
|
import { useTypedSelector } from '../../../utils/hooks';
|
18
|
+
import { parseNodeGroupsToVersionsValues, parseNodesToVersionsValues } from '../../../utils/versions';
|
16
19
|
import { VersionsBar } from '../VersionsBar/VersionsBar';
|
17
20
|
import i18n from '../i18n';
|
18
21
|
import { compareTablets } from './utils';
|
@@ -102,8 +105,21 @@ const getInfo = (cluster, versionsValues, groupsStats, additionalInfo, links) =>
|
|
102
105
|
});
|
103
106
|
return info;
|
104
107
|
};
|
105
|
-
export const ClusterInfo = ({ cluster,
|
108
|
+
export const ClusterInfo = ({ cluster, versionToColor, groupsStats = {}, loading, error, additionalClusterProps = {}, }) => {
|
106
109
|
const singleClusterMode = useTypedSelector((state) => state.singleClusterMode);
|
110
|
+
const { currentData } = nodesApi.useGetNodesQuery({
|
111
|
+
tablets: false,
|
112
|
+
group: 'Version',
|
113
|
+
});
|
114
|
+
const versionsValues = React.useMemo(() => {
|
115
|
+
if (!currentData) {
|
116
|
+
return [];
|
117
|
+
}
|
118
|
+
if (Array.isArray(currentData.NodeGroups)) {
|
119
|
+
return parseNodeGroupsToVersionsValues(currentData.NodeGroups, versionToColor);
|
120
|
+
}
|
121
|
+
return parseNodesToVersionsValues(currentData.Nodes, versionToColor);
|
122
|
+
}, [currentData, versionToColor]);
|
107
123
|
let internalLink = backend + '/internal';
|
108
124
|
if (singleClusterMode && !customBackend) {
|
109
125
|
internalLink = `/internal`;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ClusterInfo.js","sourceRoot":"","sources":["../../../../src/containers/Cluster/ClusterInfo/ClusterInfo.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAC,gBAAgB,EAAC,MAAM,uDAAuD,CAAC;AACvF,OAAO,EAAC,aAAa,EAAC,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E,WAAW,GAAI,CAAC;IACzD,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,EACtE,cAAK,SAAS,EAAE,CAAC,CAAC,MAAM,CAAC,YAAG,UAAU,EAAE,GAAO,IAC7C,CACT,CAAC;AACN,CAAC,CAAC"}
|
@@ -2,10 +2,9 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import React from 'react';
|
3
3
|
import { Breadcrumbs } from '@gravity-ui/uikit';
|
4
4
|
import { get } from 'lodash';
|
5
|
-
import {
|
5
|
+
import { StringParam, useQueryParams } from 'use-query-params';
|
6
6
|
import { InternalLink } from '../../components/InternalLink';
|
7
7
|
import { LinkWithIcon } from '../../components/LinkWithIcon/LinkWithIcon';
|
8
|
-
import { parseQuery } from '../../routes';
|
9
8
|
import { backend, customBackend } from '../../store';
|
10
9
|
import { clusterApi } from '../../store/reducers/cluster/cluster';
|
11
10
|
import { cn } from '../../utils/cn';
|
@@ -21,11 +20,11 @@ const getInternalLink = (singleClusterMode) => {
|
|
21
20
|
return backend + '/internal';
|
22
21
|
};
|
23
22
|
function Header({ mainPage }) {
|
24
|
-
|
25
|
-
const queryParams =
|
23
|
+
var _a;
|
24
|
+
const [queryParams] = useQueryParams({ clusterName: StringParam });
|
26
25
|
const singleClusterMode = useTypedSelector((state) => state.singleClusterMode);
|
27
26
|
const { page, pageBreadcrumbsOptions } = useTypedSelector((state) => state.header);
|
28
|
-
const clusterInfo = clusterApi.useGetClusterInfoQuery(
|
27
|
+
const clusterInfo = clusterApi.useGetClusterInfoQuery((_a = queryParams.clusterName) !== null && _a !== void 0 ? _a : undefined);
|
29
28
|
const clusterName = get(clusterInfo, ['currentData', 'clusterData', 'Name'], queryParams.clusterName);
|
30
29
|
const breadcrumbItems = React.useMemo(() => {
|
31
30
|
const rawBreadcrumbs = [];
|
@@ -39,11 +38,11 @@ function Header({ mainPage }) {
|
|
39
38
|
clusterName,
|
40
39
|
};
|
41
40
|
}
|
42
|
-
const breadcrumbs = getBreadcrumbs(page, options, rawBreadcrumbs
|
41
|
+
const breadcrumbs = getBreadcrumbs(page, options, rawBreadcrumbs);
|
43
42
|
return breadcrumbs.map((item) => {
|
44
43
|
return { ...item, action: () => { } };
|
45
44
|
});
|
46
|
-
}, [clusterName, mainPage,
|
45
|
+
}, [clusterName, mainPage, page, pageBreadcrumbsOptions]);
|
47
46
|
const renderHeader = () => {
|
48
47
|
return (_jsxs("header", { className: b(), children: [_jsx(Breadcrumbs, { items: breadcrumbItems, lastDisplayedItemsCount: 1, firstDisplayedItemsCount: 1, className: b('breadcrumbs'), renderItem: ({ item, isCurrent }) => {
|
49
48
|
const { icon, text, link } = item;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Header.js","sourceRoot":"","sources":["../../../src/containers/Header/Header.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAC,WAAW,EAAC,MAAM,mBAAmB,CAAC;AAC9C,OAAO,EAAC,GAAG,EAAC,MAAM,QAAQ,CAAC;AAC3B,OAAO,EAAC,WAAW,EAAC,MAAM,kBAAkB,CAAC;
|
1
|
+
{"version":3,"file":"Header.js","sourceRoot":"","sources":["../../../src/containers/Header/Header.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAC,WAAW,EAAC,MAAM,mBAAmB,CAAC;AAC9C,OAAO,EAAC,GAAG,EAAC,MAAM,QAAQ,CAAC;AAC3B,OAAO,EAAC,WAAW,EAAE,cAAc,EAAC,MAAM,kBAAkB,CAAC;AAE7D,OAAO,EAAC,YAAY,EAAC,MAAM,+BAA+B,CAAC;AAC3D,OAAO,EAAC,YAAY,EAAC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AC,CAAC,CAAC,CACJ,eAAM,SAAS,EAAE,CAAC,CAAC,kBAAkB,CAAC,YAAG,IAAI,GAAQ,CACxD,CAAC,CAAC,CAAC,IAAI,EACR,yBAAO,IAAI,GAAQ,IACR,CAClB,CAAC;oBACN,CAAC,GACH,EAEF,KAAC,YAAY,IAAC,KAAK,EAAE,kBAAkB,EAAE,GAAG,EAAE,eAAe,CAAC,iBAAiB,CAAC,GAAI,IAC/E,CACZ,CAAC;IACN,CAAC,CAAC;IACF,OAAO,YAAY,EAAE,CAAC;AAC1B,CAAC;AAED,eAAe,MAAM,CAAC"}
|
@@ -1,11 +1,11 @@
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
2
2
|
import { NodesRight as ClusterIcon, Cpu as ComputeNodeIcon, Database as DatabaseIcon, HardDrive as StorageNodeIcon, } from '@gravity-ui/icons';
|
3
3
|
import { TabletIcon } from '../../components/TabletIcon/TabletIcon';
|
4
|
-
import
|
4
|
+
import { getPDiskPagePath } from '../../routes';
|
5
5
|
import { TENANT_DIAGNOSTICS_TABS_IDS, TENANT_PAGE, TENANT_PAGES_IDS, } from '../../store/reducers/tenant/constants';
|
6
6
|
import { CLUSTER_DEFAULT_TITLE, getTabletLabel } from '../../utils/constants';
|
7
7
|
import { getClusterPath } from '../Cluster/utils';
|
8
|
-
import { getDefaultNodePath } from '../Node/NodePages';
|
8
|
+
import { TABLETS, getDefaultNodePath } from '../Node/NodePages';
|
9
9
|
import { TenantTabsGroups, getTenantPath } from '../Tenant/TenantPages';
|
10
10
|
import { headerKeyset } from './i18n';
|
11
11
|
const prepareTenantName = (tenantName) => {
|
@@ -35,29 +35,41 @@ const getTenantBreadcrumbs = (options, query = {}) => {
|
|
35
35
|
return breadcrumbs;
|
36
36
|
};
|
37
37
|
const getNodeBreadcrumbs = (options, query = {}) => {
|
38
|
-
const {
|
39
|
-
|
40
|
-
const
|
41
|
-
|
42
|
-
|
43
|
-
? getClusterBreadcrumbs(options, query)
|
44
|
-
: getTenantBreadcrumbs(options, { ...query, ...tenantQuery });
|
38
|
+
const { nodeId, nodeRole, nodeActiveTab, tenantName } = options;
|
39
|
+
const tenantQuery = getQueryForTenant(nodeActiveTab === TABLETS ? 'tablets' : 'nodes');
|
40
|
+
const breadcrumbs = tenantName
|
41
|
+
? getTenantBreadcrumbs(options, { ...query, ...tenantQuery })
|
42
|
+
: getClusterBreadcrumbs(options, query);
|
45
43
|
let text = headerKeyset('breadcrumbs.node');
|
46
44
|
if (nodeId) {
|
47
45
|
text += ` ${nodeId}`;
|
48
46
|
}
|
49
47
|
const lastItem = {
|
50
48
|
text,
|
51
|
-
link: nodeId
|
52
|
-
|
49
|
+
link: nodeId
|
50
|
+
? getDefaultNodePath(nodeId, { tenantName, ...query }, nodeActiveTab)
|
51
|
+
: undefined,
|
52
|
+
icon: getNodeIcon(nodeRole),
|
53
53
|
};
|
54
54
|
breadcrumbs.push(lastItem);
|
55
55
|
return breadcrumbs;
|
56
56
|
};
|
57
|
+
function getNodeIcon(nodeRole) {
|
58
|
+
switch (nodeRole) {
|
59
|
+
case 'Storage':
|
60
|
+
return _jsx(StorageNodeIcon, {});
|
61
|
+
case 'Compute':
|
62
|
+
return _jsx(ComputeNodeIcon, {});
|
63
|
+
default:
|
64
|
+
return undefined;
|
65
|
+
}
|
66
|
+
}
|
57
67
|
const getPDiskBreadcrumbs = (options, query = {}) => {
|
58
|
-
const { nodeId, pDiskId } = options;
|
68
|
+
const { nodeId, pDiskId, nodeRole, nodeActiveTab } = options;
|
59
69
|
const breadcrumbs = getNodeBreadcrumbs({
|
60
70
|
nodeId,
|
71
|
+
nodeRole: nodeRole !== null && nodeRole !== void 0 ? nodeRole : 'Storage',
|
72
|
+
nodeActiveTab,
|
61
73
|
});
|
62
74
|
let text = headerKeyset('breadcrumbs.pDisk');
|
63
75
|
if (pDiskId) {
|
@@ -85,24 +97,9 @@ const getVDiskBreadcrumbs = (options, query = {}) => {
|
|
85
97
|
breadcrumbs.push(lastItem);
|
86
98
|
return breadcrumbs;
|
87
99
|
};
|
88
|
-
const getTabletsBreadcrumbs = (options, query = {}) => {
|
89
|
-
const { tenantName, nodeIds } = options;
|
90
|
-
const tenantQuery = getQueryForTenant('tablets');
|
91
|
-
const breadcrumbs = tenantName
|
92
|
-
? getTenantBreadcrumbs(options, { ...query, ...tenantQuery })
|
93
|
-
: getClusterBreadcrumbs(options, query);
|
94
|
-
const link = createHref(routes.tabletsFilters, undefined, {
|
95
|
-
...query,
|
96
|
-
nodeIds,
|
97
|
-
path: tenantName,
|
98
|
-
});
|
99
|
-
const lastItem = { text: headerKeyset('breadcrumbs.tablets'), link };
|
100
|
-
breadcrumbs.push(lastItem);
|
101
|
-
return breadcrumbs;
|
102
|
-
};
|
103
100
|
const getTabletBreadcrumbs = (options, query = {}) => {
|
104
|
-
const { tabletId, tabletType } = options;
|
105
|
-
const breadcrumbs =
|
101
|
+
const { tabletId, tabletType, nodeId, nodeRole, nodeActiveTab = TABLETS, tenantName } = options;
|
102
|
+
const breadcrumbs = getNodeBreadcrumbs({ nodeId, nodeRole, nodeActiveTab, tenantName }, query);
|
106
103
|
const lastItem = {
|
107
104
|
text: tabletId || headerKeyset('breadcrumbs.tablet'),
|
108
105
|
icon: _jsx(TabletIcon, { text: getTabletLabel(tabletType) }),
|
@@ -115,7 +112,6 @@ const mapPageToGetter = {
|
|
115
112
|
node: getNodeBreadcrumbs,
|
116
113
|
pDisk: getPDiskBreadcrumbs,
|
117
114
|
tablet: getTabletBreadcrumbs,
|
118
|
-
tablets: getTabletsBreadcrumbs,
|
119
115
|
tenant: getTenantBreadcrumbs,
|
120
116
|
vDisk: getVDiskBreadcrumbs,
|
121
117
|
};
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"breadcrumbs.js","sourceRoot":"","sources":["../../../src/containers/Header/breadcrumbs.tsx"],"names":[],"mappings":";AAAA,OAAO,EACH,UAAU,IAAI,WAAW,EACzB,GAAG,IAAI,eAAe,EACtB,QAAQ,IAAI,YAAY,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CAAC,CAAC;IAE7F,MAAM,QAAQ,GAAG;QACb,IAAI,EAAE,QAAQ,IAAI,YAAY,CAAC,oBAAoB,CAAC;QACpD,IAAI,EAAE,KAAC,UAAU,IAAC,IAAI,EAAE,cAAc,CAAC,UAAU,CAAC,GAAI;KACzD,CAAC;IAEF,WAAW,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;IAE3B,OAAO,WAAW,CAAC;AACvB,CAAC,CAAC;AAEF,MAAM,eAAe,GAAG;IACpB,OAAO,EAAE,qBAAqB;IAC9B,IAAI,EAAE,kBAAkB;IACxB,KAAK,EAAE,mBAAmB;IAC1B,MAAM,EAAE,oBAAoB;IAC5B,MAAM,EAAE,oBAAoB;IAC5B,KAAK,EAAE,mBAAmB;CACpB,CAAC;AAEX,MAAM,CAAC,MAAM,cAAc,GAAG,CAC1B,IAAU,EACV,OAA2B,EAC3B,iBAAsC,EAAE,EACxC,KAAK,GAAG,EAAE,EACZ,EAAE;IACA,IAAI,CAAC,IAAI,EAAE,CAAC;QACR,OAAO,cAAc,CAAC;IAC1B,CAAC;IAED,MAAM,MAAM,GAAG,eAAe,CAAC,IAAI,CAAC,CAAC;IAErC,MAAM,eAAe,GAAG,MAAM,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC;IAE/C,OAAO,CAAC,GAAG,cAAc,EAAE,GAAG,eAAe,CAAC,CAAC;AACnD,CAAC,CAAC"}
|
@@ -21,7 +21,7 @@ import './Node.scss';
|
|
21
21
|
const b = cn('node');
|
22
22
|
export const STORAGE_ROLE = 'Storage';
|
23
23
|
export function Node(props) {
|
24
|
-
var _a;
|
24
|
+
var _a, _b, _c;
|
25
25
|
const container = React.useRef(null);
|
26
26
|
const dispatch = useTypedDispatch();
|
27
27
|
const location = useLocation();
|
@@ -48,16 +48,22 @@ export function Node(props) {
|
|
48
48
|
}
|
49
49
|
return { activeTabVerified: actualActiveTab, nodeTabs: actualNodeTabs };
|
50
50
|
}, [activeTab, node]);
|
51
|
+
const tenantName = ((_b = node === null || node === void 0 ? void 0 : node.Tenants) === null || _b === void 0 ? void 0 : _b[0]) || (tenantNameFromQuery === null || tenantNameFromQuery === void 0 ? void 0 : tenantNameFromQuery.toString());
|
52
|
+
let nodeRole;
|
53
|
+
if (node) {
|
54
|
+
// Compute nodes have tenantName, storage nodes doesn't
|
55
|
+
const isStorage = !((_c = node === null || node === void 0 ? void 0 : node.Tenants) === null || _c === void 0 ? void 0 : _c[0]);
|
56
|
+
nodeRole = isStorage ? 'Storage' : 'Compute';
|
57
|
+
}
|
51
58
|
React.useEffect(() => {
|
52
|
-
var _a;
|
53
|
-
const tenantName = ((_a = node === null || node === void 0 ? void 0 : node.Tenants) === null || _a === void 0 ? void 0 : _a[0]) || (tenantNameFromQuery === null || tenantNameFromQuery === void 0 ? void 0 : tenantNameFromQuery.toString());
|
54
59
|
dispatch(setHeaderBreadcrumbs('node', {
|
55
60
|
tenantName,
|
61
|
+
nodeRole,
|
56
62
|
nodeId,
|
57
63
|
}));
|
58
|
-
}, [dispatch,
|
64
|
+
}, [dispatch, tenantName, nodeId, nodeRole]);
|
59
65
|
const renderTabs = () => {
|
60
|
-
return (_jsxs("div", { className: b('tabs'), children: [_jsx(Tabs, { size: "l", items: nodeTabs, activeTab: activeTabVerified.id, wrapTo: ({ id }, tabNode) => (_jsx(Link, { to: createHref(routes.node, { id: nodeId, activeTab: id }), className: b('tab'), children: tabNode }, id)), allowNotSelected: true }), _jsx(AutoRefreshControl, {})] }));
|
66
|
+
return (_jsxs("div", { className: b('tabs'), children: [_jsx(Tabs, { size: "l", items: nodeTabs, activeTab: activeTabVerified.id, wrapTo: ({ id }, tabNode) => (_jsx(Link, { to: createHref(routes.node, { id: nodeId, activeTab: id }, { tenantName }), className: b('tab'), children: tabNode }, id)), allowNotSelected: true }), _jsx(AutoRefreshControl, {})] }));
|
61
67
|
};
|
62
68
|
const renderTabContent = () => {
|
63
69
|
switch (activeTabVerified.id) {
|
@@ -65,7 +71,7 @@ export function Node(props) {
|
|
65
71
|
return (_jsx("div", { className: b('storage'), children: _jsx(StorageWrapper, { nodeId: nodeId, parentContainer: container.current }) }));
|
66
72
|
}
|
67
73
|
case TABLETS: {
|
68
|
-
return _jsx(Tablets, { nodeId: nodeId, className: b('node-page-wrapper') });
|
74
|
+
return (_jsx(Tablets, { nodeId: nodeId, database: tenantName, className: b('node-page-wrapper') }));
|
69
75
|
}
|
70
76
|
case OVERVIEW: {
|
71
77
|
return _jsx(FullNodeViewer, { node: node, className: b('overview-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,MAAM,oBAAoB,CAAC;AAC1C,OAAO,EAAC,IAAI,EAAE,WAAW,EAAE,aAAa,EAAC,MAAM,kBAAkB,CAAC;AAElE,OAAO,EAAC,kBAAkB,EAAC,MAAM,wDAAwD,CAAC;AAC1F,OAAO,EAAC,eAAe,EAAC,MAAM,kCAAkC,CAAC;AACjE,OAAO,EAAC,aAAa,EAAC,MAAM,uCAAuC,CAAC;AACpE,OAAO,EAAC,cAAc,EAAC,MAAM,gDAAgD,CAAC;AAC9E,OAAO,EAAC,MAAM,EAAC,MAAM,yBAAyB,CAAC;AAC/C,OAAO,MAAM,EAAE,EAAC,UAAU,EAAE,UAAU,EAAC,MAAM,cAAc,CAAC;AAC5D,OAAO,EAAC,oBAAoB,EAAC,MAAM,oCAAoC,CAAC;AACxE,OAAO,EAAC,OAAO,EAAC,MAAM,gCAAgC,CAAC;AAEvD,OAAO,EAAC,EAAE,EAAC,MAAM,gBAAgB,CAAC;AAClC,OAAO,EAAC,sBAAsB,EAAE,gBAAgB,EAAC,MAAM,mBAAmB,CAAC;AAC3E,OAAO,EAAC,cAAc,EAAC,MAAM,2BAA2B,CAAC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Aa,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"}
|
@@ -3,8 +3,9 @@ export declare const STORAGE = "storage";
|
|
3
3
|
export declare const TABLETS = "tablets";
|
4
4
|
export declare const OVERVIEW = "overview";
|
5
5
|
export declare const STRUCTURE = "structure";
|
6
|
+
export type NodeTab = typeof OVERVIEW | typeof STORAGE | typeof STRUCTURE | typeof TABLETS;
|
6
7
|
export declare const NODE_PAGES: {
|
7
8
|
id: string;
|
8
9
|
name: string;
|
9
10
|
}[];
|
10
|
-
export declare function getDefaultNodePath(nodeId: string | number, query?: Query): string;
|
11
|
+
export declare function getDefaultNodePath(nodeId: string | number, query?: Query, activeTab?: NodeTab): string;
|
@@ -21,10 +21,10 @@ export const NODE_PAGES = [
|
|
21
21
|
name: 'Tablets',
|
22
22
|
},
|
23
23
|
];
|
24
|
-
export function getDefaultNodePath(nodeId, query = {}) {
|
24
|
+
export function getDefaultNodePath(nodeId, query = {}, activeTab = OVERVIEW) {
|
25
25
|
return createHref(routes.node, {
|
26
26
|
id: nodeId,
|
27
|
-
activeTab
|
27
|
+
activeTab,
|
28
28
|
}, query);
|
29
29
|
}
|
30
30
|
//# sourceMappingURL=NodePages.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"NodePages.js","sourceRoot":"","sources":["../../../src/containers/Node/NodePages.ts"],"names":[],"mappings":"AACA,OAAO,MAAM,EAAE,EAAC,UAAU,EAAC,MAAM,cAAc,CAAC;AAEhD,MAAM,CAAC,MAAM,OAAO,GAAG,SAAS,CAAC;AACjC,MAAM,CAAC,MAAM,OAAO,GAAG,SAAS,CAAC;AACjC,MAAM,CAAC,MAAM,QAAQ,GAAG,UAAU,CAAC;AACnC,MAAM,CAAC,MAAM,SAAS,GAAG,WAAW,CAAC;
|
1
|
+
{"version":3,"file":"NodePages.js","sourceRoot":"","sources":["../../../src/containers/Node/NodePages.ts"],"names":[],"mappings":"AACA,OAAO,MAAM,EAAE,EAAC,UAAU,EAAC,MAAM,cAAc,CAAC;AAEhD,MAAM,CAAC,MAAM,OAAO,GAAG,SAAS,CAAC;AACjC,MAAM,CAAC,MAAM,OAAO,GAAG,SAAS,CAAC;AACjC,MAAM,CAAC,MAAM,QAAQ,GAAG,UAAU,CAAC;AACnC,MAAM,CAAC,MAAM,SAAS,GAAG,WAAW,CAAC;AAIrC,MAAM,CAAC,MAAM,UAAU,GAAG;IACtB;QACI,EAAE,EAAE,QAAQ;QACZ,IAAI,EAAE,UAAU;KACnB;IACD;QACI,EAAE,EAAE,OAAO;QACX,IAAI,EAAE,SAAS;KAClB;IACD;QACI,EAAE,EAAE,SAAS;QACb,IAAI,EAAE,WAAW;KACpB;IACD;QACI,EAAE,EAAE,OAAO;QACX,IAAI,EAAE,SAAS;KAClB;CACJ,CAAC;AAEF,MAAM,UAAU,kBAAkB,CAC9B,MAAuB,EACvB,QAAe,EAAE,EACjB,YAAqB,QAAQ;IAE7B,OAAO,UAAU,CACb,MAAM,CAAC,IAAI,EACX;QACI,EAAE,EAAE,MAAM;QACV,SAAS;KACZ,EACD,KAAK,CACR,CAAC;AACN,CAAC"}
|
@@ -71,6 +71,7 @@ export const Nodes = ({ path, database, additionalNodesProps = {} }) => {
|
|
71
71
|
const renderTable = () => {
|
72
72
|
const rawColumns = getNodesColumns({
|
73
73
|
getNodeRef: additionalNodesProps.getNodeRef,
|
74
|
+
database,
|
74
75
|
});
|
75
76
|
const columns = rawColumns.map((column) => {
|
76
77
|
return { ...column, sortable: isSortableNodesProperty(column.name) };
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Nodes.js","sourceRoot":"","sources":["../../../src/containers/Nodes/Nodes.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAC,SAAS,EAAC,MAAM,sDAAsD,CAAC;AAC/E,OAAO,EAAC,SAAS,EAAC,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAC,WAAW,EAAE,cAAc,EAAC,MAAM,kBAAkB,CAAC;AAE7D,OAAO,EAAC,aAAa,EAAC,MAAM,gCAAgC,CAAC;AAC7D,OAAO,EAAC,YAAY,EAAC,MAAM,6BAA6B,CAAC;AACzD,OAAO,EAAC,aAAa,EAAC,MAAM,6CAA6C,CAAC;AAC1E,OAAO,EAAC,aAAa,EAAC,MAAM,uCAAuC,CAAC;AACpE,OAAO,EAAC,YAAY,EAAC,MAAM,+BAA+B,CAAC;AAC3D,OAAO,EAAC,aAAa,EAAC,MAAM,gCAAgC,CAAC;AAC7D,OAAO,EAAC,mBAAmB,EAAC,MAAM,0DAA0D,CAAC;AAC7F,OAAO,EAAC,MAAM,EAAC,MAAM,yBAAyB,CAAC;AAC/C,OAAO,EAAC,uBAAuB,EAAC,MAAM,kEAAkE,CAAC;AACzG,OAAO,EAAC,YAAY,EAAC,MAAM,+BAA+B,CAAC;AAC3D,OAAO,EAAC,QAAQ,EAAC,MAAM,kCAAkC,CAAC;AAC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sBAAsB,EAChC,SAAS,EAAE,IAAI,EACf,MAAM,EAAE,UAAU,EAClB,gBAAgB,EAAE,IAAI,CAAC,eAAe,CAAC,EACvC,YAAY,EAAE,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC,CAAC,MAAM,EAAE,EAAC,WAAW,EAAE,iBAAiB,CAAC,GAAG,CAAC,EAAC,CAAC,GACzE,CACL,CAAC;IACN,CAAC,CAAC;IAEF,IAAI,aAAa,CAAC,KAAK,CAAC,EAAE,CAAC;QACvB,OAAO,KAAC,YAAY,KAAG,CAAC;IAC5B,CAAC;IAED,OAAO,CACH,MAAC,uBAAuB,eACpB,KAAC,uBAAuB,CAAC,QAAQ,cAAE,cAAc,EAAE,GAAoC,EACtF,KAAK,CAAC,CAAC,CAAC,KAAC,aAAa,IAAC,KAAK,EAAE,KAAK,GAAI,CAAC,CAAC,CAAC,IAAI,EAC/C,KAAC,uBAAuB,CAAC,KAAK,IAAC,OAAO,EAAE,SAAS,YAC5C,IAAI,CAAC,CAAC,CAAC,WAAW,EAAE,CAAC,CAAC,CAAC,IAAI,GACA,IACV,CAC7B,CAAC;AACN,CAAC,CAAC"}
|
@@ -61,6 +61,7 @@ export const PaginatedNodes = ({ path, database, parentContainer, additionalNode
|
|
61
61
|
};
|
62
62
|
const rawColumns = getNodesColumns({
|
63
63
|
getNodeRef: additionalNodesProps === null || additionalNodesProps === void 0 ? void 0 : additionalNodesProps.getNodeRef,
|
64
|
+
database,
|
64
65
|
});
|
65
66
|
const columns = rawColumns.map((column) => {
|
66
67
|
return { ...column, sortable: isSortableNodesProperty(column.name) };
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"PaginatedNodes.js","sourceRoot":"","sources":["../../../src/containers/Nodes/PaginatedNodes.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAC,WAAW,EAAE,cAAc,EAAC,MAAM,kBAAkB,CAAC;AAE7D,OAAO,EAAC,aAAa,EAAC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C;IACvE,CAAC,CAAC,CAAC;IAEH,OAAO,CACH,KAAC,wBAAwB,IACrB,iBAAiB,EAAE,0BAA0B,EAC7C,eAAe,EAAE,eAAe,EAChC,OAAO,EAAE,OAAO,EAChB,SAAS,EAAE,QAAQ,EACnB,KAAK,EAAE,EAAE,EACT,cAAc,EAAE,cAAc,EAC9B,kBAAkB,EAAE,kBAAkB,EACtC,sBAAsB,EAAE,sBAAsB,EAC9C,eAAe,EAAE,eAAe,EAChC,OAAO,EAAE,YAAY,EACrB,SAAS,EAAC,OAAO,GACnB,CACL,CAAC;AACN,CAAC,CAAC"}
|
@@ -4,12 +4,12 @@ import type { NodesPreparedEntity } from '../../store/reducers/nodes/types';
|
|
4
4
|
import type { GetNodeRefFunc } from '../../types/additionalProps';
|
5
5
|
export declare const NODES_COLUMNS_WIDTH_LS_KEY = "nodesTableColumnsWidth";
|
6
6
|
interface GetNodesColumnsProps {
|
7
|
-
|
7
|
+
database?: string;
|
8
8
|
getNodeRef?: GetNodeRefFunc;
|
9
9
|
}
|
10
10
|
type NodesColumn = PaginatedTableColumn<NodesPreparedEntity> & DataTableColumn<NodesPreparedEntity>;
|
11
|
-
export declare function getNodesColumns({
|
11
|
+
export declare function getNodesColumns({ database, getNodeRef }: GetNodesColumnsProps): NodesColumn[];
|
12
12
|
export declare function getTopNodesByLoadColumns(getNodeRef?: GetNodeRefFunc): DataTableColumn<NodesPreparedEntity>[];
|
13
13
|
export declare function getTopNodesByCpuColumns(getNodeRef?: GetNodeRefFunc): DataTableColumn<NodesPreparedEntity>[];
|
14
|
-
export declare function getTopNodesByMemoryColumns({
|
14
|
+
export declare function getTopNodesByMemoryColumns({ database, getNodeRef, }: GetNodesColumnsProps): NodesColumn[];
|
15
15
|
export {};
|
@@ -35,10 +35,10 @@ const nodeIdColumn = {
|
|
35
35
|
align: DataTable.RIGHT,
|
36
36
|
sortable: false,
|
37
37
|
};
|
38
|
-
const getHostColumn = (getNodeRef) => ({
|
38
|
+
const getHostColumn = (getNodeRef, database) => ({
|
39
39
|
name: NODES_COLUMNS_IDS.Host,
|
40
40
|
render: ({ row }) => {
|
41
|
-
return _jsx(NodeHostWrapper, { node: row, getNodeRef: getNodeRef });
|
41
|
+
return _jsx(NodeHostWrapper, { node: row, getNodeRef: getNodeRef, database: database });
|
42
42
|
},
|
43
43
|
width: 350,
|
44
44
|
align: DataTable.LEFT,
|
@@ -117,7 +117,7 @@ const getTabletsColumn = (tabletsPath) => ({
|
|
117
117
|
width: 500,
|
118
118
|
resizeMinWidth: 500,
|
119
119
|
render: ({ row }) => {
|
120
|
-
return row.Tablets ? (_jsx(TabletsStatistic, { path: tabletsPath !== null && tabletsPath !== void 0 ? tabletsPath : row.TenantName,
|
120
|
+
return row.Tablets ? (_jsx(TabletsStatistic, { path: tabletsPath !== null && tabletsPath !== void 0 ? tabletsPath : row.TenantName, nodeId: row.NodeId, tablets: row.Tablets })) : ('—');
|
121
121
|
},
|
122
122
|
align: DataTable.LEFT,
|
123
123
|
sortable: false,
|
@@ -157,10 +157,10 @@ const sessionsColumn = {
|
|
157
157
|
width: 100,
|
158
158
|
sortable: false,
|
159
159
|
};
|
160
|
-
export function getNodesColumns({
|
160
|
+
export function getNodesColumns({ database, getNodeRef }) {
|
161
161
|
return [
|
162
162
|
nodeIdColumn,
|
163
|
-
getHostColumn(getNodeRef),
|
163
|
+
getHostColumn(getNodeRef, database),
|
164
164
|
dataCenterColumn,
|
165
165
|
rackColumn,
|
166
166
|
versionColumn,
|
@@ -168,7 +168,7 @@ export function getNodesColumns({ tabletsPath, getNodeRef }) {
|
|
168
168
|
memoryColumn,
|
169
169
|
cpuColumn,
|
170
170
|
loadAverageColumn,
|
171
|
-
getTabletsColumn(
|
171
|
+
getTabletsColumn(database),
|
172
172
|
];
|
173
173
|
}
|
174
174
|
export function getTopNodesByLoadColumns(getNodeRef) {
|
@@ -182,16 +182,16 @@ export function getTopNodesByLoadColumns(getNodeRef) {
|
|
182
182
|
export function getTopNodesByCpuColumns(getNodeRef) {
|
183
183
|
return [cpuColumn, nodeIdColumn, getHostColumnWithUndefinedWidth(getNodeRef)];
|
184
184
|
}
|
185
|
-
export function getTopNodesByMemoryColumns({
|
185
|
+
export function getTopNodesByMemoryColumns({ database, getNodeRef, }) {
|
186
186
|
return [
|
187
187
|
nodeIdColumn,
|
188
|
-
getHostColumn(getNodeRef),
|
188
|
+
getHostColumn(getNodeRef, database),
|
189
189
|
uptimeColumn,
|
190
190
|
topNodesLoadAverageColumn,
|
191
191
|
topNodesMemoryColumn,
|
192
192
|
sharedCacheUsageColumn,
|
193
193
|
sessionsColumn,
|
194
|
-
getTabletsColumn(
|
194
|
+
getTabletsColumn(database),
|
195
195
|
];
|
196
196
|
}
|
197
197
|
//# sourceMappingURL=getNodesColumns.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"getNodesColumns.js","sourceRoot":"","sources":["../../../src/containers/Nodes/getNodesColumns.tsx"],"names":[],"mappings":";AAAA,OAAO,SAAS,MAAM,8BAA8B,CAAC;AAGrD,OAAO,EAAC,eAAe,EAAC,MAAM,kDAAkD,CAAC;AACjF,OAAO,EAAC,eAAe,EAAC,MAAM,kDAAkD,CAAC;AAEjF,OAAO,EAAC,UAAU,EAAC,MAAM,wCAAwC,CAAC;AAClE,OAAO,EAAC,cAAc,EAAC,MAAM,gDAAgD,CAAC;AAC9E,OAAO,EAAC,gBAAgB,EAAC,MAAM,mCAAmC,CAAC;AACnE,OAAO,EAAC,UAAU,EAAC,MAAM,wCAAwC,CAAC;AAElE,OAAO,EAAC,sBAAsB,EAAC,MAAM,kCAAkC,CAAC;AAExE,OAAO,EAAC,sBAAsB,EAAC,MAAM,uBAAuB,CAAC;AAC7D,OAAO,EAAC,uBAAuB,EAAC,MAAM,2CAA2C,CAAC;AAElF,MAAM,CAAC,MAAM,0BAA0B,GAAG,wBAAwB,CAAC;AAEnE,MAAM,iBAAiB,GAAG;IACtB,MAAM,EAAE,QAAQ;IAChB,IAAI,EAAE,MAAM;IAC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QACpB,sBAAsB;QACtB,cAAc;QACd,gBAAgB,CAAC,QAAQ,CAAC;KAC7B,CAAC;AACN,CAAC"}
|
@@ -6,7 +6,7 @@ import { selectNodesMap } from '../../../store/reducers/nodesList';
|
|
6
6
|
import { pDiskApi } from '../../../store/reducers/pdisk/pdisk';
|
7
7
|
import { DEFAULT_TABLE_SETTINGS } from '../../../utils/constants';
|
8
8
|
import { useAutoRefreshInterval, useTypedSelector } from '../../../utils/hooks';
|
9
|
-
import { STORAGE_GROUPS_COLUMNS_WIDTH_LS_KEY,
|
9
|
+
import { STORAGE_GROUPS_COLUMNS_WIDTH_LS_KEY, getDiskPageStorageColumns, } from '../../Storage/StorageGroups/getStorageGroupsColumns';
|
10
10
|
export function PDiskGroups({ pDiskId, nodeId }) {
|
11
11
|
var _a;
|
12
12
|
const nodesMap = useTypedSelector(selectNodesMap);
|
@@ -15,7 +15,7 @@ export function PDiskGroups({ pDiskId, nodeId }) {
|
|
15
15
|
const loading = pDiskStorageQuery.isFetching && pDiskStorageQuery.currentData === undefined;
|
16
16
|
const data = (_a = pDiskStorageQuery.currentData) !== null && _a !== void 0 ? _a : [];
|
17
17
|
const pDiskStorageColumns = React.useMemo(() => {
|
18
|
-
return
|
18
|
+
return getDiskPageStorageColumns(nodesMap);
|
19
19
|
}, [nodesMap]);
|
20
20
|
if (loading) {
|
21
21
|
return _jsx(TableSkeleton, {});
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"PDiskGroups.js","sourceRoot":"","sources":["../../../../src/containers/PDiskPage/PDiskGroups/PDiskGroups.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAC,mBAAmB,EAAC,MAAM,6DAA6D,CAAC;AAChG,OAAO,EAAC,aAAa,EAAC,MAAM,iDAAiD,CAAC;AAC9E,OAAO,EAAC,cAAc,EAAC,MAAM,mCAAmC,CAAC;AACjE,OAAO,EAAC,QAAQ,EAAC,MAAM,qCAAqC,CAA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,EAAE;QAC3C,OAAO,yBAAyB,CAAC,QAAQ,CAAC,CAAC;IAC/C,CAAC,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAC;IAEf,IAAI,OAAO,EAAE,CAAC;QACV,OAAO,KAAC,aAAa,KAAG,CAAC;IAC7B,CAAC;IAED,OAAO,CACH,KAAC,mBAAmB,IAChB,iBAAiB,EAAE,mCAAmC,EACtD,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,mBAAmB,EAC5B,QAAQ,EAAE,sBAAsB,GAClC,CACL,CAAC;AACN,CAAC"}
|
@@ -98,7 +98,7 @@ export const Storage = ({ additionalNodesProps, database, nodeId }) => {
|
|
98
98
|
handleUptimeFilterChange(NodesUptimeFilterValues.All);
|
99
99
|
};
|
100
100
|
const renderDataTable = () => {
|
101
|
-
return (_jsxs(React.Fragment, { children: [storageType === STORAGE_TYPES.groups && (_jsx(StorageGroups, { visibleEntities: visibleEntities, data: storageGroups, tableSettings: DEFAULT_TABLE_SETTINGS, nodes: nodesMap, onShowAll: () => handleGroupVisibilityChange(VISIBLE_ENTITIES.all), sort: groupsSort, handleSort: handleGroupsSort }, "groups")), storageType === STORAGE_TYPES.nodes && (_jsx(StorageNodes, { visibleEntities: visibleEntities, nodesUptimeFilter: uptimeFilter, data: storageNodes, tableSettings: DEFAULT_TABLE_SETTINGS, onShowAll: handleShowAllNodes, additionalNodesProps: additionalNodesProps, sort: nodesSort, handleSort: handleNodesSort }, "nodes"))] }));
|
101
|
+
return (_jsxs(React.Fragment, { children: [storageType === STORAGE_TYPES.groups && (_jsx(StorageGroups, { visibleEntities: visibleEntities, data: storageGroups, tableSettings: DEFAULT_TABLE_SETTINGS, nodes: nodesMap, onShowAll: () => handleGroupVisibilityChange(VISIBLE_ENTITIES.all), sort: groupsSort, handleSort: handleGroupsSort }, "groups")), storageType === STORAGE_TYPES.nodes && (_jsx(StorageNodes, { visibleEntities: visibleEntities, nodesUptimeFilter: uptimeFilter, data: storageNodes, tableSettings: DEFAULT_TABLE_SETTINGS, onShowAll: handleShowAllNodes, additionalNodesProps: additionalNodesProps, sort: nodesSort, handleSort: handleNodesSort, database: database }, "nodes"))] }));
|
102
102
|
};
|
103
103
|
const renderControls = () => {
|
104
104
|
return (_jsx(StorageControls, { searchValue: filter, handleSearchValueChange: handleTextFilterChange, withTypeSelector: !isNodePage, storageType: storageType, handleStorageTypeChange: handleStorageTypeChange, visibleEntities: visibleEntities, handleVisibleEntitiesChange: handleGroupVisibilityChange, nodesUptimeFilter: uptimeFilter, handleNodesUptimeFilterChange: handleUptimeFilterChange, groupsUsageFilter: usageFilter, groupsUsageFilterOptions: usageFilterOptions, handleGroupsUsageFilterChange: handleUsageFilterChange, entitiesCountCurrent: storageType === STORAGE_TYPES.groups
|