ydb-embedded-ui 6.22.0 → 6.23.0
Sign up to get free protection for your applications and to get access to all the features.
- 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/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 +1 -3
- package/dist/components/VDisk/VDisk.js +2 -2
- package/dist/components/VDisk/VDisk.js.map +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/Cluster/Cluster.scss +2 -3
- package/dist/containers/Header/breadcrumbs.js +2 -3
- package/dist/containers/Header/breadcrumbs.js.map +1 -1
- package/dist/containers/Nodes/columns/columns.js +8 -0
- package/dist/containers/Nodes/columns/columns.js.map +1 -1
- package/dist/containers/Nodes/columns/constants.d.ts +2 -0
- package/dist/containers/Nodes/columns/constants.js +4 -0
- package/dist/containers/Nodes/columns/constants.js.map +1 -1
- package/dist/containers/Nodes/columns/i18n/en.json +1 -0
- package/dist/containers/Nodes/columns/i18n/index.d.ts +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 +3 -2
- 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 -5
- package/dist/containers/Storage/PaginatedStorage.js +7 -73
- 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.js +15 -70
- 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 +3 -16
- package/dist/containers/Storage/StorageControls/StorageControls.js +18 -11
- 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} +23 -5
- package/dist/containers/Storage/StorageGroups/PaginatedStorageGroupsTable.js.map +1 -0
- package/dist/containers/Storage/StorageGroups/{StorageGroups.d.ts → StorageGroupsTable.d.ts} +3 -4
- package/dist/containers/Storage/StorageGroups/{StorageGroups.js → StorageGroupsTable.js} +4 -3
- package/dist/containers/Storage/StorageGroups/StorageGroupsTable.js.map +1 -0
- package/dist/containers/Storage/StorageGroups/columns/columns.js +35 -10
- package/dist/containers/Storage/StorageGroups/columns/columns.js.map +1 -1
- package/dist/containers/Storage/StorageGroups/columns/constants.d.ts +17 -0
- package/dist/containers/Storage/StorageGroups/columns/constants.js +46 -1
- package/dist/containers/Storage/StorageGroups/columns/constants.js.map +1 -1
- package/dist/containers/Storage/StorageGroups/columns/hooks.d.ts +3 -3
- package/dist/containers/Storage/StorageGroups/columns/hooks.js +5 -8
- package/dist/containers/Storage/StorageGroups/columns/hooks.js.map +1 -1
- package/dist/containers/Storage/StorageGroups/columns/i18n/en.json +6 -0
- package/dist/containers/Storage/StorageGroups/columns/i18n/index.d.ts +1 -1
- package/dist/containers/Storage/StorageGroups/columns/types.d.ts +7 -5
- package/dist/containers/Storage/StorageGroups/getGroups.js +6 -5
- 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} +23 -5
- package/dist/containers/Storage/StorageNodes/PaginatedStorageNodesTable.js.map +1 -0
- package/dist/containers/Storage/StorageNodes/{StorageNodes.d.ts → StorageNodesTable.d.ts} +3 -4
- package/dist/containers/Storage/StorageNodes/{StorageNodes.js → StorageNodesTable.js} +8 -6
- package/dist/containers/Storage/StorageNodes/StorageNodesTable.js.map +1 -0
- package/dist/containers/Storage/StorageNodes/columns/StorageNodesColumns.scss +1 -0
- package/dist/containers/Storage/StorageNodes/columns/columns.d.ts +1 -1
- package/dist/containers/Storage/StorageNodes/columns/columns.js +4 -5
- package/dist/containers/Storage/StorageNodes/columns/columns.js.map +1 -1
- package/dist/containers/Storage/StorageNodes/columns/constants.d.ts +9 -0
- package/dist/containers/Storage/StorageNodes/columns/constants.js +27 -0
- package/dist/containers/Storage/StorageNodes/columns/constants.js.map +1 -1
- package/dist/containers/Storage/StorageNodes/columns/i18n/en.json +2 -0
- package/dist/containers/Storage/StorageNodes/columns/i18n/index.d.ts +1 -1
- package/dist/containers/Storage/StorageNodes/getNodes.js +6 -5
- package/dist/containers/Storage/StorageNodes/getNodes.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 +11 -6
- package/dist/containers/Storage/utils/index.js.map +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 +0 -3
- package/dist/containers/Tenant/Diagnostics/DiagnosticsPages.js +2 -2
- 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/TenantOverview.js +8 -2
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantOverview.js.map +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 +27 -9
- package/dist/containers/Tenant/ObjectSummary/ObjectSummary.js.map +1 -1
- 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/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 +3 -1
- package/dist/containers/Tenant/Query/ExecuteResult/ExecuteResult.js.map +1 -1
- package/dist/containers/Tenant/Query/ExecuteResult/i18n/en.json +2 -1
- package/dist/containers/Tenant/Query/ExecuteResult/i18n/index.d.ts +1 -1
- package/dist/containers/Tenant/Query/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/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/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/services/api.js +3 -3
- package/dist/services/api.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/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/nodes/types.d.ts +1 -0
- 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/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 +2 -2
- 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/types/api/capabilities.d.ts +1 -1
- package/dist/types/api/nodes.d.ts +3 -2
- package/dist/types/api/nodes.js.map +1 -1
- package/dist/types/api/storage.d.ts +22 -4
- package/dist/types/store/nodesList.d.ts +1 -1
- package/dist/utils/hooks/useSelectedColumns.js +7 -2
- package/dist/utils/hooks/useSelectedColumns.js.map +1 -1
- package/dist/utils/nodes.d.ts +2 -2
- package/dist/utils/nodes.js +4 -4
- package/dist/utils/nodes.js.map +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 +1 -1
- package/dist/containers/Storage/StorageGroups/PaginatedStorageGroups.d.ts +0 -16
- package/dist/containers/Storage/StorageGroups/PaginatedStorageGroups.js.map +0 -1
- package/dist/containers/Storage/StorageGroups/StorageGroups.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.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/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/containers/Tenant/utils/{queryTemplates.d.ts → schemaQueryTemplates.d.ts} +0 -0
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../src/containers/Storage/StorageNodes/columns/constants.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../src/containers/Storage/StorageNodes/columns/constants.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AAKtB,OAAO,IAAI,MAAM,QAAQ,CAAC;AAE1B,MAAM,CAAC,MAAM,kCAAkC,GAAG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pC,CAAC;CACoD,CAAC;AAE1D,MAAM,6BAA6B,GAAG;IAClC,MAAM;IACN,IAAI;IACJ,MAAM;IACN,SAAS;IACT,QAAQ;IACR,SAAS;IACT,gBAAgB;CACoB,CAAC;AAEzC,MAAM,CAAC,MAAM,8BAA8B,GAAmB,6BAA6B,CAAC,GAAG,CAC3F,CAAC,KAAK,EAAE,EAAE;IACN,OAAO;QACH,KAAK,EAAE,KAAK;QACZ,OAAO,EAAE,4BAA4B,CAAC,KAAK,CAAC;KAC/C,CAAC;AACN,CAAC,CACJ,CAAC;AAEF,MAAM,CAAC,MAAM,8BAA8B,GAAG,CAAC;KAC1C,MAAM,CAAgC,CAAC,KAAK,EAAE,EAAE,CAAC,6BAA6B,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;KAC/F,KAAK,CAAC,SAAS,CAAC,CAAC"}
|
@@ -1,2 +1,2 @@
|
|
1
|
-
declare const _default: (key: "missing" | "host" | "uptime" | "dc" | "rack" | "nodes-id" | "pdisks", params?: import("@gravity-ui/i18n").Params) => string;
|
1
|
+
declare const _default: (key: "missing" | "version" | "host" | "uptime" | "dc" | "rack" | "disk-space-usage" | "nodes-id" | "pdisks", params?: import("@gravity-ui/i18n").Params) => string;
|
2
2
|
export default _default;
|
@@ -1,12 +1,9 @@
|
|
1
1
|
import { prepareStorageNodesResponse } from '../../../store/reducers/storage/utils';
|
2
2
|
import { prepareSortValue } from '../../../utils/filters';
|
3
3
|
import { getUptimeParamValue, isSortableNodesProperty } from '../../../utils/nodes';
|
4
|
-
const getConcurrentId = (limit, offset) => {
|
5
|
-
return `getStorageNodes|offset${offset}|limit${limit}`;
|
6
|
-
};
|
7
4
|
export const getStorageNodes = async (params) => {
|
8
5
|
const { type = 'static', storage = true, limit, offset, sortParams, filters } = params;
|
9
|
-
const { searchValue, nodesUptimeFilter, visibleEntities, database } = filters !== null && filters !== void 0 ? filters : {};
|
6
|
+
const { searchValue, nodesUptimeFilter, visibleEntities, database, nodeId, groupId, filterGroup, filterGroupBy, } = filters !== null && filters !== void 0 ? filters : {};
|
10
7
|
const { sortOrder, columnId } = sortParams !== null && sortParams !== void 0 ? sortParams : {};
|
11
8
|
const sort = isSortableNodesProperty(columnId)
|
12
9
|
? prepareSortValue(columnId, sortOrder)
|
@@ -21,7 +18,11 @@ export const getStorageNodes = async (params) => {
|
|
21
18
|
uptime: getUptimeParamValue(nodesUptimeFilter),
|
22
19
|
with: visibleEntities,
|
23
20
|
database,
|
24
|
-
|
21
|
+
node_id: nodeId,
|
22
|
+
group_id: groupId,
|
23
|
+
filter_group: filterGroup,
|
24
|
+
filter_group_by: filterGroupBy,
|
25
|
+
});
|
25
26
|
const preparedResponse = prepareStorageNodesResponse(response);
|
26
27
|
return {
|
27
28
|
data: preparedResponse.nodes || [],
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"getNodes.js","sourceRoot":"","sources":["../../../../src/containers/Storage/StorageNodes/getNodes.ts"],"names":[],"mappings":"AAKA,OAAO,EAAC,2BAA2B,EAAC,MAAM,uCAAuC,CAAC;AAElF,OAAO,EAAC,gBAAgB,EAAC,MAAM,wBAAwB,CAAC;AACxD,OAAO,EAAC,mBAAmB,EAAE,uBAAuB,EAAC,MAAM,sBAAsB,CAAC;AAElF,MAAM,
|
1
|
+
{"version":3,"file":"getNodes.js","sourceRoot":"","sources":["../../../../src/containers/Storage/StorageNodes/getNodes.ts"],"names":[],"mappings":"AAKA,OAAO,EAAC,2BAA2B,EAAC,MAAM,uCAAuC,CAAC;AAElF,OAAO,EAAC,gBAAgB,EAAC,MAAM,wBAAwB,CAAC;AACxD,OAAO,EAAC,mBAAmB,EAAE,uBAAuB,EAAC,MAAM,sBAAsB,CAAC;AAElF,MAAM,CAAC,MAAM,eAAe,GAIxB,KAAK,EAAE,MAAM,EAAE,EAAE;IACjB,MAAM,EAAC,IAAI,GAAG,QAAQ,EAAE,OAAO,GAAG,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAC,GAAG,MAAM,CAAC;IACrF,MAAM,EACF,WAAW,EACX,iBAAiB,EACjB,eAAe,EACf,QAAQ,EACR,MAAM,EACN,OAAO,EACP,WAAW,EACX,aAAa,GAChB,GAAG,OAAO,aAAP,OAAO,cAAP,OAAO,GAAI,EAAE,CAAC;IAClB,MAAM,EAAC,SAAS,EAAE,QAAQ,EAAC,GAAG,UAAU,aAAV,UAAU,cAAV,UAAU,GAAI,EAAE,CAAC;IAE/C,MAAM,IAAI,GAAG,uBAAuB,CAAC,QAAQ,CAAC;QAC1C,CAAC,CAAC,gBAAgB,CAAC,QAAQ,EAAE,SAAS,CAAC;QACvC,CAAC,CAAC,SAAS,CAAC;IAEhB,MAAM,QAAQ,GAAG,MAAM,MAAM,CAAC,GAAG,CAAC,QAAQ,CAAC;QACvC,IAAI;QACJ,OAAO;QACP,KAAK;QACL,MAAM;QACN,IAAI;QACJ,MAAM,EAAE,WAAW;QACnB,MAAM,EAAE,mBAAmB,CAAC,iBAAiB,CAAC;QAC9C,IAAI,EAAE,eAAe;QACrB,QAAQ;QACR,OAAO,EAAE,MAAM;QACf,QAAQ,EAAE,OAAO;QACjB,YAAY,EAAE,WAAW;QACzB,eAAe,EAAE,aAAa;KACjC,CAAC,CAAC;IACH,MAAM,gBAAgB,GAAG,2BAA2B,CAAC,QAAQ,CAAC,CAAC;IAC/D,OAAO;QACH,IAAI,EAAE,gBAAgB,CAAC,KAAK,IAAI,EAAE;QAClC,KAAK,EAAE,gBAAgB,CAAC,KAAK,IAAI,CAAC;QAClC,KAAK,EAAE,gBAAgB,CAAC,KAAK,IAAI,CAAC;KACrC,CAAC;AACN,CAAC,CAAC"}
|
@@ -0,0 +1,12 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
import './TableGroup.scss';
|
3
|
+
interface TableGroupProps {
|
4
|
+
children?: React.ReactNode;
|
5
|
+
title: string;
|
6
|
+
entityName: string;
|
7
|
+
count: string | number;
|
8
|
+
expanded: boolean;
|
9
|
+
onIsExpandedChange: (name: string, isExpanded: boolean) => void;
|
10
|
+
}
|
11
|
+
export declare function TableGroup({ children, title, entityName, count, expanded, onIsExpandedChange, }: TableGroupProps): import("react/jsx-runtime").JSX.Element;
|
12
|
+
export {};
|
@@ -0,0 +1,21 @@
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
2
|
+
import { ArrowToggle, Label, Text } from '@gravity-ui/uikit';
|
3
|
+
import { cn } from '../../../utils/cn';
|
4
|
+
import './TableGroup.scss';
|
5
|
+
const b = cn('ydb-table-group');
|
6
|
+
export function TableGroup({ children, title, entityName, count, expanded = false, onIsExpandedChange, }) {
|
7
|
+
const toggleCollapsed = () => {
|
8
|
+
onIsExpandedChange(title, !expanded);
|
9
|
+
};
|
10
|
+
const renderTitle = () => {
|
11
|
+
return (_jsx("button", { onClick: toggleCollapsed, className: b('button'), title: title, children: _jsxs("div", { className: b('title-wrapper'), children: [_jsx(ArrowToggle, { direction: expanded ? 'top' : 'bottom' }), _jsxs("div", { className: b('title'), children: [_jsx(Text, { variant: "subheader-2", children: title }), _jsxs(Text, { variant: "body-2", color: "secondary", className: b('count'), children: [entityName, ": ", _jsx(Label, { theme: "normal", children: count })] })] })] }) }));
|
12
|
+
};
|
13
|
+
const renderContent = () => {
|
14
|
+
if (expanded) {
|
15
|
+
return _jsx("div", { className: b('content'), children: children });
|
16
|
+
}
|
17
|
+
return null;
|
18
|
+
};
|
19
|
+
return (_jsxs("div", { className: b(null), children: [renderTitle(), renderContent()] }));
|
20
|
+
}
|
21
|
+
//# sourceMappingURL=TableGroup.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"TableGroup.js","sourceRoot":"","sources":["../../../../src/containers/Storage/TableGroup/TableGroup.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAC,WAAW,EAAE,KAAK,EAAE,IAAI,EAAC,MAAM,mBAAmB,CAAC;AAE3D,OAAO,EAAC,EAAE,EAAC,MAAM,mBAAmB,CAAC;AAEr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,aAAa,EAAE,IACd,CACT,CAAC;AACN,CAAC"}
|
@@ -0,0 +1,49 @@
|
|
1
|
+
.ydb-table-group {
|
2
|
+
display: flex;
|
3
|
+
flex-direction: column;
|
4
|
+
|
5
|
+
width: 100%;
|
6
|
+
margin-bottom: 20px;
|
7
|
+
|
8
|
+
border: 1px solid var(--g-color-line-generic);
|
9
|
+
border-radius: var(--g-spacing-2);
|
10
|
+
|
11
|
+
&__button {
|
12
|
+
padding: 8px 0;
|
13
|
+
|
14
|
+
cursor: pointer;
|
15
|
+
|
16
|
+
border: unset;
|
17
|
+
background: unset;
|
18
|
+
}
|
19
|
+
|
20
|
+
&__title-wrapper {
|
21
|
+
position: sticky;
|
22
|
+
left: 0;
|
23
|
+
|
24
|
+
display: flex;
|
25
|
+
flex-direction: row;
|
26
|
+
justify-content: flex-start;
|
27
|
+
align-items: center;
|
28
|
+
gap: var(--g-spacing-2);
|
29
|
+
|
30
|
+
width: max-content;
|
31
|
+
padding-left: 20px;
|
32
|
+
}
|
33
|
+
|
34
|
+
&__title {
|
35
|
+
display: flex;
|
36
|
+
flex-direction: row;
|
37
|
+
gap: var(--g-spacing-4);
|
38
|
+
}
|
39
|
+
|
40
|
+
&__count {
|
41
|
+
display: flex;
|
42
|
+
flex-direction: row;
|
43
|
+
gap: var(--g-spacing-3);
|
44
|
+
}
|
45
|
+
|
46
|
+
&__content {
|
47
|
+
padding: 12px 0 20px 20px;
|
48
|
+
}
|
49
|
+
}
|
@@ -0,0 +1,28 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
export function useExpandedGroups(groups) {
|
3
|
+
const [expandedGroups, setExpandedGroups] = React.useState({});
|
4
|
+
React.useEffect(() => {
|
5
|
+
if (groups === null || groups === void 0 ? void 0 : groups.length) {
|
6
|
+
setExpandedGroups((previousExpandedGroups) => {
|
7
|
+
return groups.reduce((result, { name }) => {
|
8
|
+
const previousValue = previousExpandedGroups[name];
|
9
|
+
// Preserve previously expanded groups on groups list change
|
10
|
+
return {
|
11
|
+
...result,
|
12
|
+
[name]: previousValue !== null && previousValue !== void 0 ? previousValue : false,
|
13
|
+
};
|
14
|
+
}, {});
|
15
|
+
});
|
16
|
+
}
|
17
|
+
}, [groups]);
|
18
|
+
const setIsGroupExpanded = React.useCallback((name, isExpanded) => {
|
19
|
+
setExpandedGroups((previousExpandedGroups) => {
|
20
|
+
return {
|
21
|
+
...previousExpandedGroups,
|
22
|
+
[name]: isExpanded,
|
23
|
+
};
|
24
|
+
});
|
25
|
+
}, []);
|
26
|
+
return { expandedGroups, setIsGroupExpanded };
|
27
|
+
}
|
28
|
+
//# sourceMappingURL=useExpandedTableGroups.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"useExpandedTableGroups.js","sourceRoot":"","sources":["../../../../src/containers/Storage/TableGroup/useExpandedTableGroups.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,MAAM,UAAU,iBAAiB,CAAC,MAAqB;IACnD,MAAM,CAAC,cAAc,EAAE,iBAAiB,CAAC,GAAG,KAAK,CAAC,QAAQ,CAA0B,EAAE,CAAC,CAAC;IAExF,KAAK,CAAC,SAAS,CAAC,GAAG,EAAE;QACjB,IAAI,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,MAAM,EAAE,CAAC;YACjB,iBAAiB,CAAC,CAAC,sBAAsB,EAAE,EAAE;gBACzC,OAAO,MAAM,CAAC,MAAM,CAAC,CAAC,MAAM,EAAE,EAAC,IAAI,EAAC,EAAE,EAAE;oBACpC,MAAM,aAAa,GAAG,sBAAsB,CAAC,IAAI,CAAC,CAAC;oBAEnD,4DAA4D;oBAC5D,OAAO;wBACH,GAAG,MAAM;wBACT,CAAC,IAAI,CAAC,EAAE,aAAa,aAAb,aAAa,cAAb,aAAa,GAAI,KAAK;qBACjC,CAAC;gBACN,CAAC,EAAE,EAAE,CAAC,CAAC;YACX,CAAC,CAAC,CAAC;QACP,CAAC;IACL,CAAC,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC;IAEb,MAAM,kBAAkB,GAAG,KAAK,CAAC,WAAW,CAAC,CAAC,IAAY,EAAE,UAAmB,EAAE,EAAE;QAC/E,iBAAiB,CAAC,CAAC,sBAAsB,EAAE,EAAE;YACzC,OAAO;gBACH,GAAG,sBAAsB;gBACzB,CAAC,IAAI,CAAC,EAAE,UAAU;aACrB,CAAC;QACN,CAAC,CAAC,CAAC;IACP,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,OAAO,EAAC,cAAc,EAAE,kBAAkB,EAAC,CAAC;AAChD,CAAC"}
|
@@ -2,5 +2,8 @@
|
|
2
2
|
"groups": "Groups",
|
3
3
|
"nodes": "Nodes",
|
4
4
|
"controls_groups-search-placeholder": "Group ID, Pool name",
|
5
|
-
"controls_nodes-search-placeholder": "Node ID, FQDN"
|
5
|
+
"controls_nodes-search-placeholder": "Node ID, FQDN",
|
6
|
+
"controls_group-by-placeholder": "Group by:",
|
7
|
+
"no-nodes": "No such nodes",
|
8
|
+
"no-groups": "No such groups"
|
6
9
|
}
|
@@ -1,2 +1,2 @@
|
|
1
|
-
declare const _default: (key: "nodes" | "groups" | "controls_groups-search-placeholder" | "controls_nodes-search-placeholder", params?: import("@gravity-ui/i18n").Params) => string;
|
1
|
+
declare const _default: (key: "nodes" | "groups" | "controls_groups-search-placeholder" | "controls_nodes-search-placeholder" | "controls_group-by-placeholder" | "no-nodes" | "no-groups", params?: import("@gravity-ui/i18n").Params) => string;
|
2
2
|
export default _default;
|
@@ -1,6 +1,5 @@
|
|
1
1
|
import { registerKeysets } from '../../../utils/i18n';
|
2
2
|
import en from './en.json';
|
3
|
-
import ru from './ru.json';
|
4
3
|
const COMPONENT = 'ydb-storage';
|
5
|
-
export default registerKeysets(COMPONENT, {
|
4
|
+
export default registerKeysets(COMPONENT, { en });
|
6
5
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/containers/Storage/i18n/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,eAAe,EAAC,MAAM,qBAAqB,CAAC;AAEpD,OAAO,EAAE,MAAM,WAAW,CAAC;
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/containers/Storage/i18n/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,eAAe,EAAC,MAAM,qBAAqB,CAAC;AAEpD,OAAO,EAAE,MAAM,WAAW,CAAC;AAE3B,MAAM,SAAS,GAAG,aAAa,CAAC;AAEhC,eAAe,eAAe,CAAC,SAAS,EAAE,EAAC,EAAE,EAAC,CAAC,CAAC"}
|
@@ -1,3 +1,12 @@
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
2
|
+
import { AccessDenied } from '../../components/Errors/403';
|
3
|
+
import { ResponseError } from '../../components/Errors/ResponseError';
|
1
4
|
import { cn } from '../../utils/cn';
|
2
5
|
export const b = cn('global-storage');
|
6
|
+
export const renderPaginatedTableErrorMessage = (error) => {
|
7
|
+
if (error.status === 403) {
|
8
|
+
return _jsx(AccessDenied, { position: "left" });
|
9
|
+
}
|
10
|
+
return _jsx(ResponseError, { error: error });
|
11
|
+
};
|
3
12
|
//# sourceMappingURL=shared.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"shared.js","sourceRoot":"","sources":["../../../src/containers/Storage/shared.
|
1
|
+
{"version":3,"file":"shared.js","sourceRoot":"","sources":["../../../src/containers/Storage/shared.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAC,YAAY,EAAC,MAAM,6BAA6B,CAAC;AACzD,OAAO,EAAC,aAAa,EAAC,MAAM,uCAAuC,CAAC;AAEpE,OAAO,EAAC,EAAE,EAAC,MAAM,gBAAgB,CAAC;AAElC,MAAM,CAAC,MAAM,CAAC,GAAG,EAAE,CAAC,gBAAgB,CAAC,CAAC;AAEtC,MAAM,CAAC,MAAM,gCAAgC,GAAuB,CAAC,KAAK,EAAE,EAAE;IAC1E,IAAI,KAAK,CAAC,MAAM,KAAK,GAAG,EAAE,CAAC;QACvB,OAAO,KAAC,YAAY,IAAC,QAAQ,EAAC,MAAM,GAAG,CAAC;IAC5C,CAAC;IAED,OAAO,KAAC,aAAa,IAAC,KAAK,EAAE,KAAK,GAAI,CAAC;AAC3C,CAAC,CAAC"}
|
@@ -0,0 +1,18 @@
|
|
1
|
+
import type { StorageType, VisibleEntities } from '../../store/reducers/storage/types';
|
2
|
+
import { NodesUptimeFilterValues } from '../../utils/nodes';
|
3
|
+
export declare function useStorageQueryParams(): {
|
4
|
+
storageType: "nodes" | "groups";
|
5
|
+
visibleEntities: "space" | "missing" | "all";
|
6
|
+
searchValue: string;
|
7
|
+
nodesUptimeFilter: NodesUptimeFilterValues;
|
8
|
+
storageGroupsGroupByParam: import("../../types/api/storage").GroupsGroupByField | undefined;
|
9
|
+
storageNodesGroupByParam: import("../../types/api/nodes").NodesGroupByField | undefined;
|
10
|
+
handleTextFilterChange: (value: string) => void;
|
11
|
+
handleVisibleEntitiesChange: (value: VisibleEntities) => void;
|
12
|
+
handleStorageTypeChange: (value: StorageType) => void;
|
13
|
+
handleUptimeFilterChange: (value: NodesUptimeFilterValues) => void;
|
14
|
+
handleStorageGroupsGroupByParamChange: (value: string) => void;
|
15
|
+
handleStorageNodesGroupByParamChange: (value: string) => void;
|
16
|
+
handleShowAllGroups: () => void;
|
17
|
+
handleShowAllNodes: () => void;
|
18
|
+
};
|
@@ -0,0 +1,64 @@
|
|
1
|
+
import { StringParam, useQueryParams } from 'use-query-params';
|
2
|
+
import { storageTypeSchema, visibleEntitiesSchema } from '../../store/reducers/storage/types';
|
3
|
+
import { NodesUptimeFilterValues, nodesUptimeFilterValuesSchema } from '../../utils/nodes';
|
4
|
+
import { storageGroupsGroupByParamSchema } from './StorageGroups/columns/constants';
|
5
|
+
import { storageNodesGroupByParamSchema } from './StorageNodes/columns/constants';
|
6
|
+
export function useStorageQueryParams() {
|
7
|
+
var _a;
|
8
|
+
const [queryParams, setQueryParams] = useQueryParams({
|
9
|
+
type: StringParam,
|
10
|
+
visible: StringParam,
|
11
|
+
search: StringParam,
|
12
|
+
uptimeFilter: StringParam,
|
13
|
+
storageNodesGroupBy: StringParam,
|
14
|
+
storageGroupsGroupBy: StringParam,
|
15
|
+
});
|
16
|
+
const storageType = storageTypeSchema.parse(queryParams.type);
|
17
|
+
const visibleEntities = visibleEntitiesSchema.parse(queryParams.visible);
|
18
|
+
const searchValue = (_a = queryParams.search) !== null && _a !== void 0 ? _a : '';
|
19
|
+
const nodesUptimeFilter = nodesUptimeFilterValuesSchema.parse(queryParams.uptimeFilter);
|
20
|
+
const storageGroupsGroupByParam = storageGroupsGroupByParamSchema.parse(queryParams.storageGroupsGroupBy);
|
21
|
+
const storageNodesGroupByParam = storageNodesGroupByParamSchema.parse(queryParams.storageNodesGroupBy);
|
22
|
+
const handleTextFilterChange = (value) => {
|
23
|
+
setQueryParams({ search: value || undefined }, 'replaceIn');
|
24
|
+
};
|
25
|
+
const handleVisibleEntitiesChange = (value) => {
|
26
|
+
setQueryParams({ visible: value }, 'replaceIn');
|
27
|
+
};
|
28
|
+
const handleStorageTypeChange = (value) => {
|
29
|
+
setQueryParams({ type: value }, 'replaceIn');
|
30
|
+
};
|
31
|
+
const handleUptimeFilterChange = (value) => {
|
32
|
+
setQueryParams({ uptimeFilter: value }, 'replaceIn');
|
33
|
+
};
|
34
|
+
const handleStorageGroupsGroupByParamChange = (value) => {
|
35
|
+
setQueryParams({ storageGroupsGroupBy: value }, 'replaceIn');
|
36
|
+
};
|
37
|
+
const handleStorageNodesGroupByParamChange = (value) => {
|
38
|
+
setQueryParams({ storageNodesGroupBy: value }, 'replaceIn');
|
39
|
+
};
|
40
|
+
const handleShowAllGroups = () => {
|
41
|
+
handleVisibleEntitiesChange('all');
|
42
|
+
};
|
43
|
+
const handleShowAllNodes = () => {
|
44
|
+
handleVisibleEntitiesChange('all');
|
45
|
+
handleUptimeFilterChange(NodesUptimeFilterValues.All);
|
46
|
+
};
|
47
|
+
return {
|
48
|
+
storageType,
|
49
|
+
visibleEntities,
|
50
|
+
searchValue,
|
51
|
+
nodesUptimeFilter,
|
52
|
+
storageGroupsGroupByParam,
|
53
|
+
storageNodesGroupByParam,
|
54
|
+
handleTextFilterChange,
|
55
|
+
handleVisibleEntitiesChange,
|
56
|
+
handleStorageTypeChange,
|
57
|
+
handleUptimeFilterChange,
|
58
|
+
handleStorageGroupsGroupByParamChange,
|
59
|
+
handleStorageNodesGroupByParamChange,
|
60
|
+
handleShowAllGroups,
|
61
|
+
handleShowAllNodes,
|
62
|
+
};
|
63
|
+
}
|
64
|
+
//# sourceMappingURL=useStorageQueryParams.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"useStorageQueryParams.js","sourceRoot":"","sources":["../../../src/containers/Storage/useStorageQueryParams.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,WAAW,EAAE,cAAc,EAAC,MAAM,kBAAkB,CAAC;AAG7D,OAAO,EAAC,iBAAiB,EAAE,qBAAqB,EAAC,MAAM,oCAAoC,CAAC;AAC5F,OAAO,EAAC,uBAAuB,EAAE,6BAA6B,EAAC,MAAM,mBAAmB,CAAC;AAEzF,OAAO,EAAC,+BAA+B,EAAC,MAAM,mCAAmC,CAAC;AAClF,OAAO,EAAC,8BAA8B,EAAC,MAAM,kCAAkC,CAAC;AAEhF,MAAM,UAAU,qBAAqB;;IACjC,MAAM,CAAC,WAAW,EAAE,cAAc,CAAC,GAAG,cAAc,CAAC;QACjD,IAAI,EAAE,WAAW;QACjB,OAAO,EAAE,WAAW;QACpB,MAAM,EAAE,WAAW;QACnB,YAAY,EAAE,WAAW;QACzB,mBAAmB,EAAE,WAAW;QAChC,oBAAoB,EAAE,WAAW;KACpC,CAAC,CAAC;IAEH,MAAM,WAAW,GAAG,iBAAiB,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;IAE9D,MAAM,eAAe,GAAG,qBAAqB,CAAC,KAAK,CAAC,W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AM,mBAAmB,GAAG,GAAG,EAAE;QAC7B,2BAA2B,CAAC,KAAK,CAAC,CAAC;IACvC,CAAC,CAAC;IAEF,MAAM,kBAAkB,GAAG,GAAG,EAAE;QAC5B,2BAA2B,CAAC,KAAK,CAAC,CAAC;QACnC,wBAAwB,CAAC,uBAAuB,CAAC,GAAG,CAAC,CAAC;IAC1D,CAAC,CAAC;IAEF,OAAO;QACH,WAAW;QACX,eAAe;QACf,WAAW;QACX,iBAAiB;QACjB,yBAAyB;QACzB,wBAAwB;QAExB,sBAAsB;QACtB,2BAA2B;QAC3B,uBAAuB;QACvB,wBAAwB;QAExB,qCAAqC;QACrC,oCAAoC;QAEpC,mBAAmB;QACnB,kBAAkB;KACrB,CAAC;AACN,CAAC"}
|
@@ -1,8 +1,12 @@
|
|
1
1
|
import type { NodesSortParams } from '../../../store/reducers/nodes/types';
|
2
2
|
import type { PreparedStorageGroup, StorageSortParams, VisibleEntities } from '../../../store/reducers/storage/types';
|
3
|
-
import {
|
3
|
+
import type { PreparedVDisk } from '../../../utils/disks/types';
|
4
4
|
export declare const getDegradedSeverity: (group: PreparedStorageGroup) => "success" | "danger" | "warning" | undefined;
|
5
5
|
export declare const getUsageSeverityForStorageGroup: (value: number) => "success" | "danger" | "warning" | undefined;
|
6
|
-
export declare const getUsageSeverityForEntityStatus: (value: number) => EFlag.Green | EFlag.Yellow | EFlag.Red | undefined;
|
7
6
|
export declare const defaultSortNode: NodesSortParams;
|
8
7
|
export declare function getDefaultSortGroup(visibleEntities: VisibleEntities): StorageSortParams;
|
8
|
+
export type VDiskViewContext = {
|
9
|
+
groupId?: string;
|
10
|
+
nodeId?: string;
|
11
|
+
};
|
12
|
+
export declare function isVdiskActive(vDisk: PreparedVDisk, viewContext?: VDiskViewContext): boolean;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { ASCENDING, DESCENDING } from '@gravity-ui/react-data-table/build/esm/lib/constants';
|
2
2
|
import { VISIBLE_ENTITIES } from '../../../store/reducers/storage/constants';
|
3
|
-
import {
|
3
|
+
import { valueIsDefined } from '../../../utils';
|
4
4
|
import { generateEvaluator } from '../../../utils/generateEvaluator';
|
5
5
|
import { NODES_COLUMNS_IDS } from '../../Nodes/columns/constants';
|
6
6
|
import { STORAGE_GROUPS_COLUMNS_IDS } from '../StorageGroups/columns/constants';
|
@@ -21,11 +21,6 @@ export const getUsageSeverityForStorageGroup = generateEvaluator(80, 85, [
|
|
21
21
|
'warning',
|
22
22
|
'danger',
|
23
23
|
]);
|
24
|
-
export const getUsageSeverityForEntityStatus = generateEvaluator(80, 85, [
|
25
|
-
EFlag.Green,
|
26
|
-
EFlag.Yellow,
|
27
|
-
EFlag.Red,
|
28
|
-
]);
|
29
24
|
export const defaultSortNode = {
|
30
25
|
sortValue: NODES_COLUMNS_IDS.NodeId,
|
31
26
|
sortOrder: ASCENDING,
|
@@ -51,4 +46,14 @@ export function getDefaultSortGroup(visibleEntities) {
|
|
51
46
|
}
|
52
47
|
return defaultSortGroup;
|
53
48
|
}
|
49
|
+
export function isVdiskActive(vDisk, viewContext) {
|
50
|
+
var _a;
|
51
|
+
if (valueIsDefined((_a = vDisk.VDiskId) === null || _a === void 0 ? void 0 : _a.GroupID) && (viewContext === null || viewContext === void 0 ? void 0 : viewContext.groupId)) {
|
52
|
+
return String(vDisk.VDiskId.GroupID) === viewContext.groupId;
|
53
|
+
}
|
54
|
+
if (valueIsDefined(vDisk.NodeId) && (viewContext === null || viewContext === void 0 ? void 0 : viewContext.nodeId)) {
|
55
|
+
return String(vDisk.NodeId) === viewContext.nodeId;
|
56
|
+
}
|
57
|
+
return true;
|
58
|
+
}
|
54
59
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/containers/Storage/utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAE,UAAU,EAAC,MAAM,sDAAsD,CAAC;AAG3F,OAAO,EAAC,gBAAgB,EAAC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QACtD,OAAO,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,WAAW,CAAC,MAAM,CAAC;IACvD,CAAC;IAED,OAAO,IAAI,CAAC;AAChB,CAAC"}
|
@@ -5,7 +5,7 @@ import JSONTree from 'react-json-inspector';
|
|
5
5
|
import { shallowEqual } from 'react-redux';
|
6
6
|
import { ResponseError } from '../../../../components/Errors/ResponseError';
|
7
7
|
import { Loader } from '../../../../components/Loader';
|
8
|
-
import {
|
8
|
+
import { overviewApi } from '../../../../store/reducers/overview/overview';
|
9
9
|
import { selectSchemaMergedChildrenPaths } from '../../../../store/reducers/schema/schema';
|
10
10
|
import { cn } from '../../../../utils/cn';
|
11
11
|
import { useAutoRefreshInterval, useTypedSelector } from '../../../../utils/hooks';
|
@@ -14,6 +14,7 @@ import './Describe.scss';
|
|
14
14
|
import 'react-json-inspector/json-inspector.css';
|
15
15
|
const b = cn('ydb-describe');
|
16
16
|
const expandMap = new Map();
|
17
|
+
const emptyObject = {};
|
17
18
|
const Describe = ({ path, database, type }) => {
|
18
19
|
const [autoRefreshInterval] = useAutoRefreshInterval();
|
19
20
|
const isEntityWithMergedImpl = isEntityWithMergedImplementation(type);
|
@@ -25,11 +26,24 @@ const Describe = ({ path, database, type }) => {
|
|
25
26
|
else if (mergedChildrenPaths) {
|
26
27
|
paths = [path, ...mergedChildrenPaths];
|
27
28
|
}
|
28
|
-
const { currentData, isFetching, error } =
|
29
|
+
const { currentDescribe, currentData, isFetching, error } = overviewApi.useGetOverviewQuery(paths.length ? { paths, database } : skipToken, {
|
29
30
|
pollingInterval: autoRefreshInterval,
|
31
|
+
selectFromResult: (props) => {
|
32
|
+
const { currentData } = props;
|
33
|
+
if (!currentData) {
|
34
|
+
return { currentDescribe: emptyObject, ...props };
|
35
|
+
}
|
36
|
+
const mergedData = [currentData.data, ...currentData.additionalData];
|
37
|
+
const data = mergedData.reduce((acc, item) => {
|
38
|
+
if (item === null || item === void 0 ? void 0 : item.Path) {
|
39
|
+
acc[item.Path] = item;
|
40
|
+
}
|
41
|
+
return acc;
|
42
|
+
}, {});
|
43
|
+
return { currentDescribe: data, ...props };
|
44
|
+
},
|
30
45
|
});
|
31
46
|
const loading = isFetching && currentData === undefined;
|
32
|
-
const currentDescribe = currentData;
|
33
47
|
let preparedDescribeData;
|
34
48
|
if (currentDescribe) {
|
35
49
|
const paths = Object.keys(currentDescribe);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Describe.js","sourceRoot":"","sources":["../../../../../src/containers/Tenant/Diagnostics/Describe/Describe.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAC,eAAe,EAAC,MAAM,mBAAmB,CAAC;AAClD,OAAO,EAAC,SAAS,EAAC,MAAM,wBAAwB,CAAC;AACjD,OAAO,QAAQ,MAAM,sBAAsB,CAAC;AAC5C,OAAO,EAAC,YAAY,EAAC,MAAM,aAAa,CAAC;AAEzC,OAAO,EAAC,aAAa,EAAC,MAAM,6CAA6C,CAAC;AAC1E,OAAO,EAAC,MAAM,EAAC,MAAM,+BAA+B,CAAC;AACrD,OAAO,EAAC,WAAW,EAAC,MAAM,
|
1
|
+
{"version":3,"file":"Describe.js","sourceRoot":"","sources":["../../../../../src/containers/Tenant/Diagnostics/Describe/Describe.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAC,eAAe,EAAC,MAAM,mBAAmB,CAAC;AAClD,OAAO,EAAC,SAAS,EAAC,MAAM,wBAAwB,CAAC;AACjD,OAAO,QAAQ,MAAM,sBAAsB,CAAC;AAC5C,OAAO,EAAC,YAAY,EAAC,MAAM,aAAa,CAAC;AAEzC,OAAO,EAAC,aAAa,EAAC,MAAM,6CAA6C,CAAC;AAC1E,OAAO,EAAC,MAAM,EAAC,MAAM,+BAA+B,CAAC;AACrD,OAAO,EAAC,WAAW,EAAC,MAAM,8CAA8C,CAAC;AACzE,OAAO,EAAC,+BAA+B,EAAC,MAAM,0CAA0C,CAAC;AAGzF,OAAO,EAAC,EAAE,EAAC,MAAM,sBAAs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AC,CAAC,mBAAmB,CAAC,sBAAa,CAAC;IAC/D,CAAC;IAED,OAAO,CACH,eAAK,SAAS,EAAE,CAAC,EAAE,aACd,KAAK,CAAC,CAAC,CAAC,KAAC,aAAa,IAAC,KAAK,EAAE,KAAK,GAAI,CAAC,CAAC,CAAC,IAAI,EAC9C,oBAAoB,CAAC,CAAC,CAAC,CACpB,eAAK,SAAS,EAAE,CAAC,CAAC,QAAQ,CAAC,aACvB,KAAC,QAAQ,IACL,IAAI,EAAE,oBAAoB,EAC1B,SAAS,EAAE,CAAC,CAAC,MAAM,CAAC,EACpB,OAAO,EAAE,CAAC,EAAC,IAAI,EAAC,EAAE,EAAE;4BAChB,MAAM,QAAQ,GAAG,CAAC,CAAC,SAAS,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,KAAK,CAAC,CAAC;4BACjD,SAAS,CAAC,GAAG,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;wBAClC,CAAC,EACD,aAAa,EAAE;4BACX,YAAY,EAAE,GAAG;yBACpB,EACD,UAAU,EAAE,CAAC,OAAO,EAAE,EAAE;4BACpB,OAAO,SAAS,CAAC,GAAG,CAAC,OAAO,CAAC,IAAI,KAAK,CAAC;wBAC3C,CAAC,GACH,EACF,KAAC,eAAe,IACZ,IAAI,EAAC,gBAAgB,EACrB,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,oBAAoB,CAAC,EAC1C,SAAS,EAAE,CAAC,CAAC,MAAM,CAAC,GACtB,IACA,CACT,CAAC,CAAC,CAAC,IAAI,IACN,CACT,CAAC;AACN,CAAC,CAAC;AAEF,eAAe,QAAQ,CAAC"}
|
@@ -63,7 +63,7 @@ function Diagnostics(props) {
|
|
63
63
|
return _jsx(SchemaViewer, { path: path, tenantName: tenantName, type: type, extended: true });
|
64
64
|
}
|
65
65
|
case TENANT_DIAGNOSTICS_TABS_IDS.topQueries: {
|
66
|
-
return _jsx(TopQueries, { tenantName: tenantName
|
66
|
+
return _jsx(TopQueries, { tenantName: tenantName });
|
67
67
|
}
|
68
68
|
case TENANT_DIAGNOSTICS_TABS_IDS.topShards: {
|
69
69
|
return _jsx(TopShards, { tenantName: tenantName, path: path, type: type });
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Diagnostics.js","sourceRoot":"","sources":["../../../../src/containers/Tenant/Diagnostics/Diagnostics.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAC,IAAI,EAAC,MAAM,mBAAmB,CAAC;AACvC,OAAO,EAAC,MAAM,EAAC,MAAM,oBAAoB,CAAC;AAC1C,OAAO,EAAC,IAAI,EAAC,MAAM,kBAAkB,CAAC;AACtC,OAAO,EAAC,WAAW,EAAE,cAAc,EAAC,MAAM,kBAAkB,CAAC;AAE7D,OAAO,EAAC,kBAAkB,EAAC,MAAM,2DAA2D,CAAC;AAC7F,OAAO,MAAM,EAAE,EAAC,UAAU,EAAC,MAAM,iBAAiB,CAAC;AACnD,OAAO,EAAC,wBAAwB,EAAC,MAAM,4CAA4C,CAAC;AACpF,OAAO,EAAC,2BAA2B,EAAC,MAAM,0CAA0C,CAAC;AACrF,OAAO,EAAC,iBAAiB,EAAC,MAAM,uCAAuC,CAAC;AAGxE,OAAO,EAAC,EAAE,EAAC,MAAM,mBAAmB,CAAC;AACrC,OAAO,EAAC,gBAAgB,EAAE,gBAAgB,EAAC,MAAM,sBAAsB,CAAC;AACxE,OAAO,EAAC,OAAO,EAAC,MAAM,eAAe,CAAC;AACtC,OAAO,EAAC,YAAY,EAAC,MAAM,0BAA0B,CAAC;AACtD,OAAO,EAAC,cAAc,EAAC,MAAM,8BAA8B,CAAC;AAC5D,OAAO,EAAC,OAAO,EAAC,MAAM,eAAe,CAAC;AACtC,OAAO,EAAC,YAAY,EAAC,MAAM,qCAAqC,CAAC;AACjE,OAAO,EAAC,gBAAgB,EAAC,MAAM,gBAAgB,CAAC;AAChD,OAAO,EAAC,oBAAoB,EAAC,MAAM,iBAAiB,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M,EAAE,CAAC,EAAC,EAAE,EAAC,EAAE,IAAI,EAAE,EAAE;4BACnB,MAAM,IAAI,GAAG,UAAU,CAAC,MAAM,CAAC,MAAM,EAAE,SAAS,EAAE;gCAC9C,GAAG,WAAW;gCACd,CAAC,gBAAgB,CAAC,cAAc,CAAC,EAAE,EAAE;6BACxC,CAAC,CAAC;4BAEH,OAAO,CACH,KAAC,IAAI,IAAC,EAAE,EAAE,IAAI,EAAW,SAAS,EAAE,CAAC,CAAC,KAAK,CAAC,YACvC,IAAI,IADY,EAAE,CAEhB,CACV,CAAC;wBACN,CAAC,EACD,gBAAgB,EAAE,IAAI,GACxB,EACF,KAAC,kBAAkB,KAAG,IACpB,GACJ,CACT,CAAC;IACN,CAAC,CAAC;IAEF,OAAO,CACH,eAAK,SAAS,EAAE,CAAC,EAAE,EAAE,GAAG,EAAE,SAAS,aAC9B,SAAS,CAAC,CAAC,CAAC,CACT,KAAC,MAAM,cACH,0BAAQ,SAAS,CAAC,KAAK,GAAS,GAC3B,CACZ,CAAC,CAAC,CAAC,IAAI,EACP,UAAU,EAAE,EACb,cAAK,SAAS,EAAE,CAAC,CAAC,cAAc,CAAC,YAAG,gBAAgB,EAAE,GAAO,IAC3D,CACT,CAAC;AACN,CAAC;AAED,eAAe,WAAW,CAAC"}
|
@@ -10,7 +10,7 @@ const schema = {
|
|
10
10
|
};
|
11
11
|
const topQueries = {
|
12
12
|
id: TENANT_DIAGNOSTICS_TABS_IDS.topQueries,
|
13
|
-
title: '
|
13
|
+
title: 'Queries',
|
14
14
|
};
|
15
15
|
const topShards = {
|
16
16
|
id: TENANT_DIAGNOSTICS_TABS_IDS.topShards,
|
@@ -69,7 +69,7 @@ export const DATABASE_PAGES = [
|
|
69
69
|
configs,
|
70
70
|
];
|
71
71
|
export const TABLE_PAGES = [overview, schema, topShards, nodes, graph, tablets, hotKeys, describe];
|
72
|
-
export const COLUMN_TABLE_PAGES = [overview, schema, topShards, nodes,
|
72
|
+
export const COLUMN_TABLE_PAGES = [overview, schema, topShards, nodes, tablets, describe];
|
73
73
|
export const DIR_PAGES = [overview, topShards, nodes, describe];
|
74
74
|
export const CDC_STREAM_PAGES = [overview, consumers, partitions, nodes, tablets, describe];
|
75
75
|
export const TOPIC_PAGES = [overview, consumers, partitions, nodes, tablets, describe];
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"DiagnosticsPages.js","sourceRoot":"","sources":["../../../../src/containers/Tenant/Diagnostics/DiagnosticsPages.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,2BAA2B,EAAC,MAAM,0CAA0C,CAAC;AAErF,OAAO,EAAC,SAAS,EAAC,MAAM,2BAA2B,CAAC;AAOpD,MAAM,QAAQ,GAAG;IACb,EAAE,EAAE,2BAA2B,CAAC,QAAQ;IACxC,KAAK,EAAE,MAAM;CAChB,CAAC;AAEF,MAAM,MAAM,GAAG;IACX,EAAE,EAAE,2BAA2B,CAAC,MAAM;IACtC,KAAK,EAAE,QAAQ;CAClB,CAAC;AAEF,MAAM,UAAU,GAAG;IACf,EAAE,EAAE,2BAA2B,CAAC,UAAU;IAC1C,KAAK,EAAE,
|
1
|
+
{"version":3,"file":"DiagnosticsPages.js","sourceRoot":"","sources":["../../../../src/containers/Tenant/Diagnostics/DiagnosticsPages.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,2BAA2B,EAAC,MAAM,0CAA0C,CAAC;AAErF,OAAO,EAAC,SAAS,EAAC,MAAM,2BAA2B,CAAC;AAOpD,MAAM,QAAQ,GAAG;IACb,EAAE,EAAE,2BAA2B,CAAC,QAAQ;IACxC,KAAK,EAAE,MAAM;CAChB,CAAC;AAEF,MAAM,MAAM,GAAG;IACX,EAAE,EAAE,2BAA2B,CAAC,MAAM;IACtC,KAAK,EAAE,QAAQ;CAClB,CAAC;AAEF,MAAM,UAAU,GAAG;IACf,EAAE,EAAE,2BAA2B,CAAC,UAAU;IAC1C,KAAK,EAAE,SAAS;CACnB,CAAC;AAEF,MAAM,SAAS,GAAG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Ac,CAAC,EAAE,WAAW;IACvC,CAAC,SAAS,CAAC,oBAAoB,CAAC,EAAE,kBAAkB;IAEpD,CAAC,SAAS,CAAC,YAAY,CAAC,EAAE,SAAS;IACnC,CAAC,SAAS,CAAC,mBAAmB,CAAC,EAAE,SAAS;IAE1C,CAAC,SAAS,CAAC,kBAAkB,CAAC,EAAE,gBAAgB;IAEhD,CAAC,SAAS,CAAC,uBAAuB,CAAC,EAAE,WAAW;IAEhD,CAAC,SAAS,CAAC,2BAA2B,CAAC,EAAE,0BAA0B;IACnE,CAAC,SAAS,CAAC,sBAAsB,CAAC,EAAE,oBAAoB;IAExD,CAAC,SAAS,CAAC,aAAa,CAAC,EAAE,UAAU;IAErC,CAAC,SAAS,CAAC,oBAAoB,CAAC,EAAE,uBAAuB;CAC5D,CAAC;AAEF,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,IAAgB,EAAE,EAAE,CAAC,CAAC,IAAI,IAAI,eAAe,CAAC,IAAI,CAAC,CAAC,IAAI,SAAS,CAAC;AAEjG,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,EAAC,eAAe,EAA8B,EAAE,EAAE;IAC/E,OAAO,eAAe;QAClB,CAAC,CAAC,cAAc;QAChB,CAAC,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,EAAE,KAAK,2BAA2B,CAAC,OAAO,CAAC,CAAC;AAC3F,CAAC,CAAC"}
|
@@ -6,10 +6,10 @@ import { Button, Card, Icon } from '@gravity-ui/uikit';
|
|
6
6
|
import { ResponseError } from '../../../../components/Errors/ResponseError';
|
7
7
|
import { ResizeableDataTable } from '../../../../components/ResizeableDataTable/ResizeableDataTable';
|
8
8
|
import { hotKeysApi } from '../../../../store/reducers/hotKeys/hotKeys';
|
9
|
-
import {
|
9
|
+
import { overviewApi } from '../../../../store/reducers/overview/overview';
|
10
10
|
import { cn } from '../../../../utils/cn';
|
11
11
|
import { DEFAULT_TABLE_SETTINGS, IS_HOTKEYS_HELP_HIDDEN_KEY } from '../../../../utils/constants';
|
12
|
-
import { useSetting } from '../../../../utils/hooks';
|
12
|
+
import { useAutoRefreshInterval, useSetting } from '../../../../utils/hooks';
|
13
13
|
import i18n from './i18n';
|
14
14
|
import keyIcon from '../../../../assets/icons/key.svg';
|
15
15
|
import './HotKeys.scss';
|
@@ -41,7 +41,14 @@ export function HotKeys({ path, database }) {
|
|
41
41
|
var _a, _b;
|
42
42
|
const { currentData: data, isFetching, error } = hotKeysApi.useGetHotKeysQuery({ path, database });
|
43
43
|
const loading = isFetching && data === undefined;
|
44
|
-
const
|
44
|
+
const [autoRefreshInterval] = useAutoRefreshInterval();
|
45
|
+
const { currentData, isLoading: schemaLoading } = overviewApi.useGetOverviewQuery({
|
46
|
+
paths: [path],
|
47
|
+
database,
|
48
|
+
}, {
|
49
|
+
pollingInterval: autoRefreshInterval,
|
50
|
+
});
|
51
|
+
const { data: schemaData } = currentData !== null && currentData !== void 0 ? currentData : {};
|
45
52
|
const keyColumnsIds = (_b = (_a = schemaData === null || schemaData === void 0 ? void 0 : schemaData.PathDescription) === null || _a === void 0 ? void 0 : _a.Table) === null || _b === void 0 ? void 0 : _b.KeyColumnNames;
|
46
53
|
const tableColumns = React.useMemo(() => {
|
47
54
|
return getHotKeysColumns(keyColumnsIds);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"HotKeys.js","sourceRoot":"","sources":["../../../../../src/containers/Tenant/Diagnostics/HotKeys/HotKeys.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAC,KAAK,EAAC,MAAM,mBAAmB,CAAC;AACxC,OAAO,SAAS,MAAM,8BAA8B,CAAC;AAErD,OAAO,EAAC,MAAM,EAAE,IAAI,EAAE,IAAI,EAAC,MAAM,mBAAmB,CAAC;AAErD,OAAO,EAAC,aAAa,EAAC,MAAM,6CAA6C,CAAC;AAC1E,OAAO,EAAC,mBAAmB,EAA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