ydb-embedded-ui 6.6.0 → 6.7.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/package.json +4 -3
- package/dist/src/containers/App/App.d.ts +1 -1
- package/dist/{containers → src/containers}/App/App.scss +5 -0
- package/dist/src/containers/App/Content.js +1 -1
- package/dist/src/containers/App/appSlots.d.ts +1 -1
- package/dist/src/containers/AsideNavigation/Navigation.js +1 -3
- package/dist/src/containers/AsideNavigation/i18n/en.json +0 -2
- package/dist/src/containers/AsideNavigation/i18n/index.d.ts +1 -1
- package/dist/src/containers/AsideNavigation/i18n/index.js +1 -2
- package/dist/src/containers/Cluster/i18n/index.d.ts +1 -1
- package/dist/src/containers/Clusters/constants.d.ts +1 -1
- package/dist/src/containers/Header/Header.js +17 -21
- package/dist/{containers → src/containers}/Header/Header.scss +14 -5
- package/dist/src/containers/Header/breadcrumbs.js +65 -71
- package/dist/src/containers/Heatmap/Heatmap.js +3 -3
- package/dist/src/containers/Nodes/Nodes.js +4 -4
- package/dist/src/containers/Nodes/VirtualNodes.js +2 -2
- package/dist/src/containers/Storage/Storage.js +2 -2
- package/dist/src/containers/Tablets/Tablets.js +8 -8
- package/dist/src/containers/TabletsFilters/TabletsFilters.d.ts +2 -57
- package/dist/src/containers/TabletsFilters/TabletsFilters.js +70 -180
- package/dist/src/containers/Tenant/Acl/Acl.d.ts +3 -1
- package/dist/src/containers/Tenant/Acl/Acl.js +7 -17
- package/dist/src/containers/Tenant/Diagnostics/Autorefresh/AutorefreshControl.js +4 -5
- package/dist/src/containers/Tenant/Diagnostics/Consumers/Consumers.js +3 -3
- package/dist/src/containers/Tenant/Diagnostics/Describe/Describe.d.ts +2 -2
- package/dist/src/containers/Tenant/Diagnostics/Describe/Describe.js +5 -6
- package/dist/src/containers/Tenant/Diagnostics/DetailedOverview/DetailedOverview.d.ts +1 -0
- package/dist/src/containers/Tenant/Diagnostics/DetailedOverview/DetailedOverview.js +3 -5
- package/dist/src/containers/Tenant/Diagnostics/Diagnostics.d.ts +2 -0
- package/dist/src/containers/Tenant/Diagnostics/Diagnostics.js +26 -50
- package/dist/{containers → src/containers}/Tenant/Diagnostics/Diagnostics.scss +1 -1
- package/dist/src/containers/Tenant/Diagnostics/HotKeys/HotKeys.js +19 -58
- package/dist/src/containers/Tenant/Diagnostics/Network/Network.d.ts +2 -2
- package/dist/src/containers/Tenant/Diagnostics/Network/Network.js +5 -5
- package/dist/src/containers/Tenant/Diagnostics/Overview/AsyncReplicationInfo/AsyncReplicationInfo.js +1 -6
- package/dist/src/containers/Tenant/Diagnostics/Overview/ChangefeedInfo/ChangefeedInfo.d.ts +2 -1
- package/dist/src/containers/Tenant/Diagnostics/Overview/ChangefeedInfo/ChangefeedInfo.js +3 -8
- package/dist/src/containers/Tenant/Diagnostics/Overview/Overview.d.ts +2 -2
- package/dist/src/containers/Tenant/Diagnostics/Overview/Overview.js +19 -21
- package/dist/{containers → src/containers}/Tenant/Diagnostics/Overview/TableInfo/TableInfo.scss +0 -2
- package/dist/src/containers/Tenant/Diagnostics/Overview/TopicInfo/TopicInfo.d.ts +2 -1
- package/dist/src/containers/Tenant/Diagnostics/Overview/TopicInfo/TopicInfo.js +3 -8
- package/dist/src/containers/Tenant/Diagnostics/Overview/TopicStats/TopicStats.d.ts +3 -1
- package/dist/src/containers/Tenant/Diagnostics/Overview/TopicStats/TopicStats.js +5 -5
- package/dist/src/containers/Tenant/Diagnostics/Partitions/Partitions.js +4 -12
- package/dist/src/containers/Tenant/Diagnostics/TenantOverview/Healthcheck/Healthcheck.scss +100 -0
- package/dist/src/containers/Tenant/Diagnostics/TenantOverview/Healthcheck/HealthcheckDetails.d.ts +2 -5
- package/dist/src/containers/Tenant/Diagnostics/TenantOverview/Healthcheck/HealthcheckDetails.js +7 -2
- package/dist/src/containers/Tenant/Diagnostics/TenantOverview/Healthcheck/HealthcheckPreview.d.ts +1 -6
- package/dist/src/containers/Tenant/Diagnostics/TenantOverview/Healthcheck/HealthcheckPreview.js +22 -16
- package/dist/src/containers/Tenant/Diagnostics/TenantOverview/MetricsCards/MetricsCards.d.ts +2 -8
- package/dist/src/containers/Tenant/Diagnostics/TenantOverview/MetricsCards/MetricsCards.js +2 -2
- package/dist/src/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/TenantCpu.d.ts +2 -2
- package/dist/src/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/TenantCpu.js +2 -2
- package/dist/src/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/TopNodesByCpu.d.ts +2 -2
- package/dist/src/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/TopNodesByCpu.js +4 -4
- package/dist/src/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/TopNodesByLoad.d.ts +2 -2
- package/dist/src/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/TopNodesByLoad.js +4 -4
- package/dist/src/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/TopQueries.d.ts +2 -2
- package/dist/src/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/TopQueries.js +4 -4
- package/dist/src/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/TopShards.d.ts +2 -1
- package/dist/src/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/TopShards.js +5 -5
- package/dist/src/containers/Tenant/Diagnostics/TenantOverview/TenantDashboard/TenantDashboard.js +3 -3
- package/dist/src/containers/Tenant/Diagnostics/TenantOverview/TenantMemory/TenantMemory.d.ts +2 -2
- package/dist/src/containers/Tenant/Diagnostics/TenantOverview/TenantMemory/TenantMemory.js +2 -2
- package/dist/src/containers/Tenant/Diagnostics/TenantOverview/TenantMemory/TopNodesByMemory.d.ts +2 -2
- package/dist/src/containers/Tenant/Diagnostics/TenantOverview/TenantMemory/TopNodesByMemory.js +4 -4
- package/dist/src/containers/Tenant/Diagnostics/TenantOverview/TenantOverview.js +7 -9
- package/dist/src/containers/Tenant/Diagnostics/TenantOverview/TenantStorage/TopGroups.js +3 -3
- package/dist/src/containers/Tenant/Diagnostics/TenantOverview/TenantStorage/TopTables.js +3 -3
- package/dist/src/containers/Tenant/Diagnostics/TenantOverview/useHealthcheck.js +1 -1
- package/dist/src/containers/Tenant/Diagnostics/TopQueries/TopQueries.d.ts +2 -2
- package/dist/src/containers/Tenant/Diagnostics/TopQueries/TopQueries.js +5 -5
- package/dist/src/containers/Tenant/Diagnostics/TopShards/TopShards.d.ts +3 -2
- package/dist/src/containers/Tenant/Diagnostics/TopShards/TopShards.js +8 -8
- package/dist/src/containers/Tenant/Info/ExternalDataSource/ExternalDataSource.js +0 -6
- package/dist/src/containers/Tenant/Info/ExternalTable/ExternalTable.js +0 -6
- package/dist/src/containers/Tenant/Info/View/View.js +0 -6
- package/dist/src/containers/Tenant/ObjectGeneral/ObjectGeneral.d.ts +2 -1
- package/dist/src/containers/Tenant/ObjectGeneral/ObjectGeneral.js +7 -13
- package/dist/src/containers/Tenant/ObjectSummary/ObjectSummary.d.ts +4 -4
- package/dist/src/containers/Tenant/ObjectSummary/ObjectSummary.js +159 -63
- package/dist/src/containers/Tenant/Query/Issues/Issues.js +6 -5
- package/dist/src/containers/Tenant/Query/Preview/Preview.d.ts +2 -1
- package/dist/src/containers/Tenant/Query/Preview/Preview.js +6 -6
- package/dist/src/containers/Tenant/Query/Query.d.ts +1 -0
- package/dist/{containers → src/containers}/Tenant/Query/Query.scss +1 -1
- package/dist/src/containers/Tenant/Query/QueryEditor/QueryEditor.d.ts +2 -0
- package/dist/src/containers/Tenant/Query/QueryEditor/QueryEditor.js +9 -22
- package/dist/src/containers/Tenant/Query/i18n/en.json +1 -1
- package/dist/src/containers/Tenant/Schema/SchemaTree/SchemaTree.d.ts +1 -0
- package/dist/src/containers/Tenant/Schema/SchemaTree/SchemaTree.js +11 -19
- package/dist/src/containers/Tenant/Schema/SchemaViewer/SchemaViewer.d.ts +2 -2
- package/dist/src/containers/Tenant/Schema/SchemaViewer/SchemaViewer.js +13 -8
- package/dist/src/containers/Tenant/Schema/SchemaViewer/columns.d.ts +2 -1
- package/dist/src/containers/Tenant/Schema/SchemaViewer/columns.js +21 -2
- package/dist/src/containers/Tenant/Schema/SchemaViewer/i18n/en.json +1 -0
- package/dist/src/containers/Tenant/Schema/SchemaViewer/i18n/index.d.ts +1 -1
- package/dist/src/containers/Tenant/Schema/SchemaViewer/prepareData.js +2 -1
- package/dist/src/containers/Tenant/Schema/SchemaViewer/types.d.ts +1 -0
- package/dist/src/containers/Tenant/Tenant.js +20 -36
- package/dist/{containers → src/containers}/Tenant/Tenant.scss +4 -0
- package/dist/src/containers/Tenant/TenantNavigation/TenantNavigation.d.ts +2 -0
- package/dist/src/containers/Tenant/TenantNavigation/TenantNavigation.js +19 -0
- package/dist/src/containers/Tenant/TenantNavigation/TenantNavigation.scss +18 -0
- package/dist/src/containers/Tenant/TenantNavigation/useTenantNavigation.d.ts +9 -0
- package/dist/src/containers/Tenant/TenantNavigation/useTenantNavigation.js +44 -0
- package/dist/src/containers/Tenant/i18n/en.json +17 -0
- package/dist/src/containers/Tenant/i18n/index.d.ts +1 -1
- package/dist/src/containers/Tenant/utils/queryTemplates.d.ts +1 -0
- package/dist/src/containers/Tenant/utils/queryTemplates.js +12 -0
- package/dist/src/containers/Tenant/utils/schema.d.ts +1 -1
- package/dist/src/containers/Tenant/utils/schema.js +5 -6
- package/dist/src/containers/Tenant/utils/schemaActions.js +3 -1
- package/dist/src/lib.d.ts +3 -2
- package/dist/src/lib.js +2 -2
- package/dist/src/routes.d.ts +1 -1
- package/dist/src/routes.js +3 -1
- package/dist/src/services/api.d.ts +6 -1
- package/dist/src/services/api.js +23 -3
- package/dist/src/services/settings.d.ts +1 -0
- package/dist/src/services/settings.js +3 -2
- package/dist/src/store/configureStore.d.ts +36 -134
- package/dist/src/store/configureStore.js +2 -15
- package/dist/src/store/defaultStore.d.ts +17 -81
- package/dist/src/store/reducers/api.js +0 -1
- package/dist/src/store/reducers/authentication/authentication.d.ts +51 -243
- package/dist/src/store/reducers/healthcheckInfo/healthcheckInfo.d.ts +196 -849
- package/dist/src/store/reducers/healthcheckInfo/healthcheckInfo.js +3 -3
- package/dist/src/store/reducers/hotKeys/hotKeys.d.ts +6 -25
- package/dist/src/store/reducers/hotKeys/hotKeys.js +36 -49
- package/dist/src/store/reducers/index.d.ts +23 -100
- package/dist/src/store/reducers/index.js +0 -8
- package/dist/src/store/reducers/node/selectors.d.ts +0 -40
- package/dist/src/store/reducers/nodesList.d.ts +0 -40
- package/dist/src/store/reducers/schema/schema.d.ts +13 -149
- package/dist/src/store/reducers/schema/schema.js +45 -90
- package/dist/src/store/reducers/schema/types.d.ts +2 -21
- package/dist/src/store/reducers/schemaAcl/schemaAcl.d.ts +8 -135
- package/dist/src/store/reducers/schemaAcl/schemaAcl.js +18 -44
- package/dist/src/store/reducers/settings/settings.d.ts +17 -23
- package/dist/src/store/reducers/settings/settings.js +40 -33
- package/dist/src/store/reducers/settings/types.d.ts +1 -12
- package/dist/src/store/reducers/tablets.d.ts +288 -41
- package/dist/src/store/reducers/tablets.js +8 -4
- package/dist/src/store/reducers/tabletsFilters.d.ts +11 -164
- package/dist/src/store/reducers/tabletsFilters.js +14 -76
- package/dist/src/store/reducers/tenants/selectors.d.ts +8 -362
- package/dist/src/store/reducers/topic.d.ts +0 -600
- package/dist/src/store/state-url-mapping.js +0 -3
- package/dist/src/types/api/tenant.d.ts +1 -7
- package/dist/src/types/api/tenant.js +0 -8
- package/dist/src/utils/__test__/monitoring.test.js +1 -1
- package/dist/src/utils/constants.d.ts +1 -1
- package/dist/src/utils/constants.js +1 -1
- package/dist/src/utils/dataFormatters/dataFormatters.d.ts +2 -1
- package/dist/src/utils/dataFormatters/dataFormatters.js +7 -3
- package/dist/src/utils/hooks/index.d.ts +1 -0
- package/dist/src/utils/hooks/index.js +1 -0
- package/dist/src/utils/hooks/useAutoRefreshInterval.d.ts +1 -0
- package/dist/src/utils/hooks/useAutoRefreshInterval.js +5 -0
- package/dist/src/utils/monitoring.d.ts +2 -1
- package/dist/src/utils/monitoring.js +1 -4
- package/dist/src/utils/utils.js +2 -1
- package/package.json +4 -3
- package/dist/containers/Tenant/Diagnostics/TenantOverview/Healthcheck/Healthcheck.scss +0 -109
- package/dist/src/components/InfoViewer/schemaOverview/CDCStreamOverview.d.ts +0 -6
- package/dist/src/components/InfoViewer/schemaOverview/CDCStreamOverview.js +0 -17
- package/dist/src/components/InfoViewer/schemaOverview/PersQueueGroupOverview.d.ts +0 -6
- package/dist/src/components/InfoViewer/schemaOverview/PersQueueGroupOverview.js +0 -20
- package/dist/src/components/InfoViewer/schemaOverview/index.d.ts +0 -2
- package/dist/src/components/InfoViewer/schemaOverview/index.js +0 -2
- package/dist/src/containers/AsideNavigation/i18n/ru.json +0 -10
- package/dist/src/containers/AsideNavigation/useNavigationMenuItems.d.ts +0 -2
- package/dist/src/containers/AsideNavigation/useNavigationMenuItems.js +0 -54
- package/dist/src/store/reducers/host.d.ts +0 -130
- package/dist/src/store/reducers/host.js +0 -26
- package/dist/src/store/reducers/hotKeys/types.d.ts +0 -10
- package/dist/src/store/reducers/hotKeys/types.js +0 -1
- package/dist/src/store/reducers/schemaAcl/types.d.ts +0 -12
- package/dist/src/store/reducers/schemaAcl/types.js +0 -1
- package/dist/src/types/store/host.d.ts +0 -15
- package/dist/src/types/store/host.js +0 -1
- package/dist/styles/constants.scss +0 -9
- /package/dist/{assets → src/assets}/icons/cluster.svg +0 -0
- /package/dist/{assets → src/assets}/icons/databases.svg +0 -0
- /package/dist/{assets → src/assets}/icons/disableFullscreen.svg +0 -0
- /package/dist/{assets → src/assets}/icons/emptyState.svg +0 -0
- /package/dist/{assets → src/assets}/icons/key.svg +0 -0
- /package/dist/{assets → src/assets}/icons/monitoring.svg +0 -0
- /package/dist/{assets → src/assets}/icons/network.svg +0 -0
- /package/dist/{assets → src/assets}/icons/user-check.svg +0 -0
- /package/dist/{assets → src/assets}/icons/user-secret.svg +0 -0
- /package/dist/{assets → src/assets}/icons/ydb.svg +0 -0
- /package/dist/{assets → src/assets}/illustrations/dark/403.svg +0 -0
- /package/dist/{assets → src/assets}/illustrations/dark/error.svg +0 -0
- /package/dist/{assets → src/assets}/illustrations/dark/thumbsUp.svg +0 -0
- /package/dist/{assets → src/assets}/illustrations/light/403.svg +0 -0
- /package/dist/{assets → src/assets}/illustrations/light/error.svg +0 -0
- /package/dist/{assets → src/assets}/illustrations/light/thumbsUp.svg +0 -0
- /package/dist/{components → src/components}/BasicNodeViewer/BasicNodeViewer.scss +0 -0
- /package/dist/{components → src/components}/CellWithPopover/CellWithPopover.scss +0 -0
- /package/dist/{components → src/components}/CircularProgressBar/CircularProgressBar.scss +0 -0
- /package/dist/{components → src/components}/CriticalActionDialog/CriticalActionDialog.scss +0 -0
- /package/dist/{components → src/components}/DateRange/DateRange.scss +0 -0
- /package/dist/{components → src/components}/DiagnosticCard/DiagnosticCard.scss +0 -0
- /package/dist/{components → src/components}/DiskPageTitle/DiskPageTitle.scss +0 -0
- /package/dist/{components → src/components}/DiskStateProgressBar/DiskStateProgressBar.scss +0 -0
- /package/dist/{components → src/components}/Divider/Divider.scss +0 -0
- /package/dist/{components → src/components}/EmptyState/EmptyState.scss +0 -0
- /package/dist/{components → src/components}/EntityStatus/EntityStatus.scss +0 -0
- /package/dist/{components → src/components}/ErrorBoundary/ErrorBoundary.scss +0 -0
- /package/dist/{components → src/components}/FullNodeViewer/FullNodeViewer.scss +0 -0
- /package/dist/{components → src/components}/Fullscreen/Fullscreen.scss +0 -0
- /package/dist/{components → src/components}/InfoViewer/InfoViewer.scss +0 -0
- /package/dist/{components → src/components}/InfoViewerSkeleton/InfoViewerSkeleton.scss +0 -0
- /package/dist/{components → src/components}/LagPopoverContent/LagPopoverContent.scss +0 -0
- /package/dist/{components → src/components}/LinkWithIcon/LinkWithIcon.scss +0 -0
- /package/dist/{components → src/components}/Loader/Loader.scss +0 -0
- /package/dist/{components → src/components}/MetricChart/MetricChart.scss +0 -0
- /package/dist/{components → src/components}/MonitoringButton/MonitoringButton.scss +0 -0
- /package/dist/{components → src/components}/NodeHostWrapper/NodeHostWrapper.scss +0 -0
- /package/dist/{components → src/components}/PDiskInfo/PDiskInfo.scss +0 -0
- /package/dist/{components → src/components}/PDiskPopup/PDiskPopup.scss +0 -0
- /package/dist/{components → src/components}/PageMeta/PageMeta.scss +0 -0
- /package/dist/{components → src/components}/PoolBar/PoolBar.scss +0 -0
- /package/dist/{components → src/components}/PoolUsage/PoolUsage.scss +0 -0
- /package/dist/{components → src/components}/PoolsGraph/PoolsGraph.scss +0 -0
- /package/dist/{components → src/components}/ProgressViewer/ProgressViewer.scss +0 -0
- /package/dist/{components → src/components}/QueryExecutionStatus/QueryExecutionStatus.scss +0 -0
- /package/dist/{components → src/components}/QueryResultTable/QueryResultTable.scss +0 -0
- /package/dist/{components → src/components}/ResizeableDataTable/ResizeableDataTable.scss +0 -0
- /package/dist/{components → src/components}/Search/Search.scss +0 -0
- /package/dist/{components → src/components}/ShortyString/ShortyString.scss +0 -0
- /package/dist/{components → src/components}/SpeedMultiMeter/SpeedMultiMeter.scss +0 -0
- /package/dist/{components → src/components}/SplitPane/SplitPane.scss +0 -0
- /package/dist/{components → src/components}/Stack/Stack.scss +0 -0
- /package/dist/{components → src/components}/StatusIcon/StatusIcon.scss +0 -0
- /package/dist/{components → src/components}/TableSkeleton/TableSkeleton.scss +0 -0
- /package/dist/{components → src/components}/TableWithControlsLayout/TableWithControlsLayout.scss +0 -0
- /package/dist/{components → src/components}/Tablet/Tablet.scss +0 -0
- /package/dist/{components → src/components}/TabletIcon/TabletIcon.scss +0 -0
- /package/dist/{components → src/components}/TabletsOverall/TabletsOverall.scss +0 -0
- /package/dist/{components → src/components}/TabletsStatistic/TabletsStatistic.scss +0 -0
- /package/dist/{components → src/components}/Tag/Tag.scss +0 -0
- /package/dist/{components → src/components}/Tags/Tags.scss +0 -0
- /package/dist/{components → src/components}/TimeFrameSelector/TimeFrameSelector.scss +0 -0
- /package/dist/{components → src/components}/TooltipsContent/NodeEndpointsTooltipContent/NodeEndpointsTooltipContent.scss +0 -0
- /package/dist/{components → src/components}/TruncatedQuery/TruncatedQuery.scss +0 -0
- /package/dist/{components → src/components}/UsageLabel/UsageLabel.scss +0 -0
- /package/dist/{components → src/components}/User/User.scss +0 -0
- /package/dist/{components → src/components}/VDisk/VDisk.scss +0 -0
- /package/dist/{components → src/components}/VDiskInfo/VDiskInfo.scss +0 -0
- /package/dist/{components → src/components}/VDiskPopup/VDiskPopup.scss +0 -0
- /package/dist/{components → src/components}/VirtualTable/VirtualTable.scss +0 -0
- /package/dist/{containers → src/containers}/AppWithClusters/ExtendedCluster/ExtendedCluster.scss +0 -0
- /package/dist/{containers → src/containers}/AsideNavigation/AsideNavigation.scss +0 -0
- /package/dist/{containers → src/containers}/AsideNavigation/YdbInternalUser/YdbInternalUser.scss +0 -0
- /package/dist/{containers → src/containers}/Authentication/Authentication.scss +0 -0
- /package/dist/{containers → src/containers}/Cluster/Cluster.scss +0 -0
- /package/dist/{containers → src/containers}/Cluster/ClusterInfo/ClusterInfo.scss +0 -0
- /package/dist/{containers → src/containers}/Cluster/VersionsBar/VersionsBar.scss +0 -0
- /package/dist/{containers → src/containers}/Clusters/Clusters.scss +0 -0
- /package/dist/{containers → src/containers}/Heatmap/Heatmap.scss +0 -0
- /package/dist/{containers → src/containers}/Heatmap/Histogram/Histogram.scss +0 -0
- /package/dist/{containers → src/containers}/Node/Node.scss +0 -0
- /package/dist/{containers → src/containers}/Node/NodeStructure/NodeStructure.scss +0 -0
- /package/dist/{containers → src/containers}/Nodes/Nodes.scss +0 -0
- /package/dist/{containers → src/containers}/PDiskPage/PDiskPage.scss +0 -0
- /package/dist/{containers → src/containers}/ReduxTooltip/ReduxTooltip.scss +0 -0
- /package/dist/{containers → src/containers}/Storage/PDisk/PDisk.scss +0 -0
- /package/dist/{containers → src/containers}/Storage/Storage.scss +0 -0
- /package/dist/{containers → src/containers}/Storage/StorageGroups/StorageGroups.scss +0 -0
- /package/dist/{containers → src/containers}/Storage/StorageNodes/StorageNodes.scss +0 -0
- /package/dist/{containers → src/containers}/Storage/UsageFilter/UsageFilter.scss +0 -0
- /package/dist/{containers → src/containers}/Tablet/Tablet.scss +0 -0
- /package/dist/{containers → src/containers}/TabletsFilters/TabletsFilters.scss +0 -0
- /package/dist/{containers → src/containers}/Tenant/Acl/Acl.scss +0 -0
- /package/dist/{containers → src/containers}/Tenant/Diagnostics/Autorefresh/AutorefreshControl.scss +0 -0
- /package/dist/{containers → src/containers}/Tenant/Diagnostics/Consumers/Consumers.scss +0 -0
- /package/dist/{containers → src/containers}/Tenant/Diagnostics/Consumers/Headers/Headers.scss +0 -0
- /package/dist/{containers → src/containers}/Tenant/Diagnostics/Consumers/TopicStats/ConsumersTopicStats.scss +0 -0
- /package/dist/{containers → src/containers}/Tenant/Diagnostics/Consumers/columns/Columns.scss +0 -0
- /package/dist/{containers → src/containers}/Tenant/Diagnostics/Describe/Describe.scss +0 -0
- /package/dist/{containers → src/containers}/Tenant/Diagnostics/DetailedOverview/DetailedOverview.scss +0 -0
- /package/dist/{containers → src/containers}/Tenant/Diagnostics/HotKeys/HotKeys.scss +0 -0
- /package/dist/{containers → src/containers}/Tenant/Diagnostics/Network/Network.scss +0 -0
- /package/dist/{containers → src/containers}/Tenant/Diagnostics/Network/NodeNetwork/NodeNetwork.scss +0 -0
- /package/dist/{containers → src/containers}/Tenant/Diagnostics/Overview/AsyncReplicationPaths/AsyncReplicationPaths.scss +0 -0
- /package/dist/{containers → src/containers}/Tenant/Diagnostics/Overview/TopicStats/TopicStats.scss +0 -0
- /package/dist/{containers → src/containers}/Tenant/Diagnostics/Partitions/Headers/Headers.scss +0 -0
- /package/dist/{containers → src/containers}/Tenant/Diagnostics/Partitions/Partitions.scss +0 -0
- /package/dist/{containers → src/containers}/Tenant/Diagnostics/Partitions/columns/Columns.scss +0 -0
- /package/dist/{containers → src/containers}/Tenant/Diagnostics/TenantOverview/Healthcheck/IssuesViewer/IssueTree.scss +0 -0
- /package/dist/{containers → src/containers}/Tenant/Diagnostics/TenantOverview/Healthcheck/IssuesViewer/IssueTreeItem/IssueTreeItem.scss +0 -0
- /package/dist/{containers → src/containers}/Tenant/Diagnostics/TenantOverview/MetricsCards/MetricCard/MetricCard.scss +0 -0
- /package/dist/{containers → src/containers}/Tenant/Diagnostics/TenantOverview/MetricsCards/MetricsCards.scss +0 -0
- /package/dist/{containers → src/containers}/Tenant/Diagnostics/TenantOverview/TenantDashboard/TenantDashboard.scss +0 -0
- /package/dist/{containers → src/containers}/Tenant/Diagnostics/TenantOverview/TenantOverview.scss +0 -0
- /package/dist/{containers → src/containers}/Tenant/Diagnostics/TopQueries/TopQueries.scss +0 -0
- /package/dist/{containers → src/containers}/Tenant/Diagnostics/TopShards/TopShards.scss +0 -0
- /package/dist/{containers → src/containers}/Tenant/Info/ExternalDataSource/ExternalDataSource.scss +0 -0
- /package/dist/{containers → src/containers}/Tenant/Info/ExternalTable/ExternalTable.scss +0 -0
- /package/dist/{containers → src/containers}/Tenant/Info/View/View.scss +0 -0
- /package/dist/{containers → src/containers}/Tenant/ObjectGeneral/ObjectGeneral.scss +0 -0
- /package/dist/{containers → src/containers}/Tenant/ObjectSummary/ObjectSummary.scss +0 -0
- /package/dist/{containers → src/containers}/Tenant/Query/ExecuteResult/ExecuteResult.scss +0 -0
- /package/dist/{containers → src/containers}/Tenant/Query/ExplainResult/ExplainResult.scss +0 -0
- /package/dist/{containers → src/containers}/Tenant/Query/Issues/Issues.scss +0 -0
- /package/dist/{containers → src/containers}/Tenant/Query/Preview/Preview.scss +0 -0
- /package/dist/{containers → src/containers}/Tenant/Query/QueriesHistory/QueriesHistory.scss +0 -0
- /package/dist/{containers → src/containers}/Tenant/Query/QueryDuration/QueryDuration.scss +0 -0
- /package/dist/{containers → src/containers}/Tenant/Query/QueryEditor/QueryEditor.scss +0 -0
- /package/dist/{containers → src/containers}/Tenant/Query/QueryEditorControls/QueryEditorControls.scss +0 -0
- /package/dist/{containers → src/containers}/Tenant/Query/SaveQuery/SaveQuery.scss +0 -0
- /package/dist/{containers → src/containers}/Tenant/Query/SavedQueries/SavedQueries.scss +0 -0
- /package/dist/{containers → src/containers}/Tenant/Schema/SchemaViewer/SchemaViewer.scss +0 -0
- /package/dist/{containers → src/containers}/Tenant/utils/ToggleButton.scss +0 -0
- /package/dist/{containers → src/containers}/Tenants/Tenants.scss +0 -0
- /package/dist/{containers → src/containers}/UserSettings/UserSettings.scss +0 -0
- /package/dist/{containers → src/containers}/VDiskPage/VDiskPage.scss +0 -0
- /package/dist/{containers → src/containers}/Versions/GroupedNodesTree/GroupedNodesTree.scss +0 -0
- /package/dist/{containers → src/containers}/Versions/NodesTreeTitle/NodesTreeTitle.scss +0 -0
- /package/dist/{containers → src/containers}/Versions/Versions.scss +0 -0
- /package/dist/{index.css → src/index.css} +0 -0
- /package/dist/{styles → src/styles}/mixins.scss +0 -0
- /package/dist/{styles → src/styles}/themes/dark-hc.scss +0 -0
- /package/dist/{styles → src/styles}/themes/dark.scss +0 -0
- /package/dist/{styles → src/styles}/themes/light-hc.scss +0 -0
- /package/dist/{styles → src/styles}/themes/light.scss +0 -0
- /package/dist/{styles → src/styles}/themes.scss +0 -0
@@ -112,13 +112,7 @@ export interface TTenantResource {
|
|
112
112
|
export interface ControlPlane {
|
113
113
|
name?: string;
|
114
114
|
}
|
115
|
-
export
|
116
|
-
'UnknownTenantType' = "UnknownTenantType",
|
117
|
-
'Domain' = "Domain",
|
118
|
-
'Dedicated' = "Dedicated",
|
119
|
-
'Shared' = "Shared",
|
120
|
-
'Serverless' = "Serverless"
|
121
|
-
}
|
115
|
+
export type ETenantType = 'UnknownTenantType' | 'Domain' | 'Dedicated' | 'Shared' | 'Serverless';
|
122
116
|
export declare enum State {
|
123
117
|
'STATE_UNSPECIFIED' = "STATE_UNSPECIFIED",
|
124
118
|
'CREATING' = "CREATING",
|
@@ -1,11 +1,3 @@
|
|
1
|
-
export var ETenantType;
|
2
|
-
(function (ETenantType) {
|
3
|
-
ETenantType["UnknownTenantType"] = "UnknownTenantType";
|
4
|
-
ETenantType["Domain"] = "Domain";
|
5
|
-
ETenantType["Dedicated"] = "Dedicated";
|
6
|
-
ETenantType["Shared"] = "Shared";
|
7
|
-
ETenantType["Serverless"] = "Serverless";
|
8
|
-
})(ETenantType || (ETenantType = {}));
|
9
1
|
export var State;
|
10
2
|
(function (State) {
|
11
3
|
State["STATE_UNSPECIFIED"] = "STATE_UNSPECIFIED";
|
@@ -11,7 +11,7 @@ describe('getMonitoringLink', () => {
|
|
11
11
|
monitoring: solomonString,
|
12
12
|
clusterName: 'global',
|
13
13
|
dbName: 'database',
|
14
|
-
dbType: '
|
14
|
+
dbType: 'Dedicated',
|
15
15
|
})).toBe('https://monitoring.test.ai/projects/yc.ydb.ydbaas-cloud/dashboards/aol34hftdn7o4fls50sv?p.cluster=global&p.host=cluster&p.slot=static&p.database=database');
|
16
16
|
});
|
17
17
|
it('should create cluster monitoring link from JSON', () => {
|
@@ -104,4 +104,4 @@ export declare const QUERY_USE_MULTI_SCHEMA_KEY = "queryUseMultiSchema";
|
|
104
104
|
export declare const USE_CLUSTER_BALANCER_AS_BACKEND_KEY = "useClusterBalancerAsBacked";
|
105
105
|
export declare const ENABLE_AUTOCOMPLETE = "enableAutocomplete";
|
106
106
|
export declare const AUTOCOMPLETE_ON_ENTER = "autocompleteOnEnter";
|
107
|
-
export declare const
|
107
|
+
export declare const IS_HOTKEYS_HELP_HIDDEN_KEY = "isHotKeysHelpHidden";
|
@@ -102,4 +102,4 @@ export const QUERY_USE_MULTI_SCHEMA_KEY = 'queryUseMultiSchema';
|
|
102
102
|
export const USE_CLUSTER_BALANCER_AS_BACKEND_KEY = 'useClusterBalancerAsBacked';
|
103
103
|
export const ENABLE_AUTOCOMPLETE = 'enableAutocomplete';
|
104
104
|
export const AUTOCOMPLETE_ON_ENTER = 'autocompleteOnEnter';
|
105
|
-
export const
|
105
|
+
export const IS_HOTKEYS_HELP_HIDDEN_KEY = 'isHotKeysHelpHidden';
|
@@ -14,9 +14,10 @@ export declare const formatStorageValues: (value?: number, total?: number, size?
|
|
14
14
|
export declare const formatStorageValuesToGb: (value?: number, total?: number) => string[];
|
15
15
|
export declare const formatStorageValuesToTb: (value?: number, total?: number) => string[];
|
16
16
|
export declare const formatNumber: (number?: unknown) => string;
|
17
|
+
export declare const formatSecondsToHours: (seconds: number) => string;
|
17
18
|
export declare const roundToPrecision: (value: number | string, precision?: number) => number;
|
18
19
|
export declare const formatCPU: (value?: number | string) => string | undefined;
|
19
20
|
export declare const formatCPUWithLabel: (value?: number) => string | undefined;
|
20
|
-
export declare const formatDateTime: (value?: number | string) => string;
|
21
|
+
export declare const formatDateTime: (value?: number | string, defaultValue?: string) => string;
|
21
22
|
export declare const calcUptimeInSeconds: (milliseconds: number | string) => number;
|
22
23
|
export declare const calcUptime: (milliseconds?: number | string) => string;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { dateTimeParse } from '@gravity-ui/date-utils';
|
2
2
|
import { formatBytes as formatBytesCustom, getSizeWithSignificantDigits, } from '../bytesParsers/formatBytes';
|
3
|
-
import { DAY_IN_SECONDS, GIGABYTE } from '../constants';
|
3
|
+
import { DAY_IN_SECONDS, GIGABYTE, HOUR_IN_SECONDS } from '../constants';
|
4
4
|
import { configuredNumeral } from '../numeral';
|
5
5
|
import { isNumeric } from '../utils';
|
6
6
|
import i18n from './i18n';
|
@@ -71,6 +71,10 @@ export const formatNumber = (number) => {
|
|
71
71
|
// "," in format is delimiter sign, not delimiter itself
|
72
72
|
return configuredNumeral(number).format('0,0.[00000]');
|
73
73
|
};
|
74
|
+
export const formatSecondsToHours = (seconds) => {
|
75
|
+
const hours = (seconds / HOUR_IN_SECONDS).toFixed(2);
|
76
|
+
return `${formatNumber(hours)} hours`;
|
77
|
+
};
|
74
78
|
export const roundToPrecision = (value, precision = 0) => {
|
75
79
|
let [digits] = String(value).split('.');
|
76
80
|
if (Number(value) < 1) {
|
@@ -99,13 +103,13 @@ export const formatCPUWithLabel = (value) => {
|
|
99
103
|
const localizedCores = configuredNumeral(cores).format('0.[000]');
|
100
104
|
return `${localizedCores} ${i18n('format-cpu.cores', { count: cores })}`;
|
101
105
|
};
|
102
|
-
export const formatDateTime = (value) => {
|
106
|
+
export const formatDateTime = (value, defaultValue = 'N/A') => {
|
103
107
|
var _a;
|
104
108
|
if (!isNumeric(value)) {
|
105
109
|
return '';
|
106
110
|
}
|
107
111
|
const formattedData = (_a = dateTimeParse(Number(value))) === null || _a === void 0 ? void 0 : _a.format('YYYY-MM-DD HH:mm');
|
108
|
-
return Number(value) > 0 && formattedData ? formattedData :
|
112
|
+
return Number(value) > 0 && formattedData ? formattedData : defaultValue;
|
109
113
|
};
|
110
114
|
export const calcUptimeInSeconds = (milliseconds) => {
|
111
115
|
const currentDate = new Date();
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare function useAutoRefreshInterval(): [number, (value: number) => void];
|
@@ -1,3 +1,4 @@
|
|
1
|
+
import type { ETenantType } from '../types/api/tenant';
|
1
2
|
export type ParsedMonitoringData = {
|
2
3
|
monitoring_url: string;
|
3
4
|
serverless_dashboard?: string;
|
@@ -10,7 +11,7 @@ export type ParsedMonitoringData = {
|
|
10
11
|
export interface GetMonitoringLinkProps {
|
11
12
|
monitoring: string;
|
12
13
|
dbName: string;
|
13
|
-
dbType:
|
14
|
+
dbType: ETenantType;
|
14
15
|
clusterName?: string;
|
15
16
|
}
|
16
17
|
export type GetMonitoringLink = typeof getMonitoringLink;
|
@@ -1,4 +1,3 @@
|
|
1
|
-
import { ETenantType } from '../types/api/tenant';
|
2
1
|
export function getMonitoringLink({ monitoring, dbName, dbType, clusterName, }) {
|
3
2
|
var _a, _b;
|
4
3
|
try {
|
@@ -9,9 +8,7 @@ export function getMonitoringLink({ monitoring, dbName, dbType, clusterName, })
|
|
9
8
|
const finalClusterName = data.cluster_name || clusterName || '';
|
10
9
|
const url = new URL(data.monitoring_url);
|
11
10
|
if (!url.search) {
|
12
|
-
const dashboard = dbType ===
|
13
|
-
? data.serverless_dashboard
|
14
|
-
: data.dedicated_dashboard;
|
11
|
+
const dashboard = dbType === 'Serverless' ? data.serverless_dashboard : data.dedicated_dashboard;
|
15
12
|
url.pathname += `/${dashboard}`;
|
16
13
|
}
|
17
14
|
if (!url.searchParams.has('p.cluster')) {
|
package/dist/src/utils/utils.js
CHANGED
@@ -25,8 +25,9 @@ export function bytesToSize(bytes) {
|
|
25
25
|
if (isNaN(bytes)) {
|
26
26
|
return '';
|
27
27
|
}
|
28
|
-
if (bytes < base)
|
28
|
+
if (bytes < base) {
|
29
29
|
return String(bytes);
|
30
|
+
}
|
30
31
|
let i = parseInt(Math.floor(Math.log(bytes) / Math.log(base)), 10);
|
31
32
|
if (i >= sizes.length) {
|
32
33
|
i = sizes.length - 1;
|
package/package.json
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
{
|
2
2
|
"name": "ydb-embedded-ui",
|
3
|
-
"version": "6.
|
3
|
+
"version": "6.7.0",
|
4
4
|
"files": [
|
5
5
|
"dist"
|
6
6
|
],
|
7
|
-
"main": "dist/lib.js",
|
7
|
+
"main": "dist/src/lib.js",
|
8
8
|
"repository": {
|
9
9
|
"type": "git",
|
10
10
|
"url": "git@github.com:ydb-platform/ydb-embedded-ui.git"
|
@@ -24,6 +24,7 @@
|
|
24
24
|
"@gravity-ui/websql-autocomplete": "^9.1.0",
|
25
25
|
"@reduxjs/toolkit": "^2.2.3",
|
26
26
|
"axios": "^1.6.8",
|
27
|
+
"axios-retry": "^4.4.0",
|
27
28
|
"colord": "^2.9.3",
|
28
29
|
"copy-to-clipboard": "^3.3.3",
|
29
30
|
"crc-32": "^1.2.2",
|
@@ -65,7 +66,7 @@
|
|
65
66
|
"lint:other": "npm run prettier -- --check",
|
66
67
|
"prettier": "prettier '**/*.{json,yaml,yml,md}'",
|
67
68
|
"unimported": "npx unimported --no-cache",
|
68
|
-
"package": "rm -rf dist && tsc -p tsconfig.package.json && copyfiles -u 1 'src/**/*.{css,scss,svg}' dist",
|
69
|
+
"package": "rm -rf dist && tsc -p tsconfig.package.json && copyfiles -u 1 'src/**/*.{css,scss,svg}' dist/src",
|
69
70
|
"test": "react-app-rewired test",
|
70
71
|
"eject": "react-scripts eject",
|
71
72
|
"prepublishOnly": "npm run package",
|
@@ -1,109 +0,0 @@
|
|
1
|
-
@import '../../../../../styles/mixins.scss';
|
2
|
-
|
3
|
-
.healthcheck {
|
4
|
-
display: flex;
|
5
|
-
|
6
|
-
&_expanded {
|
7
|
-
// Since most of the inner containers have fixed width, we can set fixed width here as well
|
8
|
-
// Thus we will get rid of unneeded layout shift when scrollbar appear
|
9
|
-
min-width: 885px;
|
10
|
-
}
|
11
|
-
|
12
|
-
&__issue-preview {
|
13
|
-
margin-bottom: 15px;
|
14
|
-
}
|
15
|
-
|
16
|
-
&__message-container {
|
17
|
-
padding: 15px 0;
|
18
|
-
}
|
19
|
-
|
20
|
-
&__details {
|
21
|
-
width: 872px;
|
22
|
-
}
|
23
|
-
|
24
|
-
&__details-content-wrapper {
|
25
|
-
overflow-x: hidden;
|
26
|
-
}
|
27
|
-
|
28
|
-
&__preview {
|
29
|
-
height: 100%;
|
30
|
-
}
|
31
|
-
|
32
|
-
&__preview-header {
|
33
|
-
gap: 8px;
|
34
|
-
|
35
|
-
margin-bottom: var(--diagnostics-section-title-margin);
|
36
|
-
}
|
37
|
-
|
38
|
-
&__preview-title {
|
39
|
-
font-weight: 600;
|
40
|
-
|
41
|
-
color: var(--g-color-text-link);
|
42
|
-
|
43
|
-
@include lead-typography();
|
44
|
-
}
|
45
|
-
|
46
|
-
&__preview-content {
|
47
|
-
line-height: 24px;
|
48
|
-
}
|
49
|
-
|
50
|
-
&__preview-title-wrapper {
|
51
|
-
display: flex;
|
52
|
-
align-items: center;
|
53
|
-
gap: 8px;
|
54
|
-
|
55
|
-
margin-bottom: 4px;
|
56
|
-
}
|
57
|
-
|
58
|
-
&__issues-statistics {
|
59
|
-
display: flex;
|
60
|
-
flex-wrap: wrap;
|
61
|
-
align-items: center;
|
62
|
-
gap: 10px;
|
63
|
-
|
64
|
-
margin: 8px 0;
|
65
|
-
}
|
66
|
-
|
67
|
-
&__self-check-status-indicator {
|
68
|
-
display: inline-block;
|
69
|
-
|
70
|
-
padding: 0 8px;
|
71
|
-
|
72
|
-
font-size: 13px;
|
73
|
-
line-height: 24px;
|
74
|
-
|
75
|
-
border-radius: 4px;
|
76
|
-
|
77
|
-
&_good,
|
78
|
-
&_green {
|
79
|
-
color: var(--g-color-text-positive);
|
80
|
-
background-color: var(--g-color-base-positive-light);
|
81
|
-
}
|
82
|
-
&_degraded,
|
83
|
-
&_yellow {
|
84
|
-
color: var(--g-color-text-warning);
|
85
|
-
background-color: var(--g-color-base-warning-light);
|
86
|
-
}
|
87
|
-
|
88
|
-
&_blue {
|
89
|
-
color: var(--g-color-text-info);
|
90
|
-
background-color: var(--g-color-base-info-light);
|
91
|
-
}
|
92
|
-
|
93
|
-
&_emergency,
|
94
|
-
&_red {
|
95
|
-
color: var(--g-color-text-danger);
|
96
|
-
background-color: var(--g-color-base-danger-light);
|
97
|
-
}
|
98
|
-
&_unspecified,
|
99
|
-
&_grey {
|
100
|
-
color: var(--g-color-text-misc);
|
101
|
-
background-color: var(--g-color-base-misc-light);
|
102
|
-
}
|
103
|
-
&_maintenance_required,
|
104
|
-
&_orange {
|
105
|
-
color: var(--g-color-text-warning-heavy);
|
106
|
-
background-color: var(--g-color-base-warning-light);
|
107
|
-
}
|
108
|
-
}
|
109
|
-
}
|
@@ -1,6 +0,0 @@
|
|
1
|
-
import type { TEvDescribeSchemeResult } from '../../../types/api/schema';
|
2
|
-
interface CDCStreamOverviewProps {
|
3
|
-
data?: TEvDescribeSchemeResult;
|
4
|
-
}
|
5
|
-
export declare const CDCStreamOverview: ({ data }: CDCStreamOverviewProps) => import("react/jsx-runtime").JSX.Element;
|
6
|
-
export {};
|
@@ -1,17 +0,0 @@
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
2
|
-
import React from 'react';
|
3
|
-
import { InfoViewer, formatObject } from '..';
|
4
|
-
import { formatCdcStreamItem, formatCommonItem } from '../formatters';
|
5
|
-
export const CDCStreamOverview = ({ data }) => {
|
6
|
-
var _a, _b, _c, _d, _e;
|
7
|
-
if (!data) {
|
8
|
-
return _jsx("div", { className: "error", children: "No CDC Stream data" });
|
9
|
-
}
|
10
|
-
const TableIndex = (_a = data.PathDescription) === null || _a === void 0 ? void 0 : _a.CdcStreamDescription;
|
11
|
-
const info = [];
|
12
|
-
info.push(formatCommonItem('PathType', (_c = (_b = data.PathDescription) === null || _b === void 0 ? void 0 : _b.Self) === null || _c === void 0 ? void 0 : _c.PathType));
|
13
|
-
info.push(formatCommonItem('CreateStep', (_e = (_d = data.PathDescription) === null || _d === void 0 ? void 0 : _d.Self) === null || _e === void 0 ? void 0 : _e.CreateStep));
|
14
|
-
const { Mode, Format } = TableIndex || {};
|
15
|
-
info.push(...formatObject(formatCdcStreamItem, { Mode, Format }));
|
16
|
-
return (_jsx(React.Fragment, { children: info.length ? _jsx(InfoViewer, { info: info }) : 'Empty' }));
|
17
|
-
};
|
@@ -1,6 +0,0 @@
|
|
1
|
-
import type { TEvDescribeSchemeResult } from '../../../types/api/schema';
|
2
|
-
interface PersQueueGroupOverviewProps {
|
3
|
-
data?: TEvDescribeSchemeResult;
|
4
|
-
}
|
5
|
-
export declare const PersQueueGroupOverview: ({ data }: PersQueueGroupOverviewProps) => import("react/jsx-runtime").JSX.Element;
|
6
|
-
export {};
|
@@ -1,20 +0,0 @@
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
2
|
-
import React from 'react';
|
3
|
-
import { InfoViewer } from '..';
|
4
|
-
import { formatCommonItem, formatPQGroupItem } from '../formatters';
|
5
|
-
export const PersQueueGroupOverview = ({ data }) => {
|
6
|
-
var _a, _b, _c, _d, _e;
|
7
|
-
if (!data) {
|
8
|
-
return _jsx("div", { className: "error", children: "No PersQueueGroup data" });
|
9
|
-
}
|
10
|
-
const pqGroup = (_a = data.PathDescription) === null || _a === void 0 ? void 0 : _a.PersQueueGroup;
|
11
|
-
const info = [];
|
12
|
-
info.push(formatCommonItem('PathType', (_c = (_b = data.PathDescription) === null || _b === void 0 ? void 0 : _b.Self) === null || _c === void 0 ? void 0 : _c.PathType));
|
13
|
-
info.push(formatCommonItem('CreateStep', (_e = (_d = data.PathDescription) === null || _d === void 0 ? void 0 : _d.Self) === null || _e === void 0 ? void 0 : _e.CreateStep));
|
14
|
-
//@ts-expect-error
|
15
|
-
info.push(formatPQGroupItem('Partitions', (pqGroup === null || pqGroup === void 0 ? void 0 : pqGroup.Partitions) || []));
|
16
|
-
info.push(
|
17
|
-
//@ts-expect-error
|
18
|
-
formatPQGroupItem('PQTabletConfig', (pqGroup === null || pqGroup === void 0 ? void 0 : pqGroup.PQTabletConfig) || { PartitionConfig: { LifetimeSeconds: 0 } }));
|
19
|
-
return (_jsx(React.Fragment, { children: info.length ? _jsx(InfoViewer, { info: info }) : 'Empty' }));
|
20
|
-
};
|
@@ -1,10 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"pages.query": "Редактор запросов",
|
3
|
-
"pages.diagnostics": "Диагностика",
|
4
|
-
"navigation-item.documentation": "Документация",
|
5
|
-
"navigation-item.settings": "Настройки",
|
6
|
-
"navigation-item.account": "Аккаунт",
|
7
|
-
"account.user": "Пользователь YDB",
|
8
|
-
"account.login": "Войти",
|
9
|
-
"account.logout": "Выйти"
|
10
|
-
}
|
@@ -1,54 +0,0 @@
|
|
1
|
-
import React from 'react';
|
2
|
-
import { Pulse, Terminal } from '@gravity-ui/icons';
|
3
|
-
import { useHistory, useLocation } from 'react-router';
|
4
|
-
import routes, { parseQuery } from '../../routes';
|
5
|
-
import { TENANT_PAGE, TENANT_PAGES_IDS } from '../../store/reducers/tenant/constants';
|
6
|
-
import { TENANT_INITIAL_PAGE_KEY } from '../../utils/constants';
|
7
|
-
import { useSetting, useTypedSelector } from '../../utils/hooks';
|
8
|
-
import { getTenantPath } from '../Tenant/TenantPages';
|
9
|
-
import i18n from './i18n';
|
10
|
-
export function useNavigationMenuItems() {
|
11
|
-
const location = useLocation();
|
12
|
-
const history = useHistory();
|
13
|
-
const [, setInitialTenantPage] = useSetting(TENANT_INITIAL_PAGE_KEY);
|
14
|
-
const { tenantPage } = useTypedSelector((state) => state.tenant);
|
15
|
-
const { pathname } = location;
|
16
|
-
const queryParams = parseQuery(location);
|
17
|
-
const isTenantPage = pathname === routes.tenant;
|
18
|
-
const menuItems = React.useMemo(() => {
|
19
|
-
if (!isTenantPage) {
|
20
|
-
return [];
|
21
|
-
}
|
22
|
-
const items = [
|
23
|
-
{
|
24
|
-
id: TENANT_PAGES_IDS.query,
|
25
|
-
title: i18n('pages.query'),
|
26
|
-
icon: Terminal,
|
27
|
-
iconSize: 20,
|
28
|
-
location: getTenantPath(Object.assign(Object.assign({}, queryParams), { [TENANT_PAGE]: TENANT_PAGES_IDS.query })),
|
29
|
-
},
|
30
|
-
{
|
31
|
-
id: TENANT_PAGES_IDS.diagnostics,
|
32
|
-
title: i18n('pages.diagnostics'),
|
33
|
-
icon: Pulse,
|
34
|
-
iconSize: 20,
|
35
|
-
location: getTenantPath(Object.assign(Object.assign({}, queryParams), { [TENANT_PAGE]: TENANT_PAGES_IDS.diagnostics })),
|
36
|
-
},
|
37
|
-
];
|
38
|
-
return items.map((item) => {
|
39
|
-
const current = item.id === tenantPage;
|
40
|
-
return {
|
41
|
-
id: item.id,
|
42
|
-
title: item.title,
|
43
|
-
icon: item.icon,
|
44
|
-
iconSize: item.iconSize,
|
45
|
-
current,
|
46
|
-
onItemClick: () => {
|
47
|
-
setInitialTenantPage(item.id);
|
48
|
-
history.push(item.location);
|
49
|
-
},
|
50
|
-
};
|
51
|
-
});
|
52
|
-
}, [tenantPage, isTenantPage, setInitialTenantPage, history, queryParams]);
|
53
|
-
return menuItems;
|
54
|
-
}
|
@@ -1,130 +0,0 @@
|
|
1
|
-
import type { Reducer } from '@reduxjs/toolkit';
|
2
|
-
import type { IHostAction, IHostState } from '../../types/store/host';
|
3
|
-
export declare const FETCH_HOST: {
|
4
|
-
readonly REQUEST: "host/FETCH_HOST_REQUEST";
|
5
|
-
readonly SUCCESS: "host/FETCH_HOST_SUCCESS";
|
6
|
-
readonly FAILURE: "host/FETCH_HOST_FAILURE";
|
7
|
-
};
|
8
|
-
declare const host: Reducer<IHostState, IHostAction>;
|
9
|
-
export declare function getHostInfo(): (dispatch: import("redux-thunk").ThunkDispatch<{
|
10
|
-
api: import("@reduxjs/toolkit/query").CombinedState<{}, "All", "api">;
|
11
|
-
singleClusterMode: boolean;
|
12
|
-
cluster: import("./cluster/types").ClusterState;
|
13
|
-
tenant: import("./tenant/types").TenantState;
|
14
|
-
tooltip: import("../../types/store/tooltip").ITooltipState;
|
15
|
-
tablets: import("../../types/store/tablets").TabletsState;
|
16
|
-
schema: import("./schema/types").SchemaState;
|
17
|
-
host: IHostState;
|
18
|
-
tenants: import("./tenants/types").TenantsState;
|
19
|
-
partitions: import("./partitions/types").PartitionsState;
|
20
|
-
executeQuery: import("../../types/store/executeQuery").ExecuteQueryState;
|
21
|
-
tabletsFilters: {
|
22
|
-
loading: boolean;
|
23
|
-
requestTime: number;
|
24
|
-
data: undefined;
|
25
|
-
wasLoaded: boolean;
|
26
|
-
stateFilter: never[];
|
27
|
-
typeFilter: never[];
|
28
|
-
} | {
|
29
|
-
tabletsData: any;
|
30
|
-
nodes: any;
|
31
|
-
loading: boolean;
|
32
|
-
wasLoaded: boolean;
|
33
|
-
timeoutForRequest: number;
|
34
|
-
error: undefined;
|
35
|
-
data: undefined;
|
36
|
-
stateFilter: never[];
|
37
|
-
typeFilter: never[];
|
38
|
-
} | {
|
39
|
-
error: any;
|
40
|
-
loading: boolean;
|
41
|
-
data: undefined;
|
42
|
-
wasLoaded: boolean;
|
43
|
-
stateFilter: never[];
|
44
|
-
typeFilter: never[];
|
45
|
-
} | {
|
46
|
-
stateFilter: any;
|
47
|
-
data: undefined;
|
48
|
-
loading: boolean;
|
49
|
-
wasLoaded: boolean;
|
50
|
-
typeFilter: never[];
|
51
|
-
} | {
|
52
|
-
typeFilter: any;
|
53
|
-
data: undefined;
|
54
|
-
loading: boolean;
|
55
|
-
wasLoaded: boolean;
|
56
|
-
stateFilter: never[];
|
57
|
-
};
|
58
|
-
heatmap: import("../../types/store/heatmap").IHeatmapState;
|
59
|
-
settings: import("./settings/types").SettingsState;
|
60
|
-
schemaAcl: import("./schemaAcl/types").SchemaAclState;
|
61
|
-
executeTopQueries: import("./executeTopQueries/types").TopQueriesFilters;
|
62
|
-
shardsWorkload: import("./shardsWorkload/types").ShardsWorkloadFilters;
|
63
|
-
hotKeys: import("./hotKeys/types").HotKeysState;
|
64
|
-
authentication: import("./authentication/types").AuthenticationState;
|
65
|
-
header: import("./header/types").HeaderState;
|
66
|
-
saveQuery: string | null;
|
67
|
-
fullscreen: boolean;
|
68
|
-
clusters: import("./clusters/types").ClustersFilters;
|
69
|
-
}, undefined, import("redux").UnknownAction> & import("redux").Dispatch<any>, getState: () => {
|
70
|
-
api: import("@reduxjs/toolkit/query").CombinedState<{}, "All", "api">;
|
71
|
-
singleClusterMode: boolean;
|
72
|
-
cluster: import("./cluster/types").ClusterState;
|
73
|
-
tenant: import("./tenant/types").TenantState;
|
74
|
-
tooltip: import("../../types/store/tooltip").ITooltipState;
|
75
|
-
tablets: import("../../types/store/tablets").TabletsState;
|
76
|
-
schema: import("./schema/types").SchemaState;
|
77
|
-
host: IHostState;
|
78
|
-
tenants: import("./tenants/types").TenantsState;
|
79
|
-
partitions: import("./partitions/types").PartitionsState;
|
80
|
-
executeQuery: import("../../types/store/executeQuery").ExecuteQueryState;
|
81
|
-
tabletsFilters: {
|
82
|
-
loading: boolean;
|
83
|
-
requestTime: number;
|
84
|
-
data: undefined;
|
85
|
-
wasLoaded: boolean;
|
86
|
-
stateFilter: never[];
|
87
|
-
typeFilter: never[];
|
88
|
-
} | {
|
89
|
-
tabletsData: any;
|
90
|
-
nodes: any;
|
91
|
-
loading: boolean;
|
92
|
-
wasLoaded: boolean;
|
93
|
-
timeoutForRequest: number;
|
94
|
-
error: undefined;
|
95
|
-
data: undefined;
|
96
|
-
stateFilter: never[];
|
97
|
-
typeFilter: never[];
|
98
|
-
} | {
|
99
|
-
error: any;
|
100
|
-
loading: boolean;
|
101
|
-
data: undefined;
|
102
|
-
wasLoaded: boolean;
|
103
|
-
stateFilter: never[];
|
104
|
-
typeFilter: never[];
|
105
|
-
} | {
|
106
|
-
stateFilter: any;
|
107
|
-
data: undefined;
|
108
|
-
loading: boolean;
|
109
|
-
wasLoaded: boolean;
|
110
|
-
typeFilter: never[];
|
111
|
-
} | {
|
112
|
-
typeFilter: any;
|
113
|
-
data: undefined;
|
114
|
-
loading: boolean;
|
115
|
-
wasLoaded: boolean;
|
116
|
-
stateFilter: never[];
|
117
|
-
};
|
118
|
-
heatmap: import("../../types/store/heatmap").IHeatmapState;
|
119
|
-
settings: import("./settings/types").SettingsState;
|
120
|
-
schemaAcl: import("./schemaAcl/types").SchemaAclState;
|
121
|
-
executeTopQueries: import("./executeTopQueries/types").TopQueriesFilters;
|
122
|
-
shardsWorkload: import("./shardsWorkload/types").ShardsWorkloadFilters;
|
123
|
-
hotKeys: import("./hotKeys/types").HotKeysState;
|
124
|
-
authentication: import("./authentication/types").AuthenticationState;
|
125
|
-
header: import("./header/types").HeaderState;
|
126
|
-
saveQuery: string | null;
|
127
|
-
fullscreen: boolean;
|
128
|
-
clusters: import("./clusters/types").ClustersFilters;
|
129
|
-
}) => Promise<unknown>;
|
130
|
-
export default host;
|
@@ -1,26 +0,0 @@
|
|
1
|
-
import { createApiRequest, createRequestActionTypes } from '../utils';
|
2
|
-
export const FETCH_HOST = createRequestActionTypes('host', 'FETCH_HOST');
|
3
|
-
const initialState = { loading: true, wasLoaded: false, data: {} };
|
4
|
-
const host = (state = initialState, action) => {
|
5
|
-
var _a;
|
6
|
-
switch (action.type) {
|
7
|
-
case FETCH_HOST.REQUEST: {
|
8
|
-
return Object.assign(Object.assign({}, state), { loading: true });
|
9
|
-
}
|
10
|
-
case FETCH_HOST.SUCCESS: {
|
11
|
-
return Object.assign(Object.assign({}, state), { data: (_a = action.data.SystemStateInfo) === null || _a === void 0 ? void 0 : _a[0], loading: false, wasLoaded: true, error: undefined });
|
12
|
-
}
|
13
|
-
case FETCH_HOST.FAILURE: {
|
14
|
-
return Object.assign(Object.assign({}, state), { error: action.error, loading: false });
|
15
|
-
}
|
16
|
-
default:
|
17
|
-
return state;
|
18
|
-
}
|
19
|
-
};
|
20
|
-
export function getHostInfo() {
|
21
|
-
return createApiRequest({
|
22
|
-
request: window.api.getHostInfo(),
|
23
|
-
actions: FETCH_HOST,
|
24
|
-
});
|
25
|
-
}
|
26
|
-
export default host;
|
@@ -1,10 +0,0 @@
|
|
1
|
-
import type { IResponseError } from '../../../types/api/error';
|
2
|
-
import type { HotKey } from '../../../types/api/hotkeys';
|
3
|
-
import type { setHotKeysData, setHotKeysDataWasNotLoaded, setHotKeysError, setHotKeysLoading } from './hotKeys';
|
4
|
-
export interface HotKeysState {
|
5
|
-
loading: boolean;
|
6
|
-
wasLoaded: boolean;
|
7
|
-
data: null | HotKey[];
|
8
|
-
error?: IResponseError;
|
9
|
-
}
|
10
|
-
export type HotKeysAction = ReturnType<typeof setHotKeysDataWasNotLoaded> | ReturnType<typeof setHotKeysLoading> | ReturnType<typeof setHotKeysData> | ReturnType<typeof setHotKeysError>;
|
@@ -1 +0,0 @@
|
|
1
|
-
export {};
|
@@ -1,12 +0,0 @@
|
|
1
|
-
import type { TACE, TMetaInfo } from '../../../types/api/acl';
|
2
|
-
import type { IResponseError } from '../../../types/api/error';
|
3
|
-
import type { ApiRequestAction } from '../../utils';
|
4
|
-
import type { FETCH_SCHEMA_ACL, setAclWasNotLoaded } from './schemaAcl';
|
5
|
-
export interface SchemaAclState {
|
6
|
-
loading: boolean;
|
7
|
-
wasLoaded: boolean;
|
8
|
-
acl?: TACE[];
|
9
|
-
owner?: string;
|
10
|
-
error?: IResponseError;
|
11
|
-
}
|
12
|
-
export type SchemaAclAction = ApiRequestAction<typeof FETCH_SCHEMA_ACL, TMetaInfo, IResponseError> | ReturnType<typeof setAclWasNotLoaded>;
|
@@ -1 +0,0 @@
|
|
1
|
-
export {};
|