ydb-embedded-ui 16.0.0 → 16.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/MetricChart/reducer.d.ts +2 -2
- package/dist/containers/Cluster/ClusterOverview/components/BridgeInfoTable.js +148 -29
- package/dist/containers/Cluster/ClusterOverview/components/BridgeInfoTable.js.map +1 -1
- package/dist/containers/Cluster/ClusterOverview/components/BridgeInfoTable.scss +106 -10
- package/dist/containers/Cluster/i18n/en.json +23 -0
- package/dist/containers/Cluster/i18n/index.d.ts +1 -1
- package/dist/containers/Operations/Operations.js +2 -2
- package/dist/containers/Operations/Operations.js.map +1 -1
- package/dist/containers/Operations/columns.d.ts +1 -2
- package/dist/containers/Operations/columns.js +3 -5
- package/dist/containers/Operations/columns.js.map +1 -1
- package/dist/containers/Operations/useOperationsInfiniteQuery.d.ts +0 -5
- package/dist/containers/Operations/useOperationsInfiniteQuery.js +14 -11
- package/dist/containers/Operations/useOperationsInfiniteQuery.js.map +1 -1
- package/dist/containers/Tenant/Diagnostics/Overview/TableInfo/CompactTableAction/CompactTableAction.d.ts +15 -3
- package/dist/containers/Tenant/Diagnostics/Overview/TableInfo/CompactTableAction/CompactTableAction.js +41 -22
- package/dist/containers/Tenant/Diagnostics/Overview/TableInfo/CompactTableAction/CompactTableAction.js.map +1 -1
- package/dist/containers/Tenant/Diagnostics/Overview/TableInfo/TableInfo.js +36 -45
- package/dist/containers/Tenant/Diagnostics/Overview/TableInfo/TableInfo.js.map +1 -1
- package/dist/containers/Tenant/Diagnostics/Overview/TableInfo/components/TableInfoSection.d.ts +17 -0
- package/dist/containers/Tenant/Diagnostics/Overview/TableInfo/components/TableInfoSection.js +19 -0
- package/dist/containers/Tenant/Diagnostics/Overview/TableInfo/components/TableInfoSection.js.map +1 -0
- package/dist/containers/Tenant/Diagnostics/Overview/TableInfo/hooks/useTableCompaction.d.ts +16 -0
- package/dist/containers/Tenant/Diagnostics/Overview/TableInfo/hooks/useTableCompaction.js +33 -0
- package/dist/containers/Tenant/Diagnostics/Overview/TableInfo/hooks/useTableCompaction.js.map +1 -0
- package/dist/containers/Tenant/Diagnostics/Overview/TableInfo/hooks/useTablePartitioning.d.ts +14 -0
- package/dist/containers/Tenant/Diagnostics/Overview/TableInfo/hooks/useTablePartitioning.js +39 -0
- package/dist/containers/Tenant/Diagnostics/Overview/TableInfo/hooks/useTablePartitioning.js.map +1 -0
- package/dist/containers/Tenant/Diagnostics/Overview/TableInfo/i18n/en.json +6 -3
- package/dist/containers/Tenant/Diagnostics/Overview/TableInfo/i18n/index.d.ts +1 -1
- package/dist/containers/Tenant/Diagnostics/Overview/TableInfo/prepareTableInfo/index.d.ts +27 -0
- package/dist/containers/Tenant/Diagnostics/Overview/TableInfo/prepareTableInfo/index.js +64 -0
- package/dist/containers/Tenant/Diagnostics/Overview/TableInfo/prepareTableInfo/index.js.map +1 -0
- package/dist/containers/Tenant/Diagnostics/Overview/TableInfo/prepareTableInfo/prepareColumnTableInfo.d.ts +6 -0
- package/dist/containers/Tenant/Diagnostics/Overview/TableInfo/prepareTableInfo/prepareColumnTableInfo.js +38 -0
- package/dist/containers/Tenant/Diagnostics/Overview/TableInfo/prepareTableInfo/prepareColumnTableInfo.js.map +1 -0
- package/dist/containers/Tenant/Diagnostics/Overview/TableInfo/prepareTableInfo/prepareCommonTableInfo.d.ts +32 -0
- package/dist/containers/Tenant/Diagnostics/Overview/TableInfo/prepareTableInfo/prepareCommonTableInfo.js +94 -0
- package/dist/containers/Tenant/Diagnostics/Overview/TableInfo/prepareTableInfo/prepareCommonTableInfo.js.map +1 -0
- package/dist/containers/Tenant/Diagnostics/Overview/TableInfo/prepareTableInfo/preparePartitionConfig.d.ts +11 -0
- package/dist/containers/Tenant/Diagnostics/Overview/TableInfo/prepareTableInfo/preparePartitionConfig.js +45 -0
- package/dist/containers/Tenant/Diagnostics/Overview/TableInfo/prepareTableInfo/preparePartitionConfig.js.map +1 -0
- package/dist/containers/Tenant/Diagnostics/Overview/TableInfo/prepareTableInfo/prepareRowTableInfo.d.ts +10 -0
- package/dist/containers/Tenant/Diagnostics/Overview/TableInfo/prepareTableInfo/prepareRowTableInfo.js +53 -0
- package/dist/containers/Tenant/Diagnostics/Overview/TableInfo/prepareTableInfo/prepareRowTableInfo.js.map +1 -0
- package/dist/containers/Tenant/Diagnostics/Overview/TableInfo/prepareTableInfo/prepareTTL.d.ts +10 -0
- package/dist/containers/Tenant/Diagnostics/Overview/TableInfo/prepareTableInfo/prepareTTL.js +19 -0
- package/dist/containers/Tenant/Diagnostics/Overview/TableInfo/prepareTableInfo/prepareTTL.js.map +1 -0
- package/dist/containers/Tenant/Diagnostics/Overview/TableInfo/prepareTableInfo/renderHelpers.d.ts +18 -0
- package/dist/containers/Tenant/Diagnostics/Overview/TableInfo/prepareTableInfo/renderHelpers.js +41 -0
- package/dist/containers/Tenant/Diagnostics/Overview/TableInfo/prepareTableInfo/renderHelpers.js.map +1 -0
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantStorage/useTenantStorageNewData.d.ts +5 -5
- package/dist/containers/Tenant/ObjectSummary/SchemaTree/SchemaTree.js +39 -1
- package/dist/containers/Tenant/ObjectSummary/SchemaTree/SchemaTree.js.map +1 -1
- package/dist/containers/Tenant/i18n/en.json +1 -0
- package/dist/containers/Tenant/i18n/index.d.ts +1 -1
- package/dist/containers/Tenant/utils/schema.d.ts +1 -0
- package/dist/containers/Tenant/utils/schema.js +3 -0
- package/dist/containers/Tenant/utils/schema.js.map +1 -1
- package/dist/containers/Tenant/utils/schemaActions.d.ts +3 -0
- package/dist/containers/Tenant/utils/schemaActions.js +23 -6
- package/dist/containers/Tenant/utils/schemaActions.js.map +1 -1
- package/dist/store/configureStore.d.ts +4 -4
- package/dist/store/defaultStore.d.ts +2 -2
- 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 +39 -39
- package/dist/store/reducers/capabilities/hooks.d.ts +5 -5
- package/dist/store/reducers/cluster/cluster.d.ts +5 -5
- package/dist/store/reducers/cluster/cluster.js +3 -2
- package/dist/store/reducers/cluster/cluster.js.map +1 -1
- package/dist/store/reducers/cluster/utils.d.ts +2 -1
- package/dist/store/reducers/cluster/utils.js +28 -0
- package/dist/store/reducers/cluster/utils.js.map +1 -1
- package/dist/store/reducers/clusters/clusters.d.ts +2 -2
- package/dist/store/reducers/codeAssist/codeAssist.d.ts +6 -6
- package/dist/store/reducers/configs.d.ts +3 -3
- package/dist/store/reducers/environments/environments.d.ts +2 -2
- package/dist/store/reducers/executeTopQueries/executeTopQueries.d.ts +4 -4
- package/dist/store/reducers/healthcheckInfo/healthcheckInfo.d.ts +111 -111
- 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 -3
- 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 -1
- package/dist/store/reducers/nodes/nodes.d.ts +2 -2
- package/dist/store/reducers/nodesList.d.ts +12 -12
- package/dist/store/reducers/operations.d.ts +6 -9
- package/dist/store/reducers/operations.js +5 -24
- package/dist/store/reducers/operations.js.map +1 -1
- package/dist/store/reducers/overview/overview.d.ts +2 -2
- package/dist/store/reducers/partitions/partitions.d.ts +3 -3
- package/dist/store/reducers/pdisk/pdisk.d.ts +2 -2
- package/dist/store/reducers/planToSvg.d.ts +2 -2
- package/dist/store/reducers/preview.d.ts +2 -2
- package/dist/store/reducers/query/api.d.ts +4 -4
- package/dist/store/reducers/replication.d.ts +2 -2
- package/dist/store/reducers/schema/schema.d.ts +16 -16
- package/dist/store/reducers/schemaAcl/schemaAcl.d.ts +39 -39
- package/dist/store/reducers/settings/api.d.ts +4 -4
- package/dist/store/reducers/settings/settings.d.ts +1 -1
- package/dist/store/reducers/shardsWorkload/shardsWorkload.d.ts +2 -2
- package/dist/store/reducers/showCreateTable/showCreateTable.d.ts +2 -2
- package/dist/store/reducers/storage/storage.d.ts +3 -3
- package/dist/store/reducers/storageUsage/StorageUsage.d.ts +2 -2
- package/dist/store/reducers/streamingQuery/streamingQuery.d.ts +2 -2
- package/dist/store/reducers/tableData.d.ts +1 -1
- package/dist/store/reducers/tablePartitioning/tablePartitioning.d.ts +2 -2
- package/dist/store/reducers/tableSchemaData.d.ts +2 -2
- package/dist/store/reducers/tablet.d.ts +7 -7
- package/dist/store/reducers/tablets.d.ts +3 -3
- 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/storage/tenantOverviewStorage.d.ts +2 -2
- package/dist/store/reducers/tenantOverview/topShards/tenantOverviewTopShards.d.ts +2 -2
- package/dist/store/reducers/tenants/tenants.d.ts +2 -2
- package/dist/store/reducers/topic.d.ts +45 -45
- package/dist/store/reducers/vdisk/vdisk.d.ts +3 -3
- package/dist/store/reducers/viewSchema/viewSchema.d.ts +2 -2
- package/dist/types/api/cluster.d.ts +10 -1
- package/dist/types/api/cluster.js +8 -0
- package/dist/types/api/cluster.js.map +1 -1
- package/dist/utils/clusterLinks/resolveClusterLinks.d.ts +6 -4
- package/dist/utils/clusterLinks/resolveClusterLinks.js +14 -6
- package/dist/utils/clusterLinks/resolveClusterLinks.js.map +1 -1
- package/dist/utils/hooks/index.d.ts +1 -0
- package/dist/utils/hooks/index.js +1 -0
- package/dist/utils/hooks/index.js.map +1 -1
- package/dist/utils/hooks/useCompactionFeature.d.ts +13 -0
- package/dist/utils/hooks/useCompactionFeature.js +20 -0
- package/dist/utils/hooks/useCompactionFeature.js.map +1 -0
- package/dist/utils/hooks/useStartCompaction.d.ts +7 -0
- package/dist/utils/hooks/useStartCompaction.js +22 -0
- package/dist/utils/hooks/useStartCompaction.js.map +1 -0
- package/package.json +1 -1
- package/dist/containers/Tenant/Diagnostics/Overview/TableInfo/prepareTableInfo.d.ts +0 -42
- package/dist/containers/Tenant/Diagnostics/Overview/TableInfo/prepareTableInfo.js +0 -252
- package/dist/containers/Tenant/Diagnostics/Overview/TableInfo/prepareTableInfo.js.map +0 -1
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { EPathType } from '../../../../../../types/api/schema';
|
|
2
|
+
import { prepareColumnTableGeneralInfo } from './prepareColumnTableInfo';
|
|
3
|
+
import { prepareGeneralMetrics, prepareGeneralStats, preparePartitionConfigInfo, prepareTableStatsInfo, prepareTabletMetricsInfo, } from './prepareCommonTableInfo';
|
|
4
|
+
import { prepareManagePartitioningDialogConfig, preparePartitionProgressConfig, } from './preparePartitionConfig';
|
|
5
|
+
import { prepareRowTableGeneralInfo } from './prepareRowTableInfo';
|
|
6
|
+
/**
|
|
7
|
+
* Prepares all table information for display.
|
|
8
|
+
* Handles different table types: Table, ColumnTable, and ColumnStore.
|
|
9
|
+
* @param data - Schema description result from YDB API
|
|
10
|
+
* @param type - Path type (Table, ColumnTable, ColumnStore)
|
|
11
|
+
* @returns Prepared table information organized by sections
|
|
12
|
+
*/
|
|
13
|
+
export function prepareTableInfo(data, type) {
|
|
14
|
+
if (!data) {
|
|
15
|
+
return {
|
|
16
|
+
hasMoreLeft: false,
|
|
17
|
+
hasMoreRight: false,
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
const { PathDescription = {} } = data;
|
|
21
|
+
const { TablePartitions, TableStats = {}, TabletMetrics = {}, Table: { PartitionConfig = {}, TTLSettings } = {}, ColumnTableDescription = {}, } = PathDescription;
|
|
22
|
+
let generalInfoLeft = [];
|
|
23
|
+
let generalInfoRight = [];
|
|
24
|
+
let partitionProgressConfig;
|
|
25
|
+
let managePartitioningDialogConfig;
|
|
26
|
+
// Prepare type-specific information
|
|
27
|
+
switch (type) {
|
|
28
|
+
case EPathType.EPathTypeTable: {
|
|
29
|
+
partitionProgressConfig = preparePartitionProgressConfig(PartitionConfig, TablePartitions);
|
|
30
|
+
managePartitioningDialogConfig = prepareManagePartitioningDialogConfig(PartitionConfig, partitionProgressConfig);
|
|
31
|
+
const { left, right } = prepareRowTableGeneralInfo(PartitionConfig, partitionProgressConfig, TTLSettings);
|
|
32
|
+
generalInfoLeft = left;
|
|
33
|
+
generalInfoRight = right;
|
|
34
|
+
break;
|
|
35
|
+
}
|
|
36
|
+
case EPathType.EPathTypeColumnTable: {
|
|
37
|
+
generalInfoLeft = prepareColumnTableGeneralInfo(ColumnTableDescription);
|
|
38
|
+
break;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
// Prepare common information (shared across all table types)
|
|
42
|
+
const generalStats = prepareGeneralStats(TableStats);
|
|
43
|
+
const tableStatsInfo = prepareTableStatsInfo(TableStats, PartitionConfig);
|
|
44
|
+
const generalMetrics = prepareGeneralMetrics(TabletMetrics);
|
|
45
|
+
const tabletMetricsInfo = prepareTabletMetricsInfo(TabletMetrics);
|
|
46
|
+
const partitionConfigInfo = preparePartitionConfigInfo(PartitionConfig);
|
|
47
|
+
// Calculate if there's expandable content
|
|
48
|
+
const hasMoreLeft = tableStatsInfo.some((items) => items.length > 0);
|
|
49
|
+
const hasMoreRight = tabletMetricsInfo.length > 0 || partitionConfigInfo.length > 0;
|
|
50
|
+
return {
|
|
51
|
+
generalInfoLeft,
|
|
52
|
+
generalInfoRight,
|
|
53
|
+
generalStats,
|
|
54
|
+
tableStatsInfo,
|
|
55
|
+
generalMetrics,
|
|
56
|
+
tabletMetricsInfo,
|
|
57
|
+
partitionConfigInfo,
|
|
58
|
+
partitionProgressConfig,
|
|
59
|
+
managePartitioningDialogConfig,
|
|
60
|
+
hasMoreLeft,
|
|
61
|
+
hasMoreRight,
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/containers/Tenant/Diagnostics/Overview/TableInfo/prepareTableInfo/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,SAAS,EAAC,MAAM,oCAAoC,CAAC;AAI7D,OAAO,EAAC,6BAA6B,EAAC,MAAM,0BAA0B,CAAC;AACvE,OAAO,EACH,qBAAqB,EACrB,mBAAmB,EACnB,0BAA0B,EAC1B,qBAAqB,EACrB,wBAAwB,GAC3B,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACH,qCAAqC,EACrC,8BAA8B,GACjC,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAC,0BAA0B,EAAC,MAAM,uBAAuB,CAAC;AAmBjE;;;;;;GAMG;AACH,MAAM,UAAU,gBAAgB,CAC5B,IAA8B,EAC9B,IAAgB;IAEhB,IAAI,CAAC,IAAI,EAAE,CAAC;QACR,OAAO;YACH,WAAW,EAAE,KAAK;YAClB,YAAY,EAAE,KAAK;SACtB,CAAC;IACN,CAAC;IAED,MAAM,EAAC,eAAe,GAAG,EAAE,EAAC,GAAG,IAAI,CAAC;IAEpC,MAAM,EACF,eAAe,EACf,UAAU,GAAG,EAAE,EACf,aAAa,GAAG,EAAE,EAClB,KAAK,EAAE,EAAC,eAAe,GAAG,EAAE,EAAE,WAAW,EAAC,GAAG,EAAE,EAC/C,sBAAsB,GAAG,EAAE,GAC9B,GAAG,eAAe,CAAC;IAEpB,IAAI,eAAe,GAA4B,EAAE,CAAC;IAClD,IAAI,gBAAgB,GAA4B,EAAE,CAAC;IACnD,IAAI,uBAA4D,CAAC;IACjE,IAAI,8BAAuE,CAAC;IAE5E,oCAAoC;IACpC,QAAQ,IAAI,EAAE,CAAC;QACX,KAAK,SAAS,CAAC,cAAc,CAAC,CAAC,CAAC;YAC5B,uBAAuB,GAAG,8BAA8B,CACpD,eAAe,EACf,eAAe,CAClB,CAAC;YAEF,8BAA8B,GAAG,qCAAqC,CAClE,eAAe,EACf,uBAAuB,CAC1B,CAAC;YAEF,MAAM,EAAC,IAAI,EAAE,KAAK,EAAC,GAAG,0BAA0B,CAC5C,eAAe,EACf,uBAAuB,EACvB,WAAW,CACd,CAAC;YACF,eAAe,GAAG,IAAI,CAAC;YACvB,gBAAgB,GAAG,KAAK,CAAC;YAEzB,MAAM;QACV,CAAC;QACD,KAAK,SAAS,CAAC,oBAAoB,CAAC,CAAC,CAAC;YAClC,eAAe,GAAG,6BAA6B,CAAC,sBAAsB,CAAC,CAAC;YACxE,MAAM;QACV,CAAC;IACL,CAAC;IAED,6DAA6D;IAC7D,MAAM,YAAY,GAAG,mBAAmB,CAAC,UAAU,CAAC,CAAC;IACrD,MAAM,cAAc,GAAG,qBAAqB,CAAC,UAAU,EAAE,eAAe,CAAC,CAAC;IAC1E,MAAM,cAAc,GAAG,qBAAqB,CAAC,aAAwC,CAAC,CAAC;IACvF,MAAM,iBAAiB,GAAG,wBAAwB,CAAC,aAAwC,CAAC,CAAC;IAC7F,MAAM,mBAAmB,GAAG,0BAA0B,CAAC,eAAe,CAAC,CAAC;IAExE,0CAA0C;IAC1C,MAAM,WAAW,GAAG,cAAc,CAAC,IAAI,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;IACrE,MAAM,YAAY,GAAG,iBAAiB,CAAC,MAAM,GAAG,CAAC,IAAI,mBAAmB,CAAC,MAAM,GAAG,CAAC,CAAC;IAEpF,OAAO;QACH,eAAe;QACf,gBAAgB;QAChB,YAAY;QACZ,cAAc;QACd,cAAc;QACd,iBAAiB;QACjB,mBAAmB;QACnB,uBAAuB;QACvB,8BAA8B;QAC9B,WAAW;QACX,YAAY;KACf,CAAC;AACN,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { YDBDefinitionListItem } from '../../../../../../components/YDBDefinitionList/YDBDefinitionList';
|
|
2
|
+
import type { TColumnTableDescription } from '../../../../../../types/api/schema';
|
|
3
|
+
/**
|
|
4
|
+
* Prepares general information for column tables (EPathTypeColumnTable)
|
|
5
|
+
*/
|
|
6
|
+
export declare function prepareColumnTableGeneralInfo(columnTable: TColumnTableDescription): YDBDefinitionListItem[];
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { Text } from '@gravity-ui/uikit';
|
|
3
|
+
import i18n from '../i18n';
|
|
4
|
+
import { prepareTTL } from './prepareTTL';
|
|
5
|
+
/**
|
|
6
|
+
* Checks if column table is part of a column store (not standalone)
|
|
7
|
+
*/
|
|
8
|
+
const isInStoreColumnTable = (table) => {
|
|
9
|
+
// SchemaPresetId could be 0
|
|
10
|
+
return table.SchemaPresetName && table.SchemaPresetId !== undefined;
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* Prepares general information for column tables (EPathTypeColumnTable)
|
|
14
|
+
*/
|
|
15
|
+
export function prepareColumnTableGeneralInfo(columnTable) {
|
|
16
|
+
var _a, _b;
|
|
17
|
+
const left = [];
|
|
18
|
+
left.push({
|
|
19
|
+
name: i18n('field_standalone'),
|
|
20
|
+
content: String(!isInStoreColumnTable(columnTable)),
|
|
21
|
+
});
|
|
22
|
+
if ((_b = (_a = columnTable.Sharding) === null || _a === void 0 ? void 0 : _a.HashSharding) === null || _b === void 0 ? void 0 : _b.Columns) {
|
|
23
|
+
const columns = columnTable.Sharding.HashSharding.Columns.join(', ');
|
|
24
|
+
const content = `PARTITION BY HASH(${columns})`;
|
|
25
|
+
left.push({
|
|
26
|
+
name: i18n('field_partitioning'),
|
|
27
|
+
content: (_jsx(Text, { variant: "code-2", wordBreak: "break-word", children: content })),
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
if (columnTable.TtlSettings) {
|
|
31
|
+
const ttlInfo = prepareTTL(columnTable === null || columnTable === void 0 ? void 0 : columnTable.TtlSettings);
|
|
32
|
+
if (ttlInfo) {
|
|
33
|
+
left.push(ttlInfo);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
return left;
|
|
37
|
+
}
|
|
38
|
+
//# sourceMappingURL=prepareColumnTableInfo.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"prepareColumnTableInfo.js","sourceRoot":"","sources":["../../../../../../../src/containers/Tenant/Diagnostics/Overview/TableInfo/prepareTableInfo/prepareColumnTableInfo.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAC,IAAI,EAAC,MAAM,mBAAmB,CAAC;AAIvC,OAAO,IAAI,MAAM,SAAS,CAAC;AAE3B,OAAO,EAAC,UAAU,EAAC,MAAM,cAAc,CAAC;AAExC;;GAEG;AACH,MAAM,oBAAoB,GAAG,CAAC,KAA8B,EAAE,EAAE;IAC5D,4BAA4B;IAC5B,OAAO,KAAK,CAAC,gBAAgB,IAAI,KAAK,CAAC,cAAc,KAAK,SAAS,CAAC;AACxE,CAAC,CAAC;AAEF;;GAEG;AACH,MAAM,UAAU,6BAA6B,CAAC,WAAoC;;IAC9E,MAAM,IAAI,GAA4B,EAAE,CAAC;IAEzC,IAAI,CAAC,IAAI,CAAC;QACN,IAAI,EAAE,IAAI,CAAC,kBAAkB,CAAC;QAC9B,OAAO,EAAE,MAAM,CAAC,CAAC,oBAAoB,CAAC,WAAW,CAAC,CAAC;KACtD,CAAC,CAAC;IAEH,IAAI,MAAA,MAAA,WAAW,CAAC,QAAQ,0CAAE,YAAY,0CAAE,OAAO,EAAE,CAAC;QAC9C,MAAM,OAAO,GAAG,WAAW,CAAC,QAAQ,CAAC,YAAY,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACrE,MAAM,OAAO,GAAG,qBAAqB,OAAO,GAAG,CAAC;QAEhD,IAAI,CAAC,IAAI,CAAC;YACN,IAAI,EAAE,IAAI,CAAC,oBAAoB,CAAC;YAChC,OAAO,EAAE,CACL,KAAC,IAAI,IAAC,OAAO,EAAC,QAAQ,EAAC,SAAS,EAAC,YAAY,YACxC,OAAO,GACL,CACV;SACJ,CAAC,CAAC;IACP,CAAC;IAED,IAAI,WAAW,CAAC,WAAW,EAAE,CAAC;QAC1B,MAAM,OAAO,GAAG,UAAU,CAAC,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,WAAW,CAAC,CAAC;QACrD,IAAI,OAAO,EAAE,CAAC;YACV,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACvB,CAAC;IACL,CAAC;IAED,OAAO,IAAI,CAAC;AAChB,CAAC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import type { YDBDefinitionListItem } from '../../../../../../components/YDBDefinitionList/YDBDefinitionList';
|
|
2
|
+
import type { TPartitionConfig, TTableStats } from '../../../../../../types/api/schema';
|
|
3
|
+
/**
|
|
4
|
+
* Prepares general statistics section (PartCount, RowCount, DataSize, IndexSize)
|
|
5
|
+
*/
|
|
6
|
+
export declare function prepareGeneralStats(TableStats?: TTableStats): (YDBDefinitionListItem | {
|
|
7
|
+
note: {
|
|
8
|
+
children: import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
popoverProps: {
|
|
10
|
+
placement: "right";
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
name: string;
|
|
14
|
+
content: React.ReactNode;
|
|
15
|
+
copyText?: string | number;
|
|
16
|
+
})[];
|
|
17
|
+
/**
|
|
18
|
+
* Prepares detailed table statistics sections (bloom filter, timestamps, transactions, operations)
|
|
19
|
+
*/
|
|
20
|
+
export declare function prepareTableStatsInfo(TableStats?: TTableStats, PartitionConfig?: TPartitionConfig): YDBDefinitionListItem[][];
|
|
21
|
+
/**
|
|
22
|
+
* Prepares general tablet metrics (CPU, Memory, ReadThroughput, Network)
|
|
23
|
+
*/
|
|
24
|
+
export declare function prepareGeneralMetrics(TabletMetrics?: Record<string, unknown>): YDBDefinitionListItem[];
|
|
25
|
+
/**
|
|
26
|
+
* Prepares detailed tablet metrics (excluding general metrics and group metrics)
|
|
27
|
+
*/
|
|
28
|
+
export declare function prepareTabletMetricsInfo(TabletMetrics?: Record<string, unknown>): YDBDefinitionListItem[];
|
|
29
|
+
/**
|
|
30
|
+
* Prepares partition configuration info (follower groups, read replicas)
|
|
31
|
+
*/
|
|
32
|
+
export declare function preparePartitionConfigInfo(PartitionConfig?: TPartitionConfig): YDBDefinitionListItem[];
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import omit from 'lodash/omit';
|
|
2
|
+
import pick from 'lodash/pick';
|
|
3
|
+
import { toFormattedSize } from '../../../../../../components/FormattedBytes/utils';
|
|
4
|
+
import { formatFollowerGroupItem, formatPartitionConfigItem, formatTableStatsItem, formatTabletMetricsItem, } from '../../../../../../components/YDBDefinitionList/formatters/table';
|
|
5
|
+
import { formatObjectToDefinitionItems } from '../../../../../../components/YDBDefinitionList/utils';
|
|
6
|
+
import { isNumeric } from '../../../../../../utils/utils';
|
|
7
|
+
import { ROW_COUNT_NOTE } from '../../../../constants';
|
|
8
|
+
const GENERAL_METRICS_KEYS = ['CPU', 'Memory', 'ReadThroughput', 'Network'];
|
|
9
|
+
/**
|
|
10
|
+
* Prepares general statistics section (PartCount, RowCount, DataSize, IndexSize)
|
|
11
|
+
*/
|
|
12
|
+
export function prepareGeneralStats(TableStats = {}) {
|
|
13
|
+
const { PartCount, RowCount, DataSize, IndexSize } = TableStats;
|
|
14
|
+
return formatObjectToDefinitionItems(formatTableStatsItem, {
|
|
15
|
+
PartCount,
|
|
16
|
+
RowCount,
|
|
17
|
+
DataSize,
|
|
18
|
+
IndexSize,
|
|
19
|
+
}).map((item) => item.name === 'RowCount'
|
|
20
|
+
? {
|
|
21
|
+
...item,
|
|
22
|
+
note: ROW_COUNT_NOTE,
|
|
23
|
+
}
|
|
24
|
+
: item);
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Prepares detailed table statistics sections (bloom filter, timestamps, transactions, operations)
|
|
28
|
+
*/
|
|
29
|
+
export function prepareTableStatsInfo(TableStats = {}, PartitionConfig = {}) {
|
|
30
|
+
const { ByKeyFilterSize, LastAccessTime, LastUpdateTime, ImmediateTxCompleted, PlannedTxCompleted, TxRejectedByOverload, TxRejectedBySpace, TxCompleteLagMsec, InFlightTxCount, RowUpdates, RowDeletes, RowReads, RangeReads, RangeReadRows, } = TableStats;
|
|
31
|
+
const bloomFilterItems = [];
|
|
32
|
+
if (isNumeric(ByKeyFilterSize) &&
|
|
33
|
+
(PartitionConfig.EnableFilterByKey || Number(ByKeyFilterSize) > 0)) {
|
|
34
|
+
bloomFilterItems.push({ name: 'BloomFilterSize', content: toFormattedSize(ByKeyFilterSize) });
|
|
35
|
+
}
|
|
36
|
+
return [
|
|
37
|
+
...(bloomFilterItems.length > 0 ? [bloomFilterItems] : []),
|
|
38
|
+
formatObjectToDefinitionItems(formatTableStatsItem, {
|
|
39
|
+
LastAccessTime,
|
|
40
|
+
LastUpdateTime,
|
|
41
|
+
}),
|
|
42
|
+
formatObjectToDefinitionItems(formatTableStatsItem, {
|
|
43
|
+
ImmediateTxCompleted,
|
|
44
|
+
PlannedTxCompleted,
|
|
45
|
+
TxRejectedByOverload,
|
|
46
|
+
TxRejectedBySpace,
|
|
47
|
+
TxCompleteLagMsec,
|
|
48
|
+
InFlightTxCount,
|
|
49
|
+
}),
|
|
50
|
+
formatObjectToDefinitionItems(formatTableStatsItem, {
|
|
51
|
+
RowUpdates,
|
|
52
|
+
RowDeletes,
|
|
53
|
+
RowReads,
|
|
54
|
+
RangeReads,
|
|
55
|
+
RangeReadRows,
|
|
56
|
+
}),
|
|
57
|
+
];
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* Prepares general tablet metrics (CPU, Memory, ReadThroughput, Network)
|
|
61
|
+
*/
|
|
62
|
+
export function prepareGeneralMetrics(TabletMetrics = {}) {
|
|
63
|
+
return formatObjectToDefinitionItems(formatTabletMetricsItem, pick(TabletMetrics, GENERAL_METRICS_KEYS));
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* Prepares detailed tablet metrics (excluding general metrics and group metrics)
|
|
67
|
+
*/
|
|
68
|
+
export function prepareTabletMetricsInfo(TabletMetrics = {}) {
|
|
69
|
+
return formatObjectToDefinitionItems(formatTabletMetricsItem, omit(TabletMetrics, [
|
|
70
|
+
...GENERAL_METRICS_KEYS,
|
|
71
|
+
'GroupReadIops',
|
|
72
|
+
'GroupReadThroughput',
|
|
73
|
+
'GroupWriteIops',
|
|
74
|
+
'GroupWriteThroughput',
|
|
75
|
+
]));
|
|
76
|
+
}
|
|
77
|
+
/**
|
|
78
|
+
* Prepares partition configuration info (follower groups, read replicas)
|
|
79
|
+
*/
|
|
80
|
+
export function preparePartitionConfigInfo(PartitionConfig = {}) {
|
|
81
|
+
const { FollowerGroups, FollowerCount, CrossDataCenterFollowerCount } = PartitionConfig;
|
|
82
|
+
const partitionConfigInfo = [];
|
|
83
|
+
if (Array.isArray(FollowerGroups) && FollowerGroups.length > 0) {
|
|
84
|
+
partitionConfigInfo.push(...formatObjectToDefinitionItems(formatFollowerGroupItem, FollowerGroups[0]));
|
|
85
|
+
}
|
|
86
|
+
else if (FollowerCount !== undefined) {
|
|
87
|
+
partitionConfigInfo.push(formatPartitionConfigItem('FollowerCount', FollowerCount));
|
|
88
|
+
}
|
|
89
|
+
else if (CrossDataCenterFollowerCount !== undefined) {
|
|
90
|
+
partitionConfigInfo.push(formatPartitionConfigItem('CrossDataCenterFollowerCount', CrossDataCenterFollowerCount));
|
|
91
|
+
}
|
|
92
|
+
return partitionConfigInfo;
|
|
93
|
+
}
|
|
94
|
+
//# sourceMappingURL=prepareCommonTableInfo.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"prepareCommonTableInfo.js","sourceRoot":"","sources":["../../../../../../../src/containers/Tenant/Diagnostics/Overview/TableInfo/prepareTableInfo/prepareCommonTableInfo.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,aAAa,CAAC;AAC/B,OAAO,IAAI,MAAM,aAAa,CAAC;AAE/B,OAAO,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,CAAC,IAAI,cAAc,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QAC7D,mBAAmB,CAAC,IAAI,CACpB,GAAG,6BAA6B,CAAC,uBAAuB,EAAE,cAAc,CAAC,CAAC,CAAC,CAAC,CAC/E,CAAC;IACN,CAAC;SAAM,IAAI,aAAa,KAAK,SAAS,EAAE,CAAC;QACrC,mBAAmB,CAAC,IAAI,CAAC,yBAAyB,CAAC,eAAe,EAAE,aAAa,CAAC,CAAC,CAAC;IACxF,CAAC;SAAM,IAAI,4BAA4B,KAAK,SAAS,EAAE,CAAC;QACpD,mBAAmB,CAAC,IAAI,CACpB,yBAAyB,CAAC,8BAA8B,EAAE,4BAA4B,CAAC,CAC1F,CAAC;IACN,CAAC;IAED,OAAO,mBAAmB,CAAC;AAC/B,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { TPartitionConfig, TTablePartition } from '../../../../../../types/api/schema';
|
|
2
|
+
import type { ManagePartitioningFormState } from '../ManagePartitioningDialog/types';
|
|
3
|
+
import type { PartitionProgressConfig } from './renderHelpers';
|
|
4
|
+
/**
|
|
5
|
+
* Prepares partition progress configuration from partition config and actual partitions
|
|
6
|
+
*/
|
|
7
|
+
export declare function preparePartitionProgressConfig(PartitionConfig: TPartitionConfig, TablePartitions?: TTablePartition[]): PartitionProgressConfig;
|
|
8
|
+
/**
|
|
9
|
+
* Prepares initial configuration for the manage partitioning dialog
|
|
10
|
+
*/
|
|
11
|
+
export declare function prepareManagePartitioningDialogConfig(partitionConfig?: TPartitionConfig, progress?: PartitionProgressConfig): ManagePartitioningFormState | undefined;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { formatBytes, getBytesSizeUnit } from '../../../../../../utils/bytesParsers';
|
|
2
|
+
import { DEFAULT_MANAGE_PARTITIONING_VALUE } from '../ManagePartitioningDialog/constants';
|
|
3
|
+
import { DEFAULT_PARTITION_SIZE_TO_SPLIT_BYTES } from '../constants';
|
|
4
|
+
/**
|
|
5
|
+
* Prepares partition progress configuration from partition config and actual partitions
|
|
6
|
+
*/
|
|
7
|
+
export function preparePartitionProgressConfig(PartitionConfig, TablePartitions) {
|
|
8
|
+
var _a, _b;
|
|
9
|
+
const { PartitioningPolicy } = PartitionConfig;
|
|
10
|
+
// We are convinced, there is always at least one partition;
|
|
11
|
+
// fallback and clamp to 1 if value is missing.
|
|
12
|
+
const minPartitions = Math.max(1, (_a = PartitioningPolicy === null || PartitioningPolicy === void 0 ? void 0 : PartitioningPolicy.MinPartitionsCount) !== null && _a !== void 0 ? _a : 1);
|
|
13
|
+
const maxPartitions = PartitioningPolicy === null || PartitioningPolicy === void 0 ? void 0 : PartitioningPolicy.MaxPartitionsCount;
|
|
14
|
+
const partitionsCount = (_b = TablePartitions === null || TablePartitions === void 0 ? void 0 : TablePartitions.length) !== null && _b !== void 0 ? _b : 1;
|
|
15
|
+
return {
|
|
16
|
+
minPartitions,
|
|
17
|
+
maxPartitions,
|
|
18
|
+
partitionsCount,
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Prepares initial configuration for the manage partitioning dialog
|
|
23
|
+
*/
|
|
24
|
+
export function prepareManagePartitioningDialogConfig(partitionConfig, progress) {
|
|
25
|
+
var _a, _b, _c;
|
|
26
|
+
if (!partitionConfig || !progress) {
|
|
27
|
+
return undefined;
|
|
28
|
+
}
|
|
29
|
+
const policy = partitionConfig === null || partitionConfig === void 0 ? void 0 : partitionConfig.PartitioningPolicy;
|
|
30
|
+
const splitByLoadEnabled = Boolean((_a = policy === null || policy === void 0 ? void 0 : policy.SplitByLoadSettings) === null || _a === void 0 ? void 0 : _a.Enabled);
|
|
31
|
+
const bytes = Number((_b = policy === null || policy === void 0 ? void 0 : policy.SizeToSplit) !== null && _b !== void 0 ? _b : DEFAULT_PARTITION_SIZE_TO_SPLIT_BYTES);
|
|
32
|
+
const size = formatBytes({
|
|
33
|
+
value: bytes,
|
|
34
|
+
withSizeLabel: false,
|
|
35
|
+
});
|
|
36
|
+
const unit = getBytesSizeUnit(bytes);
|
|
37
|
+
return {
|
|
38
|
+
splitSize: size,
|
|
39
|
+
splitUnit: unit,
|
|
40
|
+
loadEnabled: splitByLoadEnabled,
|
|
41
|
+
minimum: String(progress === null || progress === void 0 ? void 0 : progress.minPartitions),
|
|
42
|
+
maximum: String((_c = progress === null || progress === void 0 ? void 0 : progress.maxPartitions) !== null && _c !== void 0 ? _c : DEFAULT_MANAGE_PARTITIONING_VALUE.maximum),
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
//# sourceMappingURL=preparePartitionConfig.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"preparePartitionConfig.js","sourceRoot":"","sources":["../../../../../../../src/containers/Tenant/Diagnostics/Overview/TableInfo/prepareTableInfo/preparePartitionConfig.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,WAAW,EAAE,gBAAgB,EAAC,MAAM,sCAAsC,CAAC;AACnF,OAAO,EAAC,iCAAiC,EAAC,MAAM,uCAAuC,CAAC;AAExF,OAAO,EAAC,qCAAqC,EAAC,MAAM,cAAc,CAAC;AAInE;;GAEG;AACH,MAAM,UAAU,8BAA8B,CAC1C,eAAiC,EACjC,eAAmC;;IAEnC,MAAM,EAAC,kBAAkB,EAAC,GAAG,eAAe,CAAC;IAE7C,4DAA4D;IAC5D,+CAA+C;IAC/C,MAAM,aAAa,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,MAAA,kBAAkB,aAAlB,kBAAkB,uBAAlB,kBAAkB,CAAE,kBAAkB,mCAAI,CAAC,CAAC,CAAC;IAC/E,MAAM,aAAa,GAAG,kBAAkB,aAAlB,kBAAkB,uBAAlB,kBAAkB,CAAE,kBAAkB,CAAC;IAC7D,MAAM,eAAe,GAAG,MAAA,eAAe,aAAf,eAAe,uBAAf,eAAe,CAAE,MAAM,mCAAI,CAAC,CAAC;IAErD,OAAO;QACH,aAAa;QACb,aAAa;QACb,eAAe;KAClB,CAAC;AACN,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,qCAAqC,CACjD,eAAkC,EAClC,QAAkC;;IAElC,IAAI,CAAC,eAAe,IAAI,CAAC,QAAQ,EAAE,CAAC;QAChC,OAAO,SAAS,CAAC;IACrB,CAAC;IAED,MAAM,MAAM,GAAG,eAAe,aAAf,eAAe,uBAAf,eAAe,CAAE,kBAAkB,CAAC;IAEnD,MAAM,kBAAkB,GAAG,OAAO,CAAC,MAAA,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,mBAAmB,0CAAE,OAAO,CAAC,CAAC;IAEzE,MAAM,KAAK,GAAG,MAAM,CAAC,MAAA,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,WAAW,mCAAI,qCAAqC,CAAC,CAAC;IACnF,MAAM,IAAI,GAAG,WAAW,CAAC;QACrB,KAAK,EAAE,KAAK;QACZ,aAAa,EAAE,KAAK;KACvB,CAAC,CAAC;IAEH,MAAM,IAAI,GAAG,gBAAgB,CAAC,KAAK,CAAC,CAAC;IAErC,OAAO;QACH,SAAS,EAAE,IAAI;QACf,SAAS,EAAE,IAAI;QACf,WAAW,EAAE,kBAAkB;QAC/B,OAAO,EAAE,MAAM,CAAC,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,aAAa,CAAC;QACxC,OAAO,EAAE,MAAM,CAAC,MAAA,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,aAAa,mCAAI,iCAAiC,CAAC,OAAO,CAAC;KACxF,CAAC;AACN,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { YDBDefinitionListItem } from '../../../../../../components/YDBDefinitionList/YDBDefinitionList';
|
|
2
|
+
import type { TPartitionConfig, TTTLSettings } from '../../../../../../types/api/schema';
|
|
3
|
+
import type { PartitionProgressConfig } from './renderHelpers';
|
|
4
|
+
/**
|
|
5
|
+
* Prepares general information sections for row tables (EPathTypeTable)
|
|
6
|
+
*/
|
|
7
|
+
export declare function prepareRowTableGeneralInfo(PartitionConfig: TPartitionConfig, Progress: PartitionProgressConfig, TTLSettings?: TTTLSettings): {
|
|
8
|
+
left: YDBDefinitionListItem[];
|
|
9
|
+
right: YDBDefinitionListItem[];
|
|
10
|
+
};
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { Label } from '@gravity-ui/uikit';
|
|
3
|
+
import { formatBytes } from '../../../../../../utils/bytesParsers';
|
|
4
|
+
import { DEFAULT_PARTITION_SIZE_TO_SPLIT_BYTES, READ_REPLICAS_MODE } from '../constants';
|
|
5
|
+
import i18n from '../i18n';
|
|
6
|
+
import { prepareTTL } from './prepareTTL';
|
|
7
|
+
import { renderBloomFilterStatusIcon, renderCompressionGroupsContent, renderCurrentPartitionsContent, } from './renderHelpers';
|
|
8
|
+
/**
|
|
9
|
+
* Prepares general information sections for row tables (EPathTypeTable)
|
|
10
|
+
*/
|
|
11
|
+
export function prepareRowTableGeneralInfo(PartitionConfig, Progress, TTLSettings) {
|
|
12
|
+
var _a, _b;
|
|
13
|
+
const { PartitioningPolicy = {}, FollowerGroups, EnableFilterByKey } = PartitionConfig;
|
|
14
|
+
const left = [];
|
|
15
|
+
const right = [];
|
|
16
|
+
const splitByLoadEnabled = Boolean((_a = PartitioningPolicy === null || PartitioningPolicy === void 0 ? void 0 : PartitioningPolicy.SplitByLoadSettings) === null || _a === void 0 ? void 0 : _a.Enabled);
|
|
17
|
+
const partitioningByLoad = splitByLoadEnabled ? (_jsx(Label, { children: i18n('value_enabled') })) : (_jsx(Label, { theme: "unknown", children: i18n('value_disabled') }));
|
|
18
|
+
// For splitting by size: it always will be split by 2 GB if user doesn't set anything else
|
|
19
|
+
const splitSizeBytes = (_b = PartitioningPolicy.SizeToSplit) !== null && _b !== void 0 ? _b : DEFAULT_PARTITION_SIZE_TO_SPLIT_BYTES;
|
|
20
|
+
left.push({
|
|
21
|
+
name: i18n('field_current-partitions'),
|
|
22
|
+
content: renderCurrentPartitionsContent(Progress),
|
|
23
|
+
}, {
|
|
24
|
+
name: i18n('field_partitioning-by-size'),
|
|
25
|
+
content: _jsx(Label, { children: formatBytes({ value: splitSizeBytes }) }),
|
|
26
|
+
}, { name: i18n('field_partitioning-by-load'), content: partitioningByLoad });
|
|
27
|
+
if (TTLSettings) {
|
|
28
|
+
const ttlInfo = prepareTTL(TTLSettings);
|
|
29
|
+
if (ttlInfo) {
|
|
30
|
+
left.push(ttlInfo);
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
let readReplicasConfig;
|
|
34
|
+
if (FollowerGroups && FollowerGroups.length) {
|
|
35
|
+
const { RequireAllDataCenters, FollowerCountPerDataCenter, FollowerCount } = FollowerGroups[0];
|
|
36
|
+
readReplicasConfig =
|
|
37
|
+
RequireAllDataCenters && FollowerCountPerDataCenter
|
|
38
|
+
? `${READ_REPLICAS_MODE.PER_AZ}: ${FollowerCount}`
|
|
39
|
+
: `${READ_REPLICAS_MODE.ANY_AZ}: ${FollowerCount}`;
|
|
40
|
+
}
|
|
41
|
+
else {
|
|
42
|
+
readReplicasConfig = i18n('value_no');
|
|
43
|
+
}
|
|
44
|
+
right.push({ name: i18n('field_read-replicas'), content: readReplicasConfig }, {
|
|
45
|
+
name: i18n('field_bloom-filter'),
|
|
46
|
+
content: renderBloomFilterStatusIcon(Boolean(EnableFilterByKey)),
|
|
47
|
+
}, {
|
|
48
|
+
name: i18n('field_compression-groups'),
|
|
49
|
+
content: renderCompressionGroupsContent(PartitionConfig),
|
|
50
|
+
});
|
|
51
|
+
return { left, right };
|
|
52
|
+
}
|
|
53
|
+
//# sourceMappingURL=prepareRowTableInfo.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"prepareRowTableInfo.js","sourceRoot":"","sources":["../../../../../../../src/containers/Tenant/Diagnostics/Overview/TableInfo/prepareTableInfo/prepareRowTableInfo.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAC,KAAK,EAAC,M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10 @@
|
|
|
1
|
+
import type { TColumnDataLifeCycle, TTTLSettings } from '../../../../../../types/api/schema';
|
|
2
|
+
/**
|
|
3
|
+
* Prepares TTL (Time To Live) configuration for display
|
|
4
|
+
* @param ttl - TTL settings from table or column table description
|
|
5
|
+
* @returns Definition list item with TTL info, or undefined if TTL is not configured
|
|
6
|
+
*/
|
|
7
|
+
export declare function prepareTTL(ttl: TTTLSettings | TColumnDataLifeCycle): {
|
|
8
|
+
name: string;
|
|
9
|
+
content: string;
|
|
10
|
+
} | undefined;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { formatDurationToShortTimeFormat } from '../../../../../../utils/timeParsers';
|
|
2
|
+
import i18n from '../i18n';
|
|
3
|
+
/**
|
|
4
|
+
* Prepares TTL (Time To Live) configuration for display
|
|
5
|
+
* @param ttl - TTL settings from table or column table description
|
|
6
|
+
* @returns Definition list item with TTL info, or undefined if TTL is not configured
|
|
7
|
+
*/
|
|
8
|
+
export function prepareTTL(ttl) {
|
|
9
|
+
// ExpireAfterSeconds could be 0
|
|
10
|
+
if (ttl.Enabled && ttl.Enabled.ColumnName && ttl.Enabled.ExpireAfterSeconds !== undefined) {
|
|
11
|
+
const value = i18n('value_ttl-config', {
|
|
12
|
+
columnName: ttl.Enabled.ColumnName,
|
|
13
|
+
expireTime: formatDurationToShortTimeFormat(ttl.Enabled.ExpireAfterSeconds * 1000, 1),
|
|
14
|
+
});
|
|
15
|
+
return { name: i18n('field_ttl-for-rows'), content: value };
|
|
16
|
+
}
|
|
17
|
+
return undefined;
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=prepareTTL.js.map
|
package/dist/containers/Tenant/Diagnostics/Overview/TableInfo/prepareTableInfo/prepareTTL.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"prepareTTL.js","sourceRoot":"","sources":["../../../../../../../src/containers/Tenant/Diagnostics/Overview/TableInfo/prepareTableInfo/prepareTTL.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,+BAA+B,EAAC,MAAM,qCAAqC,CAAC;AACpF,OAAO,IAAI,MAAM,SAAS,CAAC;AAE3B;;;;GAIG;AACH,MAAM,UAAU,UAAU,CAAC,GAAwC;IAC/D,gCAAgC;IAChC,IAAI,GAAG,CAAC,OAAO,IAAI,GAAG,CAAC,OAAO,CAAC,UAAU,IAAI,GAAG,CAAC,OAAO,CAAC,kBAAkB,KAAK,SAAS,EAAE,CAAC;QACxF,MAAM,KAAK,GAAG,IAAI,CAAC,kBAAkB,EAAE;YACnC,UAAU,EAAE,GAAG,CAAC,OAAO,CAAC,UAAU;YAClC,UAAU,EAAE,+BAA+B,CAAC,GAAG,CAAC,OAAO,CAAC,kBAAkB,GAAG,IAAI,EAAE,CAAC,CAAC;SACxF,CAAC,CAAC;QAEH,OAAO,EAAC,IAAI,EAAE,IAAI,CAAC,oBAAoB,CAAC,EAAE,OAAO,EAAE,KAAK,EAAC,CAAC;IAC9D,CAAC;IACD,OAAO,SAAS,CAAC;AACrB,CAAC"}
|
package/dist/containers/Tenant/Diagnostics/Overview/TableInfo/prepareTableInfo/renderHelpers.d.ts
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { TPartitionConfig } from '../../../../../../types/api/schema';
|
|
2
|
+
export interface PartitionProgressConfig {
|
|
3
|
+
minPartitions: number;
|
|
4
|
+
maxPartitions?: number;
|
|
5
|
+
partitionsCount: number;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* Renders the current partitions count with visual indicators for out-of-range values
|
|
9
|
+
*/
|
|
10
|
+
export declare const renderCurrentPartitionsContent: (progress: PartitionProgressConfig) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
/**
|
|
12
|
+
* Renders bloom filter status icon (enabled/disabled)
|
|
13
|
+
*/
|
|
14
|
+
export declare const renderBloomFilterStatusIcon: (value: boolean) => import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
/**
|
|
16
|
+
* Renders compression groups/column families list
|
|
17
|
+
*/
|
|
18
|
+
export declare const renderCompressionGroupsContent: (partitionConfig: TPartitionConfig) => import("react/jsx-runtime").JSX.Element;
|
package/dist/containers/Tenant/Diagnostics/Overview/TableInfo/prepareTableInfo/renderHelpers.js
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { CircleCheckFill, CircleQuestion, CircleXmarkFill } from '@gravity-ui/icons';
|
|
3
|
+
import { Flex, Icon, Label, Popover } from '@gravity-ui/uikit';
|
|
4
|
+
import { formatNumber } from '../../../../../../utils/dataFormatters/dataFormatters';
|
|
5
|
+
import { b } from '../TableInfo';
|
|
6
|
+
import i18n from '../i18n';
|
|
7
|
+
/**
|
|
8
|
+
* Renders the current partitions count with visual indicators for out-of-range values
|
|
9
|
+
*/
|
|
10
|
+
export const renderCurrentPartitionsContent = (progress) => {
|
|
11
|
+
const { minPartitions, maxPartitions, partitionsCount } = progress;
|
|
12
|
+
const isBelowMin = partitionsCount < minPartitions;
|
|
13
|
+
const isAboveMax = maxPartitions !== undefined && partitionsCount > maxPartitions;
|
|
14
|
+
const isOutOfRange = isBelowMin || isAboveMax;
|
|
15
|
+
const content = isBelowMin
|
|
16
|
+
? i18n('hint_current-partitions-below-limits')
|
|
17
|
+
: i18n('hint_current-partitions-exceeds-limits');
|
|
18
|
+
return (_jsx(Label, { theme: isOutOfRange ? 'danger' : undefined, children: _jsxs(Flex, { gap: "2", alignItems: "center", children: [formatNumber(partitionsCount), isOutOfRange && (_jsx(Popover, { placement: "auto-start", content: content, className: b('partitions-popover'), children: _jsx(Icon, { data: CircleQuestion }) }))] }) }));
|
|
19
|
+
};
|
|
20
|
+
/**
|
|
21
|
+
* Renders bloom filter status icon (enabled/disabled)
|
|
22
|
+
*/
|
|
23
|
+
export const renderBloomFilterStatusIcon = (value) => {
|
|
24
|
+
return (_jsx("span", { "aria-label": value ? i18n('value_enabled') : i18n('value_disabled'), className: b('status-icon', { state: value ? 'enabled' : 'disabled' }), children: _jsx(Icon, { data: value ? CircleCheckFill : CircleXmarkFill, size: 16 }) }));
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* Renders compression groups/column families list
|
|
28
|
+
*/
|
|
29
|
+
export const renderCompressionGroupsContent = (partitionConfig) => {
|
|
30
|
+
const families = partitionConfig.ColumnFamilies;
|
|
31
|
+
if (!Array.isArray(families) || families.length === 0) {
|
|
32
|
+
return _jsx("span", { children: i18n('value_some-groups') });
|
|
33
|
+
}
|
|
34
|
+
return (_jsx(Flex, { direction: "column", gap: 1, children: families.map((family, index) => {
|
|
35
|
+
var _a;
|
|
36
|
+
const name = (family === null || family === void 0 ? void 0 : family.Name) ? String(family.Name) : i18n('value_default');
|
|
37
|
+
const id = (_a = family.Id) !== null && _a !== void 0 ? _a : `${name}-${index}`;
|
|
38
|
+
return _jsx("span", { children: name }, id);
|
|
39
|
+
}) }));
|
|
40
|
+
};
|
|
41
|
+
//# sourceMappingURL=renderHelpers.js.map
|
package/dist/containers/Tenant/Diagnostics/Overview/TableInfo/prepareTableInfo/renderHelpers.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"renderHelpers.js","sourceRoot":"","sources":["../../../../../../../src/containers/Tenant/Diagnostics/Overview/TableInfo/prepareTableInfo/renderHelpers.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAC,eAAe,EAAE,cAAc,EAAE,eAAe,EAAC,MAAM,mBAAmB,CAAC;AACnF,OAAO,EAAC,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,OAAO,EAAC,MAAM,mBAAmB,CAAC;AAG7D,OAAO,EAAC,YAAY,EAAC,MAAM,uDAAuD,CAAC;AACnF,OAAO,EAAC,CAAC,EAAC,MAAM,cAAc,CAAC;AAC/B,OAAO,IAAI,MAAM,SAAS,CAAC;AAQ3B;;GAEG;AACH,MAAM,CAAC,MAAM,8BAA8B,GAAG,CAAC,QAAiC,EAAE,EAAE;IA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AI,GAChE,CACV,CAAC;AACN,CAAC,CAAC;AAEF;;GAEG;AACH,MAAM,CAAC,MAAM,8BAA8B,GAAG,CAAC,eAAiC,EAAE,EAAE;IAChF,MAAM,QAAQ,GAAG,eAAe,CAAC,cAAc,CAAC;IAEhD,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,IAAI,QAAQ,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QACpD,OAAO,yBAAO,IAAI,CAAC,mBAAmB,CAAC,GAAQ,CAAC;IACpD,CAAC;IAED,OAAO,CACH,KAAC,IAAI,IAAC,SAAS,EAAC,QAAQ,EAAC,GAAG,EAAE,CAAC,YAC1B,QAAQ,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,KAAK,EAAE,EAAE;;YAC5B,MAAM,IAAI,GAAG,CAAA,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,IAAI,EAAC,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC;YACxE,MAAM,EAAE,GAAG,MAAA,MAAM,CAAC,EAAE,mCAAI,GAAG,IAAI,IAAI,KAAK,EAAE,CAAC;YAE3C,OAAO,yBAAgB,IAAI,IAAT,EAAE,CAAe,CAAC;QACxC,CAAC,CAAC,GACC,CACV,CAAC;AACN,CAAC,CAAC"}
|
package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantStorage/useTenantStorageNewData.d.ts
CHANGED
|
@@ -20,7 +20,7 @@ export declare function useTenantStorageNewData({ database, databaseFullPath, me
|
|
|
20
20
|
isSuccess: false;
|
|
21
21
|
isError: false;
|
|
22
22
|
isUninitialized: true;
|
|
23
|
-
refetch: () => import("@reduxjs/toolkit/query").QueryActionCreatorResult<import("@reduxjs/toolkit/query").QueryDefinition<import("../../../../../store/reducers/tenantOverview/storage/tenantOverviewStorage").GetTenantStorageRawParams, import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("../../../../../store/reducers/api")._NEVER, unknown, {}>, "Events" | "All" | "Conversations" | "PDiskData" | "PreviewData" | "SchemaTree" | "StorageData" | "TableData" | "Partitions" | "Tablet" | "UserData" | "VDiskData" | "VDiskBlobIndexStat" | "AccessRights" | "Backups" | "BackupsSchedule" | "
|
|
23
|
+
refetch: () => import("@reduxjs/toolkit/query").QueryActionCreatorResult<import("@reduxjs/toolkit/query").QueryDefinition<import("../../../../../store/reducers/tenantOverview/storage/tenantOverviewStorage").GetTenantStorageRawParams, import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("../../../../../store/reducers/api")._NEVER, unknown, {}>, "Events" | "All" | "Conversations" | "PDiskData" | "PreviewData" | "SchemaTree" | "StorageData" | "TableData" | "Partitions" | "Tablet" | "UserData" | "VDiskData" | "VDiskBlobIndexStat" | "AccessRights" | "Backups" | "BackupsSchedule" | "OperationList", import("../../../../../store/reducers/tenantOverview/storage/tenantOverviewStorage").TenantStorageRawData, "api", typeof import("../../../../../store/reducers/api")._NEVER>>;
|
|
24
24
|
} | {
|
|
25
25
|
data: TenantStorageData;
|
|
26
26
|
status: import("@reduxjs/toolkit/query").QueryStatus;
|
|
@@ -36,7 +36,7 @@ export declare function useTenantStorageNewData({ database, databaseFullPath, me
|
|
|
36
36
|
isError: false;
|
|
37
37
|
isLoading: true;
|
|
38
38
|
isFetching: boolean;
|
|
39
|
-
refetch: () => import("@reduxjs/toolkit/query").QueryActionCreatorResult<import("@reduxjs/toolkit/query").QueryDefinition<import("../../../../../store/reducers/tenantOverview/storage/tenantOverviewStorage").GetTenantStorageRawParams, import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("../../../../../store/reducers/api")._NEVER, unknown, {}>, "Events" | "All" | "Conversations" | "PDiskData" | "PreviewData" | "SchemaTree" | "StorageData" | "TableData" | "Partitions" | "Tablet" | "UserData" | "VDiskData" | "VDiskBlobIndexStat" | "AccessRights" | "Backups" | "BackupsSchedule" | "
|
|
39
|
+
refetch: () => import("@reduxjs/toolkit/query").QueryActionCreatorResult<import("@reduxjs/toolkit/query").QueryDefinition<import("../../../../../store/reducers/tenantOverview/storage/tenantOverviewStorage").GetTenantStorageRawParams, import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("../../../../../store/reducers/api")._NEVER, unknown, {}>, "Events" | "All" | "Conversations" | "PDiskData" | "PreviewData" | "SchemaTree" | "StorageData" | "TableData" | "Partitions" | "Tablet" | "UserData" | "VDiskData" | "VDiskBlobIndexStat" | "AccessRights" | "Backups" | "BackupsSchedule" | "OperationList", import("../../../../../store/reducers/tenantOverview/storage/tenantOverviewStorage").TenantStorageRawData, "api", typeof import("../../../../../store/reducers/api")._NEVER>>;
|
|
40
40
|
} | {
|
|
41
41
|
data: TenantStorageData;
|
|
42
42
|
status: import("@reduxjs/toolkit/query").QueryStatus;
|
|
@@ -52,7 +52,7 @@ export declare function useTenantStorageNewData({ database, databaseFullPath, me
|
|
|
52
52
|
isFetching: true;
|
|
53
53
|
error: undefined;
|
|
54
54
|
fulfilledTimeStamp: number;
|
|
55
|
-
refetch: () => import("@reduxjs/toolkit/query").QueryActionCreatorResult<import("@reduxjs/toolkit/query").QueryDefinition<import("../../../../../store/reducers/tenantOverview/storage/tenantOverviewStorage").GetTenantStorageRawParams, import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("../../../../../store/reducers/api")._NEVER, unknown, {}>, "Events" | "All" | "Conversations" | "PDiskData" | "PreviewData" | "SchemaTree" | "StorageData" | "TableData" | "Partitions" | "Tablet" | "UserData" | "VDiskData" | "VDiskBlobIndexStat" | "AccessRights" | "Backups" | "BackupsSchedule" | "
|
|
55
|
+
refetch: () => import("@reduxjs/toolkit/query").QueryActionCreatorResult<import("@reduxjs/toolkit/query").QueryDefinition<import("../../../../../store/reducers/tenantOverview/storage/tenantOverviewStorage").GetTenantStorageRawParams, import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("../../../../../store/reducers/api")._NEVER, unknown, {}>, "Events" | "All" | "Conversations" | "PDiskData" | "PreviewData" | "SchemaTree" | "StorageData" | "TableData" | "Partitions" | "Tablet" | "UserData" | "VDiskData" | "VDiskBlobIndexStat" | "AccessRights" | "Backups" | "BackupsSchedule" | "OperationList", import("../../../../../store/reducers/tenantOverview/storage/tenantOverviewStorage").TenantStorageRawData, "api", typeof import("../../../../../store/reducers/api")._NEVER>>;
|
|
56
56
|
} | {
|
|
57
57
|
data: TenantStorageData;
|
|
58
58
|
status: import("@reduxjs/toolkit/query").QueryStatus;
|
|
@@ -68,7 +68,7 @@ export declare function useTenantStorageNewData({ database, databaseFullPath, me
|
|
|
68
68
|
error: undefined;
|
|
69
69
|
fulfilledTimeStamp: number;
|
|
70
70
|
currentData: import("../../../../../store/reducers/tenantOverview/storage/tenantOverviewStorage").TenantStorageRawData;
|
|
71
|
-
refetch: () => import("@reduxjs/toolkit/query").QueryActionCreatorResult<import("@reduxjs/toolkit/query").QueryDefinition<import("../../../../../store/reducers/tenantOverview/storage/tenantOverviewStorage").GetTenantStorageRawParams, import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("../../../../../store/reducers/api")._NEVER, unknown, {}>, "Events" | "All" | "Conversations" | "PDiskData" | "PreviewData" | "SchemaTree" | "StorageData" | "TableData" | "Partitions" | "Tablet" | "UserData" | "VDiskData" | "VDiskBlobIndexStat" | "AccessRights" | "Backups" | "BackupsSchedule" | "
|
|
71
|
+
refetch: () => import("@reduxjs/toolkit/query").QueryActionCreatorResult<import("@reduxjs/toolkit/query").QueryDefinition<import("../../../../../store/reducers/tenantOverview/storage/tenantOverviewStorage").GetTenantStorageRawParams, import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("../../../../../store/reducers/api")._NEVER, unknown, {}>, "Events" | "All" | "Conversations" | "PDiskData" | "PreviewData" | "SchemaTree" | "StorageData" | "TableData" | "Partitions" | "Tablet" | "UserData" | "VDiskData" | "VDiskBlobIndexStat" | "AccessRights" | "Backups" | "BackupsSchedule" | "OperationList", import("../../../../../store/reducers/tenantOverview/storage/tenantOverviewStorage").TenantStorageRawData, "api", typeof import("../../../../../store/reducers/api")._NEVER>>;
|
|
72
72
|
} | {
|
|
73
73
|
data: TenantStorageData;
|
|
74
74
|
status: import("@reduxjs/toolkit/query").QueryStatus;
|
|
@@ -84,6 +84,6 @@ export declare function useTenantStorageNewData({ database, databaseFullPath, me
|
|
|
84
84
|
isSuccess: false;
|
|
85
85
|
isError: true;
|
|
86
86
|
error: unknown;
|
|
87
|
-
refetch: () => import("@reduxjs/toolkit/query").QueryActionCreatorResult<import("@reduxjs/toolkit/query").QueryDefinition<import("../../../../../store/reducers/tenantOverview/storage/tenantOverviewStorage").GetTenantStorageRawParams, import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("../../../../../store/reducers/api")._NEVER, unknown, {}>, "Events" | "All" | "Conversations" | "PDiskData" | "PreviewData" | "SchemaTree" | "StorageData" | "TableData" | "Partitions" | "Tablet" | "UserData" | "VDiskData" | "VDiskBlobIndexStat" | "AccessRights" | "Backups" | "BackupsSchedule" | "
|
|
87
|
+
refetch: () => import("@reduxjs/toolkit/query").QueryActionCreatorResult<import("@reduxjs/toolkit/query").QueryDefinition<import("../../../../../store/reducers/tenantOverview/storage/tenantOverviewStorage").GetTenantStorageRawParams, import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("../../../../../store/reducers/api")._NEVER, unknown, {}>, "Events" | "All" | "Conversations" | "PDiskData" | "PreviewData" | "SchemaTree" | "StorageData" | "TableData" | "Partitions" | "Tablet" | "UserData" | "VDiskData" | "VDiskBlobIndexStat" | "AccessRights" | "Backups" | "BackupsSchedule" | "OperationList", import("../../../../../store/reducers/tenantOverview/storage/tenantOverviewStorage").TenantStorageRawData, "api", typeof import("../../../../../store/reducers/api")._NEVER>>;
|
|
88
88
|
};
|
|
89
89
|
export {};
|