ydb-embedded-ui 6.11.0 → 6.12.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (243) hide show
  1. package/dist/components/DateRange/DateRange.d.ts +4 -4
  2. package/dist/components/DateRange/DateRange.js +23 -26
  3. package/dist/components/DateRange/DateRange.scss +14 -13
  4. package/dist/components/DateRange/__test__/fromDateRangeValues.test.d.ts +1 -0
  5. package/dist/components/DateRange/__test__/fromDateRangeValues.test.js +80 -0
  6. package/dist/components/DateRange/__test__/getdatePickerSize.test.d.ts +1 -0
  7. package/dist/components/DateRange/__test__/getdatePickerSize.test.js +56 -0
  8. package/dist/components/DateRange/__test__/toDateRangeValues.test.d.ts +1 -0
  9. package/dist/components/DateRange/__test__/toDateRangeValues.test.js +80 -0
  10. package/dist/components/DateRange/i18n/en.json +4 -0
  11. package/dist/components/DateRange/i18n/index.d.ts +2 -0
  12. package/dist/components/DateRange/i18n/index.js +5 -0
  13. package/dist/components/DateRange/i18n/ru.json +4 -0
  14. package/dist/components/DateRange/utils.d.ts +5 -0
  15. package/dist/components/DateRange/utils.js +41 -0
  16. package/dist/components/DeveloperUILinkButton/DeveloperUILinkButton.d.ts +8 -0
  17. package/dist/components/{DeveloperUiLink/DeveloperUiLink.js → DeveloperUILinkButton/DeveloperUILinkButton.js} +3 -3
  18. package/dist/components/{DeveloperUiLink/DeveloperUiLink.scss → DeveloperUILinkButton/DeveloperUILinkButton.scss} +3 -2
  19. package/dist/components/DiskStateProgressBar/DiskStateProgressBar.d.ts +6 -1
  20. package/dist/components/DiskStateProgressBar/DiskStateProgressBar.js +22 -12
  21. package/dist/components/DiskStateProgressBar/DiskStateProgressBar.scss +45 -45
  22. package/dist/components/EntityStatus/EntityStatus.js +1 -1
  23. package/dist/components/EntityStatus/EntityStatus.scss +6 -2
  24. package/dist/components/MetricChart/reducer.d.ts +2 -2
  25. package/dist/components/MonacoEditor/MonacoEditor.js +0 -2
  26. package/dist/components/NodeHostWrapper/NodeHostWrapper.d.ts +0 -1
  27. package/dist/components/NodeHostWrapper/NodeHostWrapper.js +3 -6
  28. package/dist/components/PDiskInfo/PDiskInfo.d.ts +7 -4
  29. package/dist/components/PDiskInfo/PDiskInfo.js +73 -26
  30. package/dist/components/PDiskInfo/PDiskInfo.scss +15 -1
  31. package/dist/components/PDiskInfo/i18n/en.json +11 -5
  32. package/dist/components/PDiskInfo/i18n/index.d.ts +1 -1
  33. package/dist/components/PDiskPopup/PDiskPopup.js +8 -2
  34. package/dist/components/VDiskInfo/VDiskInfo.d.ts +3 -2
  35. package/dist/components/VDiskInfo/VDiskInfo.js +9 -4
  36. package/dist/components/VDiskInfo/VDiskInfo.scss +7 -1
  37. package/dist/components/VDiskInfo/i18n/en.json +2 -1
  38. package/dist/components/VDiskInfo/i18n/index.d.ts +1 -1
  39. package/dist/containers/Cluster/Cluster.scss +1 -4
  40. package/dist/containers/Cluster/ClusterInfo/ClusterInfo.scss +1 -1
  41. package/dist/containers/Heatmap/Heatmap.d.ts +2 -1
  42. package/dist/containers/Heatmap/Heatmap.js +2 -2
  43. package/dist/containers/Node/Node.scss +1 -4
  44. package/dist/containers/Node/NodeStructure/NodeStructure.scss +0 -20
  45. package/dist/containers/Node/NodeStructure/Pdisk.js +2 -2
  46. package/dist/containers/PDiskPage/PDiskGroups/PDiskGroups.d.ts +6 -0
  47. package/dist/containers/PDiskPage/PDiskGroups/PDiskGroups.js +24 -0
  48. package/dist/containers/PDiskPage/PDiskPage.js +62 -24
  49. package/dist/containers/PDiskPage/PDiskPage.scss +8 -5
  50. package/dist/containers/PDiskPage/PDiskSpaceDistribution/PDiskSpaceDistribution.d.ts +7 -0
  51. package/dist/containers/PDiskPage/PDiskSpaceDistribution/PDiskSpaceDistribution.js +93 -0
  52. package/dist/containers/PDiskPage/PDiskSpaceDistribution/PDiskSpaceDistribution.scss +52 -0
  53. package/dist/containers/PDiskPage/PDiskSpaceDistribution/utils.d.ts +4 -0
  54. package/dist/containers/PDiskPage/PDiskSpaceDistribution/utils.js +9 -0
  55. package/dist/containers/PDiskPage/i18n/en.json +8 -1
  56. package/dist/containers/PDiskPage/i18n/index.d.ts +1 -1
  57. package/dist/containers/Storage/StorageGroups/getStorageGroupsColumns.js +16 -6
  58. package/dist/containers/Tablets/Tablets.js +11 -8
  59. package/dist/containers/Tenant/Acl/Acl.d.ts +2 -1
  60. package/dist/containers/Tenant/Acl/Acl.js +10 -8
  61. package/dist/containers/Tenant/Acl/Acl.scss +8 -8
  62. package/dist/containers/Tenant/Acl/i18n/en.json +6 -0
  63. package/dist/containers/Tenant/Acl/i18n/index.d.ts +2 -0
  64. package/dist/containers/Tenant/Acl/i18n/index.js +4 -0
  65. package/dist/containers/Tenant/Diagnostics/Describe/Describe.d.ts +2 -1
  66. package/dist/containers/Tenant/Diagnostics/Describe/Describe.js +4 -4
  67. package/dist/containers/Tenant/Diagnostics/DetailedOverview/DetailedOverview.js +1 -1
  68. package/dist/containers/Tenant/Diagnostics/Diagnostics.js +3 -3
  69. package/dist/containers/Tenant/Diagnostics/Diagnostics.scss +3 -1
  70. package/dist/containers/Tenant/Diagnostics/HotKeys/HotKeys.d.ts +2 -1
  71. package/dist/containers/Tenant/Diagnostics/HotKeys/HotKeys.js +3 -3
  72. package/dist/containers/Tenant/Diagnostics/Overview/Overview.d.ts +2 -1
  73. package/dist/containers/Tenant/Diagnostics/Overview/Overview.js +5 -5
  74. package/dist/containers/Tenant/Diagnostics/Overview/TableInfo/i18n/en.json +14 -1
  75. package/dist/containers/Tenant/Diagnostics/Overview/TableInfo/i18n/index.d.ts +1 -1
  76. package/dist/containers/Tenant/Diagnostics/Overview/TableInfo/i18n/index.js +1 -2
  77. package/dist/containers/Tenant/Diagnostics/Overview/TableInfo/prepareTableInfo.js +36 -17
  78. package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/TopQueries.js +8 -5
  79. package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantOverview.js +1 -1
  80. package/dist/containers/Tenant/Diagnostics/TenantOverview/getSectionTitle.d.ts +2 -1
  81. package/dist/containers/Tenant/Diagnostics/TenantOverview/getSectionTitle.js +2 -2
  82. package/dist/containers/Tenant/Diagnostics/TenantOverview/i18n/en.json +3 -2
  83. package/dist/containers/Tenant/Diagnostics/TenantOverview/i18n/index.d.ts +1 -1
  84. package/dist/containers/Tenant/Diagnostics/TopQueries/TopQueries.js +2 -2
  85. package/dist/containers/Tenant/Diagnostics/TopQueries/getTopQueriesColumns.d.ts +2 -2
  86. package/dist/containers/Tenant/Diagnostics/TopQueries/getTopQueriesColumns.js +14 -14
  87. package/dist/containers/Tenant/Diagnostics/TopShards/TopShards.js +3 -3
  88. package/dist/containers/Tenant/Diagnostics/TopShards/getTopShardsColumns.js +4 -4
  89. package/dist/containers/Tenant/ObjectSummary/ObjectSummary.js +31 -18
  90. package/dist/containers/Tenant/Query/ExplainResult/ExplainResult.js +2 -2
  91. package/dist/containers/Tenant/Query/QueryEditor/QueryEditor.js +8 -3
  92. package/dist/containers/Tenant/Query/QueryEditorControls/QueryEditorControls.d.ts +2 -1
  93. package/dist/containers/Tenant/Query/QueryEditorControls/QueryEditorControls.js +9 -7
  94. package/dist/containers/Tenant/Query/QuerySettingsDialog/QuerySettingsDialog.d.ts +2 -0
  95. package/dist/containers/Tenant/Query/QuerySettingsDialog/QuerySettingsDialog.js +38 -0
  96. package/dist/containers/Tenant/Query/QuerySettingsDialog/QuerySettingsDialog.scss +63 -0
  97. package/dist/containers/Tenant/Query/QuerySettingsDialog/QuerySettingsSelect.d.ts +15 -0
  98. package/dist/containers/Tenant/Query/QuerySettingsDialog/QuerySettingsSelect.js +14 -0
  99. package/dist/containers/Tenant/Query/QuerySettingsDialog/QuerySettingsSelect.scss +19 -0
  100. package/dist/containers/Tenant/Query/QuerySettingsDialog/constants.d.ts +99 -0
  101. package/dist/containers/Tenant/Query/QuerySettingsDialog/constants.js +109 -0
  102. package/dist/containers/Tenant/Query/QuerySettingsDialog/i18n/en.json +13 -0
  103. package/dist/containers/Tenant/Query/QuerySettingsDialog/i18n/index.d.ts +2 -0
  104. package/dist/containers/Tenant/Query/QuerySettingsDialog/i18n/index.js +5 -0
  105. package/dist/containers/Tenant/Query/QuerySettingsDialog/i18n/ru.json +13 -0
  106. package/dist/containers/Tenant/Query/i18n/en.json +14 -0
  107. package/dist/containers/Tenant/Query/i18n/index.d.ts +1 -1
  108. package/dist/containers/Tenant/Schema/CreateDirectoryDialog/CreateDirectoryDialog.d.ts +3 -2
  109. package/dist/containers/Tenant/Schema/CreateDirectoryDialog/CreateDirectoryDialog.js +2 -2
  110. package/dist/containers/Tenant/Schema/SchemaTree/SchemaTree.js +2 -2
  111. package/dist/containers/Tenant/Schema/SchemaViewer/SchemaViewer.js +1 -1
  112. package/dist/containers/Tenant/Tenant.js +1 -1
  113. package/dist/containers/Tenant/TenantPages.d.ts +12 -1
  114. package/dist/containers/Tenant/TenantPages.js +1 -1
  115. package/dist/containers/Tenant/i18n/en.json +2 -2
  116. package/dist/containers/Tenant/i18n/index.d.ts +1 -1
  117. package/dist/containers/Tenant/utils/schema.js +1 -1
  118. package/dist/containers/Tenants/Tenants.js +1 -1
  119. package/dist/containers/Tenants/Tenants.scss +0 -4
  120. package/dist/containers/UserSettings/i18n/en.json +2 -0
  121. package/dist/containers/UserSettings/i18n/index.d.ts +1 -1
  122. package/dist/containers/UserSettings/settings.d.ts +1 -0
  123. package/dist/containers/UserSettings/settings.js +6 -1
  124. package/dist/routes.js +2 -2
  125. package/dist/services/api.d.ts +39 -21
  126. package/dist/services/api.js +45 -56
  127. package/dist/services/settings.d.ts +1 -0
  128. package/dist/services/settings.js +2 -1
  129. package/dist/store/configureStore.d.ts +4 -4
  130. package/dist/store/defaultStore.d.ts +2 -2
  131. package/dist/store/reducers/api.d.ts +1 -1
  132. package/dist/store/reducers/api.js +1 -1
  133. package/dist/store/reducers/cluster/cluster.d.ts +2 -2
  134. package/dist/store/reducers/clusterNodes/clusterNodes.d.ts +2 -2
  135. package/dist/store/reducers/clusters/clusters.d.ts +2 -2
  136. package/dist/store/reducers/describe.d.ts +5 -2
  137. package/dist/store/reducers/describe.js +2 -2
  138. package/dist/store/reducers/executeQuery.d.ts +2 -2
  139. package/dist/store/reducers/executeTopQueries/executeTopQueries.d.ts +2 -2
  140. package/dist/store/reducers/executeTopQueries/executeTopQueries.js +19 -14
  141. package/dist/store/reducers/executeTopQueries/types.d.ts +2 -2
  142. package/dist/store/reducers/executeTopQueries/utils.js +11 -7
  143. package/dist/store/reducers/explainQuery/explainQuery.d.ts +2 -2
  144. package/dist/store/reducers/explainQuery/explainQuery.js +6 -1
  145. package/dist/store/reducers/healthcheckInfo/healthcheckInfo.d.ts +58 -58
  146. package/dist/store/reducers/heatmap.d.ts +2 -2
  147. package/dist/store/reducers/heatmap.js +3 -3
  148. package/dist/store/reducers/hotKeys/hotKeys.d.ts +3 -2
  149. package/dist/store/reducers/hotKeys/hotKeys.js +3 -3
  150. package/dist/store/reducers/index.d.ts +3 -3
  151. package/dist/store/reducers/network/network.d.ts +2 -2
  152. package/dist/store/reducers/network/network.js +1 -1
  153. package/dist/store/reducers/node/node.d.ts +3 -3
  154. package/dist/store/reducers/node/selectors.d.ts +1 -1
  155. package/dist/store/reducers/node/selectors.js +2 -2
  156. package/dist/store/reducers/nodes/nodes.d.ts +3 -3
  157. package/dist/store/reducers/nodesList.d.ts +3 -3
  158. package/dist/store/reducers/overview/overview.d.ts +5 -2
  159. package/dist/store/reducers/overview/overview.js +2 -2
  160. package/dist/store/reducers/partitions/partitions.d.ts +2 -2
  161. package/dist/store/reducers/pdisk/pdisk.d.ts +3 -3
  162. package/dist/store/reducers/pdisk/pdisk.js +15 -2
  163. package/dist/store/reducers/pdisk/types.d.ts +17 -1
  164. package/dist/store/reducers/pdisk/utils.d.ts +2 -2
  165. package/dist/store/reducers/pdisk/utils.js +68 -8
  166. package/dist/store/reducers/preview.d.ts +2 -2
  167. package/dist/store/reducers/preview.js +1 -1
  168. package/dist/store/reducers/queryActions/types.d.ts +1 -1
  169. package/dist/store/reducers/schema/schema.d.ts +28 -10
  170. package/dist/store/reducers/schema/schema.js +11 -12
  171. package/dist/store/reducers/schemaAcl/schemaAcl.d.ts +4 -2
  172. package/dist/store/reducers/schemaAcl/schemaAcl.js +9 -3
  173. package/dist/store/reducers/shardsWorkload/shardsWorkload.d.ts +2 -2
  174. package/dist/store/reducers/shardsWorkload/shardsWorkload.js +22 -6
  175. package/dist/store/reducers/shardsWorkload/types.d.ts +2 -2
  176. package/dist/store/reducers/storage/storage.d.ts +3 -3
  177. package/dist/store/reducers/tablet.d.ts +3 -3
  178. package/dist/store/reducers/tablets.d.ts +13 -13
  179. package/dist/store/reducers/tabletsFilters.d.ts +1 -1
  180. package/dist/store/reducers/tenant/tenant.d.ts +2 -2
  181. package/dist/store/reducers/tenantOverview/executeTopTables/executeTopTables.d.ts +2 -2
  182. package/dist/store/reducers/tenantOverview/executeTopTables/executeTopTables.js +1 -1
  183. package/dist/store/reducers/tenantOverview/topNodes/topNodes.d.ts +2 -2
  184. package/dist/store/reducers/tenantOverview/topShards/tenantOverviewTopShards.d.ts +2 -2
  185. package/dist/store/reducers/tenantOverview/topShards/tenantOverviewTopShards.js +1 -1
  186. package/dist/store/reducers/tenantOverview/topStorageGroups/topStorageGroups.d.ts +2 -2
  187. package/dist/store/reducers/tenants/selectors.d.ts +27 -27
  188. package/dist/store/reducers/tenants/tenants.d.ts +2 -2
  189. package/dist/store/reducers/topic.d.ts +44 -44
  190. package/dist/store/reducers/vdisk/vdisk.d.ts +2 -2
  191. package/dist/store/reducers/vdisk/vdisk.js +1 -1
  192. package/dist/store/reducers/viewSchema/viewSchema.d.ts +2 -2
  193. package/dist/store/reducers/viewSchema/viewSchema.js +1 -1
  194. package/dist/store/state-url-mapping.d.ts +70 -0
  195. package/dist/store/state-url-mapping.js +1 -5
  196. package/dist/styles/mixins.scss +11 -0
  197. package/dist/types/api/acl.d.ts +1 -0
  198. package/dist/types/api/pdisk.d.ts +65 -2
  199. package/dist/types/api/vdisk.d.ts +33 -2
  200. package/dist/types/common.d.ts +3 -0
  201. package/dist/types/store/heatmap.d.ts +1 -0
  202. package/dist/types/store/query.d.ts +4 -1
  203. package/dist/utils/constants.d.ts +1 -0
  204. package/dist/utils/constants.js +1 -0
  205. package/dist/utils/dataFormatters/dataFormatters.d.ts +0 -4
  206. package/dist/utils/dataFormatters/dataFormatters.js +2 -8
  207. package/dist/utils/developerUI/developerUI.d.ts +1 -0
  208. package/dist/utils/developerUI/developerUI.js +3 -0
  209. package/dist/utils/disks/getPDiskType.d.ts +3 -3
  210. package/dist/utils/disks/helpers.d.ts +1 -0
  211. package/dist/utils/disks/helpers.js +3 -0
  212. package/dist/utils/disks/prepareDisks.d.ts +2 -2
  213. package/dist/utils/disks/prepareDisks.js +17 -22
  214. package/dist/utils/disks/types.d.ts +7 -5
  215. package/dist/utils/monaco/constats.d.ts +2 -0
  216. package/dist/utils/monaco/constats.js +2 -0
  217. package/dist/utils/monaco/yql/constants.d.ts +0 -1
  218. package/dist/utils/monaco/yql/constants.js +0 -1
  219. package/dist/utils/monaco/yql/yql.completionItemProvider.js +2 -2
  220. package/dist/utils/query.d.ts +24 -1
  221. package/dist/utils/query.js +40 -0
  222. package/package.json +5 -1
  223. package/dist/components/DeveloperUiLink/DeveloperUiLink.d.ts +0 -8
  224. package/dist/components/NodeHostWrapper/NodeHostWrapper.scss +0 -15
  225. package/dist/containers/Node/NodeStructure/Vdisk.d.ts +0 -6
  226. package/dist/containers/Node/NodeStructure/Vdisk.js +0 -13
  227. package/dist/containers/PDiskPage/PDiskGroups.d.ts +0 -9
  228. package/dist/containers/PDiskPage/PDiskGroups.js +0 -20
  229. package/dist/containers/Tenant/Diagnostics/Overview/TableInfo/i18n/ru.json +0 -5
  230. package/dist/store/reducers/tenantOverview/topQueries/tenantOverviewTopQueries.d.ts +0 -5
  231. package/dist/store/reducers/tenantOverview/topQueries/tenantOverviewTopQueries.js +0 -38
  232. package/dist/utils/monaco/index.d.ts +0 -1
  233. package/dist/utils/monaco/index.js +0 -6
  234. package/dist/utils/monaco/s-expression/constants.d.ts +0 -1
  235. package/dist/utils/monaco/s-expression/constants.js +0 -1
  236. package/dist/utils/monaco/s-expression/registerLanguage.d.ts +0 -1
  237. package/dist/utils/monaco/s-expression/registerLanguage.js +0 -59
  238. package/dist/utils/monaco/yql/registerLanguage.d.ts +0 -1
  239. package/dist/utils/monaco/yql/registerLanguage.js +0 -8
  240. package/dist/utils/monaco/yql/yql.d.ts +0 -7
  241. package/dist/utils/monaco/yql/yql.js +0 -180
  242. package/dist/utils/monaco/yql/yql.keywords.d.ts +0 -3
  243. package/dist/utils/monaco/yql/yql.keywords.js +0 -3
@@ -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.11.0",
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,8 +0,0 @@
1
- import './DeveloperUiLink.scss';
2
- interface DeveloperUiLinkProps {
3
- className?: string;
4
- visible?: boolean;
5
- href: string;
6
- }
7
- export declare function DeveloperUiLink({ href, visible, className }: DeveloperUiLinkProps): import("react/jsx-runtime").JSX.Element;
8
- export {};
@@ -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,6 +0,0 @@
1
- import type { PreparedStructureVDisk } from '../../../store/reducers/node/types';
2
- interface VDiskProps {
3
- data: PreparedStructureVDisk;
4
- }
5
- export declare function Vdisk({ data }: VDiskProps): import("react/jsx-runtime").JSX.Element;
6
- export {};
@@ -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
- {
2
- "tableStats": "Статистика таблицы",
3
- "tabletMetrics": "Метрики таблетки",
4
- "partitionConfig": "Конфигурация партиции"
5
- }
@@ -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,6 +0,0 @@
1
- import { registerSExpressionLanguage } from './s-expression/registerLanguage';
2
- import { registerYqlLanguage } from './yql/registerLanguage';
3
- export function registerLanguages() {
4
- registerSExpressionLanguage();
5
- registerYqlLanguage();
6
- }
@@ -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 declare const keywords: string[];
2
- export declare const typeKeywords: string[];
3
- export declare const builtinFunctions: string[];
@@ -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('|');