ydb-embedded-ui 7.1.0 → 8.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (328) hide show
  1. package/dist/components/Graph/Graph.d.ts +1 -2
  2. package/dist/components/Graph/Graph.js +1 -1
  3. package/dist/components/Graph/Graph.js.map +1 -1
  4. package/dist/components/JSONTree/JSONTree.d.ts +9 -0
  5. package/dist/components/JSONTree/JSONTree.js +23 -0
  6. package/dist/components/JSONTree/JSONTree.js.map +1 -0
  7. package/dist/components/JSONTree/JSONTree.scss +20 -0
  8. package/dist/components/JSONTree/i18n/en.json +4 -0
  9. package/dist/components/JSONTree/i18n/index.d.ts +2 -0
  10. package/dist/components/JSONTree/i18n/index.js +5 -0
  11. package/dist/components/JSONTree/i18n/index.js.map +1 -0
  12. package/dist/components/MemoryViewer/MemoryViewer.scss +1 -1
  13. package/dist/components/Table/Table.d.ts +13 -0
  14. package/dist/components/Table/Table.js +21 -0
  15. package/dist/components/Table/Table.js.map +1 -0
  16. package/dist/components/Table/Table.scss +60 -0
  17. package/dist/components/TooltipsContent/TabletTooltipContent/TabletTooltipContent.js +2 -2
  18. package/dist/components/TooltipsContent/TabletTooltipContent/TabletTooltipContent.js.map +1 -1
  19. package/dist/components/nodesColumns/columns.js +1 -1
  20. package/dist/components/nodesColumns/constants.js +1 -1
  21. package/dist/components/nodesColumns/constants.js.map +1 -1
  22. package/dist/containers/Cluster/Cluster.js +2 -2
  23. package/dist/containers/Cluster/Cluster.js.map +1 -1
  24. package/dist/containers/Cluster/ClusterInfo/ClusterInfo.js +24 -8
  25. package/dist/containers/Cluster/ClusterInfo/ClusterInfo.js.map +1 -1
  26. package/dist/containers/Cluster/ClusterInfo/ClusterInfo.scss +7 -26
  27. package/dist/containers/Cluster/ClusterInfo/utils.d.ts +2 -4
  28. package/dist/containers/Cluster/ClusterInfo/utils.js +2 -19
  29. package/dist/containers/Cluster/ClusterInfo/utils.js.map +1 -1
  30. package/dist/containers/Cluster/i18n/en.json +3 -1
  31. package/dist/containers/Cluster/i18n/index.d.ts +1 -1
  32. package/dist/containers/Clusters/columns.js +5 -2
  33. package/dist/containers/Clusters/columns.js.map +1 -1
  34. package/dist/containers/Node/Node.d.ts +0 -1
  35. package/dist/containers/Node/Node.js +5 -3
  36. package/dist/containers/Node/Node.js.map +1 -1
  37. package/dist/containers/Operations/Operations.js +2 -1
  38. package/dist/containers/Operations/Operations.js.map +1 -1
  39. package/dist/containers/PDiskPage/PDiskPage.js +5 -2
  40. package/dist/containers/PDiskPage/PDiskPage.js.map +1 -1
  41. package/dist/containers/ReduxTooltip/ReduxTooltip.scss +0 -30
  42. package/dist/containers/Storage/PaginatedStorage.d.ts +1 -1
  43. package/dist/containers/Storage/StorageGroups/columns/hooks.d.ts +0 -2
  44. package/dist/containers/Storage/StorageGroups/columns/hooks.js +2 -5
  45. package/dist/containers/Storage/StorageGroups/columns/hooks.js.map +1 -1
  46. package/dist/containers/Storage/StorageGroups/columns/types.d.ts +2 -2
  47. package/dist/containers/Storage/StorageNodes/PaginatedStorageNodesTable.d.ts +1 -0
  48. package/dist/containers/Storage/StorageNodes/PaginatedStorageNodesTable.js +5 -2
  49. package/dist/containers/Storage/StorageNodes/PaginatedStorageNodesTable.js.map +1 -1
  50. package/dist/containers/Storage/StorageNodes/columns/types.d.ts +1 -1
  51. package/dist/containers/Storage/StorageVisibleEntitiesFilter/StorageVisibleEntitiesFilter.d.ts +0 -5
  52. package/dist/containers/Storage/StorageVisibleEntitiesFilter/StorageVisibleEntitiesFilter.js +1 -1
  53. package/dist/containers/Storage/StorageVisibleEntitiesFilter/StorageVisibleEntitiesFilter.js.map +1 -1
  54. package/dist/containers/Storage/utils/index.d.ts +3 -6
  55. package/dist/containers/Storage/utils/index.js +7 -34
  56. package/dist/containers/Storage/utils/index.js.map +1 -1
  57. package/dist/containers/StorageGroupPage/StorageGroupPage.js +4 -2
  58. package/dist/containers/StorageGroupPage/StorageGroupPage.js.map +1 -1
  59. package/dist/containers/Tablet/Tablet.d.ts +0 -1
  60. package/dist/containers/Tablet/Tablet.js +1 -1
  61. package/dist/containers/Tablet/Tablet.js.map +1 -1
  62. package/dist/containers/Tablet/components/TabletInfo/TabletInfo.js +5 -2
  63. package/dist/containers/Tablet/components/TabletInfo/TabletInfo.js.map +1 -1
  64. package/dist/containers/Tablet/components/TabletInfo/i18n/index.d.ts +1 -1
  65. package/dist/containers/Tablet/components/TabletStorageInfo/TabletStorageInfo.js +3 -14
  66. package/dist/containers/Tablet/components/TabletStorageInfo/TabletStorageInfo.js.map +1 -1
  67. package/dist/containers/Tablet/components/TabletStorageInfo/TabletStorageInfo.scss +0 -51
  68. package/dist/containers/Tablet/components/TabletStorageInfo/columns.js +6 -8
  69. package/dist/containers/Tablet/components/TabletStorageInfo/columns.js.map +1 -1
  70. package/dist/containers/Tablet/components/TabletTable/TabletTable.js +2 -2
  71. package/dist/containers/Tablet/components/TabletTable/TabletTable.js.map +1 -1
  72. package/dist/containers/Tablets/TabletsTable.js +2 -2
  73. package/dist/containers/Tablets/TabletsTable.js.map +1 -1
  74. package/dist/containers/Tenant/Diagnostics/Configs/i18n/index.d.ts +1 -1
  75. package/dist/containers/Tenant/Diagnostics/Describe/Describe.d.ts +0 -1
  76. package/dist/containers/Tenant/Diagnostics/Describe/Describe.js +2 -5
  77. package/dist/containers/Tenant/Diagnostics/Describe/Describe.js.map +1 -1
  78. package/dist/containers/Tenant/Diagnostics/Describe/Describe.scss +1 -9
  79. package/dist/containers/Tenant/Diagnostics/Diagnostics.js +2 -2
  80. package/dist/containers/Tenant/Diagnostics/Diagnostics.js.map +1 -1
  81. package/dist/containers/Tenant/Diagnostics/DiagnosticsPages.d.ts +0 -163
  82. package/dist/containers/Tenant/Diagnostics/DiagnosticsPages.js +10 -10
  83. package/dist/containers/Tenant/Diagnostics/DiagnosticsPages.js.map +1 -1
  84. package/dist/containers/Tenant/Diagnostics/TenantOverview/Healthcheck/IssuesViewer/IssueTree.js +2 -2
  85. package/dist/containers/Tenant/Diagnostics/TenantOverview/Healthcheck/IssuesViewer/IssueTree.js.map +1 -1
  86. package/dist/containers/Tenant/Diagnostics/TenantOverview/Healthcheck/IssuesViewer/IssueTree.scss +0 -2
  87. package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/TopNodesByCpu.d.ts +0 -5
  88. package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/TopNodesByCpu.js +1 -1
  89. package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/TopNodesByCpu.js.map +1 -1
  90. package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/TopQueries.js +5 -2
  91. package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/TopQueries.js.map +1 -1
  92. package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/TopShards.js +2 -1
  93. package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/TopShards.js.map +1 -1
  94. package/dist/containers/Tenant/Diagnostics/TopQueries/RunningQueriesData.js +11 -4
  95. package/dist/containers/Tenant/Diagnostics/TopQueries/RunningQueriesData.js.map +1 -1
  96. package/dist/containers/Tenant/Diagnostics/TopQueries/TopQueriesData.js +11 -10
  97. package/dist/containers/Tenant/Diagnostics/TopQueries/TopQueriesData.js.map +1 -1
  98. package/dist/containers/Tenant/Diagnostics/TopQueries/columns/columns.d.ts +105 -0
  99. package/dist/containers/Tenant/Diagnostics/TopQueries/{getTopQueriesColumns.js → columns/columns.js} +53 -44
  100. package/dist/containers/Tenant/Diagnostics/TopQueries/columns/columns.js.map +1 -0
  101. package/dist/containers/Tenant/Diagnostics/TopQueries/columns/constants.d.ts +21 -0
  102. package/dist/containers/Tenant/Diagnostics/TopQueries/columns/constants.js +71 -0
  103. package/dist/containers/Tenant/Diagnostics/TopQueries/columns/constants.js.map +1 -0
  104. package/dist/containers/Tenant/Diagnostics/TopQueries/columns/i18n/en.json +12 -0
  105. package/dist/containers/Tenant/Diagnostics/TopQueries/columns/i18n/index.d.ts +2 -0
  106. package/dist/containers/Tenant/Diagnostics/TopQueries/columns/i18n/index.js +5 -0
  107. package/dist/containers/Tenant/Diagnostics/TopQueries/columns/i18n/index.js.map +1 -0
  108. package/dist/containers/Tenant/Diagnostics/TopQueries/i18n/en.json +1 -5
  109. package/dist/containers/Tenant/Diagnostics/TopQueries/i18n/index.d.ts +1 -1
  110. package/dist/containers/Tenant/Diagnostics/TopQueries/utils.d.ts +12 -0
  111. package/dist/containers/Tenant/Diagnostics/TopQueries/utils.js +28 -0
  112. package/dist/containers/Tenant/Diagnostics/TopQueries/utils.js.map +1 -0
  113. package/dist/containers/Tenant/Diagnostics/TopShards/TopShards.js +9 -34
  114. package/dist/containers/Tenant/Diagnostics/TopShards/TopShards.js.map +1 -1
  115. package/dist/containers/Tenant/Diagnostics/TopShards/{getTopShardsColumns.d.ts → columns/columns.d.ts} +1 -2
  116. package/dist/containers/Tenant/Diagnostics/TopShards/{getTopShardsColumns.js → columns/columns.js} +16 -36
  117. package/dist/containers/Tenant/Diagnostics/TopShards/columns/columns.js.map +1 -0
  118. package/dist/containers/Tenant/Diagnostics/TopShards/columns/constants.d.ts +17 -0
  119. package/dist/containers/Tenant/Diagnostics/TopShards/columns/constants.js +55 -0
  120. package/dist/containers/Tenant/Diagnostics/TopShards/columns/constants.js.map +1 -0
  121. package/dist/containers/Tenant/Diagnostics/TopShards/columns/i18n/en.json +10 -0
  122. package/dist/containers/Tenant/Diagnostics/TopShards/columns/i18n/index.d.ts +2 -0
  123. package/dist/containers/Tenant/Diagnostics/TopShards/columns/i18n/index.js +5 -0
  124. package/dist/containers/Tenant/Diagnostics/TopShards/columns/i18n/index.js.map +1 -0
  125. package/dist/containers/Tenant/Diagnostics/TopShards/utils.d.ts +5 -0
  126. package/dist/containers/Tenant/Diagnostics/TopShards/utils.js +17 -0
  127. package/dist/containers/Tenant/Diagnostics/TopShards/utils.js.map +1 -0
  128. package/dist/containers/Tenant/Query/Issues/models.d.ts +2 -2
  129. package/dist/containers/Tenant/Query/Issues/models.js +2 -2
  130. package/dist/containers/Tenant/Query/Issues/models.js.map +1 -1
  131. package/dist/containers/Tenant/Query/QueryEditor/helpers.d.ts +0 -1
  132. package/dist/containers/Tenant/Query/QueryEditor/helpers.js +1 -1
  133. package/dist/containers/Tenant/Query/QueryEditor/helpers.js.map +1 -1
  134. package/dist/containers/Tenant/Query/QueryResult/components/PlanToSvgButton/PlanToSvgButton.js +49 -8
  135. package/dist/containers/Tenant/Query/QueryResult/components/PlanToSvgButton/PlanToSvgButton.js.map +1 -1
  136. package/dist/containers/Tenant/Query/QueryResult/components/QueryJSONViewer/QueryJSONViewer.d.ts +0 -1
  137. package/dist/containers/Tenant/Query/QueryResult/components/QueryJSONViewer/QueryJSONViewer.js +2 -5
  138. package/dist/containers/Tenant/Query/QueryResult/components/QueryJSONViewer/QueryJSONViewer.js.map +1 -1
  139. package/dist/containers/Tenant/Query/QueryResult/components/QueryJSONViewer/QueryJSONViewer.scss +0 -3
  140. package/dist/containers/Tenant/Query/QueryResult/components/SimplifiedPlan/OperationCell.js +1 -1
  141. package/dist/containers/Tenant/Query/QueryResult/components/SimplifiedPlan/OperationCell.js.map +1 -1
  142. package/dist/containers/Tenant/Query/QueryResult/components/SimplifiedPlan/SimplifiedPlan.js +16 -25
  143. package/dist/containers/Tenant/Query/QueryResult/components/SimplifiedPlan/SimplifiedPlan.js.map +1 -1
  144. package/dist/containers/Tenant/Query/QueryResult/components/SimplifiedPlan/SimplifiedPlan.scss +3 -53
  145. package/dist/containers/Tenant/Query/QueryResult/i18n/en.json +2 -1
  146. package/dist/containers/Tenant/Query/QueryResult/i18n/index.d.ts +1 -1
  147. package/dist/containers/Tenant/Query/QuerySettingsDialog/constants.d.ts +0 -104
  148. package/dist/containers/Tenant/Query/QuerySettingsDialog/constants.js +4 -4
  149. package/dist/containers/Tenant/Query/QuerySettingsDialog/constants.js.map +1 -1
  150. package/dist/containers/Tenant/Schema/SchemaViewer/columns.d.ts +0 -12
  151. package/dist/containers/Tenant/Schema/SchemaViewer/columns.js +1 -1
  152. package/dist/containers/Tenant/Schema/SchemaViewer/columns.js.map +1 -1
  153. package/dist/containers/Tenant/Schema/SchemaViewer/prepareData.d.ts +1 -2
  154. package/dist/containers/Tenant/Schema/SchemaViewer/prepareData.js +1 -1
  155. package/dist/containers/Tenant/Schema/SchemaViewer/prepareData.js.map +1 -1
  156. package/dist/containers/Tenant/utils/schema.d.ts +0 -1
  157. package/dist/containers/Tenant/utils/schema.js +0 -18
  158. package/dist/containers/Tenant/utils/schema.js.map +1 -1
  159. package/dist/containers/UserSettings/i18n/en.json +1 -3
  160. package/dist/containers/UserSettings/i18n/index.d.ts +1 -1
  161. package/dist/containers/UserSettings/settings.d.ts +0 -1
  162. package/dist/containers/UserSettings/settings.js +2 -7
  163. package/dist/containers/UserSettings/settings.js.map +1 -1
  164. package/dist/containers/VDiskPage/VDiskPage.js +7 -2
  165. package/dist/containers/VDiskPage/VDiskPage.js.map +1 -1
  166. package/dist/containers/Versions/GroupedNodesTree/GroupedNodesTree.d.ts +0 -1
  167. package/dist/containers/Versions/GroupedNodesTree/GroupedNodesTree.js +1 -1
  168. package/dist/containers/Versions/GroupedNodesTree/GroupedNodesTree.js.map +1 -1
  169. package/dist/lib.d.ts +2 -2
  170. package/dist/lib.js +1 -1
  171. package/dist/lib.js.map +1 -1
  172. package/dist/routes.d.ts +2 -2
  173. package/dist/services/settings.d.ts +1 -1
  174. package/dist/services/settings.js +2 -2
  175. package/dist/services/settings.js.map +1 -1
  176. package/dist/store/reducers/cluster/cluster.d.ts +2 -164
  177. package/dist/store/reducers/cluster/cluster.js +1 -1
  178. package/dist/store/reducers/cluster/cluster.js.map +1 -1
  179. package/dist/store/reducers/cluster/types.d.ts +2 -6
  180. package/dist/store/reducers/executeTopQueries/executeTopQueries.d.ts +8 -8
  181. package/dist/store/reducers/executeTopQueries/executeTopQueries.js +10 -7
  182. package/dist/store/reducers/executeTopQueries/executeTopQueries.js.map +1 -1
  183. package/dist/store/reducers/executeTopQueries/types.d.ts +0 -3
  184. package/dist/store/reducers/healthcheckInfo/healthcheckInfo.d.ts +0 -195
  185. package/dist/store/reducers/healthcheckInfo/healthcheckInfo.js +1 -1
  186. package/dist/store/reducers/healthcheckInfo/healthcheckInfo.js.map +1 -1
  187. package/dist/store/reducers/nodes/types.d.ts +1 -6
  188. package/dist/store/reducers/query/types.d.ts +2 -1
  189. package/dist/store/reducers/schema/schema.d.ts +0 -6
  190. package/dist/store/reducers/schema/schema.js +1 -1
  191. package/dist/store/reducers/schema/schema.js.map +1 -1
  192. package/dist/store/reducers/shardsWorkload/shardsWorkload.d.ts +1 -4
  193. package/dist/store/reducers/shardsWorkload/shardsWorkload.js +3 -5
  194. package/dist/store/reducers/shardsWorkload/shardsWorkload.js.map +1 -1
  195. package/dist/store/reducers/shardsWorkload/types.d.ts +0 -3
  196. package/dist/store/reducers/storage/types.d.ts +1 -6
  197. package/dist/store/reducers/storage/types.js.map +1 -1
  198. package/dist/store/reducers/storage/utils.d.ts +2 -5
  199. package/dist/store/reducers/storage/utils.js +3 -3
  200. package/dist/store/reducers/storage/utils.js.map +1 -1
  201. package/dist/store/reducers/tableSchemaData.d.ts +2 -1
  202. package/dist/store/reducers/tablets.d.ts +0 -131
  203. package/dist/store/reducers/tablets.js +1 -1
  204. package/dist/store/reducers/tablets.js.map +1 -1
  205. package/dist/store/reducers/tenants/utils.d.ts +0 -11
  206. package/dist/store/reducers/tenants/utils.js +1 -14
  207. package/dist/store/reducers/tenants/utils.js.map +1 -1
  208. package/dist/store/reducers/tooltip.d.ts +1 -1
  209. package/dist/store/reducers/tooltip.js +1 -1
  210. package/dist/store/reducers/vdisk/types.d.ts +0 -2
  211. package/dist/types/additionalProps.d.ts +2 -2
  212. package/dist/types/api/error.d.ts +1 -1
  213. package/dist/types/api/meta.d.ts +1 -0
  214. package/dist/types/components.d.ts +5 -0
  215. package/dist/types/components.js +2 -0
  216. package/dist/types/components.js.map +1 -0
  217. package/dist/types/index.d.ts +0 -1
  218. package/dist/types/index.js.map +1 -1
  219. package/dist/types/store/tablet.d.ts +1 -8
  220. package/dist/types/store/tablets.d.ts +0 -8
  221. package/dist/types/store/tooltip.d.ts +2 -4
  222. package/dist/utils/constants.d.ts +1 -38
  223. package/dist/utils/constants.js +2 -28
  224. package/dist/utils/constants.js.map +1 -1
  225. package/dist/utils/dataFormatters/__test__/formatUptime.test.d.ts +1 -0
  226. package/dist/utils/dataFormatters/__test__/formatUptime.test.js +56 -0
  227. package/dist/utils/dataFormatters/__test__/formatUptime.test.js.map +1 -0
  228. package/dist/utils/dataFormatters/dataFormatters.d.ts +8 -4
  229. package/dist/utils/dataFormatters/dataFormatters.js +51 -21
  230. package/dist/utils/dataFormatters/dataFormatters.js.map +1 -1
  231. package/dist/utils/dataFormatters/i18n/en.json +3 -1
  232. package/dist/utils/dataFormatters/i18n/index.d.ts +1 -1
  233. package/dist/utils/dataFormatters/i18n/index.js +1 -2
  234. package/dist/utils/dataFormatters/i18n/index.js.map +1 -1
  235. package/dist/utils/developerUI/developerUI.d.ts +1 -0
  236. package/dist/utils/developerUI/developerUI.js +3 -0
  237. package/dist/utils/developerUI/developerUI.js.map +1 -1
  238. package/dist/utils/errors/i18n/en.json +3 -0
  239. package/dist/utils/errors/i18n/index.d.ts +2 -0
  240. package/dist/utils/errors/i18n/index.js +5 -0
  241. package/dist/utils/errors/i18n/index.js.map +1 -0
  242. package/dist/utils/errors/index.d.ts +6 -0
  243. package/dist/utils/errors/index.js +33 -0
  244. package/dist/utils/errors/index.js.map +1 -0
  245. package/dist/utils/hooks/__test__/useTableSort.test.d.ts +1 -0
  246. package/dist/utils/hooks/__test__/useTableSort.test.js +188 -0
  247. package/dist/utils/hooks/__test__/useTableSort.test.js.map +1 -0
  248. package/dist/utils/hooks/useTableSort.d.ts +10 -5
  249. package/dist/utils/hooks/useTableSort.js +61 -16
  250. package/dist/utils/hooks/useTableSort.js.map +1 -1
  251. package/dist/utils/monitoring.d.ts +3 -2
  252. package/dist/utils/nodes.d.ts +1 -1
  253. package/dist/utils/nodes.js +10 -4
  254. package/dist/utils/nodes.js.map +1 -1
  255. package/dist/utils/tablet.d.ts +0 -2
  256. package/dist/utils/tablet.js +0 -10
  257. package/dist/utils/tablet.js.map +1 -1
  258. package/dist/utils/tooltip.d.ts +0 -4
  259. package/dist/utils/tooltip.js +1 -23
  260. package/dist/utils/tooltip.js.map +1 -1
  261. package/dist/utils/utils.d.ts +0 -1
  262. package/dist/utils/utils.js +0 -10
  263. package/dist/utils/utils.js.map +1 -1
  264. package/package.json +4 -4
  265. package/dist/components/GroupInfo/GroupInfo.d.ts +0 -7
  266. package/dist/components/GroupInfo/GroupInfo.js +0 -27
  267. package/dist/components/GroupInfo/GroupInfo.js.map +0 -1
  268. package/dist/components/GroupInfo/i18n/en.json +0 -6
  269. package/dist/components/GroupInfo/i18n/index.d.ts +0 -1
  270. package/dist/components/GroupInfo/i18n/index.js +0 -5
  271. package/dist/components/GroupInfo/i18n/index.js.map +0 -1
  272. package/dist/components/QuerySettingsDescription/index.d.ts +0 -1
  273. package/dist/components/QuerySettingsDescription/index.js +0 -2
  274. package/dist/components/QuerySettingsDescription/index.js.map +0 -1
  275. package/dist/components/Tablet/Tablet.d.ts +0 -8
  276. package/dist/components/Tablet/Tablet.js +0 -18
  277. package/dist/components/Tablet/Tablet.js.map +0 -1
  278. package/dist/components/Tablet/Tablet.scss +0 -40
  279. package/dist/components/Tablet/index.d.ts +0 -1
  280. package/dist/components/Tablet/index.js +0 -2
  281. package/dist/components/Tablet/index.js.map +0 -1
  282. package/dist/components/TabletsOverall/TabletsOverall.d.ts +0 -8
  283. package/dist/components/TabletsOverall/TabletsOverall.js +0 -69
  284. package/dist/components/TabletsOverall/TabletsOverall.js.map +0 -1
  285. package/dist/components/TabletsOverall/TabletsOverall.scss +0 -18
  286. package/dist/containers/ClusterModeGuard/index.d.ts +0 -1
  287. package/dist/containers/ClusterModeGuard/index.js +0 -2
  288. package/dist/containers/ClusterModeGuard/index.js.map +0 -1
  289. package/dist/containers/Nodes/columns/hooks.d.ts +0 -6
  290. package/dist/containers/Nodes/columns/hooks.js +0 -12
  291. package/dist/containers/Nodes/columns/hooks.js.map +0 -1
  292. package/dist/containers/Nodes/index.d.ts +0 -1
  293. package/dist/containers/Nodes/index.js +0 -2
  294. package/dist/containers/Nodes/index.js.map +0 -1
  295. package/dist/containers/PDiskPage/shared.d.ts +0 -1
  296. package/dist/containers/PDiskPage/shared.js +0 -3
  297. package/dist/containers/PDiskPage/shared.js.map +0 -1
  298. package/dist/containers/Storage/Storage.d.ts +0 -11
  299. package/dist/containers/Storage/Storage.js +0 -91
  300. package/dist/containers/Storage/Storage.js.map +0 -1
  301. package/dist/containers/Storage/StorageGroups/StorageGroupsTable.d.ts +0 -14
  302. package/dist/containers/Storage/StorageGroups/StorageGroupsTable.js +0 -14
  303. package/dist/containers/Storage/StorageGroups/StorageGroupsTable.js.map +0 -1
  304. package/dist/containers/Storage/StorageNodes/StorageNodesTable.d.ts +0 -16
  305. package/dist/containers/Storage/StorageNodes/StorageNodesTable.js +0 -22
  306. package/dist/containers/Storage/StorageNodes/StorageNodesTable.js.map +0 -1
  307. package/dist/containers/Storage/StorageNodes/shared.d.ts +0 -3
  308. package/dist/containers/Storage/StorageNodes/shared.js +0 -5
  309. package/dist/containers/Storage/StorageNodes/shared.js.map +0 -1
  310. package/dist/containers/Storage/StorageWrapper.d.ts +0 -10
  311. package/dist/containers/Storage/StorageWrapper.js +0 -20
  312. package/dist/containers/Storage/StorageWrapper.js.map +0 -1
  313. package/dist/containers/Tenant/Diagnostics/TopQueries/getTopQueriesColumns.d.ts +0 -8
  314. package/dist/containers/Tenant/Diagnostics/TopQueries/getTopQueriesColumns.js.map +0 -1
  315. package/dist/containers/Tenant/Diagnostics/TopShards/getTopShardsColumns.js.map +0 -1
  316. package/dist/store/reducers/nodes/selectors.d.ts +0 -11
  317. package/dist/store/reducers/nodes/selectors.js +0 -39
  318. package/dist/store/reducers/nodes/selectors.js.map +0 -1
  319. package/dist/store/reducers/schema/types.d.ts +0 -10
  320. package/dist/store/reducers/schema/types.js +0 -2
  321. package/dist/store/reducers/schema/types.js.map +0 -1
  322. package/dist/store/reducers/storage/selectors.d.ts +0 -4
  323. package/dist/store/reducers/storage/selectors.js +0 -37
  324. package/dist/store/reducers/storage/selectors.js.map +0 -1
  325. package/dist/utils/dataFormatters/i18n/ru.json +0 -3
  326. package/dist/utils/diagnostics.d.ts +0 -23
  327. package/dist/utils/diagnostics.js +0 -37
  328. package/dist/utils/diagnostics.js.map +0 -1
@@ -1,11 +1,10 @@
1
- import type { Data, GraphNode, Options, Shapes } from '@gravity-ui/paranoid';
1
+ import type { Data, Options, Shapes } from '@gravity-ui/paranoid';
2
2
  interface GraphProps<T> {
3
3
  data: Data<T>;
4
4
  opts?: Options;
5
5
  shapes?: Shapes;
6
6
  }
7
7
  export declare function Graph<T>(props: GraphProps<T>): import("react/jsx-runtime").JSX.Element;
8
- export declare const renderExplainNode: (node: GraphNode) => string;
9
8
  interface YDBGraphProps<T> {
10
9
  data: Data<T>;
11
10
  }
@@ -24,7 +24,7 @@ export function Graph(props) {
24
24
  }, [data, opts, shapes]);
25
25
  return _jsx("div", { id: containerId, ref: containerRef, style: { overflow: 'auto' } });
26
26
  }
27
- export const renderExplainNode = (node) => {
27
+ const renderExplainNode = (node) => {
28
28
  const parts = node.name.split('|');
29
29
  return parts.length > 1 ? parts[1] : node.name;
30
30
  };
@@ -1 +1 @@
1
- {"version":3,"file":"Graph.js","sourceRoot":"","sources":["../../../src/components/Graph/Graph.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAC,WAAW,EAAE,mBAAmB,EAAC,MAAM,sBAAsB,CAAC;AAStE,MAAM,UAAU,KAAK,CAAI,KAAoB;IACzC,MAAM,YAAY,GAAG,KAAK,CAAC,MAAM,CAAiB,IAAI,CAAC,CAAC;IACxD,MAAM,WAAW,GAAG,KAAK,CAAC,KAAK,EAAE,CAAC;IAElC,MAAM,EAAC,IAAI,E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E,MAAM,CAAC,CAAC;QAC/D,QAAQ,CAAC,MAAM,EAAE,CAAC;QAClB,SAAS,CAAC,KAAK,CAAC,WAAW,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC;QAC7C,SAAS,CAAC,KAAK,CAAC,WAAW,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC;QAC9C,OAAO,GAAG,EAAE;YACR,QAAQ,CAAC,OAAO,EAAE,CAAC;QACvB,CAAC,CAAC;IACN,CAAC,EAAE,CAAC,IAAI,EAAE,IAAI,EAAE,MAAM,CAAC,CAAC,CAAC;IAEzB,OAAO,cAAK,EAAE,EAAE,WAAW,EAAE,GAAG,EAAE,YAAY,EAAE,KAAK,EAAE,EAAC,QAAQ,EAAE,MAAM,EAAC,GAAI,CAAC;AAClF,CAAC;AAED,MAAM,iBAAiB,GAAG,CAAC,IAAe,EAAU,EAAE;IAClD,MAAM,KAAK,GAAG,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;IACnC,OAAO,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC;AACnD,CAAC,CAAC;AAEF,MAAM,aAAa,GAAY;IAC3B,eAAe,EAAE,iBAAiB;IAClC,YAAY,EAAE,QAAiB;IAC/B,qBAAqB,EAAE,IAAI;CAC9B,CAAC;AAEF,MAAM,YAAY,GAAG;IACjB,IAAI,EAAE,mBAAmB;CAC5B,CAAC;AAMF,MAAM,UAAU,QAAQ,CAAI,KAAuB;IAC/C,OAAO,KAAC,KAAK,OAAQ,KAAK,EAAE,IAAI,EAAE,aAAa,EAAE,MAAM,EAAE,YAAY,GAAI,CAAC;AAC9E,CAAC"}
@@ -0,0 +1,9 @@
1
+ import JSONTreeBase from 'react-json-inspector';
2
+ import './JSONTree.scss';
3
+ import 'react-json-inspector/json-inspector.css';
4
+ interface JSONTreeProps extends React.ComponentProps<typeof JSONTreeBase> {
5
+ search?: false;
6
+ treeClassName?: string;
7
+ }
8
+ export declare function JSONTree({ treeClassName, search, ...rest }: JSONTreeProps): import("react/jsx-runtime").JSX.Element;
9
+ export {};
@@ -0,0 +1,23 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { ActionTooltip, Button, Icon } from '@gravity-ui/uikit';
3
+ import JSONTreeBase from 'react-json-inspector';
4
+ import { cn } from '../../utils/cn';
5
+ import { CASE_SENSITIVE_JSON_SEARCH } from '../../utils/constants';
6
+ import { useSetting } from '../../utils/hooks';
7
+ import i18n from './i18n';
8
+ import FontCaseIcon from '@gravity-ui/icons/svgs/font-case.svg';
9
+ import './JSONTree.scss';
10
+ import 'react-json-inspector/json-inspector.css';
11
+ const b = cn('ydb-json-tree');
12
+ const DEBAUNCE_TIME = 300;
13
+ export function JSONTree({ treeClassName, search, ...rest }) {
14
+ const [caseSensitiveSearch, setCaseSensitiveSearch] = useSetting(CASE_SENSITIVE_JSON_SEARCH, false);
15
+ return (_jsxs("div", { className: b(), children: [_jsx(JSONTreeBase, { className: b('tree', treeClassName), filterOptions: {
16
+ ignoreCase: !caseSensitiveSearch,
17
+ }, searchOptions: {
18
+ debounceTime: DEBAUNCE_TIME,
19
+ }, ...rest }), search !== false && (_jsx(ActionTooltip, { title: caseSensitiveSearch
20
+ ? i18n('context_case-sensitive-search')
21
+ : i18n('context_case-sensitive-search-disabled'), children: _jsx(Button, { view: "outlined", className: b('case'), onClick: () => setCaseSensitiveSearch(!caseSensitiveSearch), selected: caseSensitiveSearch, children: _jsx(Icon, { data: FontCaseIcon }) }) }))] }));
22
+ }
23
+ //# sourceMappingURL=JSONTree.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"JSONTree.js","sourceRoot":"","sources":["../../../src/components/JSONTree/JSONTree.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAC,aAAa,EAAE,MAAM,EAAE,IAAI,EAAC,MAAM,mBAAmB,CAAC;AAC9D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GACG,CACnB,IACC,CACT,CAAC;AACN,CAAC"}
@@ -0,0 +1,20 @@
1
+ @use '../../styles/mixins.scss';
2
+
3
+ .ydb-json-tree {
4
+ position: relative;
5
+
6
+ width: 100%;
7
+ height: 100%;
8
+ &__tree {
9
+ @include mixins.json-tree-styles();
10
+ }
11
+ &__case {
12
+ position: absolute;
13
+ top: 0;
14
+ left: 308px;
15
+ }
16
+
17
+ .json-inspector__search {
18
+ height: 26px;
19
+ }
20
+ }
@@ -0,0 +1,4 @@
1
+ {
2
+ "context_case-sensitive-search": "Case sensitive search enadled",
3
+ "context_case-sensitive-search-disabled": "Case sensitive search disabled"
4
+ }
@@ -0,0 +1,2 @@
1
+ declare const _default: (key: "context_case-sensitive-search" | "context_case-sensitive-search-disabled", params?: import("@gravity-ui/i18n").Params) => string;
2
+ export default _default;
@@ -0,0 +1,5 @@
1
+ import { registerKeysets } from '../../../utils/i18n';
2
+ import en from './en.json';
3
+ const COMPONENT = 'ydb-json-tree';
4
+ export default registerKeysets(COMPONENT, { en });
5
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/JSONTree/i18n/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,eAAe,EAAC,MAAM,qBAAqB,CAAC;AAEpD,OAAO,EAAE,MAAM,WAAW,CAAC;AAE3B,MAAM,SAAS,GAAG,eAAe,CAAC;AAElC,eAAe,eAAe,CAAC,SAAS,EAAE,EAAC,EAAE,EAAC,CAAC,CAAC"}
@@ -3,7 +3,7 @@ $memory-type-colors: (
3
3
  'SharedCacheConsumption': var(--g-color-base-info-medium-hover),
4
4
  'MemTableConsumption': var(--g-color-base-warning-medium-hover),
5
5
  'QueryExecutionConsumption': var(--g-color-base-positive-medium-hover),
6
- 'Other': var(--g-color-base-neutral-light-hover),
6
+ 'Other': var(--g-color-base-generic-medium-hover),
7
7
  );
8
8
 
9
9
  @mixin memory-type-color($type) {
@@ -0,0 +1,13 @@
1
+ import type { BaseTableProps } from '@gravity-ui/table';
2
+ import './Table.scss';
3
+ interface TableProps<TData> extends BaseTableProps<TData> {
4
+ width?: 'max' | 'auto';
5
+ wrapperClassName?: string;
6
+ }
7
+ interface ColumnHeaderProps {
8
+ children: React.ReactNode;
9
+ className?: string;
10
+ }
11
+ export declare function ColumnHeader({ children, className }: ColumnHeaderProps): import("react/jsx-runtime").JSX.Element;
12
+ export declare function Table<TData>({ className, width, wrapperClassName, ...props }: TableProps<TData>): import("react/jsx-runtime").JSX.Element;
13
+ export {};
@@ -0,0 +1,21 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { BaseTable } from '@gravity-ui/table';
3
+ import { cn } from '../../utils/cn';
4
+ import './Table.scss';
5
+ const block = cn('ydb-table');
6
+ export function ColumnHeader({ children, className }) {
7
+ return _jsx("div", { className: block('table-header-content', className), children: children });
8
+ }
9
+ export function Table({ className, width, wrapperClassName, ...props }) {
10
+ return (_jsx("div", { className: block(null, wrapperClassName), children: _jsx(BaseTable, { headerCellClassName: ({ column }) => {
11
+ var _a;
12
+ const align = (_a = column.columnDef.meta) === null || _a === void 0 ? void 0 : _a.align;
13
+ return block('table-header-cell', { align });
14
+ }, cellClassName: (cell) => {
15
+ var _a, _b;
16
+ const align = (_a = cell === null || cell === void 0 ? void 0 : cell.column.columnDef.meta) === null || _a === void 0 ? void 0 : _a.align;
17
+ const verticalAlign = (_b = cell === null || cell === void 0 ? void 0 : cell.column.columnDef.meta) === null || _b === void 0 ? void 0 : _b.verticalAlign;
18
+ return block('table-cell', { align, 'vertical-align': verticalAlign });
19
+ }, className: block('table', { width }, className), ...props }) }));
20
+ }
21
+ //# sourceMappingURL=Table.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Table.js","sourceRoot":"","sources":["../../../src/components/Table/Table.tsx"],"names":[],"mappings":";AACA,OAAO,EAAC,SAAS,EAAC,MAAM,mBAAmB,CAAC;AAE5C,OAAO,EAAC,EAAE,EAAC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';
2
+
3
+ .ydb-table {
4
+ $block: &;
5
+ --ydb-table-cell-height: 40px;
6
+ &__table-header-content {
7
+ display: inline-flex;
8
+ align-items: center;
9
+
10
+ width: 100%;
11
+ height: 100%;
12
+ padding: var(--g-spacing-1) var(--g-spacing-2);
13
+
14
+ border-bottom: 1px solid var(--g-color-line-generic);
15
+ }
16
+ &__table {
17
+ table-layout: fixed;
18
+ border-spacing: 0px;
19
+ border-collapse: collapse;
20
+ tr {
21
+ &:hover {
22
+ background-color: var(--g-color-base-simple-hover) !important;
23
+ }
24
+ }
25
+ tr:nth-of-type(2n + 1) {
26
+ background-color: var(--g-color-base-generic-ultralight);
27
+ }
28
+ }
29
+ &__table_width_max {
30
+ width: 100%;
31
+ }
32
+ &__table-header-cell {
33
+ height: var(--ydb-table-cell-height) !important;
34
+ padding: 0;
35
+
36
+ text-align: left;
37
+ vertical-align: middle;
38
+
39
+ background-color: var(--g-color-base-background);
40
+ @include mixins.text-subheader-2();
41
+ &_align_right {
42
+ #{$block}__table-header-content {
43
+ justify-content: flex-end;
44
+
45
+ text-align: right;
46
+ }
47
+ }
48
+ }
49
+ &__table-cell {
50
+ height: var(--ydb-table-cell-height) !important;
51
+ padding: 0;
52
+ @include mixins.text-body-2();
53
+ &_align_right {
54
+ text-align: right;
55
+ }
56
+ &_vertical-align_top {
57
+ vertical-align: top;
58
+ }
59
+ }
60
+ }
@@ -1,9 +1,9 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
- import { calcUptime } from '../../../utils/dataFormatters/dataFormatters';
2
+ import { getUptimeFromDateFormatted } from '../../../utils/dataFormatters/dataFormatters';
3
3
  import { InfoViewer, createInfoFormatter, formatObject } from '../../InfoViewer';
4
4
  const formatTablet = createInfoFormatter({
5
5
  values: {
6
- ChangeTime: (value) => calcUptime(value),
6
+ ChangeTime: (value) => getUptimeFromDateFormatted(value),
7
7
  },
8
8
  labels: {
9
9
  TabletId: 'Tablet',
@@ -1 +1 @@
1
- {"version":3,"file":"TabletTooltipContent.js","sourceRoot":"","sources":["../../../../src/components/TooltipsContent/TabletTooltipContent/TabletTooltipContent.tsx"],"names":[],"mappings":";AACA,OAAO,EAAC,UAAU,EAAC,MAAM,8CAA8C,CAAC;AACxE,OAAO,EAAC,UAAU,EAAE,mBAAmB,EAAE,YAAY,EAAC,MAAM,kBAAkB,CAAC;AAE/E,MAAM,YAAY,GAAG,mBAAmB,CAAmB;IACvD,MAAM,EAAE;QACJ,UAAU,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,UAAU,CAAC,KAAK,CAAC;KAC3C;IACD,MAAM,EAAE;QACJ,QAAQ,EAAE,QAAQ;KACrB;IACD,qBAAqB,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,IAAI,MAAM,CAAC,KAAK,CAAC;CAC3D,CAAC,CAAC;AAOH,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,EAAC,IAAI,GAAG,EAAE,EAAE,SAAS,EAA4B,EAAE,EAAE;IACtF,MAAM,EAAC,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,UAAU,EAAE,UAAU,EAAC,GAAG,IAAI,CAAC;IAErE,MAAM,IAAI,GAAG,YAAY,CAAC,YAAY,EAAE;QACpC,QAAQ;QACR,MAAM;QACN,KAAK;QACL,IAAI;QACJ,UAAU;QACV,UAAU;KACb,CAAC,CAAC;IAEH,OAAO,KAAC,UAAU,IAAC,SAAS,EAAE,SAAS,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,GAAG,GAAI,CAAC;AACpF,CAAC,CAAC"}
1
+ {"version":3,"file":"TabletTooltipContent.js","sourceRoot":"","sources":["../../../../src/components/TooltipsContent/TabletTooltipContent/TabletTooltipContent.tsx"],"names":[],"mappings":";AACA,OAAO,EAAC,0BAA0B,EAAC,MAAM,8CAA8C,CAAC;AACxF,OAAO,EAAC,UAAU,EAAE,mBAAmB,EAAE,YAAY,EAAC,MAAM,kBAAkB,CAAC;AAE/E,MAAM,YAAY,GAAG,mBAAmB,CAAmB;IACvD,MAAM,EAAE;QACJ,UAAU,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,0BAA0B,CAAC,KAAK,CAAC;KAC3D;IACD,MAAM,EAAE;QACJ,QAAQ,EAAE,QAAQ;KACrB;IACD,qBAAqB,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,IAAI,MAAM,CAAC,KAAK,CAAC;CAC3D,CAAC,CAAC;AAOH,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,EAAC,IAAI,GAAG,EAAE,EAAE,SAAS,EAA4B,EAAE,EAAE;IACtF,MAAM,EAAC,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,UAAU,EAAE,UAAU,EAAC,GAAG,IAAI,CAAC;IAErE,MAAM,IAAI,GAAG,YAAY,CAAC,YAAY,EAAE;QACpC,QAAQ;QACR,MAAM;QACN,KAAK;QACL,IAAI;QACJ,UAAU;QACV,UAAU;KACb,CAAC,CAAC;IAEH,OAAO,KAAC,UAAU,IAAC,SAAS,EAAE,SAAS,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,GAAG,GAAI,CAAC;AACpF,CAAC,CAAC"}
@@ -87,7 +87,7 @@ export function getUptimeColumn() {
87
87
  sortAccessor: ({ StartTime }) => (StartTime ? -StartTime : 0),
88
88
  render: ({ row }) => row.Uptime,
89
89
  align: DataTable.RIGHT,
90
- width: 110,
90
+ width: 120,
91
91
  };
92
92
  }
93
93
  export function getRAMColumn() {
@@ -166,7 +166,7 @@ export const NODES_COLUMNS_TO_DATA_FIELDS = {
166
166
  DC: ['DC'],
167
167
  Rack: ['Rack'],
168
168
  Version: ['Version'],
169
- Uptime: ['Uptime'],
169
+ Uptime: ['Uptime', 'DisconnectTime'],
170
170
  Memory: ['Memory', 'MemoryDetailed'],
171
171
  RAM: ['Memory'],
172
172
  Pools: ['CPU'],
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AAE,QAAQ;IAChB,MAAM,EAAE,QAAQ;IAChB,GAAG,EAAE,QAAQ;IACb,GAAG,EAAE,KAAK;IACV,KAAK,EAAE,KAAK;IACZ,WAAW,EAAE,aAAa;IAC1B,IAAI,EAAE,aAAa;IACnB,cAAc,EAAE,gBAAgB;IAChC,aAAa,EAAE,SAAS;IACxB,WAAW,EAAE,aAAa;IAC1B,kBAAkB,EAAE,oBAAoB;IACxC,cAAc,EAAE,gBAAgB;IAChC,iBAAiB,EAAE,mBAAmB;IACtC,QAAQ,EAAE,UAAU;IACpB,SAAS,EAAE,WAAW;IACtB,OAAO,EAAE,SAAS;IAClB,OAAO,EAAE,SAAS;IAClB,MAAM,EAAE,SAAS;CACpB,CAAC;AAEF,MAAM,UAAU,uBAAuB,CAAC,QAAiB;IACrD,OAAO,4BAA4B,CAAC,QAAyB,CAAC,CAAC;AACnE,CAAC;AAED,MAAM,UAAU,qBAAqB,CAAC,QAAgB;IAClD,OAAO,OAAO,CAAC,uBAAuB,CAAC,QAAQ,CAAC,CAAC,CAAC;AACtD,CAAC"}
@@ -15,7 +15,7 @@ import { cn } from '../../utils/cn';
15
15
  import { useTypedDispatch, useTypedSelector } from '../../utils/hooks';
16
16
  import { parseVersionsToVersionToColorMap } from '../../utils/versions';
17
17
  import { Nodes } from '../Nodes/Nodes';
18
- import { StorageWrapper } from '../Storage/StorageWrapper';
18
+ import { PaginatedStorage } from '../Storage/PaginatedStorage';
19
19
  import { TabletsTable } from '../Tablets/TabletsTable';
20
20
  import { Tenants } from '../Tenants/Tenants';
21
21
  import { Versions } from '../Versions/Versions';
@@ -58,7 +58,7 @@ export function Cluster({ additionalClusterProps, additionalTenantsProps, additi
58
58
  return (_jsx(InternalLink, { to: path, onClick: () => {
59
59
  dispatch(updateDefaultClusterTab(id));
60
60
  }, children: node }, id));
61
- } }) }), _jsxs(Switch, { children: [_jsx(Route, { path: getLocationObjectFromHref(getClusterPath(clusterTabsIds.overview)).pathname, children: _jsx(ClusterInfo, { cluster: cluster, versionToColor: versionToColor, loading: infoLoading, error: clusterError, additionalClusterProps: additionalClusterProps }) }), _jsx(Route, { path: getLocationObjectFromHref(getClusterPath(clusterTabsIds.tablets)).pathname, children: _jsx("div", { className: b('tablets'), children: _jsx(TabletsTable, { loading: infoLoading, tablets: clusterTablets, className: b('tablets-table') }) }) }), _jsx(Route, { path: getLocationObjectFromHref(getClusterPath(clusterTabsIds.tenants)).pathname, children: _jsx(Tenants, { additionalTenantsProps: additionalTenantsProps }) }), _jsx(Route, { path: getLocationObjectFromHref(getClusterPath(clusterTabsIds.nodes)).pathname, children: _jsx(Nodes, { parentRef: container, additionalNodesProps: additionalNodesProps }) }), _jsx(Route, { path: getLocationObjectFromHref(getClusterPath(clusterTabsIds.storage)).pathname, children: _jsx(StorageWrapper, { parentRef: container }) }), _jsx(Route, { path: getLocationObjectFromHref(getClusterPath(clusterTabsIds.versions)).pathname, children: _jsx(Versions, { versionToColor: versionToColor, cluster: cluster }) }), _jsx(Route, { render: () => (_jsx(Redirect, { to: getLocationObjectFromHref(getClusterPath(activeTabId)) })) })] })] }));
61
+ } }) }), _jsxs(Switch, { children: [_jsx(Route, { path: getLocationObjectFromHref(getClusterPath(clusterTabsIds.overview)).pathname, children: _jsx(ClusterInfo, { cluster: cluster, versionToColor: versionToColor, loading: infoLoading, error: clusterError, additionalClusterProps: additionalClusterProps }) }), _jsx(Route, { path: getLocationObjectFromHref(getClusterPath(clusterTabsIds.tablets)).pathname, children: _jsx("div", { className: b('tablets'), children: _jsx(TabletsTable, { loading: infoLoading, tablets: clusterTablets, className: b('tablets-table') }) }) }), _jsx(Route, { path: getLocationObjectFromHref(getClusterPath(clusterTabsIds.tenants)).pathname, children: _jsx(Tenants, { additionalTenantsProps: additionalTenantsProps }) }), _jsx(Route, { path: getLocationObjectFromHref(getClusterPath(clusterTabsIds.nodes)).pathname, children: _jsx(Nodes, { parentRef: container, additionalNodesProps: additionalNodesProps }) }), _jsx(Route, { path: getLocationObjectFromHref(getClusterPath(clusterTabsIds.storage)).pathname, children: _jsx(PaginatedStorage, { parentRef: container }) }), _jsx(Route, { path: getLocationObjectFromHref(getClusterPath(clusterTabsIds.versions)).pathname, children: _jsx(Versions, { versionToColor: versionToColor, cluster: cluster }) }), _jsx(Route, { render: () => (_jsx(Redirect, { to: getLocationObjectFromHref(getClusterPath(activeTabId)) })) })] })] }));
62
62
  }
63
63
  function useClusterTab() {
64
64
  const dispatch = useTypedDispatch();
@@ -1 +1 @@
1
- {"version":3,"file":"Cluster.js","sourceRoot":"","sources":["../../../src/containers/Cluster/Cluster.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAC,QAAQ,EAAE,IAAI,EAAC,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAC,MAAM,EAAC,MAAM,oBAAoB,CAAC;AAC1C,OAAO,EAAC,QAAQ,EAAE,KAAK,EAAE,MAAM,EAAE,aAAa,EAAC,MAAM,kBAAkB,CAAC;AACxE,OAAO,EAAC,WAAW,EAAE,cAAc,EAAC,MAAM,kBAAkB,CAAC;AAE7D,OAAO,EAAC,kBAAkB,EAAC,MAAM,wDAAwD,CAAC;AAC1F,OAAO,EAAC,YAAY,EAAC,MAAM,4CAA4C,CAAC;AACxE,OAAO,EAAC,YAAY,EAAC,MAAM,+BAA+B,CAAC;AAC3D,OAAO,MAAM,EAAE,EAAC,yBAAyB,EAAC,MAAM,cAAc,CAAC;AAC/D,OAAO,EAAC,4BAA4B,EAAC,MAAM,yCAAyC,CAAC;AACrF,OAAO,EACH,UAAU,EACV,4BAA4B,EAC5B,kBAAkB,EAClB,uBAAuB,GAC1B,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EAAC,oBAAoB,EAAC,MAAM,oCAAoC,CAAC;AAOxE,OAAO,EAAC,EAAE,EAAC,MAAM,gBAAgB,CAAC;AAClC,OAAO,EAAC,gBAAgB,EAAE,gBAAgB,EAAC,MAAM,mBAAmB,CAAC;AACrE,OAA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,EAAE,OAAO,EAAE,OAAO,GAAI,GAC1D,EACR,KAAC,KAAK,IACF,MAAM,EAAE,GAAG,EAAE,CAAC,CACV,KAAC,QAAQ,IAAC,EAAE,EAAE,yBAAyB,CAAC,cAAc,CAAC,WAAW,CAAC,CAAC,GAAI,CAC3E,GACH,IACG,IACP,CACT,CAAC;AACN,CAAC;AAED,SAAS,aAAa;IAClB,MAAM,QAAQ,GAAG,gBAAgB,EAAE,CAAC;IAEpC,MAAM,UAAU,GAAG,gBAAgB,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,iBAAiB,CAAC,CAAC;IAEhF,MAAM,KAAK,GAAG,aAAa,CAAsB,MAAM,CAAC,OAAO,CAAC,CAAC;IAEjE,MAAM,EAAC,SAAS,EAAE,mBAAmB,EAAC,GAAG,CAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,MAAM,KAAI,EAAE,CAAC;IAC7D,IAAI,SAAqB,CAAC;IAC1B,IAAI,YAAY,CAAC,mBAAmB,CAAC,EAAE,CAAC;QACpC,SAAS,GAAG,mBAAmB,CAAC;IACpC,CAAC;SAAM,CAAC;QACJ,SAAS,GAAG,UAAU,CAAC;IAC3B,CAAC;IAED,KAAK,CAAC,SAAS,CAAC,GAAG,EAAE;QACjB,IAAI,SAAS,KAAK,UAAU,EAAE,CAAC;YAC3B,QAAQ,CAAC,uBAAuB,CAAC,SAAS,CAAC,CAAC,CAAC;QACjD,CAAC;IACL,CAAC,EAAE,CAAC,SAAS,EAAE,UAAU,EAAE,QAAQ,CAAC,CAAC,CAAC;IAEtC,OAAO,SAAS,CAAC;AACrB,CAAC"}
@@ -1,23 +1,39 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { DefinitionList, Flex } from '@gravity-ui/uikit';
2
3
  import { ResponseError } from '../../../components/Errors/ResponseError';
3
- import { InfoViewer } from '../../../components/InfoViewer/InfoViewer';
4
4
  import { InfoViewerSkeleton } from '../../../components/InfoViewerSkeleton/InfoViewerSkeleton';
5
+ import { LinkWithIcon } from '../../../components/LinkWithIcon/LinkWithIcon';
6
+ import i18n from '../i18n';
5
7
  import { b } from './shared';
6
8
  import { getInfo, useClusterLinks } from './utils';
7
9
  import './ClusterInfo.scss';
8
10
  export const ClusterInfo = ({ cluster, loading, error, additionalClusterProps = {}, }) => {
9
11
  const { info = [], links = [] } = additionalClusterProps;
10
12
  const clusterLinks = useClusterLinks();
11
- const clusterInfo = getInfo(cluster !== null && cluster !== void 0 ? cluster : {}, info, [...links, ...clusterLinks]);
12
- const getContent = () => {
13
- if (loading) {
14
- return _jsx(InfoViewerSkeleton, { className: b('skeleton'), rows: 9 });
15
- }
13
+ const linksList = links.concat(clusterLinks);
14
+ const clusterInfo = getInfo(cluster !== null && cluster !== void 0 ? cluster : {}, info);
15
+ const renderInfo = () => {
16
16
  if (error && !cluster) {
17
17
  return null;
18
18
  }
19
- return _jsx(InfoViewer, { dots: true, info: clusterInfo });
19
+ return (_jsxs("div", { children: [_jsx("div", { className: b('section-title'), children: i18n('title_info') }), _jsx(DefinitionList, { nameMaxWidth: 200, children: clusterInfo.map(({ label, value }) => {
20
+ return (_jsx(DefinitionList.Item, { name: label, children: value }, label));
21
+ }) })] }));
22
+ };
23
+ const renderLinks = () => {
24
+ if (linksList.length) {
25
+ return (_jsxs("div", { children: [_jsx("div", { className: b('section-title'), children: i18n('title_links') }), _jsx(Flex, { direction: "column", gap: 4, children: linksList.map(({ title, url }) => {
26
+ return _jsx(LinkWithIcon, { title: title, url: url }, title);
27
+ }) })] }));
28
+ }
29
+ return null;
30
+ };
31
+ const renderContent = () => {
32
+ if (loading) {
33
+ return _jsx(InfoViewerSkeleton, { className: b('skeleton'), rows: 4 });
34
+ }
35
+ return (_jsxs(Flex, { gap: 10, wrap: "nowrap", children: [renderInfo(), renderLinks()] }));
20
36
  };
21
- return (_jsxs("div", { className: b(), children: [error ? _jsx(ResponseError, { error: error, className: b('error') }) : null, _jsx("div", { className: b('info'), children: getContent() })] }));
37
+ return (_jsxs("div", { className: b(), children: [error ? _jsx(ResponseError, { error: error, className: b('error') }) : null, renderContent()] }));
22
38
  };
23
39
  //# sourceMappingURL=ClusterInfo.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ClusterInfo.js","sourceRoot":"","sources":["../../../../src/containers/Cluster/ClusterInfo/ClusterInfo.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAC,aAAa,EAAC,MAAM,0CAA0C,CAAC;AACvE,OAAO,EAAC,UAAU,EAAC,MAAM,2CAA2C,CAAC;AACrE,OAAO,EAAC,kBAAkB,EAAC,MAAM,2DAA2D,CAAC;AAM7F,OAAO,EAAC,CAAC,EAAC,MAAM,UAAU,CAAC;AAC3B,OAAO,EAAC,OAAO,EAAE,eAAe,EAAC,MAAM,SAAS,CAAC;AAEjD,OAAO,oBAAoB,CAAC;AAU5B,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,EACxB,OAAO,EACP,OAAO,EACP,KAAK,EACL,sBAAsB,GAAG,EAAE,GACZ,EAAE,EAAE;IACnB,MAAM,EAAC,IAAI,GAAG,EAAE,EAAE,KAAK,GAAG,EAAE,EAAC,GAAG,sBAAsB,CAAC;IAEvD,MAAM,YAAY,GAAG,eAAe,EAAE,CAAC;IAEvC,MAAM,WAAW,GAAG,OAAO,CAAC,OAAO,aAAP,OAAO,cAAP,OAAO,GAAI,EAAE,EAAE,IAAI,EAAE,CAAC,GAAG,KAAK,EAAE,GAAG,YAAY,CAAC,CAAC,CAAC;IAE9E,MAAM,UAAU,GAAG,GAAG,EAAE;QACpB,IAAI,OAAO,EAAE,CAAC;YACV,OAAO,KAAC,kBAAkB,IAAC,SAAS,EAAE,CAAC,CAAC,UAAU,CAAC,EAAE,IAAI,EAAE,CAAC,GAAI,CAAC;QACrE,CAAC;QAED,IAAI,KAAK,IAAI,CAAC,OAAO,EAAE,CAAC;YACpB,OAAO,IAAI,CAAC;QAChB,CAAC;QAED,OAAO,K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AAI,EAAE,CAAC,GAAI,CAAC;QACrE,CAAC;QAED,OAAO,CACH,MAAC,IAAI,IAAC,GAAG,EAAE,EAAE,EAAE,IAAI,EAAC,QAAQ,aACvB,UAAU,EAAE,EACZ,WAAW,EAAE,IACX,CACV,CAAC;IACN,CAAC,CAAC;IAEF,OAAO,CACH,eAAK,SAAS,EAAE,CAAC,EAAE,aACd,KAAK,CAAC,CAAC,CAAC,KAAC,aAAa,IAAC,KAAK,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC,CAAC,OAAO,CAAC,GAAI,CAAC,CAAC,CAAC,IAAI,EACrE,aAAa,EAAE,IACd,CACT,CAAC;AACN,CAAC,CAAC"}
@@ -3,38 +3,19 @@
3
3
  .cluster-info {
4
4
  padding: 20px 0;
5
5
 
6
+ @include mixins.body-2-typography();
7
+
6
8
  &__skeleton {
7
9
  margin-top: 5px;
8
10
  }
9
11
 
10
- &__error {
11
- @include mixins.body-2-typography();
12
+ &__section-title {
13
+ margin: var(--g-spacing-1) 0 var(--g-spacing-3);
14
+ @include mixins.text-subheader-2();
12
15
  }
13
16
 
14
- &__metrics {
15
- margin: 0 -15px;
16
- padding: 0 15px !important;
17
-
18
- .info-viewer__items {
19
- grid-template-columns: repeat(2, minmax(auto, 250px));
20
- }
21
-
22
- .info-viewer__label {
23
- width: 50px;
24
- }
25
- .info-viewer__value {
26
- width: 130px;
27
- }
28
- }
29
-
30
- &__tablets {
31
- margin-left: 15px;
32
- padding: 0 !important;
33
- }
34
- &__links {
35
- display: flex;
36
- flex-flow: row wrap;
37
- gap: var(--g-spacing-2);
17
+ &__dc {
18
+ height: 20px;
38
19
  }
39
20
 
40
21
  &__clipboard-button {
@@ -1,7 +1,5 @@
1
- import type { InfoViewerItem } from '../../../components/InfoViewer/InfoViewer';
2
1
  import type { ClusterLink } from '../../../types/additionalProps';
3
2
  import type { TClusterInfo } from '../../../types/api/cluster';
4
- import type { TTabletStateInfo } from '../../../types/api/tablet';
5
- export declare const compareTablets: (tablet1: TTabletStateInfo, tablet2: TTabletStateInfo) => 0 | 1 | -1;
6
- export declare const getInfo: (cluster: TClusterInfo, additionalInfo: InfoViewerItem[], links: ClusterLink[]) => InfoViewerItem[];
3
+ import type { InfoItem } from '../../../types/components';
4
+ export declare const getInfo: (cluster: TClusterInfo, additionalInfo: InfoItem[]) => InfoItem[];
7
5
  export declare function useClusterLinks(): ClusterLink[];
@@ -1,12 +1,10 @@
1
1
  import { jsxs as _jsxs, jsx as _jsx } from "react/jsx-runtime";
2
2
  import React from 'react';
3
3
  import { Flex } from '@gravity-ui/uikit';
4
- import { LinkWithIcon } from '../../../components/LinkWithIcon/LinkWithIcon';
5
4
  import { ProgressViewer } from '../../../components/ProgressViewer/ProgressViewer';
6
5
  import { Tags } from '../../../components/Tags';
7
6
  import { useClusterBaseInfo } from '../../../store/reducers/cluster/cluster';
8
7
  import { isClusterInfoV2 } from '../../../types/api/cluster';
9
- import { EType } from '../../../types/api/tablet';
10
8
  import { formatNumber } from '../../../utils/dataFormatters/dataFormatters';
11
9
  import { parseJson } from '../../../utils/utils';
12
10
  import i18n from '../i18n';
@@ -20,22 +18,13 @@ const COLORS_PRIORITY = {
20
18
  Red: 1,
21
19
  Grey: 0,
22
20
  };
23
- export const compareTablets = (tablet1, tablet2) => {
24
- if (tablet1.Type === EType.TxAllocator) {
25
- return 1;
26
- }
27
- if (tablet2.Type === EType.TxAllocator) {
28
- return -1;
29
- }
30
- return 0;
31
- };
32
21
  const getDCInfo = (cluster) => {
33
22
  if (isClusterInfoV2(cluster) && cluster.MapDataCenters) {
34
23
  return Object.entries(cluster.MapDataCenters).map(([dc, count]) => (_jsxs(React.Fragment, { children: [dc, ": ", formatNumber(count)] }, dc)));
35
24
  }
36
25
  return undefined;
37
26
  };
38
- export const getInfo = (cluster, additionalInfo, links) => {
27
+ export const getInfo = (cluster, additionalInfo) => {
39
28
  const info = [];
40
29
  if (isClusterInfoV2(cluster) && cluster.MapNodeStates) {
41
30
  const arrayNodesStates = Object.entries(cluster.MapNodeStates);
@@ -53,7 +42,7 @@ export const getInfo = (cluster, additionalInfo, links) => {
53
42
  if (dataCenters === null || dataCenters === void 0 ? void 0 : dataCenters.length) {
54
43
  info.push({
55
44
  label: i18n('label_dc'),
56
- value: _jsx(Tags, { tags: dataCenters, gap: 2 }),
45
+ value: _jsx(Tags, { tags: dataCenters, gap: 2, className: b('dc') }),
57
46
  });
58
47
  }
59
48
  info.push({
@@ -61,12 +50,6 @@ export const getInfo = (cluster, additionalInfo, links) => {
61
50
  value: _jsx(ProgressViewer, { value: cluster === null || cluster === void 0 ? void 0 : cluster.LoadAverage, capacity: cluster === null || cluster === void 0 ? void 0 : cluster.NumberOfCpus }),
62
51
  });
63
52
  info.push(...additionalInfo);
64
- if (links.length) {
65
- info.push({
66
- label: i18n('links'),
67
- value: (_jsx("div", { className: b('links'), children: links.map(({ title, url }) => (_jsx(LinkWithIcon, { title: title, url: url }, title))) })),
68
- });
69
- }
70
53
  return info;
71
54
  };
72
55
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../../src/containers/Cluster/ClusterInfo/utils.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAC,IAAI,EAAC,MAAM,mBAAmB,CAAC;AAGvC,OAAO,EAAC,YAAY,EAAC,MAAM,+CAA+C,CAAC;AAC3E,OAAO,EAAC,cAAc,EAAC,MAAM,mDAAmD,CAAC;AACjF,OAAO,EAAC,IAAI,EAAC,MAAM,0BAA0B,CAAC;AAC9C,OAAO,EAAC,kBAAkB,EAAC,MAAM,yCAAyC,CAAC;AAE3E,OAAO,EAAC,eAAe,EAAC,MAAM,4BAA4B,CAAC;AAI3D,OAAO,EAAC,KAAK,EAAC,MAAM,2BAA2B,CAAC;AAChD,OAAO,EAAC,YAAY,EAAC,MAAM,8CAA8C,CAAC;AAC1E,OAAO,EAAC,SAAS,EAAC,MAAM,sBAAsB,CAAC;AAC/C,OA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SAAS,GAAG,kBAAkB,CAAC,KAAK,CAAC,CAAC;QAC5C,MAAM,WAAW,GAAG,kBAAkB,CAAC,OAAO,CAAC,CAAC;QAEhD,IAAI,SAAS,EAAE,CAAC;YACZ,MAAM,CAAC,IAAI,CAAC;gBACR,KAAK,EAAE,IAAI,CAAC,YAAY,CAAC;gBACzB,GAAG,EAAE,SAAS;aACjB,CAAC,CAAC;QACP,CAAC;QAED,IAAI,WAAW,EAAE,CAAC;YACd,MAAM,CAAC,IAAI,CAAC;gBACR,KAAK,EAAE,IAAI,CAAC,cAAc,CAAC;gBAC3B,GAAG,EAAE,WAAW;aACnB,CAAC,CAAC;QACP,CAAC;QAED,OAAO,MAAM,CAAC;IAClB,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC,CAAC;AACzB,CAAC"}
@@ -9,12 +9,14 @@
9
9
  "storage-size": "Storage size",
10
10
  "storage-groups": "Storage groups, {{diskType}}",
11
11
  "links": "Links",
12
- "link_cores": "Cores",
12
+ "link_cores": "Coredumps",
13
13
  "link_logging": "Logging",
14
14
  "context_cores": "cores",
15
15
  "title_cpu": "CPU",
16
16
  "title_storage": "Storage",
17
17
  "title_memory": "Memory",
18
+ "title_info": "Info",
19
+ "title_links": "Links",
18
20
  "label_nodes": "Nodes",
19
21
  "label_hosts": "Hosts",
20
22
  "label_storage-groups": "Storage groups",
@@ -1,2 +1,2 @@
1
- declare const _default: (key: "links" | "erasure" | "usage" | "storage-groups" | "title_storage" | "disk-type" | "allocated" | "available" | "label_nodes-state" | "label_dc" | "storage-size" | "link_cores" | "link_logging" | "context_cores" | "title_cpu" | "title_memory" | "label_nodes" | "label_hosts" | "label_storage-groups" | "label_databases" | "label_load", params?: import("@gravity-ui/i18n").Params) => string;
1
+ declare const _default: (key: "links" | "erasure" | "usage" | "storage-groups" | "title_storage" | "disk-type" | "allocated" | "available" | "label_nodes-state" | "label_dc" | "storage-size" | "link_cores" | "link_logging" | "context_cores" | "title_cpu" | "title_memory" | "title_info" | "title_links" | "label_nodes" | "label_hosts" | "label_storage-groups" | "label_databases" | "label_load", params?: import("@gravity-ui/i18n").Params) => string;
2
2
  export default _default;
@@ -6,6 +6,7 @@ import { ClipboardButton, Link as ExternalLink, Progress } from '@gravity-ui/uik
6
6
  import { ProgressViewer } from '../../components/ProgressViewer/ProgressViewer';
7
7
  import { UserCard } from '../../components/User/User';
8
8
  import { formatStorageValuesToTb } from '../../utils/dataFormatters/dataFormatters';
9
+ import { createDeveloperUIMonitoringPageHref } from '../../utils/developerUI/developerUI';
9
10
  import { getCleanBalancerValue, removeViewerPathname } from '../../utils/parseBalancer';
10
11
  import { clusterTabsIds, getClusterPath } from '../Cluster/utils';
11
12
  import { COLUMNS_NAMES, COLUMNS_TITLES } from './constants';
@@ -20,9 +21,11 @@ export const CLUSTERS_COLUMNS = [
20
21
  width: 230,
21
22
  render: ({ row }) => {
22
23
  var _a, _b;
23
- const { balancer, name: clusterName } = row;
24
+ const { balancer, name: clusterName, use_embedded_ui: useEmbeddedUi } = row;
24
25
  const backend = balancer && removeViewerPathname(balancer);
25
- const clusterPath = getClusterPath(undefined, { backend, clusterName });
26
+ const clusterPath = useEmbeddedUi && backend
27
+ ? createDeveloperUIMonitoringPageHref(backend)
28
+ : getClusterPath(undefined, { backend, clusterName });
26
29
  const clusterStatus = (_a = row.cluster) === null || _a === void 0 ? void 0 : _a.Overall;
27
30
  return (_jsxs("div", { className: b('cluster'), children: [clusterStatus ? (_jsx(ExternalLink, { href: clusterPath, children: _jsx("div", { className: b('cluster-status', {
28
31
  type: clusterStatus && clusterStatus.toLowerCase(),