ydb-embedded-ui 6.15.1 → 6.16.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/components/ElapsedTime/ElapsedTime.js +2 -1
- package/dist/components/ElapsedTime/ElapsedTime.js.map +1 -1
- package/dist/components/EmptyState/EmptyState.d.ts +6 -0
- package/dist/components/EmptyState/EmptyState.js +6 -0
- package/dist/components/EmptyState/EmptyState.js.map +1 -1
- package/dist/components/EntitiesCount/EntitiesCount.js +3 -1
- package/dist/components/EntitiesCount/EntitiesCount.js.map +1 -1
- package/dist/components/EntityPageTitle/EntityPageTitle.d.ts +11 -0
- package/dist/components/{DiskPageTitle/DiskPageTitle.js → EntityPageTitle/EntityPageTitle.js} +5 -5
- package/dist/components/EntityPageTitle/EntityPageTitle.js.map +1 -0
- package/dist/components/{DiskPageTitle/DiskPageTitle.scss → EntityPageTitle/EntityPageTitle.scss} +1 -1
- package/dist/components/InfoViewerSkeleton/InfoViewerSkeleton.d.ts +2 -1
- package/dist/components/InfoViewerSkeleton/InfoViewerSkeleton.js +10 -1
- package/dist/components/InfoViewerSkeleton/InfoViewerSkeleton.js.map +1 -1
- package/dist/components/MetricChart/reducer.d.ts +2 -2
- package/dist/components/NotRenderUntilFirstVisible/NotRenderUntilFirstVisible.d.ts +9 -0
- package/dist/components/NotRenderUntilFirstVisible/NotRenderUntilFirstVisible.js +9 -0
- package/dist/components/NotRenderUntilFirstVisible/NotRenderUntilFirstVisible.js.map +1 -0
- package/dist/components/NotRenderUntilFirstVisible/NotRenderUntilFirstVisible.scss +3 -0
- package/dist/components/PageMeta/PageMeta.d.ts +2 -1
- package/dist/components/PageMeta/PageMeta.js +9 -4
- package/dist/components/PageMeta/PageMeta.js.map +1 -1
- package/dist/components/PageMeta/PageMeta.scss +9 -6
- package/dist/components/PaginatedTable/PaginatedTable.d.ts +5 -4
- package/dist/components/PaginatedTable/PaginatedTable.js +24 -116
- package/dist/components/PaginatedTable/PaginatedTable.js.map +1 -1
- package/dist/components/PaginatedTable/ResizeablePaginatedTable.d.ts +2 -2
- package/dist/components/PaginatedTable/ResizeablePaginatedTable.js.map +1 -1
- package/dist/components/PaginatedTable/TableChunk.d.ts +13 -5
- package/dist/components/PaginatedTable/TableChunk.js +51 -21
- package/dist/components/PaginatedTable/TableChunk.js.map +1 -1
- package/dist/components/PaginatedTable/TableRow.js +1 -1
- package/dist/components/PaginatedTable/TableRow.js.map +1 -1
- package/dist/components/PaginatedTable/types.d.ts +8 -1
- package/dist/components/Skeleton/Skeleton.d.ts +6 -0
- package/dist/components/Skeleton/Skeleton.js +11 -0
- package/dist/components/Skeleton/Skeleton.js.map +1 -0
- package/dist/components/Tablet/Tablet.js +2 -2
- package/dist/components/Tablet/Tablet.js.map +1 -1
- package/dist/components/TabletState/TabletState.d.ts +6 -0
- package/dist/components/TabletState/TabletState.js +7 -0
- package/dist/components/TabletState/TabletState.js.map +1 -0
- package/dist/containers/Cluster/Cluster.js +10 -10
- package/dist/containers/Cluster/Cluster.js.map +1 -1
- package/dist/containers/Cluster/Cluster.scss +14 -0
- package/dist/containers/Cluster/i18n/index.d.ts +1 -1
- package/dist/containers/Heatmap/HeatmapCanvas/HeatmapCanvas.js +2 -2
- package/dist/containers/Heatmap/HeatmapCanvas/HeatmapCanvas.js.map +1 -1
- package/dist/containers/Nodes/Nodes.d.ts +2 -1
- package/dist/containers/Nodes/Nodes.js +2 -2
- package/dist/containers/Nodes/Nodes.js.map +1 -1
- package/dist/containers/Nodes/NodesWrapper.d.ts +1 -0
- package/dist/containers/Nodes/NodesWrapper.js.map +1 -1
- package/dist/containers/Nodes/PaginatedNodes.d.ts +2 -1
- package/dist/containers/Nodes/PaginatedNodes.js +6 -18
- package/dist/containers/Nodes/PaginatedNodes.js.map +1 -1
- package/dist/containers/Nodes/getNodes.d.ts +3 -6
- package/dist/containers/Nodes/getNodes.js +19 -2
- package/dist/containers/Nodes/getNodes.js.map +1 -1
- package/dist/containers/PDiskPage/PDiskPage.js +4 -5
- package/dist/containers/PDiskPage/PDiskPage.js.map +1 -1
- package/dist/containers/PDiskPage/PDiskPage.scss +0 -7
- package/dist/containers/PDiskPage/i18n/index.d.ts +1 -1
- package/dist/containers/Storage/PaginatedStorage.d.ts +2 -2
- package/dist/containers/Storage/PaginatedStorage.js +3 -3
- package/dist/containers/Storage/PaginatedStorage.js.map +1 -1
- package/dist/containers/Storage/Storage.d.ts +2 -2
- package/dist/containers/Storage/Storage.js +3 -3
- package/dist/containers/Storage/Storage.js.map +1 -1
- package/dist/containers/Storage/StorageGroups/PaginatedStorageGroups.d.ts +2 -2
- package/dist/containers/Storage/StorageGroups/PaginatedStorageGroups.js +5 -17
- package/dist/containers/Storage/StorageGroups/PaginatedStorageGroups.js.map +1 -1
- package/dist/containers/Storage/StorageGroups/getGroups.d.ts +3 -6
- package/dist/containers/Storage/StorageGroups/getGroups.js +15 -2
- package/dist/containers/Storage/StorageGroups/getGroups.js.map +1 -1
- package/dist/containers/Storage/StorageNodes/PaginatedStorageNodes.d.ts +2 -2
- package/dist/containers/Storage/StorageNodes/PaginatedStorageNodes.js +6 -18
- package/dist/containers/Storage/StorageNodes/PaginatedStorageNodes.js.map +1 -1
- package/dist/containers/Storage/StorageNodes/getNodes.d.ts +3 -5
- package/dist/containers/Storage/StorageNodes/getNodes.js +17 -2
- package/dist/containers/Storage/StorageNodes/getNodes.js.map +1 -1
- package/dist/containers/Storage/StorageWrapper.d.ts +1 -1
- package/dist/containers/Tablet/Tablet.d.ts +1 -1
- package/dist/containers/Tablet/Tablet.js +95 -52
- package/dist/containers/Tablet/Tablet.js.map +1 -1
- package/dist/containers/Tablet/Tablet.scss +4 -81
- package/dist/containers/Tablet/components/TabletControls/TabletControls.d.ts +6 -0
- package/dist/containers/Tablet/components/TabletControls/TabletControls.js +27 -0
- package/dist/containers/Tablet/components/TabletControls/TabletControls.js.map +1 -0
- package/dist/containers/Tablet/components/TabletControls/index.js.map +1 -0
- package/dist/containers/Tablet/components/TabletInfo/TabletInfo.d.ts +7 -0
- package/dist/containers/Tablet/components/TabletInfo/TabletInfo.js +59 -0
- package/dist/containers/Tablet/components/TabletInfo/TabletInfo.js.map +1 -0
- package/dist/containers/Tablet/components/TabletInfo/TabletInfo.scss +12 -0
- package/dist/containers/Tablet/components/TabletInfo/i18n/en.json +16 -0
- package/dist/containers/Tablet/components/TabletInfo/i18n/index.d.ts +1 -0
- package/dist/containers/Tablet/components/TabletInfo/i18n/index.js +5 -0
- package/dist/containers/Tablet/components/TabletInfo/i18n/index.js.map +1 -0
- package/dist/containers/Tablet/components/TabletInfo/index.js.map +1 -0
- package/dist/containers/Tablet/components/TabletStorageInfo/TabletStorageInfo.d.ts +7 -0
- package/dist/containers/Tablet/components/TabletStorageInfo/TabletStorageInfo.js +36 -0
- package/dist/containers/Tablet/components/TabletStorageInfo/TabletStorageInfo.js.map +1 -0
- package/dist/containers/Tablet/components/TabletStorageInfo/TabletStorageInfo.scss +78 -0
- package/dist/containers/Tablet/components/TabletStorageInfo/columns.d.ts +3 -0
- package/dist/containers/Tablet/components/TabletStorageInfo/columns.js +56 -0
- package/dist/containers/Tablet/components/TabletStorageInfo/columns.js.map +1 -0
- package/dist/containers/Tablet/components/TabletStorageInfo/i18n/en.json +7 -0
- package/dist/containers/Tablet/components/TabletStorageInfo/i18n/index.d.ts +1 -0
- package/dist/containers/Tablet/components/TabletStorageInfo/i18n/index.js +5 -0
- package/dist/containers/Tablet/components/TabletStorageInfo/i18n/index.js.map +1 -0
- package/dist/containers/Tablet/components/TabletStorageInfo/shared.d.ts +1 -0
- package/dist/containers/Tablet/components/TabletStorageInfo/shared.js +3 -0
- package/dist/containers/Tablet/components/TabletStorageInfo/shared.js.map +1 -0
- package/dist/containers/Tablet/components/TabletStorageInfo/types.d.ts +5 -0
- package/dist/containers/Tablet/components/TabletStorageInfo/types.js +2 -0
- package/dist/containers/Tablet/components/TabletStorageInfo/types.js.map +1 -0
- package/dist/containers/Tablet/components/TabletStorageInfo/utils.d.ts +3 -0
- package/dist/containers/Tablet/components/TabletStorageInfo/utils.js +29 -0
- package/dist/containers/Tablet/components/TabletStorageInfo/utils.js.map +1 -0
- package/dist/containers/Tablet/{TabletTable → components/TabletTable}/TabletTable.d.ts +1 -1
- package/dist/containers/Tablet/{TabletTable → components/TabletTable}/TabletTable.js +7 -6
- package/dist/containers/Tablet/components/TabletTable/TabletTable.js.map +1 -0
- package/dist/containers/Tablet/components/TabletTable/index.js.map +1 -0
- package/dist/containers/Tablet/i18n/en.json +5 -1
- package/dist/containers/Tablet/i18n/index.d.ts +1 -1
- package/dist/containers/Tablet/utils.d.ts +1 -0
- package/dist/containers/Tablet/utils.js +4 -0
- package/dist/containers/Tablet/utils.js.map +1 -0
- package/dist/containers/Tablets/Tablets.js +16 -10
- package/dist/containers/Tablets/Tablets.js.map +1 -1
- package/dist/containers/Tablets/i18n/index.d.ts +1 -1
- package/dist/containers/Tenant/Acl/Acl.scss +2 -2
- package/dist/containers/Tenant/Diagnostics/Describe/Describe.js +10 -9
- package/dist/containers/Tenant/Diagnostics/Describe/Describe.js.map +1 -1
- package/dist/containers/Tenant/Diagnostics/Describe/Describe.scss +13 -2
- package/dist/containers/Tenant/Diagnostics/Diagnostics.js +2 -2
- package/dist/containers/Tenant/Diagnostics/Diagnostics.js.map +1 -1
- package/dist/containers/Tenant/Diagnostics/Overview/TableInfo/prepareTableInfo.js +21 -11
- package/dist/containers/Tenant/Diagnostics/Overview/TableInfo/prepareTableInfo.js.map +1 -1
- package/dist/containers/Tenant/Diagnostics/TopShards/getTopShardsColumns.js +2 -2
- package/dist/containers/Tenant/Diagnostics/TopShards/getTopShardsColumns.js.map +1 -1
- package/dist/containers/Tenant/ObjectGeneral/ObjectGeneral.js +3 -8
- package/dist/containers/Tenant/ObjectGeneral/ObjectGeneral.js.map +1 -1
- package/dist/containers/Tenant/Query/ExplainResult/components/SimplifiedPlan/SimplifiedPlan.js +2 -5
- package/dist/containers/Tenant/Query/ExplainResult/components/SimplifiedPlan/SimplifiedPlan.js.map +1 -1
- package/dist/containers/Tenant/Query/ExplainResult/components/SimplifiedPlan/utils.d.ts +0 -1
- package/dist/containers/Tenant/Query/ExplainResult/components/SimplifiedPlan/utils.js +0 -21
- package/dist/containers/Tenant/Query/ExplainResult/components/SimplifiedPlan/utils.js.map +1 -1
- package/dist/containers/Tenant/Query/QueriesHistory/QueriesHistory.js +19 -1
- package/dist/containers/Tenant/Query/QueriesHistory/QueriesHistory.js.map +1 -1
- package/dist/containers/Tenant/Query/Query.js +2 -14
- package/dist/containers/Tenant/Query/Query.js.map +1 -1
- package/dist/containers/Tenant/Query/QueryEditor/QueryEditor.js +4 -4
- package/dist/containers/Tenant/Query/QueryEditor/QueryEditor.js.map +1 -1
- package/dist/containers/Tenant/Query/QueryEditorControls/utils/getChangedQueryExecutionSettings.test.js +1 -1
- package/dist/containers/Tenant/Query/QueryEditorControls/utils/getChangedQueryExecutionSettings.test.js.map +1 -1
- package/dist/containers/Tenant/Query/QueryEditorControls/utils/getChangedQueryExecutionSettingsDescription.test.js +1 -1
- package/dist/containers/Tenant/Query/QueryEditorControls/utils/getChangedQueryExecutionSettingsDescription.test.js.map +1 -1
- package/dist/containers/Tenant/Query/QuerySettingsDialog/QuerySettingsDialog.js +3 -3
- package/dist/containers/Tenant/Query/QuerySettingsDialog/QuerySettingsDialog.js.map +1 -1
- package/dist/containers/Tenant/Query/QuerySettingsDialog/constants.d.ts +8 -8
- package/dist/containers/Tenant/Query/QuerySettingsDialog/constants.js +6 -6
- package/dist/containers/Tenant/Query/QuerySettingsDialog/constants.js.map +1 -1
- package/dist/containers/Tenant/Query/i18n/en.json +4 -1
- package/dist/containers/Tenant/Query/i18n/index.d.ts +1 -1
- package/dist/containers/Tenant/Query/utils/useSavedQueries.js +2 -1
- package/dist/containers/Tenant/Query/utils/useSavedQueries.js.map +1 -1
- package/dist/containers/Tenant/Schema/SchemaViewer/columns.js +1 -1
- package/dist/containers/Tenant/Schema/SchemaViewer/columns.js.map +1 -1
- package/dist/containers/Tenant/Schema/SchemaViewer/prepareData.js +2 -2
- package/dist/containers/Tenant/Schema/SchemaViewer/prepareData.js.map +1 -1
- package/dist/containers/Tenant/Schema/SchemaViewer/types.d.ts +1 -1
- package/dist/containers/Tenant/utils/queryTemplates.js +6 -5
- package/dist/containers/Tenant/utils/queryTemplates.js.map +1 -1
- package/dist/containers/UserSettings/i18n/en.json +0 -2
- package/dist/containers/UserSettings/i18n/index.d.ts +1 -1
- package/dist/containers/UserSettings/settings.d.ts +0 -1
- package/dist/containers/UserSettings/settings.js +2 -7
- package/dist/containers/UserSettings/settings.js.map +1 -1
- package/dist/containers/VDiskPage/VDiskPage.js +5 -6
- package/dist/containers/VDiskPage/VDiskPage.js.map +1 -1
- package/dist/containers/VDiskPage/VDiskPage.scss +0 -4
- package/dist/containers/VDiskPage/i18n/index.d.ts +1 -1
- package/dist/routes.d.ts +1 -0
- package/dist/routes.js +3 -0
- package/dist/routes.js.map +1 -1
- package/dist/services/api.d.ts +13 -7
- package/dist/services/api.js +27 -6
- package/dist/services/api.js.map +1 -1
- package/dist/services/settings.d.ts +1 -2
- package/dist/services/settings.js +1 -2
- package/dist/services/settings.js.map +1 -1
- package/dist/store/configureStore.d.ts +4 -8
- package/dist/store/defaultStore.d.ts +2 -4
- package/dist/store/reducers/api.d.ts +1 -1
- package/dist/store/reducers/api.js +1 -1
- package/dist/store/reducers/api.js.map +1 -1
- package/dist/store/reducers/authentication/authentication.d.ts +4 -4
- package/dist/store/reducers/cancelQuery.d.ts +2 -2
- package/dist/store/reducers/capabilities/capabilities.d.ts +6 -10
- package/dist/store/reducers/capabilities/hooks.d.ts +1 -0
- package/dist/store/reducers/capabilities/hooks.js +3 -0
- package/dist/store/reducers/capabilities/hooks.js.map +1 -1
- package/dist/store/reducers/cluster/cluster.d.ts +2 -2
- package/dist/store/reducers/clusterNodes/clusterNodes.d.ts +2 -2
- package/dist/store/reducers/clusters/clusters.d.ts +2 -2
- package/dist/store/reducers/describe.d.ts +2 -2
- package/dist/store/reducers/executeQuery.d.ts +18 -4
- package/dist/store/reducers/executeQuery.js +50 -5
- package/dist/store/reducers/executeQuery.js.map +1 -1
- package/dist/store/reducers/executeTopQueries/executeTopQueries.d.ts +2 -2
- package/dist/store/reducers/explainQuery/explainQuery.d.ts +2 -2
- package/dist/store/reducers/header/types.d.ts +1 -1
- package/dist/store/reducers/healthcheckInfo/healthcheckInfo.d.ts +58 -78
- package/dist/store/reducers/heatmap.d.ts +2 -2
- package/dist/store/reducers/hotKeys/hotKeys.d.ts +2 -2
- package/dist/store/reducers/index.d.ts +3 -6
- package/dist/store/reducers/index.js +0 -2
- package/dist/store/reducers/index.js.map +1 -1
- package/dist/store/reducers/network/network.d.ts +2 -2
- package/dist/store/reducers/node/node.d.ts +3 -3
- package/dist/store/reducers/node/selectors.d.ts +1 -2
- package/dist/store/reducers/nodes/nodes.d.ts +3 -3
- package/dist/store/reducers/nodes/types.d.ts +11 -1
- package/dist/store/reducers/nodesList.d.ts +3 -4
- package/dist/store/reducers/overview/overview.d.ts +2 -2
- package/dist/store/reducers/partitions/partitions.d.ts +2 -2
- package/dist/store/reducers/pdisk/pdisk.d.ts +3 -3
- package/dist/store/reducers/preview.d.ts +2 -2
- package/dist/store/reducers/schema/schema.d.ts +3 -3
- package/dist/store/reducers/schemaAcl/schemaAcl.d.ts +2 -2
- package/dist/store/reducers/shardsWorkload/shardsWorkload.d.ts +2 -2
- package/dist/store/reducers/storage/storage.d.ts +3 -3
- package/dist/store/reducers/storage/types.d.ts +15 -0
- package/dist/store/reducers/storage/types.js.map +1 -1
- package/dist/store/reducers/tableData.d.ts +14 -0
- package/dist/store/reducers/tableData.js +25 -0
- package/dist/store/reducers/tableData.js.map +1 -0
- package/dist/store/reducers/tablet.d.ts +19 -3
- package/dist/store/reducers/tablet.js +82 -13
- package/dist/store/reducers/tablet.js.map +1 -1
- package/dist/store/reducers/tablets.d.ts +15 -23
- package/dist/store/reducers/tablets.js +2 -20
- package/dist/store/reducers/tablets.js.map +1 -1
- package/dist/store/reducers/tabletsFilters.d.ts +1 -2
- package/dist/store/reducers/tenant/tenant.d.ts +2 -2
- package/dist/store/reducers/tenantOverview/executeTopTables/executeTopTables.d.ts +2 -2
- package/dist/store/reducers/tenantOverview/topNodes/topNodes.d.ts +2 -2
- package/dist/store/reducers/tenantOverview/topShards/tenantOverviewTopShards.d.ts +2 -2
- package/dist/store/reducers/tenantOverview/topStorageGroups/topStorageGroups.d.ts +2 -2
- package/dist/store/reducers/tenants/selectors.d.ts +27 -36
- package/dist/store/reducers/tenants/selectors.js +1 -1
- package/dist/store/reducers/tenants/selectors.js.map +1 -1
- package/dist/store/reducers/tenants/tenants.d.ts +2 -2
- package/dist/store/reducers/topic.d.ts +44 -59
- package/dist/store/reducers/vdisk/vdisk.d.ts +2 -2
- package/dist/store/reducers/viewSchema/viewSchema.d.ts +2 -2
- package/dist/styles/mixins.scss +0 -5
- package/dist/types/api/capabilities.d.ts +1 -1
- package/dist/types/api/schema/shared.d.ts +1 -3
- package/dist/types/api/schema/shared.js.map +1 -1
- package/dist/types/api/schema/table.d.ts +2 -0
- package/dist/types/api/schema/table.js.map +1 -1
- package/dist/types/api/tablet.d.ts +22 -0
- package/dist/types/store/executeQuery.d.ts +5 -2
- package/dist/types/store/tablets.d.ts +1 -0
- package/dist/utils/constants.d.ts +1 -2
- package/dist/utils/constants.js +1 -2
- package/dist/utils/constants.js.map +1 -1
- package/dist/utils/dataFormatters/dataFormatters.d.ts +1 -0
- package/dist/utils/dataFormatters/dataFormatters.js +5 -0
- package/dist/utils/dataFormatters/dataFormatters.js.map +1 -1
- package/dist/utils/developerUI/developerUI.d.ts +1 -1
- package/dist/utils/developerUI/developerUI.js +3 -2
- package/dist/utils/developerUI/developerUI.js.map +1 -1
- package/dist/utils/hooks/useQueryExecutionSettings.js +3 -2
- package/dist/utils/hooks/useQueryExecutionSettings.js.map +1 -1
- package/package.json +2 -1
- package/dist/components/DiskPageTitle/DiskPageTitle.d.ts +0 -10
- package/dist/components/DiskPageTitle/DiskPageTitle.js.map +0 -1
- package/dist/components/PaginatedTable/reducer.d.ts +0 -43
- package/dist/components/PaginatedTable/reducer.js +0 -104
- package/dist/components/PaginatedTable/reducer.js.map +0 -1
- package/dist/containers/Tablet/TabletControls/TabletControls.d.ts +0 -7
- package/dist/containers/Tablet/TabletControls/TabletControls.js +0 -29
- package/dist/containers/Tablet/TabletControls/TabletControls.js.map +0 -1
- package/dist/containers/Tablet/TabletControls/index.js.map +0 -1
- package/dist/containers/Tablet/TabletInfo/TabletInfo.d.ts +0 -7
- package/dist/containers/Tablet/TabletInfo/TabletInfo.js +0 -40
- package/dist/containers/Tablet/TabletInfo/TabletInfo.js.map +0 -1
- package/dist/containers/Tablet/TabletInfo/index.js.map +0 -1
- package/dist/containers/Tablet/TabletTable/TabletTable.js.map +0 -1
- package/dist/containers/Tablet/TabletTable/index.js.map +0 -1
- /package/dist/containers/Tablet/{TabletControls → components/TabletControls}/index.d.ts +0 -0
- /package/dist/containers/Tablet/{TabletControls → components/TabletControls}/index.js +0 -0
- /package/dist/containers/Tablet/{TabletInfo → components/TabletInfo}/index.d.ts +0 -0
- /package/dist/containers/Tablet/{TabletInfo → components/TabletInfo}/index.js +0 -0
- /package/dist/containers/Tablet/{TabletTable → components/TabletTable}/index.d.ts +0 -0
- /package/dist/containers/Tablet/{TabletTable → components/TabletTable}/index.js +0 -0
@@ -18,7 +18,8 @@ export const createVDiskDeveloperUILink = ({ nodeId, pDiskId, vDiskSlotId, host,
|
|
18
18
|
const vdiskPath = 'actors/vdisks/vdisk' + pad9(pDiskId) + '_' + pad9(vDiskSlotId);
|
19
19
|
return createDeveloperUILinkWithNodeId(nodeId, host) + vdiskPath;
|
20
20
|
};
|
21
|
-
export function createTabletDeveloperUIHref(tabletId, host = backend) {
|
22
|
-
|
21
|
+
export function createTabletDeveloperUIHref(tabletId, tabletPage, searchParam = 'TabletID', host = backend) {
|
22
|
+
const subPage = tabletPage ? `/${tabletPage}` : '';
|
23
|
+
return `${host}/tablets${subPage}?${searchParam}=${tabletId}`;
|
23
24
|
}
|
24
25
|
//# sourceMappingURL=developerUI.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"developerUI.js","sourceRoot":"","sources":["../../../src/utils/developerUI/developerUI.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,OAAO,EAAC,MAAM,aAAa,CAAC;AACpC,OAAO,EAAC,IAAI,EAAC,MAAM,UAAU,CAAC;AAE9B,gEAAgE;AAChE,MAAM,CAAC,MAAM,+BAA+B,GAAG,CAAC,MAAuB,EAAE,IAAI,GAAG,OAAO,EAAE,EAAE;IACvF,MAAM,cAAc,GAAG,kBAAkB,CAAC;IAE1C,+EAA+E;IAC/E,uDAAuD;IACvD,IAAI,cAAc,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC;QACpC,OAAO,MAAM,CAAC,IAAI,CAAC,CAAC,OAAO,CAAC,cAAc,EAAE,SAAS,MAAM,GAAG,CAAC,CAAC;IACpE,CAAC;IAED,OAAO,GAAG,IAAI,aAAJ,IAAI,cAAJ,IAAI,GAAI,EAAE,SAAS,MAAM,GAAG,CAAC;AAC3C,CAAC,CAAC;AAQF,MAAM,CAAC,MAAM,0BAA0B,GAAG,CAAC,EAAC,MAAM,EAAE,OAAO,EAAE,IAAI,EAA6B,EAAE,EAAE;IAC9F,MAAM,SAAS,GAAG,qBAAqB,GAAG,IAAI,CAAC,OAAO,CAAC,CAAC;IAExD,OAAO,+BAA+B,CAAC,MAAM,EAAE,IAAI,CAAC,GAAG,SAAS,CAAC;AACrE,CAAC,CAAC;AAMF,MAAM,CAAC,MAAM,0BAA0B,GAAG,CAAC,EACvC,MAAM,EACN,OAAO,EACP,WAAW,EACX,IAAI,GACqB,EAAE,EAAE;IAC7B,MAAM,SAAS,GAAG,qBAAqB,GAAG,IAAI,CAAC,OAAO,CAAC,GAAG,GAAG,GAAG,IAAI,CAAC,WAAW,CAAC,CAAC;IAElF,OAAO,+BAA+B,CAAC,MAAM,EAAE,IAAI,CAAC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AAC,GAAG,SAAS,CAAC;AACrE,CAAC,CAAC;AAEF,MAAM,UAAU,2BAA2B,CACvC,QAAyB,EACzB,UAAmB,EACnB,WAAW,GAAG,UAAU,EACxB,IAAI,GAAG,OAAO;IAEd,MAAM,OAAO,GAAG,UAAU,CAAC,CAAC,CAAC,IAAI,UAAU,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;IACnD,OAAO,GAAG,IAAI,WAAW,OAAO,IAAI,WAAW,IAAI,QAAQ,EAAE,CAAC;AAClE,CAAC"}
|
@@ -1,7 +1,8 @@
|
|
1
|
-
import {
|
1
|
+
import { useTracingLevelOptionAvailable } from '../../store/reducers/capabilities/hooks';
|
2
|
+
import { DEFAULT_QUERY_SETTINGS, QUERY_EXECUTION_SETTINGS_KEY } from '../constants';
|
2
3
|
import { useSetting } from './useSetting';
|
3
4
|
export const useQueryExecutionSettings = () => {
|
4
|
-
const
|
5
|
+
const enableTracingLevel = useTracingLevelOptionAvailable();
|
5
6
|
const [setting, setSetting] = useSetting(QUERY_EXECUTION_SETTINGS_KEY);
|
6
7
|
return [
|
7
8
|
{
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"useQueryExecutionSettings.js","sourceRoot":"","sources":["../../../src/utils/hooks/useQueryExecutionSettings.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"useQueryExecutionSettings.js","sourceRoot":"","sources":["../../../src/utils/hooks/useQueryExecutionSettings.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,8BAA8B,EAAC,MAAM,yCAAyC,CAAC;AAEvF,OAAO,EAAC,sBAAsB,EAAE,4BAA4B,EAAC,MAAM,cAAc,CAAC;AAElF,OAAO,EAAC,UAAU,EAAC,MAAM,cAAc,CAAC;AAExC,MAAM,CAAC,MAAM,yBAAyB,GAAG,GAAG,EAAE;IAC1C,MAAM,kBAAkB,GAAG,8BAA8B,EAAE,CAAC;IAC5D,MAAM,CAAC,OAAO,EAAE,UAAU,CAAC,GAAG,UAAU,CAAgB,4BAA4B,CAAC,CAAC;IAEtF,OAAO;QACH;YACI,GAAG,OAAO;YACV,YAAY,EAAE,kBAAkB;gBAC5B,CAAC,CAAC,OAAO,CAAC,YAAY;gBACtB,CAAC,CAAC,sBAAsB,CAAC,YAAY;SAC5C;QACD,UAAU;KACJ,CAAC;AACf,CAAC,CAAC"}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "ydb-embedded-ui",
|
3
|
-
"version": "6.
|
3
|
+
"version": "6.16.0",
|
4
4
|
"files": [
|
5
5
|
"dist"
|
6
6
|
],
|
@@ -38,6 +38,7 @@
|
|
38
38
|
"path-to-regexp": "^3.0.0",
|
39
39
|
"qs": "^6.12.0",
|
40
40
|
"react-error-boundary": "^4.0.13",
|
41
|
+
"react-freeze": "^1.0.4",
|
41
42
|
"react-helmet-async": "^2.0.5",
|
42
43
|
"react-hook-form": "^7.52.1",
|
43
44
|
"react-json-inspector": "^7.1.1",
|
@@ -1,10 +0,0 @@
|
|
1
|
-
import type { EFlag } from '../../types/api/enums';
|
2
|
-
import './DiskPageTitle.scss';
|
3
|
-
interface DiskPageTitleProps {
|
4
|
-
entityName: React.ReactNode;
|
5
|
-
status: EFlag;
|
6
|
-
id: React.ReactNode;
|
7
|
-
className?: string;
|
8
|
-
}
|
9
|
-
export declare function DiskPageTitle({ entityName, status, id, className }: DiskPageTitleProps): import("react/jsx-runtime").JSX.Element;
|
10
|
-
export {};
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"DiskPageTitle.js","sourceRoot":"","sources":["../../../src/components/DiskPageTitle/DiskPageTitle.tsx"],"names":[],"mappings":";AACA,OAAO,EAAC,EAAE,EAAC,MAAM,gBAAgB,CAAC;AAClC,OAAO,EAAC,UAAU,EAAC,MAAM,0BAA0B,CAAC;AAEpD,OAAO,sBAAsB,CAAC;AAE9B,MAAM,CAAC,GAAG,EAAE,CAAC,qBAAqB,CAAC,CAAC;AASpC,MAAM,UAAU,aAAa,CAAC,EAAC,UAAU,EAAE,MAAM,EAAE,EAAE,EAAE,SAAS,EAAqB;IACjF,OAAO,CACH,eAAK,SAAS,EAAE,CAAC,CAAC,IAAI,EAAE,SAAS,CAAC,aAC9B,eAAM,SAAS,EAAE,CAAC,CAAC,QAAQ,CAAC,YAAG,UAAU,GAAQ,EACjD,KAAC,UAAU,IAAC,SAAS,EAAE,CAAC,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAC,GAAG,GAAG,EAC5D,EAAE,IACD,CACT,CAAC;AACN,CAAC"}
|
@@ -1,43 +0,0 @@
|
|
1
|
-
import type { IResponseError } from '../../types/api/error';
|
2
|
-
import type { Chunk } from './types';
|
3
|
-
declare const SET_CHUNK_DATA = "infiniteTable/SET_CHUNK_DATA";
|
4
|
-
type PaginatedTableState<T> = Record<string, Chunk<T> | undefined>;
|
5
|
-
interface SetChunkDataAction<T> {
|
6
|
-
type: typeof SET_CHUNK_DATA;
|
7
|
-
data: {
|
8
|
-
id: string;
|
9
|
-
data: T[];
|
10
|
-
};
|
11
|
-
}
|
12
|
-
export declare const setChunkData: <T>(id: string, data: T[]) => SetChunkDataAction<T>;
|
13
|
-
export declare const setChunkError: (id: string, error: IResponseError) => {
|
14
|
-
readonly type: "infiniteTable/SET_CHUNK_ERROR";
|
15
|
-
readonly data: {
|
16
|
-
readonly id: string;
|
17
|
-
readonly error: IResponseError<unknown>;
|
18
|
-
};
|
19
|
-
};
|
20
|
-
export declare const initChunk: (id: string) => {
|
21
|
-
readonly type: "infiniteTable/INIT_CHUNK";
|
22
|
-
readonly data: {
|
23
|
-
readonly id: string;
|
24
|
-
};
|
25
|
-
};
|
26
|
-
export declare const setChunkLoading: (id: string) => {
|
27
|
-
readonly type: "infiniteTable/SET_CHUNK_LOADING";
|
28
|
-
readonly data: {
|
29
|
-
readonly id: string;
|
30
|
-
};
|
31
|
-
};
|
32
|
-
export declare const removeChunk: (id: string) => {
|
33
|
-
readonly type: "infiniteTable/REMOVE_CHUNK";
|
34
|
-
readonly data: {
|
35
|
-
readonly id: string;
|
36
|
-
};
|
37
|
-
};
|
38
|
-
export declare const resetChunks: () => {
|
39
|
-
readonly type: "infiniteTable/RESET_CHUNKS";
|
40
|
-
};
|
41
|
-
type PaginatedTableAction<T> = SetChunkDataAction<T> | ReturnType<typeof setChunkError> | ReturnType<typeof initChunk> | ReturnType<typeof setChunkLoading> | ReturnType<typeof removeChunk> | ReturnType<typeof resetChunks>;
|
42
|
-
export declare const createPaginatedTableReducer: <T>() => React.Reducer<PaginatedTableState<T>, PaginatedTableAction<T>>;
|
43
|
-
export {};
|
@@ -1,104 +0,0 @@
|
|
1
|
-
const INIT_CHUNK = 'infiniteTable/INIT_CHUNK';
|
2
|
-
const REMOVE_CHUNK = 'infiniteTable/REMOVE_CHUNK';
|
3
|
-
const SET_CHUNK_LOADING = 'infiniteTable/SET_CHUNK_LOADING';
|
4
|
-
const SET_CHUNK_DATA = 'infiniteTable/SET_CHUNK_DATA';
|
5
|
-
const SET_CHUNK_ERROR = 'infiniteTable/SET_CHUNK_ERROR';
|
6
|
-
const RESET_CHUNKS = 'infiniteTable/RESET_CHUNKS';
|
7
|
-
export const setChunkData = (id, data) => {
|
8
|
-
return {
|
9
|
-
type: SET_CHUNK_DATA,
|
10
|
-
data: { id, data },
|
11
|
-
};
|
12
|
-
};
|
13
|
-
export const setChunkError = (id, error) => {
|
14
|
-
return {
|
15
|
-
type: SET_CHUNK_ERROR,
|
16
|
-
data: { id, error },
|
17
|
-
};
|
18
|
-
};
|
19
|
-
export const initChunk = (id) => {
|
20
|
-
return {
|
21
|
-
type: INIT_CHUNK,
|
22
|
-
data: { id },
|
23
|
-
};
|
24
|
-
};
|
25
|
-
export const setChunkLoading = (id) => {
|
26
|
-
return {
|
27
|
-
type: SET_CHUNK_LOADING,
|
28
|
-
data: { id },
|
29
|
-
};
|
30
|
-
};
|
31
|
-
export const removeChunk = (id) => {
|
32
|
-
return {
|
33
|
-
type: REMOVE_CHUNK,
|
34
|
-
data: { id },
|
35
|
-
};
|
36
|
-
};
|
37
|
-
export const resetChunks = () => {
|
38
|
-
return {
|
39
|
-
type: RESET_CHUNKS,
|
40
|
-
};
|
41
|
-
};
|
42
|
-
// Reducer wrapped in additional function to pass generic type
|
43
|
-
export const createPaginatedTableReducer = () => (state, action) => {
|
44
|
-
switch (action.type) {
|
45
|
-
case SET_CHUNK_DATA: {
|
46
|
-
const { id, data } = action.data;
|
47
|
-
return {
|
48
|
-
...state,
|
49
|
-
[id]: {
|
50
|
-
loading: false,
|
51
|
-
wasLoaded: true,
|
52
|
-
active: true,
|
53
|
-
data,
|
54
|
-
},
|
55
|
-
};
|
56
|
-
}
|
57
|
-
case SET_CHUNK_ERROR: {
|
58
|
-
const { id, error } = action.data;
|
59
|
-
return {
|
60
|
-
...state,
|
61
|
-
[id]: {
|
62
|
-
loading: false,
|
63
|
-
wasLoaded: true,
|
64
|
-
active: true,
|
65
|
-
error,
|
66
|
-
},
|
67
|
-
};
|
68
|
-
}
|
69
|
-
case INIT_CHUNK: {
|
70
|
-
const { id } = action.data;
|
71
|
-
return {
|
72
|
-
...state,
|
73
|
-
[id]: {
|
74
|
-
loading: false,
|
75
|
-
wasLoaded: false,
|
76
|
-
active: true,
|
77
|
-
},
|
78
|
-
};
|
79
|
-
}
|
80
|
-
case SET_CHUNK_LOADING: {
|
81
|
-
const { id } = action.data;
|
82
|
-
return {
|
83
|
-
...state,
|
84
|
-
[id]: {
|
85
|
-
loading: true,
|
86
|
-
wasLoaded: false,
|
87
|
-
active: true,
|
88
|
-
},
|
89
|
-
};
|
90
|
-
}
|
91
|
-
case REMOVE_CHUNK: {
|
92
|
-
const { id } = action.data;
|
93
|
-
const newState = { ...state };
|
94
|
-
delete newState[id];
|
95
|
-
return newState;
|
96
|
-
}
|
97
|
-
case RESET_CHUNKS: {
|
98
|
-
return {};
|
99
|
-
}
|
100
|
-
default:
|
101
|
-
return state;
|
102
|
-
}
|
103
|
-
};
|
104
|
-
//# sourceMappingURL=reducer.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"reducer.js","sourceRoot":"","sources":["../../../src/components/PaginatedTable/reducer.ts"],"names":[],"mappings":"AAIA,MAAM,UAAU,GAAG,0BAA0B,CAAC;AAC9C,MAAM,YAAY,GAAG,4BAA4B,CAAC;AAClD,MAAM,iBAAiB,GAAG,iCAAiC,CAAC;AAC5D,MAAM,cAAc,GAAG,8BAA8B,CAAC;AACtD,MAAM,eAAe,GAAG,+BAA+B,CAAC;AACxD,MAAM,YAAY,GAAG,4BAA4B,CAAC;AAalD,MAAM,CAAC,MAAM,YAAY,GAAG,CAAI,EAAU,EAAE,IAAS,EAAyB,EAAE;IAC5E,OAAO;QACH,IAAI,EAAE,cAAc;QACpB,IAAI,EAAE,EAAC,EAAE,EAAE,IAAI,EAAC;KACV,CAAC;AACf,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,EAAU,EAAE,KAAqB,EAAE,EAAE;IAC/D,OAAO;QACH,IAAI,EAAE,eAAe;QACrB,IAAI,EAAE,EAAC,EAAE,EAAE,KAAK,EAAC;KACX,CAAC;AACf,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,SAAS,GAAG,CAAC,EAAU,EAAE,EAAE;IACpC,OAAO;QACH,IAAI,EAAE,UAAU;QAChB,IAAI,EAAE,EAAC,EAAE,EAAC;KACJ,CAAC;AACf,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,EAAU,EAAE,EAAE;IAC1C,OAAO;QACH,IAAI,EAAE,iBAAiB;QACvB,IAAI,EAAE,EAAC,EAAE,EAAC;KACJ,CAAC;AACf,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,EAAU,EAAE,EAAE;IACtC,OAAO;QACH,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE,EAAC,EAAE,EAAC;KACJ,CAAC;AACf,CAAC,CAAC;AA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,CAAC,EAAE;oBACF,OAAO,EAAE,IAAI;oBACb,SAAS,EAAE,KAAK;oBAChB,MAAM,EAAE,IAAI;iBACf;aACJ,CAAC;QACN,CAAC;QACD,KAAK,YAAY,CAAC,CAAC,CAAC;YAChB,MAAM,EAAC,EAAE,EAAC,GAAG,MAAM,CAAC,IAAI,CAAC;YAEzB,MAAM,QAAQ,GAAG,EAAC,GAAG,KAAK,EAAC,CAAC;YAC5B,OAAO,QAAQ,CAAC,EAAE,CAAC,CAAC;YAEpB,OAAO,QAAQ,CAAC;QACpB,CAAC;QACD,KAAK,YAAY,CAAC,CAAC,CAAC;YAChB,OAAO,EAAE,CAAC;QACd,CAAC;QACD;YACI,OAAO,KAAK,CAAC;IACrB,CAAC;AACL,CAAC,CAAC"}
|
@@ -1,7 +0,0 @@
|
|
1
|
-
import type { TTabletStateInfo } from '../../../types/api/tablet';
|
2
|
-
interface TabletControlsProps {
|
3
|
-
tablet: TTabletStateInfo;
|
4
|
-
fetchData: () => Promise<unknown>;
|
5
|
-
}
|
6
|
-
export declare const TabletControls: ({ tablet, fetchData }: TabletControlsProps) => import("react/jsx-runtime").JSX.Element;
|
7
|
-
export {};
|
@@ -1,29 +0,0 @@
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
2
|
-
import React from 'react';
|
3
|
-
import { ButtonWithConfirmDialog } from '../../../components/ButtonWithConfirmDialog/ButtonWithConfirmDialog';
|
4
|
-
import { selectIsUserAllowedToMakeChanges } from '../../../store/reducers/authentication/authentication';
|
5
|
-
import { ETabletState } from '../../../types/api/tablet';
|
6
|
-
import { useTypedSelector } from '../../../utils/hooks';
|
7
|
-
import { b } from '../Tablet';
|
8
|
-
import i18n from '../i18n';
|
9
|
-
export const TabletControls = ({ tablet, fetchData }) => {
|
10
|
-
const { TabletId, HiveId } = tablet;
|
11
|
-
const isUserAllowedToMakeChanges = useTypedSelector(selectIsUserAllowedToMakeChanges);
|
12
|
-
const _onKillClick = () => {
|
13
|
-
return window.api.killTablet(TabletId);
|
14
|
-
};
|
15
|
-
const _onStopClick = () => {
|
16
|
-
return window.api.stopTablet(TabletId, HiveId);
|
17
|
-
};
|
18
|
-
const _onResumeClick = () => {
|
19
|
-
return window.api.resumeTablet(TabletId, HiveId);
|
20
|
-
};
|
21
|
-
const hasHiveId = () => {
|
22
|
-
return HiveId && HiveId !== '0';
|
23
|
-
};
|
24
|
-
const isDisabledRestart = tablet.State === ETabletState.Stopped;
|
25
|
-
const isDisabledResume = tablet.State !== ETabletState.Stopped && tablet.State !== ETabletState.Dead;
|
26
|
-
const isDisabledStop = tablet.State === ETabletState.Stopped || tablet.State === ETabletState.Deleted;
|
27
|
-
return (_jsxs("div", { className: b('controls'), children: [_jsx(ButtonWithConfirmDialog, { dialogContent: i18n('dialog.kill'), onConfirmAction: _onKillClick, onConfirmActionSuccess: fetchData, buttonClassName: b('control'), buttonDisabled: isDisabledRestart || !isUserAllowedToMakeChanges, withPopover: true, popoverContent: i18n('controls.kill-not-allowed'), popoverPlacement: 'bottom', popoverDisabled: isUserAllowedToMakeChanges, children: i18n('controls.kill') }), hasHiveId() ? (_jsxs(React.Fragment, { children: [_jsx(ButtonWithConfirmDialog, { dialogContent: i18n('dialog.stop'), onConfirmAction: _onStopClick, onConfirmActionSuccess: fetchData, buttonClassName: b('control'), buttonDisabled: isDisabledStop || !isUserAllowedToMakeChanges, withPopover: true, popoverContent: i18n('controls.stop-not-allowed'), popoverPlacement: 'bottom', popoverDisabled: isUserAllowedToMakeChanges, children: i18n('controls.stop') }), _jsx(ButtonWithConfirmDialog, { dialogContent: i18n('dialog.resume'), onConfirmAction: _onResumeClick, onConfirmActionSuccess: fetchData, buttonClassName: b('control'), buttonDisabled: isDisabledResume || !isUserAllowedToMakeChanges, withPopover: true, popoverContent: i18n('controls.resume-not-allowed'), popoverPlacement: 'bottom', popoverDisabled: isUserAllowedToMakeChanges, children: i18n('controls.resume') })] })) : null] }));
|
28
|
-
};
|
29
|
-
//# sourceMappingURL=TabletControls.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"TabletControls.js","sourceRoot":"","sources":["../../../../src/containers/Tablet/TabletControls/TabletControls.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAC,uBAAuB,EAAC,MAAM,qEAAqE,CAAC;AAC5G,OAAO,EAAC,gCAAgC,EAAC,MAAM,uDAAuD,CAAC;AACvG,OAAO,EAAC,YAAY,EAAC,MAAM,2BAA2B,CAAC;AAEvD,OAAO,EAAC,gBAAgB,EAAC,MAAM,sBAAsB,CAAC;AACtD,OAAO,EAAC,CAAC,EAAC,MAAM,WAAW,CAAC;AAC5B,OAAO,IAAI,MAAM,SAAS,CAAC;AAO3B,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,EAAC,MAAM,EAAE,SAAS,EAAsB,EAAE,EAAE;IACvE,MAAM,EAAC,QAAQ,EAAE,MAAM,EAAC,GAAG,MAAM,CAAC;IAElC,MAAM,0BAA0B,GAAG,gBAAgB,CAAC,gCAAgC,CAAC,CAAC;IAEtF,MAAM,YAAY,GAAG,GAAG,EAAE;QACtB,OAAO,MAAM,CAAC,GAAG,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC;IAC3C,CAAC,CAAC;IACF,MAAM,YAAY,GAAG,GAAG,EAAE;QACtB,OAAO,MAAM,CAAC,GAAG,CAAC,UAAU,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC;IACnD,CAAC,CAAC;IACF,MAAM,cAAc,GAAG,GAAG,EAAE;QACxB,OAAO,MAAM,CAAC,GAAG,CAAC,YAAY,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC;IACrD,CAAC,CAAC;IAEF,MAAM,SAAS,GAAG,GAAG,EAAE;QACnB,OAAO,MAAM,IAAI,MAAM,KAAK,GAAG,CAAC;IACpC,CAAC,CAAC;IAEF,MAAM,iBAAiB,GAAG,MAAM,CAAC,KAAK,KAAK,YAAY,CA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,SAAS,CAAC,EAC7B,cAAc,EAAE,gBAAgB,IAAI,CAAC,0BAA0B,EAC/D,WAAW,QACX,cAAc,EAAE,IAAI,CAAC,6BAA6B,CAAC,EACnD,gBAAgB,EAAE,QAAQ,EAC1B,eAAe,EAAE,0BAA0B,YAE1C,IAAI,CAAC,iBAAiB,CAAC,GACF,IACb,CACpB,CAAC,CAAC,CAAC,IAAI,IACN,CACT,CAAC;AACN,CAAC,CAAC"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/containers/Tablet/TabletControls/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC"}
|
@@ -1,7 +0,0 @@
|
|
1
|
-
import type { TTabletStateInfo } from '../../../types/api/tablet';
|
2
|
-
interface TabletInfoProps {
|
3
|
-
tablet: TTabletStateInfo;
|
4
|
-
tenantPath?: string;
|
5
|
-
}
|
6
|
-
export declare const TabletInfo: ({ tablet, tenantPath }: TabletInfoProps) => import("react/jsx-runtime").JSX.Element;
|
7
|
-
export {};
|
@@ -1,40 +0,0 @@
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
2
|
-
import { Link as UIKitLink } from '@gravity-ui/uikit';
|
3
|
-
import { Link } from 'react-router-dom';
|
4
|
-
import { InfoViewer } from '../../../components/InfoViewer';
|
5
|
-
import routes, { createHref } from '../../../routes';
|
6
|
-
import { ETabletState } from '../../../types/api/tablet';
|
7
|
-
import { calcUptime } from '../../../utils/dataFormatters/dataFormatters';
|
8
|
-
import { getDefaultNodePath } from '../../Node/NodePages';
|
9
|
-
import { b } from '../Tablet';
|
10
|
-
export const TabletInfo = ({ tablet, tenantPath }) => {
|
11
|
-
const { ChangeTime, Generation, FollowerId, NodeId, HiveId, State, Type, TenantId: { SchemeShard } = {}, } = tablet;
|
12
|
-
const hasHiveId = HiveId && HiveId !== '0';
|
13
|
-
const hasUptime = State === ETabletState.Active;
|
14
|
-
const tabletInfo = [{ label: 'Database', value: tenantPath || '-' }];
|
15
|
-
if (hasHiveId) {
|
16
|
-
tabletInfo.push({
|
17
|
-
label: 'HiveId',
|
18
|
-
value: (_jsx(UIKitLink, { href: createHref(routes.tablet, { id: HiveId }), target: "_blank", children: HiveId })),
|
19
|
-
});
|
20
|
-
}
|
21
|
-
if (SchemeShard) {
|
22
|
-
tabletInfo.push({
|
23
|
-
label: 'SchemeShard',
|
24
|
-
value: (_jsx(UIKitLink, { href: createHref(routes.tablet, { id: SchemeShard }), target: "_blank", children: SchemeShard })),
|
25
|
-
});
|
26
|
-
}
|
27
|
-
tabletInfo.push({ label: 'Type', value: Type }, { label: 'State', value: State });
|
28
|
-
if (hasUptime) {
|
29
|
-
tabletInfo.push({ label: 'Uptime', value: calcUptime(ChangeTime) });
|
30
|
-
}
|
31
|
-
tabletInfo.push({ label: 'Generation', value: Generation }, {
|
32
|
-
label: 'Node',
|
33
|
-
value: (_jsx(Link, { className: b('link'), to: getDefaultNodePath(String(NodeId)), children: NodeId })),
|
34
|
-
});
|
35
|
-
if (FollowerId) {
|
36
|
-
tabletInfo.push({ label: 'Follower', value: FollowerId });
|
37
|
-
}
|
38
|
-
return _jsx(InfoViewer, { info: tabletInfo });
|
39
|
-
};
|
40
|
-
//# sourceMappingURL=TabletInfo.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"TabletInfo.js","sourceRoot":"","sources":["../../../../src/containers/Tablet/TabletInfo/TabletInfo.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAC,IAAI,IAAI,SAAS,EAAC,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAC,IAAI,EAAC,MAAM,kBAAkB,CAAC;AAGtC,OAAO,EAAC,UAAU,EAAC,MAAM,gCAAgC,CAAC;AAC1D,OAAO,MAAM,EAAE,EAAC,UAAU,EAAC,MAAM,iBAAiB,CAAC;AACnD,OAAO,EAAC,YAAY,EAAC,MAAM,2BAA2B,CAAC;AAEvD,OAAO,EAAC,UAAU,EAAC,MA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K,EAAE,IAAI,EAAC,EAAE,EAAC,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,EAAC,CAAC,CAAC;IAE9E,IAAI,SAAS,EAAE,CAAC;QACZ,UAAU,CAAC,IAAI,CAAC,EAAC,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE,UAAU,CAAC,UAAU,CAAC,EAAC,CAAC,CAAC;IACtE,CAAC;IAED,UAAU,CAAC,IAAI,CACX,EAAC,KAAK,EAAE,YAAY,EAAE,KAAK,EAAE,UAAU,EAAC,EACxC;QACI,KAAK,EAAE,MAAM;QACb,KAAK,EAAE,CACH,KAAC,IAAI,IAAC,SAAS,EAAE,CAAC,CAAC,MAAM,CAAC,EAAE,EAAE,EAAE,kBAAkB,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,YAC7D,MAAM,GACJ,CACV;KACJ,CACJ,CAAC;IAEF,IAAI,UAAU,EAAE,CAAC;QACb,UAAU,CAAC,IAAI,CAAC,EAAC,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,UAAU,EAAC,CAAC,CAAC;IAC5D,CAAC;IAED,OAAO,KAAC,UAAU,IAAC,IAAI,EAAE,UAAU,GAAI,CAAC;AAC5C,CAAC,CAAC"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/containers/Tablet/TabletInfo/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"TabletTable.js","sourceRoot":"","sources":["../../../../src/containers/Tablet/TabletTable/TabletTable.tsx"],"names":[],"mappings":";AACA,OAAO,SAAS,MAAM,8BAA8B,CAAC;AAErD,OAAO,EAAC,YAAY,EAAC,MAAM,+CAA+C,CAAC;AAC3E,OAAO,EAAC,YAAY,EAAC,MAAM,+CAA+C,CAAC;AAC3E,OAAO,EAAC,mBAAmB,EAAC,MAAM,6DAA6D,CAAC;AAEhG,OAAO,EAAC,UA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EAAC,EAAE,EAAE;YACd,IAAI,CAAC,GAAG,CAAC,IAAI,EAAE,CAAC;gBACZ,OAAO,oCAAc,CAAC;YAC1B,CAAC;YACD,OAAO,KAAC,YAAY,IAAC,IAAI,EAAE,GAAG,CAAC,IAAI,EAAE,UAAU,EAAE,KAAK,EAAE,kBAAkB,SAAG,CAAC;QAClF,CAAC;KACJ;CACJ,CAAC;AAEF,MAAM,cAAc,GAAG;IACnB,cAAc,EAAE,KAAK;CACxB,CAAC;AAMF,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,EAAC,OAAO,EAAmB,EAAE,EAAE;IACvD,OAAO,CACH,KAAC,mBAAmB,IAChB,iBAAiB,EAAE,2BAA2B,EAC9C,IAAI,EAAE,OAAO,EACb,OAAO,EAAE,OAAO,EAChB,QAAQ,EAAE,cAAc,EACxB,gBAAgB,EAAE;YACd,QAAQ,EAAE,YAAY;YACtB,KAAK,EAAE,SAAS,CAAC,UAAU;SAC9B,GACH,CACL,CAAC;AACN,CAAC,CAAC"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/containers/Tablet/TabletTable/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC"}
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|