ydb-embedded-ui 6.10.3 → 6.12.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/components/DateRange/DateRange.d.ts +4 -4
- package/dist/components/DateRange/DateRange.js +23 -26
- package/dist/components/DateRange/DateRange.scss +14 -13
- package/dist/components/DateRange/__test__/fromDateRangeValues.test.d.ts +1 -0
- package/dist/components/DateRange/__test__/fromDateRangeValues.test.js +80 -0
- package/dist/components/DateRange/__test__/getdatePickerSize.test.d.ts +1 -0
- package/dist/components/DateRange/__test__/getdatePickerSize.test.js +56 -0
- package/dist/components/DateRange/__test__/toDateRangeValues.test.d.ts +1 -0
- package/dist/components/DateRange/__test__/toDateRangeValues.test.js +80 -0
- package/dist/components/DateRange/i18n/en.json +4 -0
- package/dist/components/DateRange/i18n/index.d.ts +2 -0
- package/dist/components/DateRange/i18n/index.js +5 -0
- package/dist/components/DateRange/i18n/ru.json +4 -0
- package/dist/components/DateRange/utils.d.ts +5 -0
- package/dist/components/DateRange/utils.js +41 -0
- package/dist/components/DeveloperUILinkButton/DeveloperUILinkButton.d.ts +8 -0
- package/dist/components/DeveloperUILinkButton/DeveloperUILinkButton.js +9 -0
- package/dist/components/DeveloperUILinkButton/DeveloperUILinkButton.scss +12 -0
- package/dist/components/DiskStateProgressBar/DiskStateProgressBar.d.ts +6 -1
- package/dist/components/DiskStateProgressBar/DiskStateProgressBar.js +22 -12
- package/dist/components/DiskStateProgressBar/DiskStateProgressBar.scss +45 -45
- package/dist/components/EntityStatus/EntityStatus.js +1 -1
- package/dist/components/EntityStatus/EntityStatus.scss +6 -2
- package/dist/components/MetricChart/reducer.d.ts +2 -2
- package/dist/components/MonacoEditor/MonacoEditor.js +0 -2
- package/dist/components/NodeHostWrapper/NodeHostWrapper.d.ts +0 -1
- package/dist/components/NodeHostWrapper/NodeHostWrapper.js +11 -7
- package/dist/components/PDiskInfo/PDiskInfo.d.ts +7 -4
- package/dist/components/PDiskInfo/PDiskInfo.js +73 -26
- package/dist/components/PDiskInfo/PDiskInfo.scss +15 -1
- package/dist/components/PDiskInfo/i18n/en.json +11 -5
- package/dist/components/PDiskInfo/i18n/index.d.ts +1 -1
- package/dist/components/PDiskPopup/PDiskPopup.js +8 -2
- package/dist/components/VDiskInfo/VDiskInfo.d.ts +3 -2
- package/dist/components/VDiskInfo/VDiskInfo.js +9 -4
- package/dist/components/VDiskInfo/VDiskInfo.scss +7 -1
- package/dist/components/VDiskInfo/i18n/en.json +2 -1
- package/dist/components/VDiskInfo/i18n/index.d.ts +1 -1
- package/dist/containers/Cluster/Cluster.scss +1 -4
- package/dist/containers/Cluster/ClusterInfo/ClusterInfo.scss +1 -1
- package/dist/containers/Heatmap/Heatmap.d.ts +2 -1
- package/dist/containers/Heatmap/Heatmap.js +2 -2
- package/dist/containers/Node/Node.scss +1 -4
- package/dist/containers/Node/NodeStructure/NodeStructure.scss +0 -20
- package/dist/containers/Node/NodeStructure/Pdisk.js +2 -2
- package/dist/containers/PDiskPage/PDiskGroups/PDiskGroups.d.ts +6 -0
- package/dist/containers/PDiskPage/PDiskGroups/PDiskGroups.js +24 -0
- package/dist/containers/PDiskPage/PDiskPage.js +62 -24
- package/dist/containers/PDiskPage/PDiskPage.scss +8 -5
- package/dist/containers/PDiskPage/PDiskSpaceDistribution/PDiskSpaceDistribution.d.ts +7 -0
- package/dist/containers/PDiskPage/PDiskSpaceDistribution/PDiskSpaceDistribution.js +93 -0
- package/dist/containers/PDiskPage/PDiskSpaceDistribution/PDiskSpaceDistribution.scss +52 -0
- package/dist/containers/PDiskPage/PDiskSpaceDistribution/utils.d.ts +4 -0
- package/dist/containers/PDiskPage/PDiskSpaceDistribution/utils.js +9 -0
- package/dist/containers/PDiskPage/i18n/en.json +8 -1
- package/dist/containers/PDiskPage/i18n/index.d.ts +1 -1
- package/dist/containers/Storage/StorageGroups/getStorageGroupsColumns.js +16 -6
- package/dist/containers/Tablets/Tablets.js +12 -5
- package/dist/containers/Tenant/Acl/Acl.d.ts +2 -1
- package/dist/containers/Tenant/Acl/Acl.js +10 -8
- package/dist/containers/Tenant/Acl/Acl.scss +8 -8
- package/dist/containers/Tenant/Acl/i18n/en.json +6 -0
- package/dist/containers/Tenant/Acl/i18n/index.d.ts +2 -0
- package/dist/containers/Tenant/Acl/i18n/index.js +4 -0
- package/dist/containers/Tenant/Diagnostics/Describe/Describe.d.ts +2 -1
- package/dist/containers/Tenant/Diagnostics/Describe/Describe.js +4 -4
- package/dist/containers/Tenant/Diagnostics/DetailedOverview/DetailedOverview.js +1 -1
- package/dist/containers/Tenant/Diagnostics/Diagnostics.js +3 -3
- package/dist/containers/Tenant/Diagnostics/Diagnostics.scss +3 -1
- package/dist/containers/Tenant/Diagnostics/HotKeys/HotKeys.d.ts +2 -1
- package/dist/containers/Tenant/Diagnostics/HotKeys/HotKeys.js +3 -3
- package/dist/containers/Tenant/Diagnostics/Overview/Overview.d.ts +2 -1
- package/dist/containers/Tenant/Diagnostics/Overview/Overview.js +6 -18
- package/dist/containers/Tenant/Diagnostics/Overview/TableInfo/TableInfo.d.ts +1 -3
- package/dist/containers/Tenant/Diagnostics/Overview/TableInfo/TableInfo.js +2 -2
- package/dist/containers/Tenant/Diagnostics/Overview/TableInfo/i18n/en.json +14 -1
- package/dist/containers/Tenant/Diagnostics/Overview/TableInfo/i18n/index.d.ts +1 -1
- package/dist/containers/Tenant/Diagnostics/Overview/TableInfo/i18n/index.js +1 -2
- package/dist/containers/Tenant/Diagnostics/Overview/TableInfo/prepareTableInfo.d.ts +2 -3
- package/dist/containers/Tenant/Diagnostics/Overview/TableInfo/prepareTableInfo.js +64 -76
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/TopQueries.js +8 -5
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantOverview.js +28 -3
- package/dist/containers/Tenant/Diagnostics/TenantOverview/getSectionTitle.d.ts +2 -1
- package/dist/containers/Tenant/Diagnostics/TenantOverview/getSectionTitle.js +2 -2
- package/dist/containers/Tenant/Diagnostics/TenantOverview/i18n/en.json +3 -2
- package/dist/containers/Tenant/Diagnostics/TenantOverview/i18n/index.d.ts +1 -1
- package/dist/containers/Tenant/Diagnostics/TopQueries/TopQueries.js +2 -2
- package/dist/containers/Tenant/Diagnostics/TopQueries/getTopQueriesColumns.d.ts +2 -2
- package/dist/containers/Tenant/Diagnostics/TopQueries/getTopQueriesColumns.js +19 -28
- package/dist/containers/Tenant/Diagnostics/TopShards/TopShards.js +7 -17
- package/dist/containers/Tenant/Diagnostics/TopShards/getTopShardsColumns.js +6 -2
- package/dist/containers/Tenant/ObjectSummary/ObjectSummary.js +31 -18
- package/dist/containers/Tenant/Query/ExplainResult/ExplainResult.js +2 -2
- package/dist/containers/Tenant/Query/QueryEditor/QueryEditor.js +8 -3
- package/dist/containers/Tenant/Query/QueryEditorControls/QueryEditorControls.d.ts +2 -1
- package/dist/containers/Tenant/Query/QueryEditorControls/QueryEditorControls.js +9 -7
- package/dist/containers/Tenant/Query/QuerySettingsDialog/QuerySettingsDialog.d.ts +2 -0
- package/dist/containers/Tenant/Query/QuerySettingsDialog/QuerySettingsDialog.js +38 -0
- package/dist/containers/Tenant/Query/QuerySettingsDialog/QuerySettingsDialog.scss +63 -0
- package/dist/containers/Tenant/Query/QuerySettingsDialog/QuerySettingsSelect.d.ts +15 -0
- package/dist/containers/Tenant/Query/QuerySettingsDialog/QuerySettingsSelect.js +14 -0
- package/dist/containers/Tenant/Query/QuerySettingsDialog/QuerySettingsSelect.scss +19 -0
- package/dist/containers/Tenant/Query/QuerySettingsDialog/constants.d.ts +99 -0
- package/dist/containers/Tenant/Query/QuerySettingsDialog/constants.js +109 -0
- package/dist/containers/Tenant/Query/QuerySettingsDialog/i18n/en.json +13 -0
- package/dist/containers/Tenant/Query/QuerySettingsDialog/i18n/index.d.ts +2 -0
- package/dist/containers/Tenant/Query/QuerySettingsDialog/i18n/index.js +5 -0
- package/dist/containers/Tenant/Query/QuerySettingsDialog/i18n/ru.json +13 -0
- package/dist/containers/Tenant/Query/i18n/en.json +14 -0
- package/dist/containers/Tenant/Query/i18n/index.d.ts +1 -1
- package/dist/containers/Tenant/Schema/CreateDirectoryDialog/CreateDirectoryDialog.d.ts +3 -2
- package/dist/containers/Tenant/Schema/CreateDirectoryDialog/CreateDirectoryDialog.js +2 -2
- package/dist/containers/Tenant/Schema/SchemaTree/SchemaTree.js +2 -2
- package/dist/containers/Tenant/Schema/SchemaViewer/SchemaViewer.js +1 -1
- package/dist/containers/Tenant/Tenant.js +1 -1
- package/dist/containers/Tenant/TenantPages.d.ts +12 -1
- package/dist/containers/Tenant/TenantPages.js +1 -1
- package/dist/containers/Tenant/i18n/en.json +2 -2
- package/dist/containers/Tenant/i18n/index.d.ts +1 -1
- package/dist/containers/Tenant/utils/schema.js +1 -1
- package/dist/containers/Tenants/Tenants.js +1 -1
- package/dist/containers/Tenants/Tenants.scss +0 -4
- package/dist/containers/UserSettings/i18n/en.json +2 -0
- package/dist/containers/UserSettings/i18n/index.d.ts +1 -1
- package/dist/containers/UserSettings/settings.d.ts +1 -0
- package/dist/containers/UserSettings/settings.js +6 -1
- package/dist/routes.js +2 -2
- package/dist/services/api.d.ts +39 -21
- package/dist/services/api.js +45 -56
- package/dist/services/settings.d.ts +1 -0
- package/dist/services/settings.js +2 -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/cluster/cluster.d.ts +2 -2
- package/dist/store/reducers/clusterNodes/clusterNodes.d.ts +2 -2
- package/dist/store/reducers/clusters/clusters.d.ts +2 -2
- package/dist/store/reducers/describe.d.ts +5 -2
- package/dist/store/reducers/describe.js +2 -2
- package/dist/store/reducers/executeQuery.d.ts +2 -2
- package/dist/store/reducers/executeTopQueries/executeTopQueries.d.ts +2 -2
- package/dist/store/reducers/executeTopQueries/executeTopQueries.js +20 -14
- package/dist/store/reducers/executeTopQueries/types.d.ts +2 -2
- package/dist/store/reducers/executeTopQueries/utils.js +11 -7
- package/dist/store/reducers/explainQuery/explainQuery.d.ts +2 -2
- package/dist/store/reducers/explainQuery/explainQuery.js +6 -1
- package/dist/store/reducers/healthcheckInfo/healthcheckInfo.d.ts +58 -58
- package/dist/store/reducers/heatmap.d.ts +2 -2
- package/dist/store/reducers/heatmap.js +3 -3
- package/dist/store/reducers/hotKeys/hotKeys.d.ts +3 -2
- package/dist/store/reducers/hotKeys/hotKeys.js +3 -3
- package/dist/store/reducers/index.d.ts +3 -3
- package/dist/store/reducers/network/network.d.ts +2 -2
- package/dist/store/reducers/network/network.js +1 -1
- package/dist/store/reducers/node/node.d.ts +3 -3
- package/dist/store/reducers/node/selectors.d.ts +1 -1
- package/dist/store/reducers/node/selectors.js +2 -2
- package/dist/store/reducers/nodes/nodes.d.ts +3 -3
- package/dist/store/reducers/nodesList.d.ts +3 -3
- package/dist/store/reducers/overview/overview.d.ts +5 -2
- package/dist/store/reducers/overview/overview.js +2 -2
- package/dist/store/reducers/partitions/partitions.d.ts +2 -2
- package/dist/store/reducers/pdisk/pdisk.d.ts +3 -3
- package/dist/store/reducers/pdisk/pdisk.js +15 -2
- package/dist/store/reducers/pdisk/types.d.ts +17 -1
- package/dist/store/reducers/pdisk/utils.d.ts +2 -2
- package/dist/store/reducers/pdisk/utils.js +68 -8
- package/dist/store/reducers/preview.d.ts +2 -2
- package/dist/store/reducers/preview.js +1 -1
- package/dist/store/reducers/queryActions/types.d.ts +1 -1
- package/dist/store/reducers/schema/schema.d.ts +28 -10
- package/dist/store/reducers/schema/schema.js +11 -12
- package/dist/store/reducers/schemaAcl/schemaAcl.d.ts +4 -2
- package/dist/store/reducers/schemaAcl/schemaAcl.js +9 -3
- package/dist/store/reducers/shardsWorkload/shardsWorkload.d.ts +2 -2
- package/dist/store/reducers/shardsWorkload/shardsWorkload.js +22 -6
- package/dist/store/reducers/shardsWorkload/types.d.ts +2 -2
- package/dist/store/reducers/storage/storage.d.ts +3 -3
- package/dist/store/reducers/tablet.d.ts +3 -3
- package/dist/store/reducers/tablets.d.ts +13 -13
- package/dist/store/reducers/tabletsFilters.d.ts +1 -1
- 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/executeTopTables/executeTopTables.js +1 -1
- package/dist/store/reducers/tenantOverview/topNodes/topNodes.d.ts +2 -2
- package/dist/store/reducers/tenantOverview/topShards/tenantOverviewTopShards.d.ts +2 -2
- package/dist/store/reducers/tenantOverview/topShards/tenantOverviewTopShards.js +1 -1
- package/dist/store/reducers/tenantOverview/topStorageGroups/topStorageGroups.d.ts +2 -2
- package/dist/store/reducers/tenants/selectors.d.ts +27 -27
- package/dist/store/reducers/tenants/tenants.d.ts +2 -2
- package/dist/store/reducers/topic.d.ts +44 -44
- package/dist/store/reducers/vdisk/vdisk.d.ts +2 -2
- package/dist/store/reducers/vdisk/vdisk.js +1 -1
- package/dist/store/reducers/viewSchema/viewSchema.d.ts +2 -2
- package/dist/store/reducers/viewSchema/viewSchema.js +1 -1
- package/dist/store/state-url-mapping.d.ts +70 -0
- package/dist/store/state-url-mapping.js +1 -5
- package/dist/styles/mixins.scss +11 -0
- package/dist/types/api/acl.d.ts +1 -0
- package/dist/types/api/pdisk.d.ts +65 -2
- package/dist/types/api/schema/schema.d.ts +21 -0
- package/dist/types/api/vdisk.d.ts +33 -2
- package/dist/types/common.d.ts +3 -0
- package/dist/types/store/heatmap.d.ts +1 -0
- package/dist/types/store/query.d.ts +4 -1
- package/dist/utils/constants.d.ts +1 -0
- package/dist/utils/constants.js +1 -0
- package/dist/utils/dataFormatters/dataFormatters.d.ts +0 -4
- package/dist/utils/dataFormatters/dataFormatters.js +2 -8
- package/dist/utils/developerUI/developerUI.d.ts +1 -0
- package/dist/utils/developerUI/developerUI.js +3 -0
- package/dist/utils/diagnostics.d.ts +21 -17
- package/dist/utils/diagnostics.js +28 -7
- package/dist/utils/disks/getPDiskType.d.ts +3 -3
- package/dist/utils/disks/helpers.d.ts +1 -0
- package/dist/utils/disks/helpers.js +3 -0
- package/dist/utils/disks/prepareDisks.d.ts +2 -2
- package/dist/utils/disks/prepareDisks.js +17 -22
- package/dist/utils/disks/types.d.ts +7 -5
- package/dist/utils/monaco/constats.d.ts +2 -0
- package/dist/utils/monaco/constats.js +2 -0
- package/dist/utils/monaco/yql/constants.d.ts +0 -1
- package/dist/utils/monaco/yql/constants.js +0 -1
- package/dist/utils/monaco/yql/yql.completionItemProvider.js +3 -3
- package/dist/utils/query.d.ts +24 -1
- package/dist/utils/query.js +40 -0
- package/package.json +5 -1
- package/dist/components/NodeHostWrapper/NodeHostWrapper.scss +0 -15
- package/dist/containers/Node/NodeStructure/Vdisk.d.ts +0 -6
- package/dist/containers/Node/NodeStructure/Vdisk.js +0 -13
- package/dist/containers/PDiskPage/PDiskGroups.d.ts +0 -9
- package/dist/containers/PDiskPage/PDiskGroups.js +0 -20
- package/dist/containers/Tenant/Diagnostics/Overview/TableInfo/i18n/ru.json +0 -5
- package/dist/store/reducers/olapStats.d.ts +0 -5
- package/dist/store/reducers/olapStats.js +0 -31
- package/dist/store/reducers/tenantOverview/topQueries/tenantOverviewTopQueries.d.ts +0 -5
- package/dist/store/reducers/tenantOverview/topQueries/tenantOverviewTopQueries.js +0 -38
- package/dist/utils/monaco/index.d.ts +0 -1
- package/dist/utils/monaco/index.js +0 -6
- package/dist/utils/monaco/s-expression/constants.d.ts +0 -1
- package/dist/utils/monaco/s-expression/constants.js +0 -1
- package/dist/utils/monaco/s-expression/registerLanguage.d.ts +0 -1
- package/dist/utils/monaco/s-expression/registerLanguage.js +0 -59
- package/dist/utils/monaco/yql/registerLanguage.d.ts +0 -1
- package/dist/utils/monaco/yql/registerLanguage.js +0 -8
- package/dist/utils/monaco/yql/yql.d.ts +0 -7
- package/dist/utils/monaco/yql/yql.js +0 -180
- package/dist/utils/monaco/yql/yql.keywords.d.ts +0 -3
- package/dist/utils/monaco/yql/yql.keywords.js +0 -3
@@ -0,0 +1,99 @@
|
|
1
|
+
export declare const ISOLATION_LEVEL_SELECT_OPTIONS: ({
|
2
|
+
value: "serializable-read-write";
|
3
|
+
content: string;
|
4
|
+
text: string;
|
5
|
+
isDefault: boolean;
|
6
|
+
} | {
|
7
|
+
value: "online-read-only";
|
8
|
+
content: string;
|
9
|
+
text: string;
|
10
|
+
isDefault?: undefined;
|
11
|
+
} | {
|
12
|
+
value: "stale-read-only";
|
13
|
+
content: string;
|
14
|
+
text: string;
|
15
|
+
isDefault?: undefined;
|
16
|
+
} | {
|
17
|
+
value: "snapshot-read-only";
|
18
|
+
content: string;
|
19
|
+
text: string;
|
20
|
+
isDefault?: undefined;
|
21
|
+
})[];
|
22
|
+
export declare const QUERY_MODE_SELECT_OPTIONS: ({
|
23
|
+
value: "script";
|
24
|
+
content: string;
|
25
|
+
text: string;
|
26
|
+
isDefault: boolean;
|
27
|
+
} | {
|
28
|
+
value: "scan";
|
29
|
+
content: string;
|
30
|
+
text: string;
|
31
|
+
isDefault?: undefined;
|
32
|
+
} | {
|
33
|
+
value: "data";
|
34
|
+
content: string;
|
35
|
+
text: string;
|
36
|
+
isDefault?: undefined;
|
37
|
+
} | {
|
38
|
+
value: "query";
|
39
|
+
content: string;
|
40
|
+
text: string;
|
41
|
+
isDefault?: undefined;
|
42
|
+
} | {
|
43
|
+
value: "pg";
|
44
|
+
content: string;
|
45
|
+
text: string;
|
46
|
+
isDefault?: undefined;
|
47
|
+
})[];
|
48
|
+
export declare const STATISTICS_MODE_SELECT_OPTIONS: ({
|
49
|
+
value: "none";
|
50
|
+
content: string;
|
51
|
+
text: string;
|
52
|
+
isDefault: boolean;
|
53
|
+
} | {
|
54
|
+
value: "basic";
|
55
|
+
content: string;
|
56
|
+
text: string;
|
57
|
+
isDefault?: undefined;
|
58
|
+
} | {
|
59
|
+
value: "full";
|
60
|
+
content: string;
|
61
|
+
text: string;
|
62
|
+
isDefault?: undefined;
|
63
|
+
} | {
|
64
|
+
value: "profile";
|
65
|
+
content: string;
|
66
|
+
text: string;
|
67
|
+
isDefault?: undefined;
|
68
|
+
})[];
|
69
|
+
export declare const TRACING_LEVEL_SELECT_OPTIONS: ({
|
70
|
+
value: "basic";
|
71
|
+
content: string;
|
72
|
+
text: string;
|
73
|
+
isDefault?: undefined;
|
74
|
+
} | {
|
75
|
+
value: "detailed";
|
76
|
+
content: string;
|
77
|
+
text: string;
|
78
|
+
isDefault: boolean;
|
79
|
+
} | {
|
80
|
+
value: "diagnostic";
|
81
|
+
content: string;
|
82
|
+
text: string;
|
83
|
+
isDefault?: undefined;
|
84
|
+
} | {
|
85
|
+
value: "off";
|
86
|
+
content: string;
|
87
|
+
text: string;
|
88
|
+
isDefault?: undefined;
|
89
|
+
} | {
|
90
|
+
value: "toplevel";
|
91
|
+
content: string;
|
92
|
+
text: string;
|
93
|
+
isDefault?: undefined;
|
94
|
+
} | {
|
95
|
+
value: "trace";
|
96
|
+
content: string;
|
97
|
+
text: string;
|
98
|
+
isDefault?: undefined;
|
99
|
+
})[];
|
@@ -0,0 +1,109 @@
|
|
1
|
+
import { ISOLATION_LEVELS, ISOLATION_LEVELS_TITLES, QUERY_MODES, QUERY_MODES_TITLES, STATISTICS_MODES, STATISTICS_MODES_TITLES, TRACING_LEVELS, TRACING_LEVELS_TITLES, } from '../../../../utils/query';
|
2
|
+
import i18n from '../i18n';
|
3
|
+
export const ISOLATION_LEVEL_SELECT_OPTIONS = [
|
4
|
+
{
|
5
|
+
value: ISOLATION_LEVELS.serializable,
|
6
|
+
content: ISOLATION_LEVELS_TITLES[ISOLATION_LEVELS.serializable],
|
7
|
+
text: i18n('isolation-level-description.serializable'),
|
8
|
+
isDefault: true,
|
9
|
+
},
|
10
|
+
{
|
11
|
+
value: ISOLATION_LEVELS.onlinero,
|
12
|
+
content: ISOLATION_LEVELS_TITLES[ISOLATION_LEVELS.onlinero],
|
13
|
+
text: i18n('isolation-level-description.onlinero'),
|
14
|
+
},
|
15
|
+
{
|
16
|
+
value: ISOLATION_LEVELS.stalero,
|
17
|
+
content: ISOLATION_LEVELS_TITLES[ISOLATION_LEVELS.stalero],
|
18
|
+
text: i18n('isolation-level-description.stalero'),
|
19
|
+
},
|
20
|
+
{
|
21
|
+
value: ISOLATION_LEVELS.snapshot,
|
22
|
+
content: ISOLATION_LEVELS_TITLES[ISOLATION_LEVELS.snapshot],
|
23
|
+
text: i18n('isolation-level-description.snapshot'),
|
24
|
+
},
|
25
|
+
];
|
26
|
+
export const QUERY_MODE_SELECT_OPTIONS = [
|
27
|
+
{
|
28
|
+
value: QUERY_MODES.script,
|
29
|
+
content: QUERY_MODES_TITLES[QUERY_MODES.script],
|
30
|
+
text: i18n('method-description.script'),
|
31
|
+
isDefault: true,
|
32
|
+
},
|
33
|
+
{
|
34
|
+
value: QUERY_MODES.scan,
|
35
|
+
content: QUERY_MODES_TITLES[QUERY_MODES.scan],
|
36
|
+
text: i18n('method-description.scan'),
|
37
|
+
},
|
38
|
+
{
|
39
|
+
value: QUERY_MODES.data,
|
40
|
+
content: QUERY_MODES_TITLES[QUERY_MODES.data],
|
41
|
+
text: i18n('method-description.data'),
|
42
|
+
},
|
43
|
+
{
|
44
|
+
value: QUERY_MODES.query,
|
45
|
+
content: QUERY_MODES_TITLES[QUERY_MODES.query],
|
46
|
+
text: i18n('method-description.query'),
|
47
|
+
},
|
48
|
+
{
|
49
|
+
value: QUERY_MODES.pg,
|
50
|
+
content: QUERY_MODES_TITLES[QUERY_MODES.pg],
|
51
|
+
text: i18n('method-description.pg'),
|
52
|
+
},
|
53
|
+
];
|
54
|
+
export const STATISTICS_MODE_SELECT_OPTIONS = [
|
55
|
+
{
|
56
|
+
value: STATISTICS_MODES.none,
|
57
|
+
content: STATISTICS_MODES_TITLES[STATISTICS_MODES.none],
|
58
|
+
text: i18n('statistics-mode-description.none'),
|
59
|
+
isDefault: true,
|
60
|
+
},
|
61
|
+
{
|
62
|
+
value: STATISTICS_MODES.basic,
|
63
|
+
content: STATISTICS_MODES_TITLES[STATISTICS_MODES.basic],
|
64
|
+
text: i18n('statistics-mode-description.basic'),
|
65
|
+
},
|
66
|
+
{
|
67
|
+
value: STATISTICS_MODES.full,
|
68
|
+
content: STATISTICS_MODES_TITLES[STATISTICS_MODES.full],
|
69
|
+
text: i18n('statistics-mode-description.full'),
|
70
|
+
},
|
71
|
+
{
|
72
|
+
value: STATISTICS_MODES.profile,
|
73
|
+
content: STATISTICS_MODES_TITLES[STATISTICS_MODES.profile],
|
74
|
+
text: i18n('statistics-mode-description.profile'),
|
75
|
+
},
|
76
|
+
];
|
77
|
+
export const TRACING_LEVEL_SELECT_OPTIONS = [
|
78
|
+
{
|
79
|
+
value: TRACING_LEVELS.basic,
|
80
|
+
content: TRACING_LEVELS_TITLES[TRACING_LEVELS.basic],
|
81
|
+
text: i18n('tracing-level-description.basic'),
|
82
|
+
},
|
83
|
+
{
|
84
|
+
value: TRACING_LEVELS.detailed,
|
85
|
+
content: TRACING_LEVELS_TITLES[TRACING_LEVELS.detailed],
|
86
|
+
text: i18n('tracing-level-description.detailed'),
|
87
|
+
isDefault: true,
|
88
|
+
},
|
89
|
+
{
|
90
|
+
value: TRACING_LEVELS.diagnostic,
|
91
|
+
content: TRACING_LEVELS_TITLES[TRACING_LEVELS.diagnostic],
|
92
|
+
text: i18n('tracing-level-description.diagnostic'),
|
93
|
+
},
|
94
|
+
{
|
95
|
+
value: TRACING_LEVELS.off,
|
96
|
+
content: TRACING_LEVELS_TITLES[TRACING_LEVELS.off],
|
97
|
+
text: i18n('tracing-level-description.off'),
|
98
|
+
},
|
99
|
+
{
|
100
|
+
value: TRACING_LEVELS.toplevel,
|
101
|
+
content: TRACING_LEVELS_TITLES[TRACING_LEVELS.toplevel],
|
102
|
+
text: i18n('tracing-level-description.toplevel'),
|
103
|
+
},
|
104
|
+
{
|
105
|
+
value: TRACING_LEVELS.trace,
|
106
|
+
content: TRACING_LEVELS_TITLES[TRACING_LEVELS.trace],
|
107
|
+
text: i18n('tracing-level-description.trace'),
|
108
|
+
},
|
109
|
+
];
|
@@ -0,0 +1,13 @@
|
|
1
|
+
{
|
2
|
+
"action.settings": "Query settings",
|
3
|
+
"form.query-mode": "Query type",
|
4
|
+
"form.timeout": "Timeout",
|
5
|
+
"form.isolation-level": "Isolation level",
|
6
|
+
"form.statistics-mode": "Statistics collection mode",
|
7
|
+
"form.tracing-level": "Tracing level",
|
8
|
+
"button-done": "Save",
|
9
|
+
"button-cancel": "Cancel",
|
10
|
+
"form.timeout.seconds": "sec",
|
11
|
+
"description.default": " (default)",
|
12
|
+
"docs": "Documentation"
|
13
|
+
}
|
@@ -0,0 +1,2 @@
|
|
1
|
+
declare const _default: (key: "button-cancel" | "action.settings" | "form.query-mode" | "form.timeout" | "form.isolation-level" | "form.statistics-mode" | "form.tracing-level" | "button-done" | "form.timeout.seconds" | "description.default" | "docs", params?: import("@gravity-ui/i18n").Params) => string;
|
2
|
+
export default _default;
|
@@ -0,0 +1,13 @@
|
|
1
|
+
{
|
2
|
+
"action.settings": "Настройки запроса",
|
3
|
+
"form.query-mode": "Тип запроса",
|
4
|
+
"form.timeout": "Таймаут",
|
5
|
+
"form.isolation-level": "Уровень изоляции",
|
6
|
+
"form.statistics-mode": "Режим сбора статистики",
|
7
|
+
"form.tracing-level": "Tracing level",
|
8
|
+
"button-done": "Готово",
|
9
|
+
"button-cancel": "Отменить",
|
10
|
+
"form.timeout.seconds": "сек",
|
11
|
+
"description.default": " (default)",
|
12
|
+
"docs": "Документация"
|
13
|
+
}
|
@@ -17,6 +17,20 @@
|
|
17
17
|
"method-description.data": "DML queries for changing and fetching data in serialization mode.\nAPI call: table.executeDataQuery",
|
18
18
|
"method-description.query": "Any query. An experimental API call supposed to replace all existing methods.\nAPI Call: query.ExecuteScript",
|
19
19
|
"method-description.pg": "Queries in postgresql syntax.\nAPI call: query.ExecuteScript",
|
20
|
+
"isolation-level-description.serializable": "Provides the strictest isolation level for custom transactions",
|
21
|
+
"isolation-level-description.onlinero": "Each read operation in the transaction is reading the data that is most recent at execution time",
|
22
|
+
"isolation-level-description.stalero": "Read operations within a transaction may return results that are slightly out-of-date (lagging by fractions of a second)",
|
23
|
+
"isolation-level-description.snapshot": "All the read operations within a transaction access the database snapshot. All the data reads are consistent",
|
24
|
+
"tracing-level-description.basic": "Spans of main component operations",
|
25
|
+
"tracing-level-description.detailed": "Highest detail applicable for diagnosing problems in production",
|
26
|
+
"tracing-level-description.diagnostic": "Detailed debugging information for developers",
|
27
|
+
"tracing-level-description.off": "No tracing",
|
28
|
+
"tracing-level-description.toplevel": "Lowest detail, no more than two spans per request to the component",
|
29
|
+
"tracing-level-description.trace": "Very detailed debugging information",
|
30
|
+
"statistics-mode-description.none": "Don't collect statistics",
|
31
|
+
"statistics-mode-description.basic": "Collect statistics",
|
32
|
+
"statistics-mode-description.full": "Collect statistics and query plan",
|
33
|
+
"statistics-mode-description.profile": "Collect statistics for individual tasks",
|
20
34
|
"query-duration.description": "Duration of server-side query execution",
|
21
35
|
"action.send-query": "Send query",
|
22
36
|
"action.send-selected-query": "Send selected query",
|
@@ -1,2 +1,2 @@
|
|
1
|
-
declare const _default: (key: "controls.query-mode-selector_type" | "tabs.newQuery" | "tabs.history" | "tabs.saved" | "history.empty" | "saved.empty" | "delete-dialog.header" | "delete-dialog.question" | "delete-dialog.delete" | "delete-dialog.cancel" | "preview.title" | "preview.not-available" | "preview.close" | "method-description.script" | "method-description.scan" | "method-description.data" | "method-description.query" | "method-description.pg" | "query-duration.description" | "action.send-query" | "action.send-selected-query" | "action.previous-query" | "action.next-query" | "action.save-query", params?: import("@gravity-ui/i18n").Params) => string;
|
1
|
+
declare const _default: (key: "controls.query-mode-selector_type" | "tabs.newQuery" | "tabs.history" | "tabs.saved" | "history.empty" | "saved.empty" | "delete-dialog.header" | "delete-dialog.question" | "delete-dialog.delete" | "delete-dialog.cancel" | "preview.title" | "preview.not-available" | "preview.close" | "method-description.script" | "method-description.scan" | "method-description.data" | "method-description.query" | "method-description.pg" | "isolation-level-description.serializable" | "isolation-level-description.onlinero" | "isolation-level-description.stalero" | "isolation-level-description.snapshot" | "tracing-level-description.basic" | "tracing-level-description.detailed" | "tracing-level-description.diagnostic" | "tracing-level-description.off" | "tracing-level-description.toplevel" | "tracing-level-description.trace" | "statistics-mode-description.none" | "statistics-mode-description.basic" | "statistics-mode-description.full" | "statistics-mode-description.profile" | "query-duration.description" | "action.send-query" | "action.send-selected-query" | "action.previous-query" | "action.next-query" | "action.save-query", params?: import("@gravity-ui/i18n").Params) => string;
|
2
2
|
export default _default;
|
@@ -1,9 +1,10 @@
|
|
1
1
|
import './CreateDirectoryDialog.scss';
|
2
|
-
interface
|
2
|
+
interface CreateDirectoryDialogProps {
|
3
3
|
open: boolean;
|
4
4
|
onClose: VoidFunction;
|
5
|
+
database: string;
|
5
6
|
parentPath: string;
|
6
7
|
onSuccess: (value: string) => void;
|
7
8
|
}
|
8
|
-
export declare function CreateDirectoryDialog({ open, onClose, parentPath, onSuccess }:
|
9
|
+
export declare function CreateDirectoryDialog({ open, onClose, database, parentPath, onSuccess, }: CreateDirectoryDialogProps): import("react/jsx-runtime").JSX.Element;
|
9
10
|
export {};
|
@@ -17,7 +17,7 @@ function validateRelativePath(value) {
|
|
17
17
|
}
|
18
18
|
return '';
|
19
19
|
}
|
20
|
-
export function CreateDirectoryDialog({ open, onClose, parentPath, onSuccess }) {
|
20
|
+
export function CreateDirectoryDialog({ open, onClose, database, parentPath, onSuccess, }) {
|
21
21
|
const [validationError, setValidationError] = React.useState('');
|
22
22
|
const [relativePath, setRelativePath] = React.useState('');
|
23
23
|
const [create, response] = schemaApi.useCreateDirectoryMutation();
|
@@ -37,7 +37,7 @@ export function CreateDirectoryDialog({ open, onClose, parentPath, onSuccess })
|
|
37
37
|
const handleSubmit = () => {
|
38
38
|
const path = `${parentPath}/${relativePath}`;
|
39
39
|
create({
|
40
|
-
database
|
40
|
+
database,
|
41
41
|
path,
|
42
42
|
})
|
43
43
|
.unwrap()
|
@@ -22,7 +22,7 @@ export function SchemaTree(props) {
|
|
22
22
|
const fetchPath = async (path) => {
|
23
23
|
let schemaData;
|
24
24
|
do {
|
25
|
-
const promise = dispatch(schemaApi.endpoints.getSchema.initiate({ path }, { forceRefetch: true }));
|
25
|
+
const promise = dispatch(schemaApi.endpoints.getSchema.initiate({ path, database: rootPath }, { forceRefetch: true }));
|
26
26
|
const { data, originalArgs } = await promise;
|
27
27
|
promise.unsubscribe();
|
28
28
|
// Check if the result from the current request is received. rtk-query may skip the current request and
|
@@ -67,7 +67,7 @@ export function SchemaTree(props) {
|
|
67
67
|
setParentPath(value);
|
68
68
|
setCreateDirectoryOpen(true);
|
69
69
|
};
|
70
|
-
return (_jsxs(React.Fragment, { children: [_jsx(CreateDirectoryDialog, { onClose: handleCloseDialog, open: createDirectoryOpen, parentPath: parentPath, onSuccess: handleSuccessSubmit }), _jsx(NavigationTree, { rootState: {
|
70
|
+
return (_jsxs(React.Fragment, { children: [_jsx(CreateDirectoryDialog, { onClose: handleCloseDialog, open: createDirectoryOpen, database: rootPath, parentPath: parentPath, onSuccess: handleSuccessSubmit }), _jsx(NavigationTree, { rootState: {
|
71
71
|
path: rootPath,
|
72
72
|
name: rootName,
|
73
73
|
type: mapPathTypeToNavigationTreeType(rootType),
|
@@ -13,7 +13,7 @@ import { prepareSchemaData, prepareViewSchema } from './prepareData';
|
|
13
13
|
import { b } from './shared';
|
14
14
|
import './SchemaViewer.scss';
|
15
15
|
export const SchemaViewer = ({ type, path, tenantName, extended = false }) => {
|
16
|
-
const { data: schemaData, isLoading: loading } = useGetSchemaQuery({ path });
|
16
|
+
const { data: schemaData, isLoading: loading } = useGetSchemaQuery({ path, database: tenantName });
|
17
17
|
const viewSchemaRequestParams = isViewType(type) ? { path, database: tenantName } : skipToken;
|
18
18
|
const { data: viewColumnsData, isLoading: isViewSchemaLoading } = viewSchemaApi.useGetViewSchemaQuery(viewSchemaRequestParams);
|
19
19
|
const tableData = React.useMemo(() => {
|
@@ -47,7 +47,7 @@ export function Tenant(props) {
|
|
47
47
|
dispatch(setHeaderBreadcrumbs('tenant', { tenantName }));
|
48
48
|
}, [tenantName, dispatch]);
|
49
49
|
const path = schema !== null && schema !== void 0 ? schema : tenantName;
|
50
|
-
const { data: currentItem, error, isLoading } = useGetSchemaQuery({ path });
|
50
|
+
const { data: currentItem, error, isLoading } = useGetSchemaQuery({ path, database: tenantName });
|
51
51
|
const { PathType: currentPathType, PathSubType: currentPathSubType } = ((_a = currentItem === null || currentItem === void 0 ? void 0 : currentItem.PathDescription) === null || _a === void 0 ? void 0 : _a.Self) || {};
|
52
52
|
let showBlockingError = false;
|
53
53
|
if (error && typeof error === 'object' && 'status' in error) {
|
@@ -1,3 +1,13 @@
|
|
1
|
+
import type { paramSetup } from '../../store/state-url-mapping';
|
2
|
+
import type { ExtractType } from '../../types/common';
|
3
|
+
type TenantQueryParams = {
|
4
|
+
[K in keyof (typeof paramSetup)['/tenant']]?: ExtractType<(typeof paramSetup)['/tenant'][K]>;
|
5
|
+
};
|
6
|
+
type AdditionalQueryParams = {
|
7
|
+
name?: string;
|
8
|
+
backend?: string;
|
9
|
+
};
|
10
|
+
type TenantQuery = TenantQueryParams | AdditionalQueryParams;
|
1
11
|
export declare const TenantTabsGroups: {
|
2
12
|
readonly summaryTab: "summaryTab";
|
3
13
|
readonly queryTab: "queryTab";
|
@@ -15,4 +25,5 @@ export declare const TENANT_SCHEMA_TAB: {
|
|
15
25
|
id: "schema";
|
16
26
|
title: string;
|
17
27
|
}[];
|
18
|
-
export declare const getTenantPath: (query
|
28
|
+
export declare const getTenantPath: (query: TenantQuery) => string;
|
29
|
+
export {};
|
@@ -2,8 +2,6 @@
|
|
2
2
|
"page.title": "Database",
|
3
3
|
"pages.query": "Query",
|
4
4
|
"pages.diagnostics": "Diagnostics",
|
5
|
-
"acl.owner": "Owner",
|
6
|
-
"acl.empty": "No Acl data",
|
7
5
|
"summary.navigation": "Navigation",
|
8
6
|
"summary.showPreview": "Show preview",
|
9
7
|
"summary.source-type": "Source Type",
|
@@ -14,6 +12,8 @@
|
|
14
12
|
"summary.id": "Id",
|
15
13
|
"summary.version": "Version",
|
16
14
|
"summary.created": "Created",
|
15
|
+
"summary.data-size": "Data size",
|
16
|
+
"summary.row-count": "Row count",
|
17
17
|
"summary.partitions": "Partitions count",
|
18
18
|
"summary.paths": "Paths",
|
19
19
|
"summary.shards": "Shards",
|
@@ -1,2 +1,2 @@
|
|
1
|
-
declare const _default: (key: "page.title" | "pages.query" | "pages.diagnostics" | "
|
1
|
+
declare const _default: (key: "page.title" | "pages.query" | "pages.diagnostics" | "summary.navigation" | "summary.showPreview" | "summary.source-type" | "summary.data-source" | "summary.copySchemaPath" | "summary.type" | "summary.subtype" | "summary.id" | "summary.version" | "summary.created" | "summary.data-size" | "summary.row-count" | "summary.partitions" | "summary.paths" | "summary.shards" | "summary.state" | "summary.mode" | "summary.format" | "summary.retention" | "label.read-only" | "actions.copied" | "actions.notCopied" | "actions.copyPath" | "actions.openPreview" | "actions.createTable" | "actions.createExternalTable" | "actions.createTopic" | "actions.createColumnTable" | "actions.createAsyncReplication" | "actions.createView" | "actions.dropTable" | "actions.dropTopic" | "actions.dropView" | "actions.alterTable" | "actions.alterTopic" | "actions.selectQuery" | "actions.upsertQuery" | "actions.alterReplication" | "actions.dropReplication" | "actions.createDirectory" | "schema.tree.dialog.placeholder" | "schema.tree.dialog.invalid" | "schema.tree.dialog.whitespace" | "schema.tree.dialog.empty" | "schema.tree.dialog.header" | "schema.tree.dialog.description" | "schema.tree.dialog.buttonCancel" | "schema.tree.dialog.buttonApply", params?: import("@gravity-ui/i18n").Params) => string;
|
2
2
|
export default _default;
|
@@ -40,7 +40,7 @@ const pathTypeToEntityName = {
|
|
40
40
|
[EPathType.EPathTypeTable]: 'Table',
|
41
41
|
[EPathType.EPathTypeTableIndex]: 'Secondary Index',
|
42
42
|
[EPathType.EPathTypeColumnStore]: 'Tablestore',
|
43
|
-
[EPathType.EPathTypeColumnTable]: '
|
43
|
+
[EPathType.EPathTypeColumnTable]: 'Column-oriented table',
|
44
44
|
[EPathType.EPathTypeCdcStream]: 'Changefeed',
|
45
45
|
[EPathType.EPathTypePersQueueGroup]: 'Topic',
|
46
46
|
[EPathType.EPathTypeExternalDataSource]: 'External Data Source',
|
@@ -59,7 +59,7 @@ export const Tenants = ({ additionalTenantsProps }) => {
|
|
59
59
|
return (_jsx(EntityStatus, { externalLink: isExternalLink, className: b('name'), name: row.Name || 'unknown database', withLeftTrim: true, status: row.Overall, hasClipboardButton: true, path: getTenantPath({
|
60
60
|
name: row.Name,
|
61
61
|
backend,
|
62
|
-
}), additionalControls:
|
62
|
+
}), additionalControls: (_a = additionalTenantsProps === null || additionalTenantsProps === void 0 ? void 0 : additionalTenantsProps.getMonitoringLink) === null || _a === void 0 ? void 0 : _a.call(additionalTenantsProps, row.Name, row.Type) }));
|
63
63
|
},
|
64
64
|
width: 440,
|
65
65
|
sortable: true,
|
@@ -25,6 +25,8 @@
|
|
25
25
|
"settings.useNodesEndpoint.description": "Use /viewer/json/nodes endpoint for Nodes tab in diagnostics. It could return incorrect data on versions before 24-1",
|
26
26
|
"settings.usePaginatedTables.title": "Use paginated tables",
|
27
27
|
"settings.usePaginatedTables.description": " Use table with data load on scroll for Nodes and Storage tabs. It will increase performance, but could work unstable",
|
28
|
+
"settings.useQuerySettings.title": "Use query settings",
|
29
|
+
"settings.useQuerySettings.description": "Use query settings",
|
28
30
|
"settings.queryUseMultiSchema.title": "Allow queries with multiple result sets",
|
29
31
|
"settings.queryUseMultiSchema.description": "Use 'multi' schema for queries. It enables queries with multiple result sets. It returns nothing on versions 23-3 and older",
|
30
32
|
"settings.useSeparateDisksPages.title": "Use separate PDisk and VDisk pages",
|
@@ -1,2 +1,2 @@
|
|
1
|
-
declare const _default: (key: "page.general" | "section.appearance" | "page.experiments" | "section.experiments" | "page.editor" | "section.dev-setting" | "page.about" | "section.about" | "settings.editor.autocomplete.title" | "settings.editor.autocomplete.description" | "settings.editor.autocomplete-on-enter.title" | "settings.editor.autocomplete-on-enter.description" | "settings.theme.title" | "settings.theme.option-dark" | "settings.theme.option-light" | "settings.theme.option-system" | "settings.language.title" | "settings.language.option-russian" | "settings.language.option-english" | "settings.binaryDataInPlainTextDisplay.title" | "settings.binaryDataInPlainTextDisplay.description" | "settings.invertedDisks.title" | "settings.useNodesEndpoint.title" | "settings.useNodesEndpoint.description" | "settings.usePaginatedTables.title" | "settings.usePaginatedTables.description" | "settings.queryUseMultiSchema.title" | "settings.queryUseMultiSchema.description" | "settings.useSeparateDisksPages.title" | "settings.useSeparateDisksPages.description" | "settings.useDirectoryOperations.title" | "settings.useClusterBalancerAsBackend.title" | "settings.useClusterBalancerAsBackend.description" | "settings.about.interfaceVersionInfoField.title", params?: import("@gravity-ui/i18n").Params) => string;
|
1
|
+
declare const _default: (key: "page.general" | "section.appearance" | "page.experiments" | "section.experiments" | "page.editor" | "section.dev-setting" | "page.about" | "section.about" | "settings.editor.autocomplete.title" | "settings.editor.autocomplete.description" | "settings.editor.autocomplete-on-enter.title" | "settings.editor.autocomplete-on-enter.description" | "settings.theme.title" | "settings.theme.option-dark" | "settings.theme.option-light" | "settings.theme.option-system" | "settings.language.title" | "settings.language.option-russian" | "settings.language.option-english" | "settings.binaryDataInPlainTextDisplay.title" | "settings.binaryDataInPlainTextDisplay.description" | "settings.invertedDisks.title" | "settings.useNodesEndpoint.title" | "settings.useNodesEndpoint.description" | "settings.usePaginatedTables.title" | "settings.usePaginatedTables.description" | "settings.useQuerySettings.title" | "settings.useQuerySettings.description" | "settings.queryUseMultiSchema.title" | "settings.queryUseMultiSchema.description" | "settings.useSeparateDisksPages.title" | "settings.useSeparateDisksPages.description" | "settings.useDirectoryOperations.title" | "settings.useClusterBalancerAsBackend.title" | "settings.useClusterBalancerAsBackend.description" | "settings.about.interfaceVersionInfoField.title", params?: import("@gravity-ui/i18n").Params) => string;
|
2
2
|
export default _default;
|
@@ -18,6 +18,7 @@ export declare const binaryDataInPlainTextDisplay: SettingProps;
|
|
18
18
|
export declare const invertedDisksSetting: SettingProps;
|
19
19
|
export declare const useNodesEndpointSetting: SettingProps;
|
20
20
|
export declare const usePaginatedTables: SettingProps;
|
21
|
+
export declare const useQuerySettings: SettingProps;
|
21
22
|
export declare const queryUseMultiSchemaSetting: SettingProps;
|
22
23
|
export declare const useSeparateDisksPagesSetting: SettingProps;
|
23
24
|
export declare const useDirectoryActionsSetting: SettingProps;
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
2
2
|
import { CircleInfo, Flask, PencilToSquare, StarFill } from '@gravity-ui/icons';
|
3
3
|
import { createNextState } from '@reduxjs/toolkit';
|
4
|
-
import { AUTOCOMPLETE_ON_ENTER, BINARY_DATA_IN_PLAIN_TEXT_DISPLAY, ENABLE_AUTOCOMPLETE, INVERTED_DISKS_KEY, LANGUAGE_KEY, QUERY_USE_MULTI_SCHEMA_KEY, THEME_KEY, USE_CLUSTER_BALANCER_AS_BACKEND_KEY, USE_DIRECTORY_OPERATIONS, USE_NODES_ENDPOINT_IN_DIAGNOSTICS_KEY, USE_PAGINATED_TABLES_KEY, USE_SEPARATE_DISKS_PAGES_KEY, } from '../../utils/constants';
|
4
|
+
import { AUTOCOMPLETE_ON_ENTER, BINARY_DATA_IN_PLAIN_TEXT_DISPLAY, ENABLE_AUTOCOMPLETE, INVERTED_DISKS_KEY, LANGUAGE_KEY, QUERY_SETTINGS, QUERY_USE_MULTI_SCHEMA_KEY, THEME_KEY, USE_CLUSTER_BALANCER_AS_BACKEND_KEY, USE_DIRECTORY_OPERATIONS, USE_NODES_ENDPOINT_IN_DIAGNOSTICS_KEY, USE_PAGINATED_TABLES_KEY, USE_SEPARATE_DISKS_PAGES_KEY, } from '../../utils/constants';
|
5
5
|
import { Lang, defaultLang } from '../../utils/i18n';
|
6
6
|
import { ClusterModeGuard } from '../ClusterModeGuard';
|
7
7
|
import i18n from './i18n';
|
@@ -65,6 +65,11 @@ export const usePaginatedTables = {
|
|
65
65
|
title: i18n('settings.usePaginatedTables.title'),
|
66
66
|
description: i18n('settings.usePaginatedTables.description'),
|
67
67
|
};
|
68
|
+
export const useQuerySettings = {
|
69
|
+
settingKey: QUERY_SETTINGS,
|
70
|
+
title: i18n('settings.useQuerySettings.title'),
|
71
|
+
description: i18n('settings.useQuerySettings.description'),
|
72
|
+
};
|
68
73
|
export const queryUseMultiSchemaSetting = {
|
69
74
|
settingKey: QUERY_USE_MULTI_SCHEMA_KEY,
|
70
75
|
title: i18n('settings.queryUseMultiSchema.title'),
|
package/dist/routes.js
CHANGED
@@ -42,11 +42,11 @@ const prepareRoute = (route) => {
|
|
42
42
|
};
|
43
43
|
export function createHref(route, params, query = {}) {
|
44
44
|
let extendedQuery = query;
|
45
|
-
const isBackendInQuery = Boolean(query.backend);
|
45
|
+
const isBackendInQuery = 'backend' in query && Boolean(query.backend);
|
46
46
|
if (backend && !isBackendInQuery && webVersion) {
|
47
47
|
extendedQuery = { ...query, backend };
|
48
48
|
}
|
49
|
-
const isClusterNameInQuery = Boolean(query.clusterName);
|
49
|
+
const isClusterNameInQuery = 'clusterName' in query && Boolean(query.clusterName);
|
50
50
|
if (clusterName && !isClusterNameInQuery && webVersion) {
|
51
51
|
extendedQuery = { ...extendedQuery, clusterName };
|
52
52
|
}
|