ydb-embedded-ui 6.21.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 +1 -3
- package/dist/components/PDiskInfo/PDiskInfo.js.map +1 -1
- 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/i18n/index.d.ts +1 -1
- 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/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/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 +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/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} +33 -81
- 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.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/DiagnosticsPages.d.ts +6 -0
- package/dist/containers/Tenant/Diagnostics/DiagnosticsPages.js +2 -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/services/api.d.ts +16 -5
- package/dist/services/api.js +50 -11
- 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/executeQuery.js +3 -0
- package/dist/store/reducers/executeQuery.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 +2 -24
- 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/tooltip.d.ts +1 -1
- package/dist/styles/mixins.scss +3 -3
- package/dist/types/api/common.d.ts +1 -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 +1 @@
|
|
1
|
-
{"version":3,"file":"NodePages.js","sourceRoot":"","sources":["../../../src/containers/Node/NodePages.ts"],"names":[],"mappings":"AACA,OAAO,MAAM,EAAE,EAAC,UAAU,EAAC,MAAM,cAAc,CAAC;AAEhD,MAAM,CAAC,MAAM,OAAO,GAAG,SAAS,CAAC;AACjC,MAAM,CAAC,MAAM,OAAO,GAAG,SAAS,CAAC;AACjC,MAAM,CAAC,MAAM,QAAQ,GAAG,UAAU,CAAC;AACnC,MAAM,CAAC,MAAM,SAAS,GAAG,WAAW,CAAC;AAIrC,MAAM,CAAC,MAAM,UAAU,GAAG;IACtB;QACI,EAAE,EAAE,QAAQ;QACZ,IAAI,EAAE,UAAU;KACnB;IACD;QACI,EAAE,EAAE,OAAO;QACX,IAAI,EAAE,SAAS;KAClB;IACD,
|
1
|
+
{"version":3,"file":"NodePages.js","sourceRoot":"","sources":["../../../src/containers/Node/NodePages.ts"],"names":[],"mappings":"AACA,OAAO,MAAM,EAAE,EAAC,UAAU,EAAC,MAAM,cAAc,CAAC;AAEhD,MAAM,CAAC,MAAM,OAAO,GAAG,SAAS,CAAC;AACjC,MAAM,CAAC,MAAM,OAAO,GAAG,SAAS,CAAC;AACjC,MAAM,CAAC,MAAM,QAAQ,GAAG,UAAU,CAAC;AACnC,MAAM,CAAC,MAAM,SAAS,GAAG,WAAW,CAAC;AAIrC,MAAM,CAAC,MAAM,UAAU,GAAG;IACtB;QACI,EAAE,EAAE,QAAQ;QACZ,IAAI,EAAE,UAAU;KACnB;IACD;QACI,EAAE,EAAE,OAAO;QACX,IAAI,EAAE,SAAS;KAClB;IACD;QACI,EAAE,EAAE,SAAS;QACb,IAAI,EAAE,WAAW;KACpB;IACD;QACI,EAAE,EAAE,OAAO;QACX,IAAI,EAAE,SAAS;KAClB;CACJ,CAAC;AAEF,MAAM,UAAU,kBAAkB,CAC9B,MAAuB,EACvB,QAAe,EAAE,EACjB,YAAqB,QAAQ;IAE7B,OAAO,UAAU,CACb,MAAM,CAAC,IAAI,EACX;QACI,EAAE,EAAE,MAAM;QACV,SAAS;KACZ,EACD,KAAK,CACR,CAAC;AACN,CAAC"}
|
@@ -1,6 +1,7 @@
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
2
2
|
import React from 'react';
|
3
3
|
import { ASCENDING } from '@gravity-ui/react-data-table/build/esm/lib/constants';
|
4
|
+
import { TableColumnSetup } from '@gravity-ui/uikit';
|
4
5
|
import { StringParam, useQueryParams } from 'use-query-params';
|
5
6
|
import { EntitiesCount } from '../../components/EntitiesCount';
|
6
7
|
import { AccessDenied } from '../../components/Errors/403';
|
@@ -18,8 +19,9 @@ import { ProblemFilterValues, changeFilter, selectProblemFilter, } from '../../s
|
|
18
19
|
import { cn } from '../../utils/cn';
|
19
20
|
import { DEFAULT_TABLE_SETTINGS } from '../../utils/constants';
|
20
21
|
import { useAutoRefreshInterval, useTableSort, useTypedDispatch, useTypedSelector, } from '../../utils/hooks';
|
21
|
-
import { NodesUptimeFilterValues,
|
22
|
-
import { NODES_COLUMNS_WIDTH_LS_KEY
|
22
|
+
import { NodesUptimeFilterValues, isUnavailableNode, nodesUptimeFilterValuesSchema, } from '../../utils/nodes';
|
23
|
+
import { NODES_COLUMNS_WIDTH_LS_KEY } from './columns/constants';
|
24
|
+
import { useNodesSelectedColumns } from './columns/hooks';
|
23
25
|
import i18n from './i18n';
|
24
26
|
import './Nodes.scss';
|
25
27
|
const b = cn('ydb-nodes');
|
@@ -34,6 +36,10 @@ export const Nodes = ({ path, database, additionalNodesProps = {} }) => {
|
|
34
36
|
const dispatch = useTypedDispatch();
|
35
37
|
const problemFilter = useTypedSelector(selectProblemFilter);
|
36
38
|
const [autoRefreshInterval] = useAutoRefreshInterval();
|
39
|
+
const { columnsToShow, columnsToSelect, setColumns } = useNodesSelectedColumns({
|
40
|
+
getNodeRef: additionalNodesProps.getNodeRef,
|
41
|
+
database,
|
42
|
+
});
|
37
43
|
const { currentData: data, isLoading, error, } = nodesApi.useGetNodesQuery({ path, database }, { pollingInterval: autoRefreshInterval });
|
38
44
|
const [sortValue, setSortValue] = React.useState({
|
39
45
|
sortValue: 'NodeId',
|
@@ -56,23 +62,16 @@ export const Nodes = ({ path, database, additionalNodesProps = {} }) => {
|
|
56
62
|
}, [data, searchValue, uptimeFilter, problemFilter]);
|
57
63
|
const totalNodes = (data === null || data === void 0 ? void 0 : data.TotalNodes) || 0;
|
58
64
|
const renderControls = () => {
|
59
|
-
return (_jsxs(React.Fragment, { children: [_jsx(Search, { onChange: handleSearchQueryChange, placeholder: "Host name", className: b('search'), value: searchValue }), _jsx(ProblemFilter, { value: problemFilter, onChange: handleProblemFilterChange }), _jsx(UptimeFilter, { value: uptimeFilter, onChange: handleUptimeFilterChange }), _jsx(EntitiesCount, { total: totalNodes, current: nodes.length, label: 'Nodes', loading: isLoading })] }));
|
65
|
+
return (_jsxs(React.Fragment, { children: [_jsx(Search, { onChange: handleSearchQueryChange, placeholder: "Host name", className: b('search'), value: searchValue }), _jsx(ProblemFilter, { value: problemFilter, onChange: handleProblemFilterChange }), _jsx(UptimeFilter, { value: uptimeFilter, onChange: handleUptimeFilterChange }), _jsx(EntitiesCount, { total: totalNodes, current: nodes.length, label: 'Nodes', loading: isLoading }), _jsx(TableColumnSetup, { popupWidth: 200, items: columnsToSelect, showStatus: true, onUpdate: setColumns, sortable: false })] }));
|
60
66
|
};
|
61
67
|
const renderTable = () => {
|
62
|
-
const rawColumns = getNodesColumns({
|
63
|
-
getNodeRef: additionalNodesProps.getNodeRef,
|
64
|
-
database,
|
65
|
-
});
|
66
|
-
const columns = rawColumns.map((column) => {
|
67
|
-
return { ...column, sortable: isSortableNodesProperty(column.name) };
|
68
|
-
});
|
69
68
|
if (nodes.length === 0) {
|
70
69
|
if (problemFilter !== ProblemFilterValues.ALL ||
|
71
70
|
uptimeFilter !== NodesUptimeFilterValues.All) {
|
72
71
|
return _jsx(Illustration, { name: "thumbsUp", width: "200" });
|
73
72
|
}
|
74
73
|
}
|
75
|
-
return (_jsx(ResizeableDataTable, { columnsWidthLSKey: NODES_COLUMNS_WIDTH_LS_KEY, data: nodes || [], columns:
|
74
|
+
return (_jsx(ResizeableDataTable, { columnsWidthLSKey: NODES_COLUMNS_WIDTH_LS_KEY, data: nodes || [], columns: columnsToShow, settings: DEFAULT_TABLE_SETTINGS, sortOrder: sort, onSort: handleSort, emptyDataMessage: i18n('empty.default'), rowClassName: (row) => b('node', { unavailable: isUnavailableNode(row) }) }));
|
76
75
|
};
|
77
76
|
if (isAccessError(error)) {
|
78
77
|
return _jsx(AccessDenied, {});
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Nodes.js","sourceRoot":"","sources":["../../../src/containers/Nodes/Nodes.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAC,SAAS,EAAC,MAAM,sDAAsD,CAAC;AAC/E,OAAO,EAAC,WAAW,EAAE,cAAc,EAAC,MAAM,kBAAkB,CAAC;AAE7D,OAAO,EAAC,aAAa,EAAC,MAAM,gCAAgC,CAAC;AAC7D,OAAO,EAAC,YAAY,EAAC,MAAM,6BAA6B,CAAC;AACzD,OAAO,EAAC,aAAa,EAAC,MAAM,6CAA6C,CAAC;AAC1E,OAAO,EAAC,aAAa,EAAC,MAAM,uCAAuC,CAAC;AACpE,OAAO,EAAC,YAAY,EAAC,MAAM,+BAA+B,CAAC;AAC3D,OAAO,EAAC,aAAa,EAAC,MAAM,gCAAgC,CAAC;AAC7D,OAAO,EAAC,mBAAmB,EAAC,MAAM,0DAA0D,CAAC;AAC7F,OAAO,EAAC,MAAM,EAA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AAK,EAAC,KAAK,GAAG,CAAC;YACxD,CAAC;QACL,CAAC;QAED,OAAO,CACH,KAAC,mBAAmB,IAChB,iBAAiB,EAAE,0BAA0B,EAC7C,IAAI,EAAE,KAAK,IAAI,EAAE,EACjB,OAAO,EAAE,aAAa,EACtB,QAAQ,EAAE,sBAAsB,EAChC,SAAS,EAAE,IAAI,EACf,MAAM,EAAE,UAAU,EAClB,gBAAgB,EAAE,IAAI,CAAC,eAAe,CAAC,EACvC,YAAY,EAAE,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC,CAAC,MAAM,EAAE,EAAC,WAAW,EAAE,iBAAiB,CAAC,GAAG,CAAC,EAAC,CAAC,GACzE,CACL,CAAC;IACN,CAAC,CAAC;IAEF,IAAI,aAAa,CAAC,KAAK,CAAC,EAAE,CAAC;QACvB,OAAO,KAAC,YAAY,KAAG,CAAC;IAC5B,CAAC;IAED,OAAO,CACH,MAAC,uBAAuB,eACpB,KAAC,uBAAuB,CAAC,QAAQ,cAAE,cAAc,EAAE,GAAoC,EACtF,KAAK,CAAC,CAAC,CAAC,KAAC,aAAa,IAAC,KAAK,EAAE,KAAK,GAAI,CAAC,CAAC,CAAC,IAAI,EAC/C,KAAC,uBAAuB,CAAC,KAAK,IAAC,OAAO,EAAE,SAAS,YAC5C,IAAI,CAAC,CAAC,CAAC,WAAW,EAAE,CAAC,CAAC,CAAC,IAAI,GACA,IACV,CAC7B,CAAC;AACN,CAAC,CAAC"}
|
@@ -1,5 +1,6 @@
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
2
2
|
import React from 'react';
|
3
|
+
import { TableColumnSetup } from '@gravity-ui/uikit';
|
3
4
|
import { StringParam, useQueryParams } from 'use-query-params';
|
4
5
|
import { EntitiesCount } from '../../components/EntitiesCount';
|
5
6
|
import { AccessDenied } from '../../components/Errors/403';
|
@@ -12,9 +13,10 @@ import { UptimeFilter } from '../../components/UptimeFIlter';
|
|
12
13
|
import { ProblemFilterValues, changeFilter, selectProblemFilter, } from '../../store/reducers/settings/settings';
|
13
14
|
import { cn } from '../../utils/cn';
|
14
15
|
import { useTypedDispatch, useTypedSelector } from '../../utils/hooks';
|
15
|
-
import { NodesUptimeFilterValues,
|
16
|
+
import { NodesUptimeFilterValues, isUnavailableNode, nodesUptimeFilterValuesSchema, } from '../../utils/nodes';
|
17
|
+
import { NODES_COLUMNS_WIDTH_LS_KEY } from './columns/constants';
|
18
|
+
import { useNodesSelectedColumns } from './columns/hooks';
|
16
19
|
import { getNodes } from './getNodes';
|
17
|
-
import { NODES_COLUMNS_WIDTH_LS_KEY, getNodesColumns } from './getNodesColumns';
|
18
20
|
import i18n from './i18n';
|
19
21
|
import './Nodes.scss';
|
20
22
|
const b = cn('ydb-nodes');
|
@@ -31,6 +33,10 @@ export const PaginatedNodes = ({ path, database, parentContainer, additionalNode
|
|
31
33
|
const tableFilters = React.useMemo(() => {
|
32
34
|
return { path, database, searchValue, problemFilter, uptimeFilter };
|
33
35
|
}, [path, database, searchValue, problemFilter, uptimeFilter]);
|
36
|
+
const { columnsToShow, columnsToSelect, setColumns } = useNodesSelectedColumns({
|
37
|
+
getNodeRef: additionalNodesProps === null || additionalNodesProps === void 0 ? void 0 : additionalNodesProps.getNodeRef,
|
38
|
+
database,
|
39
|
+
});
|
34
40
|
const getRowClassName = (row) => {
|
35
41
|
return b('node', { unavailable: isUnavailableNode(row) });
|
36
42
|
};
|
@@ -44,7 +50,7 @@ export const PaginatedNodes = ({ path, database, parentContainer, additionalNode
|
|
44
50
|
const handleUptimeFilterChange = (value) => {
|
45
51
|
setQueryParams({ uptimeFilter: value }, 'replaceIn');
|
46
52
|
};
|
47
|
-
return (_jsxs(React.Fragment, { children: [_jsx(Search, { onChange: handleSearchQueryChange, placeholder: "Host name", className: b('search'), value: searchValue }), _jsx(ProblemFilter, { value: problemFilter, onChange: handleProblemFilterChange }), _jsx(UptimeFilter, { value: uptimeFilter, onChange: handleUptimeFilterChange }), _jsx(EntitiesCount, { total: totalEntities, current: foundEntities, label: 'Nodes', loading: !inited })] }));
|
53
|
+
return (_jsxs(React.Fragment, { children: [_jsx(Search, { onChange: handleSearchQueryChange, placeholder: "Host name", className: b('search'), value: searchValue }), _jsx(ProblemFilter, { value: problemFilter, onChange: handleProblemFilterChange }), _jsx(UptimeFilter, { value: uptimeFilter, onChange: handleUptimeFilterChange }), _jsx(EntitiesCount, { total: totalEntities, current: foundEntities, label: 'Nodes', loading: !inited }), _jsx(TableColumnSetup, { popupWidth: 200, items: columnsToSelect, showStatus: true, onUpdate: setColumns, sortable: false })] }));
|
48
54
|
};
|
49
55
|
const renderEmptyDataMessage = () => {
|
50
56
|
if (problemFilter !== ProblemFilterValues.ALL ||
|
@@ -59,13 +65,6 @@ export const PaginatedNodes = ({ path, database, parentContainer, additionalNode
|
|
59
65
|
}
|
60
66
|
return _jsx(ResponseError, { error: error });
|
61
67
|
};
|
62
|
-
|
63
|
-
getNodeRef: additionalNodesProps === null || additionalNodesProps === void 0 ? void 0 : additionalNodesProps.getNodeRef,
|
64
|
-
database,
|
65
|
-
});
|
66
|
-
const columns = rawColumns.map((column) => {
|
67
|
-
return { ...column, sortable: isSortableNodesProperty(column.name) };
|
68
|
-
});
|
69
|
-
return (_jsx(ResizeablePaginatedTable, { columnsWidthLSKey: NODES_COLUMNS_WIDTH_LS_KEY, parentContainer: parentContainer, columns: columns, fetchData: getNodes, limit: 50, renderControls: renderControls, renderErrorMessage: renderErrorMessage, renderEmptyDataMessage: renderEmptyDataMessage, getRowClassName: getRowClassName, filters: tableFilters, tableName: "nodes" }));
|
68
|
+
return (_jsx(ResizeablePaginatedTable, { columnsWidthLSKey: NODES_COLUMNS_WIDTH_LS_KEY, parentContainer: parentContainer, columns: columnsToShow, fetchData: getNodes, limit: 50, renderControls: renderControls, renderErrorMessage: renderErrorMessage, renderEmptyDataMessage: renderEmptyDataMessage, getRowClassName: getRowClassName, filters: tableFilters, tableName: "nodes" }));
|
70
69
|
};
|
71
70
|
//# sourceMappingURL=PaginatedNodes.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"PaginatedNodes.js","sourceRoot":"","sources":["../../../src/containers/Nodes/PaginatedNodes.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAC,WAAW,EAAE,cAAc,EAAC,MAAM,kBAAkB,CAAC;AAE7D,OAAO,EAAC,aAAa,EAAC,MAAM,gCAAgC,CAAC;AAC7D,OAAO,EAAC,YAAY,EAAC,MAAM,6BAA6B,CAAC;AACzD,OAAO,EAAC,aAAa,EAAC,MAAM,uCAAuC,CAAC;AACpE,OAAO,EAAC,YAAY,EAAC,MAAM,+BAA+B,CAAC;AAC3D,OAAO,EAAC,wBAAwB,EAAC,MAAM,iCAAiC,CAAC;AAMzE,OAAO,EAAC,aAAa,EAAC,MAAM,gCAAgC,CAAC;AAC7D,OAAO,EAAC,MAAM,EAAC,MAAM,yBAAyB,CAAC;AAC/C,OAAO,EAAC,YAAY,EAAC,MAAM,+BAA+B,CAAC;AAE3D,OAAO,EACH,mBAAmB,EACnB,YAAY,EACZ,mBAAmB,GACtB,MAAM,wCAAwC,CAAC;AAGhD,OAAO,EAAC,EAAE,EAAC,MAAM,gBAAgB,CAAC;AAClC,OAAO,EAAC,gBAAgB,EAAE,gBAAgB,EAAC,MAAM,mBAAmB,CAAC;AACrE,OAAO,EACH,uBAAuB,EACvB,
|
1
|
+
{"version":3,"file":"PaginatedNodes.js","sourceRoot":"","sources":["../../../src/containers/Nodes/PaginatedNodes.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAC,gBAAgB,EAAC,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAC,WAAW,EAAE,cAAc,EAAC,MAAM,kBAAkB,CAAC;AAE7D,OAAO,EAAC,aAAa,EAAC,MAAM,gCAAgC,CAAC;AAC7D,OAAO,EAAC,YAAY,EAAC,MAAM,6BAA6B,CA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0B,EAC7C,eAAe,EAAE,eAAe,EAChC,OAAO,EAAE,aAAa,EACtB,SAAS,EAAE,QAAQ,EACnB,KAAK,EAAE,EAAE,EACT,cAAc,EAAE,cAAc,EAC9B,kBAAkB,EAAE,kBAAkB,EACtC,sBAAsB,EAAE,sBAAsB,EAC9C,eAAe,EAAE,eAAe,EAChC,OAAO,EAAE,YAAY,EACrB,SAAS,EAAC,OAAO,GACnB,CACL,CAAC;AACN,CAAC,CAAC"}
|
@@ -1,15 +1,8 @@
|
|
1
1
|
import type { Column as DataTableColumn } from '@gravity-ui/react-data-table';
|
2
|
-
import type {
|
3
|
-
import type {
|
4
|
-
import type {
|
5
|
-
export declare const NODES_COLUMNS_WIDTH_LS_KEY = "nodesTableColumnsWidth";
|
6
|
-
interface GetNodesColumnsProps {
|
7
|
-
database?: string;
|
8
|
-
getNodeRef?: GetNodeRefFunc;
|
9
|
-
}
|
10
|
-
type NodesColumn = PaginatedTableColumn<NodesPreparedEntity> & DataTableColumn<NodesPreparedEntity>;
|
2
|
+
import type { NodesPreparedEntity } from '../../../store/reducers/nodes/types';
|
3
|
+
import type { GetNodeRefFunc } from '../../../types/additionalProps';
|
4
|
+
import type { GetNodesColumnsProps, NodesColumn } from './types';
|
11
5
|
export declare function getNodesColumns({ database, getNodeRef }: GetNodesColumnsProps): NodesColumn[];
|
12
6
|
export declare function getTopNodesByLoadColumns(getNodeRef?: GetNodeRefFunc): DataTableColumn<NodesPreparedEntity>[];
|
13
7
|
export declare function getTopNodesByCpuColumns(getNodeRef?: GetNodeRefFunc): DataTableColumn<NodesPreparedEntity>[];
|
14
8
|
export declare function getTopNodesByMemoryColumns({ database, getNodeRef, }: GetNodesColumnsProps): NodesColumn[];
|
15
|
-
export {};
|
@@ -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,OAAO,EAAC,cAAc,EAAC,MAAM,mDAAmD,CAAC;AACjF,OAAO,EAAC,gBAAgB,EAAC,MAAM,sCAAsC,CAAC;AACtE,OAAO,EAAC,UAAU,EAAC,MAAM,2CAA2C,CAAC;AAErE,OAAO,EAAC,sBAAsB,EAAC,MAAM,qCAAqC,CAAC;AAE3E,OAAO,EAAC,sBAAsB,EAAC,MAAM,0BAA0B,CAA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vC,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,iBAAiB,GAAG;IAC7B,MAAM,EAAE,QAAQ;IAChB,IAAI,EAAE,MAAM;IACZ,EAAE,EAAE,IAAI;IACR,IAAI,EAAE,MAAM;IACZ,OAAO,EAAE,SAAS;IAClB,MAAM,EAAE,QAAQ;IAChB,MAAM,EAAE,QAAQ;IAChB,GAAG,EAAE,KAAK;IACV,WAAW,EAAE,aAAa;IAC1B,OAAO,EAAE,SA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AO,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,GAA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