ydb-embedded-ui 8.2.1 → 8.3.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/components/Table/Table.scss +4 -4
- package/dist/components/TruncatedQuery/TruncatedQuery.d.ts +0 -4
- package/dist/components/TruncatedQuery/TruncatedQuery.js +3 -6
- package/dist/components/TruncatedQuery/TruncatedQuery.js.map +1 -1
- package/dist/components/TruncatedQuery/TruncatedQuery.scss +0 -8
- package/dist/components/YqlHighlighter/YqlHighlighter.d.ts +6 -0
- package/dist/components/YqlHighlighter/YqlHighlighter.js +13 -0
- package/dist/components/YqlHighlighter/YqlHighlighter.js.map +1 -0
- package/dist/components/YqlHighlighter/yql.d.ts +3215 -0
- package/dist/components/YqlHighlighter/yql.js +158 -0
- package/dist/components/YqlHighlighter/yql.js.map +1 -0
- package/dist/containers/Tenant/Diagnostics/TopQueries/columns/columns.js +3 -2
- package/dist/containers/Tenant/Diagnostics/TopQueries/columns/columns.js.map +1 -1
- package/dist/containers/Tenant/Info/View/View.js +2 -2
- package/dist/containers/Tenant/Info/View/View.js.map +1 -1
- package/package.json +4 -2
@@ -0,0 +1,158 @@
|
|
1
|
+
import { builtinFunctions, keywords, typeKeywords, } from 'monaco-yql-languages/build/yql/yql.keywords';
|
2
|
+
import { vscDarkPlus as darkTheme, materialLight as lightTheme, } from 'react-syntax-highlighter/dist/esm/styles/prism';
|
3
|
+
export const light = {
|
4
|
+
...lightTheme,
|
5
|
+
'pre[class*="language-"]': {
|
6
|
+
...lightTheme['pre[class*="language-"]'],
|
7
|
+
background: 'transparent',
|
8
|
+
margin: 0,
|
9
|
+
},
|
10
|
+
'code[class*="language-"]': {
|
11
|
+
...lightTheme['code[class*="language-"]'],
|
12
|
+
background: 'transparent',
|
13
|
+
color: 'var(--g-color-text-primary)',
|
14
|
+
whiteSpace: 'pre-wrap',
|
15
|
+
},
|
16
|
+
comment: {
|
17
|
+
color: '#969896',
|
18
|
+
},
|
19
|
+
string: {
|
20
|
+
color: '#a31515',
|
21
|
+
},
|
22
|
+
tablepath: {
|
23
|
+
color: '#338186',
|
24
|
+
},
|
25
|
+
function: {
|
26
|
+
color: '#7a3e9d',
|
27
|
+
},
|
28
|
+
udf: {
|
29
|
+
color: '#7a3e9d',
|
30
|
+
},
|
31
|
+
type: {
|
32
|
+
color: '#4d932d',
|
33
|
+
},
|
34
|
+
boolean: {
|
35
|
+
color: '#608b4e',
|
36
|
+
},
|
37
|
+
constant: {
|
38
|
+
color: '#608b4e',
|
39
|
+
},
|
40
|
+
variable: {
|
41
|
+
color: '#001188',
|
42
|
+
},
|
43
|
+
};
|
44
|
+
export const dark = {
|
45
|
+
...darkTheme,
|
46
|
+
'pre[class*="language-"]': {
|
47
|
+
...darkTheme['pre[class*="language-"]'],
|
48
|
+
background: 'transparent',
|
49
|
+
margin: 0,
|
50
|
+
},
|
51
|
+
'code[class*="language-"]': {
|
52
|
+
...darkTheme['code[class*="language-"]'],
|
53
|
+
background: 'transparent',
|
54
|
+
color: 'var(--g-color-text-primary)',
|
55
|
+
whiteSpace: 'pre-wrap',
|
56
|
+
},
|
57
|
+
comment: {
|
58
|
+
color: '#969896',
|
59
|
+
},
|
60
|
+
string: {
|
61
|
+
color: '#ce9178',
|
62
|
+
},
|
63
|
+
tablepath: {
|
64
|
+
color: '#338186',
|
65
|
+
},
|
66
|
+
function: {
|
67
|
+
color: '#9e7bb0',
|
68
|
+
},
|
69
|
+
udf: {
|
70
|
+
color: '#9e7bb0',
|
71
|
+
},
|
72
|
+
type: {
|
73
|
+
color: '#6A8759',
|
74
|
+
},
|
75
|
+
boolean: {
|
76
|
+
color: '#608b4e',
|
77
|
+
},
|
78
|
+
constant: {
|
79
|
+
color: '#608b4e',
|
80
|
+
},
|
81
|
+
variable: {
|
82
|
+
color: '#74b0df',
|
83
|
+
},
|
84
|
+
};
|
85
|
+
export function yql(Prism) {
|
86
|
+
// Define YQL language
|
87
|
+
Prism.languages.yql = {
|
88
|
+
comment: [
|
89
|
+
{
|
90
|
+
pattern: /--.*$/m,
|
91
|
+
greedy: true,
|
92
|
+
},
|
93
|
+
{
|
94
|
+
pattern: /\/\*[\s\S]*?(?:\*\/|$)/,
|
95
|
+
greedy: true,
|
96
|
+
},
|
97
|
+
],
|
98
|
+
tablepath: {
|
99
|
+
pattern: /(`[\w/]+`\s*\.\s*)?`[^`]+`/,
|
100
|
+
greedy: true,
|
101
|
+
},
|
102
|
+
string: [
|
103
|
+
{
|
104
|
+
pattern: /'(?:\\[\s\S]|[^\\'])*'/,
|
105
|
+
greedy: true,
|
106
|
+
},
|
107
|
+
{
|
108
|
+
pattern: /"(?:\\[\s\S]|[^\\"])*"/,
|
109
|
+
greedy: true,
|
110
|
+
},
|
111
|
+
{
|
112
|
+
pattern: /@@(?:[^@]|@(?!@))*@@/,
|
113
|
+
greedy: true,
|
114
|
+
},
|
115
|
+
],
|
116
|
+
variable: [
|
117
|
+
{
|
118
|
+
pattern: /\$[a-zA-Z_]\w*/,
|
119
|
+
greedy: true,
|
120
|
+
},
|
121
|
+
],
|
122
|
+
function: {
|
123
|
+
pattern: new RegExp(`\\b(?:${builtinFunctions.join('|')})\\b`, 'i'),
|
124
|
+
greedy: true,
|
125
|
+
},
|
126
|
+
keyword: {
|
127
|
+
pattern: new RegExp(`\\b(?:${keywords.join('|')})\\b`, 'i'),
|
128
|
+
greedy: true,
|
129
|
+
},
|
130
|
+
udf: {
|
131
|
+
pattern: /[A-Za-z_]\w*::[A-Za-z_]\w*/,
|
132
|
+
greedy: true,
|
133
|
+
},
|
134
|
+
type: {
|
135
|
+
pattern: new RegExp(`\\b(?:${typeKeywords.join('|')})\\b`, 'i'),
|
136
|
+
greedy: true,
|
137
|
+
},
|
138
|
+
boolean: {
|
139
|
+
pattern: /\b(?:true|false|null)\b/i,
|
140
|
+
greedy: true,
|
141
|
+
},
|
142
|
+
number: {
|
143
|
+
pattern: /[+-]?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?/i,
|
144
|
+
greedy: true,
|
145
|
+
},
|
146
|
+
operator: {
|
147
|
+
pattern: /[-+*/%<>!=&|^~]+|\b(?:and|or|not|is|like|ilike|rlike|in|between)\b/i,
|
148
|
+
greedy: true,
|
149
|
+
},
|
150
|
+
punctuation: {
|
151
|
+
pattern: /[;[\](){}.,]/,
|
152
|
+
greedy: true,
|
153
|
+
},
|
154
|
+
};
|
155
|
+
}
|
156
|
+
yql.displayName = 'yql';
|
157
|
+
yql.aliases = ['yql'];
|
158
|
+
//# sourceMappingURL=yql.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"yql.js","sourceRoot":"","sources":["../../../src/components/YqlHighlighter/yql.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,gBAAgB,EAChB,QAAQ,EACR,YAAY,GACf,MAAM,6CAA6C,CAAC;AACrD,OAAO,EACH,WAAW,IAAI,SAAS,EACxB,aAAa,IAAI,UAAU,GAC9B,MAAM,gDAAgD,CAAC;AAExD,MAAM,CAAC,MAAM,KAAK,GAAG;IACjB,GAAG,UAAU;IACb,yBAAyB,EAAE;QACvB,GAAG,UAAU,CAAC,yBAAyB,CAAC;QACxC,UAAU,EAAE,aAAa;QACzB,MAAM,EAAE,CAAC;KACZ;IACD,0BAA0B,EAAE;QACxB,GAAG,UAAU,CAAC,0BAA0B,CAAC;QACzC,UAAU,EAAE,aAAa;QACzB,KAAK,EAAE,6BAA6B;QACpC,UAAU,EAAE,UAAmB;KAClC;IACD,OAAO,EAAE;QACL,KAAK,EAAE,SAAS;KACnB;IACD,MAAM,EAAE;QACJ,KAAK,EAAE,SAAS;KACnB;IACD,SAAS,EAAE;QACP,KAAK,EAAE,SAAS;KACnB;IACD,QAAQ,EAAE;QACN,KAAK,EAAE,SAAS;KACnB;IACD,GAAG,EAAE;QACD,KAAK,EAAE,SAAS;KACnB;IACD,IAAI,EAAE;QACF,KAAK,EAAE,SAAS;KACnB;IACD,OAAO,EAAE;QACL,KAAK,EAAE,SAAS;KACnB;IACD,QAAQ,EAAE;QACN,KAAK,EAAE,SAAS;KACnB;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E,IAAI;aACf;YACD;gBACI,OAAO,EAAE,sBAAsB;gBAC/B,MAAM,EAAE,IAAI;aACf;SACJ;QACD,QAAQ,EAAE;YACN;gBACI,OAAO,EAAE,gBAAgB;gBACzB,MAAM,EAAE,IAAI;aACf;SACJ;QACD,QAAQ,EAAE;YACN,OAAO,EAAE,IAAI,MAAM,CAAC,SAAS,gBAAgB,CAAC,IAAI,CAAC,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC;YACnE,MAAM,EAAE,IAAI;SACf;QACD,OAAO,EAAE;YACL,OAAO,EAAE,IAAI,MAAM,CAAC,SAAS,QAAQ,CAAC,IAAI,CAAC,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC;YAC3D,MAAM,EAAE,IAAI;SACf;QACD,GAAG,EAAE;YACD,OAAO,EAAE,4BAA4B;YACrC,MAAM,EAAE,IAAI;SACf;QACD,IAAI,EAAE;YACF,OAAO,EAAE,IAAI,MAAM,CAAC,SAAS,YAAY,CAAC,IAAI,CAAC,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC;YAC/D,MAAM,EAAE,IAAI;SACf;QACD,OAAO,EAAE;YACL,OAAO,EAAE,0BAA0B;YACnC,MAAM,EAAE,IAAI;SACf;QACD,MAAM,EAAE;YACJ,OAAO,EAAE,6CAA6C;YACtD,MAAM,EAAE,IAAI;SACf;QACD,QAAQ,EAAE;YACN,OAAO,EAAE,qEAAqE;YAC9E,MAAM,EAAE,IAAI;SACf;QACD,WAAW,EAAE;YACT,OAAO,EAAE,cAAc;YACvB,MAAM,EAAE,IAAI;SACf;KACJ,CAAC;AACN,CAAC;AAED,GAAG,CAAC,WAAW,GAAG,KAAK,CAAC;AACxB,GAAG,CAAC,OAAO,GAAG,CAAC,KAAK,CAAa,CAAC"}
|
@@ -1,6 +1,7 @@
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
2
2
|
import DataTable from '@gravity-ui/react-data-table';
|
3
|
-
import {
|
3
|
+
import { TruncatedQuery } from '../../../../../components/TruncatedQuery/TruncatedQuery';
|
4
|
+
import { YqlHighlighter } from '../../../../../components/YqlHighlighter/YqlHighlighter';
|
4
5
|
import { cn } from '../../../../../utils/cn';
|
5
6
|
import { formatDateTime, formatNumber } from '../../../../../utils/dataFormatters/dataFormatters';
|
6
7
|
import { generateHash } from '../../../../../utils/generateHash';
|
@@ -62,7 +63,7 @@ const userSIDColumn = {
|
|
62
63
|
const oneLineQueryTextColumn = {
|
63
64
|
name: TOP_QUERIES_COLUMNS_IDS.OneLineQueryText,
|
64
65
|
header: TOP_QUERIES_COLUMNS_TITLES.OneLineQueryText,
|
65
|
-
render: ({ row }) => { var _a; return _jsx(
|
66
|
+
render: ({ row }) => { var _a; return _jsx(YqlHighlighter, { children: ((_a = row.QueryText) === null || _a === void 0 ? void 0 : _a.toString()) || '' }); },
|
66
67
|
sortable: false,
|
67
68
|
width: 500,
|
68
69
|
};
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"columns.js","sourceRoot":"","sources":["../../../../../../src/containers/Tenant/Diagnostics/TopQueries/columns/columns.tsx"],"names":[],"mappings":";AAAA,OAAO,SAAS,MAAM,8BAA8B,CAAC;AAGrD,OAAO,
|
1
|
+
{"version":3,"file":"columns.js","sourceRoot":"","sources":["../../../../../../src/containers/Tenant/Diagnostics/TopQueries/columns/columns.tsx"],"names":[],"mappings":";AAAA,OAAO,SAAS,MAAM,8BAA8B,CAAC;AAGrD,OAAO,EAAC,cAAc,EAAC,MAAM,yDAAyD,CAAC;AACvF,OAAO,EAAC,cAAc,EAAC,MAAM,yDAAyD,CAAC;AAEvF,OAAO,EAAC,EAAE,EAAC,MAAM,yBAAyB,CAAC;AAC3C,OAAO,EAAC,cAAc,EAAE,YAAY,EAAC,MAAM,oDAAoD,CAAC;AAChG,OAAO,EAAC,YAAY,EAAC,MAAM,mCAAmC,CAAC;AAC/D,OAAO,EAAC,UAAU,EAAE,WAAW,EAAC,MAAM,kCAAkC,CAAC;AACzE,OAAO,EAAC,gB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AAO,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;QAC5B,GAAG,MAAM;QACT,QAAQ,EAAE,0BAA0B,CAAC,MAAM,CAAC,IAAI,CAAC;KACpD,CAAC,CAAC,CAAC;AACR,CAAC"}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
2
|
-
import { Text } from '@gravity-ui/uikit';
|
3
2
|
import { YDBDefinitionList } from '../../../../components/YDBDefinitionList/YDBDefinitionList';
|
3
|
+
import { YqlHighlighter } from '../../../../components/YqlHighlighter/YqlHighlighter';
|
4
4
|
import { getEntityName } from '../../utils';
|
5
5
|
import i18n from '../i18n';
|
6
6
|
const prepareViewItems = (data) => {
|
@@ -10,7 +10,7 @@ const prepareViewItems = (data) => {
|
|
10
10
|
{
|
11
11
|
name: i18n('view.query-text'),
|
12
12
|
copyText: queryText,
|
13
|
-
content:
|
13
|
+
content: queryText ? _jsx(YqlHighlighter, { children: queryText }) : null,
|
14
14
|
},
|
15
15
|
];
|
16
16
|
};
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"View.js","sourceRoot":"","sources":["../../../../../src/containers/Tenant/Info/View/View.tsx"],"names":[],"mappings":";
|
1
|
+
{"version":3,"file":"View.js","sourceRoot":"","sources":["../../../../../src/containers/Tenant/Info/View/View.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAC,iBAAiB,EAAC,MAAM,4DAA4D,CAAC;AAC7F,OAAO,EAAC,cAAc,EAAC,MAAM,sDAAsD,CAAC;AAEpF,OAAO,EAAC,aAAa,EAAC,MAAM,aAAa,CAAC;AAC1C,OAAO,IAAI,MAAM,SAAS,CAAC;AAE3B,MAAM,gBAAgB,GAAG,CAAC,IAA6B,EAAwB,EAAE;;IAC7E,MAAM,SAAS,GAAG,MAAA,MAAA,IAAI,CAAC,eAAe,0CAAE,eAAe,0CAAE,SAAS,CAAC;IAEnE,OAAO;QACH;YACI,IAAI,EAAE,IAAI,CAAC,iBAAiB,CAAC;YAC7B,QAAQ,EAAE,SAAS;YACnB,OAAO,EAAE,SAAS,CAAC,CAAC,CAAC,KAAC,cAAc,cAAE,SAAS,GAAkB,CAAC,CAAC,CAAC,IAAI;SAC3E;KACJ,CAAC;AACN,CAAC,CAAC;AAMF,MAAM,UAAU,QAAQ,CAAC,EAAC,IAAI,EAAgB;IAC1C,MAAM,UAAU,GAAG,aAAa,CAAC,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,eAAe,CAAC,CAAC;IAExD,IAAI,CAAC,IAAI,EAAE,CAAC;QACR,OAAO,eAAK,SAAS,EAAC,OAAO,oBAAK,UAAU,aAAY,CAAC;IAC7D,CAAC;IAED,MAAM,KAAK,GAAG,gBAAgB,CAAC,IAAI,CAAC,CAAC;IAErC,OAAO,KAAC,iBAAiB,IAAC,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,KAAK,GAAI,CAAC;AAClE,CAAC"}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "ydb-embedded-ui",
|
3
|
-
"version": "8.
|
3
|
+
"version": "8.3.0",
|
4
4
|
"files": [
|
5
5
|
"dist"
|
6
6
|
],
|
@@ -47,6 +47,7 @@
|
|
47
47
|
"react-redux": "^9.1.2",
|
48
48
|
"react-router-dom": "^5.3.4",
|
49
49
|
"react-split": "^2.0.14",
|
50
|
+
"react-syntax-highlighter": "^15.6.1",
|
50
51
|
"redux": "^5.0.1",
|
51
52
|
"redux-location-state": "^2.8.2",
|
52
53
|
"tslib": "^2.6.3",
|
@@ -136,6 +137,7 @@
|
|
136
137
|
"@types/react": "^18.3.3",
|
137
138
|
"@types/react-dom": "^18.3.0",
|
138
139
|
"@types/react-router-dom": "^5.3.3",
|
140
|
+
"@types/react-syntax-highlighter": "^15.5.13",
|
139
141
|
"@types/uuid": "^10.0.0",
|
140
142
|
"copyfiles": "^2.4.1",
|
141
143
|
"http-proxy-middleware": "^2.0.6",
|
@@ -144,7 +146,7 @@
|
|
144
146
|
"lint-staged": "^15.2.7",
|
145
147
|
"mini-css-extract-plugin": "^2.9.1",
|
146
148
|
"monaco-editor-webpack-plugin": "^7.1.0",
|
147
|
-
"monaco-yql-languages": "^1.
|
149
|
+
"monaco-yql-languages": "^1.2.1",
|
148
150
|
"npm-run-all": "^4.1.5",
|
149
151
|
"postcss": "^8.4.38",
|
150
152
|
"prettier": "^3.2.5",
|