ydb-embedded-ui 6.21.0 → 6.23.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/components/AutoRefreshControl/i18n/index.d.ts +1 -1
- package/dist/components/DiskStateProgressBar/DiskStateProgressBar.d.ts +2 -1
- package/dist/components/DiskStateProgressBar/DiskStateProgressBar.js +2 -2
- package/dist/components/DiskStateProgressBar/DiskStateProgressBar.js.map +1 -1
- package/dist/components/DiskStateProgressBar/DiskStateProgressBar.scss +4 -0
- package/dist/components/GroupInfo/i18n/index.d.ts +1 -1
- package/dist/components/PDiskInfo/PDiskInfo.js +1 -3
- package/dist/components/PDiskInfo/PDiskInfo.js.map +1 -1
- package/dist/components/PDiskInfo/i18n/index.d.ts +1 -1
- package/dist/components/PDiskPopup/PDiskPopup.d.ts +2 -4
- package/dist/components/PDiskPopup/PDiskPopup.js +10 -5
- package/dist/components/PDiskPopup/PDiskPopup.js.map +1 -1
- package/dist/components/PaginatedTable/PaginatedTable.d.ts +2 -1
- package/dist/components/PaginatedTable/PaginatedTable.js +9 -7
- package/dist/components/PaginatedTable/PaginatedTable.js.map +1 -1
- package/dist/components/PaginatedTable/TableChunk.d.ts +2 -1
- package/dist/components/PaginatedTable/TableChunk.js +5 -2
- package/dist/components/PaginatedTable/TableChunk.js.map +1 -1
- package/dist/components/QueryResultTable/Cell/Cell.js +1 -4
- package/dist/components/QueryResultTable/Cell/Cell.js.map +1 -1
- package/dist/components/QueryResultTable/QueryResultTable.js +11 -16
- package/dist/components/QueryResultTable/QueryResultTable.js.map +1 -1
- package/dist/components/QueryResultTable/utils/getColumnWidth.d.ts +7 -0
- package/dist/components/QueryResultTable/utils/getColumnWidth.js +16 -0
- package/dist/components/QueryResultTable/utils/getColumnWidth.js.map +1 -0
- package/dist/components/QueryResultTable/utils/getColumnWidth.test.d.ts +1 -0
- package/dist/components/QueryResultTable/utils/getColumnWidth.test.js +32 -0
- package/dist/components/QueryResultTable/utils/getColumnWidth.test.js.map +1 -0
- package/dist/components/StorageGroupInfo/StorageGroupInfo.js +7 -7
- package/dist/components/StorageGroupInfo/StorageGroupInfo.js.map +1 -1
- package/dist/components/StorageGroupInfo/i18n/index.d.ts +1 -1
- package/dist/components/TableSkeleton/TableSkeleton.d.ts +2 -1
- package/dist/components/TableSkeleton/TableSkeleton.js +5 -1
- package/dist/components/TableSkeleton/TableSkeleton.js.map +1 -1
- package/dist/components/TableSkeleton/TableSkeleton.scss +7 -1
- package/dist/components/VDisk/VDisk.d.ts +2 -3
- package/dist/components/VDisk/VDisk.js +2 -2
- package/dist/components/VDisk/VDisk.js.map +1 -1
- package/dist/components/VDiskInfo/VDiskInfo.js +1 -3
- package/dist/components/VDiskInfo/VDiskInfo.js.map +1 -1
- package/dist/components/VDiskInfo/i18n/index.d.ts +1 -1
- package/dist/components/VDiskPopup/VDiskPopup.d.ts +1 -3
- package/dist/components/VDiskPopup/VDiskPopup.js +7 -2
- package/dist/components/VDiskPopup/VDiskPopup.js.map +1 -1
- package/dist/containers/App/App.scss +1 -1
- package/dist/containers/Cluster/Cluster.js +1 -1
- package/dist/containers/Cluster/Cluster.js.map +1 -1
- package/dist/containers/Cluster/Cluster.scss +2 -3
- package/dist/containers/Cluster/i18n/index.d.ts +1 -1
- package/dist/containers/Clusters/Clusters.js +3 -3
- package/dist/containers/Clusters/Clusters.js.map +1 -1
- package/dist/containers/Clusters/columns.js +2 -2
- package/dist/containers/Clusters/columns.js.map +1 -1
- package/dist/containers/Clusters/constants.d.ts +4 -4
- package/dist/containers/Clusters/constants.js +3 -3
- package/dist/containers/Clusters/constants.js.map +1 -1
- package/dist/containers/Header/breadcrumbs.js +2 -3
- package/dist/containers/Header/breadcrumbs.js.map +1 -1
- package/dist/containers/Node/Node.js +14 -4
- package/dist/containers/Node/Node.js.map +1 -1
- package/dist/containers/Node/NodePages.js +4 -5
- package/dist/containers/Node/NodePages.js.map +1 -1
- package/dist/containers/Nodes/Nodes.js +10 -11
- package/dist/containers/Nodes/Nodes.js.map +1 -1
- package/dist/containers/Nodes/PaginatedNodes.js +10 -11
- package/dist/containers/Nodes/PaginatedNodes.js.map +1 -1
- package/dist/containers/Nodes/{getNodesColumns.d.ts → columns/columns.d.ts} +3 -10
- package/dist/containers/Nodes/{getNodesColumns.js → columns/columns.js} +37 -39
- package/dist/containers/Nodes/columns/columns.js.map +1 -0
- package/dist/containers/Nodes/columns/constants.d.ts +41 -0
- package/dist/containers/Nodes/columns/constants.js +83 -0
- package/dist/containers/Nodes/columns/constants.js.map +1 -0
- package/dist/containers/Nodes/columns/hooks.d.ts +6 -0
- package/dist/containers/Nodes/columns/hooks.js +11 -0
- package/dist/containers/Nodes/columns/hooks.js.map +1 -0
- package/dist/containers/Nodes/columns/i18n/en.json +17 -0
- package/dist/containers/Nodes/columns/i18n/index.d.ts +2 -0
- package/dist/containers/Nodes/columns/i18n/index.js +5 -0
- package/dist/containers/Nodes/columns/i18n/index.js.map +1 -0
- package/dist/containers/Nodes/columns/types.d.ts +9 -0
- package/dist/containers/Nodes/columns/types.js +2 -0
- package/dist/containers/Nodes/columns/types.js.map +1 -0
- package/dist/containers/Nodes/getNodes.d.ts +3 -2
- package/dist/containers/Nodes/getNodes.js +6 -3
- package/dist/containers/Nodes/getNodes.js.map +1 -1
- package/dist/containers/PDiskPage/PDiskPage.js +12 -10
- package/dist/containers/PDiskPage/PDiskPage.js.map +1 -1
- package/dist/containers/PDiskPage/PDiskPage.scss +14 -14
- package/dist/containers/PDiskPage/i18n/en.json +1 -1
- package/dist/containers/PDiskPage/i18n/index.d.ts +1 -1
- package/dist/containers/ReduxTooltip/ReduxTooltip.js +7 -7
- package/dist/containers/ReduxTooltip/ReduxTooltip.js.map +1 -1
- package/dist/containers/Storage/Disks/Disks.d.ts +3 -3
- package/dist/containers/Storage/Disks/Disks.js +6 -7
- package/dist/containers/Storage/Disks/Disks.js.map +1 -1
- package/dist/containers/Storage/PDisk/PDisk.d.ts +5 -4
- package/dist/containers/Storage/PDisk/PDisk.js +3 -2
- package/dist/containers/Storage/PDisk/PDisk.js.map +1 -1
- package/dist/containers/Storage/PDisk/PDisk.scss +1 -1
- package/dist/containers/Storage/PaginatedStorage.d.ts +5 -6
- package/dist/containers/Storage/PaginatedStorage.js +9 -54
- package/dist/containers/Storage/PaginatedStorage.js.map +1 -1
- package/dist/containers/Storage/PaginatedStorageGroups.d.ts +3 -0
- package/dist/containers/Storage/PaginatedStorageGroups.js +84 -0
- package/dist/containers/Storage/PaginatedStorageGroups.js.map +1 -0
- package/dist/containers/Storage/PaginatedStorageNodes.d.ts +3 -0
- package/dist/containers/Storage/PaginatedStorageNodes.js +98 -0
- package/dist/containers/Storage/PaginatedStorageNodes.js.map +1 -0
- package/dist/containers/Storage/Storage.d.ts +4 -4
- package/dist/containers/Storage/Storage.js +46 -67
- package/dist/containers/Storage/Storage.js.map +1 -1
- package/dist/containers/Storage/Storage.scss +4 -0
- package/dist/containers/Storage/StorageControls/StorageControls.d.ts +6 -16
- package/dist/containers/Storage/StorageControls/StorageControls.js +18 -9
- package/dist/containers/Storage/StorageControls/StorageControls.js.map +1 -1
- package/dist/containers/Storage/StorageGroups/PaginatedStorageGroupsTable.d.ts +22 -0
- package/dist/containers/Storage/StorageGroups/{PaginatedStorageGroups.js → PaginatedStorageGroupsTable.js} +24 -8
- package/dist/containers/Storage/StorageGroups/PaginatedStorageGroupsTable.js.map +1 -0
- package/dist/containers/Storage/StorageGroups/StorageGroupsTable.d.ts +14 -0
- package/dist/containers/Storage/StorageGroups/{StorageGroups.js → StorageGroupsTable.js} +5 -6
- package/dist/containers/Storage/StorageGroups/StorageGroupsTable.js.map +1 -0
- package/dist/containers/Storage/StorageGroups/columns/columns.d.ts +4 -0
- package/dist/containers/Storage/StorageGroups/columns/{getStorageGroupsColumns.js → columns.js} +66 -89
- package/dist/containers/Storage/StorageGroups/columns/columns.js.map +1 -0
- package/dist/containers/Storage/StorageGroups/columns/constants.d.ts +54 -0
- package/dist/containers/Storage/StorageGroups/columns/constants.js +120 -0
- package/dist/containers/Storage/StorageGroups/columns/constants.js.map +1 -0
- package/dist/containers/Storage/StorageGroups/columns/hooks.d.ts +7 -3
- package/dist/containers/Storage/StorageGroups/columns/hooks.js +21 -16
- package/dist/containers/Storage/StorageGroups/columns/hooks.js.map +1 -1
- package/dist/containers/Storage/StorageGroups/columns/i18n/en.json +21 -0
- package/dist/containers/Storage/StorageGroups/columns/i18n/index.d.ts +2 -0
- package/dist/containers/Storage/StorageGroups/columns/i18n/index.js +5 -0
- package/dist/containers/Storage/StorageGroups/columns/i18n/index.js.map +1 -0
- package/dist/containers/Storage/StorageGroups/columns/types.d.ts +5 -7
- package/dist/containers/Storage/StorageGroups/getGroups.js +10 -6
- package/dist/containers/Storage/StorageGroups/getGroups.js.map +1 -1
- package/dist/containers/Storage/StorageNodes/PaginatedStorageNodesTable.d.ts +23 -0
- package/dist/containers/Storage/StorageNodes/{PaginatedStorageNodes.js → PaginatedStorageNodesTable.js} +24 -9
- package/dist/containers/Storage/StorageNodes/PaginatedStorageNodesTable.js.map +1 -0
- package/dist/containers/Storage/StorageNodes/StorageNodes.scss +1 -27
- package/dist/containers/Storage/StorageNodes/StorageNodesTable.d.ts +16 -0
- package/dist/containers/Storage/StorageNodes/{StorageNodes.js → StorageNodesTable.js} +9 -9
- package/dist/containers/Storage/StorageNodes/StorageNodesTable.js.map +1 -0
- package/dist/containers/Storage/StorageNodes/columns/StorageNodesColumns.scss +24 -0
- package/dist/containers/Storage/StorageNodes/columns/columns.d.ts +39 -0
- package/dist/containers/Storage/StorageNodes/{getStorageNodesColumns.js → columns/columns.js} +20 -31
- package/dist/containers/Storage/StorageNodes/columns/columns.js.map +1 -0
- package/dist/containers/Storage/StorageNodes/columns/constants.d.ts +34 -0
- package/dist/containers/Storage/StorageNodes/columns/constants.js +74 -0
- package/dist/containers/Storage/StorageNodes/columns/constants.js.map +1 -0
- package/dist/containers/Storage/StorageNodes/columns/hooks.d.ts +43 -0
- package/dist/containers/Storage/StorageNodes/columns/hooks.js +18 -0
- package/dist/containers/Storage/StorageNodes/columns/hooks.js.map +1 -0
- package/dist/containers/Storage/StorageNodes/columns/i18n/en.json +11 -0
- package/dist/containers/Storage/StorageNodes/columns/i18n/index.d.ts +2 -0
- package/dist/containers/Storage/StorageNodes/columns/i18n/index.js +5 -0
- package/dist/containers/Storage/StorageNodes/columns/i18n/index.js.map +1 -0
- package/dist/containers/Storage/StorageNodes/columns/types.d.ts +11 -0
- package/dist/containers/Storage/StorageNodes/columns/types.js +2 -0
- package/dist/containers/Storage/StorageNodes/columns/types.js.map +1 -0
- package/dist/containers/Storage/StorageNodes/getNodes.d.ts +2 -2
- package/dist/containers/Storage/StorageNodes/getNodes.js +13 -9
- package/dist/containers/Storage/StorageNodes/getNodes.js.map +1 -1
- package/dist/containers/Storage/StorageNodes/shared.js +1 -1
- package/dist/containers/Storage/StorageNodes/shared.js.map +1 -1
- package/dist/containers/Storage/StorageWrapper.d.ts +0 -2
- package/dist/containers/Storage/StorageWrapper.js.map +1 -1
- package/dist/containers/Storage/TableGroup/TableGroup.d.ts +12 -0
- package/dist/containers/Storage/TableGroup/TableGroup.js +21 -0
- package/dist/containers/Storage/TableGroup/TableGroup.js.map +1 -0
- package/dist/containers/Storage/TableGroup/TableGroup.scss +49 -0
- package/dist/containers/Storage/TableGroup/useExpandedTableGroups.d.ts +5 -0
- package/dist/containers/Storage/TableGroup/useExpandedTableGroups.js +28 -0
- package/dist/containers/Storage/TableGroup/useExpandedTableGroups.js.map +1 -0
- package/dist/containers/Storage/i18n/en.json +4 -1
- package/dist/containers/Storage/i18n/index.d.ts +1 -1
- package/dist/containers/Storage/i18n/index.js +1 -2
- package/dist/containers/Storage/i18n/index.js.map +1 -1
- package/dist/containers/Storage/shared.d.ts +2 -0
- package/dist/containers/Storage/shared.js +9 -0
- package/dist/containers/Storage/shared.js.map +1 -1
- package/dist/containers/Storage/useStorageQueryParams.d.ts +18 -0
- package/dist/containers/Storage/useStorageQueryParams.js +64 -0
- package/dist/containers/Storage/useStorageQueryParams.js.map +1 -0
- package/dist/containers/Storage/utils/index.d.ts +6 -2
- package/dist/containers/Storage/utils/index.js +17 -11
- package/dist/containers/Storage/utils/index.js.map +1 -1
- package/dist/containers/StorageGroupPage/StorageGroupPage.js +14 -57
- package/dist/containers/StorageGroupPage/StorageGroupPage.js.map +1 -1
- package/dist/containers/StorageGroupPage/StorageGroupPage.scss +14 -17
- package/dist/containers/StorageGroupPage/i18n/en.json +1 -2
- package/dist/containers/StorageGroupPage/i18n/index.d.ts +1 -1
- package/dist/containers/Tablets/i18n/index.d.ts +1 -1
- package/dist/containers/Tenant/Diagnostics/Describe/Describe.js +17 -3
- package/dist/containers/Tenant/Diagnostics/Describe/Describe.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/DiagnosticsPages.d.ts +6 -3
- package/dist/containers/Tenant/Diagnostics/DiagnosticsPages.js +4 -4
- package/dist/containers/Tenant/Diagnostics/DiagnosticsPages.js.map +1 -1
- package/dist/containers/Tenant/Diagnostics/HotKeys/HotKeys.js +10 -3
- package/dist/containers/Tenant/Diagnostics/HotKeys/HotKeys.js.map +1 -1
- package/dist/containers/Tenant/Diagnostics/Overview/Overview.js +2 -3
- package/dist/containers/Tenant/Diagnostics/Overview/Overview.js.map +1 -1
- package/dist/containers/Tenant/Diagnostics/Partitions/Partitions.js +4 -4
- package/dist/containers/Tenant/Diagnostics/Partitions/Partitions.js.map +1 -1
- package/dist/containers/Tenant/Diagnostics/Partitions/utils/index.d.ts +2 -2
- package/dist/containers/Tenant/Diagnostics/Partitions/utils/index.js +5 -5
- package/dist/containers/Tenant/Diagnostics/Partitions/utils/index.js.map +1 -1
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/TopNodesByCpu.js +12 -5
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/TopNodesByCpu.js.map +1 -1
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/TopNodesByLoad.js +12 -5
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/TopNodesByLoad.js.map +1 -1
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantMemory/TopNodesByMemory.js +13 -5
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantMemory/TopNodesByMemory.js.map +1 -1
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantOverview.js +8 -2
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantOverview.js.map +1 -1
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantStorage/TopGroups.js +2 -1
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantStorage/TopGroups.js.map +1 -1
- package/dist/containers/Tenant/Diagnostics/TenantOverview/i18n/index.d.ts +1 -1
- package/dist/containers/Tenant/Diagnostics/TopQueries/RunningQueriesData.d.ts +5 -0
- package/dist/containers/Tenant/Diagnostics/TopQueries/RunningQueriesData.js +21 -0
- package/dist/containers/Tenant/Diagnostics/TopQueries/RunningQueriesData.js.map +1 -0
- package/dist/containers/Tenant/Diagnostics/TopQueries/TopQueries.d.ts +1 -3
- package/dist/containers/Tenant/Diagnostics/TopQueries/TopQueries.js +32 -37
- package/dist/containers/Tenant/Diagnostics/TopQueries/TopQueries.js.map +1 -1
- package/dist/containers/Tenant/Diagnostics/TopQueries/TopQueriesData.d.ts +6 -0
- package/dist/containers/Tenant/Diagnostics/TopQueries/TopQueriesData.js +33 -0
- package/dist/containers/Tenant/Diagnostics/TopQueries/TopQueriesData.js.map +1 -0
- package/dist/containers/Tenant/Diagnostics/TopQueries/getTopQueriesColumns.d.ts +2 -0
- package/dist/containers/Tenant/Diagnostics/TopQueries/getTopQueriesColumns.js +26 -0
- package/dist/containers/Tenant/Diagnostics/TopQueries/getTopQueriesColumns.js.map +1 -1
- package/dist/containers/Tenant/Diagnostics/TopQueries/i18n/en.json +7 -1
- package/dist/containers/Tenant/Diagnostics/TopQueries/i18n/index.d.ts +1 -1
- package/dist/containers/Tenant/Diagnostics/TopQueries/i18n/index.js +1 -2
- package/dist/containers/Tenant/Diagnostics/TopQueries/i18n/index.js.map +1 -1
- package/dist/containers/Tenant/ObjectSummary/ObjectSummary.js +71 -62
- package/dist/containers/Tenant/ObjectSummary/ObjectSummary.js.map +1 -1
- package/dist/containers/Tenant/ObjectSummary/ObjectSummary.scss +6 -7
- package/dist/containers/Tenant/ObjectSummary/ObjectTree.d.ts +6 -0
- package/dist/containers/Tenant/ObjectSummary/ObjectTree.js +25 -0
- package/dist/containers/Tenant/ObjectSummary/ObjectTree.js.map +1 -0
- package/dist/containers/Tenant/ObjectSummary/SchemaActions.d.ts +1 -0
- package/dist/containers/Tenant/ObjectSummary/SchemaActions.js +18 -0
- package/dist/containers/Tenant/ObjectSummary/SchemaActions.js.map +1 -0
- package/dist/containers/Tenant/ObjectSummary/__test__/transformPath.test.js +27 -3
- package/dist/containers/Tenant/ObjectSummary/__test__/transformPath.test.js.map +1 -1
- package/dist/containers/Tenant/ObjectSummary/i18n/en.json +21 -0
- package/dist/containers/Tenant/ObjectSummary/i18n/index.d.ts +2 -0
- package/dist/containers/Tenant/ObjectSummary/i18n/index.js +5 -0
- package/dist/containers/Tenant/ObjectSummary/i18n/index.js.map +1 -0
- package/dist/containers/Tenant/ObjectSummary/shared.d.ts +1 -0
- package/dist/containers/Tenant/ObjectSummary/shared.js +3 -0
- package/dist/containers/Tenant/ObjectSummary/shared.js.map +1 -0
- package/dist/containers/Tenant/ObjectSummary/transformPath.d.ts +2 -0
- package/dist/containers/Tenant/ObjectSummary/transformPath.js +10 -0
- package/dist/containers/Tenant/ObjectSummary/transformPath.js.map +1 -1
- package/dist/containers/Tenant/Query/ExecuteResult/ExecuteResult.js +14 -12
- package/dist/containers/Tenant/Query/ExecuteResult/ExecuteResult.js.map +1 -1
- package/dist/containers/Tenant/Query/ExecuteResult/ExecuteResult.scss +8 -0
- package/dist/containers/Tenant/Query/ExecuteResult/i18n/en.json +3 -1
- package/dist/containers/Tenant/Query/ExecuteResult/i18n/index.d.ts +1 -1
- package/dist/containers/Tenant/Query/NewSQL/NewSQL.d.ts +1 -0
- package/dist/containers/Tenant/Query/NewSQL/NewSQL.js +135 -0
- package/dist/containers/Tenant/Query/NewSQL/NewSQL.js.map +1 -0
- package/dist/containers/Tenant/Query/NewSQL/i18n/en.json +32 -0
- package/dist/containers/Tenant/Query/NewSQL/i18n/index.d.ts +2 -0
- package/dist/containers/Tenant/Query/NewSQL/i18n/index.js +5 -0
- package/dist/containers/Tenant/Query/NewSQL/i18n/index.js.map +1 -0
- package/dist/containers/Tenant/Query/QueryEditorControls/QueryEditorControls.js +2 -1
- package/dist/containers/Tenant/Query/QueryEditorControls/QueryEditorControls.js.map +1 -1
- package/dist/containers/Tenant/Query/QueryEditorControls/QueryEditorControls.scss +1 -0
- package/dist/containers/Tenant/Query/QueryEditorControls/utils/getChangedQueryExecutionSettings.js +3 -1
- package/dist/containers/Tenant/Query/QueryEditorControls/utils/getChangedQueryExecutionSettings.js.map +1 -1
- package/dist/containers/Tenant/Query/QueryEditorControls/utils/getChangedQueryExecutionSettings.test.js +5 -10
- package/dist/containers/Tenant/Query/QueryEditorControls/utils/getChangedQueryExecutionSettings.test.js.map +1 -1
- package/dist/containers/Tenant/Query/QueryEditorControls/utils/getChangedQueryExecutionSettingsDescription.js +5 -3
- package/dist/containers/Tenant/Query/QueryEditorControls/utils/getChangedQueryExecutionSettingsDescription.js.map +1 -1
- package/dist/containers/Tenant/Query/QueryEditorControls/utils/getChangedQueryExecutionSettingsDescription.test.js +6 -10
- package/dist/containers/Tenant/Query/QueryEditorControls/utils/getChangedQueryExecutionSettingsDescription.test.js.map +1 -1
- package/dist/containers/Tenant/Query/QuerySettingsDialog/QuerySettingsDialog.js +11 -2
- package/dist/containers/Tenant/Query/QuerySettingsDialog/QuerySettingsDialog.js.map +1 -1
- package/dist/containers/Tenant/Query/QuerySettingsDialog/QuerySettingsDialog.scss +1 -0
- package/dist/containers/Tenant/Query/QuerySettingsDialog/QuerySettingsSelect.d.ts +1 -0
- package/dist/containers/Tenant/Query/QuerySettingsDialog/QuerySettingsSelect.js +1 -1
- package/dist/containers/Tenant/Query/QuerySettingsDialog/QuerySettingsSelect.js.map +1 -1
- package/dist/containers/Tenant/Query/QuerySettingsDialog/constants.d.ts +3 -0
- package/dist/containers/Tenant/Query/QuerySettingsDialog/constants.js +3 -0
- package/dist/containers/Tenant/Query/QuerySettingsDialog/constants.js.map +1 -1
- package/dist/containers/Tenant/Query/QuerySettingsDialog/i18n/en.json +3 -0
- package/dist/containers/Tenant/Query/QuerySettingsDialog/i18n/index.d.ts +1 -1
- package/dist/containers/Tenant/Query/QuerySettingsDialog/i18n/ru.json +3 -0
- package/dist/containers/Tenant/Schema/SchemaTree/SchemaTree.js +1 -1
- package/dist/containers/Tenant/Schema/SchemaTree/SchemaTree.js.map +1 -1
- package/dist/containers/Tenant/Schema/SchemaViewer/SchemaViewer.js +10 -2
- package/dist/containers/Tenant/Schema/SchemaViewer/SchemaViewer.js.map +1 -1
- package/dist/containers/Tenant/Schema/SchemaViewer/prepareData.d.ts +2 -1
- package/dist/containers/Tenant/Schema/SchemaViewer/prepareData.js.map +1 -1
- package/dist/containers/Tenant/Tenant.js +7 -3
- package/dist/containers/Tenant/Tenant.js.map +1 -1
- package/dist/containers/Tenant/utils/newSQLQueryActions.d.ts +27 -0
- package/dist/containers/Tenant/utils/newSQLQueryActions.js +35 -0
- package/dist/containers/Tenant/utils/newSQLQueryActions.js.map +1 -0
- package/dist/containers/Tenant/utils/newSQLQueryTemplates.d.ts +24 -0
- package/dist/containers/Tenant/utils/newSQLQueryTemplates.js +228 -0
- package/dist/containers/Tenant/utils/newSQLQueryTemplates.js.map +1 -0
- package/dist/containers/Tenant/utils/schema.js +1 -0
- package/dist/containers/Tenant/utils/schema.js.map +1 -1
- package/dist/containers/Tenant/utils/schemaActions.d.ts +1 -1
- package/dist/containers/Tenant/utils/schemaActions.js +8 -6
- package/dist/containers/Tenant/utils/schemaActions.js.map +1 -1
- package/dist/containers/Tenant/utils/{queryTemplates.js → schemaQueryTemplates.js} +1 -1
- package/dist/containers/Tenant/utils/schemaQueryTemplates.js.map +1 -0
- package/dist/containers/UserSettings/i18n/en.json +0 -2
- package/dist/containers/UserSettings/i18n/index.d.ts +1 -1
- package/dist/containers/UserSettings/settings.d.ts +0 -1
- package/dist/containers/UserSettings/settings.js +2 -7
- package/dist/containers/UserSettings/settings.js.map +1 -1
- package/dist/containers/VDiskPage/VDiskPage.d.ts +0 -3
- package/dist/containers/VDiskPage/VDiskPage.js +9 -33
- package/dist/containers/VDiskPage/VDiskPage.js.map +1 -1
- package/dist/containers/VDiskPage/VDiskPage.scss +10 -19
- package/dist/containers/VDiskPage/i18n/en.json +1 -1
- package/dist/containers/VDiskPage/i18n/index.d.ts +1 -1
- package/dist/services/api.d.ts +16 -5
- package/dist/services/api.js +53 -14
- package/dist/services/api.js.map +1 -1
- package/dist/services/settings.d.ts +2 -2
- package/dist/services/settings.js +2 -3
- package/dist/services/settings.js.map +1 -1
- package/dist/store/configureStore.d.ts +2 -2
- package/dist/store/defaultStore.d.ts +1 -1
- package/dist/store/reducers/capabilities/capabilities.d.ts +8 -1
- package/dist/store/reducers/capabilities/capabilities.js +6 -1
- package/dist/store/reducers/capabilities/capabilities.js.map +1 -1
- package/dist/store/reducers/capabilities/hooks.d.ts +2 -0
- package/dist/store/reducers/capabilities/hooks.js +6 -0
- package/dist/store/reducers/capabilities/hooks.js.map +1 -1
- package/dist/store/reducers/executeQuery.js +3 -0
- package/dist/store/reducers/executeQuery.js.map +1 -1
- package/dist/store/reducers/executeTopQueries/executeTopQueries.d.ts +4 -0
- package/dist/store/reducers/executeTopQueries/executeTopQueries.js +27 -1
- package/dist/store/reducers/executeTopQueries/executeTopQueries.js.map +1 -1
- package/dist/store/reducers/index.d.ts +2 -2
- package/dist/store/reducers/nodes/nodes.d.ts +2 -2
- package/dist/store/reducers/nodes/nodes.js.map +1 -1
- package/dist/store/reducers/nodes/types.d.ts +3 -24
- package/dist/store/reducers/nodesList.d.ts +5 -5
- package/dist/store/reducers/nodesList.js +2 -2
- package/dist/store/reducers/nodesList.js.map +1 -1
- package/dist/store/reducers/overview/overview.js +5 -1
- package/dist/store/reducers/overview/overview.js.map +1 -1
- package/dist/store/reducers/pdisk/pdisk.js +29 -2
- package/dist/store/reducers/pdisk/pdisk.js.map +1 -1
- package/dist/store/reducers/pdisk/utils.js +1 -1
- package/dist/store/reducers/pdisk/utils.js.map +1 -1
- package/dist/store/reducers/storage/requestStorageData.d.ts +3 -3
- package/dist/store/reducers/storage/requestStorageData.js.map +1 -1
- package/dist/store/reducers/storage/selectors.d.ts +2 -3
- package/dist/store/reducers/storage/selectors.js +1 -27
- package/dist/store/reducers/storage/selectors.js.map +1 -1
- package/dist/store/reducers/storage/storage.d.ts +4 -4
- package/dist/store/reducers/storage/storage.js.map +1 -1
- package/dist/store/reducers/storage/types.d.ts +19 -10
- package/dist/store/reducers/storage/utils.js +27 -3
- package/dist/store/reducers/storage/utils.js.map +1 -1
- package/dist/store/reducers/tablet.js +5 -3
- package/dist/store/reducers/tablet.js.map +1 -1
- package/dist/store/reducers/tablets.d.ts +3 -3
- package/dist/store/reducers/tablets.js +4 -4
- package/dist/store/reducers/tablets.js.map +1 -1
- package/dist/store/reducers/tooltip.d.ts +1 -1
- package/dist/styles/mixins.scss +3 -3
- package/dist/types/api/capabilities.d.ts +1 -1
- package/dist/types/api/common.d.ts +1 -0
- package/dist/types/api/nodes.d.ts +34 -0
- package/dist/types/api/nodes.js.map +1 -1
- package/dist/types/api/query.d.ts +1 -0
- package/dist/types/api/storage.d.ts +29 -8
- package/dist/types/store/nodesList.d.ts +1 -1
- package/dist/types/store/query.d.ts +5 -8
- package/dist/utils/constants.d.ts +0 -8
- package/dist/utils/constants.js +0 -9
- package/dist/utils/constants.js.map +1 -1
- package/dist/utils/filters.d.ts +2 -1
- package/dist/utils/filters.js +1 -4
- package/dist/utils/filters.js.map +1 -1
- package/dist/utils/hooks/useChangedQuerySettings.d.ts +2 -2
- package/dist/utils/hooks/useChangedQuerySettings.js +2 -1
- package/dist/utils/hooks/useChangedQuerySettings.js.map +1 -1
- package/dist/utils/hooks/useLastQueryExecutionSettings.d.ts +15 -2
- package/dist/utils/hooks/useLastQueryExecutionSettings.js +8 -9
- package/dist/utils/hooks/useLastQueryExecutionSettings.js.map +1 -1
- package/dist/utils/hooks/useQueryExecutionSettings.d.ts +15 -2
- package/dist/utils/hooks/useQueryExecutionSettings.js +5 -7
- package/dist/utils/hooks/useQueryExecutionSettings.js.map +1 -1
- package/dist/utils/hooks/useSelectedColumns.d.ts +8 -0
- package/dist/utils/hooks/useSelectedColumns.js +40 -0
- package/dist/utils/hooks/useSelectedColumns.js.map +1 -0
- package/dist/utils/nodes.d.ts +5 -24
- package/dist/utils/nodes.js +20 -23
- package/dist/utils/nodes.js.map +1 -1
- package/dist/utils/query.d.ts +129 -0
- package/dist/utils/query.js +33 -1
- package/dist/utils/query.js.map +1 -1
- package/dist/utils/storage.d.ts +1 -1
- package/dist/utils/storage.js +2 -0
- package/dist/utils/storage.js.map +1 -1
- package/dist/utils/utils.js +2 -1
- package/dist/utils/utils.js.map +1 -1
- package/package.json +2 -1
- package/dist/containers/Clusters/useSelectedColumns.d.ts +0 -7
- package/dist/containers/Clusters/useSelectedColumns.js +0 -26
- package/dist/containers/Clusters/useSelectedColumns.js.map +0 -1
- package/dist/containers/Nodes/getNodesColumns.js.map +0 -1
- package/dist/containers/PDiskPage/PDiskGroups/PDiskGroups.d.ts +0 -6
- package/dist/containers/PDiskPage/PDiskGroups/PDiskGroups.js +0 -30
- package/dist/containers/PDiskPage/PDiskGroups/PDiskGroups.js.map +0 -1
- package/dist/containers/PDiskPage/PDiskGroups/utils.d.ts +0 -2
- package/dist/containers/PDiskPage/PDiskGroups/utils.js +0 -14
- package/dist/containers/PDiskPage/PDiskGroups/utils.js.map +0 -1
- package/dist/containers/Storage/StorageGroups/PaginatedStorageGroups.d.ts +0 -14
- package/dist/containers/Storage/StorageGroups/PaginatedStorageGroups.js.map +0 -1
- package/dist/containers/Storage/StorageGroups/StorageGroups.d.ts +0 -13
- package/dist/containers/Storage/StorageGroups/StorageGroups.js.map +0 -1
- package/dist/containers/Storage/StorageGroups/columns/getStorageGroupsColumns.d.ts +0 -21
- package/dist/containers/Storage/StorageGroups/columns/getStorageGroupsColumns.js.map +0 -1
- package/dist/containers/Storage/StorageNodes/PaginatedStorageNodes.d.ts +0 -17
- package/dist/containers/Storage/StorageNodes/PaginatedStorageNodes.js.map +0 -1
- package/dist/containers/Storage/StorageNodes/StorageNodes.d.ts +0 -19
- package/dist/containers/Storage/StorageNodes/StorageNodes.js.map +0 -1
- package/dist/containers/Storage/StorageNodes/getStorageNodesColumns.d.ts +0 -50
- package/dist/containers/Storage/StorageNodes/getStorageNodesColumns.js.map +0 -1
- package/dist/containers/Storage/UsageFilter/UsageFilter.d.ts +0 -14
- package/dist/containers/Storage/UsageFilter/UsageFilter.js +0 -39
- package/dist/containers/Storage/UsageFilter/UsageFilter.js.map +0 -1
- package/dist/containers/Storage/UsageFilter/UsageFilter.scss +0 -38
- package/dist/containers/Storage/UsageFilter/i18n/en.json +0 -5
- package/dist/containers/Storage/UsageFilter/i18n/index.d.ts +0 -2
- package/dist/containers/Storage/UsageFilter/i18n/index.js +0 -6
- package/dist/containers/Storage/UsageFilter/i18n/index.js.map +0 -1
- package/dist/containers/Storage/UsageFilter/i18n/ru.json +0 -5
- package/dist/containers/Storage/UsageFilter/index.d.ts +0 -1
- package/dist/containers/Storage/UsageFilter/index.js +0 -2
- package/dist/containers/Storage/UsageFilter/index.js.map +0 -1
- package/dist/containers/Storage/i18n/ru.json +0 -6
- package/dist/containers/Tenant/Diagnostics/TopQueries/i18n/ru.json +0 -4
- package/dist/containers/Tenant/utils/queryTemplates.js.map +0 -1
- package/dist/containers/VDiskPage/utils.d.ts +0 -2
- package/dist/containers/VDiskPage/utils.js +0 -7
- package/dist/containers/VDiskPage/utils.js.map +0 -1
- package/dist/store/reducers/describe.d.ts +0 -7
- package/dist/store/reducers/describe.js +0 -25
- package/dist/store/reducers/describe.js.map +0 -1
- package/dist/store/reducers/tenantOverview/topNodes/topNodes.d.ts +0 -4
- package/dist/store/reducers/tenantOverview/topNodes/topNodes.js +0 -27
- package/dist/store/reducers/tenantOverview/topNodes/topNodes.js.map +0 -1
- /package/dist/containers/Tenant/utils/{queryTemplates.d.ts → schemaQueryTemplates.d.ts} +0 -0
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/containers/Storage/StorageNodes/columns/i18n/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,eAAe,EAAC,MAAM,2BAA2B,CAAC;AAE1D,OAAO,EAAE,MAAM,WAAW,CAAC;AAE3B,MAAM,SAAS,GAAG,2BAA2B,CAAC;AAE9C,eAAe,eAAe,CAAC,SAAS,EAAE,EAAC,EAAE,EAAC,CAAC,CAAC"}
|
@@ -0,0 +1,11 @@
|
|
1
|
+
import type { Column as DataTableColumn } from '@gravity-ui/react-data-table';
|
2
|
+
import type { Column as PaginatedTableColumn } from '../../../../components/PaginatedTable';
|
3
|
+
import type { PreparedStorageNode, VisibleEntities } from '../../../../store/reducers/storage/types';
|
4
|
+
import type { AdditionalNodesProps } from '../../../../types/additionalProps';
|
5
|
+
export type StorageNodesColumn = PaginatedTableColumn<PreparedStorageNode> & DataTableColumn<PreparedStorageNode>;
|
6
|
+
export interface GetStorageNodesColumnsParams {
|
7
|
+
additionalNodesProps: AdditionalNodesProps | undefined;
|
8
|
+
visibleEntities?: VisibleEntities;
|
9
|
+
database?: string;
|
10
|
+
groupId?: string;
|
11
|
+
}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../../src/containers/Storage/StorageNodes/columns/types.ts"],"names":[],"mappings":""}
|
@@ -1,4 +1,4 @@
|
|
1
1
|
import type { FetchData } from '../../../components/PaginatedTable';
|
2
|
-
import type { NodesApiRequestParams } from '../../../store/reducers/nodes/types';
|
3
2
|
import type { PreparedStorageNode, PreparedStorageNodeFilters } from '../../../store/reducers/storage/types';
|
4
|
-
|
3
|
+
import type { NodesRequestParams } from '../../../types/api/nodes';
|
4
|
+
export declare const getStorageNodes: FetchData<PreparedStorageNode, PreparedStorageNodeFilters, Pick<NodesRequestParams, 'type' | 'storage'>>;
|
@@ -1,24 +1,28 @@
|
|
1
1
|
import { prepareStorageNodesResponse } from '../../../store/reducers/storage/utils';
|
2
|
-
import {
|
3
|
-
|
4
|
-
return `getStorageNodes|offset${offset}|limit${limit}`;
|
5
|
-
};
|
2
|
+
import { prepareSortValue } from '../../../utils/filters';
|
3
|
+
import { getUptimeParamValue, isSortableNodesProperty } from '../../../utils/nodes';
|
6
4
|
export const getStorageNodes = async (params) => {
|
7
5
|
const { type = 'static', storage = true, limit, offset, sortParams, filters } = params;
|
8
|
-
const { searchValue, nodesUptimeFilter, visibleEntities, database } = filters !== null && filters !== void 0 ? filters : {};
|
6
|
+
const { searchValue, nodesUptimeFilter, visibleEntities, database, nodeId, groupId, filterGroup, filterGroupBy, } = filters !== null && filters !== void 0 ? filters : {};
|
9
7
|
const { sortOrder, columnId } = sortParams !== null && sortParams !== void 0 ? sortParams : {};
|
8
|
+
const sort = isSortableNodesProperty(columnId)
|
9
|
+
? prepareSortValue(columnId, sortOrder)
|
10
|
+
: undefined;
|
10
11
|
const response = await window.api.getNodes({
|
11
12
|
type,
|
12
13
|
storage,
|
13
14
|
limit,
|
14
15
|
offset,
|
15
|
-
|
16
|
-
sortValue: columnId,
|
16
|
+
sort,
|
17
17
|
filter: searchValue,
|
18
18
|
uptime: getUptimeParamValue(nodesUptimeFilter),
|
19
|
-
visibleEntities,
|
19
|
+
with: visibleEntities,
|
20
20
|
database,
|
21
|
-
|
21
|
+
node_id: nodeId,
|
22
|
+
group_id: groupId,
|
23
|
+
filter_group: filterGroup,
|
24
|
+
filter_group_by: filterGroupBy,
|
25
|
+
});
|
22
26
|
const preparedResponse = prepareStorageNodesResponse(response);
|
23
27
|
return {
|
24
28
|
data: preparedResponse.nodes || [],
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"getNodes.js","sourceRoot":"","sources":["../../../../src/containers/Storage/StorageNodes/getNodes.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"getNodes.js","sourceRoot":"","sources":["../../../../src/containers/Storage/StorageNodes/getNodes.ts"],"names":[],"mappings":"AAKA,OAAO,EAAC,2BAA2B,EAAC,MAAM,uCAAuC,CAAC;AAElF,OAAO,EAAC,gBAAgB,EAAC,MAAM,wBAAwB,CAAC;AACxD,OAAO,EAAC,mBAAmB,EAAE,uBAAuB,EAAC,MAAM,sBAAsB,CAAC;AAElF,MAAM,CAAC,MAAM,eAAe,GAIxB,KAAK,EAAE,MAAM,EAAE,EAAE;IACjB,MAAM,EAAC,IAAI,GAAG,QAAQ,EAAE,OAAO,GAAG,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAC,GAAG,MAAM,CAAC;IACrF,MAAM,EACF,WAAW,EACX,iBAAiB,EACjB,eAAe,EACf,QAAQ,EACR,MAAM,EACN,OAAO,EACP,WAAW,EACX,aAAa,GAChB,GAAG,OAAO,aAAP,OAAO,cAAP,OAAO,GAAI,EAAE,CAAC;IAClB,MAAM,EAAC,SAAS,EAAE,QAAQ,EAAC,GAAG,UAAU,aAAV,UAAU,cAAV,UAAU,GAAI,EAAE,CAAC;IAE/C,MAAM,IAAI,GAAG,uBAAuB,CAAC,QAAQ,CAAC;QAC1C,CAAC,CAAC,gBAAgB,CAAC,QAAQ,EAAE,SAAS,CAAC;QACvC,CAAC,CAAC,SAAS,CAAC;IAEhB,MAAM,QAAQ,GAAG,MAAM,MAAM,CAAC,GAAG,CAAC,QAAQ,CAAC;QACvC,IAAI;QACJ,OAAO;QACP,KAAK;QACL,MAAM;QACN,IAAI;QACJ,MAAM,EAAE,WAAW;QACnB,MAAM,EAAE,mBAAmB,CAAC,iBAAiB,CAAC;QAC9C,IAAI,EAAE,eAAe;QACrB,QAAQ;QACR,OAAO,EAAE,MAAM;QACf,QAAQ,EAAE,OAAO;QACjB,YAAY,EAAE,WAAW;QACzB,eAAe,EAAE,aAAa;KACjC,CAAC,CAAC;IACH,MAAM,gBAAgB,GAAG,2BAA2B,CAAC,QAAQ,CAAC,CAAC;IAC/D,OAAO;QACH,IAAI,EAAE,gBAAgB,CAAC,KAAK,IAAI,EAAE;QAClC,KAAK,EAAE,gBAAgB,CAAC,KAAK,IAAI,CAAC;QAClC,KAAK,EAAE,gBAAgB,CAAC,KAAK,IAAI,CAAC;KACrC,CAAC;AACN,CAAC,CAAC"}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { cn } from '../../../utils/cn';
|
2
2
|
import { isUnavailableNode } from '../../../utils/nodes';
|
3
|
-
export const b = cn('
|
3
|
+
export const b = cn('ydb-storage-nodes');
|
4
4
|
export const getRowUnavailableClassName = (row) => b('node', { unavailable: isUnavailableNode(row) });
|
5
5
|
//# sourceMappingURL=shared.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"shared.js","sourceRoot":"","sources":["../../../../src/containers/Storage/StorageNodes/shared.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,EAAE,EAAC,MAAM,mBAAmB,CAAC;AACrC,OAAO,EAAC,iBAAiB,EAAC,MAAM,sBAAsB,CAAC;AAEvD,MAAM,CAAC,MAAM,CAAC,GAAG,EAAE,CAAC,
|
1
|
+
{"version":3,"file":"shared.js","sourceRoot":"","sources":["../../../../src/containers/Storage/StorageNodes/shared.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,EAAE,EAAC,MAAM,mBAAmB,CAAC;AACrC,OAAO,EAAC,iBAAiB,EAAC,MAAM,sBAAsB,CAAC;AAEvD,MAAM,CAAC,MAAM,CAAC,GAAG,EAAE,CAAC,mBAAmB,CAAC,CAAC;AAEzC,MAAM,CAAC,MAAM,0BAA0B,GAAG,CAAC,GAAwB,EAAE,EAAE,CACnE,CAAC,CAAC,MAAM,EAAE,EAAC,WAAW,EAAE,iBAAiB,CAAC,GAAG,CAAC,EAAC,CAAC,CAAC"}
|
@@ -1,9 +1,7 @@
|
|
1
|
-
import type { AdditionalNodesProps } from '../../types/additionalProps';
|
2
1
|
interface StorageWrapperProps {
|
3
2
|
database?: string;
|
4
3
|
nodeId?: string;
|
5
4
|
parentContainer?: Element | null;
|
6
|
-
additionalNodesProps?: AdditionalNodesProps;
|
7
5
|
}
|
8
6
|
export declare const StorageWrapper: ({ parentContainer, ...props }: StorageWrapperProps) => import("react/jsx-runtime").JSX.Element;
|
9
7
|
export {};
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"StorageWrapper.js","sourceRoot":"","sources":["../../../src/containers/Storage/StorageWrapper.tsx"],"names":[],"mappings":";
|
1
|
+
{"version":3,"file":"StorageWrapper.js","sourceRoot":"","sources":["../../../src/containers/Storage/StorageWrapper.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAC,wBAAwB,EAAC,MAAM,uBAAuB,CAAC;AAC/D,OAAO,EAAC,UAAU,EAAC,MAAM,mBAAmB,CAAC;AAE7C,OAAO,EAAC,gBAAgB,EAAC,MAAM,oBAAoB,CAAC;AACpD,OAAO,EAAC,OAAO,EAAC,MAAM,WAAW,CAAC;AAQlC,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,EAAC,eAAe,EAAE,GAAG,KAAK,EAAsB,EAAE,EAAE;IAC/E,MAAM,CAAC,kBAAkB,CAAC,GAAG,UAAU,CAAU,wBAAwB,CAAC,CAAC;IAE3E,IAAI,kBAAkB,EAAE,CAAC;QACrB,OAAO,KAAC,gBAAgB,IAAC,eAAe,EAAE,eAAe,KAAM,KAAK,GAAI,CAAC;IAC7E,CAAC;IAED,OAAO,KAAC,OAAO,OAAK,KAAK,GAAI,CAAC;AAClC,CAAC,CAAC"}
|
@@ -0,0 +1,12 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
import './TableGroup.scss';
|
3
|
+
interface TableGroupProps {
|
4
|
+
children?: React.ReactNode;
|
5
|
+
title: string;
|
6
|
+
entityName: string;
|
7
|
+
count: string | number;
|
8
|
+
expanded: boolean;
|
9
|
+
onIsExpandedChange: (name: string, isExpanded: boolean) => void;
|
10
|
+
}
|
11
|
+
export declare function TableGroup({ children, title, entityName, count, expanded, onIsExpandedChange, }: TableGroupProps): import("react/jsx-runtime").JSX.Element;
|
12
|
+
export {};
|
@@ -0,0 +1,21 @@
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
2
|
+
import { ArrowToggle, Label, Text } from '@gravity-ui/uikit';
|
3
|
+
import { cn } from '../../../utils/cn';
|
4
|
+
import './TableGroup.scss';
|
5
|
+
const b = cn('ydb-table-group');
|
6
|
+
export function TableGroup({ children, title, entityName, count, expanded = false, onIsExpandedChange, }) {
|
7
|
+
const toggleCollapsed = () => {
|
8
|
+
onIsExpandedChange(title, !expanded);
|
9
|
+
};
|
10
|
+
const renderTitle = () => {
|
11
|
+
return (_jsx("button", { onClick: toggleCollapsed, className: b('button'), title: title, children: _jsxs("div", { className: b('title-wrapper'), children: [_jsx(ArrowToggle, { direction: expanded ? 'top' : 'bottom' }), _jsxs("div", { className: b('title'), children: [_jsx(Text, { variant: "subheader-2", children: title }), _jsxs(Text, { variant: "body-2", color: "secondary", className: b('count'), children: [entityName, ": ", _jsx(Label, { theme: "normal", children: count })] })] })] }) }));
|
12
|
+
};
|
13
|
+
const renderContent = () => {
|
14
|
+
if (expanded) {
|
15
|
+
return _jsx("div", { className: b('content'), children: children });
|
16
|
+
}
|
17
|
+
return null;
|
18
|
+
};
|
19
|
+
return (_jsxs("div", { className: b(null), children: [renderTitle(), renderContent()] }));
|
20
|
+
}
|
21
|
+
//# sourceMappingURL=TableGroup.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"TableGroup.js","sourceRoot":"","sources":["../../../../src/containers/Storage/TableGroup/TableGroup.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAC,WAAW,EAAE,KAAK,EAAE,IAAI,EAAC,MAAM,mBAAmB,CAAC;AAE3D,OAAO,EAAC,EAAE,EAAC,MAAM,mBAAmB,CAAC;AAErC,OAAO,mBAAmB,CAAC;AAE3B,MAAM,CAAC,GAAG,EAAE,CAAC,iBAAiB,CAAC,CAAC;AAYhC,MAAM,UAAU,UAAU,CAAC,EACvB,QAAQ,EACR,KAAK,EACL,UAAU,EACV,KAAK,EACL,QAAQ,GAAG,KAAK,EAChB,kBAAkB,GACJ;IACd,MAAM,eAAe,GAAG,GAAG,EAAE;QACzB,kBAAkB,CAAC,KAAK,EAAE,CAAC,QAAQ,CAAC,CAAC;IACzC,CAAC,CAAC;IAEF,MAAM,WAAW,GAAG,GAAG,EAAE;QACrB,OAAO,CACH,iBAAQ,OAAO,EAAE,eAAe,EAAE,SAAS,EAAE,CAAC,CAAC,QAAQ,CAAC,EAAE,KAAK,EAAE,KAAK,YAClE,eAAK,SAAS,EAAE,CAAC,CAAC,eAAe,CAAC,aAC9B,KAAC,WAAW,IAAC,SAAS,EAAE,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,QAAQ,GAAI,EACvD,eAAK,SAAS,EAAE,CAAC,CAAC,OAAO,CAAC,aACtB,KAAC,IAAI,IAAC,OAAO,EAAC,aAAa,YAAE,KAAK,GAAQ,EAC1C,MAAC,IAAI,IAAC,OAAO,EAAC,QAAQ,EAAC,KAAK,EAAC,WAAW,EAAC,SAAS,EAAE,CAAC,CAAC,OAAO,CAAC,aACzD,UAAU,QAAG,KAAC,KAAK,IAAC,KAAK,EAAC,QAAQ,YAAE,KAAK,GAAS,IAChD,IACL,IACJ,GACD,CACZ,CAAC;IACN,CAAC,CAAC;IAEF,MAAM,aAAa,GAAG,GAAG,EAAE;QACvB,IAAI,QAAQ,EAAE,CAAC;YACX,OAAO,cAAK,SAAS,EAAE,CAAC,CAAC,SAAS,CAAC,YAAG,QAAQ,GAAO,CAAC;QAC1D,CAAC;QAED,OAAO,IAAI,CAAC;IAChB,CAAC,CAAC;IAEF,OAAO,CACH,eAAK,SAAS,EAAE,CAAC,CAAC,IAAI,CAAC,aAClB,WAAW,EAAE,EACb,aAAa,EAAE,IACd,CACT,CAAC;AACN,CAAC"}
|
@@ -0,0 +1,49 @@
|
|
1
|
+
.ydb-table-group {
|
2
|
+
display: flex;
|
3
|
+
flex-direction: column;
|
4
|
+
|
5
|
+
width: 100%;
|
6
|
+
margin-bottom: 20px;
|
7
|
+
|
8
|
+
border: 1px solid var(--g-color-line-generic);
|
9
|
+
border-radius: var(--g-spacing-2);
|
10
|
+
|
11
|
+
&__button {
|
12
|
+
padding: 8px 0;
|
13
|
+
|
14
|
+
cursor: pointer;
|
15
|
+
|
16
|
+
border: unset;
|
17
|
+
background: unset;
|
18
|
+
}
|
19
|
+
|
20
|
+
&__title-wrapper {
|
21
|
+
position: sticky;
|
22
|
+
left: 0;
|
23
|
+
|
24
|
+
display: flex;
|
25
|
+
flex-direction: row;
|
26
|
+
justify-content: flex-start;
|
27
|
+
align-items: center;
|
28
|
+
gap: var(--g-spacing-2);
|
29
|
+
|
30
|
+
width: max-content;
|
31
|
+
padding-left: 20px;
|
32
|
+
}
|
33
|
+
|
34
|
+
&__title {
|
35
|
+
display: flex;
|
36
|
+
flex-direction: row;
|
37
|
+
gap: var(--g-spacing-4);
|
38
|
+
}
|
39
|
+
|
40
|
+
&__count {
|
41
|
+
display: flex;
|
42
|
+
flex-direction: row;
|
43
|
+
gap: var(--g-spacing-3);
|
44
|
+
}
|
45
|
+
|
46
|
+
&__content {
|
47
|
+
padding: 12px 0 20px 20px;
|
48
|
+
}
|
49
|
+
}
|
@@ -0,0 +1,28 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
export function useExpandedGroups(groups) {
|
3
|
+
const [expandedGroups, setExpandedGroups] = React.useState({});
|
4
|
+
React.useEffect(() => {
|
5
|
+
if (groups === null || groups === void 0 ? void 0 : groups.length) {
|
6
|
+
setExpandedGroups((previousExpandedGroups) => {
|
7
|
+
return groups.reduce((result, { name }) => {
|
8
|
+
const previousValue = previousExpandedGroups[name];
|
9
|
+
// Preserve previously expanded groups on groups list change
|
10
|
+
return {
|
11
|
+
...result,
|
12
|
+
[name]: previousValue !== null && previousValue !== void 0 ? previousValue : false,
|
13
|
+
};
|
14
|
+
}, {});
|
15
|
+
});
|
16
|
+
}
|
17
|
+
}, [groups]);
|
18
|
+
const setIsGroupExpanded = React.useCallback((name, isExpanded) => {
|
19
|
+
setExpandedGroups((previousExpandedGroups) => {
|
20
|
+
return {
|
21
|
+
...previousExpandedGroups,
|
22
|
+
[name]: isExpanded,
|
23
|
+
};
|
24
|
+
});
|
25
|
+
}, []);
|
26
|
+
return { expandedGroups, setIsGroupExpanded };
|
27
|
+
}
|
28
|
+
//# sourceMappingURL=useExpandedTableGroups.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"useExpandedTableGroups.js","sourceRoot":"","sources":["../../../../src/containers/Storage/TableGroup/useExpandedTableGroups.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,MAAM,UAAU,iBAAiB,CAAC,MAAqB;IACnD,MAAM,CAAC,cAAc,EAAE,iBAAiB,CAAC,GAAG,KAAK,CAAC,QAAQ,CAA0B,EAAE,CAAC,CAAC;IAExF,KAAK,CAAC,SAAS,CAAC,GAAG,EAAE;QACjB,IAAI,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,MAAM,EAAE,CAAC;YACjB,iBAAiB,CAAC,CAAC,sBAAsB,EAAE,EAAE;gBACzC,OAAO,MAAM,CAAC,MAAM,CAAC,CAAC,MAAM,EAAE,EAAC,IAAI,EAAC,EAAE,EAAE;oBACpC,MAAM,aAAa,GAAG,sBAAsB,CAAC,IAAI,CAAC,CAAC;oBAEnD,4DAA4D;oBAC5D,OAAO;wBACH,GAAG,MAAM;wBACT,CAAC,IAAI,CAAC,EAAE,aAAa,aAAb,aAAa,cAAb,aAAa,GAAI,KAAK;qBACjC,CAAC;gBACN,CAAC,EAAE,EAAE,CAAC,CAAC;YACX,CAAC,CAAC,CAAC;QACP,CAAC;IACL,CAAC,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC;IAEb,MAAM,kBAAkB,GAAG,KAAK,CAAC,WAAW,CAAC,CAAC,IAAY,EAAE,UAAmB,EAAE,EAAE;QAC/E,iBAAiB,CAAC,CAAC,sBAAsB,EAAE,EAAE;YACzC,OAAO;gBACH,GAAG,sBAAsB;gBACzB,CAAC,IAAI,CAAC,EAAE,UAAU;aACrB,CAAC;QACN,CAAC,CAAC,CAAC;IACP,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,OAAO,EAAC,cAAc,EAAE,kBAAkB,EAAC,CAAC;AAChD,CAAC"}
|
@@ -2,5 +2,8 @@
|
|
2
2
|
"groups": "Groups",
|
3
3
|
"nodes": "Nodes",
|
4
4
|
"controls_groups-search-placeholder": "Group ID, Pool name",
|
5
|
-
"controls_nodes-search-placeholder": "Node ID, FQDN"
|
5
|
+
"controls_nodes-search-placeholder": "Node ID, FQDN",
|
6
|
+
"controls_group-by-placeholder": "Group by:",
|
7
|
+
"no-nodes": "No such nodes",
|
8
|
+
"no-groups": "No such groups"
|
6
9
|
}
|
@@ -1,2 +1,2 @@
|
|
1
|
-
declare const _default: (key: "nodes" | "groups" | "controls_groups-search-placeholder" | "controls_nodes-search-placeholder", params?: import("@gravity-ui/i18n").Params) => string;
|
1
|
+
declare const _default: (key: "nodes" | "groups" | "controls_groups-search-placeholder" | "controls_nodes-search-placeholder" | "controls_group-by-placeholder" | "no-nodes" | "no-groups", params?: import("@gravity-ui/i18n").Params) => string;
|
2
2
|
export default _default;
|
@@ -1,6 +1,5 @@
|
|
1
1
|
import { registerKeysets } from '../../../utils/i18n';
|
2
2
|
import en from './en.json';
|
3
|
-
import ru from './ru.json';
|
4
3
|
const COMPONENT = 'ydb-storage';
|
5
|
-
export default registerKeysets(COMPONENT, {
|
4
|
+
export default registerKeysets(COMPONENT, { en });
|
6
5
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/containers/Storage/i18n/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,eAAe,EAAC,MAAM,qBAAqB,CAAC;AAEpD,OAAO,EAAE,MAAM,WAAW,CAAC;
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/containers/Storage/i18n/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,eAAe,EAAC,MAAM,qBAAqB,CAAC;AAEpD,OAAO,EAAE,MAAM,WAAW,CAAC;AAE3B,MAAM,SAAS,GAAG,aAAa,CAAC;AAEhC,eAAe,eAAe,CAAC,SAAS,EAAE,EAAC,EAAE,EAAC,CAAC,CAAC"}
|
@@ -1,3 +1,12 @@
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
2
|
+
import { AccessDenied } from '../../components/Errors/403';
|
3
|
+
import { ResponseError } from '../../components/Errors/ResponseError';
|
1
4
|
import { cn } from '../../utils/cn';
|
2
5
|
export const b = cn('global-storage');
|
6
|
+
export const renderPaginatedTableErrorMessage = (error) => {
|
7
|
+
if (error.status === 403) {
|
8
|
+
return _jsx(AccessDenied, { position: "left" });
|
9
|
+
}
|
10
|
+
return _jsx(ResponseError, { error: error });
|
11
|
+
};
|
3
12
|
//# sourceMappingURL=shared.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"shared.js","sourceRoot":"","sources":["../../../src/containers/Storage/shared.
|
1
|
+
{"version":3,"file":"shared.js","sourceRoot":"","sources":["../../../src/containers/Storage/shared.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAC,YAAY,EAAC,MAAM,6BAA6B,CAAC;AACzD,OAAO,EAAC,aAAa,EAAC,MAAM,uCAAuC,CAAC;AAEpE,OAAO,EAAC,EAAE,EAAC,MAAM,gBAAgB,CAAC;AAElC,MAAM,CAAC,MAAM,CAAC,GAAG,EAAE,CAAC,gBAAgB,CAAC,CAAC;AAEtC,MAAM,CAAC,MAAM,gCAAgC,GAAuB,CAAC,KAAK,EAAE,EAAE;IAC1E,IAAI,KAAK,CAAC,MAAM,KAAK,GAAG,EAAE,CAAC;QACvB,OAAO,KAAC,YAAY,IAAC,QAAQ,EAAC,MAAM,GAAG,CAAC;IAC5C,CAAC;IAED,OAAO,KAAC,aAAa,IAAC,KAAK,EAAE,KAAK,GAAI,CAAC;AAC3C,CAAC,CAAC"}
|
@@ -0,0 +1,18 @@
|
|
1
|
+
import type { StorageType, VisibleEntities } from '../../store/reducers/storage/types';
|
2
|
+
import { NodesUptimeFilterValues } from '../../utils/nodes';
|
3
|
+
export declare function useStorageQueryParams(): {
|
4
|
+
storageType: "nodes" | "groups";
|
5
|
+
visibleEntities: "space" | "missing" | "all";
|
6
|
+
searchValue: string;
|
7
|
+
nodesUptimeFilter: NodesUptimeFilterValues;
|
8
|
+
storageGroupsGroupByParam: import("../../types/api/storage").GroupsGroupByField | undefined;
|
9
|
+
storageNodesGroupByParam: import("../../types/api/nodes").NodesGroupByField | undefined;
|
10
|
+
handleTextFilterChange: (value: string) => void;
|
11
|
+
handleVisibleEntitiesChange: (value: VisibleEntities) => void;
|
12
|
+
handleStorageTypeChange: (value: StorageType) => void;
|
13
|
+
handleUptimeFilterChange: (value: NodesUptimeFilterValues) => void;
|
14
|
+
handleStorageGroupsGroupByParamChange: (value: string) => void;
|
15
|
+
handleStorageNodesGroupByParamChange: (value: string) => void;
|
16
|
+
handleShowAllGroups: () => void;
|
17
|
+
handleShowAllNodes: () => void;
|
18
|
+
};
|
@@ -0,0 +1,64 @@
|
|
1
|
+
import { StringParam, useQueryParams } from 'use-query-params';
|
2
|
+
import { storageTypeSchema, visibleEntitiesSchema } from '../../store/reducers/storage/types';
|
3
|
+
import { NodesUptimeFilterValues, nodesUptimeFilterValuesSchema } from '../../utils/nodes';
|
4
|
+
import { storageGroupsGroupByParamSchema } from './StorageGroups/columns/constants';
|
5
|
+
import { storageNodesGroupByParamSchema } from './StorageNodes/columns/constants';
|
6
|
+
export function useStorageQueryParams() {
|
7
|
+
var _a;
|
8
|
+
const [queryParams, setQueryParams] = useQueryParams({
|
9
|
+
type: StringParam,
|
10
|
+
visible: StringParam,
|
11
|
+
search: StringParam,
|
12
|
+
uptimeFilter: StringParam,
|
13
|
+
storageNodesGroupBy: StringParam,
|
14
|
+
storageGroupsGroupBy: StringParam,
|
15
|
+
});
|
16
|
+
const storageType = storageTypeSchema.parse(queryParams.type);
|
17
|
+
const visibleEntities = visibleEntitiesSchema.parse(queryParams.visible);
|
18
|
+
const searchValue = (_a = queryParams.search) !== null && _a !== void 0 ? _a : '';
|
19
|
+
const nodesUptimeFilter = nodesUptimeFilterValuesSchema.parse(queryParams.uptimeFilter);
|
20
|
+
const storageGroupsGroupByParam = storageGroupsGroupByParamSchema.parse(queryParams.storageGroupsGroupBy);
|
21
|
+
const storageNodesGroupByParam = storageNodesGroupByParamSchema.parse(queryParams.storageNodesGroupBy);
|
22
|
+
const handleTextFilterChange = (value) => {
|
23
|
+
setQueryParams({ search: value || undefined }, 'replaceIn');
|
24
|
+
};
|
25
|
+
const handleVisibleEntitiesChange = (value) => {
|
26
|
+
setQueryParams({ visible: value }, 'replaceIn');
|
27
|
+
};
|
28
|
+
const handleStorageTypeChange = (value) => {
|
29
|
+
setQueryParams({ type: value }, 'replaceIn');
|
30
|
+
};
|
31
|
+
const handleUptimeFilterChange = (value) => {
|
32
|
+
setQueryParams({ uptimeFilter: value }, 'replaceIn');
|
33
|
+
};
|
34
|
+
const handleStorageGroupsGroupByParamChange = (value) => {
|
35
|
+
setQueryParams({ storageGroupsGroupBy: value }, 'replaceIn');
|
36
|
+
};
|
37
|
+
const handleStorageNodesGroupByParamChange = (value) => {
|
38
|
+
setQueryParams({ storageNodesGroupBy: value }, 'replaceIn');
|
39
|
+
};
|
40
|
+
const handleShowAllGroups = () => {
|
41
|
+
handleVisibleEntitiesChange('all');
|
42
|
+
};
|
43
|
+
const handleShowAllNodes = () => {
|
44
|
+
handleVisibleEntitiesChange('all');
|
45
|
+
handleUptimeFilterChange(NodesUptimeFilterValues.All);
|
46
|
+
};
|
47
|
+
return {
|
48
|
+
storageType,
|
49
|
+
visibleEntities,
|
50
|
+
searchValue,
|
51
|
+
nodesUptimeFilter,
|
52
|
+
storageGroupsGroupByParam,
|
53
|
+
storageNodesGroupByParam,
|
54
|
+
handleTextFilterChange,
|
55
|
+
handleVisibleEntitiesChange,
|
56
|
+
handleStorageTypeChange,
|
57
|
+
handleUptimeFilterChange,
|
58
|
+
handleStorageGroupsGroupByParamChange,
|
59
|
+
handleStorageNodesGroupByParamChange,
|
60
|
+
handleShowAllGroups,
|
61
|
+
handleShowAllNodes,
|
62
|
+
};
|
63
|
+
}
|
64
|
+
//# sourceMappingURL=useStorageQueryParams.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"useStorageQueryParams.js","sourceRoot":"","sources":["../../../src/containers/Storage/useStorageQueryParams.ts"],"names":[],"mappings":"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"}
|
@@ -1,8 +1,12 @@
|
|
1
1
|
import type { NodesSortParams } from '../../../store/reducers/nodes/types';
|
2
2
|
import type { PreparedStorageGroup, StorageSortParams, VisibleEntities } from '../../../store/reducers/storage/types';
|
3
|
-
import {
|
3
|
+
import type { PreparedVDisk } from '../../../utils/disks/types';
|
4
4
|
export declare const getDegradedSeverity: (group: PreparedStorageGroup) => "success" | "danger" | "warning" | undefined;
|
5
5
|
export declare const getUsageSeverityForStorageGroup: (value: number) => "success" | "danger" | "warning" | undefined;
|
6
|
-
export declare const getUsageSeverityForEntityStatus: (value: number) => EFlag.Green | EFlag.Yellow | EFlag.Red | undefined;
|
7
6
|
export declare const defaultSortNode: NodesSortParams;
|
8
7
|
export declare function getDefaultSortGroup(visibleEntities: VisibleEntities): StorageSortParams;
|
8
|
+
export type VDiskViewContext = {
|
9
|
+
groupId?: string;
|
10
|
+
nodeId?: string;
|
11
|
+
};
|
12
|
+
export declare function isVdiskActive(vDisk: PreparedVDisk, viewContext?: VDiskViewContext): boolean;
|
@@ -1,8 +1,9 @@
|
|
1
1
|
import { ASCENDING, DESCENDING } from '@gravity-ui/react-data-table/build/esm/lib/constants';
|
2
2
|
import { VISIBLE_ENTITIES } from '../../../store/reducers/storage/constants';
|
3
|
-
import {
|
3
|
+
import { valueIsDefined } from '../../../utils';
|
4
4
|
import { generateEvaluator } from '../../../utils/generateEvaluator';
|
5
|
-
import {
|
5
|
+
import { NODES_COLUMNS_IDS } from '../../Nodes/columns/constants';
|
6
|
+
import { STORAGE_GROUPS_COLUMNS_IDS } from '../StorageGroups/columns/constants';
|
6
7
|
const defaultDegradationEvaluator = generateEvaluator(1, 2, ['success', 'warning', 'danger']);
|
7
8
|
const degradationEvaluators = {
|
8
9
|
'block-4-2': generateEvaluator(1, 2, ['success', 'warning', 'danger']),
|
@@ -20,25 +21,20 @@ export const getUsageSeverityForStorageGroup = generateEvaluator(80, 85, [
|
|
20
21
|
'warning',
|
21
22
|
'danger',
|
22
23
|
]);
|
23
|
-
export const getUsageSeverityForEntityStatus = generateEvaluator(80, 85, [
|
24
|
-
EFlag.Green,
|
25
|
-
EFlag.Yellow,
|
26
|
-
EFlag.Red,
|
27
|
-
]);
|
28
24
|
export const defaultSortNode = {
|
29
|
-
sortValue:
|
25
|
+
sortValue: NODES_COLUMNS_IDS.NodeId,
|
30
26
|
sortOrder: ASCENDING,
|
31
27
|
};
|
32
28
|
const defaultSortGroup = {
|
33
|
-
sortValue:
|
29
|
+
sortValue: STORAGE_GROUPS_COLUMNS_IDS.PoolName,
|
34
30
|
sortOrder: ASCENDING,
|
35
31
|
};
|
36
32
|
const defaultSortGroupMissing = {
|
37
|
-
sortValue:
|
33
|
+
sortValue: STORAGE_GROUPS_COLUMNS_IDS.Degraded,
|
38
34
|
sortOrder: DESCENDING,
|
39
35
|
};
|
40
36
|
const defaultSortGroupSpace = {
|
41
|
-
sortValue:
|
37
|
+
sortValue: STORAGE_GROUPS_COLUMNS_IDS.Usage,
|
42
38
|
sortOrder: DESCENDING,
|
43
39
|
};
|
44
40
|
export function getDefaultSortGroup(visibleEntities) {
|
@@ -50,4 +46,14 @@ export function getDefaultSortGroup(visibleEntities) {
|
|
50
46
|
}
|
51
47
|
return defaultSortGroup;
|
52
48
|
}
|
49
|
+
export function isVdiskActive(vDisk, viewContext) {
|
50
|
+
var _a;
|
51
|
+
if (valueIsDefined((_a = vDisk.VDiskId) === null || _a === void 0 ? void 0 : _a.GroupID) && (viewContext === null || viewContext === void 0 ? void 0 : viewContext.groupId)) {
|
52
|
+
return String(vDisk.VDiskId.GroupID) === viewContext.groupId;
|
53
|
+
}
|
54
|
+
if (valueIsDefined(vDisk.NodeId) && (viewContext === null || viewContext === void 0 ? void 0 : viewContext.nodeId)) {
|
55
|
+
return String(vDisk.NodeId) === viewContext.nodeId;
|
56
|
+
}
|
57
|
+
return true;
|
58
|
+
}
|
53
59
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/containers/Storage/utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAE,UAAU,EAAC,MAAM,sDAAsD,CAAC;AAG3F,OAAO,EAAC,gBAAgB,EAAC,MAAM,2CAA2C,CAAC;AAM3E,OAAO,EAAC,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/containers/Storage/utils/index.ts"],"names":[],"mappings":"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"}
|
@@ -1,68 +1,39 @@
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
2
2
|
import React from 'react';
|
3
|
-
import { Tabs } from '@gravity-ui/uikit';
|
4
3
|
import { skipToken } from '@reduxjs/toolkit/query';
|
5
4
|
import { Helmet } from 'react-helmet-async';
|
6
5
|
import { StringParam, useQueryParams } from 'use-query-params';
|
7
|
-
import { z } from 'zod';
|
8
6
|
import { EntityPageTitle } from '../../components/EntityPageTitle/EntityPageTitle';
|
9
7
|
import { ResponseError } from '../../components/Errors/ResponseError';
|
10
8
|
import { InfoViewerSkeleton } from '../../components/InfoViewerSkeleton/InfoViewerSkeleton';
|
11
|
-
import { InternalLink } from '../../components/InternalLink';
|
12
9
|
import { PageMetaWithAutorefresh } from '../../components/PageMeta/PageMeta';
|
13
10
|
import { StorageGroupInfo } from '../../components/StorageGroupInfo/StorageGroupInfo';
|
14
|
-
import {
|
15
|
-
import { useStorageGroupsHandlerAvailable } from '../../store/reducers/capabilities/hooks';
|
11
|
+
import { useCapabilitiesLoaded, useStorageGroupsHandlerAvailable, } from '../../store/reducers/capabilities/hooks';
|
16
12
|
import { setHeaderBreadcrumbs } from '../../store/reducers/header/header';
|
17
|
-
import { STORAGE_TYPES } from '../../store/reducers/storage/constants';
|
18
13
|
import { storageApi } from '../../store/reducers/storage/storage';
|
19
14
|
import { EFlag } from '../../types/api/enums';
|
20
15
|
import { valueIsDefined } from '../../utils';
|
21
16
|
import { cn } from '../../utils/cn';
|
22
|
-
import { DEFAULT_TABLE_SETTINGS } from '../../utils/constants';
|
23
17
|
import { useAutoRefreshInterval, useTypedDispatch } from '../../utils/hooks';
|
24
|
-
import {
|
25
|
-
import { StorageGroups } from '../Storage/StorageGroups/StorageGroups';
|
26
|
-
import { StorageNodes } from '../Storage/StorageNodes/StorageNodes';
|
18
|
+
import { Storage } from '../Storage/Storage';
|
27
19
|
import { storageGroupPageKeyset } from './i18n';
|
28
20
|
import './StorageGroupPage.scss';
|
29
|
-
const STORAGE_GROUP_PAGE_TABS = [
|
30
|
-
{
|
31
|
-
id: STORAGE_TYPES.groups,
|
32
|
-
get title() {
|
33
|
-
return storageGroupPageKeyset('group');
|
34
|
-
},
|
35
|
-
},
|
36
|
-
{
|
37
|
-
id: STORAGE_TYPES.nodes,
|
38
|
-
get title() {
|
39
|
-
return storageGroupPageKeyset('nodes');
|
40
|
-
},
|
41
|
-
},
|
42
|
-
];
|
43
21
|
const storageGroupPageCn = cn('ydb-storage-group-page');
|
44
|
-
const storageGroupTabSchema = z.nativeEnum(STORAGE_TYPES).catch(STORAGE_TYPES.groups);
|
45
22
|
export function StorageGroupPage() {
|
46
|
-
var _a, _b
|
23
|
+
var _a, _b;
|
47
24
|
const dispatch = useTypedDispatch();
|
48
|
-
const [{ groupId
|
49
|
-
groupId: StringParam,
|
50
|
-
activeTab: StringParam,
|
51
|
-
});
|
52
|
-
const storageGroupTab = storageGroupTabSchema.parse(activeTab);
|
25
|
+
const [{ groupId }] = useQueryParams({ groupId: StringParam });
|
53
26
|
React.useEffect(() => {
|
54
27
|
dispatch(setHeaderBreadcrumbs('storageGroup', { groupId }));
|
55
28
|
}, [dispatch, groupId]);
|
56
29
|
const [autoRefreshInterval] = useAutoRefreshInterval();
|
57
30
|
const shouldUseGroupsHandler = useStorageGroupsHandlerAvailable();
|
58
|
-
const
|
59
|
-
|
60
|
-
});
|
61
|
-
const nodesQuery = storageApi.useGetStorageNodesInfoQuery(groupId && storageGroupTab === STORAGE_TYPES.nodes ? { group_id: groupId } : skipToken, {
|
31
|
+
const capabilitiesLoaded = useCapabilitiesLoaded();
|
32
|
+
const groupQuery = storageApi.useGetStorageGroupsInfoQuery(valueIsDefined(groupId) ? { groupId, shouldUseGroupsHandler, with: 'all' } : skipToken, {
|
62
33
|
pollingInterval: autoRefreshInterval,
|
34
|
+
skip: !capabilitiesLoaded,
|
63
35
|
});
|
64
36
|
const storageGroupData = (_b = (_a = groupQuery.data) === null || _a === void 0 ? void 0 : _a.groups) === null || _b === void 0 ? void 0 : _b[0];
|
65
|
-
const nodesData = (_c = nodesQuery.data) === null || _c === void 0 ? void 0 : _c.nodes;
|
66
37
|
const loading = groupQuery.isFetching && storageGroupData === undefined;
|
67
38
|
const renderHelmet = () => {
|
68
39
|
const pageTitle = groupId
|
@@ -86,32 +57,18 @@ export function StorageGroupPage() {
|
|
86
57
|
}
|
87
58
|
return _jsx(StorageGroupInfo, { data: storageGroupData, className: storageGroupPageCn('info') });
|
88
59
|
};
|
89
|
-
const
|
90
|
-
|
91
|
-
|
92
|
-
? getStorageGroupPath(groupId, { activeTab: id })
|
93
|
-
: undefined;
|
94
|
-
return (_jsx(InternalLink, { to: path, children: tabNode }, id));
|
95
|
-
} }) }));
|
96
|
-
};
|
97
|
-
const renderTabsContent = () => {
|
98
|
-
switch (storageGroupTab) {
|
99
|
-
case 'groups': {
|
100
|
-
return storageGroupData ? (_jsx(StorageGroups, { data: [storageGroupData], tableSettings: DEFAULT_TABLE_SETTINGS, visibleEntities: "all" })) : null;
|
101
|
-
}
|
102
|
-
case 'nodes': {
|
103
|
-
return nodesData ? (_jsx(StorageNodes, { data: nodesData, tableSettings: DEFAULT_TABLE_SETTINGS, visibleEntities: "all", nodesUptimeFilter: NodesUptimeFilterValues.All })) : null;
|
104
|
-
}
|
105
|
-
default:
|
106
|
-
return null;
|
60
|
+
const renderStorage = () => {
|
61
|
+
if (!groupId) {
|
62
|
+
return null;
|
107
63
|
}
|
64
|
+
return (_jsxs(React.Fragment, { children: [_jsx("div", { className: storageGroupPageCn('storage-title'), children: storageGroupPageKeyset('storage') }), _jsx(Storage, { groupId: groupId })] }));
|
108
65
|
};
|
109
66
|
const renderError = () => {
|
110
|
-
if (!groupQuery.error
|
67
|
+
if (!groupQuery.error) {
|
111
68
|
return null;
|
112
69
|
}
|
113
|
-
return _jsx(ResponseError, { error: groupQuery.error
|
70
|
+
return _jsx(ResponseError, { error: groupQuery.error });
|
114
71
|
};
|
115
|
-
return (_jsxs("div", { className: storageGroupPageCn(null), children: [
|
72
|
+
return (_jsxs("div", { className: storageGroupPageCn(null), children: [renderHelmet(), renderPageMeta(), renderPageTitle(), renderError(), renderInfo(), renderStorage()] }));
|
116
73
|
}
|
117
74
|
//# sourceMappingURL=StorageGroupPage.js.map
|