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":"PaginatedStorageGroupsTable.js","sourceRoot":"","sources":["../../../../src/containers/Storage/StorageGroups/PaginatedStorageGroupsTable.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAC,aAAa,EAAC,MAAM,iDAAiD,CAAC;AAE9E,OAAO,EAAC,wBAAwB,EAAC,MAAM,oCAAoC,CAAC;AAC5E,OAAO,EACH,qBAAqB,EACrB,gCAAgC,GACnC,MAAM,4CAA4C,CAAC;AACpD,OAAO,EAAC,gBAAgB,EAAC,MAAM,2CAA2C,CAAC;AAI3E,OAAO,EAAC,6BAA6B,EAAC,MAAM,iCAAiC,CAAC;AAC9E,OAAO,EAAC,mCAAmC,EAAC,MAAM,qBAAqB,CAAC;AAExE,OAAO,EAAC,eAAe,EAAC,MAAM,aAAa,CAAC;AAC5C,OAAO,IAAI,MAAM,QAAQ,CAAC;AAuB1B,MAAM,CAAC,MAAM,2BAA2B,GAAG,CAAC,EACxC,OAAO,EACP,QAAQ,EACR,MAAM,EACN,OAAO,EACP,OAAO,EACP,WAAW,EACX,aAAa,EACb,WAAW,EACX,eAAe,EACf,SAAS,EACT,eAAe,EACf,cAAc,EACd,kBAAkB,EAClB,oBAAoB,GACW,EAAE,EAAE;IACnC,MAAM,kBAAkB,GAAG,qBAAqB,EAAE,CAAC;IACnD,MAAM,sBAAsB,GAAG,gCAAgC,EAAE,CAAC;IAElE,MAAM,SAAS,GAAG,eAAe,CAAC,sBAAsB,CAAC,CAAC;IAE1D,MAAM,YAAY,GAAG,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE;QACpC,OAAO;YACH,WAAW;YACX,eAAe;YACf,QAAQ;YACR,MAAM;YACN,OAAO;YACP,OAAO;YACP,WAAW;YACX,aAAa;SAChB,CAAC;IACN,CAAC,EAAE;QACC,WAAW;QACX,eAAe;QACf,QAAQ;QACR,MAAM;QACN,OAAO;QACP,OAAO;QACP,WAAW;QACX,aAAa;KAChB,CAAC,CAAC;IAEH,MAAM,sBAAsB,GAAG,GAAG,EAAE;QAChC,IAAI,eAAe,KAAK,gBAAgB,CAAC,GAAG,EAAE,CAAC;YAC3C,OAAO,CACH,KAAC,6BAA6B,IAC1B,SAAS,EAAE,SAAS,EACpB,eAAe,EAAE,eAAe,GAClC,CACL,CAAC;QACN,CAAC;QAED,OAAO,IAAI,CAAC,eAAe,CAAC,CAAC;IACjC,CAAC,CAAC;IAEF,OAAO,CACH,KAAC,aAAa,IAAC,OAAO,EAAE,CAAC,kBAAkB,YACvC,KAAC,wBAAwB,IACrB,iBAAiB,EAAE,mCAAmC,EACtD,eAAe,EAAE,eAAe,EAChC,OAAO,EAAE,OAAO,EAChB,SAAS,EAAE,SAAS,EACpB,KAAK,EAAE,EAAE,EACT,oBAAoB,EAAE,oBAAoB,EAC1C,cAAc,EAAE,cAAc,EAC9B,kBAAkB,EAAE,kBAAkB,EACtC,sBAAsB,EAAE,sBAAsB,EAC9C,OAAO,EAAE,YAAY,EACrB,SAAS,EAAC,gBAAgB,GAC5B,GACU,CACnB,CAAC;AACN,CAAC,CAAC"}
|
@@ -0,0 +1,14 @@
|
|
1
|
+
import type { SortOrder } from '@gravity-ui/react-data-table';
|
2
|
+
import type { PreparedStorageGroup, VisibleEntities } from '../../../store/reducers/storage/types';
|
3
|
+
import type { HandleSort } from '../../../utils/hooks/useTableSort';
|
4
|
+
import type { StorageGroupsColumn } from './columns/types';
|
5
|
+
interface StorageGroupsTableProps {
|
6
|
+
data: PreparedStorageGroup[];
|
7
|
+
columns: StorageGroupsColumn[];
|
8
|
+
visibleEntities: VisibleEntities;
|
9
|
+
onShowAll?: VoidFunction;
|
10
|
+
sort?: SortOrder;
|
11
|
+
handleSort?: HandleSort;
|
12
|
+
}
|
13
|
+
export declare function StorageGroupsTable({ data, columns, visibleEntities, onShowAll, sort, handleSort, }: StorageGroupsTableProps): import("react/jsx-runtime").JSX.Element;
|
14
|
+
export {};
|
@@ -1,15 +1,14 @@
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
2
2
|
import { ResizeableDataTable } from '../../../components/ResizeableDataTable/ResizeableDataTable';
|
3
3
|
import { VISIBLE_ENTITIES } from '../../../store/reducers/storage/constants';
|
4
|
+
import { DEFAULT_TABLE_SETTINGS } from '../../../utils/constants';
|
4
5
|
import { StorageGroupsEmptyDataMessage } from './StorageGroupsEmptyDataMessage';
|
5
|
-
import { STORAGE_GROUPS_COLUMNS_WIDTH_LS_KEY } from './columns/
|
6
|
-
import { useGetStorageGroupsColumns } from './columns/hooks';
|
6
|
+
import { STORAGE_GROUPS_COLUMNS_WIDTH_LS_KEY } from './columns/constants';
|
7
7
|
import i18n from './i18n';
|
8
|
-
export function
|
9
|
-
const columns = useGetStorageGroupsColumns(visibleEntities);
|
8
|
+
export function StorageGroupsTable({ data, columns, visibleEntities, onShowAll, sort, handleSort, }) {
|
10
9
|
if (!data.length && visibleEntities !== VISIBLE_ENTITIES.all) {
|
11
10
|
return (_jsx(StorageGroupsEmptyDataMessage, { onShowAll: onShowAll, visibleEntities: visibleEntities }));
|
12
11
|
}
|
13
|
-
return (_jsx(ResizeableDataTable, { columnsWidthLSKey: STORAGE_GROUPS_COLUMNS_WIDTH_LS_KEY, data: data, columns: columns, settings:
|
12
|
+
return (_jsx(ResizeableDataTable, { columnsWidthLSKey: STORAGE_GROUPS_COLUMNS_WIDTH_LS_KEY, data: data, columns: columns, settings: DEFAULT_TABLE_SETTINGS, emptyDataMessage: i18n('empty.default'), sortOrder: sort, onSort: handleSort }, visibleEntities));
|
14
13
|
}
|
15
|
-
//# sourceMappingURL=
|
14
|
+
//# sourceMappingURL=StorageGroupsTable.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"StorageGroupsTable.js","sourceRoot":"","sources":["../../../../src/containers/Storage/StorageGroups/StorageGroupsTable.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAC,mBAAmB,EAAC,MAAM,6DAA6D,CAAC;AAChG,OAAO,EAAC,gBAAgB,EAAC,MAAM,2CAA2C,CAAC;AAE3E,OAAO,EAAC,sBAAsB,EAAC,MAAM,0BAA0B,CAAC;AAGhE,OAAO,EAAC,6BAA6B,EAAC,MAAM,iCAAiC,CAAC;AAC9E,OAAO,EAAC,mCAAmC,EAAC,MAAM,qBAAqB,CAAC;AAExE,OAAO,IAAI,MAAM,QAAQ,CAAC;AAW1B,MAAM,UAAU,kBAAkB,CAAC,EAC/B,IAAI,EACJ,OAAO,EACP,eAAe,EACf,SAAS,EACT,IAAI,EACJ,UAAU,GACY;IACtB,IAAI,CAAC,IAAI,CAAC,MAAM,IAAI,eAAe,KAAK,gBAAgB,CAAC,GAAG,EAAE,CAAC;QAC3D,OAAO,CACH,KAAC,6BAA6B,IAC1B,SAAS,EAAE,SAAS,EACpB,eAAe,EAAE,eAAe,GAClC,CACL,CAAC;IACN,CAAC;IAED,OAAO,CACH,KAAC,mBAAmB,IAChB,iBAAiB,EAAE,mCAAmC,EAEtD,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,OAAO,EAChB,QAAQ,EAAE,sBAAsB,EAChC,gBAAgB,EAAE,IAAI,CAAC,eAAe,CAAC,EACvC,SAAS,EAAE,IAAI,EACf,MAAM,EAAE,UAAU,IANb,eAAe,CAOtB,CACL,CAAC;AACN,CAAC"}
|
package/dist/containers/Storage/StorageGroups/columns/{getStorageGroupsColumns.js → columns.js}
RENAMED
@@ -9,35 +9,22 @@ import { InternalLink } from '../../../../components/InternalLink';
|
|
9
9
|
import { UsageLabel } from '../../../../components/UsageLabel/UsageLabel';
|
10
10
|
import { VDiskWithDonorsStack } from '../../../../components/VDisk/VDiskWithDonorsStack';
|
11
11
|
import { getStorageGroupPath } from '../../../../routes';
|
12
|
-
import {
|
12
|
+
import { valueIsDefined } from '../../../../utils';
|
13
13
|
import { cn } from '../../../../utils/cn';
|
14
|
-
import {
|
14
|
+
import { EMPTY_DATA_PLACEHOLDER } from '../../../../utils/constants';
|
15
|
+
import { formatNumber, stringifyVdiskId } from '../../../../utils/dataFormatters/dataFormatters';
|
15
16
|
import { isSortableStorageProperty } from '../../../../utils/storage';
|
17
|
+
import { formatToMs, parseUsToMs } from '../../../../utils/timeParsers';
|
16
18
|
import { bytesToGB, bytesToSpeed } from '../../../../utils/utils';
|
17
19
|
import { Disks } from '../../Disks/Disks';
|
18
|
-
import { getDegradedSeverity, getUsageSeverityForStorageGroup } from '../../utils';
|
20
|
+
import { getDegradedSeverity, getUsageSeverityForStorageGroup, isVdiskActive } from '../../utils';
|
19
21
|
import i18n from '../i18n';
|
22
|
+
import { STORAGE_GROUPS_COLUMNS_IDS, STORAGE_GROUPS_COLUMNS_TITLES } from './constants';
|
20
23
|
import './StorageGroupsColumns.scss';
|
21
24
|
const b = cn('ydb-storage-groups-columns');
|
22
|
-
export const STORAGE_GROUPS_COLUMNS_WIDTH_LS_KEY = 'storageGroupsColumnsWidth';
|
23
|
-
export const GROUPS_COLUMNS_IDS = {
|
24
|
-
PoolName: 'PoolName',
|
25
|
-
MediaType: 'MediaType',
|
26
|
-
Erasure: 'Erasure',
|
27
|
-
GroupId: 'GroupId',
|
28
|
-
Used: 'Used',
|
29
|
-
Limit: 'Limit',
|
30
|
-
Usage: 'Usage',
|
31
|
-
DiskSpace: 'DiskSpace',
|
32
|
-
Read: 'Read',
|
33
|
-
Write: 'Write',
|
34
|
-
VDisks: 'VDisks',
|
35
|
-
Disks: 'Disks',
|
36
|
-
Degraded: 'Degraded',
|
37
|
-
};
|
38
25
|
const poolNameColumn = {
|
39
|
-
name:
|
40
|
-
header:
|
26
|
+
name: STORAGE_GROUPS_COLUMNS_IDS.PoolName,
|
27
|
+
header: STORAGE_GROUPS_COLUMNS_TITLES.PoolName,
|
41
28
|
width: 250,
|
42
29
|
render: ({ row }) => {
|
43
30
|
var _a;
|
@@ -47,8 +34,8 @@ const poolNameColumn = {
|
|
47
34
|
align: DataTable.LEFT,
|
48
35
|
};
|
49
36
|
const typeColumn = {
|
50
|
-
name:
|
51
|
-
header:
|
37
|
+
name: STORAGE_GROUPS_COLUMNS_IDS.MediaType,
|
38
|
+
header: STORAGE_GROUPS_COLUMNS_TITLES.MediaType,
|
52
39
|
width: 100,
|
53
40
|
resizeMinWidth: 100,
|
54
41
|
align: DataTable.LEFT,
|
@@ -56,16 +43,16 @@ const typeColumn = {
|
|
56
43
|
sortable: false,
|
57
44
|
};
|
58
45
|
const erasureColumn = {
|
59
|
-
name:
|
60
|
-
header:
|
46
|
+
name: STORAGE_GROUPS_COLUMNS_IDS.Erasure,
|
47
|
+
header: STORAGE_GROUPS_COLUMNS_TITLES.Erasure,
|
61
48
|
width: 100,
|
62
49
|
sortAccessor: (row) => row.ErasureSpecies,
|
63
50
|
render: ({ row }) => (row.ErasureSpecies ? row.ErasureSpecies : '-'),
|
64
51
|
align: DataTable.LEFT,
|
65
52
|
};
|
66
53
|
const degradedColumn = {
|
67
|
-
name:
|
68
|
-
header:
|
54
|
+
name: STORAGE_GROUPS_COLUMNS_IDS.Degraded,
|
55
|
+
header: STORAGE_GROUPS_COLUMNS_TITLES.Degraded,
|
69
56
|
width: 110,
|
70
57
|
resizeMinWidth: 110,
|
71
58
|
render: ({ row }) => row.Degraded ? (_jsxs(Label, { theme: getDegradedSeverity(row), children: ["Degraded: ", row.Degraded] })) : ('-'),
|
@@ -73,8 +60,8 @@ const degradedColumn = {
|
|
73
60
|
defaultOrder: DataTable.DESCENDING,
|
74
61
|
};
|
75
62
|
const usageColumn = {
|
76
|
-
name:
|
77
|
-
header:
|
63
|
+
name: STORAGE_GROUPS_COLUMNS_IDS.Usage,
|
64
|
+
header: STORAGE_GROUPS_COLUMNS_TITLES.Usage,
|
78
65
|
width: 75,
|
79
66
|
resizeMinWidth: 75,
|
80
67
|
render: ({ row }) => {
|
@@ -87,8 +74,8 @@ const usageColumn = {
|
|
87
74
|
align: DataTable.LEFT,
|
88
75
|
};
|
89
76
|
const groupIdColumn = {
|
90
|
-
name:
|
91
|
-
header:
|
77
|
+
name: STORAGE_GROUPS_COLUMNS_IDS.GroupId,
|
78
|
+
header: STORAGE_GROUPS_COLUMNS_TITLES.GroupId,
|
92
79
|
width: 130,
|
93
80
|
render: ({ row }) => {
|
94
81
|
return row.GroupId ? (_jsx(InternalLink, { className: b('group-id'), to: getStorageGroupPath(row.GroupId), children: row.GroupId })) : ('-');
|
@@ -97,8 +84,8 @@ const groupIdColumn = {
|
|
97
84
|
align: DataTable.RIGHT,
|
98
85
|
};
|
99
86
|
const usedColumn = {
|
100
|
-
name:
|
101
|
-
header:
|
87
|
+
name: STORAGE_GROUPS_COLUMNS_IDS.Used,
|
88
|
+
header: STORAGE_GROUPS_COLUMNS_TITLES.Used,
|
102
89
|
width: 100,
|
103
90
|
render: ({ row }) => {
|
104
91
|
return bytesToGB(row.Used, true);
|
@@ -106,8 +93,8 @@ const usedColumn = {
|
|
106
93
|
align: DataTable.RIGHT,
|
107
94
|
};
|
108
95
|
const limitColumn = {
|
109
|
-
name:
|
110
|
-
header:
|
96
|
+
name: STORAGE_GROUPS_COLUMNS_IDS.Limit,
|
97
|
+
header: STORAGE_GROUPS_COLUMNS_TITLES.Limit,
|
111
98
|
width: 100,
|
112
99
|
render: ({ row }) => {
|
113
100
|
return bytesToGB(row.Limit);
|
@@ -115,8 +102,8 @@ const limitColumn = {
|
|
115
102
|
align: DataTable.RIGHT,
|
116
103
|
};
|
117
104
|
const usedSpaceFlagColumn = {
|
118
|
-
name:
|
119
|
-
header:
|
105
|
+
name: STORAGE_GROUPS_COLUMNS_IDS.DiskSpace,
|
106
|
+
header: STORAGE_GROUPS_COLUMNS_TITLES.DiskSpace,
|
120
107
|
width: 110,
|
121
108
|
render: ({ row }) => {
|
122
109
|
return _jsx(EntityStatus, { status: row.DiskSpace });
|
@@ -124,8 +111,8 @@ const usedSpaceFlagColumn = {
|
|
124
111
|
align: DataTable.CENTER,
|
125
112
|
};
|
126
113
|
const readColumn = {
|
127
|
-
name:
|
128
|
-
header:
|
114
|
+
name: STORAGE_GROUPS_COLUMNS_IDS.Read,
|
115
|
+
header: STORAGE_GROUPS_COLUMNS_TITLES.Read,
|
129
116
|
width: 100,
|
130
117
|
render: ({ row }) => {
|
131
118
|
return row.Read ? bytesToSpeed(row.Read) : '-';
|
@@ -133,35 +120,55 @@ const readColumn = {
|
|
133
120
|
align: DataTable.RIGHT,
|
134
121
|
};
|
135
122
|
const writeColumn = {
|
136
|
-
name:
|
137
|
-
header:
|
123
|
+
name: STORAGE_GROUPS_COLUMNS_IDS.Write,
|
124
|
+
header: STORAGE_GROUPS_COLUMNS_TITLES.Write,
|
138
125
|
width: 100,
|
139
126
|
render: ({ row }) => {
|
140
127
|
return row.Write ? bytesToSpeed(row.Write) : '-';
|
141
128
|
},
|
142
129
|
align: DataTable.RIGHT,
|
143
130
|
};
|
144
|
-
const
|
145
|
-
name:
|
131
|
+
const latencyColumn = {
|
132
|
+
name: STORAGE_GROUPS_COLUMNS_IDS.Latency,
|
133
|
+
header: STORAGE_GROUPS_COLUMNS_TITLES.Latency,
|
134
|
+
width: 100,
|
135
|
+
render: ({ row }) => {
|
136
|
+
return valueIsDefined(row.LatencyPutTabletLogMs)
|
137
|
+
? formatToMs(parseUsToMs(row.LatencyPutTabletLogMs))
|
138
|
+
: EMPTY_DATA_PLACEHOLDER;
|
139
|
+
},
|
140
|
+
align: DataTable.RIGHT,
|
141
|
+
};
|
142
|
+
const allocationUnitsColumn = {
|
143
|
+
name: STORAGE_GROUPS_COLUMNS_IDS.AllocationUnits,
|
144
|
+
header: STORAGE_GROUPS_COLUMNS_TITLES.AllocationUnits,
|
145
|
+
width: 150,
|
146
|
+
render: ({ row }) => {
|
147
|
+
return valueIsDefined(row.AllocationUnits)
|
148
|
+
? formatNumber(row.AllocationUnits)
|
149
|
+
: EMPTY_DATA_PLACEHOLDER;
|
150
|
+
},
|
151
|
+
align: DataTable.RIGHT,
|
152
|
+
};
|
153
|
+
const getVDisksColumn = (data) => ({
|
154
|
+
name: STORAGE_GROUPS_COLUMNS_IDS.VDisks,
|
155
|
+
header: STORAGE_GROUPS_COLUMNS_TITLES.VDisks,
|
146
156
|
className: b('vdisks-column'),
|
147
|
-
header: 'VDisks',
|
148
157
|
render: ({ row }) => {
|
149
158
|
var _a;
|
150
|
-
return (_jsx("div", { className: b('vdisks-wrapper'), children: (_a = row.VDisks) === null || _a === void 0 ? void 0 : _a.map((vDisk) => {
|
151
|
-
return (_jsx(VDiskWithDonorsStack, { data: vDisk, nodes: nodes, className: b('vdisks-item') }, stringifyVdiskId(vDisk.VDiskId)));
|
152
|
-
}) }));
|
159
|
+
return (_jsx("div", { className: b('vdisks-wrapper'), children: (_a = row.VDisks) === null || _a === void 0 ? void 0 : _a.map((vDisk) => (_jsx(VDiskWithDonorsStack, { data: vDisk, inactive: !isVdiskActive(vDisk, data), className: b('vdisks-item') }, stringifyVdiskId(vDisk.VDiskId)))) }));
|
153
160
|
},
|
154
161
|
align: DataTable.CENTER,
|
155
162
|
width: 900,
|
156
163
|
resizeable: false,
|
157
164
|
sortable: false,
|
158
165
|
});
|
159
|
-
const getDisksColumn = (
|
160
|
-
name:
|
166
|
+
const getDisksColumn = (data) => ({
|
167
|
+
name: STORAGE_GROUPS_COLUMNS_IDS.VDisksPDisks,
|
168
|
+
header: STORAGE_GROUPS_COLUMNS_TITLES.VDisksPDisks,
|
161
169
|
className: b('disks-column'),
|
162
|
-
header: 'Disks',
|
163
170
|
render: ({ row }) => {
|
164
|
-
return _jsx(Disks, { vDisks: row.VDisks,
|
171
|
+
return _jsx(Disks, { vDisks: row.VDisks, viewContext: data });
|
165
172
|
},
|
166
173
|
align: DataTable.CENTER,
|
167
174
|
width: 900,
|
@@ -184,57 +191,27 @@ export const getStorageTopGroupsColumns = () => {
|
|
184
191
|
};
|
185
192
|
});
|
186
193
|
};
|
187
|
-
export const
|
188
|
-
const
|
189
|
-
? getDisksColumn()
|
190
|
-
: getVDisksColumn(data === null || data === void 0 ? void 0 : data.nodes);
|
191
|
-
return [
|
192
|
-
poolNameColumn,
|
193
|
-
typeColumn,
|
194
|
-
erasureColumn,
|
195
|
-
degradedColumn,
|
194
|
+
export const getStorageGroupsColumns = (data) => {
|
195
|
+
const columns = [
|
196
196
|
groupIdColumn,
|
197
|
-
usageColumn,
|
198
|
-
usedColumn,
|
199
|
-
disksColumn,
|
200
|
-
];
|
201
|
-
};
|
202
|
-
const getStorageGroupsColumns = (data, options) => {
|
203
|
-
const disksColumn = (options === null || options === void 0 ? void 0 : options.useAdvancedStorage)
|
204
|
-
? getDisksColumn()
|
205
|
-
: getVDisksColumn(data === null || data === void 0 ? void 0 : data.nodes);
|
206
|
-
return [
|
207
197
|
poolNameColumn,
|
208
198
|
typeColumn,
|
209
199
|
erasureColumn,
|
210
200
|
degradedColumn,
|
211
201
|
usageColumn,
|
212
|
-
groupIdColumn,
|
213
202
|
usedColumn,
|
214
203
|
limitColumn,
|
215
204
|
usedSpaceFlagColumn,
|
216
205
|
readColumn,
|
217
206
|
writeColumn,
|
218
|
-
|
207
|
+
latencyColumn,
|
208
|
+
allocationUnitsColumn,
|
209
|
+
getVDisksColumn(data),
|
210
|
+
getDisksColumn(data),
|
219
211
|
];
|
220
|
-
|
221
|
-
const filterStorageGroupsColumns = (columns, visibleEntities) => {
|
222
|
-
if (visibleEntities === VISIBLE_ENTITIES.space) {
|
223
|
-
return columns.filter((col) => col.name !== GROUPS_COLUMNS_IDS.Degraded);
|
224
|
-
}
|
225
|
-
if (visibleEntities === VISIBLE_ENTITIES.missing) {
|
226
|
-
return columns.filter((col) => col.name !== GROUPS_COLUMNS_IDS.DiskSpace);
|
227
|
-
}
|
228
|
-
return columns.filter((col) => {
|
229
|
-
return (col.name !== GROUPS_COLUMNS_IDS.Degraded && col.name !== GROUPS_COLUMNS_IDS.DiskSpace);
|
230
|
-
});
|
231
|
-
};
|
232
|
-
export const getPreparedStorageGroupsColumns = (data, options) => {
|
233
|
-
const rawColumns = getStorageGroupsColumns(data, options);
|
234
|
-
const filteredColumns = filterStorageGroupsColumns(rawColumns, options === null || options === void 0 ? void 0 : options.visibleEntities);
|
235
|
-
return filteredColumns.map((column) => ({
|
212
|
+
return columns.map((column) => ({
|
236
213
|
...column,
|
237
214
|
sortable: isSortableStorageProperty(column.name),
|
238
215
|
}));
|
239
216
|
};
|
240
|
-
//# sourceMappingURL=
|
217
|
+
//# sourceMappingURL=columns.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"columns.js","sourceRoot":"","sources":["../../../../../src/containers/Storage/StorageGroups/columns/columns.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAC,aAAa,EAAC,MAAM,mBAAmB,CAAC;AAChD,OAAO,SAAS,MAAM,8BAA8B,CAAC;AACrD,OAAO,EAAC,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,eAAe,EAAC,MAAM,mBAAmB,CAAC;AAExE,OAAO,EAAC,eAAe,EAAC,MAAM,wDAAwD,CAAC;AACvF,OAAO,EAAC,YAAY,EAAC,MAAM,kDAAkD,CAAC;AAC9E,OAAO,EAAC,YAAY,EAAC,MAAM,qCAAqC,CAAC;AACjE,OAAO,EAAC,UAAU,EAAC,MAAM,8CAA8C,CAAC;AACxE,OAAO,EAAC,oBAAoB,EAAC,MAAM,mDAAmD,CAAC;AACvF,OAAO,EAAC,mBAAmB,EAAC,MAAM,oBAAoB,CAAC;AACvD,OAAO,EAAC,cAAc,EAAC,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAA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,EAAE,GAAG,CAAC,MAAM,EAAE,WAAW,EAAE,IAAI,GAAI,CAAC;IAC5D,CAAC;IACD,KAAK,EAAE,SAAS,CAAC,MAAM;IACvB,KAAK,EAAE,GAAG;IACV,UAAU,EAAE,KAAK;IACjB,QAAQ,EAAE,KAAK;CAClB,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,0BAA0B,GAAyB,GAAG,EAAE;IACjE,MAAM,OAAO,GAAG;QACZ,aAAa;QACb,UAAU;QACV,aAAa;QACb,WAAW;QACX,UAAU;QACV,WAAW;KACd,CAAC;IAEF,OAAO,OAAO,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE;QAC1B,OAAO;YACH,GAAG,MAAM;YACT,QAAQ,EAAE,KAAK;SAClB,CAAC;IACN,CAAC,CAAC,CAAC;AACP,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,uBAAuB,GAAyB,CAAC,IAAI,EAAE,EAAE;IAClE,MAAM,OAAO,GAAG;QACZ,aAAa;QACb,cAAc;QACd,UAAU;QACV,aAAa;QACb,cAAc;QACd,WAAW;QACX,UAAU;QACV,WAAW;QACX,mBAAmB;QACnB,UAAU;QACV,WAAW;QACX,aAAa;QACb,qBAAqB;QACrB,eAAe,CAAC,IAAI,CAAC;QACrB,cAAc,CAAC,IAAI,CAAC;KACvB,CAAC;IAEF,OAAO,OAAO,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;QAC5B,GAAG,MAAM;QACT,QAAQ,EAAE,yBAAyB,CAAC,MAAM,CAAC,IAAI,CAAC;KACnD,CAAC,CAAC,CAAC;AACR,CAAC,CAAC"}
|
@@ -0,0 +1,54 @@
|
|
1
|
+
import type { SelectOption } from '@gravity-ui/uikit';
|
2
|
+
import { z } from 'zod';
|
3
|
+
import type { GroupsGroupByField } from '../../../../types/api/storage';
|
4
|
+
import type { ValueOf } from '../../../../types/common';
|
5
|
+
export declare const STORAGE_GROUPS_COLUMNS_WIDTH_LS_KEY = "storageGroupsColumnsWidth";
|
6
|
+
export declare const STORAGE_GROUPS_SELECTED_COLUMNS_LS_KEY = "storageGroupsSelectedColumns";
|
7
|
+
export declare const STORAGE_GROUPS_COLUMNS_IDS: {
|
8
|
+
readonly GroupId: "GroupId";
|
9
|
+
readonly PoolName: "PoolName";
|
10
|
+
readonly MediaType: "MediaType";
|
11
|
+
readonly Encryption: "Encryption";
|
12
|
+
readonly Erasure: "Erasure";
|
13
|
+
readonly Used: "Used";
|
14
|
+
readonly Limit: "Limit";
|
15
|
+
readonly Usage: "Usage";
|
16
|
+
readonly DiskSpaceUsage: "DiskSpaceUsage";
|
17
|
+
readonly DiskSpace: "DiskSpace";
|
18
|
+
readonly Read: "Read";
|
19
|
+
readonly Write: "Write";
|
20
|
+
readonly Latency: "Latency";
|
21
|
+
readonly AllocationUnits: "AllocationUnits";
|
22
|
+
readonly VDisks: "VDisks";
|
23
|
+
readonly VDisksPDisks: "VDisksPDisks";
|
24
|
+
readonly MissingDisks: "MissingDisks";
|
25
|
+
readonly Degraded: "Degraded";
|
26
|
+
readonly State: "State";
|
27
|
+
};
|
28
|
+
type StorageGroupsColumnId = ValueOf<typeof STORAGE_GROUPS_COLUMNS_IDS>;
|
29
|
+
export declare const DEFAULT_STORAGE_GROUPS_COLUMNS: StorageGroupsColumnId[];
|
30
|
+
export declare const REQUIRED_STORAGE_GROUPS_COLUMNS: StorageGroupsColumnId[];
|
31
|
+
export declare const STORAGE_GROUPS_COLUMNS_TITLES: {
|
32
|
+
readonly PoolName: string;
|
33
|
+
readonly MediaType: string;
|
34
|
+
readonly Encryption: string;
|
35
|
+
readonly Erasure: string;
|
36
|
+
readonly GroupId: string;
|
37
|
+
readonly Used: string;
|
38
|
+
readonly Limit: string;
|
39
|
+
readonly Usage: string;
|
40
|
+
readonly DiskSpaceUsage: string;
|
41
|
+
readonly DiskSpace: string;
|
42
|
+
readonly Read: string;
|
43
|
+
readonly Write: string;
|
44
|
+
readonly Latency: string;
|
45
|
+
readonly AllocationUnits: string;
|
46
|
+
readonly VDisks: string;
|
47
|
+
readonly VDisksPDisks: string;
|
48
|
+
readonly Degraded: string;
|
49
|
+
readonly MissingDisks: string;
|
50
|
+
readonly State: string;
|
51
|
+
};
|
52
|
+
export declare const STORAGE_GROUPS_GROUP_BY_OPTIONS: SelectOption[];
|
53
|
+
export declare const storageGroupsGroupByParamSchema: z.ZodCatch<z.ZodType<GroupsGroupByField | undefined, z.ZodTypeDef, GroupsGroupByField | undefined>>;
|
54
|
+
export {};
|
@@ -0,0 +1,120 @@
|
|
1
|
+
import { z } from 'zod';
|
2
|
+
import i18n from './i18n';
|
3
|
+
export const STORAGE_GROUPS_COLUMNS_WIDTH_LS_KEY = 'storageGroupsColumnsWidth';
|
4
|
+
export const STORAGE_GROUPS_SELECTED_COLUMNS_LS_KEY = 'storageGroupsSelectedColumns';
|
5
|
+
export const STORAGE_GROUPS_COLUMNS_IDS = {
|
6
|
+
GroupId: 'GroupId',
|
7
|
+
PoolName: 'PoolName',
|
8
|
+
MediaType: 'MediaType',
|
9
|
+
Encryption: 'Encryption',
|
10
|
+
Erasure: 'Erasure',
|
11
|
+
Used: 'Used',
|
12
|
+
Limit: 'Limit',
|
13
|
+
Usage: 'Usage',
|
14
|
+
DiskSpaceUsage: 'DiskSpaceUsage',
|
15
|
+
DiskSpace: 'DiskSpace',
|
16
|
+
Read: 'Read',
|
17
|
+
Write: 'Write',
|
18
|
+
Latency: 'Latency',
|
19
|
+
AllocationUnits: 'AllocationUnits',
|
20
|
+
VDisks: 'VDisks',
|
21
|
+
VDisksPDisks: 'VDisksPDisks',
|
22
|
+
MissingDisks: 'MissingDisks',
|
23
|
+
Degraded: 'Degraded',
|
24
|
+
State: 'State',
|
25
|
+
};
|
26
|
+
export const DEFAULT_STORAGE_GROUPS_COLUMNS = [
|
27
|
+
'GroupId',
|
28
|
+
'PoolName',
|
29
|
+
'MediaType',
|
30
|
+
'Erasure',
|
31
|
+
'Used',
|
32
|
+
'Limit',
|
33
|
+
'Usage',
|
34
|
+
'Read',
|
35
|
+
'Write',
|
36
|
+
'VDisks',
|
37
|
+
];
|
38
|
+
export const REQUIRED_STORAGE_GROUPS_COLUMNS = ['GroupId'];
|
39
|
+
// This code is running when module is initialized and correct language may not be set yet
|
40
|
+
// get functions guarantee that i18n fields will be inited on render with current render language
|
41
|
+
export const STORAGE_GROUPS_COLUMNS_TITLES = {
|
42
|
+
get PoolName() {
|
43
|
+
return i18n('pool-name');
|
44
|
+
},
|
45
|
+
get MediaType() {
|
46
|
+
return i18n('type');
|
47
|
+
},
|
48
|
+
get Encryption() {
|
49
|
+
return i18n('encryption');
|
50
|
+
},
|
51
|
+
get Erasure() {
|
52
|
+
return i18n('erasure');
|
53
|
+
},
|
54
|
+
get GroupId() {
|
55
|
+
return i18n('group-id');
|
56
|
+
},
|
57
|
+
get Used() {
|
58
|
+
return i18n('used');
|
59
|
+
},
|
60
|
+
get Limit() {
|
61
|
+
return i18n('limit');
|
62
|
+
},
|
63
|
+
get Usage() {
|
64
|
+
return i18n('usage');
|
65
|
+
},
|
66
|
+
get DiskSpaceUsage() {
|
67
|
+
return i18n('disk-space-usage');
|
68
|
+
},
|
69
|
+
get DiskSpace() {
|
70
|
+
return i18n('space');
|
71
|
+
},
|
72
|
+
get Read() {
|
73
|
+
return i18n('read');
|
74
|
+
},
|
75
|
+
get Write() {
|
76
|
+
return i18n('write');
|
77
|
+
},
|
78
|
+
get Latency() {
|
79
|
+
return i18n('latency');
|
80
|
+
},
|
81
|
+
get AllocationUnits() {
|
82
|
+
return i18n('allocation-units');
|
83
|
+
},
|
84
|
+
get VDisks() {
|
85
|
+
return i18n('vdisks');
|
86
|
+
},
|
87
|
+
get VDisksPDisks() {
|
88
|
+
return i18n('vdisks-pdisks');
|
89
|
+
},
|
90
|
+
get Degraded() {
|
91
|
+
return i18n('missing-disks');
|
92
|
+
},
|
93
|
+
get MissingDisks() {
|
94
|
+
return i18n('missing-disks');
|
95
|
+
},
|
96
|
+
get State() {
|
97
|
+
return i18n('state');
|
98
|
+
},
|
99
|
+
};
|
100
|
+
const STORAGE_GROUPS_GROUP_BY_PARAMS = [
|
101
|
+
'PoolName',
|
102
|
+
'MediaType',
|
103
|
+
'Encryption',
|
104
|
+
'Erasure',
|
105
|
+
'Usage',
|
106
|
+
'DiskSpaceUsage',
|
107
|
+
'State',
|
108
|
+
'MissingDisks',
|
109
|
+
'Latency',
|
110
|
+
];
|
111
|
+
export const STORAGE_GROUPS_GROUP_BY_OPTIONS = STORAGE_GROUPS_GROUP_BY_PARAMS.map((param) => {
|
112
|
+
return {
|
113
|
+
value: param,
|
114
|
+
content: STORAGE_GROUPS_COLUMNS_TITLES[param],
|
115
|
+
};
|
116
|
+
});
|
117
|
+
export const storageGroupsGroupByParamSchema = z
|
118
|
+
.custom((value) => STORAGE_GROUPS_GROUP_BY_PARAMS.includes(value))
|
119
|
+
.catch(undefined);
|
120
|
+
//# sourceMappingURL=constants.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../src/containers/Storage/StorageGroups/columns/constants.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AAKtB,OAAO,IAAI,MAAM,QAAQ,CAAC;AAE1B,MAAM,CAAC,MAAM,mCAAmC,GAAG,2BAA2B,CAAC;AAC/E,MAAM,CAAC,MAAM,sCAAsC,GAAG,8BAA8B,CAAC;AAErF,MAAM,CAAC,MAAM,0BAA0B,GAAG;IACtC,OAAO,EAAE,SAAS;IAClB,QAAQ,EAAE,UAAU;IACpB,SAAS,EAAE,WAAW;IACtB,UAAU,EAAE,YAAY;IACxB,OAAO,EAAE,SAAS;IAClB,IAAI,EAAE,MAAM;IACZ,KAAK,EAAE,OAAO;IACd,KAAK,EAAE,OAAO;IACd,cAAc,EAAE,gBAAgB;IAChC,SAAS,EAAE,WAAW;IACtB,IAAI,EAAE,MAAM;IACZ,KAAK,EAAE,OAAO;IACd,OA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types';
|
2
|
+
export declare function useGetStorageGroupsColumns(nodeId?: string): import("./types").StorageGroupsColumn[];
|
3
|
+
export declare function useStorageGroupsSelectedColumns({ visibleEntities, nodeId, }: GetStorageGroupsColumnsParams): {
|
4
|
+
columnsToShow: import("./types").StorageGroupsColumn[];
|
5
|
+
columnsToSelect: import("@gravity-ui/uikit").TableColumnSetupItem[];
|
6
|
+
setColumns: (updated: import("@gravity-ui/uikit").TableColumnSetupItem[]) => void;
|
7
|
+
};
|
@@ -1,19 +1,24 @@
|
|
1
1
|
import React from 'react';
|
2
|
-
import {
|
3
|
-
import {
|
4
|
-
import {
|
5
|
-
import {
|
6
|
-
|
7
|
-
const [useAdvancedStorage] = useSetting(USE_ADVANCED_STORAGE_KEY, false);
|
8
|
-
const nodes = useTypedSelector(selectNodesMap);
|
2
|
+
import { VISIBLE_ENTITIES } from '../../../../store/reducers/storage/constants';
|
3
|
+
import { useSelectedColumns } from '../../../../utils/hooks/useSelectedColumns';
|
4
|
+
import { getStorageGroupsColumns } from './columns';
|
5
|
+
import { DEFAULT_STORAGE_GROUPS_COLUMNS, REQUIRED_STORAGE_GROUPS_COLUMNS, STORAGE_GROUPS_COLUMNS_IDS, STORAGE_GROUPS_COLUMNS_TITLES, STORAGE_GROUPS_SELECTED_COLUMNS_LS_KEY, } from './constants';
|
6
|
+
export function useGetStorageGroupsColumns(nodeId) {
|
9
7
|
return React.useMemo(() => {
|
10
|
-
return
|
11
|
-
}, [
|
12
|
-
}
|
13
|
-
export
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
}
|
8
|
+
return getStorageGroupsColumns({ nodeId });
|
9
|
+
}, [nodeId]);
|
10
|
+
}
|
11
|
+
export function useStorageGroupsSelectedColumns({ visibleEntities, nodeId, }) {
|
12
|
+
const columns = useGetStorageGroupsColumns(nodeId);
|
13
|
+
const requiredColumns = React.useMemo(() => {
|
14
|
+
if (visibleEntities === VISIBLE_ENTITIES.missing) {
|
15
|
+
return [...REQUIRED_STORAGE_GROUPS_COLUMNS, STORAGE_GROUPS_COLUMNS_IDS.Degraded];
|
16
|
+
}
|
17
|
+
if (visibleEntities === VISIBLE_ENTITIES.space) {
|
18
|
+
return [...REQUIRED_STORAGE_GROUPS_COLUMNS, STORAGE_GROUPS_COLUMNS_IDS.DiskSpace];
|
19
|
+
}
|
20
|
+
return REQUIRED_STORAGE_GROUPS_COLUMNS;
|
21
|
+
}, [visibleEntities]);
|
22
|
+
return useSelectedColumns(columns, STORAGE_GROUPS_SELECTED_COLUMNS_LS_KEY, STORAGE_GROUPS_COLUMNS_TITLES, DEFAULT_STORAGE_GROUPS_COLUMNS, requiredColumns);
|
23
|
+
}
|
19
24
|
//# sourceMappingURL=hooks.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"hooks.js","sourceRoot":"","sources":["../../../../../src/containers/Storage/StorageGroups/columns/hooks.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAC,
|
1
|
+
{"version":3,"file":"hooks.js","sourceRoot":"","sources":["../../../../../src/containers/Storage/StorageGroups/columns/hooks.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAC,gBAAgB,EAAC,MAAM,8CAA8C,CAAC;AAC9E,OAAO,EAAC,kBAAkB,EAAC,MAAM,4CAA4C,CAAC;AAE9E,OAAO,EAAC,uBAAuB,EAAC,MAAM,WAAW,CAAC;AAClD,OAAO,EACH,8BAA8B,EAC9B,+BAA+B,EAC/B,0BAA0B,EAC1B,6BAA6B,EAC7B,sCAAsC,GACzC,MAAM,aAAa,CAAC;AAGrB,MAAM,UAAU,0BAA0B,CAAC,MAAe;IACtD,OAAO,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE;QACtB,OAAO,uBAAuB,CAAC,EAAC,MAAM,EAAC,CAAC,CAAC;IAC7C,CAAC,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC;AACjB,CAAC;AAED,MAAM,UAAU,+BAA+B,CAAC,EAC5C,eAAe,EACf,MAAM,GACsB;IAC5B,MAAM,OAAO,GAAG,0BAA0B,CAAC,MAAM,CAAC,CAAC;IAEnD,MAAM,eAAe,GAAG,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE;QACvC,IAAI,eAAe,KAAK,gBAAgB,CAAC,OAAO,EAAE,CAAC;YAC/C,OAAO,CAAC,GAAG,+BAA+B,EAAE,0BAA0B,CAAC,QAAQ,CAAC,CAAC;QACrF,CAAC;QAED,IAAI,eAAe,KAAK,gBAAgB,CAAC,KAAK,EAAE,CAAC;YAC7C,OAAO,CAAC,GAAG,+BAA+B,EAAE,0BAA0B,CAAC,SAAS,CAAC,CAAC;QACtF,CAAC;QAED,OAAO,+BAA+B,CAAC;IAC3C,CAAC,EAAE,CAAC,eAAe,CAAC,CAAC,CAAC;IAEtB,OAAO,kBAAkB,CACrB,OAAO,EACP,sCAAsC,EACtC,6BAA6B,EAC7B,8BAA8B,EAC9B,eAAe,CAClB,CAAC;AACN,CAAC"}
|
@@ -0,0 +1,21 @@
|
|
1
|
+
{
|
2
|
+
"pool-name": "Pool Name",
|
3
|
+
"type": "Type",
|
4
|
+
"encryption": "Encryption",
|
5
|
+
"erasure": "Erasure",
|
6
|
+
"degraded": "Degraded",
|
7
|
+
"missing-disks": "Missing Disks",
|
8
|
+
"state": "State",
|
9
|
+
"usage": "Usage",
|
10
|
+
"disk-space-usage": "Disk space usage",
|
11
|
+
"group-id": "Group ID",
|
12
|
+
"used": "Used",
|
13
|
+
"limit": "Limit",
|
14
|
+
"space": "Space",
|
15
|
+
"read": "Read",
|
16
|
+
"write": "Write",
|
17
|
+
"latency": "Latency",
|
18
|
+
"allocation-units": "Allocation Units",
|
19
|
+
"vdisks": "VDisks",
|
20
|
+
"vdisks-pdisks": "VDisks with PDisks"
|
21
|
+
}
|
@@ -0,0 +1,2 @@
|
|
1
|
+
declare const _default: (key: "type" | "space" | "limit" | "used" | "state" | "pool-name" | "encryption" | "erasure" | "degraded" | "missing-disks" | "usage" | "disk-space-usage" | "group-id" | "read" | "write" | "latency" | "allocation-units" | "vdisks" | "vdisks-pdisks", params?: import("@gravity-ui/i18n").Params) => string;
|
2
|
+
export default _default;
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/containers/Storage/StorageGroups/columns/i18n/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,eAAe,EAAC,MAAM,2BAA2B,CAAC;AAE1D,OAAO,EAAE,MAAM,WAAW,CAAC;AAE3B,MAAM,SAAS,GAAG,4BAA4B,CAAC;AAE/C,eAAe,eAAe,CAAC,SAAS,EAAE,EAAC,EAAE,EAAC,CAAC,CAAC"}
|