ydb-embedded-ui 6.21.0 → 6.23.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/components/AutoRefreshControl/i18n/index.d.ts +1 -1
- package/dist/components/DiskStateProgressBar/DiskStateProgressBar.d.ts +2 -1
- package/dist/components/DiskStateProgressBar/DiskStateProgressBar.js +2 -2
- package/dist/components/DiskStateProgressBar/DiskStateProgressBar.js.map +1 -1
- package/dist/components/DiskStateProgressBar/DiskStateProgressBar.scss +4 -0
- package/dist/components/GroupInfo/i18n/index.d.ts +1 -1
- package/dist/components/PDiskInfo/PDiskInfo.js +1 -3
- package/dist/components/PDiskInfo/PDiskInfo.js.map +1 -1
- package/dist/components/PDiskInfo/i18n/index.d.ts +1 -1
- package/dist/components/PDiskPopup/PDiskPopup.d.ts +2 -4
- package/dist/components/PDiskPopup/PDiskPopup.js +10 -5
- package/dist/components/PDiskPopup/PDiskPopup.js.map +1 -1
- package/dist/components/PaginatedTable/PaginatedTable.d.ts +2 -1
- package/dist/components/PaginatedTable/PaginatedTable.js +9 -7
- package/dist/components/PaginatedTable/PaginatedTable.js.map +1 -1
- package/dist/components/PaginatedTable/TableChunk.d.ts +2 -1
- package/dist/components/PaginatedTable/TableChunk.js +5 -2
- package/dist/components/PaginatedTable/TableChunk.js.map +1 -1
- package/dist/components/QueryResultTable/Cell/Cell.js +1 -4
- package/dist/components/QueryResultTable/Cell/Cell.js.map +1 -1
- package/dist/components/QueryResultTable/QueryResultTable.js +11 -16
- package/dist/components/QueryResultTable/QueryResultTable.js.map +1 -1
- package/dist/components/QueryResultTable/utils/getColumnWidth.d.ts +7 -0
- package/dist/components/QueryResultTable/utils/getColumnWidth.js +16 -0
- package/dist/components/QueryResultTable/utils/getColumnWidth.js.map +1 -0
- package/dist/components/QueryResultTable/utils/getColumnWidth.test.d.ts +1 -0
- package/dist/components/QueryResultTable/utils/getColumnWidth.test.js +32 -0
- package/dist/components/QueryResultTable/utils/getColumnWidth.test.js.map +1 -0
- package/dist/components/StorageGroupInfo/StorageGroupInfo.js +7 -7
- package/dist/components/StorageGroupInfo/StorageGroupInfo.js.map +1 -1
- package/dist/components/StorageGroupInfo/i18n/index.d.ts +1 -1
- package/dist/components/TableSkeleton/TableSkeleton.d.ts +2 -1
- package/dist/components/TableSkeleton/TableSkeleton.js +5 -1
- package/dist/components/TableSkeleton/TableSkeleton.js.map +1 -1
- package/dist/components/TableSkeleton/TableSkeleton.scss +7 -1
- package/dist/components/VDisk/VDisk.d.ts +2 -3
- package/dist/components/VDisk/VDisk.js +2 -2
- package/dist/components/VDisk/VDisk.js.map +1 -1
- package/dist/components/VDiskInfo/VDiskInfo.js +1 -3
- package/dist/components/VDiskInfo/VDiskInfo.js.map +1 -1
- package/dist/components/VDiskInfo/i18n/index.d.ts +1 -1
- package/dist/components/VDiskPopup/VDiskPopup.d.ts +1 -3
- package/dist/components/VDiskPopup/VDiskPopup.js +7 -2
- package/dist/components/VDiskPopup/VDiskPopup.js.map +1 -1
- package/dist/containers/App/App.scss +1 -1
- package/dist/containers/Cluster/Cluster.js +1 -1
- package/dist/containers/Cluster/Cluster.js.map +1 -1
- package/dist/containers/Cluster/Cluster.scss +2 -3
- package/dist/containers/Cluster/i18n/index.d.ts +1 -1
- package/dist/containers/Clusters/Clusters.js +3 -3
- package/dist/containers/Clusters/Clusters.js.map +1 -1
- package/dist/containers/Clusters/columns.js +2 -2
- package/dist/containers/Clusters/columns.js.map +1 -1
- package/dist/containers/Clusters/constants.d.ts +4 -4
- package/dist/containers/Clusters/constants.js +3 -3
- package/dist/containers/Clusters/constants.js.map +1 -1
- package/dist/containers/Header/breadcrumbs.js +2 -3
- package/dist/containers/Header/breadcrumbs.js.map +1 -1
- package/dist/containers/Node/Node.js +14 -4
- package/dist/containers/Node/Node.js.map +1 -1
- package/dist/containers/Node/NodePages.js +4 -5
- package/dist/containers/Node/NodePages.js.map +1 -1
- package/dist/containers/Nodes/Nodes.js +10 -11
- package/dist/containers/Nodes/Nodes.js.map +1 -1
- package/dist/containers/Nodes/PaginatedNodes.js +10 -11
- package/dist/containers/Nodes/PaginatedNodes.js.map +1 -1
- package/dist/containers/Nodes/{getNodesColumns.d.ts → columns/columns.d.ts} +3 -10
- package/dist/containers/Nodes/{getNodesColumns.js → columns/columns.js} +37 -39
- package/dist/containers/Nodes/columns/columns.js.map +1 -0
- package/dist/containers/Nodes/columns/constants.d.ts +41 -0
- package/dist/containers/Nodes/columns/constants.js +83 -0
- package/dist/containers/Nodes/columns/constants.js.map +1 -0
- package/dist/containers/Nodes/columns/hooks.d.ts +6 -0
- package/dist/containers/Nodes/columns/hooks.js +11 -0
- package/dist/containers/Nodes/columns/hooks.js.map +1 -0
- package/dist/containers/Nodes/columns/i18n/en.json +17 -0
- package/dist/containers/Nodes/columns/i18n/index.d.ts +2 -0
- package/dist/containers/Nodes/columns/i18n/index.js +5 -0
- package/dist/containers/Nodes/columns/i18n/index.js.map +1 -0
- package/dist/containers/Nodes/columns/types.d.ts +9 -0
- package/dist/containers/Nodes/columns/types.js +2 -0
- package/dist/containers/Nodes/columns/types.js.map +1 -0
- package/dist/containers/Nodes/getNodes.d.ts +3 -2
- package/dist/containers/Nodes/getNodes.js +6 -3
- package/dist/containers/Nodes/getNodes.js.map +1 -1
- package/dist/containers/PDiskPage/PDiskPage.js +12 -10
- package/dist/containers/PDiskPage/PDiskPage.js.map +1 -1
- package/dist/containers/PDiskPage/PDiskPage.scss +14 -14
- package/dist/containers/PDiskPage/i18n/en.json +1 -1
- package/dist/containers/PDiskPage/i18n/index.d.ts +1 -1
- package/dist/containers/ReduxTooltip/ReduxTooltip.js +7 -7
- package/dist/containers/ReduxTooltip/ReduxTooltip.js.map +1 -1
- package/dist/containers/Storage/Disks/Disks.d.ts +3 -3
- package/dist/containers/Storage/Disks/Disks.js +6 -7
- package/dist/containers/Storage/Disks/Disks.js.map +1 -1
- package/dist/containers/Storage/PDisk/PDisk.d.ts +5 -4
- package/dist/containers/Storage/PDisk/PDisk.js +3 -2
- package/dist/containers/Storage/PDisk/PDisk.js.map +1 -1
- package/dist/containers/Storage/PDisk/PDisk.scss +1 -1
- package/dist/containers/Storage/PaginatedStorage.d.ts +5 -6
- package/dist/containers/Storage/PaginatedStorage.js +9 -54
- package/dist/containers/Storage/PaginatedStorage.js.map +1 -1
- package/dist/containers/Storage/PaginatedStorageGroups.d.ts +3 -0
- package/dist/containers/Storage/PaginatedStorageGroups.js +84 -0
- package/dist/containers/Storage/PaginatedStorageGroups.js.map +1 -0
- package/dist/containers/Storage/PaginatedStorageNodes.d.ts +3 -0
- package/dist/containers/Storage/PaginatedStorageNodes.js +98 -0
- package/dist/containers/Storage/PaginatedStorageNodes.js.map +1 -0
- package/dist/containers/Storage/Storage.d.ts +4 -4
- package/dist/containers/Storage/Storage.js +46 -67
- package/dist/containers/Storage/Storage.js.map +1 -1
- package/dist/containers/Storage/Storage.scss +4 -0
- package/dist/containers/Storage/StorageControls/StorageControls.d.ts +6 -16
- package/dist/containers/Storage/StorageControls/StorageControls.js +18 -9
- package/dist/containers/Storage/StorageControls/StorageControls.js.map +1 -1
- package/dist/containers/Storage/StorageGroups/PaginatedStorageGroupsTable.d.ts +22 -0
- package/dist/containers/Storage/StorageGroups/{PaginatedStorageGroups.js → PaginatedStorageGroupsTable.js} +24 -8
- package/dist/containers/Storage/StorageGroups/PaginatedStorageGroupsTable.js.map +1 -0
- package/dist/containers/Storage/StorageGroups/StorageGroupsTable.d.ts +14 -0
- package/dist/containers/Storage/StorageGroups/{StorageGroups.js → StorageGroupsTable.js} +5 -6
- package/dist/containers/Storage/StorageGroups/StorageGroupsTable.js.map +1 -0
- package/dist/containers/Storage/StorageGroups/columns/columns.d.ts +4 -0
- package/dist/containers/Storage/StorageGroups/columns/{getStorageGroupsColumns.js → columns.js} +66 -89
- package/dist/containers/Storage/StorageGroups/columns/columns.js.map +1 -0
- package/dist/containers/Storage/StorageGroups/columns/constants.d.ts +54 -0
- package/dist/containers/Storage/StorageGroups/columns/constants.js +120 -0
- package/dist/containers/Storage/StorageGroups/columns/constants.js.map +1 -0
- package/dist/containers/Storage/StorageGroups/columns/hooks.d.ts +7 -3
- package/dist/containers/Storage/StorageGroups/columns/hooks.js +21 -16
- package/dist/containers/Storage/StorageGroups/columns/hooks.js.map +1 -1
- package/dist/containers/Storage/StorageGroups/columns/i18n/en.json +21 -0
- package/dist/containers/Storage/StorageGroups/columns/i18n/index.d.ts +2 -0
- package/dist/containers/Storage/StorageGroups/columns/i18n/index.js +5 -0
- package/dist/containers/Storage/StorageGroups/columns/i18n/index.js.map +1 -0
- package/dist/containers/Storage/StorageGroups/columns/types.d.ts +5 -7
- package/dist/containers/Storage/StorageGroups/getGroups.js +10 -6
- package/dist/containers/Storage/StorageGroups/getGroups.js.map +1 -1
- package/dist/containers/Storage/StorageNodes/PaginatedStorageNodesTable.d.ts +23 -0
- package/dist/containers/Storage/StorageNodes/{PaginatedStorageNodes.js → PaginatedStorageNodesTable.js} +24 -9
- package/dist/containers/Storage/StorageNodes/PaginatedStorageNodesTable.js.map +1 -0
- package/dist/containers/Storage/StorageNodes/StorageNodes.scss +1 -27
- package/dist/containers/Storage/StorageNodes/StorageNodesTable.d.ts +16 -0
- package/dist/containers/Storage/StorageNodes/{StorageNodes.js → StorageNodesTable.js} +9 -9
- package/dist/containers/Storage/StorageNodes/StorageNodesTable.js.map +1 -0
- package/dist/containers/Storage/StorageNodes/columns/StorageNodesColumns.scss +24 -0
- package/dist/containers/Storage/StorageNodes/columns/columns.d.ts +39 -0
- package/dist/containers/Storage/StorageNodes/{getStorageNodesColumns.js → columns/columns.js} +20 -31
- package/dist/containers/Storage/StorageNodes/columns/columns.js.map +1 -0
- package/dist/containers/Storage/StorageNodes/columns/constants.d.ts +34 -0
- package/dist/containers/Storage/StorageNodes/columns/constants.js +74 -0
- package/dist/containers/Storage/StorageNodes/columns/constants.js.map +1 -0
- package/dist/containers/Storage/StorageNodes/columns/hooks.d.ts +43 -0
- package/dist/containers/Storage/StorageNodes/columns/hooks.js +18 -0
- package/dist/containers/Storage/StorageNodes/columns/hooks.js.map +1 -0
- package/dist/containers/Storage/StorageNodes/columns/i18n/en.json +11 -0
- package/dist/containers/Storage/StorageNodes/columns/i18n/index.d.ts +2 -0
- package/dist/containers/Storage/StorageNodes/columns/i18n/index.js +5 -0
- package/dist/containers/Storage/StorageNodes/columns/i18n/index.js.map +1 -0
- package/dist/containers/Storage/StorageNodes/columns/types.d.ts +11 -0
- package/dist/containers/Storage/StorageNodes/columns/types.js +2 -0
- package/dist/containers/Storage/StorageNodes/columns/types.js.map +1 -0
- package/dist/containers/Storage/StorageNodes/getNodes.d.ts +2 -2
- package/dist/containers/Storage/StorageNodes/getNodes.js +13 -9
- package/dist/containers/Storage/StorageNodes/getNodes.js.map +1 -1
- package/dist/containers/Storage/StorageNodes/shared.js +1 -1
- package/dist/containers/Storage/StorageNodes/shared.js.map +1 -1
- package/dist/containers/Storage/StorageWrapper.d.ts +0 -2
- package/dist/containers/Storage/StorageWrapper.js.map +1 -1
- package/dist/containers/Storage/TableGroup/TableGroup.d.ts +12 -0
- package/dist/containers/Storage/TableGroup/TableGroup.js +21 -0
- package/dist/containers/Storage/TableGroup/TableGroup.js.map +1 -0
- package/dist/containers/Storage/TableGroup/TableGroup.scss +49 -0
- package/dist/containers/Storage/TableGroup/useExpandedTableGroups.d.ts +5 -0
- package/dist/containers/Storage/TableGroup/useExpandedTableGroups.js +28 -0
- package/dist/containers/Storage/TableGroup/useExpandedTableGroups.js.map +1 -0
- package/dist/containers/Storage/i18n/en.json +4 -1
- package/dist/containers/Storage/i18n/index.d.ts +1 -1
- package/dist/containers/Storage/i18n/index.js +1 -2
- package/dist/containers/Storage/i18n/index.js.map +1 -1
- package/dist/containers/Storage/shared.d.ts +2 -0
- package/dist/containers/Storage/shared.js +9 -0
- package/dist/containers/Storage/shared.js.map +1 -1
- package/dist/containers/Storage/useStorageQueryParams.d.ts +18 -0
- package/dist/containers/Storage/useStorageQueryParams.js +64 -0
- package/dist/containers/Storage/useStorageQueryParams.js.map +1 -0
- package/dist/containers/Storage/utils/index.d.ts +6 -2
- package/dist/containers/Storage/utils/index.js +17 -11
- package/dist/containers/Storage/utils/index.js.map +1 -1
- package/dist/containers/StorageGroupPage/StorageGroupPage.js +14 -57
- package/dist/containers/StorageGroupPage/StorageGroupPage.js.map +1 -1
- package/dist/containers/StorageGroupPage/StorageGroupPage.scss +14 -17
- package/dist/containers/StorageGroupPage/i18n/en.json +1 -2
- package/dist/containers/StorageGroupPage/i18n/index.d.ts +1 -1
- package/dist/containers/Tablets/i18n/index.d.ts +1 -1
- package/dist/containers/Tenant/Diagnostics/Describe/Describe.js +17 -3
- package/dist/containers/Tenant/Diagnostics/Describe/Describe.js.map +1 -1
- package/dist/containers/Tenant/Diagnostics/Diagnostics.js +1 -1
- package/dist/containers/Tenant/Diagnostics/Diagnostics.js.map +1 -1
- package/dist/containers/Tenant/Diagnostics/DiagnosticsPages.d.ts +6 -3
- package/dist/containers/Tenant/Diagnostics/DiagnosticsPages.js +4 -4
- package/dist/containers/Tenant/Diagnostics/DiagnosticsPages.js.map +1 -1
- package/dist/containers/Tenant/Diagnostics/HotKeys/HotKeys.js +10 -3
- package/dist/containers/Tenant/Diagnostics/HotKeys/HotKeys.js.map +1 -1
- package/dist/containers/Tenant/Diagnostics/Overview/Overview.js +2 -3
- package/dist/containers/Tenant/Diagnostics/Overview/Overview.js.map +1 -1
- package/dist/containers/Tenant/Diagnostics/Partitions/Partitions.js +4 -4
- package/dist/containers/Tenant/Diagnostics/Partitions/Partitions.js.map +1 -1
- package/dist/containers/Tenant/Diagnostics/Partitions/utils/index.d.ts +2 -2
- package/dist/containers/Tenant/Diagnostics/Partitions/utils/index.js +5 -5
- package/dist/containers/Tenant/Diagnostics/Partitions/utils/index.js.map +1 -1
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/TopNodesByCpu.js +12 -5
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/TopNodesByCpu.js.map +1 -1
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/TopNodesByLoad.js +12 -5
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/TopNodesByLoad.js.map +1 -1
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantMemory/TopNodesByMemory.js +13 -5
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantMemory/TopNodesByMemory.js.map +1 -1
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantOverview.js +8 -2
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantOverview.js.map +1 -1
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantStorage/TopGroups.js +2 -1
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantStorage/TopGroups.js.map +1 -1
- package/dist/containers/Tenant/Diagnostics/TenantOverview/i18n/index.d.ts +1 -1
- package/dist/containers/Tenant/Diagnostics/TopQueries/RunningQueriesData.d.ts +5 -0
- package/dist/containers/Tenant/Diagnostics/TopQueries/RunningQueriesData.js +21 -0
- package/dist/containers/Tenant/Diagnostics/TopQueries/RunningQueriesData.js.map +1 -0
- package/dist/containers/Tenant/Diagnostics/TopQueries/TopQueries.d.ts +1 -3
- package/dist/containers/Tenant/Diagnostics/TopQueries/TopQueries.js +32 -37
- package/dist/containers/Tenant/Diagnostics/TopQueries/TopQueries.js.map +1 -1
- package/dist/containers/Tenant/Diagnostics/TopQueries/TopQueriesData.d.ts +6 -0
- package/dist/containers/Tenant/Diagnostics/TopQueries/TopQueriesData.js +33 -0
- package/dist/containers/Tenant/Diagnostics/TopQueries/TopQueriesData.js.map +1 -0
- package/dist/containers/Tenant/Diagnostics/TopQueries/getTopQueriesColumns.d.ts +2 -0
- package/dist/containers/Tenant/Diagnostics/TopQueries/getTopQueriesColumns.js +26 -0
- package/dist/containers/Tenant/Diagnostics/TopQueries/getTopQueriesColumns.js.map +1 -1
- package/dist/containers/Tenant/Diagnostics/TopQueries/i18n/en.json +7 -1
- package/dist/containers/Tenant/Diagnostics/TopQueries/i18n/index.d.ts +1 -1
- package/dist/containers/Tenant/Diagnostics/TopQueries/i18n/index.js +1 -2
- package/dist/containers/Tenant/Diagnostics/TopQueries/i18n/index.js.map +1 -1
- package/dist/containers/Tenant/ObjectSummary/ObjectSummary.js +71 -62
- package/dist/containers/Tenant/ObjectSummary/ObjectSummary.js.map +1 -1
- package/dist/containers/Tenant/ObjectSummary/ObjectSummary.scss +6 -7
- package/dist/containers/Tenant/ObjectSummary/ObjectTree.d.ts +6 -0
- package/dist/containers/Tenant/ObjectSummary/ObjectTree.js +25 -0
- package/dist/containers/Tenant/ObjectSummary/ObjectTree.js.map +1 -0
- package/dist/containers/Tenant/ObjectSummary/SchemaActions.d.ts +1 -0
- package/dist/containers/Tenant/ObjectSummary/SchemaActions.js +18 -0
- package/dist/containers/Tenant/ObjectSummary/SchemaActions.js.map +1 -0
- package/dist/containers/Tenant/ObjectSummary/__test__/transformPath.test.js +27 -3
- package/dist/containers/Tenant/ObjectSummary/__test__/transformPath.test.js.map +1 -1
- package/dist/containers/Tenant/ObjectSummary/i18n/en.json +21 -0
- package/dist/containers/Tenant/ObjectSummary/i18n/index.d.ts +2 -0
- package/dist/containers/Tenant/ObjectSummary/i18n/index.js +5 -0
- package/dist/containers/Tenant/ObjectSummary/i18n/index.js.map +1 -0
- package/dist/containers/Tenant/ObjectSummary/shared.d.ts +1 -0
- package/dist/containers/Tenant/ObjectSummary/shared.js +3 -0
- package/dist/containers/Tenant/ObjectSummary/shared.js.map +1 -0
- package/dist/containers/Tenant/ObjectSummary/transformPath.d.ts +2 -0
- package/dist/containers/Tenant/ObjectSummary/transformPath.js +10 -0
- package/dist/containers/Tenant/ObjectSummary/transformPath.js.map +1 -1
- package/dist/containers/Tenant/Query/ExecuteResult/ExecuteResult.js +14 -12
- package/dist/containers/Tenant/Query/ExecuteResult/ExecuteResult.js.map +1 -1
- package/dist/containers/Tenant/Query/ExecuteResult/ExecuteResult.scss +8 -0
- package/dist/containers/Tenant/Query/ExecuteResult/i18n/en.json +3 -1
- package/dist/containers/Tenant/Query/ExecuteResult/i18n/index.d.ts +1 -1
- package/dist/containers/Tenant/Query/NewSQL/NewSQL.d.ts +1 -0
- package/dist/containers/Tenant/Query/NewSQL/NewSQL.js +135 -0
- package/dist/containers/Tenant/Query/NewSQL/NewSQL.js.map +1 -0
- package/dist/containers/Tenant/Query/NewSQL/i18n/en.json +32 -0
- package/dist/containers/Tenant/Query/NewSQL/i18n/index.d.ts +2 -0
- package/dist/containers/Tenant/Query/NewSQL/i18n/index.js +5 -0
- package/dist/containers/Tenant/Query/NewSQL/i18n/index.js.map +1 -0
- package/dist/containers/Tenant/Query/QueryEditorControls/QueryEditorControls.js +2 -1
- package/dist/containers/Tenant/Query/QueryEditorControls/QueryEditorControls.js.map +1 -1
- package/dist/containers/Tenant/Query/QueryEditorControls/QueryEditorControls.scss +1 -0
- package/dist/containers/Tenant/Query/QueryEditorControls/utils/getChangedQueryExecutionSettings.js +3 -1
- package/dist/containers/Tenant/Query/QueryEditorControls/utils/getChangedQueryExecutionSettings.js.map +1 -1
- package/dist/containers/Tenant/Query/QueryEditorControls/utils/getChangedQueryExecutionSettings.test.js +5 -10
- package/dist/containers/Tenant/Query/QueryEditorControls/utils/getChangedQueryExecutionSettings.test.js.map +1 -1
- package/dist/containers/Tenant/Query/QueryEditorControls/utils/getChangedQueryExecutionSettingsDescription.js +5 -3
- package/dist/containers/Tenant/Query/QueryEditorControls/utils/getChangedQueryExecutionSettingsDescription.js.map +1 -1
- package/dist/containers/Tenant/Query/QueryEditorControls/utils/getChangedQueryExecutionSettingsDescription.test.js +6 -10
- package/dist/containers/Tenant/Query/QueryEditorControls/utils/getChangedQueryExecutionSettingsDescription.test.js.map +1 -1
- package/dist/containers/Tenant/Query/QuerySettingsDialog/QuerySettingsDialog.js +11 -2
- package/dist/containers/Tenant/Query/QuerySettingsDialog/QuerySettingsDialog.js.map +1 -1
- package/dist/containers/Tenant/Query/QuerySettingsDialog/QuerySettingsDialog.scss +1 -0
- package/dist/containers/Tenant/Query/QuerySettingsDialog/QuerySettingsSelect.d.ts +1 -0
- package/dist/containers/Tenant/Query/QuerySettingsDialog/QuerySettingsSelect.js +1 -1
- package/dist/containers/Tenant/Query/QuerySettingsDialog/QuerySettingsSelect.js.map +1 -1
- package/dist/containers/Tenant/Query/QuerySettingsDialog/constants.d.ts +3 -0
- package/dist/containers/Tenant/Query/QuerySettingsDialog/constants.js +3 -0
- package/dist/containers/Tenant/Query/QuerySettingsDialog/constants.js.map +1 -1
- package/dist/containers/Tenant/Query/QuerySettingsDialog/i18n/en.json +3 -0
- package/dist/containers/Tenant/Query/QuerySettingsDialog/i18n/index.d.ts +1 -1
- package/dist/containers/Tenant/Query/QuerySettingsDialog/i18n/ru.json +3 -0
- package/dist/containers/Tenant/Schema/SchemaTree/SchemaTree.js +1 -1
- package/dist/containers/Tenant/Schema/SchemaTree/SchemaTree.js.map +1 -1
- package/dist/containers/Tenant/Schema/SchemaViewer/SchemaViewer.js +10 -2
- package/dist/containers/Tenant/Schema/SchemaViewer/SchemaViewer.js.map +1 -1
- package/dist/containers/Tenant/Schema/SchemaViewer/prepareData.d.ts +2 -1
- package/dist/containers/Tenant/Schema/SchemaViewer/prepareData.js.map +1 -1
- package/dist/containers/Tenant/Tenant.js +7 -3
- package/dist/containers/Tenant/Tenant.js.map +1 -1
- package/dist/containers/Tenant/utils/newSQLQueryActions.d.ts +27 -0
- package/dist/containers/Tenant/utils/newSQLQueryActions.js +35 -0
- package/dist/containers/Tenant/utils/newSQLQueryActions.js.map +1 -0
- package/dist/containers/Tenant/utils/newSQLQueryTemplates.d.ts +24 -0
- package/dist/containers/Tenant/utils/newSQLQueryTemplates.js +228 -0
- package/dist/containers/Tenant/utils/newSQLQueryTemplates.js.map +1 -0
- package/dist/containers/Tenant/utils/schema.js +1 -0
- package/dist/containers/Tenant/utils/schema.js.map +1 -1
- package/dist/containers/Tenant/utils/schemaActions.d.ts +1 -1
- package/dist/containers/Tenant/utils/schemaActions.js +8 -6
- package/dist/containers/Tenant/utils/schemaActions.js.map +1 -1
- package/dist/containers/Tenant/utils/{queryTemplates.js → schemaQueryTemplates.js} +1 -1
- package/dist/containers/Tenant/utils/schemaQueryTemplates.js.map +1 -0
- package/dist/containers/UserSettings/i18n/en.json +0 -2
- package/dist/containers/UserSettings/i18n/index.d.ts +1 -1
- package/dist/containers/UserSettings/settings.d.ts +0 -1
- package/dist/containers/UserSettings/settings.js +2 -7
- package/dist/containers/UserSettings/settings.js.map +1 -1
- package/dist/containers/VDiskPage/VDiskPage.d.ts +0 -3
- package/dist/containers/VDiskPage/VDiskPage.js +9 -33
- package/dist/containers/VDiskPage/VDiskPage.js.map +1 -1
- package/dist/containers/VDiskPage/VDiskPage.scss +10 -19
- package/dist/containers/VDiskPage/i18n/en.json +1 -1
- package/dist/containers/VDiskPage/i18n/index.d.ts +1 -1
- package/dist/services/api.d.ts +16 -5
- package/dist/services/api.js +53 -14
- package/dist/services/api.js.map +1 -1
- package/dist/services/settings.d.ts +2 -2
- package/dist/services/settings.js +2 -3
- package/dist/services/settings.js.map +1 -1
- package/dist/store/configureStore.d.ts +2 -2
- package/dist/store/defaultStore.d.ts +1 -1
- package/dist/store/reducers/capabilities/capabilities.d.ts +8 -1
- package/dist/store/reducers/capabilities/capabilities.js +6 -1
- package/dist/store/reducers/capabilities/capabilities.js.map +1 -1
- package/dist/store/reducers/capabilities/hooks.d.ts +2 -0
- package/dist/store/reducers/capabilities/hooks.js +6 -0
- package/dist/store/reducers/capabilities/hooks.js.map +1 -1
- package/dist/store/reducers/executeQuery.js +3 -0
- package/dist/store/reducers/executeQuery.js.map +1 -1
- package/dist/store/reducers/executeTopQueries/executeTopQueries.d.ts +4 -0
- package/dist/store/reducers/executeTopQueries/executeTopQueries.js +27 -1
- package/dist/store/reducers/executeTopQueries/executeTopQueries.js.map +1 -1
- package/dist/store/reducers/index.d.ts +2 -2
- package/dist/store/reducers/nodes/nodes.d.ts +2 -2
- package/dist/store/reducers/nodes/nodes.js.map +1 -1
- package/dist/store/reducers/nodes/types.d.ts +3 -24
- package/dist/store/reducers/nodesList.d.ts +5 -5
- package/dist/store/reducers/nodesList.js +2 -2
- package/dist/store/reducers/nodesList.js.map +1 -1
- package/dist/store/reducers/overview/overview.js +5 -1
- package/dist/store/reducers/overview/overview.js.map +1 -1
- package/dist/store/reducers/pdisk/pdisk.js +29 -2
- package/dist/store/reducers/pdisk/pdisk.js.map +1 -1
- package/dist/store/reducers/pdisk/utils.js +1 -1
- package/dist/store/reducers/pdisk/utils.js.map +1 -1
- package/dist/store/reducers/storage/requestStorageData.d.ts +3 -3
- package/dist/store/reducers/storage/requestStorageData.js.map +1 -1
- package/dist/store/reducers/storage/selectors.d.ts +2 -3
- package/dist/store/reducers/storage/selectors.js +1 -27
- package/dist/store/reducers/storage/selectors.js.map +1 -1
- package/dist/store/reducers/storage/storage.d.ts +4 -4
- package/dist/store/reducers/storage/storage.js.map +1 -1
- package/dist/store/reducers/storage/types.d.ts +19 -10
- package/dist/store/reducers/storage/utils.js +27 -3
- package/dist/store/reducers/storage/utils.js.map +1 -1
- package/dist/store/reducers/tablet.js +5 -3
- package/dist/store/reducers/tablet.js.map +1 -1
- package/dist/store/reducers/tablets.d.ts +3 -3
- package/dist/store/reducers/tablets.js +4 -4
- package/dist/store/reducers/tablets.js.map +1 -1
- package/dist/store/reducers/tooltip.d.ts +1 -1
- package/dist/styles/mixins.scss +3 -3
- package/dist/types/api/capabilities.d.ts +1 -1
- package/dist/types/api/common.d.ts +1 -0
- package/dist/types/api/nodes.d.ts +34 -0
- package/dist/types/api/nodes.js.map +1 -1
- package/dist/types/api/query.d.ts +1 -0
- package/dist/types/api/storage.d.ts +29 -8
- package/dist/types/store/nodesList.d.ts +1 -1
- package/dist/types/store/query.d.ts +5 -8
- package/dist/utils/constants.d.ts +0 -8
- package/dist/utils/constants.js +0 -9
- package/dist/utils/constants.js.map +1 -1
- package/dist/utils/filters.d.ts +2 -1
- package/dist/utils/filters.js +1 -4
- package/dist/utils/filters.js.map +1 -1
- package/dist/utils/hooks/useChangedQuerySettings.d.ts +2 -2
- package/dist/utils/hooks/useChangedQuerySettings.js +2 -1
- package/dist/utils/hooks/useChangedQuerySettings.js.map +1 -1
- package/dist/utils/hooks/useLastQueryExecutionSettings.d.ts +15 -2
- package/dist/utils/hooks/useLastQueryExecutionSettings.js +8 -9
- package/dist/utils/hooks/useLastQueryExecutionSettings.js.map +1 -1
- package/dist/utils/hooks/useQueryExecutionSettings.d.ts +15 -2
- package/dist/utils/hooks/useQueryExecutionSettings.js +5 -7
- package/dist/utils/hooks/useQueryExecutionSettings.js.map +1 -1
- package/dist/utils/hooks/useSelectedColumns.d.ts +8 -0
- package/dist/utils/hooks/useSelectedColumns.js +40 -0
- package/dist/utils/hooks/useSelectedColumns.js.map +1 -0
- package/dist/utils/nodes.d.ts +5 -24
- package/dist/utils/nodes.js +20 -23
- package/dist/utils/nodes.js.map +1 -1
- package/dist/utils/query.d.ts +129 -0
- package/dist/utils/query.js +33 -1
- package/dist/utils/query.js.map +1 -1
- package/dist/utils/storage.d.ts +1 -1
- package/dist/utils/storage.js +2 -0
- package/dist/utils/storage.js.map +1 -1
- package/dist/utils/utils.js +2 -1
- package/dist/utils/utils.js.map +1 -1
- package/package.json +2 -1
- package/dist/containers/Clusters/useSelectedColumns.d.ts +0 -7
- package/dist/containers/Clusters/useSelectedColumns.js +0 -26
- package/dist/containers/Clusters/useSelectedColumns.js.map +0 -1
- package/dist/containers/Nodes/getNodesColumns.js.map +0 -1
- package/dist/containers/PDiskPage/PDiskGroups/PDiskGroups.d.ts +0 -6
- package/dist/containers/PDiskPage/PDiskGroups/PDiskGroups.js +0 -30
- package/dist/containers/PDiskPage/PDiskGroups/PDiskGroups.js.map +0 -1
- package/dist/containers/PDiskPage/PDiskGroups/utils.d.ts +0 -2
- package/dist/containers/PDiskPage/PDiskGroups/utils.js +0 -14
- package/dist/containers/PDiskPage/PDiskGroups/utils.js.map +0 -1
- package/dist/containers/Storage/StorageGroups/PaginatedStorageGroups.d.ts +0 -14
- package/dist/containers/Storage/StorageGroups/PaginatedStorageGroups.js.map +0 -1
- package/dist/containers/Storage/StorageGroups/StorageGroups.d.ts +0 -13
- package/dist/containers/Storage/StorageGroups/StorageGroups.js.map +0 -1
- package/dist/containers/Storage/StorageGroups/columns/getStorageGroupsColumns.d.ts +0 -21
- package/dist/containers/Storage/StorageGroups/columns/getStorageGroupsColumns.js.map +0 -1
- package/dist/containers/Storage/StorageNodes/PaginatedStorageNodes.d.ts +0 -17
- package/dist/containers/Storage/StorageNodes/PaginatedStorageNodes.js.map +0 -1
- package/dist/containers/Storage/StorageNodes/StorageNodes.d.ts +0 -19
- package/dist/containers/Storage/StorageNodes/StorageNodes.js.map +0 -1
- package/dist/containers/Storage/StorageNodes/getStorageNodesColumns.d.ts +0 -50
- package/dist/containers/Storage/StorageNodes/getStorageNodesColumns.js.map +0 -1
- package/dist/containers/Storage/UsageFilter/UsageFilter.d.ts +0 -14
- package/dist/containers/Storage/UsageFilter/UsageFilter.js +0 -39
- package/dist/containers/Storage/UsageFilter/UsageFilter.js.map +0 -1
- package/dist/containers/Storage/UsageFilter/UsageFilter.scss +0 -38
- package/dist/containers/Storage/UsageFilter/i18n/en.json +0 -5
- package/dist/containers/Storage/UsageFilter/i18n/index.d.ts +0 -2
- package/dist/containers/Storage/UsageFilter/i18n/index.js +0 -6
- package/dist/containers/Storage/UsageFilter/i18n/index.js.map +0 -1
- package/dist/containers/Storage/UsageFilter/i18n/ru.json +0 -5
- package/dist/containers/Storage/UsageFilter/index.d.ts +0 -1
- package/dist/containers/Storage/UsageFilter/index.js +0 -2
- package/dist/containers/Storage/UsageFilter/index.js.map +0 -1
- package/dist/containers/Storage/i18n/ru.json +0 -6
- package/dist/containers/Tenant/Diagnostics/TopQueries/i18n/ru.json +0 -4
- package/dist/containers/Tenant/utils/queryTemplates.js.map +0 -1
- package/dist/containers/VDiskPage/utils.d.ts +0 -2
- package/dist/containers/VDiskPage/utils.js +0 -7
- package/dist/containers/VDiskPage/utils.js.map +0 -1
- package/dist/store/reducers/describe.d.ts +0 -7
- package/dist/store/reducers/describe.js +0 -25
- package/dist/store/reducers/describe.js.map +0 -1
- package/dist/store/reducers/tenantOverview/topNodes/topNodes.d.ts +0 -4
- package/dist/store/reducers/tenantOverview/topNodes/topNodes.js +0 -27
- package/dist/store/reducers/tenantOverview/topNodes/topNodes.js.map +0 -1
- /package/dist/containers/Tenant/utils/{queryTemplates.d.ts → schemaQueryTemplates.d.ts} +0 -0
@@ -1,7 +1,7 @@
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
2
2
|
import React from 'react';
|
3
3
|
import { HelpPopover } from '@gravity-ui/components';
|
4
|
-
import { Tabs } from '@gravity-ui/uikit';
|
4
|
+
import { Flex, Tabs } from '@gravity-ui/uikit';
|
5
5
|
import qs from 'qs';
|
6
6
|
import { Link, useLocation } from 'react-router-dom';
|
7
7
|
import { StringParam, useQueryParam } from 'use-query-params';
|
@@ -10,29 +10,28 @@ import { ClipboardButton } from '../../../components/ClipboardButton';
|
|
10
10
|
import { toFormattedSize } from '../../../components/FormattedBytes/utils';
|
11
11
|
import { InfoViewer } from '../../../components/InfoViewer/InfoViewer';
|
12
12
|
import { LinkWithIcon } from '../../../components/LinkWithIcon/LinkWithIcon';
|
13
|
-
import { Loader } from '../../../components/Loader';
|
14
13
|
import SplitPane from '../../../components/SplitPane';
|
15
14
|
import routes, { createExternalUILink, createHref } from '../../../routes';
|
16
|
-
import {
|
15
|
+
import { overviewApi } from '../../../store/reducers/overview/overview';
|
17
16
|
import { TENANT_SUMMARY_TABS_IDS } from '../../../store/reducers/tenant/constants';
|
18
17
|
import { setSummaryTab } from '../../../store/reducers/tenant/tenant';
|
19
18
|
import { EPathSubType, EPathType } from '../../../types/api/schema';
|
20
|
-
import { cn } from '../../../utils/cn';
|
21
19
|
import { DEFAULT_IS_TENANT_COMMON_INFO_COLLAPSED, DEFAULT_SIZE_TENANT_SUMMARY_KEY, } from '../../../utils/constants';
|
22
20
|
import { formatDateTime, formatNumber, formatSecondsToHours, } from '../../../utils/dataFormatters/dataFormatters';
|
23
|
-
import { useTypedDispatch, useTypedSelector } from '../../../utils/hooks';
|
21
|
+
import { useAutoRefreshInterval, useTypedDispatch, useTypedSelector } from '../../../utils/hooks';
|
24
22
|
import { Acl } from '../Acl/Acl';
|
25
23
|
import { EntityTitle } from '../EntityTitle/EntityTitle';
|
26
|
-
import { SchemaTree } from '../Schema/SchemaTree/SchemaTree';
|
27
24
|
import { SchemaViewer } from '../Schema/SchemaViewer/SchemaViewer';
|
28
25
|
import { TENANT_INFO_TABS, TENANT_SCHEMA_TAB, TenantTabsGroups } from '../TenantPages';
|
29
|
-
import i18n from '../i18n';
|
30
26
|
import { getSummaryControls } from '../utils/controls';
|
31
27
|
import { PaneVisibilityActionTypes, PaneVisibilityToggleButtons, paneVisibilityToggleReducerCreator, } from '../utils/paneVisibilityToggleHelpers';
|
32
28
|
import { isIndexTableType, isTableType } from '../utils/schema';
|
33
|
-
import {
|
29
|
+
import { ObjectTree } from './ObjectTree';
|
30
|
+
import { SchemaActions } from './SchemaActions';
|
31
|
+
import i18n from './i18n';
|
32
|
+
import { b } from './shared';
|
33
|
+
import { isDomain, transformPath } from './transformPath';
|
34
34
|
import './ObjectSummary.scss';
|
35
|
-
const b = cn('object-summary');
|
36
35
|
const getTenantCommonInfoState = () => {
|
37
36
|
const collapsed = Boolean(localStorage.getItem(DEFAULT_IS_TENANT_COMMON_INFO_COLLAPSED));
|
38
37
|
return {
|
@@ -43,6 +42,7 @@ const getTenantCommonInfoState = () => {
|
|
43
42
|
};
|
44
43
|
export function ObjectSummary({ type, subType, tenantName, path, onCollapseSummary, onExpandSummary, isCollapsed, }) {
|
45
44
|
var _a;
|
45
|
+
const [autoRefreshInterval] = useAutoRefreshInterval();
|
46
46
|
const dispatch = useTypedDispatch();
|
47
47
|
const [, setCurrentPath] = useQueryParam('schema', StringParam);
|
48
48
|
const [commonInfoVisibilityState, dispatchCommonInfoVisibilityState] = React.useReducer(paneVisibilityToggleReducerCreator(DEFAULT_IS_TENANT_COMMON_INFO_COLLAPSED), undefined, getTenantCommonInfoState);
|
@@ -51,7 +51,13 @@ export function ObjectSummary({ type, subType, tenantName, path, onCollapseSumma
|
|
51
51
|
const queryParams = qs.parse(location.search, {
|
52
52
|
ignoreQueryPrefix: true,
|
53
53
|
});
|
54
|
-
const {
|
54
|
+
const { currentData } = overviewApi.useGetOverviewQuery({
|
55
|
+
paths: [path],
|
56
|
+
database: tenantName,
|
57
|
+
}, {
|
58
|
+
pollingInterval: autoRefreshInterval,
|
59
|
+
});
|
60
|
+
const { data: currentObjectData } = currentData !== null && currentData !== void 0 ? currentData : {};
|
55
61
|
const currentSchemaData = (_a = currentObjectData === null || currentObjectData === void 0 ? void 0 : currentObjectData.PathDescription) === null || _a === void 0 ? void 0 : _a.Self;
|
56
62
|
React.useEffect(() => {
|
57
63
|
const isTable = isTableType(type);
|
@@ -62,14 +68,14 @@ export function ObjectSummary({ type, subType, tenantName, path, onCollapseSumma
|
|
62
68
|
const renderTabs = () => {
|
63
69
|
const isTable = isTableType(type);
|
64
70
|
const tabsItems = isTable ? [...TENANT_INFO_TABS, ...TENANT_SCHEMA_TAB] : TENANT_INFO_TABS;
|
65
|
-
return (_jsx("div", { className: b('tabs'), children: _jsx(Tabs, { size: "l", items: tabsItems, activeTab: summaryTab, wrapTo: ({ id }, node) => {
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
71
|
+
return (_jsx("div", { className: b('tabs'), children: _jsxs(Flex, { className: b('tabs-inner'), justifyContent: "space-between", alignItems: "center", children: [_jsx(Tabs, { size: "l", items: tabsItems, activeTab: summaryTab, wrapTo: ({ id }, node) => {
|
72
|
+
const path = createHref(routes.tenant, undefined, {
|
73
|
+
...queryParams,
|
74
|
+
name: tenantName,
|
75
|
+
[TenantTabsGroups.summaryTab]: id,
|
76
|
+
});
|
77
|
+
return (_jsx(Link, { to: path, className: b('tab'), children: node }, id));
|
78
|
+
}, allowNotSelected: true }), summaryTab === TENANT_SUMMARY_TABS_IDS.schema && _jsx(SchemaActions, {})] }) }));
|
73
79
|
};
|
74
80
|
const renderObjectOverview = () => {
|
75
81
|
var _a;
|
@@ -78,41 +84,53 @@ export function ObjectSummary({ type, subType, tenantName, path, onCollapseSumma
|
|
78
84
|
}
|
79
85
|
const { CreateStep, PathType, PathSubType, PathId, PathVersion } = currentSchemaData;
|
80
86
|
const overview = [];
|
81
|
-
|
87
|
+
const normalizedType = isDomain(path, PathType)
|
88
|
+
? 'Domain'
|
89
|
+
: PathType === null || PathType === void 0 ? void 0 : PathType.replace(/^EPathType/, '');
|
90
|
+
overview.push({ label: i18n('field_type'), value: normalizedType });
|
82
91
|
if (PathSubType !== EPathSubType.EPathSubTypeEmpty) {
|
83
92
|
overview.push({
|
84
|
-
label: i18n('
|
93
|
+
label: i18n('field_subtype'),
|
85
94
|
value: PathSubType === null || PathSubType === void 0 ? void 0 : PathSubType.replace(/^EPathSubType/, ''),
|
86
95
|
});
|
87
96
|
}
|
88
|
-
overview.push({ label: i18n('
|
89
|
-
overview.push({ label: i18n('
|
97
|
+
overview.push({ label: i18n('field_id'), value: PathId });
|
98
|
+
overview.push({ label: i18n('field_version'), value: PathVersion });
|
90
99
|
overview.push({
|
91
|
-
label: i18n('
|
100
|
+
label: i18n('field_created'),
|
92
101
|
value: formatDateTime(CreateStep),
|
93
102
|
});
|
94
103
|
const { PathDescription } = currentObjectData;
|
95
104
|
if (PathDescription === null || PathDescription === void 0 ? void 0 : PathDescription.TableStats) {
|
96
105
|
const { DataSize, RowCount } = PathDescription.TableStats;
|
97
106
|
overview.push({
|
98
|
-
label: i18n('
|
107
|
+
label: i18n('field_data-size'),
|
99
108
|
value: toFormattedSize(DataSize),
|
100
109
|
}, {
|
101
|
-
label: i18n('
|
110
|
+
label: i18n('field_row-count'),
|
102
111
|
value: formatNumber(RowCount),
|
103
112
|
});
|
104
113
|
}
|
105
114
|
const title = _jsx(EntityTitle, { data: PathDescription });
|
106
115
|
const getDatabaseOverview = () => {
|
107
|
-
var _a
|
116
|
+
var _a;
|
117
|
+
const { PathsInside, ShardsInside, PathsLimit, ShardsLimit } = (_a = PathDescription === null || PathDescription === void 0 ? void 0 : PathDescription.DomainDescription) !== null && _a !== void 0 ? _a : {};
|
118
|
+
let paths = formatNumber(PathsInside);
|
119
|
+
let shards = formatNumber(ShardsInside);
|
120
|
+
if (paths && PathsLimit) {
|
121
|
+
paths = `${paths} / ${formatNumber(PathsLimit)}`;
|
122
|
+
}
|
123
|
+
if (shards && ShardsLimit) {
|
124
|
+
shards = `${shards} / ${formatNumber(ShardsLimit)}`;
|
125
|
+
}
|
108
126
|
return [
|
109
127
|
{
|
110
|
-
label: i18n('
|
111
|
-
value:
|
128
|
+
label: i18n('field_paths'),
|
129
|
+
value: paths,
|
112
130
|
},
|
113
131
|
{
|
114
|
-
label: i18n('
|
115
|
-
value:
|
132
|
+
label: i18n('field_shards'),
|
133
|
+
value: shards,
|
116
134
|
},
|
117
135
|
];
|
118
136
|
};
|
@@ -123,7 +141,7 @@ export function ObjectSummary({ type, subType, tenantName, path, onCollapseSumma
|
|
123
141
|
var _a;
|
124
142
|
return [
|
125
143
|
{
|
126
|
-
label: i18n('
|
144
|
+
label: i18n('field_partitions'),
|
127
145
|
value: (_a = PathDescription === null || PathDescription === void 0 ? void 0 : PathDescription.TablePartitions) === null || _a === void 0 ? void 0 : _a.length,
|
128
146
|
},
|
129
147
|
];
|
@@ -135,7 +153,7 @@ export function ObjectSummary({ type, subType, tenantName, path, onCollapseSumma
|
|
135
153
|
var _a, _b;
|
136
154
|
return [
|
137
155
|
{
|
138
|
-
label: i18n('
|
156
|
+
label: i18n('field_partitions'),
|
139
157
|
value: (_b = (_a = PathDescription === null || PathDescription === void 0 ? void 0 : PathDescription.ColumnStoreDescription) === null || _a === void 0 ? void 0 : _a.ColumnShards) === null || _b === void 0 ? void 0 : _b.length,
|
140
158
|
},
|
141
159
|
];
|
@@ -144,7 +162,7 @@ export function ObjectSummary({ type, subType, tenantName, path, onCollapseSumma
|
|
144
162
|
var _a, _b, _c;
|
145
163
|
return [
|
146
164
|
{
|
147
|
-
label: i18n('
|
165
|
+
label: i18n('field_partitions'),
|
148
166
|
value: (_c = (_b = (_a = PathDescription === null || PathDescription === void 0 ? void 0 : PathDescription.ColumnTableDescription) === null || _a === void 0 ? void 0 : _a.Sharding) === null || _b === void 0 ? void 0 : _b.ColumnShards) === null || _c === void 0 ? void 0 : _c.length,
|
149
167
|
},
|
150
168
|
];
|
@@ -153,11 +171,11 @@ export function ObjectSummary({ type, subType, tenantName, path, onCollapseSumma
|
|
153
171
|
const { Mode, Format } = (PathDescription === null || PathDescription === void 0 ? void 0 : PathDescription.CdcStreamDescription) || {};
|
154
172
|
return [
|
155
173
|
{
|
156
|
-
label: i18n('
|
174
|
+
label: i18n('field_mode'),
|
157
175
|
value: Mode === null || Mode === void 0 ? void 0 : Mode.replace(/^ECdcStreamMode/, ''),
|
158
176
|
},
|
159
177
|
{
|
160
|
-
label: i18n('
|
178
|
+
label: i18n('field_format'),
|
161
179
|
value: Format === null || Format === void 0 ? void 0 : Format.replace(/^ECdcStreamFormat/, ''),
|
162
180
|
},
|
163
181
|
];
|
@@ -168,11 +186,11 @@ export function ObjectSummary({ type, subType, tenantName, path, onCollapseSumma
|
|
168
186
|
const value = (_b = (_a = pqGroup === null || pqGroup === void 0 ? void 0 : pqGroup.PQTabletConfig) === null || _a === void 0 ? void 0 : _a.PartitionConfig) === null || _b === void 0 ? void 0 : _b.LifetimeSeconds;
|
169
187
|
return [
|
170
188
|
{
|
171
|
-
label: i18n('
|
189
|
+
label: i18n('field_partitions'),
|
172
190
|
value: (_c = pqGroup === null || pqGroup === void 0 ? void 0 : pqGroup.Partitions) === null || _c === void 0 ? void 0 : _c.length,
|
173
191
|
},
|
174
192
|
{
|
175
|
-
label: i18n('
|
193
|
+
label: i18n('field_retention'),
|
176
194
|
value: value && formatSecondsToHours(value),
|
177
195
|
},
|
178
196
|
];
|
@@ -186,9 +204,9 @@ export function ObjectSummary({ type, subType, tenantName, path, onCollapseSumma
|
|
186
204
|
const { SourceType, DataSourcePath } = (PathDescription === null || PathDescription === void 0 ? void 0 : PathDescription.ExternalTableDescription) || {};
|
187
205
|
const dataSourceName = ((_b = DataSourcePath === null || DataSourcePath === void 0 ? void 0 : DataSourcePath.match(/([^/]*)\/*$/)) === null || _b === void 0 ? void 0 : _b[1]) || '';
|
188
206
|
return [
|
189
|
-
{ label: i18n('
|
207
|
+
{ label: i18n('field_source-type'), value: SourceType },
|
190
208
|
{
|
191
|
-
label: i18n('
|
209
|
+
label: i18n('field_data-source'),
|
192
210
|
value: DataSourcePath && (_jsx("span", { title: DataSourcePath, children: _jsx(LinkWithIcon, { title: dataSourceName || '', url: pathToDataSource }) })),
|
193
211
|
},
|
194
212
|
];
|
@@ -197,7 +215,7 @@ export function ObjectSummary({ type, subType, tenantName, path, onCollapseSumma
|
|
197
215
|
var _a;
|
198
216
|
return [
|
199
217
|
{
|
200
|
-
label: i18n('
|
218
|
+
label: i18n('field_source-type'),
|
201
219
|
value: (_a = PathDescription === null || PathDescription === void 0 ? void 0 : PathDescription.ExternalDataSourceDescription) === null || _a === void 0 ? void 0 : _a.SourceType,
|
202
220
|
},
|
203
221
|
];
|
@@ -211,7 +229,7 @@ export function ObjectSummary({ type, subType, tenantName, path, onCollapseSumma
|
|
211
229
|
}
|
212
230
|
return [
|
213
231
|
{
|
214
|
-
label: i18n('
|
232
|
+
label: i18n('field_state'),
|
215
233
|
value: _jsx(AsyncReplicationState, { state: state }),
|
216
234
|
},
|
217
235
|
];
|
@@ -245,39 +263,30 @@ export function ObjectSummary({ type, subType, tenantName, path, onCollapseSumma
|
|
245
263
|
const onSplitStartDragAdditional = () => {
|
246
264
|
dispatchCommonInfoVisibilityState(PaneVisibilityActionTypes.clear);
|
247
265
|
};
|
266
|
+
const relativePath = transformPath(path, tenantName);
|
248
267
|
const renderCommonInfoControls = () => {
|
249
268
|
const showPreview = isTableType(type) && !isIndexTableType(subType);
|
250
269
|
return (_jsxs(React.Fragment, { children: [showPreview &&
|
251
|
-
getSummaryControls(dispatch, { setActivePath: setCurrentPath }, 'm')(path, 'preview'), _jsx(ClipboardButton, { text:
|
270
|
+
getSummaryControls(dispatch, { setActivePath: setCurrentPath }, 'm')(path, 'preview'), _jsx(ClipboardButton, { text: relativePath, view: "flat-secondary", title: i18n('action_copySchemaPath') }), _jsx(PaneVisibilityToggleButtons, { onCollapse: onCollapseInfoHandler, onExpand: onExpandInfoHandler, isCollapsed: commonInfoVisibilityState.collapsed, initialDirection: "bottom" })] }));
|
252
271
|
};
|
253
272
|
const renderEntityTypeBadge = () => {
|
254
273
|
const { Status, Reason } = currentObjectData !== null && currentObjectData !== void 0 ? currentObjectData : {};
|
274
|
+
if (type) {
|
275
|
+
let label = type.replace('EPathType', '');
|
276
|
+
if (isDomain(path, type)) {
|
277
|
+
label = 'domain';
|
278
|
+
}
|
279
|
+
return _jsx("div", { className: b('entity-type'), children: label });
|
280
|
+
}
|
255
281
|
let message;
|
256
|
-
if (
|
282
|
+
if (Status && Reason) {
|
257
283
|
message = `${Status}: ${Reason}`;
|
258
284
|
}
|
259
|
-
return
|
285
|
+
return (_jsx("div", { className: b('entity-type', { error: true }), children: _jsx(HelpPopover, { content: message, offset: { left: 0 } }) }));
|
260
286
|
};
|
261
287
|
const renderContent = () => {
|
262
|
-
return (_jsxs("div", { className: b(), children: [_jsx("div", { className: b({ hidden: isCollapsed }), children: _jsxs(SplitPane, { direction: "vertical", defaultSizePaneKey: DEFAULT_SIZE_TENANT_SUMMARY_KEY, onSplitStartDragAdditional: onSplitStartDragAdditional, triggerCollapse: commonInfoVisibilityState.triggerCollapse, triggerExpand: commonInfoVisibilityState.triggerExpand, minSize: [200, 52], collapsedSizes: [100, 0], children: [_jsx(ObjectTree, { tenantName: tenantName, path: path }), _jsxs("div", { className: b('info'), children: [_jsxs("div", { className: b('sticky-top'), children: [_jsxs("div", { className: b('info-header'), children: [_jsxs("div", { className: b('info-title'), children: [renderEntityTypeBadge(), _jsx("div", { className: b('path-name'), children:
|
288
|
+
return (_jsxs("div", { className: b(), children: [_jsx("div", { className: b({ hidden: isCollapsed }), children: _jsxs(SplitPane, { direction: "vertical", defaultSizePaneKey: DEFAULT_SIZE_TENANT_SUMMARY_KEY, onSplitStartDragAdditional: onSplitStartDragAdditional, triggerCollapse: commonInfoVisibilityState.triggerCollapse, triggerExpand: commonInfoVisibilityState.triggerExpand, minSize: [200, 52], collapsedSizes: [100, 0], children: [_jsx(ObjectTree, { tenantName: tenantName, path: path }), _jsxs("div", { className: b('info'), children: [_jsxs("div", { className: b('sticky-top'), children: [_jsxs("div", { className: b('info-header'), children: [_jsxs("div", { className: b('info-title'), children: [renderEntityTypeBadge(), _jsx("div", { className: b('path-name'), children: relativePath })] }), _jsx("div", { className: b('info-controls'), children: renderCommonInfoControls() })] }), renderTabs()] }), _jsx("div", { className: b('overview-wrapper'), children: renderTabContent() })] })] }) }), _jsx(PaneVisibilityToggleButtons, { onCollapse: onCollapseSummary, onExpand: onExpandSummary, isCollapsed: isCollapsed, initialDirection: "left", className: b('action-button') })] }));
|
263
289
|
};
|
264
290
|
return renderContent();
|
265
291
|
}
|
266
|
-
function ObjectTree({ tenantName, path }) {
|
267
|
-
var _a;
|
268
|
-
const { data: tenantData = {}, isLoading } = useGetSchemaQuery({
|
269
|
-
path: tenantName,
|
270
|
-
database: tenantName,
|
271
|
-
});
|
272
|
-
const pathData = (_a = tenantData === null || tenantData === void 0 ? void 0 : tenantData.PathDescription) === null || _a === void 0 ? void 0 : _a.Self;
|
273
|
-
const [, setCurrentPath] = useQueryParam('schema', StringParam);
|
274
|
-
if (!pathData && isLoading) {
|
275
|
-
// If Loader isn't wrapped with div, SplitPane doesn't calculate panes height correctly
|
276
|
-
return (_jsx("div", { children: _jsx(Loader, {}) }));
|
277
|
-
}
|
278
|
-
return (_jsxs("div", { className: b('tree-wrapper'), children: [_jsx("div", { className: b('tree-header'), children: i18n('summary.navigation') }), _jsx("div", { className: b('tree'), children: pathData ? (_jsx(SchemaTree, { rootPath: tenantName,
|
279
|
-
// for the root pathData.Name contains the same string as tenantName,
|
280
|
-
// but without the leading slash
|
281
|
-
rootName: pathData.Name || tenantName, rootType: pathData.PathType, currentPath: path, onActivePathUpdate: setCurrentPath })) : null })] }));
|
282
|
-
}
|
283
292
|
//# sourceMappingURL=ObjectSummary.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ObjectSummary.js","sourceRoot":"","sources":["../../../../src/containers/Tenant/ObjectSummary/ObjectSummary.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAC,WAAW,EAAC,MAAM,wBAAwB,CAAC;AACnD,OAAO,EAAC,IAAI,EAAC,MAAM,mBAAmB,CAAC;AACvC,OAAO,EAAE,MAAM,IAAI,CAAC;AACpB,OAAO,EAAC,IAAI,EAAE,WAAW,EAAC,MAAM,kBAAkB,CAAC;AACnD,OAAO,EAAC,WAAW,EAAE,aAAa,EAAC,MAAM,kBAAkB,CAAC;AAE5D,OAAO,EAAC,qBAAqB,EAAC,MAAM,2CAA2C,CAAC;AAChF,OAAO,EAAC,eAAe,EAAC,MAAM,qCAAqC,CAAC;AACpE,OAAO,EAAC,eAAe,EAAC,MAAM,0CAA0C,CAAC;AACzE,OAAO,EAAC,UAAU,EAAC,MAAM,2CAA2C,CAAC;AAErE,OAAO,EAAC,YAAY,EAAC,MAAM,+CAA+C,CAAC;AAC3E,OAAO,EAAC,MAAM,EAAC,MAAM,4BAA4B,CAAC;AAClD,OAAO,SAAS,MAAM,+BAA+B,CAAC;AACtD,OAAO,MAAM,EAAE,EAAC,oBAAoB,EAAE,UAAU,EAAC,MAAM,iBAAiB,CAAC;AACzE,OAAO,EAAC,iBAAiB,EAAC,MAAM,uCAAuC,CAAC;AACxE,OAAO,EAAC,uBA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IACA,CACT,CAAC;IACN,CAAC,CAAC;IAEF,OAAO,aAAa,EAAE,CAAC;AAC3B,CAAC"}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
@import '../../../styles/mixins.scss';
|
2
2
|
|
3
|
-
.object-summary {
|
3
|
+
.ydb-object-summary {
|
4
4
|
position: relative;
|
5
5
|
|
6
6
|
display: flex;
|
@@ -64,14 +64,13 @@
|
|
64
64
|
padding: 8px 12px 16px;
|
65
65
|
}
|
66
66
|
|
67
|
-
&
|
68
|
-
|
67
|
+
&__tabs-inner {
|
68
|
+
--g-tabs-border-width: 0;
|
69
|
+
box-shadow: inset 0 -1px 0 0 var(--g-color-line-generic);
|
70
|
+
}
|
69
71
|
|
72
|
+
&__tab {
|
70
73
|
text-decoration: none;
|
71
|
-
|
72
|
-
&:first-letter {
|
73
|
-
text-transform: uppercase;
|
74
|
-
}
|
75
74
|
}
|
76
75
|
|
77
76
|
&__info {
|
@@ -0,0 +1,25 @@
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
2
|
+
import { StringParam, useQueryParam } from 'use-query-params';
|
3
|
+
import { Loader } from '../../../components/Loader';
|
4
|
+
import { useGetSchemaQuery } from '../../../store/reducers/schema/schema';
|
5
|
+
import { SchemaTree } from '../Schema/SchemaTree/SchemaTree';
|
6
|
+
import i18n from './i18n';
|
7
|
+
import { b } from './shared';
|
8
|
+
export function ObjectTree({ tenantName, path }) {
|
9
|
+
var _a;
|
10
|
+
const { data: tenantData = {}, isLoading } = useGetSchemaQuery({
|
11
|
+
path: tenantName,
|
12
|
+
database: tenantName,
|
13
|
+
});
|
14
|
+
const pathData = (_a = tenantData === null || tenantData === void 0 ? void 0 : tenantData.PathDescription) === null || _a === void 0 ? void 0 : _a.Self;
|
15
|
+
const [, setCurrentPath] = useQueryParam('schema', StringParam);
|
16
|
+
if (!pathData && isLoading) {
|
17
|
+
// If Loader isn't wrapped with div, SplitPane doesn't calculate panes height correctly
|
18
|
+
return (_jsx("div", { children: _jsx(Loader, {}) }));
|
19
|
+
}
|
20
|
+
return (_jsxs("div", { className: b('tree-wrapper'), children: [_jsx("div", { className: b('tree-header'), children: i18n('title_navigation') }), _jsx("div", { className: b('tree'), children: pathData ? (_jsx(SchemaTree, { rootPath: tenantName,
|
21
|
+
// for the root pathData.Name contains the same string as tenantName,
|
22
|
+
// but without the leading slash
|
23
|
+
rootName: pathData.Name || tenantName, rootType: pathData.PathType, currentPath: path, onActivePathUpdate: setCurrentPath })) : null })] }));
|
24
|
+
}
|
25
|
+
//# sourceMappingURL=ObjectTree.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"ObjectTree.js","sourceRoot":"","sources":["../../../../src/containers/Tenant/ObjectSummary/ObjectTree.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAC,WAAW,EAAE,aAAa,EAAC,MAAM,kBAAkB,CAAC;AAE5D,OAAO,EAAC,MAAM,EAAC,MAAM,4BAA4B,CAAC;AAClD,OAAO,EAAC,iBAAiB,EAAC,MAAM,uCAAuC,CAAC;AACxE,OAAO,EAAC,UAAU,EAAC,MAAM,iCAAiC,CAAC;AAE3D,OAAO,IAAI,MAAM,QAAQ,CAAC;AAC1B,OAAO,EAAC,CAAC,EAAC,MAAM,UAAU,CAAC;AAO3B,MAAM,UAAU,UAAU,CAAC,EAAC,UAAU,EAAE,IAAI,EAAkB;;IAC1D,MAAM,EAAC,IAAI,EAAE,UAAU,GAAG,EAAE,EAAE,SAAS,EAAC,GAAG,iBAAiB,CAAC;QACzD,IAAI,EAAE,UAAU;QAChB,QAAQ,EAAE,UAAU;KACvB,CAAC,CAAC;IACH,MAAM,QAAQ,GAAG,MAAA,UAAU,aAAV,UAAU,uBAAV,UAAU,CAAE,eAAe,0CAAE,IAAI,CAAC;IAEnD,MAAM,CAAC,EAAE,cAAc,CAAC,GAAG,aAAa,CAAC,QAAQ,EAAE,WAAW,CAAC,CAAC;IAEhE,IAAI,CAAC,QAAQ,IAAI,SAAS,EAAE,CAAC;QACzB,uFAAuF;QACvF,OAAO,CACH,wBACI,KAAC,MAAM,KAAG,GACR,CACT,CAAC;IACN,CAAC;IAED,OAAO,CACH,eAAK,SAAS,EAAE,CAAC,CAAC,cAAc,CAAC,aAC7B,cAAK,SAAS,EAAE,CAAC,CAAC,aAAa,CAAC,YAAG,IAAI,CAAC,kBAAkB,CAAC,GAAO,EAClE,cAAK,SAAS,EAAE,CAAC,CAAC,MAAM,CAAC,YACpB,QAAQ,CAAC,CAAC,CAAC,CACR,KAAC,UAAU,IACP,QAAQ,EAAE,UAAU;oBACpB,qEAAqE;oBACrE,gCAAgC;oBAChC,QAAQ,EAAE,QAAQ,CAAC,IAAI,IAAI,UAAU,EACrC,QAAQ,EAAE,QAAQ,CAAC,QAAQ,EAC3B,WAAW,EAAE,IAAI,EACjB,kBAAkB,EAAE,cAAc,GACpC,CACL,CAAC,CAAC,CAAC,IAAI,GACN,IACJ,CACT,CAAC;AACN,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare function SchemaActions(): import("react/jsx-runtime").JSX.Element;
|
@@ -0,0 +1,18 @@
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
2
|
+
import { Button, Icon } from '@gravity-ui/uikit';
|
3
|
+
import { TENANT_DIAGNOSTICS_TABS_IDS, TENANT_PAGES_IDS, } from '../../../store/reducers/tenant/constants';
|
4
|
+
import { setDiagnosticsTab, setTenantPage } from '../../../store/reducers/tenant/tenant';
|
5
|
+
import { useTypedDispatch, useTypedSelector } from '../../../utils/hooks';
|
6
|
+
import i18n from './i18n';
|
7
|
+
import ArrowRightFromSquareIcon from '@gravity-ui/icons/svgs/arrow-right-from-square.svg';
|
8
|
+
export function SchemaActions() {
|
9
|
+
const dispatch = useTypedDispatch();
|
10
|
+
const { diagnosticsTab, tenantPage } = useTypedSelector((state) => state.tenant);
|
11
|
+
const diagnosticsSchemaActive = tenantPage === TENANT_PAGES_IDS.diagnostics &&
|
12
|
+
diagnosticsTab === TENANT_DIAGNOSTICS_TABS_IDS.schema;
|
13
|
+
return (_jsx("div", { children: !diagnosticsSchemaActive && (_jsx(Button, { title: i18n('action_openInDiagnostics'), onClick: () => {
|
14
|
+
dispatch(setTenantPage(TENANT_PAGES_IDS.diagnostics));
|
15
|
+
dispatch(setDiagnosticsTab(TENANT_DIAGNOSTICS_TABS_IDS.schema));
|
16
|
+
}, size: "s", children: _jsx(Icon, { data: ArrowRightFromSquareIcon, size: 14 }) })) }));
|
17
|
+
}
|
18
|
+
//# sourceMappingURL=SchemaActions.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"SchemaActions.js","sourceRoot":"","sources":["../../../../src/containers/Tenant/ObjectSummary/SchemaActions.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAC,MAAM,EAAE,IAAI,EAAC,MAAM,mBAAmB,CAAC;AAE/C,OAAO,EACH,2BAA2B,EAC3B,gBAAgB,GACnB,MAAM,0CAA0C,CAAC;AAClD,OAAO,EAAC,iBAAiB,EAAE,aAAa,EAAC,MAAM,uCAAuC,CAAC;AACvF,OAAO,EAAC,gBAAgB,EAAE,gBAAgB,EAAC,MAAM,sBAAsB,CAAC;AAExE,OAAO,IAAI,MAAM,QAAQ,CAAC;AAE1B,OAAO,wBAAwB,MAAM,oDAAoD,CAAC;AAE1F,MAAM,UAAU,aAAa;IACzB,MAAM,QAAQ,GAAG,gBAAgB,EAAE,CAAC;IACpC,MAAM,EAAC,cAAc,EAAE,UAAU,EAAC,GAAG,gBAAgB,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IAC/E,MAAM,uBAAuB,GACzB,UAAU,KAAK,gBAAgB,CAAC,WAAW;QAC3C,cAAc,KAAK,2BAA2B,CAAC,MAAM,CAAC;IAE1D,OAAO,CACH,wBACK,CAAC,uBAAuB,IAAI,CACzB,KAAC,MAAM,IACH,KAAK,EAAE,IAAI,CAAC,0BAA0B,CAAC,EACvC,OAAO,EAAE,GAAG,EAAE;gBACV,QAAQ,CAAC,aAAa,CAAC,gBAAgB,CAAC,WAAW,CAAC,CAAC,CAAC;gBACtD,QAAQ,CAAC,iBAAiB,CAAC,2BAA2B,CAAC,MAAM,CAAC,CAAC,CAAC;YACpE,CAAC,EACD,IAAI,EAAC,GAAG,YAER,KAAC,IAAI,IAAC,IAAI,EAAE,wBAAwB,EAAE,IAAI,EAAE,EAAE,GAAI,GAC7C,CACZ,GACC,CACT,CAAC;AACN,CAAC"}
|
@@ -1,4 +1,5 @@
|
|
1
|
-
import {
|
1
|
+
import { EPathType } from '../../../../types/api/schema';
|
2
|
+
import { isDomain, transformPath } from '../transformPath';
|
2
3
|
describe('transformPath', () => {
|
3
4
|
test.each([
|
4
5
|
// Tests with various combinations of path and dbName
|
@@ -8,8 +9,8 @@ describe('transformPath', () => {
|
|
8
9
|
['/prod/v1/sth', 'prod/v1', 'sth'],
|
9
10
|
['/dev/v1/sth', '/dev', 'v1/sth'],
|
10
11
|
['/dev/v1/sth', 'dev', 'v1/sth'],
|
11
|
-
['/dev', '/dev', '/'],
|
12
|
-
['/dev', 'dev', '/'],
|
12
|
+
['/dev', '/dev', '/dev'],
|
13
|
+
['/dev', 'dev', '/dev'],
|
13
14
|
['/', '/dev', '/'],
|
14
15
|
['/', 'dev', '/'],
|
15
16
|
['', '/dev', '/'],
|
@@ -38,4 +39,27 @@ describe('transformPath', () => {
|
|
38
39
|
expect(transformPath('///dev/v1/sth', '/dev')).toBe('v1/sth');
|
39
40
|
});
|
40
41
|
});
|
42
|
+
describe('isDomain', () => {
|
43
|
+
it('should return true for valid domain paths', () => {
|
44
|
+
expect(isDomain('/domain', EPathType.EPathTypeDir)).toBe(true);
|
45
|
+
expect(isDomain('/another-domain', EPathType.EPathTypeDir)).toBe(true);
|
46
|
+
});
|
47
|
+
it('should return false for non-directory paths', () => {
|
48
|
+
expect(isDomain('/domain', EPathType.EPathTypeColumnStore)).toBe(false);
|
49
|
+
expect(isDomain('/domain', undefined)).toBe(false);
|
50
|
+
});
|
51
|
+
it('should return false for paths without slash', () => {
|
52
|
+
expect(isDomain('domain', EPathType.EPathTypeDir)).toBe(false);
|
53
|
+
});
|
54
|
+
it('should return false for paths with multiple slashes', () => {
|
55
|
+
expect(isDomain('/domain/subdomain', EPathType.EPathTypeDir)).toBe(false);
|
56
|
+
expect(isDomain('/domain/', EPathType.EPathTypeDir)).toBe(false);
|
57
|
+
});
|
58
|
+
it('should return false for empty paths', () => {
|
59
|
+
expect(isDomain('', EPathType.EPathTypeDir)).toBe(false);
|
60
|
+
});
|
61
|
+
it('should return true for root path', () => {
|
62
|
+
expect(isDomain('/', EPathType.EPathTypeDir)).toBe(true);
|
63
|
+
});
|
64
|
+
});
|
41
65
|
//# sourceMappingURL=transformPath.test.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"transformPath.test.js","sourceRoot":"","sources":["../../../../../src/containers/Tenant/ObjectSummary/__test__/transformPath.test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,aAAa,EAAC,MAAM,kBAAkB,CAAC;
|
1
|
+
{"version":3,"file":"transformPath.test.js","sourceRoot":"","sources":["../../../../../src/containers/Tenant/ObjectSummary/__test__/transformPath.test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,8BAA8B,CAAC;AACvD,OAAO,EAAC,QAAQ,EAAE,aAAa,EAAC,MAAM,kBAAkB,CAAC;AAEzD,QAAQ,CAAC,eAAe,EAAE,GAAG,EAAE;IAC3B,IAAI,CAAC,IAAI,CAAC;QACN,qDAAqD;QACrD,CAAC,cAAc,EAAE,OAAO,EAAE,QAAQ,CAAC;QACnC,CAAC,cAAc,EAAE,MAAM,EAAE,QAAQ,CAAC;QAClC,CAAC,cAAc,EAAE,UAAU,EAAE,KAAK,CAAC;QACnC,CAAC,cAAc,EAAE,SAAS,EAAE,KAAK,CAAC;QAClC,CAAC,aAAa,EAAE,MAAM,EAAE,QAAQ,CAAC;QACjC,CA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AAC,QAAQ,CAAC,QAAQ,EAAE,SAAS,CAAC,YAAY,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;IACnE,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,qDAAqD,EAAE,GAAG,EAAE;QAC3D,MAAM,CAAC,QAAQ,CAAC,mBAAmB,EAAE,SAAS,CAAC,YAAY,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QAC1E,MAAM,CAAC,QAAQ,CAAC,UAAU,EAAE,SAAS,CAAC,YAAY,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;IACrE,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,qCAAqC,EAAE,GAAG,EAAE;QAC3C,MAAM,CAAC,QAAQ,CAAC,EAAE,EAAE,SAAS,CAAC,YAAY,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;IAC7D,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,kCAAkC,EAAE,GAAG,EAAE;QACxC,MAAM,CAAC,QAAQ,CAAC,GAAG,EAAE,SAAS,CAAC,YAAY,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAC7D,CAAC,CAAC,CAAC;AACP,CAAC,CAAC,CAAC"}
|
@@ -0,0 +1,21 @@
|
|
1
|
+
{
|
2
|
+
"title_navigation": "Navigation",
|
3
|
+
"field_source-type": "Source Type",
|
4
|
+
"field_data-source": "Data Source",
|
5
|
+
"action_copySchemaPath": "Copy schema path",
|
6
|
+
"action_openInDiagnostics": "Open in Diagnostics",
|
7
|
+
"field_type": "Type",
|
8
|
+
"field_subtype": "SubType",
|
9
|
+
"field_id": "Id",
|
10
|
+
"field_version": "Version",
|
11
|
+
"field_created": "Created",
|
12
|
+
"field_data-size": "Data size",
|
13
|
+
"field_row-count": "Row count",
|
14
|
+
"field_partitions": "Partitions count",
|
15
|
+
"field_paths": "Paths",
|
16
|
+
"field_shards": "Shards",
|
17
|
+
"field_state": "State",
|
18
|
+
"field_mode": "Mode",
|
19
|
+
"field_format": "Format",
|
20
|
+
"field_retention": "Retention"
|
21
|
+
}
|
@@ -0,0 +1,2 @@
|
|
1
|
+
declare const _default: (key: "field_state" | "title_navigation" | "field_source-type" | "field_data-source" | "action_copySchemaPath" | "action_openInDiagnostics" | "field_type" | "field_subtype" | "field_id" | "field_version" | "field_created" | "field_data-size" | "field_row-count" | "field_partitions" | "field_paths" | "field_shards" | "field_mode" | "field_format" | "field_retention", params?: import("@gravity-ui/i18n").Params) => string;
|
2
|
+
export default _default;
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/containers/Tenant/ObjectSummary/i18n/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,eAAe,EAAC,MAAM,wBAAwB,CAAC;AAEvD,OAAO,EAAE,MAAM,WAAW,CAAC;AAE3B,MAAM,SAAS,GAAG,oBAAoB,CAAC;AAEvC,eAAe,eAAe,CAAC,SAAS,EAAE,EAAC,EAAE,EAAC,CAAC,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare const b: import("@bem-react/classname").ClassNameFormatter;
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"shared.js","sourceRoot":"","sources":["../../../../src/containers/Tenant/ObjectSummary/shared.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,EAAE,EAAC,MAAM,mBAAmB,CAAC;AAErC,MAAM,CAAC,MAAM,CAAC,GAAG,EAAE,CAAC,oBAAoB,CAAC,CAAC"}
|
@@ -1,3 +1,4 @@
|
|
1
|
+
import { EPathType } from '../../../types/api/schema';
|
1
2
|
export function transformPath(path, dbName) {
|
2
3
|
// Normalize the path and dbName by removing leading/trailing slashes
|
3
4
|
const normalizedPath = path.replace(/^\/+|\/+$/g, '');
|
@@ -5,9 +6,18 @@ export function transformPath(path, dbName) {
|
|
5
6
|
if (!normalizedPath.startsWith(normalizedDbName)) {
|
6
7
|
return normalizedPath || '/';
|
7
8
|
}
|
9
|
+
if (normalizedPath === normalizedDbName) {
|
10
|
+
return `/${normalizedPath}`;
|
11
|
+
}
|
8
12
|
let result = normalizedPath.slice(normalizedDbName.length);
|
9
13
|
// Remove leading slash if present, unless the result would be empty
|
10
14
|
result = result.replace(/^\/+/, '') || '/';
|
11
15
|
return result;
|
12
16
|
}
|
17
|
+
export function isDomain(path, type) {
|
18
|
+
if (type !== EPathType.EPathTypeDir) {
|
19
|
+
return false;
|
20
|
+
}
|
21
|
+
return path.split('/').length === 2 && path.startsWith('/');
|
22
|
+
}
|
13
23
|
//# sourceMappingURL=transformPath.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"transformPath.js","sourceRoot":"","sources":["../../../../src/containers/Tenant/ObjectSummary/transformPath.ts"],"names":[],"mappings":"AAAA,MAAM,UAAU,aAAa,CAAC,IAAY,EAAE,MAAc;IACtD,qEAAqE;IACrE,MAAM,cAAc,GAAG,IAAI,CAAC,OAAO,CAAC,YAAY,EAAE,EAAE,CAAC,CAAC;IACtD,MAAM,gBAAgB,GAAG,MAAM,CAAC,OAAO,CAAC,YAAY,EAAE,EAAE,CAAC,CAAC;IAE1D,IAAI,CAAC,cAAc,CAAC,UAAU,CAAC,gBAAgB,CAAC,EAAE,CAAC;QAC/C,OAAO,cAAc,IAAI,GAAG,CAAC;IACjC,CAAC;IAED,IAAI,MAAM,GAAG,cAAc,CAAC,KAAK,CAAC,gBAAgB,CAAC,MAAM,CAAC,CAAC;IAE3D,oEAAoE;IACpE,MAAM,GAAG,MAAM,CAAC,OAAO,CAAC,MAAM,EAAE,EAAE,CAAC,IAAI,GAAG,CAAC;IAE3C,OAAO,MAAM,CAAC;AAClB,CAAC"}
|
1
|
+
{"version":3,"file":"transformPath.js","sourceRoot":"","sources":["../../../../src/containers/Tenant/ObjectSummary/transformPath.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,2BAA2B,CAAC;AAEpD,M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