ydb-embedded-ui 5.2.1 → 5.3.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/components/BasicNodeViewer/BasicNodeViewer.js +1 -1
- package/dist/components/ButtonWithConfirmDialog/ButtonWithConfirmDialog.d.ts +13 -0
- package/dist/components/ButtonWithConfirmDialog/ButtonWithConfirmDialog.js +32 -0
- package/dist/components/CellWithPopover/CellWithPopover.js +1 -11
- package/dist/components/ClipboardButton/ClipboardButton.js +1 -11
- package/dist/components/ComponentsProvider/ComponentsProvider.d.ts +2 -2
- package/dist/components/ComponentsProvider/componentsRegistry.d.ts +1 -1
- package/dist/components/ComponentsProvider/registry.d.ts +3 -3
- package/dist/components/ContentWithPopup/ContentWithPopup.js +1 -11
- package/dist/components/CriticalActionDialog/CriticalActionDialog.d.ts +6 -4
- package/dist/components/CriticalActionDialog/CriticalActionDialog.js +32 -7
- package/dist/components/CriticalActionDialog/CriticalActionDialog.scss +8 -19
- package/dist/components/CriticalActionDialog/i18n/en.json +7 -0
- package/dist/components/CriticalActionDialog/i18n/index.d.ts +1 -0
- package/dist/components/CriticalActionDialog/i18n/index.js +4 -0
- package/dist/components/EnableFullscreenButton/EnableFullscreenButton.js +2 -2
- package/dist/components/EntityStatus/EntityStatus.d.ts +20 -37
- package/dist/components/EntityStatus/EntityStatus.js +17 -66
- package/dist/components/EntityStatus/EntityStatus.scss +1 -57
- package/dist/components/Errors/403/AccessDenied.js +1 -11
- package/dist/components/FormattedBytes/FormattedBytes.d.ts +1 -1
- package/dist/components/FormattedBytes/FormattedBytes.js +1 -11
- package/dist/components/FormattedBytes/utils.d.ts +1 -1
- package/dist/components/Fullscreen/Fullscreen.js +11 -11
- package/dist/components/Illustration/Illustration.js +1 -11
- package/dist/components/InfoViewer/InfoViewer.d.ts +2 -2
- package/dist/components/InfoViewer/InfoViewer.js +1 -1
- package/dist/components/InfoViewer/formatters/cdcStream.d.ts +1 -1
- package/dist/components/InfoViewer/formatters/common.d.ts +1 -1
- package/dist/components/InfoViewer/formatters/pqGroup.d.ts +3 -3
- package/dist/components/InfoViewer/formatters/schema.d.ts +1 -1
- package/dist/components/InfoViewer/formatters/table.d.ts +4 -4
- package/dist/components/InfoViewer/utils.d.ts +3 -3
- package/dist/components/InfoViewerSkeleton/InfoViewerSkeleton.d.ts +7 -0
- package/dist/components/InfoViewerSkeleton/InfoViewerSkeleton.js +7 -0
- package/dist/{containers/Cluster/ClusterInfoSkeleton/ClusterInfoSkeleton.scss → components/InfoViewerSkeleton/InfoViewerSkeleton.scss} +1 -9
- package/dist/components/InternalLink/InternalLink.js +1 -11
- package/dist/components/LinkToSchemaObject/LinkToSchemaObject.js +1 -11
- package/dist/components/LinkWithIcon/LinkWithIcon.d.ts +8 -0
- package/dist/components/LinkWithIcon/LinkWithIcon.js +14 -0
- package/dist/components/{ExternalLinkWithIcon/ExternalLinkWithIcon.scss → LinkWithIcon/LinkWithIcon.scss} +1 -1
- package/dist/components/MetricChart/MetricChart.d.ts +2 -1
- package/dist/components/MetricChart/MetricChart.js +8 -3
- package/dist/components/MetricChart/getChartData.d.ts +2 -1
- package/dist/components/MetricChart/getChartData.js +2 -2
- package/dist/components/MetricChart/getDefaultDataFormatter.d.ts +1 -1
- package/dist/components/MetricChart/i18n/en.json +3 -0
- package/dist/components/MetricChart/i18n/index.d.ts +2 -0
- package/dist/components/MetricChart/i18n/index.js +4 -0
- package/dist/components/MetricChart/reducer.d.ts +1 -1
- package/dist/components/MetricChart/types.d.ts +5 -5
- package/dist/components/NodeHostWrapper/NodeHostWrapper.js +1 -1
- package/dist/components/PDiskInfo/PDiskInfo.d.ts +11 -0
- package/dist/components/PDiskInfo/PDiskInfo.js +71 -0
- package/dist/components/PDiskInfo/PDiskInfo.scss +8 -0
- package/dist/components/PDiskInfo/i18n/en.json +14 -0
- package/dist/components/PDiskInfo/i18n/index.d.ts +1 -0
- package/dist/components/PDiskInfo/i18n/index.js +4 -0
- package/dist/components/PageMeta/PageMeta.d.ts +8 -0
- package/dist/components/PageMeta/PageMeta.js +7 -0
- package/dist/components/PageMeta/PageMeta.scss +10 -0
- package/dist/components/ProgressViewer/ProgressViewer.d.ts +1 -1
- package/dist/components/QueryResultTable/Cell/Cell.js +2 -2
- package/dist/components/QueryResultTable/QueryResultTable.js +1 -11
- package/dist/components/ShortyString/ShortyString.d.ts +1 -1
- package/dist/components/StatusIcon/StatusIcon.d.ts +12 -0
- package/dist/components/StatusIcon/StatusIcon.js +23 -0
- package/dist/components/StatusIcon/StatusIcon.scss +69 -0
- package/dist/components/Tablet/Tablet.scss +1 -1
- package/dist/components/TabletsOverall/TabletsOverall.js +6 -6
- package/dist/components/TabletsStatistic/TabletsStatistic.d.ts +1 -1
- package/dist/components/TabletsStatistic/TabletsStatistic.scss +1 -1
- package/dist/components/Tag/Tag.d.ts +1 -1
- package/dist/components/UsageLabel/UsageLabel.js +1 -11
- package/dist/components/VirtualTable/TableHead.js +2 -2
- package/dist/components/VirtualTable/reducer.d.ts +2 -2
- package/dist/components/VirtualTable/types.d.ts +13 -13
- package/dist/components/slots/types.d.ts +1 -1
- package/dist/containers/App/App.d.ts +1 -1
- package/dist/containers/App/Content.js +10 -4
- package/dist/containers/App/Providers.d.ts +1 -1
- package/dist/containers/App/appSlots.d.ts +6 -0
- package/dist/containers/App/appSlots.js +1 -0
- package/dist/containers/AppWithClusters/AppWithClusters.d.ts +1 -1
- package/dist/containers/AppWithClusters/AppWithClusters.js +1 -1
- package/dist/containers/AsideNavigation/YdbInternalUser/YdbInternalUser.js +2 -3
- package/dist/containers/Authentication/Authentication.js +2 -5
- package/dist/containers/Cluster/Cluster.js +4 -5
- package/dist/containers/Cluster/ClusterInfo/ClusterInfo.js +4 -4
- package/dist/containers/Cluster/ClusterInfo/ClusterInfo.scss +4 -0
- package/dist/containers/Cluster/ClusterInfo/utils.d.ts +1 -1
- package/dist/containers/Cluster/utils.d.ts +2 -2
- package/dist/containers/Clusters/Clusters.js +2 -4
- package/dist/containers/Clusters/Clusters.scss +1 -1
- package/dist/containers/Clusters/constants.d.ts +1 -1
- package/dist/containers/Clusters/useClustersList.js +2 -2
- package/dist/containers/Clusters/useSelectedColumns.d.ts +1 -1
- package/dist/containers/Header/Header.js +4 -5
- package/dist/containers/Header/breadcrumbs.js +28 -5
- package/dist/containers/Header/i18n/en.json +7 -0
- package/dist/containers/Header/i18n/index.d.ts +1 -0
- package/dist/containers/Header/i18n/index.js +4 -0
- package/dist/containers/Heatmap/Heatmap.js +3 -4
- package/dist/containers/Heatmap/HeatmapCanvas/HeatmapCanvas.js +1 -1
- package/dist/containers/Node/Node.js +2 -3
- package/dist/containers/Node/NodeStructure/NodeStructure.d.ts +0 -1
- package/dist/containers/Node/NodeStructure/NodeStructure.js +2 -6
- package/dist/containers/Node/NodeStructure/Pdisk.js +9 -65
- package/dist/containers/Node/NodeStructure/Vdisk.d.ts +1 -1
- package/dist/containers/Node/NodeStructure/Vdisk.js +5 -3
- package/dist/containers/Nodes/Nodes.js +2 -3
- package/dist/containers/Nodes/NodesWrapper.js +1 -11
- package/dist/containers/Nodes/getNodes.js +1 -11
- package/dist/containers/Nodes/getNodesColumns.d.ts +1 -1
- package/dist/containers/PDisk/PDisk.d.ts +3 -0
- package/dist/containers/PDisk/PDisk.js +68 -0
- package/dist/containers/PDisk/PDisk.scss +41 -0
- package/dist/containers/PDisk/PDiskGroups.d.ts +10 -0
- package/dist/containers/PDisk/PDiskGroups.js +20 -0
- package/dist/containers/PDisk/i18n/en.json +6 -0
- package/dist/containers/PDisk/i18n/index.d.ts +1 -0
- package/dist/containers/PDisk/i18n/index.js +4 -0
- package/dist/containers/PDisk/shared.d.ts +10 -0
- package/dist/containers/PDisk/shared.js +2 -0
- package/dist/containers/ReduxTooltip/ReduxTooltip.d.ts +1 -1
- package/dist/containers/ReduxTooltip/ReduxTooltip.js +3 -2
- package/dist/containers/Storage/DiskStateProgressBar/DiskStateProgressBar.d.ts +1 -9
- package/dist/containers/Storage/DiskStateProgressBar/DiskStateProgressBar.js +2 -12
- package/dist/containers/Storage/PDisk/PDisk.d.ts +3 -3
- package/dist/containers/Storage/PDisk/PDisk.js +6 -53
- package/dist/containers/Storage/PDiskPopup/PDiskPopup.d.ts +3 -3
- package/dist/containers/Storage/PDiskPopup/PDiskPopup.js +3 -14
- package/dist/containers/Storage/Storage.js +2 -3
- package/dist/containers/Storage/StorageGroups/getGroups.js +1 -11
- package/dist/containers/Storage/StorageGroups/getStorageGroupsColumns.d.ts +2 -1
- package/dist/containers/Storage/StorageGroups/getStorageGroupsColumns.js +22 -8
- package/dist/containers/Storage/StorageNodes/getNodes.js +1 -11
- package/dist/containers/Storage/StorageNodes/getStorageNodesColumns.js +1 -1
- package/dist/containers/Storage/StorageWrapper.js +1 -11
- package/dist/containers/Storage/UsageFilter/UsageFilter.js +1 -1
- package/dist/containers/Storage/VDisk/VDisk.d.ts +2 -3
- package/dist/containers/Storage/VDisk/VDisk.js +4 -64
- package/dist/containers/Storage/VDiskPopup/VDiskPopup.js +2 -12
- package/dist/containers/Storage/VirtualStorage.js +2 -3
- package/dist/containers/Storage/utils/index.d.ts +1 -3
- package/dist/containers/Storage/utils/index.js +0 -6
- package/dist/containers/Tablet/Tablet.js +4 -5
- package/dist/containers/Tablet/TabletControls/TabletControls.d.ts +3 -2
- package/dist/containers/Tablet/TabletControls/TabletControls.js +2 -49
- package/dist/containers/Tablet/TabletTable/TabletTable.js +1 -1
- package/dist/containers/Tablets/Tablets.js +2 -3
- package/dist/containers/TabletsFilters/TabletsFilters.d.ts +2 -2
- package/dist/containers/Tenant/Acl/Acl.js +2 -3
- package/dist/containers/Tenant/Diagnostics/Consumers/Consumers.js +2 -3
- package/dist/containers/Tenant/Diagnostics/Describe/Describe.js +3 -3
- package/dist/containers/Tenant/Diagnostics/Diagnostics.js +6 -4
- package/dist/containers/Tenant/Diagnostics/DiagnosticsPages.d.ts +2 -2
- package/dist/containers/Tenant/Diagnostics/HotKeys/HotKeys.js +2 -3
- package/dist/containers/Tenant/Diagnostics/Network/Network.d.ts +2 -2
- package/dist/containers/Tenant/Diagnostics/Network/NodeNetwork/NodeNetwork.d.ts +1 -1
- package/dist/containers/Tenant/Diagnostics/Network/NodeNetwork/NodeNetwork.js +7 -5
- package/dist/containers/Tenant/Diagnostics/Network/NodeNetwork/NodeNetwork.scss +1 -1
- package/dist/containers/Tenant/Diagnostics/Overview/Overview.js +9 -5
- package/dist/containers/Tenant/Diagnostics/Overview/TableInfo/prepareTableInfo.d.ts +1 -1
- package/dist/containers/Tenant/Diagnostics/Overview/utils/prepareTopicSchemaInfo.d.ts +1 -1
- package/dist/containers/Tenant/Diagnostics/Partitions/Partitions.js +2 -3
- package/dist/containers/Tenant/Diagnostics/Partitions/columns/columns.js +1 -1
- package/dist/containers/Tenant/Diagnostics/Partitions/utils/index.d.ts +1 -1
- package/dist/containers/Tenant/Diagnostics/TenantOverview/DefaultOverviewContent/DefaultOverviewContent.d.ts +5 -1
- package/dist/containers/Tenant/Diagnostics/TenantOverview/DefaultOverviewContent/DefaultOverviewContent.js +2 -2
- package/dist/containers/Tenant/Diagnostics/TenantOverview/Healthcheck/Healthcheck.scss +0 -1
- package/dist/containers/Tenant/Diagnostics/TenantOverview/Healthcheck/HealthcheckDetails.d.ts +2 -2
- package/dist/containers/Tenant/Diagnostics/TenantOverview/Healthcheck/HealthcheckPreview.js +3 -2
- package/dist/containers/Tenant/Diagnostics/TenantOverview/Healthcheck/IssuesViewer/IssueTree.d.ts +2 -2
- package/dist/containers/Tenant/Diagnostics/TenantOverview/Healthcheck/IssuesViewer/IssueTree.js +3 -12
- package/dist/containers/Tenant/Diagnostics/TenantOverview/Healthcheck/IssuesViewer/IssueTreeItem/IssueTreeItem.d.ts +2 -1
- package/dist/containers/Tenant/Diagnostics/TenantOverview/Healthcheck/IssuesViewer/IssueTreeItem/IssueTreeItem.js +1 -1
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/TenantCpu.js +1 -1
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/TopNodesByCpu.js +2 -3
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/TopNodesByLoad.js +2 -3
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/TopQueries.js +2 -3
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/TopShards.js +2 -3
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantDashboard/TenantDashboard.d.ts +2 -1
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantDashboard/TenantDashboard.js +2 -2
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantMemory/TenantMemory.js +1 -1
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantMemory/TopNodesByMemory.js +2 -3
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantOverview.js +6 -7
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantOverviewTableLayout.js +1 -11
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantStorage/TenantStorage.js +1 -1
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantStorage/TopGroups.js +2 -3
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantStorage/TopTables.js +2 -3
- package/dist/containers/Tenant/Diagnostics/TenantOverview/useHealthcheck.d.ts +2 -2
- package/dist/containers/Tenant/Diagnostics/TenantOverview/useHealthcheck.js +3 -4
- package/dist/containers/Tenant/Diagnostics/TopQueries/TopQueries.js +2 -5
- package/dist/containers/Tenant/Diagnostics/TopShards/TopShards.js +2 -3
- package/dist/containers/Tenant/Info/ExternalDataSource/ExternalDataSource.js +1 -1
- package/dist/containers/Tenant/Info/ExternalTable/ExternalTable.js +3 -3
- package/dist/containers/Tenant/ObjectGeneral/ObjectGeneral.d.ts +1 -0
- package/dist/containers/Tenant/ObjectGeneral/ObjectGeneral.js +3 -2
- package/dist/containers/Tenant/ObjectSummary/ObjectSummary.js +2 -3
- package/dist/containers/Tenant/Query/ExecuteResult/ExecuteResult.js +2 -3
- package/dist/containers/Tenant/Query/ExplainResult/ExplainResult.js +3 -3
- package/dist/containers/Tenant/Query/Issues/models.d.ts +1 -1
- package/dist/containers/Tenant/Query/Preview/Preview.js +2 -3
- package/dist/containers/Tenant/Query/QueriesHistory/QueriesHistory.js +2 -3
- package/dist/containers/Tenant/Query/Query.js +2 -3
- package/dist/containers/Tenant/Query/QueryEditor/QueryEditor.js +3 -8
- package/dist/containers/Tenant/Query/QueryEditor/helpers.d.ts +4 -0
- package/dist/containers/Tenant/Query/QueryEditor/helpers.js +17 -0
- package/dist/containers/Tenant/Query/SaveQuery/SaveQuery.js +4 -4
- package/dist/containers/Tenant/Query/SavedQueries/SavedQueries.js +2 -2
- package/dist/containers/Tenant/Schema/SchemaTree/SchemaTree.js +5 -3
- package/dist/containers/Tenant/Tenant.js +24 -8
- package/dist/containers/Tenant/utils/index.d.ts +1 -1
- package/dist/containers/Tenant/utils/schema.d.ts +12 -12
- package/dist/containers/Tenant/utils/schemaActions.d.ts +1 -1
- package/dist/containers/Tenants/Tenants.js +3 -4
- package/dist/containers/UserSettings/Setting.d.ts +1 -1
- package/dist/containers/UserSettings/i18n/en.json +4 -0
- package/dist/containers/UserSettings/i18n/index.d.ts +1 -1
- package/dist/containers/UserSettings/settings.d.ts +4 -1
- package/dist/containers/UserSettings/settings.js +21 -6
- package/dist/containers/Versions/NodesTable/NodesTable.js +1 -1
- package/dist/containers/Versions/Versions.js +2 -3
- package/dist/reportWebVitals.d.ts +1 -1
- package/dist/routes.d.ts +5 -2
- package/dist/routes.js +6 -1
- package/dist/services/api.d.ts +8 -7
- package/dist/services/api.js +3 -13
- package/dist/services/settings.d.ts +1 -1
- package/dist/services/settings.js +2 -1
- package/dist/store/configureStore.d.ts +310 -0
- package/dist/store/configureStore.js +56 -0
- package/dist/store/defaultStore.d.ts +168 -0
- package/dist/store/defaultStore.js +2 -0
- package/dist/store/getUrlData.d.ts +3 -3
- package/dist/store/getUrlData.js +4 -4
- package/dist/store/index.d.ts +3 -97
- package/dist/store/index.js +2 -49
- package/dist/store/reducers/authentication/authentication.d.ts +247 -4
- package/dist/store/reducers/authentication/types.d.ts +1 -1
- package/dist/store/reducers/cluster/cluster.d.ts +83 -2
- package/dist/store/reducers/cluster/types.d.ts +3 -3
- package/dist/store/reducers/clusterNodes/clusterNodes.d.ts +83 -2
- package/dist/store/reducers/clusterNodes/types.d.ts +1 -1
- package/dist/store/reducers/clusters/clusters.d.ts +83 -2
- package/dist/store/reducers/clusters/selectors.d.ts +20 -6
- package/dist/store/reducers/clusters/selectors.js +1 -1
- package/dist/store/reducers/clusters/types.d.ts +1 -1
- package/dist/store/reducers/describe.d.ts +165 -3
- package/dist/store/reducers/describe.js +4 -3
- package/dist/store/reducers/executeQuery.d.ts +83 -2
- package/dist/store/reducers/executeTopQueries/executeTopQueries.d.ts +3 -3
- package/dist/store/reducers/executeTopQueries/types.d.ts +1 -1
- package/dist/store/reducers/explainQuery.d.ts +165 -3
- package/dist/store/reducers/header/header.d.ts +1 -1
- package/dist/store/reducers/header/types.d.ts +7 -4
- package/dist/store/reducers/healthcheckInfo/healthcheckInfo.d.ts +101 -0
- package/dist/store/reducers/{healthcheckInfo.js → healthcheckInfo/healthcheckInfo.js} +2 -2
- package/dist/store/reducers/healthcheckInfo/types.d.ts +19 -0
- package/dist/store/reducers/healthcheckInfo/utils.d.ts +3 -0
- package/dist/store/reducers/healthcheckInfo/utils.js +11 -0
- package/dist/store/reducers/heatmap.d.ts +83 -2
- package/dist/store/reducers/heatmap.js +2 -2
- package/dist/store/reducers/host.d.ts +83 -2
- package/dist/store/reducers/hotKeys/hotKeys.d.ts +1 -1
- package/dist/store/reducers/hotKeys/types.d.ts +1 -1
- package/dist/store/reducers/index.d.ts +95 -45
- package/dist/store/reducers/index.js +4 -2
- package/dist/store/reducers/network/network.d.ts +83 -2
- package/dist/store/reducers/network/types.d.ts +1 -1
- package/dist/store/reducers/node/node.d.ts +165 -3
- package/dist/store/reducers/node/selectors.d.ts +1 -1
- package/dist/store/reducers/node/selectors.js +5 -4
- package/dist/store/reducers/node/types.d.ts +6 -6
- package/dist/store/reducers/nodes/nodes.d.ts +165 -3
- package/dist/store/reducers/nodes/nodes.js +1 -11
- package/dist/store/reducers/nodes/selectors.d.ts +1 -1
- package/dist/store/reducers/nodes/selectors.js +1 -1
- package/dist/store/reducers/nodes/types.d.ts +4 -3
- package/dist/store/reducers/nodes/utils.d.ts +1 -1
- package/dist/store/reducers/nodesList.d.ts +83 -2
- package/dist/store/reducers/olapStats.d.ts +83 -2
- package/dist/store/reducers/overview/overview.d.ts +166 -4
- package/dist/store/reducers/overview/overview.js +3 -3
- package/dist/store/reducers/overview/types.d.ts +6 -5
- package/dist/store/reducers/partitions/partitions.d.ts +83 -2
- package/dist/store/reducers/partitions/types.d.ts +1 -1
- package/dist/store/reducers/partitions/utils.d.ts +2 -2
- package/dist/store/reducers/pdisk/pdisk.d.ts +210 -0
- package/dist/store/reducers/pdisk/pdisk.js +64 -0
- package/dist/store/reducers/pdisk/types.d.ts +23 -0
- package/dist/store/reducers/pdisk/types.js +1 -0
- package/dist/store/reducers/pdisk/utils.d.ts +32 -0
- package/dist/store/reducers/pdisk/utils.js +32 -0
- package/dist/store/reducers/preview.d.ts +82 -1
- package/dist/store/reducers/saveQuery.d.ts +3 -3
- package/dist/store/reducers/schema/schema.d.ts +84 -4
- package/dist/store/reducers/schema/schema.js +4 -4
- package/dist/store/reducers/schema/types.d.ts +3 -3
- package/dist/store/reducers/schemaAcl/schemaAcl.d.ts +83 -2
- package/dist/store/reducers/schemaAcl/types.d.ts +1 -1
- package/dist/store/reducers/settings/settings.d.ts +2 -2
- package/dist/store/reducers/settings/types.d.ts +3 -3
- package/dist/store/reducers/shardsWorkload/shardsWorkload.d.ts +83 -2
- package/dist/store/reducers/shardsWorkload/types.d.ts +1 -1
- package/dist/store/reducers/storage/selectors.d.ts +1 -1
- package/dist/store/reducers/storage/selectors.js +1 -1
- package/dist/store/reducers/storage/storage.d.ts +165 -3
- package/dist/store/reducers/storage/storage.js +1 -11
- package/dist/store/reducers/storage/types.d.ts +10 -10
- package/dist/store/reducers/storage/utils.d.ts +4 -2
- package/dist/store/reducers/storage/utils.js +21 -15
- package/dist/store/reducers/tablet.d.ts +165 -3
- package/dist/store/reducers/tablet.js +1 -1
- package/dist/store/reducers/tablets.d.ts +83 -2
- package/dist/store/reducers/tabletsFilters.d.ts +101 -2
- package/dist/store/reducers/tabletsFilters.js +1 -1
- package/dist/store/reducers/tenant/tenant.d.ts +83 -2
- package/dist/store/reducers/tenant/types.d.ts +6 -6
- package/dist/store/reducers/tenantOverview/executeTopTables/executeTopTables.d.ts +83 -2
- package/dist/store/reducers/tenantOverview/executeTopTables/types.d.ts +1 -1
- package/dist/store/reducers/tenantOverview/topNodesByCpu/topNodesByCpu.d.ts +83 -2
- package/dist/store/reducers/tenantOverview/topNodesByCpu/topNodesByCpu.js +1 -11
- package/dist/store/reducers/tenantOverview/topNodesByCpu/types.d.ts +2 -2
- package/dist/store/reducers/tenantOverview/topNodesByLoad/topNodesByLoad.d.ts +83 -2
- package/dist/store/reducers/tenantOverview/topNodesByLoad/topNodesByLoad.js +1 -11
- package/dist/store/reducers/tenantOverview/topNodesByLoad/types.d.ts +2 -2
- package/dist/store/reducers/tenantOverview/topNodesByMemory/topNodesByMemory.d.ts +83 -2
- package/dist/store/reducers/tenantOverview/topNodesByMemory/topNodesByMemory.js +1 -11
- package/dist/store/reducers/tenantOverview/topNodesByMemory/types.d.ts +2 -2
- package/dist/store/reducers/tenantOverview/topQueries/tenantOverviewTopQueries.d.ts +83 -2
- package/dist/store/reducers/tenantOverview/topQueries/types.d.ts +1 -1
- package/dist/store/reducers/tenantOverview/topShards/tenantOverviewTopShards.d.ts +83 -2
- package/dist/store/reducers/tenantOverview/topShards/types.d.ts +1 -1
- package/dist/store/reducers/tenantOverview/topStorageGroups/topStorageGroups.d.ts +83 -2
- package/dist/store/reducers/tenantOverview/topStorageGroups/topStorageGroups.js +1 -11
- package/dist/store/reducers/tenantOverview/topStorageGroups/types.d.ts +2 -2
- package/dist/store/reducers/tenants/selectors.d.ts +2 -2
- package/dist/store/reducers/tenants/selectors.js +1 -1
- package/dist/store/reducers/tenants/tenants.d.ts +83 -2
- package/dist/store/reducers/tenants/types.d.ts +2 -2
- package/dist/store/reducers/tenants/utils.d.ts +6 -6
- package/dist/store/reducers/tooltip.d.ts +4 -3
- package/dist/store/reducers/tooltip.js +2 -4
- package/dist/store/reducers/topic.d.ts +83 -3
- package/dist/store/reducers/topic.js +1 -1
- package/dist/store/state-url-mapping.d.ts +5 -3
- package/dist/store/state-url-mapping.js +9 -18
- package/dist/store/utils.d.ts +4 -4
- package/dist/types/additionalProps.d.ts +2 -2
- package/dist/types/api/enums.d.ts +1 -0
- package/dist/types/api/enums.js +1 -0
- package/dist/types/api/error.d.ts +1 -1
- package/dist/types/api/nodes.d.ts +1 -1
- package/dist/types/api/nodesList.d.ts +1 -1
- package/dist/types/api/query.d.ts +19 -19
- package/dist/types/api/render.d.ts +6 -3
- package/dist/types/api/storage.d.ts +1 -1
- package/dist/types/api/tablet.d.ts +1 -1
- package/dist/types/common.d.ts +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/store/describe.d.ts +3 -3
- package/dist/types/store/executeQuery.d.ts +2 -2
- package/dist/types/store/explainQuery.d.ts +3 -3
- package/dist/types/store/heatmap.d.ts +3 -3
- package/dist/types/store/host.d.ts +1 -1
- package/dist/types/store/nodesList.d.ts +2 -2
- package/dist/types/store/olapStats.d.ts +1 -1
- package/dist/types/store/query.d.ts +5 -5
- package/dist/types/store/tablet.d.ts +3 -3
- package/dist/types/store/tablets.d.ts +2 -2
- package/dist/types/store/tooltip.d.ts +3 -5
- package/dist/types/store/topic.d.ts +1 -1
- package/dist/types/versions.d.ts +2 -2
- package/dist/utils/additionalProps.d.ts +1 -1
- package/dist/utils/additionalProps.js +1 -1
- package/dist/utils/bytesParsers/formatBytes.d.ts +2 -2
- package/dist/utils/bytesParsers/formatBytes.js +1 -11
- package/dist/utils/clusterVersionColors.d.ts +1 -1
- package/dist/utils/clusterVersionColors.js +2 -2
- package/dist/utils/constants.d.ts +2 -1
- package/dist/utils/constants.js +5 -4
- package/dist/utils/dataFormatters/dataFormatters.d.ts +12 -11
- package/dist/utils/developerUI/developerUI.d.ts +1 -1
- package/dist/utils/diagnostics.d.ts +2 -2
- package/dist/utils/disks/__test__/calculatePDiskSeverity.test.d.ts +1 -0
- package/dist/utils/disks/__test__/calculatePDiskSeverity.test.js +36 -0
- package/dist/utils/disks/__test__/calculateVDiskSeverity.test.d.ts +1 -0
- package/dist/utils/disks/__test__/calculateVDiskSeverity.test.js +142 -0
- package/dist/utils/disks/calculatePDiskSeverity.d.ts +2 -0
- package/dist/utils/disks/calculatePDiskSeverity.js +18 -0
- package/dist/utils/disks/calculateVDiskSeverity.d.ts +2 -0
- package/dist/utils/disks/calculateVDiskSeverity.js +36 -0
- package/dist/utils/disks/constants.d.ts +25 -0
- package/dist/utils/disks/constants.js +38 -0
- package/dist/utils/disks/getPDiskType.d.ts +7 -0
- package/dist/utils/{pdisk.js → disks/getPDiskType.js} +13 -15
- package/dist/utils/disks/helpers.d.ts +3 -0
- package/dist/utils/disks/helpers.js +10 -0
- package/dist/utils/disks/prepareDisks.d.ts +5 -0
- package/dist/utils/disks/prepareDisks.js +40 -0
- package/dist/utils/disks/types.d.ts +15 -0
- package/dist/utils/disks/types.js +1 -0
- package/dist/utils/hooks/index.d.ts +1 -0
- package/dist/utils/hooks/index.js +1 -0
- package/dist/utils/hooks/useSetting.js +2 -2
- package/dist/utils/hooks/useTableResize.d.ts +3 -3
- package/dist/utils/hooks/useTableSort.d.ts +1 -1
- package/dist/utils/hooks/useTypedDispatch.d.ts +2 -0
- package/dist/utils/hooks/useTypedDispatch.js +2 -0
- package/dist/utils/hooks/useTypedSelector.d.ts +1 -1
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/index.js +3 -0
- package/dist/utils/monaco.d.ts +1 -0
- package/dist/utils/monaco.js +14 -0
- package/dist/utils/monitoring.d.ts +3 -3
- package/dist/utils/nodes.d.ts +2 -2
- package/dist/utils/prepareBackend.d.ts +2 -2
- package/dist/utils/query.d.ts +2 -2
- package/dist/utils/query.js +1 -11
- package/dist/utils/storage.d.ts +1 -3
- package/dist/utils/storage.js +0 -1
- package/dist/utils/tablet.d.ts +1 -1
- package/dist/utils/timeframes.d.ts +1 -1
- package/dist/utils/typecheckers.d.ts +1 -0
- package/dist/utils/versions/getVersionsColors.d.ts +1 -1
- package/dist/utils/versions/getVersionsColors.js +2 -2
- package/dist/utils/versions/parseNodesToVersionsValues.d.ts +1 -1
- package/dist/utils/yqlSuggestions/constants.d.ts +7 -0
- package/dist/utils/yqlSuggestions/constants.js +696 -0
- package/dist/utils/yqlSuggestions/generateSuggestions.d.ts +27 -0
- package/dist/utils/yqlSuggestions/generateSuggestions.js +252 -0
- package/dist/utils/yqlSuggestions/yqlSuggestions.d.ts +4 -0
- package/dist/utils/yqlSuggestions/yqlSuggestions.js +76 -0
- package/package.json +14 -10
- package/dist/assets/icons/flask.svg +0 -3
- package/dist/assets/icons/star.svg +0 -1
- package/dist/components/ExternalLinkWithIcon/ExternalLinkWithIcon.d.ts +0 -7
- package/dist/components/ExternalLinkWithIcon/ExternalLinkWithIcon.js +0 -9
- package/dist/containers/Cluster/ClusterInfoSkeleton/ClusterInfoSkeleton.d.ts +0 -7
- package/dist/containers/Cluster/ClusterInfoSkeleton/ClusterInfoSkeleton.js +0 -7
- package/dist/containers/Storage/utils/constants.d.ts +0 -2
- package/dist/containers/Storage/utils/constants.js +0 -2
- package/dist/store/reducers/healthcheckInfo.d.ts +0 -21
- package/dist/types/store/healthcheck.d.ts +0 -20
- package/dist/utils/pdisk.d.ts +0 -17
- /package/dist/{types/store/healthcheck.js → store/reducers/healthcheckInfo/types.js} +0 -0
@@ -0,0 +1,310 @@
|
|
1
|
+
import { History } from 'history';
|
2
|
+
import type { Reducer, UnknownAction } from '@reduxjs/toolkit';
|
3
|
+
export declare let backend: string | undefined, basename: string, clusterName: string | undefined;
|
4
|
+
export declare const webVersion: boolean | undefined;
|
5
|
+
export declare const customBackend: string | undefined;
|
6
|
+
export declare const metaBackend: string | undefined;
|
7
|
+
export declare function configureStore({ aRootReducer, singleClusterMode, api, }?: {
|
8
|
+
aRootReducer?: Reducer<{
|
9
|
+
singleClusterMode: boolean;
|
10
|
+
nodes: import("./reducers/nodes/types").NodesState;
|
11
|
+
topNodesByLoad: import("./reducers/tenantOverview/topNodesByLoad/types").TopNodesByLoadState;
|
12
|
+
topNodesByCpu: import("./reducers/tenantOverview/topNodesByCpu/types").TopNodesByCpuState;
|
13
|
+
topNodesByMemory: import("./reducers/tenantOverview/topNodesByMemory/types").TopNodesByMemoryState;
|
14
|
+
cluster: import("./reducers/cluster/types").ClusterState;
|
15
|
+
clusterNodes: import("./reducers/clusterNodes/types").ClusterNodesState;
|
16
|
+
tenant: import("./reducers/tenant/types").TenantState;
|
17
|
+
storage: import("./reducers/storage/types").StorageState;
|
18
|
+
topStorageGroups: import("./reducers/tenantOverview/topStorageGroups/types").TopStorageGroupsState;
|
19
|
+
node: import("./reducers/node/types").NodeState;
|
20
|
+
tooltip: import("../types/store/tooltip").ITooltipState;
|
21
|
+
tablets: import("../types/store/tablets").ITabletsState;
|
22
|
+
schema: import("./reducers/schema/types").SchemaState;
|
23
|
+
overview: import("./reducers/overview/types").OverviewState;
|
24
|
+
olapStats: import("../types/store/olapStats").OlapStatsState;
|
25
|
+
host: import("../types/store/host").IHostState;
|
26
|
+
network: import("./reducers/network/types").NetworkState;
|
27
|
+
tenants: import("./reducers/tenants/types").TenantsState;
|
28
|
+
tablet: import("../types/store/tablet").ITabletState;
|
29
|
+
topic: import("../types/store/topic").ITopicState;
|
30
|
+
partitions: import("./reducers/partitions/types").PartitionsState;
|
31
|
+
pDisk: import("./reducers/pdisk/types").PDiskState;
|
32
|
+
executeQuery: import("../types/store/executeQuery").ExecuteQueryState;
|
33
|
+
explainQuery: import("../types/store/explainQuery").ExplainQueryState;
|
34
|
+
tabletsFilters: {
|
35
|
+
loading: boolean;
|
36
|
+
requestTime: number;
|
37
|
+
data: undefined;
|
38
|
+
wasLoaded: boolean;
|
39
|
+
stateFilter: never[];
|
40
|
+
typeFilter: never[];
|
41
|
+
} | {
|
42
|
+
tabletsData: any;
|
43
|
+
nodes: any;
|
44
|
+
loading: boolean;
|
45
|
+
wasLoaded: boolean;
|
46
|
+
timeoutForRequest: number;
|
47
|
+
error: undefined;
|
48
|
+
data: undefined;
|
49
|
+
stateFilter: never[];
|
50
|
+
typeFilter: never[];
|
51
|
+
} | {
|
52
|
+
error: any;
|
53
|
+
loading: boolean;
|
54
|
+
data: undefined;
|
55
|
+
wasLoaded: boolean;
|
56
|
+
stateFilter: never[];
|
57
|
+
typeFilter: never[];
|
58
|
+
} | {
|
59
|
+
stateFilter: any;
|
60
|
+
data: undefined;
|
61
|
+
loading: boolean;
|
62
|
+
wasLoaded: boolean;
|
63
|
+
typeFilter: never[];
|
64
|
+
} | {
|
65
|
+
typeFilter: any;
|
66
|
+
data: undefined;
|
67
|
+
loading: boolean;
|
68
|
+
wasLoaded: boolean;
|
69
|
+
stateFilter: never[];
|
70
|
+
};
|
71
|
+
heatmap: import("../types/store/heatmap").IHeatmapState;
|
72
|
+
settings: import("./reducers/settings/types").SettingsState;
|
73
|
+
preview: any;
|
74
|
+
nodesList: import("../types/store/nodesList").NodesListState;
|
75
|
+
describe: import("../types/store/describe").IDescribeState;
|
76
|
+
schemaAcl: import("./reducers/schemaAcl/types").SchemaAclState;
|
77
|
+
executeTopQueries: import("./reducers/executeTopQueries/types").ITopQueriesState;
|
78
|
+
executeTopTables: import("./reducers/tenantOverview/executeTopTables/types").TopTablesState;
|
79
|
+
tenantOverviewTopQueries: import("./reducers/tenantOverview/topQueries/types").TenantOverviewTopQueriesState;
|
80
|
+
healthcheckInfo: import("./reducers/healthcheckInfo/types").HealthcheckInfoState;
|
81
|
+
shardsWorkload: import("./reducers/shardsWorkload/types").IShardsWorkloadState;
|
82
|
+
tenantOverviewTopShards: import("./reducers/tenantOverview/topShards/types").TenantOverviewTopShardsState;
|
83
|
+
hotKeys: import("./reducers/hotKeys/types").HotKeysState;
|
84
|
+
authentication: import("./reducers/authentication/types").AuthenticationState;
|
85
|
+
header: import("./reducers/header/types").HeaderState;
|
86
|
+
saveQuery: string | null;
|
87
|
+
fullscreen: boolean;
|
88
|
+
clusters: import("./reducers/clusters/types").ClustersState;
|
89
|
+
}, any, Partial<{
|
90
|
+
singleClusterMode: boolean | undefined;
|
91
|
+
nodes: never;
|
92
|
+
topNodesByLoad: never;
|
93
|
+
topNodesByCpu: never;
|
94
|
+
topNodesByMemory: never;
|
95
|
+
cluster: never;
|
96
|
+
clusterNodes: never;
|
97
|
+
tenant: never;
|
98
|
+
storage: never;
|
99
|
+
topStorageGroups: never;
|
100
|
+
node: never;
|
101
|
+
tooltip: never;
|
102
|
+
tablets: never;
|
103
|
+
schema: never;
|
104
|
+
overview: never;
|
105
|
+
olapStats: never;
|
106
|
+
host: never;
|
107
|
+
network: never;
|
108
|
+
tenants: never;
|
109
|
+
tablet: never;
|
110
|
+
topic: never;
|
111
|
+
partitions: never;
|
112
|
+
pDisk: never;
|
113
|
+
executeQuery: never;
|
114
|
+
explainQuery: never;
|
115
|
+
tabletsFilters: {
|
116
|
+
data: undefined;
|
117
|
+
loading: boolean;
|
118
|
+
wasLoaded: boolean;
|
119
|
+
stateFilter: never[];
|
120
|
+
typeFilter: never[];
|
121
|
+
} | undefined;
|
122
|
+
heatmap: never;
|
123
|
+
settings: never;
|
124
|
+
preview: never;
|
125
|
+
nodesList: never;
|
126
|
+
describe: never;
|
127
|
+
schemaAcl: never;
|
128
|
+
executeTopQueries: never;
|
129
|
+
executeTopTables: never;
|
130
|
+
tenantOverviewTopQueries: never;
|
131
|
+
healthcheckInfo: never;
|
132
|
+
shardsWorkload: never;
|
133
|
+
tenantOverviewTopShards: never;
|
134
|
+
hotKeys: never;
|
135
|
+
authentication: never;
|
136
|
+
header: never;
|
137
|
+
saveQuery: never;
|
138
|
+
fullscreen: never;
|
139
|
+
clusters: never;
|
140
|
+
}>> | undefined;
|
141
|
+
singleClusterMode?: boolean | undefined;
|
142
|
+
api?: import("../services/api").YdbEmbeddedAPI | undefined;
|
143
|
+
}): {
|
144
|
+
history: History<unknown>;
|
145
|
+
store: import("@reduxjs/toolkit").EnhancedStore<{
|
146
|
+
singleClusterMode: boolean;
|
147
|
+
nodes: import("./reducers/nodes/types").NodesState;
|
148
|
+
topNodesByLoad: import("./reducers/tenantOverview/topNodesByLoad/types").TopNodesByLoadState;
|
149
|
+
topNodesByCpu: import("./reducers/tenantOverview/topNodesByCpu/types").TopNodesByCpuState;
|
150
|
+
topNodesByMemory: import("./reducers/tenantOverview/topNodesByMemory/types").TopNodesByMemoryState;
|
151
|
+
cluster: import("./reducers/cluster/types").ClusterState;
|
152
|
+
clusterNodes: import("./reducers/clusterNodes/types").ClusterNodesState;
|
153
|
+
tenant: import("./reducers/tenant/types").TenantState;
|
154
|
+
storage: import("./reducers/storage/types").StorageState;
|
155
|
+
topStorageGroups: import("./reducers/tenantOverview/topStorageGroups/types").TopStorageGroupsState;
|
156
|
+
node: import("./reducers/node/types").NodeState;
|
157
|
+
tooltip: import("../types/store/tooltip").ITooltipState;
|
158
|
+
tablets: import("../types/store/tablets").ITabletsState;
|
159
|
+
schema: import("./reducers/schema/types").SchemaState;
|
160
|
+
overview: import("./reducers/overview/types").OverviewState;
|
161
|
+
olapStats: import("../types/store/olapStats").OlapStatsState;
|
162
|
+
host: import("../types/store/host").IHostState;
|
163
|
+
network: import("./reducers/network/types").NetworkState;
|
164
|
+
tenants: import("./reducers/tenants/types").TenantsState;
|
165
|
+
tablet: import("../types/store/tablet").ITabletState;
|
166
|
+
topic: import("../types/store/topic").ITopicState;
|
167
|
+
partitions: import("./reducers/partitions/types").PartitionsState;
|
168
|
+
pDisk: import("./reducers/pdisk/types").PDiskState;
|
169
|
+
executeQuery: import("../types/store/executeQuery").ExecuteQueryState;
|
170
|
+
explainQuery: import("../types/store/explainQuery").ExplainQueryState;
|
171
|
+
tabletsFilters: {
|
172
|
+
loading: boolean;
|
173
|
+
requestTime: number;
|
174
|
+
data: undefined;
|
175
|
+
wasLoaded: boolean;
|
176
|
+
stateFilter: never[];
|
177
|
+
typeFilter: never[];
|
178
|
+
} | {
|
179
|
+
tabletsData: any;
|
180
|
+
nodes: any;
|
181
|
+
loading: boolean;
|
182
|
+
wasLoaded: boolean;
|
183
|
+
timeoutForRequest: number;
|
184
|
+
error: undefined;
|
185
|
+
data: undefined;
|
186
|
+
stateFilter: never[];
|
187
|
+
typeFilter: never[];
|
188
|
+
} | {
|
189
|
+
error: any;
|
190
|
+
loading: boolean;
|
191
|
+
data: undefined;
|
192
|
+
wasLoaded: boolean;
|
193
|
+
stateFilter: never[];
|
194
|
+
typeFilter: never[];
|
195
|
+
} | {
|
196
|
+
stateFilter: any;
|
197
|
+
data: undefined;
|
198
|
+
loading: boolean;
|
199
|
+
wasLoaded: boolean;
|
200
|
+
typeFilter: never[];
|
201
|
+
} | {
|
202
|
+
typeFilter: any;
|
203
|
+
data: undefined;
|
204
|
+
loading: boolean;
|
205
|
+
wasLoaded: boolean;
|
206
|
+
stateFilter: never[];
|
207
|
+
};
|
208
|
+
heatmap: import("../types/store/heatmap").IHeatmapState;
|
209
|
+
settings: import("./reducers/settings/types").SettingsState;
|
210
|
+
preview: any;
|
211
|
+
nodesList: import("../types/store/nodesList").NodesListState;
|
212
|
+
describe: import("../types/store/describe").IDescribeState;
|
213
|
+
schemaAcl: import("./reducers/schemaAcl/types").SchemaAclState;
|
214
|
+
executeTopQueries: import("./reducers/executeTopQueries/types").ITopQueriesState;
|
215
|
+
executeTopTables: import("./reducers/tenantOverview/executeTopTables/types").TopTablesState;
|
216
|
+
tenantOverviewTopQueries: import("./reducers/tenantOverview/topQueries/types").TenantOverviewTopQueriesState;
|
217
|
+
healthcheckInfo: import("./reducers/healthcheckInfo/types").HealthcheckInfoState;
|
218
|
+
shardsWorkload: import("./reducers/shardsWorkload/types").IShardsWorkloadState;
|
219
|
+
tenantOverviewTopShards: import("./reducers/tenantOverview/topShards/types").TenantOverviewTopShardsState;
|
220
|
+
hotKeys: import("./reducers/hotKeys/types").HotKeysState;
|
221
|
+
authentication: import("./reducers/authentication/types").AuthenticationState;
|
222
|
+
header: import("./reducers/header/types").HeaderState;
|
223
|
+
saveQuery: string | null;
|
224
|
+
fullscreen: boolean;
|
225
|
+
clusters: import("./reducers/clusters/types").ClustersState;
|
226
|
+
}, any, import("@reduxjs/toolkit").Tuple<[import("redux").StoreEnhancer<{
|
227
|
+
dispatch: import("redux-thunk").ThunkDispatch<{
|
228
|
+
singleClusterMode: boolean;
|
229
|
+
nodes: import("./reducers/nodes/types").NodesState;
|
230
|
+
topNodesByLoad: import("./reducers/tenantOverview/topNodesByLoad/types").TopNodesByLoadState;
|
231
|
+
topNodesByCpu: import("./reducers/tenantOverview/topNodesByCpu/types").TopNodesByCpuState;
|
232
|
+
topNodesByMemory: import("./reducers/tenantOverview/topNodesByMemory/types").TopNodesByMemoryState;
|
233
|
+
cluster: import("./reducers/cluster/types").ClusterState;
|
234
|
+
clusterNodes: import("./reducers/clusterNodes/types").ClusterNodesState;
|
235
|
+
tenant: import("./reducers/tenant/types").TenantState;
|
236
|
+
storage: import("./reducers/storage/types").StorageState;
|
237
|
+
topStorageGroups: import("./reducers/tenantOverview/topStorageGroups/types").TopStorageGroupsState;
|
238
|
+
node: import("./reducers/node/types").NodeState;
|
239
|
+
tooltip: import("../types/store/tooltip").ITooltipState;
|
240
|
+
tablets: import("../types/store/tablets").ITabletsState;
|
241
|
+
schema: import("./reducers/schema/types").SchemaState;
|
242
|
+
overview: import("./reducers/overview/types").OverviewState;
|
243
|
+
olapStats: import("../types/store/olapStats").OlapStatsState;
|
244
|
+
host: import("../types/store/host").IHostState;
|
245
|
+
network: import("./reducers/network/types").NetworkState;
|
246
|
+
tenants: import("./reducers/tenants/types").TenantsState;
|
247
|
+
tablet: import("../types/store/tablet").ITabletState;
|
248
|
+
topic: import("../types/store/topic").ITopicState;
|
249
|
+
partitions: import("./reducers/partitions/types").PartitionsState;
|
250
|
+
pDisk: import("./reducers/pdisk/types").PDiskState;
|
251
|
+
executeQuery: import("../types/store/executeQuery").ExecuteQueryState;
|
252
|
+
explainQuery: import("../types/store/explainQuery").ExplainQueryState;
|
253
|
+
tabletsFilters: {
|
254
|
+
loading: boolean;
|
255
|
+
requestTime: number;
|
256
|
+
data: undefined;
|
257
|
+
wasLoaded: boolean;
|
258
|
+
stateFilter: never[];
|
259
|
+
typeFilter: never[];
|
260
|
+
} | {
|
261
|
+
tabletsData: any;
|
262
|
+
nodes: any;
|
263
|
+
loading: boolean;
|
264
|
+
wasLoaded: boolean;
|
265
|
+
timeoutForRequest: number;
|
266
|
+
error: undefined;
|
267
|
+
data: undefined;
|
268
|
+
stateFilter: never[];
|
269
|
+
typeFilter: never[];
|
270
|
+
} | {
|
271
|
+
error: any;
|
272
|
+
loading: boolean;
|
273
|
+
data: undefined;
|
274
|
+
wasLoaded: boolean;
|
275
|
+
stateFilter: never[];
|
276
|
+
typeFilter: never[];
|
277
|
+
} | {
|
278
|
+
stateFilter: any;
|
279
|
+
data: undefined;
|
280
|
+
loading: boolean;
|
281
|
+
wasLoaded: boolean;
|
282
|
+
typeFilter: never[];
|
283
|
+
} | {
|
284
|
+
typeFilter: any;
|
285
|
+
data: undefined;
|
286
|
+
loading: boolean;
|
287
|
+
wasLoaded: boolean;
|
288
|
+
stateFilter: never[];
|
289
|
+
};
|
290
|
+
heatmap: import("../types/store/heatmap").IHeatmapState;
|
291
|
+
settings: import("./reducers/settings/types").SettingsState;
|
292
|
+
preview: any;
|
293
|
+
nodesList: import("../types/store/nodesList").NodesListState;
|
294
|
+
describe: import("../types/store/describe").IDescribeState;
|
295
|
+
schemaAcl: import("./reducers/schemaAcl/types").SchemaAclState;
|
296
|
+
executeTopQueries: import("./reducers/executeTopQueries/types").ITopQueriesState;
|
297
|
+
executeTopTables: import("./reducers/tenantOverview/executeTopTables/types").TopTablesState;
|
298
|
+
tenantOverviewTopQueries: import("./reducers/tenantOverview/topQueries/types").TenantOverviewTopQueriesState;
|
299
|
+
healthcheckInfo: import("./reducers/healthcheckInfo/types").HealthcheckInfoState;
|
300
|
+
shardsWorkload: import("./reducers/shardsWorkload/types").IShardsWorkloadState;
|
301
|
+
tenantOverviewTopShards: import("./reducers/tenantOverview/topShards/types").TenantOverviewTopShardsState;
|
302
|
+
hotKeys: import("./reducers/hotKeys/types").HotKeysState;
|
303
|
+
authentication: import("./reducers/authentication/types").AuthenticationState;
|
304
|
+
header: import("./reducers/header/types").HeaderState;
|
305
|
+
saveQuery: string | null;
|
306
|
+
fullscreen: boolean;
|
307
|
+
clusters: import("./reducers/clusters/types").ClustersState;
|
308
|
+
}, undefined, UnknownAction>;
|
309
|
+
}, {}>, import("redux").StoreEnhancer<{}, {}>]>>;
|
310
|
+
};
|
@@ -0,0 +1,56 @@
|
|
1
|
+
import { configureStore as configureReduxStore } from '@reduxjs/toolkit';
|
2
|
+
import { createBrowserHistory } from 'history';
|
3
|
+
import { listenForHistoryChange } from 'redux-location-state';
|
4
|
+
import { getUrlData } from './getUrlData';
|
5
|
+
import getLocationMiddleware from './state-url-mapping';
|
6
|
+
import rootReducer from './reducers';
|
7
|
+
import { createApi } from '../services/api';
|
8
|
+
import { UPDATE_REF } from './reducers/tooltip';
|
9
|
+
export let backend, basename, clusterName;
|
10
|
+
function _configureStore(aRootReducer, history, preloadedState) {
|
11
|
+
const { locationMiddleware, reducersWithLocation } = getLocationMiddleware(history, aRootReducer);
|
12
|
+
const store = configureReduxStore({
|
13
|
+
reducer: reducersWithLocation,
|
14
|
+
preloadedState,
|
15
|
+
middleware: (getDefaultMiddleware) => getDefaultMiddleware({
|
16
|
+
immutableCheck: { ignoredPaths: ['tooltip.currentHoveredRef'] },
|
17
|
+
serializableCheck: {
|
18
|
+
ignoredPaths: ['tooltip.currentHoveredRef'],
|
19
|
+
ignoredActions: [UPDATE_REF],
|
20
|
+
},
|
21
|
+
}).concat(locationMiddleware),
|
22
|
+
});
|
23
|
+
return store;
|
24
|
+
}
|
25
|
+
export const webVersion = window.web_version;
|
26
|
+
export const customBackend = window.custom_backend;
|
27
|
+
export const metaBackend = window.meta_backend;
|
28
|
+
const isSingleClusterMode = `${metaBackend}` === 'undefined';
|
29
|
+
export function configureStore({ aRootReducer = rootReducer, singleClusterMode = isSingleClusterMode, api = createApi({ webVersion, withCredentials: !customBackend }), } = {}) {
|
30
|
+
({ backend, basename, clusterName } = getUrlData({
|
31
|
+
href: window.location.href,
|
32
|
+
singleClusterMode,
|
33
|
+
customBackend,
|
34
|
+
}));
|
35
|
+
const history = createBrowserHistory({ basename });
|
36
|
+
const store = _configureStore(aRootReducer, history, { singleClusterMode });
|
37
|
+
listenForHistoryChange(store, history);
|
38
|
+
// Interceptor to process OIDC auth
|
39
|
+
// @ts-expect-error
|
40
|
+
api._axios.interceptors.response.use(function (response) {
|
41
|
+
return Promise.resolve(response);
|
42
|
+
}, function (error) {
|
43
|
+
var _a;
|
44
|
+
const response = error.response;
|
45
|
+
// OIDC proxy returns 401 response with authUrl in it
|
46
|
+
// authUrl - external auth service link, after successful auth additional cookies will be appended
|
47
|
+
// that will allow access to clusters where OIDC proxy is a balancer
|
48
|
+
if (response && response.status === 401 && ((_a = response.data) === null || _a === void 0 ? void 0 : _a.authUrl)) {
|
49
|
+
return window.location.assign(response.data.authUrl);
|
50
|
+
}
|
51
|
+
return Promise.reject(error);
|
52
|
+
});
|
53
|
+
window.api = api;
|
54
|
+
window.store = store; // TODO: check is it really needed
|
55
|
+
return { history, store };
|
56
|
+
}
|
@@ -0,0 +1,168 @@
|
|
1
|
+
export declare const store: import("@reduxjs/toolkit").EnhancedStore<{
|
2
|
+
singleClusterMode: boolean;
|
3
|
+
nodes: import("./reducers/nodes/types").NodesState;
|
4
|
+
topNodesByLoad: import("./reducers/tenantOverview/topNodesByLoad/types").TopNodesByLoadState;
|
5
|
+
topNodesByCpu: import("./reducers/tenantOverview/topNodesByCpu/types").TopNodesByCpuState;
|
6
|
+
topNodesByMemory: import("./reducers/tenantOverview/topNodesByMemory/types").TopNodesByMemoryState;
|
7
|
+
cluster: import("./reducers/cluster/types").ClusterState;
|
8
|
+
clusterNodes: import("./reducers/clusterNodes/types").ClusterNodesState;
|
9
|
+
tenant: import("./reducers/tenant/types").TenantState;
|
10
|
+
storage: import("./reducers/storage/types").StorageState;
|
11
|
+
topStorageGroups: import("./reducers/tenantOverview/topStorageGroups/types").TopStorageGroupsState;
|
12
|
+
node: import("./reducers/node/types").NodeState;
|
13
|
+
tooltip: import("../types/store/tooltip").ITooltipState;
|
14
|
+
tablets: import("../types/store/tablets").ITabletsState;
|
15
|
+
schema: import("./reducers/schema/types").SchemaState;
|
16
|
+
overview: import("./reducers/overview/types").OverviewState;
|
17
|
+
olapStats: import("../types/store/olapStats").OlapStatsState;
|
18
|
+
host: import("../types/store/host").IHostState;
|
19
|
+
network: import("./reducers/network/types").NetworkState;
|
20
|
+
tenants: import("./reducers/tenants/types").TenantsState;
|
21
|
+
tablet: import("../types/store/tablet").ITabletState;
|
22
|
+
topic: import("../types/store/topic").ITopicState;
|
23
|
+
partitions: import("./reducers/partitions/types").PartitionsState;
|
24
|
+
pDisk: import("./reducers/pdisk/types").PDiskState;
|
25
|
+
executeQuery: import("../types/store/executeQuery").ExecuteQueryState;
|
26
|
+
explainQuery: import("../types/store/explainQuery").ExplainQueryState;
|
27
|
+
tabletsFilters: {
|
28
|
+
loading: boolean;
|
29
|
+
requestTime: number;
|
30
|
+
data: undefined;
|
31
|
+
wasLoaded: boolean;
|
32
|
+
stateFilter: never[];
|
33
|
+
typeFilter: never[];
|
34
|
+
} | {
|
35
|
+
tabletsData: any;
|
36
|
+
nodes: any;
|
37
|
+
loading: boolean;
|
38
|
+
wasLoaded: boolean;
|
39
|
+
timeoutForRequest: number;
|
40
|
+
error: undefined;
|
41
|
+
data: undefined;
|
42
|
+
stateFilter: never[];
|
43
|
+
typeFilter: never[];
|
44
|
+
} | {
|
45
|
+
error: any;
|
46
|
+
loading: boolean;
|
47
|
+
data: undefined;
|
48
|
+
wasLoaded: boolean;
|
49
|
+
stateFilter: never[];
|
50
|
+
typeFilter: never[];
|
51
|
+
} | {
|
52
|
+
stateFilter: any;
|
53
|
+
data: undefined;
|
54
|
+
loading: boolean;
|
55
|
+
wasLoaded: boolean;
|
56
|
+
typeFilter: never[];
|
57
|
+
} | {
|
58
|
+
typeFilter: any;
|
59
|
+
data: undefined;
|
60
|
+
loading: boolean;
|
61
|
+
wasLoaded: boolean;
|
62
|
+
stateFilter: never[];
|
63
|
+
};
|
64
|
+
heatmap: import("../types/store/heatmap").IHeatmapState;
|
65
|
+
settings: import("./reducers/settings/types").SettingsState;
|
66
|
+
preview: any;
|
67
|
+
nodesList: import("../types/store/nodesList").NodesListState;
|
68
|
+
describe: import("../types/store/describe").IDescribeState;
|
69
|
+
schemaAcl: import("./reducers/schemaAcl/types").SchemaAclState;
|
70
|
+
executeTopQueries: import("./reducers/executeTopQueries/types").ITopQueriesState;
|
71
|
+
executeTopTables: import("./reducers/tenantOverview/executeTopTables/types").TopTablesState;
|
72
|
+
tenantOverviewTopQueries: import("./reducers/tenantOverview/topQueries/types").TenantOverviewTopQueriesState;
|
73
|
+
healthcheckInfo: import("./reducers/healthcheckInfo/types").HealthcheckInfoState;
|
74
|
+
shardsWorkload: import("./reducers/shardsWorkload/types").IShardsWorkloadState;
|
75
|
+
tenantOverviewTopShards: import("./reducers/tenantOverview/topShards/types").TenantOverviewTopShardsState;
|
76
|
+
hotKeys: import("./reducers/hotKeys/types").HotKeysState;
|
77
|
+
authentication: import("./reducers/authentication/types").AuthenticationState;
|
78
|
+
header: import("./reducers/header/types").HeaderState;
|
79
|
+
saveQuery: string | null;
|
80
|
+
fullscreen: boolean;
|
81
|
+
clusters: import("./reducers/clusters/types").ClustersState;
|
82
|
+
}, any, import("@reduxjs/toolkit").Tuple<[import("redux").StoreEnhancer<{
|
83
|
+
dispatch: import("redux-thunk").ThunkDispatch<{
|
84
|
+
singleClusterMode: boolean;
|
85
|
+
nodes: import("./reducers/nodes/types").NodesState;
|
86
|
+
topNodesByLoad: import("./reducers/tenantOverview/topNodesByLoad/types").TopNodesByLoadState;
|
87
|
+
topNodesByCpu: import("./reducers/tenantOverview/topNodesByCpu/types").TopNodesByCpuState;
|
88
|
+
topNodesByMemory: import("./reducers/tenantOverview/topNodesByMemory/types").TopNodesByMemoryState;
|
89
|
+
cluster: import("./reducers/cluster/types").ClusterState;
|
90
|
+
clusterNodes: import("./reducers/clusterNodes/types").ClusterNodesState;
|
91
|
+
tenant: import("./reducers/tenant/types").TenantState;
|
92
|
+
storage: import("./reducers/storage/types").StorageState;
|
93
|
+
topStorageGroups: import("./reducers/tenantOverview/topStorageGroups/types").TopStorageGroupsState;
|
94
|
+
node: import("./reducers/node/types").NodeState;
|
95
|
+
tooltip: import("../types/store/tooltip").ITooltipState;
|
96
|
+
tablets: import("../types/store/tablets").ITabletsState;
|
97
|
+
schema: import("./reducers/schema/types").SchemaState;
|
98
|
+
overview: import("./reducers/overview/types").OverviewState;
|
99
|
+
olapStats: import("../types/store/olapStats").OlapStatsState;
|
100
|
+
host: import("../types/store/host").IHostState;
|
101
|
+
network: import("./reducers/network/types").NetworkState;
|
102
|
+
tenants: import("./reducers/tenants/types").TenantsState;
|
103
|
+
tablet: import("../types/store/tablet").ITabletState;
|
104
|
+
topic: import("../types/store/topic").ITopicState;
|
105
|
+
partitions: import("./reducers/partitions/types").PartitionsState;
|
106
|
+
pDisk: import("./reducers/pdisk/types").PDiskState;
|
107
|
+
executeQuery: import("../types/store/executeQuery").ExecuteQueryState;
|
108
|
+
explainQuery: import("../types/store/explainQuery").ExplainQueryState;
|
109
|
+
tabletsFilters: {
|
110
|
+
loading: boolean;
|
111
|
+
requestTime: number;
|
112
|
+
data: undefined;
|
113
|
+
wasLoaded: boolean;
|
114
|
+
stateFilter: never[];
|
115
|
+
typeFilter: never[];
|
116
|
+
} | {
|
117
|
+
tabletsData: any;
|
118
|
+
nodes: any;
|
119
|
+
loading: boolean;
|
120
|
+
wasLoaded: boolean;
|
121
|
+
timeoutForRequest: number;
|
122
|
+
error: undefined;
|
123
|
+
data: undefined;
|
124
|
+
stateFilter: never[];
|
125
|
+
typeFilter: never[];
|
126
|
+
} | {
|
127
|
+
error: any;
|
128
|
+
loading: boolean;
|
129
|
+
data: undefined;
|
130
|
+
wasLoaded: boolean;
|
131
|
+
stateFilter: never[];
|
132
|
+
typeFilter: never[];
|
133
|
+
} | {
|
134
|
+
stateFilter: any;
|
135
|
+
data: undefined;
|
136
|
+
loading: boolean;
|
137
|
+
wasLoaded: boolean;
|
138
|
+
typeFilter: never[];
|
139
|
+
} | {
|
140
|
+
typeFilter: any;
|
141
|
+
data: undefined;
|
142
|
+
loading: boolean;
|
143
|
+
wasLoaded: boolean;
|
144
|
+
stateFilter: never[];
|
145
|
+
};
|
146
|
+
heatmap: import("../types/store/heatmap").IHeatmapState;
|
147
|
+
settings: import("./reducers/settings/types").SettingsState;
|
148
|
+
preview: any;
|
149
|
+
nodesList: import("../types/store/nodesList").NodesListState;
|
150
|
+
describe: import("../types/store/describe").IDescribeState;
|
151
|
+
schemaAcl: import("./reducers/schemaAcl/types").SchemaAclState;
|
152
|
+
executeTopQueries: import("./reducers/executeTopQueries/types").ITopQueriesState;
|
153
|
+
executeTopTables: import("./reducers/tenantOverview/executeTopTables/types").TopTablesState;
|
154
|
+
tenantOverviewTopQueries: import("./reducers/tenantOverview/topQueries/types").TenantOverviewTopQueriesState;
|
155
|
+
healthcheckInfo: import("./reducers/healthcheckInfo/types").HealthcheckInfoState;
|
156
|
+
shardsWorkload: import("./reducers/shardsWorkload/types").IShardsWorkloadState;
|
157
|
+
tenantOverviewTopShards: import("./reducers/tenantOverview/topShards/types").TenantOverviewTopShardsState;
|
158
|
+
hotKeys: import("./reducers/hotKeys/types").HotKeysState;
|
159
|
+
authentication: import("./reducers/authentication/types").AuthenticationState;
|
160
|
+
header: import("./reducers/header/types").HeaderState;
|
161
|
+
saveQuery: string | null;
|
162
|
+
fullscreen: boolean;
|
163
|
+
clusters: import("./reducers/clusters/types").ClustersState;
|
164
|
+
}, undefined, import("redux").UnknownAction>;
|
165
|
+
}, {}>, import("redux").StoreEnhancer<{}, {}>]>>, history: import("history").History<unknown>;
|
166
|
+
export type GetState = typeof store.getState;
|
167
|
+
export type RootState = ReturnType<GetState>;
|
168
|
+
export type AppDispatch = typeof store.dispatch;
|
@@ -4,10 +4,10 @@ export declare const getUrlData: ({ href, singleClusterMode, customBackend, }: {
|
|
4
4
|
customBackend?: string | undefined;
|
5
5
|
}) => {
|
6
6
|
basename: string;
|
7
|
-
backend: string |
|
8
|
-
clusterName: string |
|
7
|
+
backend: string | undefined;
|
8
|
+
clusterName: string | undefined;
|
9
9
|
} | {
|
10
10
|
basename: string;
|
11
|
-
backend: string
|
11
|
+
backend: string;
|
12
12
|
clusterName?: undefined;
|
13
13
|
};
|
package/dist/store/getUrlData.js
CHANGED
@@ -4,20 +4,20 @@ export const getUrlData = ({ href, singleClusterMode, customBackend, }) => {
|
|
4
4
|
const { backend, clusterName } = url.parse(href, true).query;
|
5
5
|
return {
|
6
6
|
basename: '/',
|
7
|
-
backend,
|
8
|
-
clusterName,
|
7
|
+
backend: backend ? String(backend) : backend,
|
8
|
+
clusterName: clusterName ? String(clusterName) : clusterName,
|
9
9
|
};
|
10
10
|
}
|
11
11
|
else if (customBackend) {
|
12
12
|
const { backend } = url.parse(href, true).query;
|
13
13
|
return {
|
14
14
|
basename: '/',
|
15
|
-
backend: backend
|
15
|
+
backend: backend ? String(backend) : customBackend,
|
16
16
|
};
|
17
17
|
}
|
18
18
|
else {
|
19
19
|
const parsedPrefix = window.location.pathname.match(/.*(?=\/monitoring)/) || [];
|
20
|
-
const basenamePrefix =
|
20
|
+
const basenamePrefix = parsedPrefix.length > 0 ? parsedPrefix[0] : '';
|
21
21
|
const basename = [basenamePrefix, 'monitoring'].filter(Boolean).join('/');
|
22
22
|
return {
|
23
23
|
basename,
|