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
@@ -1,5 +1,5 @@
|
|
1
1
|
import * as monaco from 'monaco-editor';
|
2
|
-
import {
|
2
|
+
import { LANGUAGE_ID } from 'monaco-yql-languages/build/yql/yql.contribution';
|
3
3
|
import { createProvideSuggestionsFunction } from './yqlSuggestions';
|
4
4
|
let completionProvider;
|
5
5
|
function disableCodeSuggestions() {
|
@@ -9,8 +9,8 @@ function disableCodeSuggestions() {
|
|
9
9
|
}
|
10
10
|
export function registerYQLCompletionItemProvider(database) {
|
11
11
|
disableCodeSuggestions();
|
12
|
-
completionProvider = monaco.languages.registerCompletionItemProvider(
|
13
|
-
triggerCharacters: [' ', '
|
12
|
+
completionProvider = monaco.languages.registerCompletionItemProvider(LANGUAGE_ID, {
|
13
|
+
triggerCharacters: [' ', '.', '`', '(', '/'],
|
14
14
|
provideCompletionItems: createProvideSuggestionsFunction(database),
|
15
15
|
});
|
16
16
|
}
|
package/dist/utils/query.d.ts
CHANGED
@@ -1,5 +1,28 @@
|
|
1
1
|
import type { AnyExecuteResponse, AnyExplainResponse, ErrorResponse, KeyValueRow, QueryPlan, ScriptPlan } from '../types/api/query';
|
2
|
-
import type { IQueryResult, QueryMode } from '../types/store/query';
|
2
|
+
import type { IQueryResult, IsolationLevel, QueryMode, StatisticsMode, TracingLevel } from '../types/store/query';
|
3
|
+
export declare const ISOLATION_LEVELS: {
|
4
|
+
readonly serializable: "serializable-read-write";
|
5
|
+
readonly stalero: "stale-read-only";
|
6
|
+
readonly onlinero: "online-read-only";
|
7
|
+
readonly snapshot: "snapshot-read-only";
|
8
|
+
};
|
9
|
+
export declare const ISOLATION_LEVELS_TITLES: Record<IsolationLevel, string>;
|
10
|
+
export declare const STATISTICS_MODES: {
|
11
|
+
readonly none: "none";
|
12
|
+
readonly basic: "basic";
|
13
|
+
readonly full: "full";
|
14
|
+
readonly profile: "profile";
|
15
|
+
};
|
16
|
+
export declare const STATISTICS_MODES_TITLES: Record<StatisticsMode, string>;
|
17
|
+
export declare const TRACING_LEVELS: {
|
18
|
+
readonly off: "off";
|
19
|
+
readonly toplevel: "toplevel";
|
20
|
+
readonly basic: "basic";
|
21
|
+
readonly detailed: "detailed";
|
22
|
+
readonly diagnostic: "diagnostic";
|
23
|
+
readonly trace: "trace";
|
24
|
+
};
|
25
|
+
export declare const TRACING_LEVELS_TITLES: Record<TracingLevel, string>;
|
3
26
|
export declare const QUERY_ACTIONS: {
|
4
27
|
readonly execute: "execute";
|
5
28
|
readonly explain: "explain";
|
package/dist/utils/query.js
CHANGED
@@ -1,5 +1,45 @@
|
|
1
1
|
import { YQLType } from '../types';
|
2
2
|
import { isAxiosResponse, isNetworkError } from './response';
|
3
|
+
export const ISOLATION_LEVELS = {
|
4
|
+
serializable: 'serializable-read-write',
|
5
|
+
stalero: 'stale-read-only',
|
6
|
+
onlinero: 'online-read-only',
|
7
|
+
snapshot: 'snapshot-read-only',
|
8
|
+
};
|
9
|
+
export const ISOLATION_LEVELS_TITLES = {
|
10
|
+
[ISOLATION_LEVELS.serializable]: 'Serializable',
|
11
|
+
[ISOLATION_LEVELS.stalero]: 'Stale Read-Only',
|
12
|
+
[ISOLATION_LEVELS.onlinero]: 'Online Read-Only',
|
13
|
+
[ISOLATION_LEVELS.snapshot]: 'Snapshot Read-Only',
|
14
|
+
};
|
15
|
+
export const STATISTICS_MODES = {
|
16
|
+
none: 'none',
|
17
|
+
basic: 'basic',
|
18
|
+
full: 'full',
|
19
|
+
profile: 'profile',
|
20
|
+
};
|
21
|
+
export const STATISTICS_MODES_TITLES = {
|
22
|
+
[STATISTICS_MODES.none]: 'None',
|
23
|
+
[STATISTICS_MODES.full]: 'Full',
|
24
|
+
[STATISTICS_MODES.basic]: 'Basic',
|
25
|
+
[STATISTICS_MODES.profile]: 'Profile',
|
26
|
+
};
|
27
|
+
export const TRACING_LEVELS = {
|
28
|
+
off: 'off',
|
29
|
+
toplevel: 'toplevel',
|
30
|
+
basic: 'basic',
|
31
|
+
detailed: 'detailed',
|
32
|
+
diagnostic: 'diagnostic',
|
33
|
+
trace: 'trace',
|
34
|
+
};
|
35
|
+
export const TRACING_LEVELS_TITLES = {
|
36
|
+
[TRACING_LEVELS.off]: 'Off',
|
37
|
+
[TRACING_LEVELS.toplevel]: 'TopLevel',
|
38
|
+
[TRACING_LEVELS.basic]: 'Basic',
|
39
|
+
[TRACING_LEVELS.detailed]: 'Detailed',
|
40
|
+
[TRACING_LEVELS.diagnostic]: 'Diagnostic',
|
41
|
+
[TRACING_LEVELS.trace]: 'Trace',
|
42
|
+
};
|
3
43
|
export const QUERY_ACTIONS = {
|
4
44
|
execute: 'execute',
|
5
45
|
explain: 'explain',
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "ydb-embedded-ui",
|
3
|
-
"version": "6.
|
3
|
+
"version": "6.12.0",
|
4
4
|
"files": [
|
5
5
|
"dist"
|
6
6
|
],
|
@@ -14,6 +14,7 @@
|
|
14
14
|
"@gravity-ui/axios-wrapper": "^1.4.1",
|
15
15
|
"@gravity-ui/chartkit": "^5.9.0",
|
16
16
|
"@gravity-ui/components": "^3.7.0",
|
17
|
+
"@gravity-ui/date-components": "^2.8.0",
|
17
18
|
"@gravity-ui/date-utils": "^2.5.3",
|
18
19
|
"@gravity-ui/i18n": "^1.5.1",
|
19
20
|
"@gravity-ui/icons": "^2.10.0",
|
@@ -36,6 +37,7 @@
|
|
36
37
|
"qs": "^6.12.0",
|
37
38
|
"react-error-boundary": "^4.0.13",
|
38
39
|
"react-helmet-async": "^2.0.5",
|
40
|
+
"react-hook-form": "^7.52.1",
|
39
41
|
"react-json-inspector": "^7.1.1",
|
40
42
|
"react-list": "^0.8.17",
|
41
43
|
"react-monaco-editor": "^0.55.0",
|
@@ -145,6 +147,8 @@
|
|
145
147
|
"husky": "^9.0.11",
|
146
148
|
"jest-transform-css": "^6.0.1",
|
147
149
|
"lint-staged": "^15.2.7",
|
150
|
+
"monaco-editor-webpack-plugin": "^7.1.0",
|
151
|
+
"monaco-yql-languages": "^1.0.6",
|
148
152
|
"npm-run-all": "^4.1.5",
|
149
153
|
"postcss": "^8.4.38",
|
150
154
|
"prettier": "^3.2.5",
|
@@ -1,15 +0,0 @@
|
|
1
|
-
.ydb-node-host-wrapper {
|
2
|
-
&__external-button {
|
3
|
-
display: none;
|
4
|
-
flex-shrink: 0;
|
5
|
-
|
6
|
-
margin-left: 4px;
|
7
|
-
}
|
8
|
-
}
|
9
|
-
|
10
|
-
.data-table__row:hover,
|
11
|
-
.ydb-paginated-table__row:hover {
|
12
|
-
.ydb-node-host-wrapper__external-button {
|
13
|
-
display: inline-flex;
|
14
|
-
}
|
15
|
-
}
|
@@ -1,13 +0,0 @@
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
2
|
-
import React from 'react';
|
3
|
-
import { EntityStatus } from '../../../components/EntityStatus/EntityStatus';
|
4
|
-
import { VDiskInfo } from '../../../components/VDiskInfo/VDiskInfo';
|
5
|
-
import { EFlag } from '../../../types/api/enums';
|
6
|
-
import { EVDiskState } from '../../../types/api/vdisk';
|
7
|
-
import { cn } from '../../../utils/cn';
|
8
|
-
import { stringifyVdiskId } from '../../../utils/dataFormatters/dataFormatters';
|
9
|
-
const b = cn('kv-node-structure');
|
10
|
-
export function Vdisk({ data }) {
|
11
|
-
const { VDiskState, VDiskId } = data;
|
12
|
-
return (_jsxs(React.Fragment, { children: [_jsxs("div", { className: b('row'), children: [_jsx("span", { className: b('title'), children: "VDisk " }), _jsx(EntityStatus, { status: VDiskState === EVDiskState.OK ? EFlag.Green : EFlag.Red, name: stringifyVdiskId(VDiskId) })] }), _jsx("div", { className: b('column'), children: _jsx(VDiskInfo, { className: b('section'), data: data }) })] }));
|
13
|
-
}
|
@@ -1,9 +0,0 @@
|
|
1
|
-
import type { PreparedStorageGroup } from '../../store/reducers/storage/types';
|
2
|
-
import type { NodesMap } from '../../types/store/nodesList';
|
3
|
-
interface PDiskGroupsProps {
|
4
|
-
data: PreparedStorageGroup[];
|
5
|
-
nodesMap?: NodesMap;
|
6
|
-
loading?: boolean;
|
7
|
-
}
|
8
|
-
export declare function PDiskGroups({ data, nodesMap, loading }: PDiskGroupsProps): import("react/jsx-runtime").JSX.Element;
|
9
|
-
export {};
|
@@ -1,20 +0,0 @@
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
2
|
-
import React from 'react';
|
3
|
-
import { ResizeableDataTable } from '../../components/ResizeableDataTable/ResizeableDataTable';
|
4
|
-
import { TableSkeleton } from '../../components/TableSkeleton/TableSkeleton';
|
5
|
-
import { DEFAULT_TABLE_SETTINGS } from '../../utils/constants';
|
6
|
-
import { STORAGE_GROUPS_COLUMNS_WIDTH_LS_KEY, getPDiskStorageColumns, } from '../Storage/StorageGroups/getStorageGroupsColumns';
|
7
|
-
import { pDiskPageKeyset } from './i18n';
|
8
|
-
import { pdiskPageCn } from './shared';
|
9
|
-
export function PDiskGroups({ data, nodesMap, loading }) {
|
10
|
-
const pDiskStorageColumns = React.useMemo(() => {
|
11
|
-
return getPDiskStorageColumns(nodesMap);
|
12
|
-
}, [nodesMap]);
|
13
|
-
const renderContent = () => {
|
14
|
-
if (loading) {
|
15
|
-
return _jsx(TableSkeleton, {});
|
16
|
-
}
|
17
|
-
return (_jsx(ResizeableDataTable, { columnsWidthLSKey: STORAGE_GROUPS_COLUMNS_WIDTH_LS_KEY, data: data, columns: pDiskStorageColumns, settings: DEFAULT_TABLE_SETTINGS }));
|
18
|
-
};
|
19
|
-
return (_jsxs(React.Fragment, { children: [_jsx("div", { className: pdiskPageCn('groups-title'), children: pDiskPageKeyset('groups') }), _jsx("div", { children: renderContent() })] }));
|
20
|
-
}
|
@@ -1,5 +0,0 @@
|
|
1
|
-
export declare const olapApi: import("@reduxjs/toolkit/query").Api<import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("./api")._NEVER, unknown, {}>, {
|
2
|
-
getOlapStats: import("@reduxjs/toolkit/query").QueryDefinition<{
|
3
|
-
path?: string;
|
4
|
-
} | undefined, import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("./api")._NEVER, unknown, {}>, "All", import("../../types/store/query").IQueryResult | undefined, "api">;
|
5
|
-
}, "api", "All", typeof import("@reduxjs/toolkit/query").coreModuleName | typeof import("@reduxjs/toolkit/query/react").reactHooksModuleName>;
|
@@ -1,31 +0,0 @@
|
|
1
|
-
import { isQueryErrorResponse, parseQueryAPIExecuteResponse } from '../../utils/query';
|
2
|
-
import { api } from './api';
|
3
|
-
function createOlatStatsQuery(path) {
|
4
|
-
return `SELECT * FROM \`${path}/.sys/primary_index_stats\``;
|
5
|
-
}
|
6
|
-
const queryAction = 'execute-scan';
|
7
|
-
export const olapApi = api.injectEndpoints({
|
8
|
-
endpoints: (build) => ({
|
9
|
-
getOlapStats: build.query({
|
10
|
-
queryFn: async ({ path = '' } = {}, { signal }) => {
|
11
|
-
try {
|
12
|
-
const response = await window.api.sendQuery({
|
13
|
-
schema: 'modern',
|
14
|
-
query: createOlatStatsQuery(path),
|
15
|
-
database: path,
|
16
|
-
action: queryAction,
|
17
|
-
}, { signal });
|
18
|
-
if (isQueryErrorResponse(response)) {
|
19
|
-
return { error: response };
|
20
|
-
}
|
21
|
-
return { data: parseQueryAPIExecuteResponse(response) };
|
22
|
-
}
|
23
|
-
catch (error) {
|
24
|
-
return { error: error || new Error('Unauthorized') };
|
25
|
-
}
|
26
|
-
},
|
27
|
-
providesTags: ['All'],
|
28
|
-
}),
|
29
|
-
}),
|
30
|
-
overrideExisting: 'throw',
|
31
|
-
});
|
@@ -1,5 +0,0 @@
|
|
1
|
-
export declare const topQueriesApi: import("@reduxjs/toolkit/query").Api<import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("../../api")._NEVER, unknown, {}>, {
|
2
|
-
getOverviewTopQueries: import("@reduxjs/toolkit/query").QueryDefinition<{
|
3
|
-
database: string;
|
4
|
-
}, import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("../../api")._NEVER, unknown, {}>, "All", import("../../../../types/store/query").IQueryResult | undefined, "api">;
|
5
|
-
}, "api", "All", typeof import("@reduxjs/toolkit/query").coreModuleName | typeof import("@reduxjs/toolkit/query/react").reactHooksModuleName>;
|
@@ -1,38 +0,0 @@
|
|
1
|
-
import { TENANT_OVERVIEW_TABLES_LIMIT } from '../../../../utils/constants';
|
2
|
-
import { isQueryErrorResponse, parseQueryAPIExecuteResponse } from '../../../../utils/query';
|
3
|
-
import { api } from '../../api';
|
4
|
-
const getQueryText = (path) => {
|
5
|
-
return `
|
6
|
-
SELECT
|
7
|
-
CPUTime as CPUTimeUs,
|
8
|
-
QueryText,
|
9
|
-
FROM \`${path}/.sys/top_queries_by_cpu_time_one_hour\`
|
10
|
-
ORDER BY CPUTimeUs DESC
|
11
|
-
LIMIT ${TENANT_OVERVIEW_TABLES_LIMIT}
|
12
|
-
`;
|
13
|
-
};
|
14
|
-
export const topQueriesApi = api.injectEndpoints({
|
15
|
-
endpoints: (builder) => ({
|
16
|
-
getOverviewTopQueries: builder.query({
|
17
|
-
queryFn: async ({ database }, { signal }) => {
|
18
|
-
try {
|
19
|
-
const response = await window.api.sendQuery({
|
20
|
-
schema: 'modern',
|
21
|
-
query: getQueryText(database),
|
22
|
-
database,
|
23
|
-
action: 'execute-scan',
|
24
|
-
}, { signal });
|
25
|
-
if (isQueryErrorResponse(response)) {
|
26
|
-
return { error: response };
|
27
|
-
}
|
28
|
-
return { data: parseQueryAPIExecuteResponse(response) };
|
29
|
-
}
|
30
|
-
catch (error) {
|
31
|
-
return { error: error || new Error('Unauthorized') };
|
32
|
-
}
|
33
|
-
},
|
34
|
-
providesTags: ['All'],
|
35
|
-
}),
|
36
|
-
}),
|
37
|
-
overrideExisting: 'throw',
|
38
|
-
});
|
@@ -1 +0,0 @@
|
|
1
|
-
export declare function registerLanguages(): void;
|
@@ -1 +0,0 @@
|
|
1
|
-
export declare const LANGUAGE_S_EXPRESSION_ID = "s-expression";
|
@@ -1 +0,0 @@
|
|
1
|
-
export const LANGUAGE_S_EXPRESSION_ID = 's-expression';
|
@@ -1 +0,0 @@
|
|
1
|
-
export declare function registerSExpressionLanguage(): void;
|
@@ -1,59 +0,0 @@
|
|
1
|
-
import * as monaco from 'monaco-editor';
|
2
|
-
import { LANGUAGE_S_EXPRESSION_ID } from './constants';
|
3
|
-
export function registerSExpressionLanguage() {
|
4
|
-
monaco.languages.register({ id: LANGUAGE_S_EXPRESSION_ID });
|
5
|
-
monaco.languages.setMonarchTokensProvider(LANGUAGE_S_EXPRESSION_ID, {
|
6
|
-
defaultToken: 'text',
|
7
|
-
ignoreCase: true,
|
8
|
-
tokenPostfix: '.yql',
|
9
|
-
brackets: [
|
10
|
-
{ open: '[', close: ']', token: 'delimiter.square' },
|
11
|
-
{ open: '(', close: ')', token: 'delimiter.parenthesis' },
|
12
|
-
{ open: '{', close: '}', token: 'delimiter.curly' },
|
13
|
-
],
|
14
|
-
keywordControl: 'bind|block|declare|export|import|lambda|let|quote|return'.split('|'),
|
15
|
-
escapes: /\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,
|
16
|
-
tokenizer: {
|
17
|
-
root: [
|
18
|
-
{ include: '@whitespace' },
|
19
|
-
{ include: '@comment' },
|
20
|
-
[/(#)((?:\w|[\\+-=<>'"&#])+)/, ['delimiter', 'constant']],
|
21
|
-
[
|
22
|
-
/(?:\b(?:(defun|defmethod|defmacro))\b)(\s+)((?:\w|-|\?)*)/,
|
23
|
-
['type.function', 'text', 'entity.name'],
|
24
|
-
],
|
25
|
-
[/(\*)(\S*)(\*)/, ['delimiter', 'variable', 'delimiter']],
|
26
|
-
{ include: '@strings' },
|
27
|
-
[/'[^#\s)(]+/, 'variable.parameter'],
|
28
|
-
[/[(){}[\]]/, '@brackets'],
|
29
|
-
// identifiers and keywords
|
30
|
-
[
|
31
|
-
/(?:(?:<=?|>=?|==|!=|[-+*/%])|[a-zA-Z][a-zA-Z0-9!]*)/,
|
32
|
-
{
|
33
|
-
cases: {
|
34
|
-
'@keywordControl': { token: 'keyword.operator' },
|
35
|
-
'@default': 'identifier',
|
36
|
-
},
|
37
|
-
},
|
38
|
-
],
|
39
|
-
],
|
40
|
-
whitespace: [[/\s+/, 'white']],
|
41
|
-
comment: [[/#.*/, 'comment']],
|
42
|
-
strings: [
|
43
|
-
[/'?"(?=.)/, { token: 'string', next: '@qqstring' }],
|
44
|
-
[/'?[@]{2}/, { token: 'string', next: '@multiline' }],
|
45
|
-
[/'?x"(?:[0-9A-Fa-f]{2})*"/, 'string'],
|
46
|
-
],
|
47
|
-
qqstring: [
|
48
|
-
[/\\(?:[0-3][0-7][0-7]|x[0-9A-Fa-f]{2}|["tnrbfav\\])/, 'string.escape'],
|
49
|
-
[/[^"\\]+/, 'string'],
|
50
|
-
[/"|$/, { token: 'string', next: '@pop' }],
|
51
|
-
],
|
52
|
-
multiline: [
|
53
|
-
[/[^@]+/, 'string'],
|
54
|
-
[/[@]{2}/, { token: 'string', next: '@pop' }],
|
55
|
-
[/./, { token: 'string' }],
|
56
|
-
],
|
57
|
-
},
|
58
|
-
});
|
59
|
-
}
|
@@ -1 +0,0 @@
|
|
1
|
-
export declare function registerYqlLanguage(): void;
|
@@ -1,8 +0,0 @@
|
|
1
|
-
import * as monaco from 'monaco-editor';
|
2
|
-
import { LANGUAGE_YQL_ID } from './constants';
|
3
|
-
import { conf, getLanguage } from './yql';
|
4
|
-
export function registerYqlLanguage() {
|
5
|
-
monaco.languages.register({ id: LANGUAGE_YQL_ID });
|
6
|
-
monaco.languages.setMonarchTokensProvider(LANGUAGE_YQL_ID, getLanguage());
|
7
|
-
monaco.languages.setLanguageConfiguration(LANGUAGE_YQL_ID, conf);
|
8
|
-
}
|
@@ -1,7 +0,0 @@
|
|
1
|
-
import type * as monaco from 'monaco-editor';
|
2
|
-
export declare const conf: monaco.languages.LanguageConfiguration;
|
3
|
-
interface LanguageOptions {
|
4
|
-
ansi?: boolean;
|
5
|
-
}
|
6
|
-
export declare function getLanguage({ ansi, }?: LanguageOptions): monaco.languages.IMonarchLanguage & Record<string, unknown>;
|
7
|
-
export {};
|
@@ -1,180 +0,0 @@
|
|
1
|
-
import { builtinFunctions, keywords, typeKeywords } from './yql.keywords';
|
2
|
-
export const conf = {
|
3
|
-
comments: {
|
4
|
-
lineComment: '--',
|
5
|
-
blockComment: ['/*', '*/'],
|
6
|
-
},
|
7
|
-
brackets: [
|
8
|
-
['{', '}'],
|
9
|
-
['[', ']'],
|
10
|
-
['(', ')'],
|
11
|
-
],
|
12
|
-
autoClosingPairs: [
|
13
|
-
{ open: '{', close: '}' },
|
14
|
-
{ open: '[', close: ']' },
|
15
|
-
{ open: '(', close: ')' },
|
16
|
-
{ open: '"', close: '"' },
|
17
|
-
{ open: "'", close: "'" },
|
18
|
-
{ open: '`', close: '`' },
|
19
|
-
],
|
20
|
-
surroundingPairs: [
|
21
|
-
{ open: '{', close: '}' },
|
22
|
-
{ open: '[', close: ']' },
|
23
|
-
{ open: '(', close: ')' },
|
24
|
-
{ open: '"', close: '"' },
|
25
|
-
{ open: "'", close: "'" },
|
26
|
-
{ open: '`', close: '`' },
|
27
|
-
],
|
28
|
-
wordPattern: /(-?\d*\.\d\w*)|([^`~!@#%^&*()\-=+[{\]}\\|;:'",./?\s]+)/g,
|
29
|
-
};
|
30
|
-
export function getLanguage({ ansi = false, } = {}) {
|
31
|
-
return {
|
32
|
-
defaultToken: 'text',
|
33
|
-
ignoreCase: true,
|
34
|
-
brackets: [
|
35
|
-
{ open: '[', close: ']', token: 'delimiter.square' },
|
36
|
-
{ open: '(', close: ')', token: 'delimiter.parenthesis' },
|
37
|
-
{ open: '{', close: '}', token: 'delimiter.curly' },
|
38
|
-
],
|
39
|
-
keywords,
|
40
|
-
typeKeywords,
|
41
|
-
constants: ['true', 'false'],
|
42
|
-
builtinFunctions,
|
43
|
-
operators: [
|
44
|
-
'+',
|
45
|
-
'-',
|
46
|
-
'/',
|
47
|
-
'//',
|
48
|
-
'%',
|
49
|
-
'<@>',
|
50
|
-
'@>',
|
51
|
-
'<@',
|
52
|
-
'&',
|
53
|
-
'^',
|
54
|
-
'~',
|
55
|
-
'<',
|
56
|
-
'>',
|
57
|
-
'<=',
|
58
|
-
'>=',
|
59
|
-
'=>',
|
60
|
-
'==',
|
61
|
-
'!=',
|
62
|
-
'<>',
|
63
|
-
'=',
|
64
|
-
],
|
65
|
-
symbols: /[=><!~?:&|+\-*/^%]+/,
|
66
|
-
escapes: /\\(?:[abfnrtv\\"'`]|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,
|
67
|
-
variables: /[a-zA-Z_]\w*/,
|
68
|
-
tokenizer: {
|
69
|
-
root: [
|
70
|
-
{ include: '@whitespace' },
|
71
|
-
{ include: '@comments' },
|
72
|
-
{ include: '@numbers' },
|
73
|
-
{ include: '@tablePath' },
|
74
|
-
{ include: '@strings' },
|
75
|
-
// support function
|
76
|
-
[/(@variables)::(@variables)/, 'support.function'],
|
77
|
-
[/[;,.]/, 'delimiter'],
|
78
|
-
[/[(){}[\]]/, '@brackets'],
|
79
|
-
// identifiers and keywords
|
80
|
-
[
|
81
|
-
/@?[a-zA-Z_$]\w*/,
|
82
|
-
{
|
83
|
-
cases: {
|
84
|
-
'@keywords': 'keyword',
|
85
|
-
'@typeKeywords': 'keyword.type',
|
86
|
-
'@constants': 'constant.yql',
|
87
|
-
'@builtinFunctions': 'constant.other.color',
|
88
|
-
'[$@][a-zA-Z_]\\w*': 'variable',
|
89
|
-
'@default': 'identifier',
|
90
|
-
},
|
91
|
-
},
|
92
|
-
],
|
93
|
-
[
|
94
|
-
/@symbols/,
|
95
|
-
{
|
96
|
-
cases: {
|
97
|
-
'@operators': 'operator.sql',
|
98
|
-
'@default': '',
|
99
|
-
},
|
100
|
-
},
|
101
|
-
],
|
102
|
-
],
|
103
|
-
whitespace: [[/\s+/, 'white']],
|
104
|
-
comments: [
|
105
|
-
[/--.*/, 'comment'],
|
106
|
-
[/\/\*/, { token: 'comment.quote', next: ansi ? '@commentAnsi' : '@comment' }],
|
107
|
-
],
|
108
|
-
comment: [
|
109
|
-
[/[^*/]+/, 'comment'],
|
110
|
-
[/\*\//, { token: 'comment.quote', next: '@pop' }],
|
111
|
-
[/./, 'comment'],
|
112
|
-
],
|
113
|
-
commentAnsi: [
|
114
|
-
[/\/\*/, { token: 'comment.quote', next: '@comment' }],
|
115
|
-
[/[^*/]+/, 'comment'],
|
116
|
-
[/\*\//, { token: 'comment.quote', next: '@pop' }],
|
117
|
-
[/./, 'comment'],
|
118
|
-
],
|
119
|
-
numbers: [
|
120
|
-
[/[+-]?\d+(?:(?:\.\d*)?(?:[eE][+-]?\d+)?)?f?\b/, 'number.float'],
|
121
|
-
[/[+-]?(?:\d+|0b[01]+|0o[0-8]+|0x[\da-f]+)(?:u?[lst]?)?\b/, 'number'],
|
122
|
-
],
|
123
|
-
strings: [
|
124
|
-
[/'/, { token: 'string', next: ansi ? '@stringAnsiSingle' : '@stringSingle' }],
|
125
|
-
[/"/, { token: 'string', next: ansi ? '@stringAnsiDouble' : '@stringDouble' }],
|
126
|
-
[/[@]{2}/, { token: 'string', next: '@multilineString' }],
|
127
|
-
],
|
128
|
-
stringSingle: [
|
129
|
-
[/[^\\']+/, 'string'],
|
130
|
-
[/@escapes/, 'string.escape'],
|
131
|
-
[/\\./, 'string.escape.invalid'],
|
132
|
-
[/'[uyj]?/, { token: 'string', next: '@pop' }],
|
133
|
-
],
|
134
|
-
stringAnsiSingle: [
|
135
|
-
[/[^']+/, 'string'],
|
136
|
-
[/''/, 'string'],
|
137
|
-
[/'[uyj]?/, { token: 'string', next: '@pop' }],
|
138
|
-
],
|
139
|
-
stringDouble: [
|
140
|
-
[/[^\\"]+/, 'string'],
|
141
|
-
[/@escapes/, 'string.escape'],
|
142
|
-
[/\\./, 'string.escape.invalid'],
|
143
|
-
[/"[uyj]?/, { token: 'string', next: '@pop' }],
|
144
|
-
],
|
145
|
-
stringAnsiDouble: [
|
146
|
-
[/[^"]+/, 'string'],
|
147
|
-
[/""/, 'string'],
|
148
|
-
[/"[uyj]?/, { token: 'string', next: '@pop' }],
|
149
|
-
],
|
150
|
-
multilineString: [
|
151
|
-
[
|
152
|
-
/#py/,
|
153
|
-
{ token: 'string.python', nextEmbedded: 'python', next: '@embedded', goBack: 3 },
|
154
|
-
],
|
155
|
-
[
|
156
|
-
/\/\/js/,
|
157
|
-
{ token: 'string.js', nextEmbedded: 'javascript', next: '@embedded', goBack: 4 },
|
158
|
-
],
|
159
|
-
[/[^@]+/, 'string'],
|
160
|
-
[/[@]{4}/, 'string'],
|
161
|
-
[/[@]{2}[uyj]?/, { token: 'string', next: '@pop' }],
|
162
|
-
[/./, 'string'],
|
163
|
-
],
|
164
|
-
embedded: [
|
165
|
-
[
|
166
|
-
/([^@]|^)([@]{4})*[@]{2}([@]([^@]|$)|[^@]|$)/,
|
167
|
-
{ token: '@rematch', next: '@pop', nextEmbedded: '@pop' },
|
168
|
-
],
|
169
|
-
],
|
170
|
-
tablePath: [[/((`)?[\w/]+\2\s*\.\s*)?`/, { token: 'string.tablepath', next: '@table' }]],
|
171
|
-
table: [
|
172
|
-
[/[^\\`]+/, 'string.tablepath'],
|
173
|
-
[/``/, 'string.tablepath'],
|
174
|
-
[/@escapes/, 'string.escape.tablepath'],
|
175
|
-
[/\\./, 'string.escape.invalid.tablepath'],
|
176
|
-
[/`/, { token: 'string.tablepath', next: '@pop' }],
|
177
|
-
],
|
178
|
-
},
|
179
|
-
};
|
180
|
-
}
|
@@ -1,3 +0,0 @@
|
|
1
|
-
export const keywords = '$row|$rows|action|all|and|any|as|asc|assume|begin|bernoulli|between|by|case|columns|commit|compact|create|cross|cube|declare|define|delete|desc|dict|discard|distinct|do|drop|else|empty_action|end|erase|evaluate|exclusion|exists|export|flatten|for|from|full|group|grouping|having|if|ignore|ilike|import|in|inner|insert|into|is|join|left|like|limit|list|match|not|null|nulls|offset|on|only|optional|or|order|over|partition|pragma|presort|process|reduce|regexp|repeatable|replace|respect|result|return|right|rlike|rollup|sample|schema|select|semi|set|sets|stream|subquery|table|tablesample|then|truncate|union|update|upsert|use|using|values|view|when|where|window|with|without|xor'.split('|');
|
2
|
-
export const typeKeywords = 'bool|date|datetime|decimal|double|float|int16|int32|int64|int8|interval|json|string|timestamp|tzdate|tzdatetime|tztimestamp|uint16|uint32|uint64|uint8|utf8|uuid|yson'.split('|');
|
3
|
-
export const builtinFunctions = 'abs|aggregate_by|aggregate_list|aggregate_list_distinct|agg_list|agg_list_distinct|as_table|avg|avg_if|adaptivedistancehistogram|adaptivewardhistogram|adaptiveweighthistogram|addmember|addtimezone|aggregateflatten|aggregatetransforminput|aggregatetransformoutput|aggregationfactory|asatom|asdict|asdictstrict|asenum|aslist|asliststrict|asset|assetstrict|asstruct|astagged|astuple|asvariant|atomcode|bitcast|bit_and|bit_or|bit_xor|bool_and|bool_or|bool_xor|bottom|bottom_by|blockwardhistogram|blockweighthistogram|cast|coalesce|concat|concat_strict|correlation|count|count_if|covariance|covariance_population|covariance_sample|callableargument|callableargumenttype|callableresulttype|callabletype|callabletypecomponents|callabletypehandle|choosemembers|combinemembers|countdistinctestimate|currentauthenticateduser|currentoperationid|currentoperationsharedid|currenttzdate|currenttzdatetime|currenttztimestamp|currentutcdate|currentutcdatetime|currentutctimestamp|dense_rank|datatype|datatypecomponents|datatypehandle|dictaggregate|dictcontains|dictcreate|dicthasitems|dictitems|dictkeytype|dictkeys|dictlength|dictlookup|dictpayloadtype|dictpayloads|dicttype|dicttypecomponents|dicttypehandle|each|each_strict|emptydicttype|emptydicttypehandle|emptylisttype|emptylisttypehandle|endswith|ensure|ensureconvertibleto|ensuretype|enum|evaluateatom|evaluatecode|evaluateexpr|evaluatetype|expandstruct|filter|filter_strict|find|first_value|folder|filecontent|filepath|flattenmembers|forceremovemember|forceremovemembers|forcerenamemembers|forcespreadmembers|formatcode|formattype|frombytes|funccode|greatest|grouping|gathermembers|generictype|histogram|hll|hyperloglog|if|if_strict|instanceof|json_exists|json_query|json_value|jointablerow|just|lag|last_value|lead|least|len|length|like|likely|like_strict|lambdaargumentscount|lambdacode|linearhistogram|listaggregate|listall|listany|listavg|listcode|listcollect|listconcat|listcreate|listdistinct|listenumerate|listextend|listextendstrict|listextract|listfilter|listflatmap|listflatten|listfromrange|listhas|listhasitems|listhead|listindexof|listitemtype|listlast|listlength|listmap|listmax|listmin|listnotnull|listreplicate|listreverse|listskip|listskipwhile|listskipwhileinclusive|listsort|listsortasc|listsortdesc|listsum|listtake|listtakewhile|listtakewhileinclusive|listtype|listtypehandle|listunionall|listuniq|listzip|listzipall|loghistogram|logarithmichistogram|max|max_by|max_of|median|min|min_by|min_of|mode|multi_aggregate_by|nanvl|nvl|nothing|nulltype|nulltypehandle|optionalitemtype|optionaltype|optionaltypehandle|percentile|parsefile|parsetype|parsetypehandle|pickle|quotecode|range|range_strict|rank|regexp|regexp_strict|rfind|row_number|random|randomnumber|randomuuid|removemember|removemembers|removetimezone|renamemembers|replacemember|reprcode|resourcetype|resourcetypehandle|resourcetypetag|some|stddev|stddev_population|stddev_sample|substring|sum|sum_if|sessionstart|sessionwindow|setcreate|setdifference|setincludes|setintersection|setisdisjoint|setsymmetricdifference|setunion|spreadmembers|stablepickle|startswith|staticmap|streamitemtype|streamtype|streamtypehandle|structmembertype|structmembers|structtypecomponents|structtypehandle|subqueryextend|subqueryextendfor|subquerymerge|subquerymergefor|subqueryunionall|subqueryunionallfor|subqueryunionmerge|subqueryunionmergefor|top|topfreq|top_by|tablename|tablepath|tablerecordindex|tablerow|taggedtype|taggedtypecomponents|taggedtypehandle|tobytes|todict|tomultidict|toset|tosorteddict|tosortedmultidict|trymember|tupleelementtype|tupletype|tupletypecomponents|tupletypehandle|typehandle|typekind|typeof|udaf|unittype|unpickle|untag|unwrap|variance|variance_population|variance_sample|variant|varianttype|varianttypehandle|variantunderlyingtype|voidtype|voidtypehandle|way|worldcode'.split('|');
|