ydb-embedded-ui 6.15.1 → 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/ElapsedTime/ElapsedTime.js +2 -1
- package/dist/components/ElapsedTime/ElapsedTime.js.map +1 -1
- package/dist/components/EmptyState/EmptyState.d.ts +6 -0
- package/dist/components/EmptyState/EmptyState.js +6 -0
- package/dist/components/EmptyState/EmptyState.js.map +1 -1
- package/dist/components/EntitiesCount/EntitiesCount.js +3 -1
- package/dist/components/EntitiesCount/EntitiesCount.js.map +1 -1
- package/dist/components/EntityPageTitle/EntityPageTitle.d.ts +11 -0
- package/dist/components/{DiskPageTitle/DiskPageTitle.js → EntityPageTitle/EntityPageTitle.js} +5 -5
- package/dist/components/EntityPageTitle/EntityPageTitle.js.map +1 -0
- package/dist/components/{DiskPageTitle/DiskPageTitle.scss → EntityPageTitle/EntityPageTitle.scss} +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/InfoViewerSkeleton/InfoViewerSkeleton.d.ts +2 -1
- package/dist/components/InfoViewerSkeleton/InfoViewerSkeleton.js +10 -1
- package/dist/components/InfoViewerSkeleton/InfoViewerSkeleton.js.map +1 -1
- package/dist/components/MetricChart/reducer.d.ts +2 -2
- 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/NotRenderUntilFirstVisible/NotRenderUntilFirstVisible.d.ts +9 -0
- package/dist/components/NotRenderUntilFirstVisible/NotRenderUntilFirstVisible.js +9 -0
- package/dist/components/NotRenderUntilFirstVisible/NotRenderUntilFirstVisible.js.map +1 -0
- package/dist/components/NotRenderUntilFirstVisible/NotRenderUntilFirstVisible.scss +3 -0
- package/dist/components/PageMeta/PageMeta.d.ts +2 -1
- package/dist/components/PageMeta/PageMeta.js +9 -4
- package/dist/components/PageMeta/PageMeta.js.map +1 -1
- package/dist/components/PageMeta/PageMeta.scss +9 -6
- package/dist/components/PaginatedTable/PaginatedTable.d.ts +5 -4
- package/dist/components/PaginatedTable/PaginatedTable.js +24 -116
- package/dist/components/PaginatedTable/PaginatedTable.js.map +1 -1
- package/dist/components/PaginatedTable/PaginatedTable.scss +8 -0
- package/dist/components/PaginatedTable/ResizeablePaginatedTable.d.ts +2 -2
- package/dist/components/PaginatedTable/ResizeablePaginatedTable.js.map +1 -1
- package/dist/components/PaginatedTable/TableChunk.d.ts +13 -5
- package/dist/components/PaginatedTable/TableChunk.js +53 -22
- 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/PaginatedTable/TableRow.js +1 -1
- package/dist/components/PaginatedTable/TableRow.js.map +1 -1
- package/dist/components/PaginatedTable/types.d.ts +8 -1
- package/dist/components/Skeleton/Skeleton.d.ts +6 -0
- package/dist/components/Skeleton/Skeleton.js +11 -0
- package/dist/components/Skeleton/Skeleton.js.map +1 -0
- package/dist/components/Tablet/Tablet.js +2 -2
- package/dist/components/Tablet/Tablet.js.map +1 -1
- package/dist/components/TabletState/TabletState.d.ts +6 -0
- package/dist/components/TabletState/TabletState.js +7 -0
- package/dist/components/TabletState/TabletState.js.map +1 -0
- 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 +13 -22
- package/dist/containers/Cluster/Cluster.js.map +1 -1
- package/dist/containers/Cluster/Cluster.scss +14 -0
- 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/Cluster/i18n/index.d.ts +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/Heatmap/HeatmapCanvas/HeatmapCanvas.js +2 -2
- package/dist/containers/Heatmap/HeatmapCanvas/HeatmapCanvas.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.d.ts +2 -1
- package/dist/containers/Nodes/Nodes.js +3 -2
- package/dist/containers/Nodes/Nodes.js.map +1 -1
- package/dist/containers/Nodes/NodesWrapper.d.ts +1 -0
- package/dist/containers/Nodes/NodesWrapper.js.map +1 -1
- package/dist/containers/Nodes/PaginatedNodes.d.ts +2 -1
- package/dist/containers/Nodes/PaginatedNodes.js +7 -18
- package/dist/containers/Nodes/PaginatedNodes.js.map +1 -1
- package/dist/containers/Nodes/getNodes.d.ts +3 -6
- package/dist/containers/Nodes/getNodes.js +19 -2
- package/dist/containers/Nodes/getNodes.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/PDiskPage/PDiskPage.js +4 -5
- package/dist/containers/PDiskPage/PDiskPage.js.map +1 -1
- package/dist/containers/PDiskPage/PDiskPage.scss +0 -7
- package/dist/containers/PDiskPage/i18n/index.d.ts +1 -1
- package/dist/containers/Storage/PaginatedStorage.d.ts +2 -2
- package/dist/containers/Storage/PaginatedStorage.js +3 -3
- package/dist/containers/Storage/PaginatedStorage.js.map +1 -1
- package/dist/containers/Storage/Storage.d.ts +2 -2
- package/dist/containers/Storage/Storage.js +4 -4
- package/dist/containers/Storage/Storage.js.map +1 -1
- package/dist/containers/Storage/StorageGroups/PaginatedStorageGroups.d.ts +2 -2
- package/dist/containers/Storage/StorageGroups/PaginatedStorageGroups.js +5 -17
- package/dist/containers/Storage/StorageGroups/PaginatedStorageGroups.js.map +1 -1
- package/dist/containers/Storage/StorageGroups/getGroups.d.ts +3 -6
- package/dist/containers/Storage/StorageGroups/getGroups.js +15 -2
- package/dist/containers/Storage/StorageGroups/getGroups.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.d.ts +2 -2
- package/dist/containers/Storage/StorageNodes/PaginatedStorageNodes.js +8 -20
- 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/getNodes.d.ts +3 -5
- package/dist/containers/Storage/StorageNodes/getNodes.js +17 -2
- package/dist/containers/Storage/StorageNodes/getNodes.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/Storage/StorageWrapper.d.ts +1 -1
- package/dist/containers/Tablet/Tablet.d.ts +1 -1
- package/dist/containers/Tablet/Tablet.js +118 -54
- package/dist/containers/Tablet/Tablet.js.map +1 -1
- package/dist/containers/Tablet/Tablet.scss +4 -81
- package/dist/containers/Tablet/components/TabletControls/TabletControls.d.ts +6 -0
- package/dist/containers/Tablet/components/TabletControls/TabletControls.js +27 -0
- package/dist/containers/Tablet/components/TabletControls/TabletControls.js.map +1 -0
- package/dist/containers/Tablet/components/TabletControls/index.js.map +1 -0
- package/dist/containers/Tablet/components/TabletInfo/TabletInfo.d.ts +7 -0
- package/dist/containers/Tablet/components/TabletInfo/TabletInfo.js +59 -0
- package/dist/containers/Tablet/components/TabletInfo/TabletInfo.js.map +1 -0
- package/dist/containers/Tablet/components/TabletInfo/TabletInfo.scss +12 -0
- package/dist/containers/Tablet/components/TabletInfo/i18n/en.json +16 -0
- package/dist/containers/Tablet/components/TabletInfo/i18n/index.d.ts +1 -0
- package/dist/containers/Tablet/components/TabletInfo/i18n/index.js +5 -0
- package/dist/containers/Tablet/components/TabletInfo/i18n/index.js.map +1 -0
- package/dist/containers/Tablet/components/TabletInfo/index.js.map +1 -0
- package/dist/containers/Tablet/components/TabletStorageInfo/TabletStorageInfo.d.ts +7 -0
- package/dist/containers/Tablet/components/TabletStorageInfo/TabletStorageInfo.js +36 -0
- package/dist/containers/Tablet/components/TabletStorageInfo/TabletStorageInfo.js.map +1 -0
- package/dist/containers/Tablet/components/TabletStorageInfo/TabletStorageInfo.scss +78 -0
- package/dist/containers/Tablet/components/TabletStorageInfo/columns.d.ts +3 -0
- package/dist/containers/Tablet/components/TabletStorageInfo/columns.js +56 -0
- package/dist/containers/Tablet/components/TabletStorageInfo/columns.js.map +1 -0
- package/dist/containers/Tablet/components/TabletStorageInfo/i18n/en.json +7 -0
- package/dist/containers/Tablet/components/TabletStorageInfo/i18n/index.d.ts +1 -0
- package/dist/containers/Tablet/components/TabletStorageInfo/i18n/index.js +5 -0
- package/dist/containers/Tablet/components/TabletStorageInfo/i18n/index.js.map +1 -0
- package/dist/containers/Tablet/components/TabletStorageInfo/shared.d.ts +1 -0
- package/dist/containers/Tablet/components/TabletStorageInfo/shared.js +3 -0
- package/dist/containers/Tablet/components/TabletStorageInfo/shared.js.map +1 -0
- package/dist/containers/Tablet/components/TabletStorageInfo/types.d.ts +5 -0
- package/dist/containers/Tablet/components/TabletStorageInfo/types.js +2 -0
- package/dist/containers/Tablet/components/TabletStorageInfo/types.js.map +1 -0
- package/dist/containers/Tablet/components/TabletStorageInfo/utils.d.ts +3 -0
- package/dist/containers/Tablet/components/TabletStorageInfo/utils.js +29 -0
- package/dist/containers/Tablet/components/TabletStorageInfo/utils.js.map +1 -0
- package/dist/containers/Tablet/{TabletTable → components/TabletTable}/TabletTable.d.ts +1 -1
- package/dist/containers/Tablet/{TabletTable → components/TabletTable}/TabletTable.js +7 -6
- package/dist/containers/Tablet/components/TabletTable/TabletTable.js.map +1 -0
- package/dist/containers/Tablet/components/TabletTable/index.js.map +1 -0
- package/dist/containers/Tablet/i18n/en.json +5 -1
- package/dist/containers/Tablet/i18n/index.d.ts +1 -1
- package/dist/containers/Tablet/utils.d.ts +1 -0
- package/dist/containers/Tablet/utils.js +4 -0
- package/dist/containers/Tablet/utils.js.map +1 -0
- package/dist/containers/Tablets/Tablets.d.ts +2 -1
- package/dist/containers/Tablets/Tablets.js +100 -90
- package/dist/containers/Tablets/Tablets.js.map +1 -1
- package/dist/containers/Tablets/i18n/index.d.ts +1 -1
- package/dist/containers/Tenant/Acl/Acl.scss +2 -2
- package/dist/containers/Tenant/Diagnostics/Describe/Describe.js +10 -9
- package/dist/containers/Tenant/Diagnostics/Describe/Describe.js.map +1 -1
- package/dist/containers/Tenant/Diagnostics/Describe/Describe.scss +13 -2
- package/dist/containers/Tenant/Diagnostics/Diagnostics.js +3 -3
- 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/Overview/TableInfo/prepareTableInfo.js +21 -11
- package/dist/containers/Tenant/Diagnostics/Overview/TableInfo/prepareTableInfo.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/Diagnostics/TopShards/getTopShardsColumns.js +2 -2
- package/dist/containers/Tenant/Diagnostics/TopShards/getTopShardsColumns.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/ObjectGeneral/ObjectGeneral.js +3 -8
- package/dist/containers/Tenant/ObjectGeneral/ObjectGeneral.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/Query/ExplainResult/components/SimplifiedPlan/SimplifiedPlan.js +2 -5
- package/dist/containers/Tenant/Query/ExplainResult/components/SimplifiedPlan/SimplifiedPlan.js.map +1 -1
- package/dist/containers/Tenant/Query/ExplainResult/components/SimplifiedPlan/utils.d.ts +0 -1
- package/dist/containers/Tenant/Query/ExplainResult/components/SimplifiedPlan/utils.js +0 -21
- package/dist/containers/Tenant/Query/ExplainResult/components/SimplifiedPlan/utils.js.map +1 -1
- package/dist/containers/Tenant/Query/QueriesHistory/QueriesHistory.js +19 -1
- package/dist/containers/Tenant/Query/QueriesHistory/QueriesHistory.js.map +1 -1
- package/dist/containers/Tenant/Query/Query.js +2 -14
- package/dist/containers/Tenant/Query/Query.js.map +1 -1
- package/dist/containers/Tenant/Query/QueryEditor/QueryEditor.js +4 -4
- package/dist/containers/Tenant/Query/QueryEditor/QueryEditor.js.map +1 -1
- package/dist/containers/Tenant/Query/QueryEditorControls/utils/getChangedQueryExecutionSettings.test.js +1 -1
- package/dist/containers/Tenant/Query/QueryEditorControls/utils/getChangedQueryExecutionSettings.test.js.map +1 -1
- package/dist/containers/Tenant/Query/QueryEditorControls/utils/getChangedQueryExecutionSettingsDescription.test.js +1 -1
- package/dist/containers/Tenant/Query/QueryEditorControls/utils/getChangedQueryExecutionSettingsDescription.test.js.map +1 -1
- package/dist/containers/Tenant/Query/QuerySettingsDialog/QuerySettingsDialog.js +3 -3
- package/dist/containers/Tenant/Query/QuerySettingsDialog/QuerySettingsDialog.js.map +1 -1
- package/dist/containers/Tenant/Query/QuerySettingsDialog/constants.d.ts +8 -8
- package/dist/containers/Tenant/Query/QuerySettingsDialog/constants.js +6 -6
- package/dist/containers/Tenant/Query/QuerySettingsDialog/constants.js.map +1 -1
- package/dist/containers/Tenant/Query/i18n/en.json +4 -1
- package/dist/containers/Tenant/Query/i18n/index.d.ts +1 -1
- package/dist/containers/Tenant/Query/utils/useSavedQueries.js +2 -1
- package/dist/containers/Tenant/Query/utils/useSavedQueries.js.map +1 -1
- 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 +3 -21
- 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 +13 -23
- package/dist/containers/Tenant/Schema/SchemaViewer/prepareData.js.map +1 -1
- package/dist/containers/Tenant/Schema/SchemaViewer/types.d.ts +2 -3
- 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/Tenant/utils/queryTemplates.js +6 -5
- package/dist/containers/Tenant/utils/queryTemplates.js.map +1 -1
- 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 -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 -10
- package/dist/containers/UserSettings/settings.js.map +1 -1
- package/dist/containers/VDiskPage/VDiskPage.d.ts +4 -0
- package/dist/containers/VDiskPage/VDiskPage.js +17 -14
- package/dist/containers/VDiskPage/VDiskPage.js.map +1 -1
- package/dist/containers/VDiskPage/VDiskPage.scss +9 -4
- package/dist/containers/VDiskPage/i18n/index.d.ts +1 -1
- 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/routes.d.ts +1 -0
- package/dist/routes.js +3 -0
- package/dist/routes.js.map +1 -1
- package/dist/services/api.d.ts +19 -12
- package/dist/services/api.js +45 -15
- package/dist/services/api.js.map +1 -1
- package/dist/services/settings.d.ts +1 -2
- package/dist/services/settings.js +1 -2
- package/dist/services/settings.js.map +1 -1
- package/dist/store/configureStore.d.ts +6 -10
- package/dist/store/defaultStore.d.ts +3 -5
- package/dist/store/reducers/api.d.ts +1 -1
- package/dist/store/reducers/api.js +1 -1
- package/dist/store/reducers/api.js.map +1 -1
- package/dist/store/reducers/authentication/authentication.d.ts +4 -4
- package/dist/store/reducers/cancelQuery.d.ts +2 -2
- package/dist/store/reducers/capabilities/capabilities.d.ts +6 -10
- 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.d.ts +2 -2
- package/dist/store/reducers/clusters/clusters.d.ts +2 -2
- package/dist/store/reducers/describe.d.ts +2 -2
- package/dist/store/reducers/executeQuery.d.ts +18 -4
- package/dist/store/reducers/executeQuery.js +50 -5
- package/dist/store/reducers/executeQuery.js.map +1 -1
- package/dist/store/reducers/executeTopQueries/executeTopQueries.d.ts +2 -2
- package/dist/store/reducers/explainQuery/explainQuery.d.ts +2 -2
- package/dist/store/reducers/header/types.d.ts +7 -7
- package/dist/store/reducers/healthcheckInfo/healthcheckInfo.d.ts +58 -78
- package/dist/store/reducers/heatmap.d.ts +2 -2
- package/dist/store/reducers/heatmap.js +2 -2
- package/dist/store/reducers/heatmap.js.map +1 -1
- package/dist/store/reducers/hotKeys/hotKeys.d.ts +2 -2
- package/dist/store/reducers/index.d.ts +5 -8
- package/dist/store/reducers/index.js +0 -2
- package/dist/store/reducers/index.js.map +1 -1
- package/dist/store/reducers/network/network.d.ts +2 -2
- package/dist/store/reducers/node/node.d.ts +3 -3
- package/dist/store/reducers/node/selectors.d.ts +1 -2
- package/dist/store/reducers/nodes/nodes.d.ts +3 -3
- package/dist/store/reducers/nodes/types.d.ts +17 -1
- package/dist/store/reducers/nodes/utils.js +6 -0
- package/dist/store/reducers/nodes/utils.js.map +1 -1
- package/dist/store/reducers/nodesList.d.ts +3 -4
- package/dist/store/reducers/overview/overview.d.ts +2 -2
- package/dist/store/reducers/partitions/partitions.d.ts +2 -2
- package/dist/store/reducers/pdisk/pdisk.d.ts +3 -3
- package/dist/store/reducers/preview.d.ts +2 -2
- package/dist/store/reducers/schema/schema.d.ts +3 -3
- package/dist/store/reducers/schemaAcl/schemaAcl.d.ts +2 -2
- package/dist/store/reducers/shardsWorkload/shardsWorkload.d.ts +2 -2
- package/dist/store/reducers/storage/storage.d.ts +3 -3
- package/dist/store/reducers/storage/types.d.ts +15 -0
- package/dist/store/reducers/storage/types.js.map +1 -1
- package/dist/store/reducers/tableData.d.ts +14 -0
- package/dist/store/reducers/tableData.js +25 -0
- package/dist/store/reducers/tableData.js.map +1 -0
- package/dist/store/reducers/tablet.d.ts +20 -3
- package/dist/store/reducers/tablet.js +82 -13
- package/dist/store/reducers/tablet.js.map +1 -1
- package/dist/store/reducers/tablets.d.ts +15 -23
- package/dist/store/reducers/tablets.js +2 -20
- package/dist/store/reducers/tablets.js.map +1 -1
- package/dist/store/reducers/tenant/tenant.d.ts +2 -2
- package/dist/store/reducers/tenantOverview/executeTopTables/executeTopTables.d.ts +2 -2
- package/dist/store/reducers/tenantOverview/topNodes/topNodes.d.ts +2 -2
- package/dist/store/reducers/tenantOverview/topShards/tenantOverviewTopShards.d.ts +2 -2
- package/dist/store/reducers/tenantOverview/topStorageGroups/topStorageGroups.d.ts +2 -2
- package/dist/store/reducers/tenants/selectors.d.ts +30 -40
- package/dist/store/reducers/tenants/selectors.js +9 -8
- package/dist/store/reducers/tenants/selectors.js.map +1 -1
- package/dist/store/reducers/tenants/tenants.d.ts +2 -2
- package/dist/store/reducers/topic.d.ts +44 -59
- package/dist/store/reducers/vdisk/types.d.ts +1 -1
- package/dist/store/reducers/vdisk/vdisk.d.ts +3 -3
- package/dist/store/reducers/viewSchema/viewSchema.d.ts +2 -2
- 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 +3 -3
- package/dist/types/api/capabilities.d.ts +1 -1
- package/dist/types/api/nodes.d.ts +5 -0
- package/dist/types/api/nodes.js.map +1 -1
- package/dist/types/api/schema/shared.d.ts +1 -3
- package/dist/types/api/schema/shared.js.map +1 -1
- package/dist/types/api/schema/table.d.ts +2 -0
- package/dist/types/api/schema/table.js.map +1 -1
- package/dist/types/api/tablet.d.ts +22 -0
- package/dist/types/store/executeQuery.d.ts +5 -2
- package/dist/types/store/heatmap.d.ts +0 -1
- package/dist/types/store/tablets.d.ts +2 -1
- package/dist/utils/constants.d.ts +2 -2
- package/dist/utils/constants.js +2 -2
- package/dist/utils/constants.js.map +1 -1
- package/dist/utils/dataFormatters/dataFormatters.d.ts +1 -0
- package/dist/utils/dataFormatters/dataFormatters.js +5 -0
- package/dist/utils/dataFormatters/dataFormatters.js.map +1 -1
- package/dist/utils/developerUI/developerUI.d.ts +1 -1
- package/dist/utils/developerUI/developerUI.js +3 -2
- package/dist/utils/developerUI/developerUI.js.map +1 -1
- package/dist/utils/hooks/useQueryExecutionSettings.js +3 -2
- package/dist/utils/hooks/useQueryExecutionSettings.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 +2 -1
- package/dist/components/DiskPageTitle/DiskPageTitle.d.ts +0 -10
- package/dist/components/DiskPageTitle/DiskPageTitle.js.map +0 -1
- package/dist/components/PaginatedTable/reducer.d.ts +0 -43
- package/dist/components/PaginatedTable/reducer.js +0 -104
- package/dist/components/PaginatedTable/reducer.js.map +0 -1
- package/dist/containers/Tablet/TabletControls/TabletControls.d.ts +0 -7
- package/dist/containers/Tablet/TabletControls/TabletControls.js +0 -29
- package/dist/containers/Tablet/TabletControls/TabletControls.js.map +0 -1
- package/dist/containers/Tablet/TabletControls/index.js.map +0 -1
- package/dist/containers/Tablet/TabletInfo/TabletInfo.d.ts +0 -7
- package/dist/containers/Tablet/TabletInfo/TabletInfo.js +0 -40
- package/dist/containers/Tablet/TabletInfo/TabletInfo.js.map +0 -1
- package/dist/containers/Tablet/TabletInfo/index.js.map +0 -1
- package/dist/containers/Tablet/TabletTable/TabletTable.js.map +0 -1
- package/dist/containers/Tablet/TabletTable/index.js.map +0 -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 -45
- package/dist/store/reducers/tabletsFilters.js +0 -20
- package/dist/store/reducers/tabletsFilters.js.map +0 -1
- /package/dist/containers/Tablet/{TabletControls → components/TabletControls}/index.d.ts +0 -0
- /package/dist/containers/Tablet/{TabletControls → components/TabletControls}/index.js +0 -0
- /package/dist/containers/Tablet/{TabletInfo → components/TabletInfo}/index.d.ts +0 -0
- /package/dist/containers/Tablet/{TabletInfo → components/TabletInfo}/index.js +0 -0
- /package/dist/containers/Tablet/{TabletTable → components/TabletTable}/index.d.ts +0 -0
- /package/dist/containers/Tablet/{TabletTable → components/TabletTable}/index.js +0 -0
@@ -0,0 +1,23 @@
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
2
|
+
import { DefinitionList } from '@gravity-ui/components';
|
3
|
+
import { cn } from '../../utils/cn';
|
4
|
+
import i18n from './i18n';
|
5
|
+
import './YDBDefinitionList.scss';
|
6
|
+
const b = cn('ydb-definition-list');
|
7
|
+
/** DefinitionList with predefined styles and layout */
|
8
|
+
export function YDBDefinitionList({ title, items, nameMaxWidth = 220, copyPosition = 'outside', className, itemClassName, ...restProps }) {
|
9
|
+
const renderTitle = () => {
|
10
|
+
if (title) {
|
11
|
+
return _jsx("div", { className: b('title'), children: title });
|
12
|
+
}
|
13
|
+
return null;
|
14
|
+
};
|
15
|
+
const renderContent = () => {
|
16
|
+
if (items.length) {
|
17
|
+
return (_jsx(DefinitionList, { items: items, nameMaxWidth: nameMaxWidth, copyPosition: copyPosition, className: b('properties-list', className), itemClassName: b('item', itemClassName), ...restProps }));
|
18
|
+
}
|
19
|
+
return i18n('no-data');
|
20
|
+
};
|
21
|
+
return (_jsxs("div", { className: b(null), children: [renderTitle(), renderContent()] }));
|
22
|
+
}
|
23
|
+
//# sourceMappingURL=YDBDefinitionList.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"YDBDefinitionList.js","sourceRoot":"","sources":["../../../src/components/YDBDefinitionList/YDBDefinitionList.tsx"],"names":[],"mappings":";AAGA,OAAO,EAAC,cAAc,EAAC,MAAM,wBAAwB,CAAC;AAEtD,OAAO,EAAC,EAAE,EAAC,MAAM,gBAAgB,CAAC;AAElC,OAAO,IAAI,MAAM,QAAQ,CAAC;AAE1B,OAAO,0BAA0B,CAAC;AAElC,MAAM,CAAC,GAAG,EAAE,CAAC,qBAAqB,CAAC,CAAC;AAMpC,uDAAuD;AACvD,MAAM,UAAU,iBAAiB,CAAC,EAC9B,KAAK,EACL,KAAK,EACL,YAAY,GAAG,GAAG,EAClB,YAAY,GAAG,SAAS,EACxB,SAAS,EACT,aAAa,EACb,GAAG,SAAS,EACS;IACrB,MAAM,WAAW,GAAG,GAAG,EAAE;QACrB,IAAI,KAAK,EAAE,CAAC;YACR,OAAO,cAAK,SAAS,EAAE,CAAC,CAAC,OAAO,CAAC,YAAG,KAAK,GAAO,CAAC;QACrD,CAAC;QACD,OAAO,IAAI,CAAC;IAChB,CAAC,CAAC;IAEF,MAAM,aAAa,GAAG,GAAG,EAAE;QACvB,IAAI,KAAK,CAAC,MAAM,EAAE,CAAC;YACf,OAAO,CACH,KAAC,cAAc,IACX,KAAK,EAAE,KAAK,EACZ,YAAY,EAAE,YAAY,EAC1B,YAAY,EAAE,YAAY,EAC1B,SAAS,EAAE,CAAC,CAAC,iBAAiB,EAAE,SAAS,CAAC,EAC1C,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE,aAAa,CAAC,KACnC,SAAS,GACf,CACL,CAAC;QACN,CAAC;QAED,OAAO,IAAI,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC,CAAC;IAEF,OAAO,CACH,eAAK,SAAS,EAAE,CAAC,CAAC,IAAI,CAAC,aAClB,WAAW,EAAE,EACb,aAAa,EAAE,IACd,CACT,CAAC;AACN,CAAC"}
|
@@ -1,13 +1,13 @@
|
|
1
|
-
@import '
|
1
|
+
@import '../../styles/mixins.scss';
|
2
2
|
|
3
|
-
.ydb-
|
3
|
+
.ydb-definition-list {
|
4
4
|
@include flex-container();
|
5
5
|
|
6
|
-
&__properties-list {
|
7
|
-
max-width: calc(100% - 40px);
|
8
|
-
}
|
9
|
-
|
10
6
|
&__title {
|
11
7
|
@include info-viewer-title();
|
12
8
|
}
|
9
|
+
|
10
|
+
&__properties-list {
|
11
|
+
max-width: calc(100% - 40px);
|
12
|
+
}
|
13
13
|
}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/YDBDefinitionList/i18n/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,eAAe,EAAC,MAAM,qBAAqB,CAAC;AAEpD,OAAO,EAAE,MAAM,WAAW,CAAC;AAE3B,MAAM,SAAS,GAAG,qBAAqB,CAAC;AAExC,eAAe,eAAe,CAAC,SAAS,EAAE,EAAC,EAAE,EAAC,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,
|
17
|
+
import { ClusterSlot, ClustersSlot, NodeSlot, PDiskPageSlot, RedirectSlot, RoutesSlot, TabletSlot, TenantSlot, VDiskPageSlot, } from './appSlots';
|
18
18
|
import i18n from './i18n';
|
19
19
|
import './App.scss';
|
20
20
|
const b = cn('app');
|
@@ -55,12 +55,6 @@ const routesSlots = [
|
|
55
55
|
component: lazyComponent(() => import('../Tablet'), 'Tablet'),
|
56
56
|
wrapper: DataWrapper,
|
57
57
|
},
|
58
|
-
{
|
59
|
-
path: routes.tabletsFilters,
|
60
|
-
slot: TabletsFiltersSlot,
|
61
|
-
component: lazyComponent(() => import('../TabletsFilters/TabletsFilters'), 'TabletsFilters'),
|
62
|
-
wrapper: DataWrapper,
|
63
|
-
},
|
64
58
|
];
|
65
59
|
const Clusters = lazyComponent(() => import('../Clusters/Clusters'), 'Clusters');
|
66
60
|
function renderRouteSlot(slots, route) {
|
@@ -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,cAAc,CAAC;AAElC,OAAO,EAAC,iBAAiB,EAAC,MAAM,oDAAoD,CAAC;AACrF,OAAO,EAAC,eAAe,EAAC,MAAM,gDAAgD,CAAC;AAC/E,OAAO,EAAC,YAAY,EAAC,MAAM,gCAAgC,CAAC;AAC5D,OAAO,EAAC,EAAE,EAAC,MAAM,gBAAgB,CAAC;AAClC,OAAO,EAAC,aAAa,EAAC,MAAM,2BAA2B,CAAC;AACxD,OAAO,cA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AAC;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"}
|
@@ -4,7 +4,6 @@ import type { Clusters } from '../Clusters/Clusters';
|
|
4
4
|
import type { Node } from '../Node/Node';
|
5
5
|
import type { PDiskPage } from '../PDiskPage/PDiskPage';
|
6
6
|
import type { Tablet } from '../Tablet';
|
7
|
-
import type { TabletsFilters } from '../TabletsFilters/TabletsFilters';
|
8
7
|
import type { Tenant } from '../Tenant/Tenant';
|
9
8
|
import type { VDiskPage } from '../VDiskPage/VDiskPage';
|
10
9
|
export declare const ClustersSlot: import("../../components/slots/types").SlotComponent<{
|
@@ -42,11 +41,6 @@ export declare const TabletSlot: import("../../components/slots/types").SlotComp
|
|
42
41
|
component: typeof Tablet;
|
43
42
|
} & RouteComponentProps) => React.ReactNode);
|
44
43
|
}, never>;
|
45
|
-
export declare const TabletsFiltersSlot: import("../../components/slots/types").SlotComponent<{
|
46
|
-
children: React.ReactNode | ((props: {
|
47
|
-
component: typeof TabletsFilters;
|
48
|
-
} & RouteComponentProps) => React.ReactNode);
|
49
|
-
}, never>;
|
50
44
|
export declare const RoutesSlot: import("../../components/slots/types").SlotComponent<{
|
51
45
|
children: React.ReactNode;
|
52
46
|
}, never>;
|
@@ -6,7 +6,6 @@ export const NodeSlot = createSlot('node');
|
|
6
6
|
export const PDiskPageSlot = createSlot('pDisk');
|
7
7
|
export const VDiskPageSlot = createSlot('vDisk');
|
8
8
|
export const TabletSlot = createSlot('tablet');
|
9
|
-
export const TabletsFiltersSlot = createSlot('tabletsFilters');
|
10
9
|
export const RoutesSlot = createSlot('routes');
|
11
10
|
export const RedirectSlot = createSlot('redirect');
|
12
11
|
//# sourceMappingURL=appSlots.js.map
|
@@ -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;AASlD,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,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"}
|
@@ -9,12 +9,11 @@ import { EntityStatus } from '../../components/EntityStatus/EntityStatus';
|
|
9
9
|
import { InternalLink } from '../../components/InternalLink';
|
10
10
|
import routes, { getLocationObjectFromHref } from '../../routes';
|
11
11
|
import { clusterApi, updateDefaultClusterTab } from '../../store/reducers/cluster/cluster';
|
12
|
-
import { clusterNodesApi } from '../../store/reducers/clusterNodes/clusterNodes';
|
13
12
|
import { setHeaderBreadcrumbs } from '../../store/reducers/header/header';
|
14
13
|
import { cn } from '../../utils/cn';
|
15
14
|
import { CLUSTER_DEFAULT_TITLE } from '../../utils/constants';
|
16
|
-
import {
|
17
|
-
import {
|
15
|
+
import { useTypedDispatch, useTypedSelector } from '../../utils/hooks';
|
16
|
+
import { parseVersionsToVersionToColorMap } from '../../utils/versions';
|
18
17
|
import { NodesWrapper } from '../Nodes/NodesWrapper';
|
19
18
|
import { StorageWrapper } from '../Storage/StorageWrapper';
|
20
19
|
import { Tenants } from '../Tenants/Tenants';
|
@@ -32,13 +31,8 @@ export function Cluster({ additionalClusterProps, additionalTenantsProps, additi
|
|
32
31
|
clusterName: StringParam,
|
33
32
|
backend: StringParam,
|
34
33
|
});
|
35
|
-
const
|
36
|
-
const { data: { clusterData: cluster = {}, groupsStats } = {}, isLoading: isClusterLoading, error, } = clusterApi.useGetClusterInfoQuery(clusterName !== null && clusterName !== void 0 ? clusterName : undefined, {
|
37
|
-
pollingInterval: autoRefreshInterval,
|
38
|
-
});
|
34
|
+
const { data: { clusterData: cluster = {}, groupsStats } = {}, isLoading: infoLoading, error, } = clusterApi.useGetClusterInfoQuery(clusterName !== null && clusterName !== void 0 ? clusterName : undefined);
|
39
35
|
const clusterError = error && typeof error === 'object' ? error : undefined;
|
40
|
-
const { data: nodes = [], isLoading: isNodesLoading } = clusterNodesApi.useGetClusterNodesQuery(undefined);
|
41
|
-
const infoLoading = isClusterLoading || isNodesLoading;
|
42
36
|
const { Name } = cluster;
|
43
37
|
React.useEffect(() => {
|
44
38
|
dispatch(setHeaderBreadcrumbs('cluster', {}));
|
@@ -49,9 +43,6 @@ export function Cluster({ additionalClusterProps, additionalTenantsProps, additi
|
|
49
43
|
}
|
50
44
|
return parseVersionsToVersionToColorMap(cluster === null || cluster === void 0 ? void 0 : cluster.Versions);
|
51
45
|
}, [additionalVersionsProps, cluster]);
|
52
|
-
const versionsValues = React.useMemo(() => {
|
53
|
-
return parseNodesToVersionsValues(nodes, versionToColor);
|
54
|
-
}, [nodes, versionToColor]);
|
55
46
|
const getClusterTitle = () => {
|
56
47
|
var _a;
|
57
48
|
if (infoLoading) {
|
@@ -61,16 +52,16 @@ export function Cluster({ additionalClusterProps, additionalTenantsProps, additi
|
|
61
52
|
};
|
62
53
|
const clusterTitle = (_b = (_a = cluster === null || cluster === void 0 ? void 0 : cluster.Name) !== null && _a !== void 0 ? _a : clusterName) !== null && _b !== void 0 ? _b : CLUSTER_DEFAULT_TITLE;
|
63
54
|
const activeTab = React.useMemo(() => clusterTabs.find(({ id }) => id === activeTabId), [activeTabId]);
|
64
|
-
return (_jsxs("div", { className: b(), ref: container, children: [_jsx(Helmet, { defaultTitle: `${clusterTitle} — YDB Monitoring`, titleTemplate: `%s — ${clusterTitle} — YDB Monitoring`, children: activeTab ? _jsx("title", { children: activeTab.title }) : null }), _jsx("div", { className: b('header'), children: getClusterTitle() }),
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
55
|
+
return (_jsxs("div", { className: b(), ref: container, children: [_jsx(Helmet, { defaultTitle: `${clusterTitle} — YDB Monitoring`, titleTemplate: `%s — ${clusterTitle} — YDB Monitoring`, children: activeTab ? _jsx("title", { children: activeTab.title }) : null }), _jsx("div", { className: b('header'), children: getClusterTitle() }), _jsx("div", { className: b('tabs'), children: _jsx(Tabs, { size: "l", allowNotSelected: true, activeTab: activeTabId, items: clusterTabs, wrapTo: ({ id }, node) => {
|
56
|
+
const path = getClusterPath(id, { clusterName, backend });
|
57
|
+
return (_jsx(InternalLink, { to: path, onClick: () => {
|
58
|
+
dispatch(updateDefaultClusterTab(id));
|
59
|
+
}, children: node }, id));
|
60
|
+
} }) }), _jsxs("div", { children: [_jsx("div", { className: b('sticky-wrapper'), children: _jsx(AutoRefreshControl, { className: b('auto-refresh-control') }) }), _jsxs(Switch, { children: [_jsx(Route, { path: getLocationObjectFromHref(getClusterPath(clusterTabsIds.overview))
|
61
|
+
.pathname, children: _jsx(ClusterInfo, { cluster: cluster, groupsStats: groupsStats, versionToColor: versionToColor, loading: infoLoading, error: clusterError, additionalClusterProps: additionalClusterProps }) }), _jsx(Route, { path: getLocationObjectFromHref(getClusterPath(clusterTabsIds.tenants))
|
62
|
+
.pathname, children: _jsx(Tenants, { additionalTenantsProps: additionalTenantsProps }) }), _jsx(Route, { path: getLocationObjectFromHref(getClusterPath(clusterTabsIds.nodes)).pathname, children: _jsx(NodesWrapper, { parentContainer: container.current, additionalNodesProps: additionalNodesProps }) }), _jsx(Route, { path: getLocationObjectFromHref(getClusterPath(clusterTabsIds.storage))
|
63
|
+
.pathname, children: _jsx(StorageWrapper, { parentContainer: container.current, additionalNodesProps: additionalNodesProps }) }), _jsx(Route, { path: getLocationObjectFromHref(getClusterPath(clusterTabsIds.versions))
|
64
|
+
.pathname, children: _jsx(Versions, { versionToColor: versionToColor }) }), _jsx(Route, { render: () => (_jsx(Redirect, { to: getLocationObjectFromHref(getClusterPath(activeTabId)) })) })] })] })] }));
|
74
65
|
}
|
75
66
|
function useClusterTab() {
|
76
67
|
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,y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IAAI,SAAqB,CAAC;IAC1B,IAAI,YAAY,CAAC,mBAAmB,CAAC,EAAE,CAAC;QACpC,SAAS,GAAG,mBAAmB,CAAC;IACpC,CAAC;SAAM,CAAC;QACJ,SAAS,GAAG,UAAU,CAAC;IAC3B,CAAC;IAED,KAAK,CAAC,SAAS,CAAC,GAAG,EAAE;QACjB,IAAI,SAAS,KAAK,UAAU,EAAE,CAAC;YAC3B,QAAQ,CAAC,uBAAuB,CAAC,SAAS,CAAC,CAAC,CAAC;QACjD,CAAC;IACL,CAAC,EAAE,CAAC,SAAS,EAAE,UAAU,EAAE,QAAQ,CAAC,CAAC,CAAC;IAEtC,OAAO,SAAS,CAAC;AACrB,CAAC"}
|
@@ -36,4 +36,18 @@
|
|
36
36
|
align-items: center;
|
37
37
|
@include tabs-wrapper-styles();
|
38
38
|
}
|
39
|
+
|
40
|
+
&__sticky-wrapper {
|
41
|
+
position: sticky;
|
42
|
+
z-index: 4;
|
43
|
+
top: 56px;
|
44
|
+
}
|
45
|
+
|
46
|
+
&__auto-refresh-control {
|
47
|
+
float: right;
|
48
|
+
|
49
|
+
margin-top: -40px;
|
50
|
+
|
51
|
+
background-color: var(--g-color-base-background);
|
52
|
+
}
|
39
53
|
}
|
@@ -2,15 +2,15 @@ import type { ClusterGroupsStats } from '../../../store/reducers/cluster/types';
|
|
2
2
|
import type { AdditionalClusterProps } from '../../../types/additionalProps';
|
3
3
|
import type { TClusterInfo } from '../../../types/api/cluster';
|
4
4
|
import type { IResponseError } from '../../../types/api/error';
|
5
|
-
import type {
|
5
|
+
import type { VersionToColorMap } from '../../../types/versions';
|
6
6
|
import './ClusterInfo.scss';
|
7
7
|
interface ClusterInfoProps {
|
8
8
|
cluster?: TClusterInfo;
|
9
|
-
|
9
|
+
versionToColor?: VersionToColorMap;
|
10
10
|
groupsStats?: ClusterGroupsStats;
|
11
11
|
loading?: boolean;
|
12
12
|
error?: IResponseError;
|
13
13
|
additionalClusterProps?: AdditionalClusterProps;
|
14
14
|
}
|
15
|
-
export declare const ClusterInfo: ({ cluster,
|
15
|
+
export declare const ClusterInfo: ({ cluster, versionToColor, groupsStats, loading, error, additionalClusterProps, }: ClusterInfoProps) => import("react/jsx-runtime").JSX.Element;
|
16
16
|
export {};
|
@@ -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,MAAM,0CAA0C,CAAC;AAEvE,OAAO,UAAU,MAAM,2CAA2C,CAAC;
|
1
|
+
{"version":3,"file":"ClusterInfo.js","sourceRoot":"","sources":["../../../../src/containers/Cluster/ClusterInfo/ClusterInfo.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAC,gBAAgB,EAAC,MAAM,uDAAuD,CAAC;AACvF,OAAO,EAAC,aAAa,EAAC,MAAM,0CAA0C,CAAC;AAEvE,OAAO,EAAC,UAAU,EAAC,MAAM,2CAA2C,CAAC;AACrE,OAAO,EAAC,kBAAkB,EAAC,MAAM,2DAA2D,CAAC;AAC7F,OAAO,EAAC,YAAY,EAAC,MAAM,+CAA+C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AElC,IAAI,YAAY,GAAG,OAAO,GAAG,WAAW,CAAC;IAEzC,IAAI,iBAAiB,IAAI,CAAC,aAAa,EAAE,CAAC;QACtC,YAAY,GAAG,WAAW,CAAC;IAC/B,CAAC;IAED,MAAM,EAAC,IAAI,GAAG,EAAE,EAAE,KAAK,GAAG,EAAE,EAAC,GAAG,sBAAsB,CAAC;IAEvD,MAAM,WAAW,GAAG,OAAO,CAAC,OAAO,aAAP,OAAO,cAAP,OAAO,GAAI,EAAE,EAAE,cAAc,EAAE,WAAW,EAAE,IAAI,EAAE;QAC1E,EAAC,KAAK,EAAE,kBAAkB,EAAE,GAAG,EAAE,YAAY,EAAC;QAC9C,GAAG,KAAK;KACX,CAAC,CAAC;IAEH,MAAM,UAAU,GAAG,GAAG,EAAE;QACpB,IAAI,OAAO,EAAE,CAAC;YACV,OAAO,KAAC,kBAAkB,IAAC,SAAS,EAAE,CAAC,CAAC,UAAU,CAAC,EAAE,IAAI,EAAE,CAAC,GAAI,CAAC;QACrE,CAAC;QAED,IAAI,KAAK,IAAI,CAAC,OAAO,EAAE,CAAC;YACpB,OAAO,IAAI,CAAC;QAChB,CAAC;QAED,OAAO,KAAC,UAAU,IAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,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"}
|
@@ -1,2 +1,2 @@
|
|
1
|
-
declare const _default: (key: "nodes" | "tablets" | "versions" | "load" | "links" | "disk-type" | "erasure" | "allocated" | "available" | "usage" | "dc" | "databases" | "storage-size"
|
1
|
+
declare const _default: (key: "nodes" | "tablets" | "versions" | "load" | "links" | "storage-groups" | "disk-type" | "erasure" | "allocated" | "available" | "usage" | "dc" | "databases" | "storage-size", params?: import("@gravity-ui/i18n").Params) => string;
|
2
2
|
export default _default;
|
@@ -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,MAAM,4CAA4C,CAAC;AACxE,OAAO,EAAC,OAAO,EAAE,aAAa,EAAC,MAAM,aAAa,CAAC;AACnD,OAAO,EAAC,UAAU,EAAC,MAAM,sCAAsC,CAAC;AAChE,OAAO,EAAC,EAAE,EAAC,MAAM,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,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,EACxB,SAAS,IAAI,eAAe,GAC/B,MAAM,mBAAmB,CAAC;AAE3B,OAAO,EAAC,UAAU,EAAC,MAAM,wCAAwC,CAAC;AAClE,OAAO,
|
1
|
+
{"version":3,"file":"breadcrumbs.js","sourceRoot":"","sources":["../../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AAI;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"}
|
@@ -2,7 +2,7 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import React from 'react';
|
3
3
|
import throttle from 'lodash/throttle';
|
4
4
|
import PropTypes from 'prop-types';
|
5
|
-
import
|
5
|
+
import { getTabletPagePath } from '../../../routes';
|
6
6
|
import { basename as appBasename } from '../../../store/index';
|
7
7
|
import { cn } from '../../../utils/cn';
|
8
8
|
const b = cn('heatmap');
|
@@ -74,7 +74,7 @@ export const HeatmapCanvas = (props) => {
|
|
74
74
|
const generateTabletExternalLink = (tablet) => {
|
75
75
|
const { TabletId: id } = tablet;
|
76
76
|
const hostname = window.location.hostname;
|
77
|
-
const path =
|
77
|
+
const path = getTabletPagePath(id);
|
78
78
|
const protocol = 'https://';
|
79
79
|
const href = [hostname, appBasename, path]
|
80
80
|
.map((item) => (item.startsWith('/') ? item.slice(1) : item))
|