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,9 @@
|
|
1
|
+
import type { Column as DataTableColumn } from '@gravity-ui/react-data-table';
|
2
|
+
import type { Column as PaginatedTableColumn } from '../../../components/PaginatedTable';
|
3
|
+
import type { NodesPreparedEntity } from '../../../store/reducers/nodes/types';
|
4
|
+
import type { GetNodeRefFunc } from '../../../types/additionalProps';
|
5
|
+
export interface GetNodesColumnsProps {
|
6
|
+
database?: string;
|
7
|
+
getNodeRef?: GetNodeRefFunc;
|
8
|
+
}
|
9
|
+
export type NodesColumn = PaginatedTableColumn<NodesPreparedEntity> & DataTableColumn<NodesPreparedEntity>;
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/containers/Nodes/columns/types.ts"],"names":[],"mappings":""}
|
@@ -1,3 +1,4 @@
|
|
1
1
|
import type { FetchData } from '../../components/PaginatedTable';
|
2
|
-
import type {
|
3
|
-
|
2
|
+
import type { NodesFilters, NodesPreparedEntity } from '../../store/reducers/nodes/types';
|
3
|
+
import type { NodesRequestParams } from '../../types/api/nodes';
|
4
|
+
export declare const getNodes: FetchData<NodesPreparedEntity, NodesFilters, Pick<NodesRequestParams, 'type' | 'storage' | 'tablets'>>;
|
@@ -1,5 +1,6 @@
|
|
1
1
|
import { prepareNodesData } from '../../store/reducers/nodes/utils';
|
2
|
-
import {
|
2
|
+
import { prepareSortValue } from '../../utils/filters';
|
3
|
+
import { getProblemParamValue, getUptimeParamValue, isSortableNodesProperty, } from '../../utils/nodes';
|
3
4
|
const getConcurrentId = (limit, offset) => {
|
4
5
|
return `getNodes|offset${offset}|limit${limit}`;
|
5
6
|
};
|
@@ -7,14 +8,16 @@ export const getNodes = async (params) => {
|
|
7
8
|
const { type = 'any', storage = false, tablets = true, limit, offset, sortParams, filters, } = params;
|
8
9
|
const { sortOrder, columnId } = sortParams !== null && sortParams !== void 0 ? sortParams : {};
|
9
10
|
const { path, database, searchValue, problemFilter, uptimeFilter } = filters !== null && filters !== void 0 ? filters : {};
|
11
|
+
const sort = isSortableNodesProperty(columnId)
|
12
|
+
? prepareSortValue(columnId, sortOrder)
|
13
|
+
: undefined;
|
10
14
|
const response = await window.api.getNodes({
|
11
15
|
type,
|
12
16
|
storage,
|
13
17
|
tablets,
|
14
18
|
limit,
|
15
19
|
offset,
|
16
|
-
|
17
|
-
sortValue: columnId,
|
20
|
+
sort,
|
18
21
|
path,
|
19
22
|
database,
|
20
23
|
filter: searchValue,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"getNodes.js","sourceRoot":"","sources":["../../../src/containers/Nodes/getNodes.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"getNodes.js","sourceRoot":"","sources":["../../../src/containers/Nodes/getNodes.ts"],"names":[],"mappings":"AAEA,OAAO,EAAC,gBAAgB,EAAC,MAAM,kCAAkC,CAAC;AAElE,OAAO,EAAC,gBAAgB,EAAC,MAAM,qBAAqB,CAAC;AACrD,OAAO,EACH,oBAAoB,EACpB,mBAAmB,EACnB,uBAAuB,GAC1B,MAAM,mBAAmB,CAAC;AAE3B,MAAM,eAAe,GAAG,CAAC,KAAc,EAAE,MAAe,EAAE,EAAE;IACxD,OAAO,kBAAkB,MAAM,SAAS,KAAK,EAAE,CAAC;AACpD,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,QAAQ,GAIjB,KAAK,EAAE,MAAM,EAAE,EAAE;IACjB,MAAM,EACF,IAAI,GAAG,KAAK,EACZ,OAAO,GAAG,KAAK,EACf,OAAO,GAAG,IAAI,EACd,KAAK,EACL,MAAM,EACN,UAAU,EACV,OAAO,GACV,GAAG,MAAM,CAAC;IAEX,MAAM,EAAC,SAAS,EAAE,QAAQ,EAAC,GAAG,UAAU,aAAV,UAAU,cAAV,UAAU,GAAI,EAAE,CAAC;IAC/C,MAAM,EAAC,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,aAAa,EAAE,YAAY,EAAC,GAAG,OAAO,aAAP,OAAO,cAAP,OAAO,GAAI,EAAE,CAAC;IAEjF,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,CACtC;QACI,IAAI;QACJ,OAAO;QACP,OAAO;QACP,KAAK;QACL,MAAM;QACN,IAAI;QACJ,IAAI;QACJ,QAAQ;QACR,MAAM,EAAE,WAAW;QACnB,aAAa,EAAE,oBAAoB,CAAC,aAAa,CAAC;QAClD,MAAM,EAAE,mBAAmB,CAAC,YAAY,CAAC;KAC5C,EACD,EAAC,YAAY,EAAE,eAAe,CAAC,KAAK,EAAE,MAAM,CAAC,EAAE,MAAM,EAAE,MAAM,CAAC,MAAM,EAAC,CACxE,CAAC;IACF,MAAM,gBAAgB,GAAG,gBAAgB,CAAC,QAAQ,CAAC,CAAC;IAEpD,OAAO;QACH,IAAI,EAAE,gBAAgB,CAAC,KAAK,IAAI,EAAE;QAClC,KAAK,EAAE,gBAAgB,CAAC,UAAU,IAAI,CAAC;QACvC,KAAK,EAAE,gBAAgB,CAAC,UAAU,IAAI,CAAC;KAC1C,CAAC;AACN,CAAC,CAAC"}
|
@@ -16,22 +16,23 @@ import { PageMetaWithAutorefresh } from '../../components/PageMeta/PageMeta';
|
|
16
16
|
import { getPDiskPagePath } from '../../routes';
|
17
17
|
import { api } from '../../store/reducers/api';
|
18
18
|
import { selectIsUserAllowedToMakeChanges } from '../../store/reducers/authentication/authentication';
|
19
|
+
import { useDiskPagesAvailable } from '../../store/reducers/capabilities/hooks';
|
19
20
|
import { setHeaderBreadcrumbs } from '../../store/reducers/header/header';
|
20
21
|
import { pDiskApi } from '../../store/reducers/pdisk/pdisk';
|
21
22
|
import { valueIsDefined } from '../../utils';
|
22
23
|
import { cn } from '../../utils/cn';
|
23
24
|
import { getPDiskId, getSeverityColor } from '../../utils/disks/helpers';
|
24
25
|
import { useAutoRefreshInterval, useTypedDispatch, useTypedSelector } from '../../utils/hooks';
|
26
|
+
import { Storage } from '../Storage/Storage';
|
25
27
|
import { DecommissionButton } from './DecommissionButton/DecommissionButton';
|
26
28
|
import { DecommissionLabel } from './DecommissionLabel/DecommissionLabel';
|
27
|
-
import { PDiskGroups } from './PDiskGroups/PDiskGroups';
|
28
29
|
import { PDiskSpaceDistribution } from './PDiskSpaceDistribution/PDiskSpaceDistribution';
|
29
30
|
import { pDiskPageKeyset } from './i18n';
|
30
31
|
import './PDiskPage.scss';
|
31
32
|
const pdiskPageCn = cn('ydb-pdisk-page');
|
32
33
|
const PDISK_TABS_IDS = {
|
33
34
|
diskDistribution: 'diskDistribution',
|
34
|
-
|
35
|
+
storage: 'storage',
|
35
36
|
};
|
36
37
|
const PDISK_PAGE_TABS = [
|
37
38
|
{
|
@@ -41,9 +42,9 @@ const PDISK_PAGE_TABS = [
|
|
41
42
|
},
|
42
43
|
},
|
43
44
|
{
|
44
|
-
id: PDISK_TABS_IDS.
|
45
|
+
id: PDISK_TABS_IDS.storage,
|
45
46
|
get title() {
|
46
|
-
return pDiskPageKeyset('
|
47
|
+
return pDiskPageKeyset('storage');
|
47
48
|
},
|
48
49
|
},
|
49
50
|
];
|
@@ -51,6 +52,7 @@ const pDiskTabSchema = z.nativeEnum(PDISK_TABS_IDS).catch(PDISK_TABS_IDS.diskDis
|
|
51
52
|
export function PDiskPage() {
|
52
53
|
const dispatch = useTypedDispatch();
|
53
54
|
const isUserAllowedToMakeChanges = useTypedSelector(selectIsUserAllowedToMakeChanges);
|
55
|
+
const newDiskApiAvailable = useDiskPagesAvailable();
|
54
56
|
const [{ nodeId, pDiskId, activeTab }] = useQueryParams({
|
55
57
|
activeTab: StringParam,
|
56
58
|
nodeId: StringParam,
|
@@ -71,7 +73,7 @@ export function PDiskPage() {
|
|
71
73
|
const { NodeHost, NodeId, NodeType, NodeDC, Severity, DecommitStatus } = pDiskData || {};
|
72
74
|
const handleRestart = async (isRetry) => {
|
73
75
|
if (pDiskParamsDefined) {
|
74
|
-
const response = await window.api
|
76
|
+
const response = await window.api[newDiskApiAvailable ? 'restartPDisk' : 'restartPDiskOld']({ nodeId, pDiskId, force: isRetry });
|
75
77
|
if ((response === null || response === void 0 ? void 0 : response.result) === false) {
|
76
78
|
const err = {
|
77
79
|
statusText: response.error,
|
@@ -119,7 +121,7 @@ export function PDiskPage() {
|
|
119
121
|
return (_jsxs("div", { className: pdiskPageCn('title'), children: [_jsx(EntityPageTitle, { entityName: pDiskPageKeyset('pdisk'), status: getSeverityColor(Severity), id: getPDiskId(nodeId, pDiskId) }), _jsx(DecommissionLabel, { decommission: DecommitStatus })] }));
|
120
122
|
};
|
121
123
|
const renderControls = () => {
|
122
|
-
return (_jsxs("div", { className: pdiskPageCn('controls'), children: [_jsxs(ButtonWithConfirmDialog, { onConfirmAction: handleRestart, onConfirmActionSuccess: handleAfterAction, buttonDisabled: !pDiskParamsDefined || !isUserAllowedToMakeChanges, buttonView: "normal", dialogHeader: pDiskPageKeyset('restart-pdisk-dialog-header'), dialogText: pDiskPageKeyset('restart-pdisk-dialog-text'), retryButtonText: pDiskPageKeyset('force-restart-pdisk-button'), withPopover: true, popoverContent: pDiskPageKeyset('restart-pdisk-not-allowed'), popoverDisabled: isUserAllowedToMakeChanges, children: [_jsx(Icon, { data: ArrowRotateLeft }), pDiskPageKeyset('restart-pdisk-button')] }), _jsx(DecommissionButton, { decommission: DecommitStatus, onConfirmAction: handleDecommissionChange, onConfirmActionSuccess: handleAfterAction, buttonDisabled: !pDiskParamsDefined || !isUserAllowedToMakeChanges, popoverDisabled: isUserAllowedToMakeChanges })] }));
|
124
|
+
return (_jsxs("div", { className: pdiskPageCn('controls'), children: [_jsxs(ButtonWithConfirmDialog, { onConfirmAction: handleRestart, onConfirmActionSuccess: handleAfterAction, buttonDisabled: !pDiskParamsDefined || !isUserAllowedToMakeChanges, buttonView: "normal", dialogHeader: pDiskPageKeyset('restart-pdisk-dialog-header'), dialogText: pDiskPageKeyset('restart-pdisk-dialog-text'), retryButtonText: pDiskPageKeyset('force-restart-pdisk-button'), withPopover: true, popoverContent: pDiskPageKeyset('restart-pdisk-not-allowed'), popoverDisabled: isUserAllowedToMakeChanges, children: [_jsx(Icon, { data: ArrowRotateLeft }), pDiskPageKeyset('restart-pdisk-button')] }), newDiskApiAvailable ? (_jsx(DecommissionButton, { decommission: DecommitStatus, onConfirmAction: handleDecommissionChange, onConfirmActionSuccess: handleAfterAction, buttonDisabled: !pDiskParamsDefined || !isUserAllowedToMakeChanges, popoverDisabled: isUserAllowedToMakeChanges })) : null] }));
|
123
125
|
};
|
124
126
|
const renderInfo = () => {
|
125
127
|
if (pDiskLoading) {
|
@@ -138,10 +140,10 @@ export function PDiskPage() {
|
|
138
140
|
const renderTabsContent = () => {
|
139
141
|
switch (pDiskTab) {
|
140
142
|
case 'diskDistribution': {
|
141
|
-
return pDiskData ? _jsx(PDiskSpaceDistribution, { data: pDiskData }) : null;
|
143
|
+
return pDiskData ? (_jsx("div", { className: pdiskPageCn('disk-distribution'), children: _jsx(PDiskSpaceDistribution, { data: pDiskData }) })) : null;
|
142
144
|
}
|
143
|
-
case '
|
144
|
-
return pDiskParamsDefined ?
|
145
|
+
case 'storage': {
|
146
|
+
return pDiskParamsDefined ? _jsx(Storage, { nodeId: nodeId, pDiskId: pDiskId }) : null;
|
145
147
|
}
|
146
148
|
default:
|
147
149
|
return null;
|
@@ -153,6 +155,6 @@ export function PDiskPage() {
|
|
153
155
|
}
|
154
156
|
return _jsx(ResponseError, { error: pdiskDataQuery.error });
|
155
157
|
};
|
156
|
-
return (_jsxs("div", { className: pdiskPageCn(null), children: [
|
158
|
+
return (_jsxs("div", { className: pdiskPageCn(null), children: [renderHelmet(), renderPageMeta(), renderPageTitle(), renderControls(), renderError(), renderInfo(), renderTabs(), renderTabsContent()] }));
|
157
159
|
}
|
158
160
|
//# sourceMappingURL=PDiskPage.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"PDiskPage.js","sourceRoot":"","sources":["../../../src/containers/PDiskPage/PDiskPage.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAC,eAAe,EAAC,MAAM,mBAAmB,CAAC;AAClD,OAAO,EAAC,IAAI,EAAE,IAAI,EAAC,MAAM,mBAAmB,CAAC;AAC7C,OAAO,EAAC,SAAS,EAAC,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAC,MAAM,EAAC,MAAM,oBAAoB,CAAC;AAC1C,OAAO,EAAC,WAAW,EAAE,cAAc,EAAC,MAAM,kBAAkB,CAAC;AAC7D,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AAEtB,OAAO,EAAC,uBAAuB,EAAC,MAAM,kEAAkE,CAAC;AACzG,OAAO,EAAC,eAAe,EAAC,MAAM,kDAAkD,CAAC;AACjF,OAAO,EAAC,aAAa,EAAC,MAAM,uCAAuC,CAAC;AACpE,OAAO,EAAC,kBAAkB,EAAC,MAAM,wDAAwD,CAAC;AAC1F,OAAO,EAAC,YAAY,EAAC,MAAM,4CAA4C,CAAC;AACxE,OAAO,EAAC,SAAS,EAAC,MAAM,sCAAsC,CAAC;AAC/D,OAAO,EAAC,uBAAuB,EAAC,MAAM,oCAAoC,CAAC;AAC3E,OAAO,EAAC,gBAAgB,EAAC,MAAM,cAAc,CAAC;AAC9C,OAAO,EAAC,GAAG,EAAC,MAAM,0BAA0B,CAAC;AAC7C,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AkB,CAAC,CAAC,CAAC,KAAC,OAAO,IAAC,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAI,CAAC,CAAC,CAAC,IAAI,CAAC;YACrF,CAAC;YACD;gBACI,OAAO,IAAI,CAAC;QACpB,CAAC;IACL,CAAC,CAAC;IAEF,MAAM,WAAW,GAAG,GAAG,EAAE;QACrB,IAAI,CAAC,cAAc,CAAC,KAAK,EAAE,CAAC;YACxB,OAAO,IAAI,CAAC;QAChB,CAAC;QACD,OAAO,KAAC,aAAa,IAAC,KAAK,EAAE,cAAc,CAAC,KAAK,GAAI,CAAC;IAC1D,CAAC,CAAC;IAEF,OAAO,CACH,eAAK,SAAS,EAAE,WAAW,CAAC,IAAI,CAAC,aAC5B,YAAY,EAAE,EACd,cAAc,EAAE,EAChB,eAAe,EAAE,EACjB,cAAc,EAAE,EAChB,WAAW,EAAE,EACb,UAAU,EAAE,EACZ,UAAU,EAAE,EACZ,iBAAiB,EAAE,IAClB,CACT,CAAC;AACN,CAAC"}
|
@@ -6,29 +6,29 @@
|
|
6
6
|
overflow: auto;
|
7
7
|
|
8
8
|
height: 100%;
|
9
|
+
padding: 0 20px;
|
9
10
|
|
10
|
-
&
|
11
|
+
&__meta,
|
12
|
+
&__title,
|
13
|
+
&__info,
|
14
|
+
&__controls,
|
15
|
+
&__tabs {
|
11
16
|
position: sticky;
|
12
17
|
left: 0;
|
13
18
|
|
14
|
-
|
15
|
-
flex-direction: column;
|
16
|
-
gap: 20px;
|
17
|
-
|
18
|
-
padding: 20px;
|
19
|
+
margin-bottom: 20px;
|
19
20
|
}
|
20
21
|
|
21
|
-
&
|
22
|
-
|
22
|
+
&__meta {
|
23
|
+
margin-top: 20px;
|
23
24
|
}
|
24
25
|
|
25
|
-
&__meta,
|
26
|
-
&__title,
|
27
|
-
&__info,
|
28
|
-
&__controls,
|
29
26
|
&__tabs {
|
30
|
-
|
31
|
-
|
27
|
+
margin-bottom: 0;
|
28
|
+
}
|
29
|
+
|
30
|
+
&__disk-distribution {
|
31
|
+
padding: 20px 0;
|
32
32
|
}
|
33
33
|
|
34
34
|
&__title {
|
@@ -1 +1 @@
|
|
1
|
-
export declare const pDiskPageKeyset: (key: "
|
1
|
+
export declare const pDiskPageKeyset: (key: "storage" | "node" | "log" | "fqdn" | "pdisk" | "disk-distribution" | "empty-slot" | "label.log-size" | "label.system-size" | "label.slot-size" | "no-slots-data" | "restart-pdisk-button" | "force-restart-pdisk-button" | "restart-pdisk-not-allowed" | "restart-pdisk-dialog-header" | "restart-pdisk-dialog-text" | "decommission-none" | "decommission-imminent" | "decommission-pending" | "decommission-rejected" | "decommission-label" | "decommission-button" | "decommission-change-not-allowed" | "decommission-dialog-title" | "decommission-dialog-force-change" | "decommission-dialog-imminent-warning" | "decommission-dialog-pending-warning" | "decommission-dialog-rejected-warning" | "decommission-dialog-none-warning", params?: import("@gravity-ui/i18n").Params) => string;
|
@@ -19,18 +19,18 @@ function ReduxTooltip(props) {
|
|
19
19
|
const fakeAnchor = useVirtualElementRef({
|
20
20
|
rect: { top: (_a = props.positions) === null || _a === void 0 ? void 0 : _a.top, left: (_b = props.positions) === null || _b === void 0 ? void 0 : _b.left },
|
21
21
|
});
|
22
|
+
const handleScroll = React.useCallback(() => {
|
23
|
+
const { hideTooltip, toolTipVisible } = props;
|
24
|
+
if (toolTipVisible) {
|
25
|
+
setTimeout(() => hideTooltip(), 500);
|
26
|
+
}
|
27
|
+
}, [props]);
|
22
28
|
React.useEffect(() => {
|
23
29
|
window.addEventListener('scroll', handleScroll, true);
|
24
30
|
return () => {
|
25
31
|
window.removeEventListener('scroll', handleScroll);
|
26
32
|
};
|
27
|
-
}, []);
|
28
|
-
const handleScroll = () => {
|
29
|
-
const { hideTooltip, toolTipVisible } = props;
|
30
|
-
if (toolTipVisible) {
|
31
|
-
setTimeout(() => hideTooltip(), 500);
|
32
|
-
}
|
33
|
-
};
|
33
|
+
}, [handleScroll]);
|
34
34
|
const renderPositionPopup = (visible, positions, data, additionalData) => {
|
35
35
|
const { template, popupClassName, hideTooltip } = props;
|
36
36
|
return (_jsx(React.Fragment, { children: _jsx(Popup, { open: visible, placement: ['top', 'bottom', 'left', 'right'], contentClassName: popupClassName, anchorRef: fakeAnchor, onOutsideClick: hideTooltip, children: data && template(data, additionalData) }) }));
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ReduxTooltip.js","sourceRoot":"","sources":["../../../src/containers/ReduxTooltip/ReduxTooltip.js"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAC,KAAK,EAAE,oBAAoB,EAAC,MAAM,mBAAmB,CAAC;AAC9D,OAAO,SAAS,MAAM,YAAY,CAAC;AACnC,OAAO,EAAC,OAAO,EAAC,MAAM,aAAa,CAAC;AAEpC,OAAO,EAAC,WAAW,EAAC,MAAM,8BAA8B,CAAC;AACzD,OAAO,EAAC,gBAAgB,EAAC,MAAM,qBAAqB,CAAC;AAErD,OAAO,qBAAqB,CAAC;AAE7B,MAAM,SAAS,GAAG;IACd,SAAS,EAAE,SAAS,CAAC,MAAM;IAC3B,cAAc,EAAE,SAAS,CAAC,IAAI;IAC9B,iBAAiB,EAAE,SAAS,CAAC,MAAM;IACnC,IAAI,EAAE,SAAS,CAAC,GAAG;IACnB,QAAQ,EAAE,SAAS,CAAC,IAAI;IACxB,WAAW,EAAE,SAAS,CAAC,IAAI;CAC9B,CAAC;AAEF,SAAS,YAAY,CAAC,KAAK;;IACvB,MAAM,UAAU,GAAG,oBAAoB,CAAC;QACpC,IAAI,EAAE,EAAC,GAAG,EAAE,MAAA,KAAK,CAAC,SAAS,0CAAE,GAAG,EAAE,IAAI,EAAE,MAAA,KAAK,CAAC,SAAS,0CAAE,IAAI,EAAC;KACjE,CAAC,CAAC;IAEH,KAAK,CAAC,
|
1
|
+
{"version":3,"file":"ReduxTooltip.js","sourceRoot":"","sources":["../../../src/containers/ReduxTooltip/ReduxTooltip.js"],"names":[],"mappings":";AAAA,OAA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EAAE,iBAAiB,SAAS,EAAE,YACvC,SAAS;YACN,CAAC,CAAC,mBAAmB,CAAC,cAAc,EAAE,SAAS,EAAE,IAAI,EAAE,cAAc,CAAC;YACtE,CAAC,CAAC,iBAAiB,CAAC,cAAc,EAAE,iBAAiB,EAAE,IAAI,EAAE,cAAc,CAAC,GAC9E,CACT,CAAC;AACN,CAAC;AAED,MAAM,eAAe,GAAG,CAAC,KAAK,EAAE,EAAE;IAC9B,MAAM,EAAC,cAAc,EAAE,iBAAiB,EAAE,IAAI,EAAE,YAAY,EAAE,cAAc,EAAE,SAAS,EAAC,GACpF,KAAK,CAAC,OAAO,CAAC;IAElB,MAAM,EAAC,cAAc,EAAC,GAAG,cAAc,IAAI,EAAE,CAAC;IAE9C,OAAO;QACH,cAAc;QACd,iBAAiB;QACjB,IAAI;QACJ,QAAQ,EAAE,gBAAgB,CAAC,YAAY,CAAC;QACxC,cAAc;QACd,SAAS;QACT,cAAc;KACjB,CAAC;AACN,CAAC,CAAC;AAEF,eAAe,OAAO,CAAC,eAAe,EAAE,EAAC,WAAW,EAAC,CAAC,CAAC,YAAY,CAAC,CAAC;AAErE,YAAY,CAAC,SAAS,GAAG,SAAS,CAAC"}
|
@@ -1,9 +1,9 @@
|
|
1
|
-
import type { NodesMap } from '../../../types/store/nodesList';
|
2
1
|
import type { PreparedVDisk } from '../../../utils/disks/types';
|
2
|
+
import type { VDiskViewContext } from '../utils';
|
3
3
|
import './Disks.scss';
|
4
4
|
interface DisksProps {
|
5
5
|
vDisks?: PreparedVDisk[];
|
6
|
-
|
6
|
+
viewContext?: VDiskViewContext;
|
7
7
|
}
|
8
|
-
export declare function Disks({ vDisks,
|
8
|
+
export declare function Disks({ vDisks, viewContext }: DisksProps): import("react/jsx-runtime").JSX.Element | null;
|
9
9
|
export {};
|
@@ -5,27 +5,26 @@ import { cn } from '../../../utils/cn';
|
|
5
5
|
import { stringifyVdiskId } from '../../../utils/dataFormatters/dataFormatters';
|
6
6
|
import { getPDiskId } from '../../../utils/disks/helpers';
|
7
7
|
import { PDisk } from '../PDisk';
|
8
|
+
import { isVdiskActive } from '../utils';
|
8
9
|
import './Disks.scss';
|
9
10
|
const b = cn('ydb-storage-disks');
|
10
|
-
export function Disks({ vDisks = [],
|
11
|
+
export function Disks({ vDisks = [], viewContext }) {
|
11
12
|
const [highlightedVDisk, setHighlightedVDisk] = React.useState();
|
12
13
|
if (!vDisks.length) {
|
13
14
|
return null;
|
14
15
|
}
|
15
|
-
return (_jsxs("div", { className: b(null), children: [_jsx("div", { className: b('vdisks-wrapper'), children: vDisks === null || vDisks === void 0 ? void 0 : vDisks.map((vDisk) => {
|
16
|
-
return (_jsx(VDiskItem, { vDisk: vDisk, nodes: nodes, highlightedVDisk: highlightedVDisk, setHighlightedVDisk: setHighlightedVDisk }, stringifyVdiskId(vDisk.VDiskId)));
|
17
|
-
}) }), _jsx("div", { className: b('pdisks-wrapper'), children: vDisks === null || vDisks === void 0 ? void 0 : vDisks.map((vDisk) => {
|
16
|
+
return (_jsxs("div", { className: b(null), children: [_jsx("div", { className: b('vdisks-wrapper'), children: vDisks === null || vDisks === void 0 ? void 0 : vDisks.map((vDisk) => (_jsx(VDiskItem, { vDisk: vDisk, inactive: !isVdiskActive(vDisk, viewContext), highlightedVDisk: highlightedVDisk, setHighlightedVDisk: setHighlightedVDisk }, stringifyVdiskId(vDisk.VDiskId)))) }), _jsx("div", { className: b('pdisks-wrapper'), children: vDisks === null || vDisks === void 0 ? void 0 : vDisks.map((vDisk) => {
|
18
17
|
var _a;
|
19
|
-
return (_jsx(PDiskItem, { vDisk: vDisk,
|
18
|
+
return (_jsx(PDiskItem, { vDisk: vDisk, highlightedVDisk: highlightedVDisk, setHighlightedVDisk: setHighlightedVDisk }, getPDiskId(vDisk.NodeId, (_a = vDisk === null || vDisk === void 0 ? void 0 : vDisk.PDisk) === null || _a === void 0 ? void 0 : _a.PDiskId)));
|
20
19
|
}) })] }));
|
21
20
|
}
|
22
|
-
function VDiskItem({
|
21
|
+
function VDiskItem({ vDisk, highlightedVDisk, inactive, setHighlightedVDisk }) {
|
23
22
|
// Do not show PDisk popup for VDisk
|
24
23
|
const vDiskToShow = { ...vDisk, PDisk: undefined };
|
25
24
|
const vDiskId = stringifyVdiskId(vDisk.VDiskId);
|
26
25
|
return (_jsx("div", { style: {
|
27
26
|
flexGrow: Number(vDisk.AllocatedSize) || 1,
|
28
|
-
}, className: b('vdisk-item'), children: _jsx(VDiskWithDonorsStack, { data: vDiskToShow,
|
27
|
+
}, className: b('vdisk-item'), children: _jsx(VDiskWithDonorsStack, { data: vDiskToShow, compact: true, inactive: inactive, showPopup: highlightedVDisk === vDiskId, onShowPopup: () => setHighlightedVDisk(vDiskId), onHidePopup: () => setHighlightedVDisk(undefined), progressBarClassName: b('vdisk-progress-bar') }) }));
|
29
28
|
}
|
30
29
|
function PDiskItem({ vDisk, highlightedVDisk, setHighlightedVDisk }) {
|
31
30
|
const vDiskId = stringifyVdiskId(vDisk.VDiskId);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Disks.js","sourceRoot":"","sources":["../../../../src/containers/Storage/Disks/Disks.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAC,oBAAoB,EAAC,MAAM,gDAAgD,CAAC;
|
1
|
+
{"version":3,"file":"Disks.js","sourceRoot":"","sources":["../../../../src/containers/Storage/Disks/Disks.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAC,oBAAoB,EAAC,MAAM,gDAAgD,CAAC;AACpF,OAAO,EAAC,EAAE,EAAC,MAAM,mBAAmB,CAAC;AACrC,OAAO,EAAC,gBAAgB,EAAC,MAAM,8CAA8C,CAAC;AAC9E,OAAO,EAAC,UAAU,EAAC,MAAM,8BAA8B,CAAC;AAExD,OAAO,EAAC,KAAK,EAAC,MAAM,UAAU,CAAC;AAC/B,OAAO,EAAC,aAAa,EAAC,MAAM,U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AC;AACN,CAAC"}
|
@@ -1,14 +1,15 @@
|
|
1
|
-
import type {
|
2
|
-
import type {
|
1
|
+
import type { PreparedPDisk, PreparedVDisk } from '../../../utils/disks/types';
|
2
|
+
import type { VDiskViewContext } from '../utils';
|
3
3
|
import './PDisk.scss';
|
4
4
|
interface PDiskProps {
|
5
5
|
data?: PreparedPDisk;
|
6
|
-
vDisks?:
|
6
|
+
vDisks?: PreparedVDisk[];
|
7
7
|
showPopup?: boolean;
|
8
8
|
onShowPopup?: VoidFunction;
|
9
9
|
onHidePopup?: VoidFunction;
|
10
10
|
className?: string;
|
11
11
|
progressBarClassName?: string;
|
12
|
+
viewContext?: VDiskViewContext;
|
12
13
|
}
|
13
|
-
export declare const PDisk: ({ data, vDisks, showPopup, onShowPopup, onHidePopup, className, progressBarClassName, }: PDiskProps) => import("react/jsx-runtime").JSX.Element;
|
14
|
+
export declare const PDisk: ({ data, vDisks, showPopup, onShowPopup, onHidePopup, className, progressBarClassName, viewContext, }: PDiskProps) => import("react/jsx-runtime").JSX.Element;
|
14
15
|
export {};
|
@@ -10,9 +10,10 @@ import { valueIsDefined } from '../../../utils';
|
|
10
10
|
import { cn } from '../../../utils/cn';
|
11
11
|
import { stringifyVdiskId } from '../../../utils/dataFormatters/dataFormatters';
|
12
12
|
import { STRUCTURE } from '../../Node/NodePages';
|
13
|
+
import { isVdiskActive } from '../utils';
|
13
14
|
import './PDisk.scss';
|
14
15
|
const b = cn('pdisk-storage');
|
15
|
-
export const PDisk = ({ data = {}, vDisks, showPopup, onShowPopup, onHidePopup, className, progressBarClassName, }) => {
|
16
|
+
export const PDisk = ({ data = {}, vDisks, showPopup, onShowPopup, onHidePopup, className, progressBarClassName, viewContext, }) => {
|
16
17
|
const [isPopupVisible, setIsPopupVisible] = React.useState(false);
|
17
18
|
const diskPagesAvailable = useDiskPagesAvailable();
|
18
19
|
const anchor = React.useRef(null);
|
@@ -35,7 +36,7 @@ export const PDisk = ({ data = {}, vDisks, showPopup, onShowPopup, onHidePopup,
|
|
35
36
|
// 1 is small enough for empty disks to be of the minimum width
|
36
37
|
// but if all of them are empty, `flex-grow: 1` would size them evenly
|
37
38
|
flexGrow: Number(vdisk.AllocatedSize) || 1,
|
38
|
-
}, children: _jsx(VDiskWithDonorsStack, { data: vdisk,
|
39
|
+
}, children: _jsx(VDiskWithDonorsStack, { data: vdisk, inactive: !isVdiskActive(vdisk, viewContext), stackClassName: b('donors-stack'), compact: true }) }, stringifyVdiskId(vdisk.VDiskId)));
|
39
40
|
}) }));
|
40
41
|
};
|
41
42
|
let pDiskPath;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"PDisk.js","sourceRoot":"","sources":["../../../../src/containers/Storage/PDisk/PDisk.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAC,oBAAoB,EAAC,MAAM,+DAA+D,CAAC;AACnG,OAAO,EAAC,YAAY,EAAC,MAAM,kCAAkC,CAAC;AAC9D,OAAO,EAAC,UAAU,EAAC,MAAM,2CAA2C,CAAC;AACrE,OAAO,EAAC,oBAAoB,EAAC,MAAM,gDAAgD,CAAC;AACpF,OAAO,MAAM,EAAE,EAAC,UAAU,EAAE,gBAAgB,EAAC,MAAM,iBAAiB,CAAC;AACrE,OAAO,EAAC,qBAAqB,EAAC,MAAM,4CAA4C,CAAC;
|
1
|
+
{"version":3,"file":"PDisk.js","sourceRoot":"","sources":["../../../../src/containers/Storage/PDisk/PDisk.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAC,oBAAoB,EAAC,MAAM,+DAA+D,CAAC;AACnG,OAAO,EAAC,YAAY,EAAC,MAAM,kCAAkC,CAAC;AAC9D,OAAO,EAAC,UAAU,EAAC,MAAM,2CAA2C,CAAC;AACrE,OAAO,EAAC,oBAAoB,EAAC,MAAM,gDAAgD,CAAC;AACpF,OAAO,MAAM,EAAE,EAAC,UAAU,EAAE,gBAAg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,EAAE,SAAS,EACb,SAAS,EAAE,CAAC,CAAC,SAAS,CAAC,EACvB,YAAY,EAAE,eAAe,EAC7B,YAAY,EAAE,eAAe,aAE7B,KAAC,oBAAoB,IACjB,oBAAoB,EAAE,IAAI,CAAC,gBAAgB,EAC3C,QAAQ,EAAE,IAAI,CAAC,QAAQ,EACvB,SAAS,EAAE,oBAAoB,GACjC,EACF,cAAK,SAAS,EAAE,CAAC,CAAC,YAAY,CAAC,YAAG,IAAI,CAAC,IAAI,GAAO,IACvC,IACb,EACN,KAAC,UAAU,IAAC,IAAI,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,IAAI,EAAE,cAAc,IAAI,SAAS,GAAI,IACnE,CACpB,CAAC;AACN,CAAC,CAAC"}
|
@@ -1,9 +1,8 @@
|
|
1
|
-
|
2
|
-
interface PaginatedStorageProps {
|
1
|
+
export interface PaginatedStorageProps {
|
3
2
|
database?: string;
|
4
|
-
nodeId?: string;
|
3
|
+
nodeId?: string | number;
|
4
|
+
groupId?: string | number;
|
5
|
+
pDiskId?: string | number;
|
5
6
|
parentContainer?: Element | null;
|
6
|
-
additionalNodesProps?: AdditionalNodesProps;
|
7
7
|
}
|
8
|
-
export declare const PaginatedStorage: (
|
9
|
-
export {};
|
8
|
+
export declare const PaginatedStorage: (props: PaginatedStorageProps) => import("react/jsx-runtime").JSX.Element;
|
@@ -1,58 +1,13 @@
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
2
|
-
import {
|
3
|
-
import {
|
4
|
-
import {
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
import { PaginatedStorageNodes } from './StorageNodes/PaginatedStorageNodes';
|
11
|
-
export const PaginatedStorage = ({ database, nodeId, parentContainer, additionalNodesProps, }) => {
|
12
|
-
var _a;
|
13
|
-
const [queryParams, setQueryParams] = useQueryParams({
|
14
|
-
type: StringParam,
|
15
|
-
visible: StringParam,
|
16
|
-
search: StringParam,
|
17
|
-
uptimeFilter: StringParam,
|
18
|
-
});
|
19
|
-
const storageType = storageTypeSchema.parse(queryParams.type);
|
20
|
-
const visibleEntities = visibleEntitiesSchema.parse(queryParams.visible);
|
21
|
-
const searchValue = (_a = queryParams.search) !== null && _a !== void 0 ? _a : '';
|
22
|
-
const nodesUptimeFilter = nodesUptimeFilterValuesSchema.parse(queryParams.uptimeFilter);
|
23
|
-
const handleTextFilterChange = (value) => {
|
24
|
-
setQueryParams({ search: value || undefined }, 'replaceIn');
|
25
|
-
};
|
26
|
-
const handleGroupVisibilityChange = (value) => {
|
27
|
-
setQueryParams({ visible: value }, 'replaceIn');
|
28
|
-
};
|
29
|
-
const handleStorageTypeChange = (value) => {
|
30
|
-
setQueryParams({ type: value }, 'replaceIn');
|
31
|
-
};
|
32
|
-
const handleUptimeFilterChange = (value) => {
|
33
|
-
setQueryParams({ uptimeFilter: value }, 'replaceIn');
|
34
|
-
};
|
35
|
-
const handleShowAllGroups = () => {
|
36
|
-
handleGroupVisibilityChange(VISIBLE_ENTITIES.all);
|
37
|
-
};
|
38
|
-
const handleShowAllNodes = () => {
|
39
|
-
setQueryParams({
|
40
|
-
visible: VISIBLE_ENTITIES.all,
|
41
|
-
uptimeFilter: NodesUptimeFilterValues.All,
|
42
|
-
}, 'replaceIn');
|
43
|
-
};
|
44
|
-
const renderControls = ({ totalEntities, foundEntities, inited }) => {
|
45
|
-
return (_jsx(StorageControls, { searchValue: searchValue, handleSearchValueChange: handleTextFilterChange, withTypeSelector: !nodeId, storageType: storageType, handleStorageTypeChange: handleStorageTypeChange, visibleEntities: visibleEntities, handleVisibleEntitiesChange: handleGroupVisibilityChange, nodesUptimeFilter: nodesUptimeFilter, handleNodesUptimeFilterChange: handleUptimeFilterChange, withGroupsUsageFilter: false, entitiesCountCurrent: foundEntities, entitiesCountTotal: totalEntities, entitiesLoading: !inited }));
|
46
|
-
};
|
47
|
-
const renderErrorMessage = (error) => {
|
48
|
-
if (error.status === 403) {
|
49
|
-
return _jsx(AccessDenied, { position: "left" });
|
50
|
-
}
|
51
|
-
return _jsx(ResponseError, { error: error });
|
52
|
-
};
|
53
|
-
if (storageType === STORAGE_TYPES.nodes) {
|
54
|
-
return (_jsx(PaginatedStorageNodes, { searchValue: searchValue, visibleEntities: visibleEntities, nodesUptimeFilter: nodesUptimeFilter, database: database, additionalNodesProps: additionalNodesProps, onShowAll: handleShowAllNodes, parentContainer: parentContainer, renderControls: renderControls, renderErrorMessage: renderErrorMessage }));
|
2
|
+
import { PaginatedStorageGroups } from './PaginatedStorageGroups';
|
3
|
+
import { PaginatedStorageNodes } from './PaginatedStorageNodes';
|
4
|
+
import { useStorageQueryParams } from './useStorageQueryParams';
|
5
|
+
export const PaginatedStorage = (props) => {
|
6
|
+
const { storageType } = useStorageQueryParams();
|
7
|
+
const isNodes = storageType === 'nodes';
|
8
|
+
if (isNodes) {
|
9
|
+
return _jsx(PaginatedStorageNodes, { ...props });
|
55
10
|
}
|
56
|
-
return
|
11
|
+
return _jsx(PaginatedStorageGroups, { ...props });
|
57
12
|
};
|
58
13
|
//# sourceMappingURL=PaginatedStorage.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"PaginatedStorage.js","sourceRoot":"","sources":["../../../src/containers/Storage/PaginatedStorage.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAC,
|
1
|
+
{"version":3,"file":"PaginatedStorage.js","sourceRoot":"","sources":["../../../src/containers/Storage/PaginatedStorage.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAC,sBAAsB,EAAC,MAAM,0BAA0B,CAAC;AAChE,OAAO,EAAC,qBAAqB,EAAC,MAAM,yBAAyB,CAAC;AAC9D,OAAO,EAAC,qBAAqB,EAAC,MAAM,yBAAyB,CAAC;AAW9D,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,KAA4B,EAAE,EAAE;IAC7D,MAAM,EAAC,WAAW,EAAC,GAAG,qBAAqB,EAAE,CAAC;IAE9C,MAAM,OAAO,GAAG,WAAW,KAAK,OAAO,CAAC;IAExC,IAAI,OAAO,EAAE,CAAC;QACV,OAAO,KAAC,qBAAqB,OAAK,KAAK,GAAI,CAAC;IAChD,CAAC;IAED,OAAO,KAAC,sBAAsB,OAAK,KAAK,GAAI,CAAC;AACjD,CAAC,CAAC"}
|