ydb-embedded-ui 6.20.0 → 6.22.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 +3 -4
- package/dist/components/PDiskInfo/PDiskInfo.js.map +1 -1
- package/dist/components/PDiskInfo/PDiskInfo.scss +0 -14
- package/dist/components/PDiskInfo/i18n/index.d.ts +1 -1
- package/dist/components/QueryResultTable/Cell/Cell.js +1 -4
- package/dist/components/QueryResultTable/Cell/Cell.js.map +1 -1
- package/dist/components/StorageGroupInfo/StorageGroupInfo.d.ts +8 -0
- package/dist/components/StorageGroupInfo/StorageGroupInfo.js +123 -0
- package/dist/components/StorageGroupInfo/StorageGroupInfo.js.map +1 -0
- package/dist/components/StorageGroupInfo/i18n/en.json +22 -0
- package/dist/components/StorageGroupInfo/i18n/index.d.ts +1 -0
- package/dist/components/StorageGroupInfo/i18n/index.js +5 -0
- package/dist/components/StorageGroupInfo/i18n/index.js.map +1 -0
- package/dist/components/VDisk/VDisk.d.ts +2 -1
- 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/containers/App/App.scss +1 -1
- package/dist/containers/App/Content.js +7 -1
- package/dist/containers/App/Content.js.map +1 -1
- package/dist/containers/App/appSlots.d.ts +6 -0
- package/dist/containers/App/appSlots.js +1 -0
- package/dist/containers/App/appSlots.js.map +1 -1
- package/dist/containers/Cluster/Cluster.js +1 -1
- package/dist/containers/Cluster/Cluster.js.map +1 -1
- 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 +14 -0
- package/dist/containers/Header/breadcrumbs.js.map +1 -1
- package/dist/containers/Header/i18n/en.json +2 -1
- package/dist/containers/Header/i18n/index.d.ts +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} +29 -39
- package/dist/containers/Nodes/columns/columns.js.map +1 -0
- package/dist/containers/Nodes/columns/constants.d.ts +39 -0
- package/dist/containers/Nodes/columns/constants.js +79 -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 +16 -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 +11 -9
- package/dist/containers/PDiskPage/PDiskPage.js.map +1 -1
- package/dist/containers/PDiskPage/PDiskPage.scss +15 -4
- 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/PDisk/PDisk.d.ts +4 -4
- package/dist/containers/Storage/PDisk/PDisk.js +2 -2
- package/dist/containers/Storage/PDisk/PDisk.js.map +1 -1
- package/dist/containers/Storage/PaginatedStorage.d.ts +2 -3
- package/dist/containers/Storage/PaginatedStorage.js +27 -6
- package/dist/containers/Storage/PaginatedStorage.js.map +1 -1
- package/dist/containers/Storage/Storage.d.ts +4 -4
- package/dist/containers/Storage/Storage.js +45 -11
- package/dist/containers/Storage/Storage.js.map +1 -1
- package/dist/containers/Storage/StorageControls/StorageControls.d.ts +4 -1
- package/dist/containers/Storage/StorageControls/StorageControls.js +4 -2
- package/dist/containers/Storage/StorageControls/StorageControls.js.map +1 -1
- package/dist/containers/Storage/StorageGroups/PaginatedStorageGroups.d.ts +3 -1
- package/dist/containers/Storage/StorageGroups/PaginatedStorageGroups.js +2 -4
- package/dist/containers/Storage/StorageGroups/PaginatedStorageGroups.js.map +1 -1
- package/dist/containers/Storage/StorageGroups/StorageGroups.d.ts +3 -1
- package/dist/containers/Storage/StorageGroups/StorageGroups.js +2 -4
- package/dist/containers/Storage/StorageGroups/StorageGroups.js.map +1 -1
- package/dist/containers/Storage/StorageGroups/columns/columns.d.ts +4 -0
- package/dist/containers/Storage/StorageGroups/columns/{getStorageGroupsColumns.js → columns.js} +36 -82
- package/dist/containers/Storage/StorageGroups/columns/columns.js.map +1 -0
- package/dist/containers/Storage/StorageGroups/columns/constants.d.ts +37 -0
- package/dist/containers/Storage/StorageGroups/columns/constants.js +75 -0
- package/dist/containers/Storage/StorageGroups/columns/constants.js.map +1 -0
- package/dist/containers/Storage/StorageGroups/columns/hooks.d.ts +6 -2
- package/dist/containers/Storage/StorageGroups/columns/hooks.js +22 -14
- package/dist/containers/Storage/StorageGroups/columns/hooks.js.map +1 -1
- package/dist/containers/Storage/StorageGroups/columns/i18n/en.json +15 -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 +2 -6
- package/dist/containers/Storage/StorageGroups/getGroups.js +4 -1
- package/dist/containers/Storage/StorageGroups/getGroups.js.map +1 -1
- package/dist/containers/Storage/StorageNodes/PaginatedStorageNodes.d.ts +3 -3
- package/dist/containers/Storage/StorageNodes/PaginatedStorageNodes.js +2 -5
- package/dist/containers/Storage/StorageNodes/PaginatedStorageNodes.js.map +1 -1
- package/dist/containers/Storage/StorageNodes/StorageNodes.d.ts +4 -6
- package/dist/containers/Storage/StorageNodes/StorageNodes.js +2 -4
- package/dist/containers/Storage/StorageNodes/StorageNodes.js.map +1 -1
- package/dist/containers/Storage/StorageNodes/StorageNodes.scss +1 -27
- package/dist/containers/Storage/StorageNodes/columns/StorageNodesColumns.scss +23 -0
- package/dist/containers/Storage/StorageNodes/columns/columns.d.ts +39 -0
- package/dist/containers/Storage/StorageNodes/{getStorageNodesColumns.js → columns/columns.js} +21 -31
- package/dist/containers/Storage/StorageNodes/columns/columns.js.map +1 -0
- package/dist/containers/Storage/StorageNodes/columns/constants.d.ts +25 -0
- package/dist/containers/Storage/StorageNodes/columns/constants.js +47 -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 +9 -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 +7 -4
- 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/utils/index.js +6 -5
- package/dist/containers/Storage/utils/index.js.map +1 -1
- package/dist/containers/StorageGroupPage/StorageGroupPage.d.ts +2 -0
- package/dist/containers/StorageGroupPage/StorageGroupPage.js +74 -0
- package/dist/containers/StorageGroupPage/StorageGroupPage.js.map +1 -0
- package/dist/containers/StorageGroupPage/StorageGroupPage.scss +37 -0
- package/dist/containers/StorageGroupPage/i18n/en.json +5 -0
- package/dist/containers/StorageGroupPage/i18n/index.d.ts +1 -0
- package/dist/containers/StorageGroupPage/i18n/index.js +5 -0
- package/dist/containers/StorageGroupPage/i18n/index.js.map +1 -0
- package/dist/containers/Tablets/i18n/index.d.ts +1 -1
- package/dist/containers/Tenant/Diagnostics/Diagnostics.js +4 -2
- package/dist/containers/Tenant/Diagnostics/Diagnostics.js.map +1 -1
- package/dist/containers/Tenant/Diagnostics/DiagnosticsPages.d.ts +36 -0
- package/dist/containers/Tenant/Diagnostics/DiagnosticsPages.js +7 -2
- package/dist/containers/Tenant/Diagnostics/DiagnosticsPages.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/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/ObjectSummary/ObjectSummary.js +46 -55
- 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/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/Query/ExecuteResult/ExecuteResult.js +12 -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 +2 -1
- package/dist/containers/Tenant/Query/ExecuteResult/i18n/index.d.ts +1 -1
- 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/utils/schema.js +1 -0
- package/dist/containers/Tenant/utils/schema.js.map +1 -1
- 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/routes.d.ts +3 -0
- package/dist/routes.js +5 -0
- package/dist/routes.js.map +1 -1
- package/dist/services/api.d.ts +16 -5
- package/dist/services/api.js +51 -12
- 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 +1 -0
- package/dist/store/reducers/capabilities/hooks.js +3 -0
- package/dist/store/reducers/capabilities/hooks.js.map +1 -1
- package/dist/store/reducers/executeQuery.js +3 -0
- package/dist/store/reducers/executeQuery.js.map +1 -1
- package/dist/store/reducers/header/types.d.ts +5 -2
- 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 +2 -23
- 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/storage.d.ts +2 -2
- package/dist/store/reducers/storage/storage.js.map +1 -1
- package/dist/store/reducers/storage/types.d.ts +19 -0
- package/dist/store/reducers/storage/utils.js +7 -2
- package/dist/store/reducers/storage/utils.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/meta.d.ts +3 -0
- package/dist/types/api/nodes.d.ts +33 -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 +8 -5
- 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 +35 -0
- package/dist/utils/hooks/useSelectedColumns.js.map +1 -0
- package/dist/utils/nodes.d.ts +3 -22
- package/dist/utils/nodes.js +16 -19
- 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.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/columns/getStorageGroupsColumns.d.ts +0 -21
- package/dist/containers/Storage/StorageGroups/columns/getStorageGroupsColumns.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/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/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
@@ -1,32 +1,16 @@
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
2
2
|
import DataTable from '@gravity-ui/react-data-table';
|
3
|
-
import { CellWithPopover } from '
|
4
|
-
import { NodeHostWrapper } from '
|
5
|
-
import { PoolsGraph } from '
|
6
|
-
import { ProgressViewer } from '
|
7
|
-
import { TabletsStatistic } from '
|
8
|
-
import { UsageLabel } from '
|
9
|
-
import { getLoadSeverityForNode } from '
|
10
|
-
import { EMPTY_DATA_PLACEHOLDER } from '
|
11
|
-
import { formatStorageValuesToGb } from '
|
12
|
-
|
13
|
-
|
14
|
-
NodeId: 'NodeId',
|
15
|
-
Host: 'Host',
|
16
|
-
DC: 'DC',
|
17
|
-
Rack: 'Rack',
|
18
|
-
Version: 'Version',
|
19
|
-
Uptime: 'Uptime',
|
20
|
-
Memory: 'Memory',
|
21
|
-
CPU: 'CPU',
|
22
|
-
LoadAverage: 'LoadAverage',
|
23
|
-
Tablets: 'Tablets',
|
24
|
-
TopNodesLoadAverage: 'TopNodesLoadAverage',
|
25
|
-
TopNodesMemory: 'TopNodesMemory',
|
26
|
-
SharedCacheUsage: 'SharedCacheUsage',
|
27
|
-
MemoryUsedInAlloc: 'MemoryUsedInAlloc',
|
28
|
-
TotalSessions: 'TotalSessions',
|
29
|
-
};
|
3
|
+
import { CellWithPopover } from '../../../components/CellWithPopover/CellWithPopover';
|
4
|
+
import { NodeHostWrapper } from '../../../components/NodeHostWrapper/NodeHostWrapper';
|
5
|
+
import { PoolsGraph } from '../../../components/PoolsGraph/PoolsGraph';
|
6
|
+
import { ProgressViewer } from '../../../components/ProgressViewer/ProgressViewer';
|
7
|
+
import { TabletsStatistic } from '../../../components/TabletsStatistic';
|
8
|
+
import { UsageLabel } from '../../../components/UsageLabel/UsageLabel';
|
9
|
+
import { getLoadSeverityForNode } from '../../../store/reducers/nodes/utils';
|
10
|
+
import { EMPTY_DATA_PLACEHOLDER } from '../../../utils/constants';
|
11
|
+
import { formatStorageValuesToGb } from '../../../utils/dataFormatters/dataFormatters';
|
12
|
+
import { isSortableNodesProperty } from '../../../utils/nodes';
|
13
|
+
import { NODES_COLUMNS_IDS, NODES_COLUMNS_TITLES } from './constants';
|
30
14
|
const nodeIdColumn = {
|
31
15
|
name: NODES_COLUMNS_IDS.NodeId,
|
32
16
|
header: '#',
|
@@ -37,6 +21,7 @@ const nodeIdColumn = {
|
|
37
21
|
};
|
38
22
|
const getHostColumn = (getNodeRef, database) => ({
|
39
23
|
name: NODES_COLUMNS_IDS.Host,
|
24
|
+
header: NODES_COLUMNS_TITLES.Host,
|
40
25
|
render: ({ row }) => {
|
41
26
|
return _jsx(NodeHostWrapper, { node: row, getNodeRef: getNodeRef, database: database });
|
42
27
|
},
|
@@ -49,20 +34,21 @@ const getHostColumnWithUndefinedWidth = (getNodeRef) => {
|
|
49
34
|
};
|
50
35
|
const dataCenterColumn = {
|
51
36
|
name: NODES_COLUMNS_IDS.DC,
|
52
|
-
header:
|
37
|
+
header: NODES_COLUMNS_TITLES.DC,
|
53
38
|
align: DataTable.LEFT,
|
54
39
|
render: ({ row }) => row.DC || EMPTY_DATA_PLACEHOLDER,
|
55
40
|
width: 60,
|
56
41
|
};
|
57
42
|
const rackColumn = {
|
58
43
|
name: NODES_COLUMNS_IDS.Rack,
|
59
|
-
header:
|
44
|
+
header: NODES_COLUMNS_TITLES.Rack,
|
60
45
|
align: DataTable.LEFT,
|
61
46
|
render: ({ row }) => (row.Rack ? row.Rack : '—'),
|
62
47
|
width: 80,
|
63
48
|
};
|
64
49
|
const versionColumn = {
|
65
50
|
name: NODES_COLUMNS_IDS.Version,
|
51
|
+
header: NODES_COLUMNS_TITLES.Version,
|
66
52
|
width: 200,
|
67
53
|
align: DataTable.LEFT,
|
68
54
|
render: ({ row }) => {
|
@@ -72,7 +58,7 @@ const versionColumn = {
|
|
72
58
|
};
|
73
59
|
const uptimeColumn = {
|
74
60
|
name: NODES_COLUMNS_IDS.Uptime,
|
75
|
-
header:
|
61
|
+
header: NODES_COLUMNS_TITLES.Uptime,
|
76
62
|
sortAccessor: ({ StartTime }) => StartTime && -StartTime,
|
77
63
|
render: ({ row }) => row.Uptime,
|
78
64
|
align: DataTable.RIGHT,
|
@@ -81,7 +67,7 @@ const uptimeColumn = {
|
|
81
67
|
};
|
82
68
|
const memoryColumn = {
|
83
69
|
name: NODES_COLUMNS_IDS.Memory,
|
84
|
-
header:
|
70
|
+
header: NODES_COLUMNS_TITLES.Memory,
|
85
71
|
sortAccessor: ({ MemoryUsed = 0 }) => Number(MemoryUsed),
|
86
72
|
defaultOrder: DataTable.DESCENDING,
|
87
73
|
render: ({ row }) => (_jsx(ProgressViewer, { value: row.MemoryUsed, capacity: row.MemoryLimit, formatValues: formatStorageValuesToGb, colorizeProgress: true })),
|
@@ -90,7 +76,7 @@ const memoryColumn = {
|
|
90
76
|
};
|
91
77
|
const cpuColumn = {
|
92
78
|
name: NODES_COLUMNS_IDS.CPU,
|
93
|
-
header:
|
79
|
+
header: NODES_COLUMNS_TITLES.CPU,
|
94
80
|
sortAccessor: ({ PoolStats = [] }) => Math.max(...PoolStats.map(({ Usage }) => Number(Usage))),
|
95
81
|
defaultOrder: DataTable.DESCENDING,
|
96
82
|
render: ({ row }) => (row.PoolStats ? _jsx(PoolsGraph, { pools: row.PoolStats }) : '—'),
|
@@ -101,7 +87,7 @@ const cpuColumn = {
|
|
101
87
|
};
|
102
88
|
const loadAverageColumn = {
|
103
89
|
name: NODES_COLUMNS_IDS.LoadAverage,
|
104
|
-
header:
|
90
|
+
header: NODES_COLUMNS_TITLES.LoadAverage,
|
105
91
|
sortAccessor: ({ LoadAveragePercents = [] }) => LoadAveragePercents[0],
|
106
92
|
defaultOrder: DataTable.DESCENDING,
|
107
93
|
render: ({ row }) => (_jsx(ProgressViewer, { value: row.LoadAveragePercents && row.LoadAveragePercents.length > 0
|
@@ -114,6 +100,7 @@ const loadAverageColumn = {
|
|
114
100
|
};
|
115
101
|
const getTabletsColumn = (tabletsPath) => ({
|
116
102
|
name: NODES_COLUMNS_IDS.Tablets,
|
103
|
+
header: NODES_COLUMNS_TITLES.Tablets,
|
117
104
|
width: 500,
|
118
105
|
resizeMinWidth: 500,
|
119
106
|
render: ({ row }) => {
|
@@ -124,7 +111,7 @@ const getTabletsColumn = (tabletsPath) => ({
|
|
124
111
|
});
|
125
112
|
const topNodesLoadAverageColumn = {
|
126
113
|
name: NODES_COLUMNS_IDS.TopNodesLoadAverage,
|
127
|
-
header:
|
114
|
+
header: NODES_COLUMNS_TITLES.TopNodesLoadAverage,
|
128
115
|
render: ({ row }) => row.LoadAveragePercents && row.LoadAveragePercents.length > 0 ? (_jsx(UsageLabel, { value: row.LoadAveragePercents[0].toFixed(), theme: getLoadSeverityForNode(row.LoadAveragePercents[0]) })) : ('—'),
|
129
116
|
align: DataTable.LEFT,
|
130
117
|
width: 80,
|
@@ -133,7 +120,7 @@ const topNodesLoadAverageColumn = {
|
|
133
120
|
};
|
134
121
|
const topNodesMemoryColumn = {
|
135
122
|
name: NODES_COLUMNS_IDS.TopNodesMemory,
|
136
|
-
header:
|
123
|
+
header: NODES_COLUMNS_TITLES.TopNodesMemory,
|
137
124
|
render: ({ row }) => (_jsx(ProgressViewer, { value: row.MemoryUsed, capacity: row.MemoryLimit, formatValues: formatStorageValuesToGb, colorizeProgress: true })),
|
138
125
|
align: DataTable.LEFT,
|
139
126
|
width: 140,
|
@@ -142,7 +129,7 @@ const topNodesMemoryColumn = {
|
|
142
129
|
};
|
143
130
|
const sharedCacheUsageColumn = {
|
144
131
|
name: NODES_COLUMNS_IDS.SharedCacheUsage,
|
145
|
-
header:
|
132
|
+
header: NODES_COLUMNS_TITLES.SharedCacheUsage,
|
146
133
|
render: ({ row }) => (_jsx(ProgressViewer, { value: row.SharedCacheUsed, capacity: row.SharedCacheLimit, formatValues: formatStorageValuesToGb, colorizeProgress: true })),
|
147
134
|
align: DataTable.LEFT,
|
148
135
|
width: 140,
|
@@ -151,14 +138,14 @@ const sharedCacheUsageColumn = {
|
|
151
138
|
};
|
152
139
|
const sessionsColumn = {
|
153
140
|
name: NODES_COLUMNS_IDS.TotalSessions,
|
154
|
-
header:
|
141
|
+
header: NODES_COLUMNS_TITLES.TotalSessions,
|
155
142
|
render: ({ row }) => { var _a; return (_a = row.TotalSessions) !== null && _a !== void 0 ? _a : '—'; },
|
156
143
|
align: DataTable.RIGHT,
|
157
144
|
width: 100,
|
158
145
|
sortable: false,
|
159
146
|
};
|
160
147
|
export function getNodesColumns({ database, getNodeRef }) {
|
161
|
-
|
148
|
+
const columns = [
|
162
149
|
nodeIdColumn,
|
163
150
|
getHostColumn(getNodeRef, database),
|
164
151
|
dataCenterColumn,
|
@@ -170,6 +157,9 @@ export function getNodesColumns({ database, getNodeRef }) {
|
|
170
157
|
loadAverageColumn,
|
171
158
|
getTabletsColumn(database),
|
172
159
|
];
|
160
|
+
return columns.map((column) => {
|
161
|
+
return { ...column, sortable: isSortableNodesProperty(column.name) };
|
162
|
+
});
|
173
163
|
}
|
174
164
|
export function getTopNodesByLoadColumns(getNodeRef) {
|
175
165
|
return [
|
@@ -194,4 +184,4 @@ export function getTopNodesByMemoryColumns({ database, getNodeRef, }) {
|
|
194
184
|
getTabletsColumn(database),
|
195
185
|
];
|
196
186
|
}
|
197
|
-
//# sourceMappingURL=
|
187
|
+
//# sourceMappingURL=columns.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"columns.js","sourceRoot":"","sources":["../../../../src/containers/Nodes/columns/columns.tsx"],"names":[],"mappings":";AAAA,OAAO,SAAS,MAAM,8BAA8B,CAAC;AAGrD,OAAO,EAAC,eAAe,EAAC,MAAM,qDAAqD,CAAC;AACpF,OAAO,EAAC,eAAe,EAAC,MAAM,qDAAqD,CAAC;AACpF,OAAO,EAAC,UAAU,EAAC,MAAM,2CAA2C,CAAC;AACrE,OAA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B;QACzB,YAAY;QACZ,+BAA+B,CAAC,UAAU,CAAC;QAC3C,aAAa;KAChB,CAAC;AACN,CAAC;AAED,MAAM,UAAU,uBAAuB,CACnC,UAA2B;IAE3B,OAAO,CAAC,SAAS,EAAE,YAAY,EAAE,+BAA+B,CAAC,UAAU,CAAC,CAAC,CAAC;AAClF,CAAC;AAED,MAAM,UAAU,0BAA0B,CAAC,EACvC,QAAQ,EACR,UAAU,GACS;IACnB,OAAO;QACH,YAAY;QACZ,aAAa,CAAC,UAAU,EAAE,QAAQ,CAAC;QACnC,YAAY;QACZ,yBAAyB;QACzB,oBAAoB;QACpB,sBAAsB;QACtB,cAAc;QACd,gBAAgB,CAAC,QAAQ,CAAC;KAC7B,CAAC;AACN,CAAC"}
|
@@ -0,0 +1,39 @@
|
|
1
|
+
import type { ValueOf } from '../../../types/common';
|
2
|
+
export declare const NODES_COLUMNS_WIDTH_LS_KEY = "nodesTableColumnsWidth";
|
3
|
+
export declare const NODES_TABLE_SELECTED_COLUMNS_LS_KEY = "nodesTableSelectedColumns";
|
4
|
+
export declare const NODES_COLUMNS_IDS: {
|
5
|
+
readonly NodeId: "NodeId";
|
6
|
+
readonly Host: "Host";
|
7
|
+
readonly DC: "DC";
|
8
|
+
readonly Rack: "Rack";
|
9
|
+
readonly Version: "Version";
|
10
|
+
readonly Uptime: "Uptime";
|
11
|
+
readonly Memory: "Memory";
|
12
|
+
readonly CPU: "CPU";
|
13
|
+
readonly LoadAverage: "LoadAverage";
|
14
|
+
readonly Tablets: "Tablets";
|
15
|
+
readonly TopNodesLoadAverage: "TopNodesLoadAverage";
|
16
|
+
readonly TopNodesMemory: "TopNodesMemory";
|
17
|
+
readonly SharedCacheUsage: "SharedCacheUsage";
|
18
|
+
readonly TotalSessions: "TotalSessions";
|
19
|
+
};
|
20
|
+
type NodesColumnId = ValueOf<typeof NODES_COLUMNS_IDS>;
|
21
|
+
export declare const DEFAULT_NODES_COLUMNS: NodesColumnId[];
|
22
|
+
export declare const REQUIRED_NODES_COLUMNS: NodesColumnId[];
|
23
|
+
export declare const NODES_COLUMNS_TITLES: {
|
24
|
+
readonly NodeId: string;
|
25
|
+
readonly Host: string;
|
26
|
+
readonly DC: string;
|
27
|
+
readonly Rack: string;
|
28
|
+
readonly Version: string;
|
29
|
+
readonly Uptime: string;
|
30
|
+
readonly Memory: string;
|
31
|
+
readonly CPU: string;
|
32
|
+
readonly LoadAverage: string;
|
33
|
+
readonly Tablets: string;
|
34
|
+
readonly TopNodesLoadAverage: string;
|
35
|
+
readonly TopNodesMemory: string;
|
36
|
+
readonly SharedCacheUsage: string;
|
37
|
+
readonly TotalSessions: string;
|
38
|
+
};
|
39
|
+
export {};
|
@@ -0,0 +1,79 @@
|
|
1
|
+
import i18n from './i18n';
|
2
|
+
export const NODES_COLUMNS_WIDTH_LS_KEY = 'nodesTableColumnsWidth';
|
3
|
+
export const NODES_TABLE_SELECTED_COLUMNS_LS_KEY = 'nodesTableSelectedColumns';
|
4
|
+
export const NODES_COLUMNS_IDS = {
|
5
|
+
NodeId: 'NodeId',
|
6
|
+
Host: 'Host',
|
7
|
+
DC: 'DC',
|
8
|
+
Rack: 'Rack',
|
9
|
+
Version: 'Version',
|
10
|
+
Uptime: 'Uptime',
|
11
|
+
Memory: 'Memory',
|
12
|
+
CPU: 'CPU',
|
13
|
+
LoadAverage: 'LoadAverage',
|
14
|
+
Tablets: 'Tablets',
|
15
|
+
TopNodesLoadAverage: 'TopNodesLoadAverage',
|
16
|
+
TopNodesMemory: 'TopNodesMemory',
|
17
|
+
SharedCacheUsage: 'SharedCacheUsage',
|
18
|
+
TotalSessions: 'TotalSessions',
|
19
|
+
};
|
20
|
+
export const DEFAULT_NODES_COLUMNS = [
|
21
|
+
'NodeId',
|
22
|
+
'Host',
|
23
|
+
'DC',
|
24
|
+
'Rack',
|
25
|
+
'Version',
|
26
|
+
'Uptime',
|
27
|
+
'Memory',
|
28
|
+
'CPU',
|
29
|
+
'LoadAverage',
|
30
|
+
'Tablets',
|
31
|
+
];
|
32
|
+
export const REQUIRED_NODES_COLUMNS = ['NodeId'];
|
33
|
+
// This code is running when module is initialized and correct language may not be set yet
|
34
|
+
// get functions guarantee that i18n fields will be inited on render with current render language
|
35
|
+
export const NODES_COLUMNS_TITLES = {
|
36
|
+
get NodeId() {
|
37
|
+
return i18n('node-id');
|
38
|
+
},
|
39
|
+
get Host() {
|
40
|
+
return i18n('host');
|
41
|
+
},
|
42
|
+
get DC() {
|
43
|
+
return i18n('dc');
|
44
|
+
},
|
45
|
+
get Rack() {
|
46
|
+
return i18n('rack');
|
47
|
+
},
|
48
|
+
get Version() {
|
49
|
+
return i18n('version');
|
50
|
+
},
|
51
|
+
get Uptime() {
|
52
|
+
return i18n('uptime');
|
53
|
+
},
|
54
|
+
get Memory() {
|
55
|
+
return i18n('memory');
|
56
|
+
},
|
57
|
+
get CPU() {
|
58
|
+
return i18n('cpu');
|
59
|
+
},
|
60
|
+
get LoadAverage() {
|
61
|
+
return i18n('load-average');
|
62
|
+
},
|
63
|
+
get Tablets() {
|
64
|
+
return i18n('tablets');
|
65
|
+
},
|
66
|
+
get TopNodesLoadAverage() {
|
67
|
+
return i18n('load');
|
68
|
+
},
|
69
|
+
get TopNodesMemory() {
|
70
|
+
return i18n('process');
|
71
|
+
},
|
72
|
+
get SharedCacheUsage() {
|
73
|
+
return i18n('caches');
|
74
|
+
},
|
75
|
+
get TotalSessions() {
|
76
|
+
return i18n('sessions');
|
77
|
+
},
|
78
|
+
};
|
79
|
+
//# sourceMappingURL=constants.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../src/containers/Nodes/columns/constants.ts"],"names":[],"mappings":"AAEA,OAAO,IAAI,MAAM,QAAQ,CAAC;AAE1B,MAAM,CAAC,MAAM,0BAA0B,GAAG,wBAAwB,CAAC;AACnE,MAAM,CAAC,MAAM,mCAAmC,GAAG,2BAA2B,CAAC;AAE/E,MAAM,CAAC,MAAM,iBAAi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ACvB,CAAC;IACD,IAAI,WAAW;QACX,OAAO,IAAI,CAAC,cAAc,CAAC,CAAC;IAChC,CAAC;IACD,IAAI,OAAO;QACP,OAAO,IAAI,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IACD,IAAI,mBAAmB;QACnB,OAAO,IAAI,CAAC,MAAM,CAAC,CAAC;IACxB,CAAC;IACD,IAAI,cAAc;QACd,OAAO,IAAI,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IACD,IAAI,gBAAgB;QAChB,OAAO,IAAI,CAAC,QAAQ,CAAC,CAAC;IAC1B,CAAC;IACD,IAAI,aAAa;QACb,OAAO,IAAI,CAAC,UAAU,CAAC,CAAC;IAC5B,CAAC;CAC6C,CAAC"}
|
@@ -0,0 +1,6 @@
|
|
1
|
+
import type { GetNodesColumnsProps } from './types';
|
2
|
+
export declare function useNodesSelectedColumns(params: GetNodesColumnsProps): {
|
3
|
+
columnsToShow: import("./types").NodesColumn[];
|
4
|
+
columnsToSelect: import("@gravity-ui/uikit").TableColumnSetupItem[];
|
5
|
+
setColumns: (updated: import("@gravity-ui/uikit").TableColumnSetupItem[]) => void;
|
6
|
+
};
|
@@ -0,0 +1,11 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
import { useSelectedColumns } from '../../../utils/hooks/useSelectedColumns';
|
3
|
+
import { getNodesColumns } from './columns';
|
4
|
+
import { DEFAULT_NODES_COLUMNS, NODES_COLUMNS_TITLES, NODES_TABLE_SELECTED_COLUMNS_LS_KEY, REQUIRED_NODES_COLUMNS, } from './constants';
|
5
|
+
export function useNodesSelectedColumns(params) {
|
6
|
+
const columns = React.useMemo(() => {
|
7
|
+
return getNodesColumns(params);
|
8
|
+
}, [params]);
|
9
|
+
return useSelectedColumns(columns, NODES_TABLE_SELECTED_COLUMNS_LS_KEY, NODES_COLUMNS_TITLES, DEFAULT_NODES_COLUMNS, REQUIRED_NODES_COLUMNS);
|
10
|
+
}
|
11
|
+
//# sourceMappingURL=hooks.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"hooks.js","sourceRoot":"","sources":["../../../../src/containers/Nodes/columns/hooks.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAC,kBAAkB,EAAC,MAAM,yCAAyC,CAAC;AAE3E,OAAO,EAAC,eAAe,EAAC,MAAM,WAAW,CAAC;AAC1C,OAAO,EACH,qBAAqB,EACrB,oBAAoB,EACpB,mCAAmC,EACnC,sBAAsB,GACzB,MAAM,aAAa,CAAC;AAGrB,MAAM,UAAU,uBAAuB,CAAC,MAA4B;IAChE,MAAM,OAAO,GAAG,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE;QAC/B,OAAO,eAAe,CAAC,MAAM,CAAC,CAAC;IACnC,CAAC,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC;IAEb,OAAO,kBAAkB,CACrB,OAAO,EACP,mCAAmC,EACnC,oBAAoB,EACpB,qBAAqB,EACrB,sBAAsB,CACzB,CAAC;AACN,CAAC"}
|
@@ -0,0 +1,16 @@
|
|
1
|
+
{
|
2
|
+
"node-id": "Node Id",
|
3
|
+
"host": "Host",
|
4
|
+
"dc": "DC",
|
5
|
+
"rack": "Rack",
|
6
|
+
"version": "Version",
|
7
|
+
"uptime": "Uptime",
|
8
|
+
"memory": "Memory",
|
9
|
+
"cpu": "CPU",
|
10
|
+
"tablets": "Tablets",
|
11
|
+
"load-average": "Load Average",
|
12
|
+
"load": "Load",
|
13
|
+
"process": "Process",
|
14
|
+
"caches": "Caches",
|
15
|
+
"sessions": "Sessions"
|
16
|
+
}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/containers/Nodes/columns/i18n/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,eAAe,EAAC,MAAM,wBAAwB,CAAC;AAEvD,OAAO,EAAE,MAAM,WAAW,CAAC;AAE3B,MAAM,SAAS,GAAG,mBAAmB,CAAC;AAEtC,eAAe,eAAe,CAAC,SAAS,EAAE,EAAC,EAAE,EAAC,CAAC,CAAC"}
|
@@ -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;
|
@@ -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,CA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AAW,EAAE,EACb,UAAU,EAAE,EACZ,UAAU,EAAE,EACZ,iBAAiB,EAAE,IAClB,CACT,CAAC;AACN,CAAC"}
|
@@ -3,13 +3,10 @@
|
|
3
3
|
.ydb-pdisk-page {
|
4
4
|
position: relative;
|
5
5
|
|
6
|
-
display: flex;
|
7
6
|
overflow: auto;
|
8
|
-
flex-direction: column;
|
9
|
-
gap: 20px;
|
10
7
|
|
11
8
|
height: 100%;
|
12
|
-
padding: 20px;
|
9
|
+
padding: 0 20px;
|
13
10
|
|
14
11
|
&__meta,
|
15
12
|
&__title,
|
@@ -18,6 +15,20 @@
|
|
18
15
|
&__tabs {
|
19
16
|
position: sticky;
|
20
17
|
left: 0;
|
18
|
+
|
19
|
+
margin-bottom: 20px;
|
20
|
+
}
|
21
|
+
|
22
|
+
&__meta {
|
23
|
+
margin-top: 20px;
|
24
|
+
}
|
25
|
+
|
26
|
+
&__tabs {
|
27
|
+
margin-bottom: 0;
|
28
|
+
}
|
29
|
+
|
30
|
+
&__disk-distribution {
|
31
|
+
padding: 20px 0;
|
21
32
|
}
|
22
33
|
|
23
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;
|