ydb-embedded-ui 6.22.0 → 6.23.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (261) hide show
  1. package/dist/components/PDiskPopup/PDiskPopup.d.ts +2 -4
  2. package/dist/components/PDiskPopup/PDiskPopup.js +10 -5
  3. package/dist/components/PDiskPopup/PDiskPopup.js.map +1 -1
  4. package/dist/components/PaginatedTable/PaginatedTable.d.ts +2 -1
  5. package/dist/components/PaginatedTable/PaginatedTable.js +9 -7
  6. package/dist/components/PaginatedTable/PaginatedTable.js.map +1 -1
  7. package/dist/components/PaginatedTable/TableChunk.d.ts +2 -1
  8. package/dist/components/PaginatedTable/TableChunk.js +5 -2
  9. package/dist/components/PaginatedTable/TableChunk.js.map +1 -1
  10. package/dist/components/QueryResultTable/QueryResultTable.js +11 -16
  11. package/dist/components/QueryResultTable/QueryResultTable.js.map +1 -1
  12. package/dist/components/QueryResultTable/utils/getColumnWidth.d.ts +7 -0
  13. package/dist/components/QueryResultTable/utils/getColumnWidth.js +16 -0
  14. package/dist/components/QueryResultTable/utils/getColumnWidth.js.map +1 -0
  15. package/dist/components/QueryResultTable/utils/getColumnWidth.test.d.ts +1 -0
  16. package/dist/components/QueryResultTable/utils/getColumnWidth.test.js +32 -0
  17. package/dist/components/QueryResultTable/utils/getColumnWidth.test.js.map +1 -0
  18. package/dist/components/StorageGroupInfo/StorageGroupInfo.js +7 -7
  19. package/dist/components/StorageGroupInfo/StorageGroupInfo.js.map +1 -1
  20. package/dist/components/StorageGroupInfo/i18n/index.d.ts +1 -1
  21. package/dist/components/TableSkeleton/TableSkeleton.d.ts +2 -1
  22. package/dist/components/TableSkeleton/TableSkeleton.js +5 -1
  23. package/dist/components/TableSkeleton/TableSkeleton.js.map +1 -1
  24. package/dist/components/TableSkeleton/TableSkeleton.scss +7 -1
  25. package/dist/components/VDisk/VDisk.d.ts +1 -3
  26. package/dist/components/VDisk/VDisk.js +2 -2
  27. package/dist/components/VDisk/VDisk.js.map +1 -1
  28. package/dist/components/VDiskPopup/VDiskPopup.d.ts +1 -3
  29. package/dist/components/VDiskPopup/VDiskPopup.js +7 -2
  30. package/dist/components/VDiskPopup/VDiskPopup.js.map +1 -1
  31. package/dist/containers/Cluster/Cluster.scss +2 -2
  32. package/dist/containers/Header/breadcrumbs.js +2 -3
  33. package/dist/containers/Header/breadcrumbs.js.map +1 -1
  34. package/dist/containers/Nodes/columns/columns.js +8 -0
  35. package/dist/containers/Nodes/columns/columns.js.map +1 -1
  36. package/dist/containers/Nodes/columns/constants.d.ts +2 -0
  37. package/dist/containers/Nodes/columns/constants.js +4 -0
  38. package/dist/containers/Nodes/columns/constants.js.map +1 -1
  39. package/dist/containers/Nodes/columns/i18n/en.json +1 -0
  40. package/dist/containers/Nodes/columns/i18n/index.d.ts +1 -1
  41. package/dist/containers/Storage/Disks/Disks.d.ts +3 -3
  42. package/dist/containers/Storage/Disks/Disks.js +6 -7
  43. package/dist/containers/Storage/Disks/Disks.js.map +1 -1
  44. package/dist/containers/Storage/PDisk/PDisk.d.ts +3 -2
  45. package/dist/containers/Storage/PDisk/PDisk.js +3 -2
  46. package/dist/containers/Storage/PDisk/PDisk.js.map +1 -1
  47. package/dist/containers/Storage/PDisk/PDisk.scss +1 -1
  48. package/dist/containers/Storage/PaginatedStorage.d.ts +5 -5
  49. package/dist/containers/Storage/PaginatedStorage.js +7 -73
  50. package/dist/containers/Storage/PaginatedStorage.js.map +1 -1
  51. package/dist/containers/Storage/PaginatedStorageGroups.d.ts +3 -0
  52. package/dist/containers/Storage/PaginatedStorageGroups.js +84 -0
  53. package/dist/containers/Storage/PaginatedStorageGroups.js.map +1 -0
  54. package/dist/containers/Storage/PaginatedStorageNodes.d.ts +3 -0
  55. package/dist/containers/Storage/PaginatedStorageNodes.js +98 -0
  56. package/dist/containers/Storage/PaginatedStorageNodes.js.map +1 -0
  57. package/dist/containers/Storage/Storage.js +15 -70
  58. package/dist/containers/Storage/Storage.js.map +1 -1
  59. package/dist/containers/Storage/Storage.scss +4 -0
  60. package/dist/containers/Storage/StorageControls/StorageControls.d.ts +3 -16
  61. package/dist/containers/Storage/StorageControls/StorageControls.js +18 -11
  62. package/dist/containers/Storage/StorageControls/StorageControls.js.map +1 -1
  63. package/dist/containers/Storage/StorageGroups/PaginatedStorageGroupsTable.d.ts +22 -0
  64. package/dist/containers/Storage/StorageGroups/{PaginatedStorageGroups.js → PaginatedStorageGroupsTable.js} +23 -5
  65. package/dist/containers/Storage/StorageGroups/PaginatedStorageGroupsTable.js.map +1 -0
  66. package/dist/containers/Storage/StorageGroups/{StorageGroups.d.ts → StorageGroupsTable.d.ts} +3 -4
  67. package/dist/containers/Storage/StorageGroups/{StorageGroups.js → StorageGroupsTable.js} +4 -3
  68. package/dist/containers/Storage/StorageGroups/StorageGroupsTable.js.map +1 -0
  69. package/dist/containers/Storage/StorageGroups/columns/columns.js +35 -10
  70. package/dist/containers/Storage/StorageGroups/columns/columns.js.map +1 -1
  71. package/dist/containers/Storage/StorageGroups/columns/constants.d.ts +17 -0
  72. package/dist/containers/Storage/StorageGroups/columns/constants.js +46 -1
  73. package/dist/containers/Storage/StorageGroups/columns/constants.js.map +1 -1
  74. package/dist/containers/Storage/StorageGroups/columns/hooks.d.ts +3 -3
  75. package/dist/containers/Storage/StorageGroups/columns/hooks.js +5 -8
  76. package/dist/containers/Storage/StorageGroups/columns/hooks.js.map +1 -1
  77. package/dist/containers/Storage/StorageGroups/columns/i18n/en.json +6 -0
  78. package/dist/containers/Storage/StorageGroups/columns/i18n/index.d.ts +1 -1
  79. package/dist/containers/Storage/StorageGroups/columns/types.d.ts +7 -5
  80. package/dist/containers/Storage/StorageGroups/getGroups.js +6 -5
  81. package/dist/containers/Storage/StorageGroups/getGroups.js.map +1 -1
  82. package/dist/containers/Storage/StorageNodes/PaginatedStorageNodesTable.d.ts +23 -0
  83. package/dist/containers/Storage/StorageNodes/{PaginatedStorageNodes.js → PaginatedStorageNodesTable.js} +23 -5
  84. package/dist/containers/Storage/StorageNodes/PaginatedStorageNodesTable.js.map +1 -0
  85. package/dist/containers/Storage/StorageNodes/{StorageNodes.d.ts → StorageNodesTable.d.ts} +3 -4
  86. package/dist/containers/Storage/StorageNodes/{StorageNodes.js → StorageNodesTable.js} +8 -6
  87. package/dist/containers/Storage/StorageNodes/StorageNodesTable.js.map +1 -0
  88. package/dist/containers/Storage/StorageNodes/columns/StorageNodesColumns.scss +1 -0
  89. package/dist/containers/Storage/StorageNodes/columns/columns.d.ts +1 -1
  90. package/dist/containers/Storage/StorageNodes/columns/columns.js +4 -5
  91. package/dist/containers/Storage/StorageNodes/columns/columns.js.map +1 -1
  92. package/dist/containers/Storage/StorageNodes/columns/constants.d.ts +9 -0
  93. package/dist/containers/Storage/StorageNodes/columns/constants.js +27 -0
  94. package/dist/containers/Storage/StorageNodes/columns/constants.js.map +1 -1
  95. package/dist/containers/Storage/StorageNodes/columns/i18n/en.json +2 -0
  96. package/dist/containers/Storage/StorageNodes/columns/i18n/index.d.ts +1 -1
  97. package/dist/containers/Storage/StorageNodes/getNodes.js +6 -5
  98. package/dist/containers/Storage/StorageNodes/getNodes.js.map +1 -1
  99. package/dist/containers/Storage/TableGroup/TableGroup.d.ts +12 -0
  100. package/dist/containers/Storage/TableGroup/TableGroup.js +21 -0
  101. package/dist/containers/Storage/TableGroup/TableGroup.js.map +1 -0
  102. package/dist/containers/Storage/TableGroup/TableGroup.scss +49 -0
  103. package/dist/containers/Storage/TableGroup/useExpandedTableGroups.d.ts +5 -0
  104. package/dist/containers/Storage/TableGroup/useExpandedTableGroups.js +28 -0
  105. package/dist/containers/Storage/TableGroup/useExpandedTableGroups.js.map +1 -0
  106. package/dist/containers/Storage/i18n/en.json +4 -1
  107. package/dist/containers/Storage/i18n/index.d.ts +1 -1
  108. package/dist/containers/Storage/i18n/index.js +1 -2
  109. package/dist/containers/Storage/i18n/index.js.map +1 -1
  110. package/dist/containers/Storage/shared.d.ts +2 -0
  111. package/dist/containers/Storage/shared.js +9 -0
  112. package/dist/containers/Storage/shared.js.map +1 -1
  113. package/dist/containers/Storage/useStorageQueryParams.d.ts +18 -0
  114. package/dist/containers/Storage/useStorageQueryParams.js +64 -0
  115. package/dist/containers/Storage/useStorageQueryParams.js.map +1 -0
  116. package/dist/containers/Storage/utils/index.d.ts +6 -2
  117. package/dist/containers/Storage/utils/index.js +11 -6
  118. package/dist/containers/Storage/utils/index.js.map +1 -1
  119. package/dist/containers/Tenant/Diagnostics/Describe/Describe.js +17 -3
  120. package/dist/containers/Tenant/Diagnostics/Describe/Describe.js.map +1 -1
  121. package/dist/containers/Tenant/Diagnostics/Diagnostics.js +1 -1
  122. package/dist/containers/Tenant/Diagnostics/Diagnostics.js.map +1 -1
  123. package/dist/containers/Tenant/Diagnostics/DiagnosticsPages.d.ts +0 -3
  124. package/dist/containers/Tenant/Diagnostics/DiagnosticsPages.js +2 -2
  125. package/dist/containers/Tenant/Diagnostics/DiagnosticsPages.js.map +1 -1
  126. package/dist/containers/Tenant/Diagnostics/HotKeys/HotKeys.js +10 -3
  127. package/dist/containers/Tenant/Diagnostics/HotKeys/HotKeys.js.map +1 -1
  128. package/dist/containers/Tenant/Diagnostics/Overview/Overview.js +2 -3
  129. package/dist/containers/Tenant/Diagnostics/Overview/Overview.js.map +1 -1
  130. package/dist/containers/Tenant/Diagnostics/Partitions/Partitions.js +4 -4
  131. package/dist/containers/Tenant/Diagnostics/Partitions/Partitions.js.map +1 -1
  132. package/dist/containers/Tenant/Diagnostics/Partitions/utils/index.d.ts +2 -2
  133. package/dist/containers/Tenant/Diagnostics/Partitions/utils/index.js +5 -5
  134. package/dist/containers/Tenant/Diagnostics/Partitions/utils/index.js.map +1 -1
  135. package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantOverview.js +8 -2
  136. package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantOverview.js.map +1 -1
  137. package/dist/containers/Tenant/Diagnostics/TopQueries/RunningQueriesData.d.ts +5 -0
  138. package/dist/containers/Tenant/Diagnostics/TopQueries/RunningQueriesData.js +21 -0
  139. package/dist/containers/Tenant/Diagnostics/TopQueries/RunningQueriesData.js.map +1 -0
  140. package/dist/containers/Tenant/Diagnostics/TopQueries/TopQueries.d.ts +1 -3
  141. package/dist/containers/Tenant/Diagnostics/TopQueries/TopQueries.js +32 -37
  142. package/dist/containers/Tenant/Diagnostics/TopQueries/TopQueries.js.map +1 -1
  143. package/dist/containers/Tenant/Diagnostics/TopQueries/TopQueriesData.d.ts +6 -0
  144. package/dist/containers/Tenant/Diagnostics/TopQueries/TopQueriesData.js +33 -0
  145. package/dist/containers/Tenant/Diagnostics/TopQueries/TopQueriesData.js.map +1 -0
  146. package/dist/containers/Tenant/Diagnostics/TopQueries/getTopQueriesColumns.d.ts +2 -0
  147. package/dist/containers/Tenant/Diagnostics/TopQueries/getTopQueriesColumns.js +26 -0
  148. package/dist/containers/Tenant/Diagnostics/TopQueries/getTopQueriesColumns.js.map +1 -1
  149. package/dist/containers/Tenant/Diagnostics/TopQueries/i18n/en.json +7 -1
  150. package/dist/containers/Tenant/Diagnostics/TopQueries/i18n/index.d.ts +1 -1
  151. package/dist/containers/Tenant/Diagnostics/TopQueries/i18n/index.js +1 -2
  152. package/dist/containers/Tenant/Diagnostics/TopQueries/i18n/index.js.map +1 -1
  153. package/dist/containers/Tenant/ObjectSummary/ObjectSummary.js +27 -9
  154. package/dist/containers/Tenant/ObjectSummary/ObjectSummary.js.map +1 -1
  155. package/dist/containers/Tenant/ObjectSummary/__test__/transformPath.test.js +27 -3
  156. package/dist/containers/Tenant/ObjectSummary/__test__/transformPath.test.js.map +1 -1
  157. package/dist/containers/Tenant/ObjectSummary/transformPath.d.ts +2 -0
  158. package/dist/containers/Tenant/ObjectSummary/transformPath.js +10 -0
  159. package/dist/containers/Tenant/ObjectSummary/transformPath.js.map +1 -1
  160. package/dist/containers/Tenant/Query/ExecuteResult/ExecuteResult.js +3 -1
  161. package/dist/containers/Tenant/Query/ExecuteResult/ExecuteResult.js.map +1 -1
  162. package/dist/containers/Tenant/Query/ExecuteResult/i18n/en.json +2 -1
  163. package/dist/containers/Tenant/Query/ExecuteResult/i18n/index.d.ts +1 -1
  164. package/dist/containers/Tenant/Query/NewSQL/NewSQL.d.ts +1 -0
  165. package/dist/containers/Tenant/Query/NewSQL/NewSQL.js +135 -0
  166. package/dist/containers/Tenant/Query/NewSQL/NewSQL.js.map +1 -0
  167. package/dist/containers/Tenant/Query/NewSQL/i18n/en.json +32 -0
  168. package/dist/containers/Tenant/Query/NewSQL/i18n/index.d.ts +2 -0
  169. package/dist/containers/Tenant/Query/NewSQL/i18n/index.js +5 -0
  170. package/dist/containers/Tenant/Query/NewSQL/i18n/index.js.map +1 -0
  171. package/dist/containers/Tenant/Query/QueryEditorControls/QueryEditorControls.js +2 -1
  172. package/dist/containers/Tenant/Query/QueryEditorControls/QueryEditorControls.js.map +1 -1
  173. package/dist/containers/Tenant/Query/QueryEditorControls/QueryEditorControls.scss +1 -0
  174. package/dist/containers/Tenant/Schema/SchemaTree/SchemaTree.js +1 -1
  175. package/dist/containers/Tenant/Schema/SchemaTree/SchemaTree.js.map +1 -1
  176. package/dist/containers/Tenant/Schema/SchemaViewer/SchemaViewer.js +10 -2
  177. package/dist/containers/Tenant/Schema/SchemaViewer/SchemaViewer.js.map +1 -1
  178. package/dist/containers/Tenant/Schema/SchemaViewer/prepareData.d.ts +2 -1
  179. package/dist/containers/Tenant/Schema/SchemaViewer/prepareData.js.map +1 -1
  180. package/dist/containers/Tenant/Tenant.js +7 -3
  181. package/dist/containers/Tenant/Tenant.js.map +1 -1
  182. package/dist/containers/Tenant/utils/newSQLQueryActions.d.ts +27 -0
  183. package/dist/containers/Tenant/utils/newSQLQueryActions.js +35 -0
  184. package/dist/containers/Tenant/utils/newSQLQueryActions.js.map +1 -0
  185. package/dist/containers/Tenant/utils/newSQLQueryTemplates.d.ts +24 -0
  186. package/dist/containers/Tenant/utils/newSQLQueryTemplates.js +228 -0
  187. package/dist/containers/Tenant/utils/newSQLQueryTemplates.js.map +1 -0
  188. package/dist/containers/Tenant/utils/schemaActions.d.ts +1 -1
  189. package/dist/containers/Tenant/utils/schemaActions.js +8 -6
  190. package/dist/containers/Tenant/utils/schemaActions.js.map +1 -1
  191. package/dist/containers/Tenant/utils/{queryTemplates.js → schemaQueryTemplates.js} +1 -1
  192. package/dist/containers/Tenant/utils/schemaQueryTemplates.js.map +1 -0
  193. package/dist/services/api.js +3 -3
  194. package/dist/services/api.js.map +1 -1
  195. package/dist/store/reducers/capabilities/hooks.d.ts +2 -0
  196. package/dist/store/reducers/capabilities/hooks.js +6 -0
  197. package/dist/store/reducers/capabilities/hooks.js.map +1 -1
  198. package/dist/store/reducers/executeTopQueries/executeTopQueries.d.ts +4 -0
  199. package/dist/store/reducers/executeTopQueries/executeTopQueries.js +27 -1
  200. package/dist/store/reducers/executeTopQueries/executeTopQueries.js.map +1 -1
  201. package/dist/store/reducers/nodes/types.d.ts +1 -0
  202. package/dist/store/reducers/nodesList.d.ts +5 -5
  203. package/dist/store/reducers/nodesList.js +2 -2
  204. package/dist/store/reducers/nodesList.js.map +1 -1
  205. package/dist/store/reducers/overview/overview.js +5 -1
  206. package/dist/store/reducers/overview/overview.js.map +1 -1
  207. package/dist/store/reducers/storage/requestStorageData.d.ts +3 -3
  208. package/dist/store/reducers/storage/requestStorageData.js.map +1 -1
  209. package/dist/store/reducers/storage/selectors.d.ts +2 -3
  210. package/dist/store/reducers/storage/selectors.js +1 -27
  211. package/dist/store/reducers/storage/selectors.js.map +1 -1
  212. package/dist/store/reducers/storage/storage.d.ts +2 -2
  213. package/dist/store/reducers/storage/storage.js.map +1 -1
  214. package/dist/store/reducers/storage/types.d.ts +19 -10
  215. package/dist/store/reducers/storage/utils.js +27 -3
  216. package/dist/store/reducers/storage/utils.js.map +1 -1
  217. package/dist/store/reducers/tablet.js +5 -3
  218. package/dist/store/reducers/tablet.js.map +1 -1
  219. package/dist/store/reducers/tablets.d.ts +3 -3
  220. package/dist/store/reducers/tablets.js +4 -4
  221. package/dist/store/reducers/tablets.js.map +1 -1
  222. package/dist/types/api/capabilities.d.ts +1 -1
  223. package/dist/types/api/nodes.d.ts +3 -2
  224. package/dist/types/api/nodes.js.map +1 -1
  225. package/dist/types/api/storage.d.ts +22 -4
  226. package/dist/types/store/nodesList.d.ts +1 -1
  227. package/dist/utils/hooks/useSelectedColumns.js +7 -2
  228. package/dist/utils/hooks/useSelectedColumns.js.map +1 -1
  229. package/dist/utils/nodes.d.ts +2 -2
  230. package/dist/utils/nodes.js +4 -4
  231. package/dist/utils/nodes.js.map +1 -1
  232. package/dist/utils/storage.js +2 -0
  233. package/dist/utils/storage.js.map +1 -1
  234. package/dist/utils/utils.js +2 -1
  235. package/dist/utils/utils.js.map +1 -1
  236. package/package.json +1 -1
  237. package/dist/containers/Storage/StorageGroups/PaginatedStorageGroups.d.ts +0 -16
  238. package/dist/containers/Storage/StorageGroups/PaginatedStorageGroups.js.map +0 -1
  239. package/dist/containers/Storage/StorageGroups/StorageGroups.js.map +0 -1
  240. package/dist/containers/Storage/StorageNodes/PaginatedStorageNodes.d.ts +0 -17
  241. package/dist/containers/Storage/StorageNodes/PaginatedStorageNodes.js.map +0 -1
  242. package/dist/containers/Storage/StorageNodes/StorageNodes.js.map +0 -1
  243. package/dist/containers/Storage/UsageFilter/UsageFilter.d.ts +0 -14
  244. package/dist/containers/Storage/UsageFilter/UsageFilter.js +0 -39
  245. package/dist/containers/Storage/UsageFilter/UsageFilter.js.map +0 -1
  246. package/dist/containers/Storage/UsageFilter/UsageFilter.scss +0 -38
  247. package/dist/containers/Storage/UsageFilter/i18n/en.json +0 -5
  248. package/dist/containers/Storage/UsageFilter/i18n/index.d.ts +0 -2
  249. package/dist/containers/Storage/UsageFilter/i18n/index.js +0 -6
  250. package/dist/containers/Storage/UsageFilter/i18n/index.js.map +0 -1
  251. package/dist/containers/Storage/UsageFilter/i18n/ru.json +0 -5
  252. package/dist/containers/Storage/UsageFilter/index.d.ts +0 -1
  253. package/dist/containers/Storage/UsageFilter/index.js +0 -2
  254. package/dist/containers/Storage/UsageFilter/index.js.map +0 -1
  255. package/dist/containers/Storage/i18n/ru.json +0 -6
  256. package/dist/containers/Tenant/Diagnostics/TopQueries/i18n/ru.json +0 -4
  257. package/dist/containers/Tenant/utils/queryTemplates.js.map +0 -1
  258. package/dist/store/reducers/describe.d.ts +0 -7
  259. package/dist/store/reducers/describe.js +0 -25
  260. package/dist/store/reducers/describe.js.map +0 -1
  261. /package/dist/containers/Tenant/utils/{queryTemplates.d.ts → schemaQueryTemplates.d.ts} +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"tablet.js","sourceRoot":"","sources":["../../../src/store/reducers/tablet.ts"],"names":[],"mappings":"AAEA,OAAO,EAAC,eAAe,EAAC,MAAM,mBAAmB,CAAC;AAElD,OAAO,EAAC,GAAG,EAAC,MAAM,OAAO,CAAC;AAE1B,MAAM,CAAC,MAAM,SAAS,GAAG,GAAG,CAAC,eAAe,CAAC;IACzC,SAAS,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;QACnB,SAAS,EAAE,KAAK,CAAC,KAAK,CAAC;YACnB,OAAO,EAAE,KAAK,EACV,EAAC,EAAE,EAAE,QAAQ,EAAE,MAAM,EAAmD,EACxE,EAAC,MAAM,EAAC,EACV,EAAE;gBACA,IAAI,CAAC;oBACD,MAAM,CAAC,kBAAkB,EAAE,mBAAmB,EAAE,SAAS,CAAC,GAAG,MAAM,OAAO,CAAC,GAAG,CAAC;wBAC3E,MAAM,CAAC,GAAG,CAAC,SAAS,CAAC,EAAC,EAAE,EAAE,QAAQ,EAAE,MAAM,EAAC,EAAE,EAAC,MAAM,EAAC,CAAC;wBACtD,MAAM,CAAC,GAAG,CAAC,gBAAgB,CAAC,EAAC,EAAE,EAAE,QAAQ,EAAE,MAAM,EAAC,EAAE,EAAC,MAAM,EAAC,CAAC;wBAC7D,MAAM,CAAC,GAAG,CAAC,YAAY,CAAC,EAAC,MAAM,EAAC,CAAC;qBACpC,CAAC,CAAC;oBACH,MAAM,QAAQ,GAAG,eAA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F,YAAY,EAAE,KAAK,CAAC,QAAQ,CAAC;YACzB,OAAO,EAAE,KAAK,EAAE,EAAC,EAAE,EAAE,MAAM,EAA+B,EAAE,EAAE;gBAC1D,IAAI,CAAC;oBACD,MAAM,IAAI,GAAG,MAAM,MAAM,CAAC,GAAG,CAAC,YAAY,CAAC,EAAE,EAAE,MAAM,CAAC,CAAC;oBACvD,OAAO,EAAC,IAAI,EAAC,CAAC;gBAClB,CAAC;gBAAC,OAAO,KAAK,EAAE,CAAC;oBACb,OAAO,EAAC,KAAK,EAAC,CAAC;gBACnB,CAAC;YACL,CAAC;YACD,eAAe,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,GAAG,EAAE,EAAE;gBACtC,OAAO;oBACH,EAAC,IAAI,EAAE,QAAQ,EAAE,EAAE,EAAE,GAAG,CAAC,EAAE,EAAC;oBAC5B,EAAC,IAAI,EAAE,QAAQ,EAAE,EAAE,EAAE,MAAM,EAAC;iBAC/B,CAAC;YACN,CAAC;SACJ,CAAC;KACL,CAAC;IACF,gBAAgB,EAAE,OAAO;CAC5B,CAAC,CAAC"}
@@ -133,10 +133,10 @@ export declare const selectTabletsWithFqdn: ((state: {
133
133
  resultsCount: () => number;
134
134
  resetResultsCount: () => void;
135
135
  } & {
136
- resultFunc: (resultFuncArgs_0: import("../../types/api/tablet").TEvTabletStateResponse | undefined, resultFuncArgs_1: import("../../types/store/nodesList").NodesMap | undefined) => (TTabletStateInfo & {
136
+ resultFunc: (resultFuncArgs_0: import("../../types/api/tablet").TEvTabletStateResponse | undefined, resultFuncArgs_1: import("../../types/store/nodesList").NodeHostsMap | undefined) => (TTabletStateInfo & {
137
137
  fqdn?: string;
138
138
  })[];
139
- memoizedResultFunc: ((resultFuncArgs_0: import("../../types/api/tablet").TEvTabletStateResponse | undefined, resultFuncArgs_1: import("../../types/store/nodesList").NodesMap | undefined) => (TTabletStateInfo & {
139
+ memoizedResultFunc: ((resultFuncArgs_0: import("../../types/api/tablet").TEvTabletStateResponse | undefined, resultFuncArgs_1: import("../../types/store/nodesList").NodeHostsMap | undefined) => (TTabletStateInfo & {
140
140
  fqdn?: string;
141
141
  })[]) & {
142
142
  clearCache: () => void;
@@ -146,7 +146,7 @@ export declare const selectTabletsWithFqdn: ((state: {
146
146
  lastResult: () => (TTabletStateInfo & {
147
147
  fqdn?: string;
148
148
  })[];
149
- dependencies: [(state: RootState, params: TabletsApiRequestParams) => import("../../types/api/tablet").TEvTabletStateResponse | undefined, (state: RootState) => import("../../types/store/nodesList").NodesMap | undefined];
149
+ dependencies: [(state: RootState, params: TabletsApiRequestParams) => import("../../types/api/tablet").TEvTabletStateResponse | undefined, (state: RootState) => import("../../types/store/nodesList").NodeHostsMap | undefined];
150
150
  recomputations: () => number;
151
151
  resetRecomputations: () => void;
152
152
  dependencyRecomputations: () => number;
@@ -1,7 +1,7 @@
1
1
  import { createSelector, lruMemoize } from '@reduxjs/toolkit';
2
2
  import isEqual from 'lodash/isEqual';
3
3
  import { api } from './api';
4
- import { selectNodesMap } from './nodesList';
4
+ import { selectNodeHostsMap } from './nodesList';
5
5
  export const tabletsApi = api.injectEndpoints({
6
6
  endpoints: (build) => ({
7
7
  getTabletsInfo: build.query({
@@ -24,15 +24,15 @@ const getTabletsInfoSelector = createSelector((params) => params, (params) => ta
24
24
  argsMemoizeOptions: { equalityCheck: isEqual },
25
25
  });
26
26
  export const selectGetTabletsInfo = createSelector((state) => state, (_state, params) => getTabletsInfoSelector(params), (state, selectTabletsInfo) => selectTabletsInfo(state).data);
27
- export const selectTabletsWithFqdn = createSelector((state, params) => selectGetTabletsInfo(state, params), (state) => selectNodesMap(state), (data, nodesMap) => {
27
+ export const selectTabletsWithFqdn = createSelector((state, params) => selectGetTabletsInfo(state, params), (state) => selectNodeHostsMap(state), (data, nodeHostsMap) => {
28
28
  if (!(data === null || data === void 0 ? void 0 : data.TabletStateInfo)) {
29
29
  return [];
30
30
  }
31
- if (!nodesMap) {
31
+ if (!nodeHostsMap) {
32
32
  return data.TabletStateInfo;
33
33
  }
34
34
  return data.TabletStateInfo.map((tablet) => {
35
- const fqdn = tablet.NodeId === undefined ? undefined : nodesMap.get(tablet.NodeId);
35
+ const fqdn = tablet.NodeId === undefined ? undefined : nodeHostsMap.get(tablet.NodeId);
36
36
  return { ...tablet, fqdn };
37
37
  });
38
38
  });
@@ -1 +1 @@
1
- {"version":3,"file":"tablets.js","sourceRoot":"","sources":["../../../src/store/reducers/tablets.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,cAAc,EAAE,UAAU,EAAC,MAAM,kBAAkB,CAAC;AAC5D,OAAO,OAAO,MAAM,gBAAgB,CAAC;AAMrC,OAAO,EAAC,GAAG,EAAC,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAC,cAAc,EAAC,MAAM,aAAa,CAAC;AAE3C,MAAM,CAAC,MAAM,UAAU,GAAG,GAAG,CAAC,eAAe,CAAC;IAC1C,SAAS,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;QACnB,cAAc,EAAE,KAAK,CAAC,KAAK,CAAC;YACxB,OAAO,EAAE,KAAK,EAAE,MAA+B,EAAE,EAAC,MAAM,EAAC,EAAE,EAAE;gBACzD,IAAI,CAAC;oBACD,MAAM,IAAI,GAAG,MAAM,MAAM,CAAC,GAAG,CAAC,cAAc,CAAC,MAAM,EAAE,EAAC,MAAM,EAAC,CAAC,CAAC;oBAC/D,OAAO,EAAC,IAAI,EAAC,CAAC;gBAClB,CAAC;gBAAC,OAAO,KAAK,EAAE,CAAC;oBACb,OAAO,EAAC,KAAK,EAAC,CAAC;gBACnB,CAAC;YACL,CAAC;YACD,YAAY,EAAE,CAAC,KAAK,EAAE,EAAC,IAAI,EAAE,QAAQ,EAAE,EAAE,EAAE,MAAM,EAAC,CAAC;SACtD,CAAC;KACL,CAAC;IACF,gBAAgB,EAAE,OAAO;CAC5B,CAAC,CAAC;AAEH,MAAM,sBAAsB,GAAG,cAAc,CACzC,CAAC,MAA+B,EAAE,EAAE,CAAC,MAAM,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AEF,MAAM,CAAC,MAAM,oBAAoB,GAAG,cAAc,CAC9C,CAAC,KAAgB,EAAE,EAAE,CAAC,KAAK,EAC3B,CAAC,MAAiB,EAAE,MAA+B,EAAE,EAAE,CAAC,sBAAsB,CAAC,MAAM,CAAC,EACtF,CAAC,KAAK,EAAE,iBAAiB,EAAE,EAAE,CAAC,iBAAiB,CAAC,KAAK,CAAC,CAAC,IAAI,CAC9D,CAAC;AAEF,MAAM,CAAC,MAAM,qBAAqB,GAAG,cAAc,CAC/C,CAAC,KAAgB,EAAE,MAA+B,EAAE,EAAE,CAAC,oBAAoB,CAAC,KAAK,EAAE,MAAM,CAAC,EAC1F,CAAC,KAAgB,EAAE,EAAE,CAAC,kBAAkB,CAAC,KAAK,CAAC,EAC/C,CAAC,IAAI,EAAE,YAAY,EAA0C,EAAE;IAC3D,IAAI,CAAC,CAAA,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,eAAe,CAAA,EAAE,CAAC;QACzB,OAAO,EAAE,CAAC;IACd,CAAC;IACD,IAAI,CAAC,YAAY,EAAE,CAAC;QAChB,OAAO,IAAI,CAAC,eAAe,CAAC;IAChC,CAAC;IACD,OAAO,IAAI,CAAC,eAAe,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE;QACvC,MAAM,IAAI,GAAG,MAAM,CAAC,MAAM,KAAK,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,YAAY,CAAC,GAAG,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;QACvF,OAAO,EAAC,GAAG,MAAM,EAAE,IAAI,EAAC,CAAC;IAC7B,CAAC,CAAC,CAAC;AACP,CAAC,CACJ,CAAC"}
@@ -4,4 +4,4 @@
4
4
  export interface CapabilitiesResponse {
5
5
  Capabilities: Record<Partial<Capability>, number>;
6
6
  }
7
- export type Capability = '/pdisk/info' | '/scheme/directory' | '/storage/groups' | '/viewer/query' | '/viewer/feature_flags';
7
+ export type Capability = '/pdisk/info' | '/scheme/directory' | '/storage/groups' | '/viewer/query' | '/viewer/feature_flags' | '/viewer/nodes';
@@ -78,6 +78,7 @@ export interface TSystemStateInfo {
78
78
  DisconnectTime?: string;
79
79
  SharedCacheStats?: TNodeSharedCache;
80
80
  TotalSessions?: number;
81
+ NodeName?: string;
81
82
  }
82
83
  export type PoolName = 'System' | 'User' | 'Batch' | 'IO' | 'IC';
83
84
  export interface TPoolStats {
@@ -119,8 +120,8 @@ declare enum EConfigState {
119
120
  }
120
121
  type NodesType = 'static' | 'dynamic' | 'any';
121
122
  type NodesWithFilter = 'space' | 'missing' | 'all';
122
- type NodesGroupByField = 'NodeId' | 'Host' | 'NodeName' | 'Database' | 'DiskSpaceUsage' | 'DC' | 'Rack' | 'Missing' | 'Uptime' | 'Version';
123
- type NodesRequiredField = 'NodeId' | 'SystemState' | 'PDisks' | 'VDisks' | 'Tablets' | 'Host' | 'NodeName' | 'DC' | 'Rack' | 'Version' | 'Uptime' | 'Memory' | 'CPU' | 'LoadAverage' | 'Missing' | 'DiskSpaceUsage' | 'SubDomainKey' | 'DisconnectTime' | 'Database';
123
+ export type NodesGroupByField = 'NodeId' | 'Host' | 'NodeName' | 'Database' | 'DiskSpaceUsage' | 'DC' | 'Rack' | 'Missing' | 'Uptime' | 'Version';
124
+ export type NodesRequiredField = 'NodeId' | 'SystemState' | 'PDisks' | 'VDisks' | 'Tablets' | 'Host' | 'NodeName' | 'DC' | 'Rack' | 'Version' | 'Uptime' | 'Memory' | 'CPU' | 'LoadAverage' | 'Missing' | 'DiskSpaceUsage' | 'SubDomainKey' | 'DisconnectTime' | 'Database';
124
125
  export type NodesSortValue = 'NodeId' | 'Host' | 'NodeName' | 'DC' | 'Rack' | 'Version' | 'Uptime' | 'CPU' | 'LoadAverage' | 'Memory' | `Missing` | `DiskSpaceUsage` | `Database`;
125
126
  export type NodesSort = BackendSortParam<NodesSortValue>;
126
127
  export interface NodesRequestParams {
@@ -1 +1 @@
1
- {"version":3,"file":"nodes.js","sourceRoot":"","sources":["../../../src/types/api/nodes.ts"],"names":[],"mappings":"AAoIA,IAAK,YAGJ;AAHD,WAAK,YAAY;IACb,yCAA2B,CAAA;IAC3B,qCAAuB,CAAA;AAC3B,CAAC,EAHI,YAAY,KAAZ,YAAY,QAGhB"}
1
+ {"version":3,"file":"nodes.js","sourceRoot":"","sources":["../../../src/types/api/nodes.ts"],"names":[],"mappings":"AAqIA,IAAK,YAGJ;AAHD,WAAK,YAAY;IACb,yCAA2B,CAAA;IAC3B,qCAAuB,CAAA;AAC3B,CAAC,EAHI,YAAY,KAAZ,YAAY,QAGhB"}
@@ -108,9 +108,9 @@ export interface StorageGroupsResponse {
108
108
  FieldsAvailable?: number;
109
109
  FieldsRequired?: number;
110
110
  StorageGroups?: TGroupsStorageGroupInfo[];
111
- StorageGroupGroups?: StorageGroupGroups;
111
+ StorageGroupGroups?: StorageGroupGroups[];
112
112
  }
113
- interface StorageGroupGroups {
113
+ export interface StorageGroupGroups {
114
114
  GroupName?: string;
115
115
  GroupCount?: string;
116
116
  }
@@ -144,6 +144,24 @@ export interface TGroupsStorageGroupInfo {
144
144
  Write?: string;
145
145
  /** float */
146
146
  DiskSpaceUsage?: number;
147
+ /**
148
+ * uint64
149
+ *
150
+ * time in us
151
+ */
152
+ LatencyPutTabletLog?: string;
153
+ /**
154
+ * uint64
155
+ *
156
+ * time in us
157
+ */
158
+ LatencyPutUserData?: string;
159
+ /**
160
+ * uint64
161
+ *
162
+ * time in us
163
+ */
164
+ LatencyGetFast?: string;
147
165
  VDisks?: TStorageVDisk[];
148
166
  }
149
167
  /**
@@ -187,11 +205,11 @@ export type EVersion = 'v1' | 'v2';
187
205
  /**
188
206
  * Values to sort /viewer/storage v2 response
189
207
  */
190
- export type StorageV2SortValue = 'PoolName' | 'Kind' | 'MediaType' | 'Erasure' | 'Degraded' | 'Usage' | 'GroupId' | 'Used' | 'Limit' | 'Read' | 'Write';
208
+ export type StorageV2SortValue = 'PoolName' | 'Kind' | 'MediaType' | 'Erasure' | 'Degraded' | 'Usage' | 'GroupId' | 'Used' | 'Limit' | 'Read' | 'Write' | 'AllocationUnits' | 'Latency';
191
209
  /**
192
210
  * Values to sort /storage/groups response
193
211
  */
194
- export type GroupsSortField = StorageV2SortValue | 'MissingDisks' | 'State' | 'Available' | 'DiskSpaceUsage' | 'Encryption' | 'AllocationUnits' | 'Latency';
212
+ export type GroupsSortField = StorageV2SortValue | 'MissingDisks' | 'State' | 'Available' | 'DiskSpaceUsage' | 'Encryption';
195
213
  export type StorageV2Sort = BackendSortParam<StorageV2SortValue>;
196
214
  export type GroupsSort = BackendSortParam<GroupsSortField>;
197
215
  export type StorageWithFilter = 'space' | 'missing' | 'all';
@@ -1 +1 @@
1
- export type NodesMap = Map<number, string>;
1
+ export type NodeHostsMap = Map<number, string>;
@@ -5,8 +5,13 @@ export const useSelectedColumns = (columns, storageKey, columnsTitles, defaultCo
5
5
  return settingsManager.readUserSettingsValue(storageKey, defaultColumnsIds);
6
6
  });
7
7
  const columnsToShow = React.useMemo(() => {
8
- return columns.filter((column) => selectedColumnsIds.find((name) => name === column.name));
9
- }, [columns, selectedColumnsIds]);
8
+ return columns.filter((column) => {
9
+ const columnId = column.name;
10
+ const isSelected = selectedColumnsIds.includes(columnId);
11
+ const isRequired = requiredColumnsIds === null || requiredColumnsIds === void 0 ? void 0 : requiredColumnsIds.includes(columnId);
12
+ return isSelected || isRequired;
13
+ });
14
+ }, [columns, requiredColumnsIds, selectedColumnsIds]);
10
15
  const columnsToSelect = React.useMemo(() => {
11
16
  const columnsIds = columns.map((column) => column.name);
12
17
  return columnsIds.map((id) => {
@@ -1 +1 @@
1
- {"version":3,"file":"useSelectedColumns.js","sourceRoot":"","sources":["../../../src/utils/hooks/useSelectedColumns.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,EAAC,eAAe,EAAC,MAAM,yBAAyB,CAAC;AAExD,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAC9B,OAAY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AAC,EAAE,CAAC,CAAC;QAE7E,eAAe,CAAC,oBAAoB,CAAC,UAAU,EAAE,eAAe,CAAC,CAAC;QAClE,qBAAqB,CAAC,eAAe,CAAC,CAAC;IAC3C,CAAC,EACD,CAAC,UAAU,CAAC,CACf,CAAC;IAEF,OAAO;QACH,aAAa;QACb,eAAe;QACf,UAAU;KACb,CAAC;AACN,CAAC,CAAC"}
@@ -3,7 +3,7 @@ import type { NodesPreparedEntity } from '../store/reducers/nodes/types';
3
3
  import type { ProblemFilterValue } from '../store/reducers/settings/types';
4
4
  import type { NodesSortValue, TSystemStateInfo } from '../types/api/nodes';
5
5
  import type { TNodeInfo } from '../types/api/nodesList';
6
- import type { NodesMap } from '../types/store/nodesList';
6
+ import type { NodeHostsMap } from '../types/store/nodesList';
7
7
  export declare enum NodesUptimeFilterValues {
8
8
  'All' = "All",
9
9
  'SmallUptime' = "SmallUptime"
@@ -14,7 +14,7 @@ export declare const NodesUptimeFilterTitles: {
14
14
  SmallUptime: string;
15
15
  };
16
16
  export declare const isUnavailableNode: (node: NodesPreparedEntity | TSystemStateInfo) => boolean;
17
- export declare const prepareNodesMap: (nodesList?: TNodeInfo[]) => NodesMap | undefined;
17
+ export declare const prepareNodeHostsMap: (nodesList?: TNodeInfo[]) => NodeHostsMap | undefined;
18
18
  export declare function calculateLoadAveragePercents(node?: TSystemStateInfo): number[] | undefined;
19
19
  export interface PreparedNodeSystemState extends TSystemStateInfo {
20
20
  Rack?: string;
@@ -17,12 +17,12 @@ export const NodesUptimeFilterTitles = {
17
17
  [NodesUptimeFilterValues.SmallUptime]: 'Uptime < 1h',
18
18
  };
19
19
  export const isUnavailableNode = (node) => !node.SystemState || node.SystemState === EFlag.Grey;
20
- export const prepareNodesMap = (nodesList) => {
21
- return nodesList === null || nodesList === void 0 ? void 0 : nodesList.reduce((nodesMap, node) => {
20
+ export const prepareNodeHostsMap = (nodesList) => {
21
+ return nodesList === null || nodesList === void 0 ? void 0 : nodesList.reduce((nodeHosts, node) => {
22
22
  if (node.Id && node.Host) {
23
- nodesMap.set(Number(node.Id), node.Host);
23
+ nodeHosts.set(Number(node.Id), node.Host);
24
24
  }
25
- return nodesMap;
25
+ return nodeHosts;
26
26
  }, new Map());
27
27
  };
28
28
  export function calculateLoadAveragePercents(node = {}) {
@@ -1 +1 @@
1
- {"version":3,"file":"nodes.js","sourceRoot":"","sources":["../../src/utils/nodes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AAGtB,OAAO,EAAC,mBAAmB,EAAC,MAAM,qCAAqC,CAAC;AAExE,OAAO,EAAC,KAAK,EAAC,MAAM,oBAAoB,CAAC;AAKzC,OAAO,EAAC,eAAe,EAAC,MAAM,aAAa,CAAC;AAC5C,OAAO,EAAC,UAAU,EAAC,MAAM,iCAAiC,CAAC;AAE3D,OAAO,EAAC,cAAc,EAAC,MAAM,GAAG,CAAC;AAEjC,MAAM,CAAN,IAAY,uBAGX;AAHD,WAAY,uBAAuB;IAC/B,sCAAa,CAAA;IACb,sDAA6B,CAAA;AACjC,CAAC,EAHW,uBAAuB,KAAvB,uBAAuB,QAGlC;AAED,MAAM,CAAC,MAAM,6BAA6B,GAAG,CAAC;KACzC,UAAU,CAAC,uBAAuB,CAAC;KACnC,KAAK,CAAC,uBAAuB,CAAC,GAAG,CAAC,CAAC;AAExC,MAAM,CAAC,MAAM,uBAAuB,GAAG;IACnC,CAAC,uBAAuB,CAAC,GAAG,CAAC,EAAE,KAAK;IACpC,CAAC,uBAAuB,CAAC,WAAW,CAAC,EAAE,aAAa;CACvD,CAAC;AAEF,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,IAA4C,EAAE,EAAE,CAC9E,CAAC,IAAI,CAAC,WAAW,IAAI,IAAI,CAAC,WAAW,KAAK,KAAK,CAAC,IAAI,CAAC;AAEzD,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,SAAuB,EAAE,EAAE;IACvD,OAAO,SAAS,aAAT,SAAS,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];
19
21
  export const isSortableStorageProperty = (value) => STORAGE_SORT_VALUES.includes(value);
20
22
  //# sourceMappingURL=storage.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"storage.js","sourceRoot":"","sources":["../../src/utils/storage.ts"],"names":[],"mappings":"AAOA,MAAM,CAAC,MAAM,QAAQ,GAAG,CAA4B,IAAO,EAAE,IAAI,GAAG,CAAC,EAAE,EAAE;IACrE,2BAA2B;IAC3B,MAAM,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,GAAG,GAAG,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;IAE9D,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,GAAG,IAAI,CAAC,GAAG,IAAI,CAAC;AAC3C,CAAC,CAAC;AAEF,MAAM,mBAAmB,GAAyB;IAC9C,UAAU;IACV,MAAM;IACN,WAAW;IACX,SAAS;IACT,UAAU;IACV,OAAO;IACP,SAAS;IACT,MAAM;IACN,OAAO;IACP,MAAM;IACN,OAAO;CACV,CAAC;AAEF,MAAM,CAAC,MAAM,yBAAyB,GAAG,CAAC,KAAc,EAA+B,EAAE,CACrF,mBAAmB,CAAC,QAAQ,CAAC,KAA2B,CAAC,CAAC"}
1
+ {"version":3,"file":"storage.js","sourceRoot":"","sources":["../../src/utils/storage.ts"],"names":[],"mappings":"AAOA,MAAM,CAAC,MAAM,QAAQ,GAAG,CAA4B,IAAO,EAAE,IAAI,GAAG,CAAC,EAAE,EAAE;IACrE,2BAA2B;IAC3B,MAAM,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,GAAG,GAAG,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;IAE9D,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,GAAG,IAAI,CAAC,GAAG,IAAI,CAAC;AAC3C,CAAC,CAAC;AAEF,MAAM,mBAAmB,GAAyB;IAC9C,UAAU;IACV,MAAM;IACN,WAAW;IACX,SAAS;IACT,UAAU;IACV,OAAO;IACP,SAAS;IACT,MAAM;IACN,OAAO;IACP,MAAM;IACN,OAAO;IAEP,iBAAiB;IACjB,SAAS;CACZ,CAAC;AAEF,MAAM,CAAC,MAAM,yBAAyB,GAAG,CAAC,KAAc,EAA+B,EAAE,CACrF,mBAAmB,CAAC,QAAQ,CAAC,KAA2B,CAAC,CAAC"}
@@ -56,7 +56,8 @@ function bytesToMB(bytes) {
56
56
  }
57
57
  }
58
58
  export function bytesToSpeed(bytes) {
59
- return `${bytesToMB(bytes)}${bytes ? 'ps' : ''}`;
59
+ const speed = bytesToMB(bytes);
60
+ return `${speed}${speed ? 'ps' : ''}`;
60
61
  }
61
62
  export function bytesToGB(bytes, shouldRound) {
62
63
  const bytesNumber = Number(bytes);
@@ -1 +1 @@
1
- {"version":3,"file":"utils.js","sourceRoot":"","sources":["../../src/utils/utils.ts"],"names":[],"mappings":"AAAA,MAAM,UAAU,SAAS,CAAC,KAAqB;IAC3C,IAAI,CAAC,KAAK,EAAE,CAAC;QACT,OAAO,SAAS,CAAC;IACrB,CAAC;IACD,IAAI,CAAC;QACD,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;IAC7B,CAAC;IAAC,OAAO,GAAG,EAAE,CAAC;QACX,OAAO,KAAK,CAAC;IACjB,CAAC;AACL,CAAC;AAED,MAAM,UAAU,cAAc,CAAC,GAAW,EAAE,YAAoB;;IAC5D,IAAI,CAAC;QACD,OAAO,MAAA,YAAY,CAAC,OAAO,CAAC,GAAG,CAAC,mCAAI,YAAY,CAAC;IACrD,CAAC;IAAC,OAAO,GAAG,EAAE,CAAC;QACX,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;IACrB,CAAC;IACD,OAAO;AACX,CAAC;AAED,MAAM,KAAK,GAAG,CAAC,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EA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
3
- "version": "6.22.0",
3
+ "version": "6.23.1",
4
4
  "files": [
5
5
  "dist"
6
6
  ],
@@ -1,16 +0,0 @@
1
- import type { RenderControls, RenderErrorMessage } from '../../../components/PaginatedTable';
2
- import type { VisibleEntities } from '../../../store/reducers/storage/types';
3
- import type { StorageGroupsColumn } from './columns/types';
4
- interface PaginatedStorageGroupsProps {
5
- columns: StorageGroupsColumn[];
6
- searchValue: string;
7
- visibleEntities: VisibleEntities;
8
- database?: string;
9
- nodeId?: string;
10
- onShowAll: VoidFunction;
11
- parentContainer?: Element | null;
12
- renderControls: RenderControls;
13
- renderErrorMessage: RenderErrorMessage;
14
- }
15
- export declare const PaginatedStorageGroups: ({ columns, searchValue, visibleEntities, database, nodeId, onShowAll, parentContainer, renderControls, renderErrorMessage, }: PaginatedStorageGroupsProps) => import("react/jsx-runtime").JSX.Element;
16
- export {};
@@ -1 +0,0 @@
1
- {"version":3,"file":"PaginatedStorageGroups.js","sourceRoot":"","sources":["../../../../src/containers/Storage/StorageGroups/PaginatedStorageGroups.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAC,aAAa,EAAC,MAAM,iDAAiD,CAAC;AAE9E,OAAO,EAAC,wBAAwB,EAAC,MAAM,oCAAoC,CAAC;AAC5E,OAAO,EACH,qBAAqB,EACrB,gCAAgC,GACnC,MAAM,4CAA4C,CAAC;AACpD,OAAO,EAAC,gBAAgB,EAAC,MAAM,2CAA2C,CAAC;AAG3E,OAAO,EAAC,6BAA6B,EAAC,MAAM,iCAAiC,CAAC;AAC9E,OAAO,EAAC,mCAAmC,EAAC,MAAM,qBAAqB,CAAC;AAExE,OAAO,EAAC,eAAe,EAAC,MAAM,aAAa,CAAC;AAC5C,OAAO,IAAI,MAAM,QAAQ,CAAC;AAiB1B,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,EACnC,OAAO,EACP,WAAW,EACX,eAAe,EACf,QAAQ,EACR,MAAM,EACN,SAAS,EACT,eAAe,EACf,cAAc,EACd,kBAAkB,GACQ,EAAE,EAAE;IAC9B,MAAM,kBAAkB,GAAG,qBAAqB,EAAE,CAAC;IACnD,MAAM,sBAAsB,GAAG,gCAAgC,EAAE,CAAC;IAElE,MAAM,SAAS,GAAG,eAAe,CAAC,sBAAsB,CAAC,CAAC;IAE1D,MAAM,YAAY,GAAG,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE;QACpC,OAAO,EAAC,WAAW,EAAE,eAAe,EAAE,QAAQ,EAAE,MAAM,EAAC,CAAC;IAC5D,CAAC,EAAE,CAAC,WAAW,EAAE,eAAe,EAAE,QAAQ,EAAE,MAAM,CAAC,CAAC,CAAC;IAErD,MAAM,sBAAsB,GAAG,GAAG,EAAE;QAChC,IAAI,eAAe,KAAK,gBAAgB,CAAC,GAAG,EAAE,CAAC;YAC3C,OAAO,CACH,KAAC,6BAA6B,IAC1B,SAAS,EAAE,SAAS,EACpB,eAAe,EAAE,eAAe,GAClC,CACL,CAAC;QACN,CAAC;QAED,OAAO,IAAI,CAAC,eAAe,CAAC,CAAC;IACjC,CAAC,CAAC;IAEF,OAAO,CACH,KAAC,aAAa,IAAC,OAAO,EAAE,CAAC,kBAAkB,YACvC,KAAC,wBAAwB,IACrB,iBAAiB,EAAE,mCAAmC,EACtD,eAAe,EAAE,eAAe,EAChC,OAAO,EAAE,OAAO,EAChB,SAAS,EAAE,SAAS,EACpB,KAAK,EAAE,EAAE,EACT,cAAc,EAAE,cAAc,EAC9B,kBAAkB,EAAE,kBAAkB,EACtC,sBAAsB,EAAE,sBAAsB,EAC9C,OAAO,EAAE,YAAY,EACrB,SAAS,EAAC,gBAAgB,GAC5B,GACU,CACnB,CAAC;AACN,CAAC,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"StorageGroups.js","sourceRoot":"","sources":["../../../../src/containers/Storage/StorageGroups/StorageGroups.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAC,mBAAmB,EAAC,MAAM,6DAA6D,CAAC;AAChG,OAAO,EAAC,gBAAgB,EAAC,MAAM,2CAA2C,CAAC;AAI3E,OAAO,EAAC,6BAA6B,EAAC,MAAM,iCAAiC,CAAC;AAC9E,OAAO,EAAC,mCAAmC,EAAC,MAAM,qBAAqB,CAAC;AAExE,OAAO,IAAI,MAAM,QAAQ,CAAC;AAY1B,MAAM,UAAU,aAAa,CAAC,EAC1B,IAAI,EACJ,OAAO,EACP,aAAa,EACb,eAAe,EACf,SAAS,EACT,IAAI,EACJ,UAAU,GACO;IACjB,IAAI,CAAC,IAAI,CAAC,MAAM,IAAI,eAAe,KAAK,gBAAgB,CAAC,GAAG,EAAE,CAAC;QAC3D,OAAO,CACH,KAAC,6BAA6B,IAC1B,SAAS,EAAE,SAAS,EACpB,eAAe,EAAE,eAAe,GAClC,CACL,CAAC;IACN,CAAC;IAED,OAAO,CACH,KAAC,mBAAmB,IAChB,iBAAiB,EAAE,mCAAmC,EAEtD,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,OAAO,EAChB,QAAQ,EAAE,aAAa,EACvB,gBAAgB,EAAE,IAAI,CAAC,eAAe,CAAC,EACvC,SAAS,EAAE,IAAI,EACf,MAAM,EAAE,UAAU,IANb,eAAe,CAOtB,CACL,CAAC;AACN,CAAC"}
@@ -1,17 +0,0 @@
1
- import type { RenderControls, RenderErrorMessage } from '../../../components/PaginatedTable';
2
- import type { VisibleEntities } from '../../../store/reducers/storage/types';
3
- import { NodesUptimeFilterValues } from '../../../utils/nodes';
4
- import type { StorageNodesColumn } from './columns/types';
5
- interface PaginatedStorageNodesProps {
6
- columns: StorageNodesColumn[];
7
- searchValue: string;
8
- visibleEntities: VisibleEntities;
9
- nodesUptimeFilter: NodesUptimeFilterValues;
10
- database?: string;
11
- onShowAll: VoidFunction;
12
- parentContainer?: Element | null;
13
- renderControls: RenderControls;
14
- renderErrorMessage: RenderErrorMessage;
15
- }
16
- export declare const PaginatedStorageNodes: ({ columns, searchValue, visibleEntities, nodesUptimeFilter, database, onShowAll, parentContainer, renderControls, renderErrorMessage, }: PaginatedStorageNodesProps) => import("react/jsx-runtime").JSX.Element;
17
- export {};
@@ -1 +0,0 @@
1
- {"version":3,"file":"PaginatedStorageNodes.js","sourceRoot":"","sources":["../../../../src/containers/Storage/StorageNodes/PaginatedStorageNodes.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAC,wBAAwB,EAAC,MAAM,oCAAoC,CAAC;AAC5E,OAAO,EAAC,gBAAgB,EAAC,MAAM,2CAA2C,CAAC;AAE3E,OAAO,EAAC,uBAAuB,EAAC,MAAM,sBAAsB,CAAC;AAE7D,OAAO,EAAC,4BAA4B,EAAC,MAAM,gCAAgC,CAAC;AAC5E,OAAO,EAAC,kCAAkC,EAAC,MAAM,qBAAqB,CAAC;AAEvE,OAAO,EAAC,eAAe,EAAC,MAAM,YAAY,CAAC;AAC3C,OAAO,IAAI,MAAM,QAAQ,CAAC;AAC1B,OAAO,EAAC,0BAA0B,EAAC,MAAM,UAAU,CAAC;AAiBpD,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,EAClC,OAAO,EACP,WAAW,EACX,eAAe,EACf,iBAAiB,EACjB,QAAQ,EACR,SAAS,EACT,eAAe,EACf,cAAc,EACd,kBAAkB,GACO,EAAE,EAAE;IAC7B,MAAM,YAAY,GAAG,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE;QACpC,OAAO,EAAC,WAAW,EAAE,eAAe,EAAE,iBAAiB,EAAE,QAAQ,EAAC,CAAC;IACvE,CAAC,EAAE,CAAC,WAAW,EAAE,eAAe,EAAE,iBAAiB,EAAE,QAAQ,CAAC,CAAC,CAAC;IAEhE,MAAM,sBAAsB,GAAG,GAAG,EAAE;QAChC,IACI,eAAe,KAAK,gBAAgB,CAAC,GAAG;YACxC,iBAAiB,KAAK,uBAAuB,CAAC,GAAG,EACnD,CAAC;YACC,OAAO,CACH,KAAC,4BAA4B,IACzB,SAAS,EAAE,SAAS,EACpB,iBAAiB,EAAE,iBAAiB,EACpC,eAAe,EAAE,eAAe,GAClC,CACL,CAAC;QACN,CAAC;QAED,OAAO,IAAI,CAAC,eAAe,CAAC,CAAC;IACjC,CAAC,CAAC;IAEF,OAAO,CACH,KAAC,wBAAwB,IACrB,iBAAiB,EAAE,kCAAkC,EACrD,eAAe,EAAE,eAAe,EAChC,OAAO,EAAE,OAAO,EAChB,SAAS,EAAE,eAAe,EAC1B,SAAS,EAAE,EAAE,EACb,KAAK,EAAE,EAAE,EACT,cAAc,EAAE,cAAc,EAC9B,kBAAkB,EAAE,kBAAkB,EACtC,sBAAsB,EAAE,sBAAsB,EAC9C,eAAe,EAAE,0BAA0B,EAC3C,OAAO,EAAE,YAAY,EACrB,SAAS,EAAC,eAAe,GAC3B,CACL,CAAC;AACN,CAAC,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"StorageNodes.js","sourceRoot":"","sources":["../../../../src/containers/Storage/StorageNodes/StorageNodes.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAC,mBAAmB,EAAC,MAAM,6DAA6D,CAAC;AAChG,OAAO,EAAC,gBAAgB,EAAC,MAAM,2CAA2C,CAAC;AAG3E,OAAO,EAAC,uBAAuB,EAAC,MAAM,sBAAsB,CAAC;AAE7D,OAAO,EAAC,4BAA4B,EAAC,MAAM,gCAAgC,CAAC;AAC5E,OAAO,EAAC,kCAAkC,EAAC,MAAM,qBAAqB,CAAC;AAEvE,OAAO,IAAI,MAAM,QAAQ,CAAC;AAC1B,OAAO,EAAC,0BAA0B,EAAC,MAAM,UAAU,CAAC;AAapD,MAAM,UAAU,YAAY,CAAC,EACzB,IAAI,EACJ,OAAO,EACP,aAAa,EACb,eAAe,EACf,iBAAiB,EACjB,IAAI,EACJ,SAAS,EACT,UAAU,GACM;IAChB,IACI,CAAC,IAAI,CAAC,MAAM;QACZ,CAAC,eAAe,KAAK,gBAAgB,CAAC,GAAG;YACrC,iBAAiB,KAAK,uBAAuB,CAAC,GAAG,CAAC,EACxD,CAAC;QACC,OAAO,CACH,KAAC,4BAA4B,IACzB,eAAe,EAAE,eAAe,EAChC,iBAAiB,EAAE,iBAAiB,EACpC,SAAS,EAAE,SAAS,GACtB,CACL,CAAC;IACN,CAAC;IAED,OAAO,CACH,KAAC,mBAAmB,IAChB,iBAAiB,EAAE,kCAAkC,EAErD,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,OAAO,EAChB,QAAQ,EAAE;YACN,GAAG,aAAa;YAChB,iBAAiB,EAAE,UAAU;SAChC,EACD,gBAAgB,EAAE,IAAI,CAAC,eAAe,CAAC,EACvC,YAAY,EAAE,0BAA0B,EACxC,SAAS,EAAE,IAAI,EACf,MAAM,EAAE,UAAU,IAVb,eAAyB,CAWhC,CACL,CAAC;AACN,CAAC"}
@@ -1,14 +0,0 @@
1
- import './UsageFilter.scss';
2
- export interface UsageFilterItem {
3
- threshold: number;
4
- count: number;
5
- }
6
- interface UsageFilterProps {
7
- className?: string;
8
- value?: string[];
9
- groups?: UsageFilterItem[];
10
- onChange?: (value: string[]) => void;
11
- debounce?: number;
12
- }
13
- export declare const UsageFilter: (props: UsageFilterProps) => import("react/jsx-runtime").JSX.Element;
14
- export {};
@@ -1,39 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import React from 'react';
3
- import { Select } from '@gravity-ui/uikit';
4
- import { EntityStatus } from '../../../components/EntityStatus/EntityStatus';
5
- import { cn } from '../../../utils/cn';
6
- import { getUsageSeverityForEntityStatus } from '../utils';
7
- import i18n from './i18n';
8
- import './UsageFilter.scss';
9
- const b = cn('usage-filter');
10
- export const UsageFilter = (props) => {
11
- const { className, value = [], groups = [], onChange, debounce = 200 } = props;
12
- const [filterValue, setFilterValue] = React.useState(value);
13
- const timer = React.useRef();
14
- React.useEffect(() => {
15
- // sync inner state with external value
16
- setFilterValue((prevValue) => {
17
- if (prevValue.join(',') !== value.join(',')) {
18
- return value;
19
- }
20
- return prevValue;
21
- });
22
- }, [value]);
23
- const options = React.useMemo(() => groups.map(({ threshold, count }) => ({
24
- value: String(threshold),
25
- text: `${threshold}%`,
26
- data: { count },
27
- })), [groups]);
28
- const handleUpdate = (newValue) => {
29
- setFilterValue(newValue);
30
- window.clearTimeout(timer.current);
31
- timer.current = window.setTimeout(() => {
32
- onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
33
- }, debounce);
34
- };
35
- const maxWidth = Math.max(...groups.map(({ count }) => count));
36
- const renderOption = ({ value: optionValue, data, text }) => (_jsxs("div", { className: b('option'), children: [_jsx(EntityStatus, { className: b('option-title'), status: getUsageSeverityForEntityStatus(Number(optionValue)), name: text, size: "xs" }), _jsxs("div", { className: b('option-meta'), children: [i18n('groups_count', { count: data.count }), _jsx("div", { className: b('option-bar'), style: { width: `${(data.count / maxWidth) * 100}%` } })] })] }));
37
- return (_jsx(Select, { className: b(null, className), label: i18n('label'), value: filterValue, placeholder: i18n('default_value'), options: options, multiple: true, onUpdate: handleUpdate, renderOption: renderOption, getOptionHeight: () => 50, popupWidth: 280, disabled: groups.length === 0 }));
38
- };
39
- //# sourceMappingURL=UsageFilter.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"UsageFilter.js","sourceRoot":"","sources":["../../../../src/containers/Storage/UsageFilter/UsageFilter.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAC,MAAM,EAAC,MAAM,mBAAmB,CAAC;AAEzC,OAAO,EAAC,YAAY,EAAC,MAAM,+CAA+C,CAAC;AAC3E,OAAO,EAAC,EAAE,EAAC,MAAM,mBAAmB,CAAC;AACrC,OAAO,EAAC,+BAA+B,EAAC,MAAM,UAAU,CAAC;AAEzD,OAAO,IAAI,MAAM,QAAQ,CAAC;AAE1B,OAAO,oBAAoB,CAAC;AAe5B,MAAM,CAAC,GAAG,EAAE,CAAC,cAAc,CAAC,CAAC;AAE7B,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,KAA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AC/B,CACL,CAAC;AACN,CAAC,CAAC"}
@@ -1,38 +0,0 @@
1
- @import '../../../styles/mixins.scss';
2
-
3
- .usage-filter {
4
- min-width: 100px;
5
-
6
- &__option {
7
- flex-grow: 1;
8
-
9
- &-title {
10
- height: var(--g-text-body-1-line-height);
11
-
12
- @include body-1-typography();
13
- }
14
-
15
- &-meta {
16
- position: relative;
17
- z-index: 0;
18
-
19
- padding: 0 5px;
20
-
21
- font-size: var(--g-text-caption-2-font-size);
22
- line-height: var(--g-text-caption-2-line-height);
23
-
24
- border-radius: 3px;
25
- }
26
-
27
- &-bar {
28
- position: absolute;
29
- z-index: -1;
30
- top: 0;
31
- bottom: 0;
32
- left: 0;
33
-
34
- border-radius: 3px;
35
- background-color: var(--g-color-base-info-medium);
36
- }
37
- }
38
- }
@@ -1,5 +0,0 @@
1
- {
2
- "label": "Usage:",
3
- "default_value": "Any",
4
- "groups_count": ["{{count}} group", "{{count}} groups", "{{count}} groups", "No groups"]
5
- }
@@ -1,2 +0,0 @@
1
- declare const _default: (key: "label" | "default_value" | "groups_count", params?: import("@gravity-ui/i18n").Params) => string;
2
- export default _default;
@@ -1,6 +0,0 @@
1
- import { registerKeysets } from '../../../../utils/i18n';
2
- import en from './en.json';
3
- import ru from './ru.json';
4
- const COMPONENT = 'ydb-usage-filter';
5
- export default registerKeysets(COMPONENT, { ru, en });
6
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/containers/Storage/UsageFilter/i18n/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,eAAe,EAAC,MAAM,wBAAwB,CAAC;AAEvD,OAAO,EAAE,MAAM,WAAW,CAAC;AAC3B,OAAO,EAAE,MAAM,WAAW,CAAC;AAE3B,MAAM,SAAS,GAAG,kBAAkB,CAAC;AAErC,eAAe,eAAe,CAAC,SAAS,EAAE,EAAC,EAAE,EAAE,EAAE,EAAC,CAAC,CAAC"}
@@ -1,5 +0,0 @@
1
- {
2
- "label": "Использование:",
3
- "default_value": "Любое",
4
- "groups_count": ["{{count}} группа", "{{count}} группы", "{{count}} групп", "Нет групп"]
5
- }
@@ -1 +0,0 @@
1
- export * from './UsageFilter';
@@ -1,2 +0,0 @@
1
- export * from './UsageFilter';
2
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/containers/Storage/UsageFilter/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC"}
@@ -1,6 +0,0 @@
1
- {
2
- "groups": "Группы",
3
- "nodes": "Ноды",
4
- "controls_groups-search-placeholder": "ID группы, имя пула",
5
- "controls_nodes-search-placeholder": "ID узла, FQDN"
6
- }
@@ -1,4 +0,0 @@
1
- {
2
- "no-data": "Нет данных",
3
- "filter.text.placeholder": "Искать по тексту запроса..."
4
- }
@@ -1 +0,0 @@
1
- {"version":3,"file":"queryTemplates.js","sourceRoot":"","sources":["../../../../src/containers/Tenant/utils/queryTemplates.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,IAAY,EAAE,EAAE;IAChD,OAAO;iBACM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA6BnB,CAAC;AACH,CAAC,CAAC;AACF,MAAM,CAAC,MAAM,yBAAyB,GAAG,CAAC,IAAY,EAAE,EAAE;IACtD,OAAO;iBACM,IAAI;;;;;;;;sBAQC,CAAC;AACvB,CAAC,CAAC;AACF,MAAM,CAAC,MAAM,8BAA8B,GAAG,GAAG,EAAE;IAC/C,OAAO;;;;;;;;;;;GAWR,CAAC;AACJ,CAAC,CAAC;AACF,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,IAAY,EAAE,EAAE;IAC/C,OAAO,iBAAiB,IAAI;qCACK,CAAC;AACtC,CAAC,CAAC;AACF,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,IAAY,EAAE,EAAE;IAChD,OAAO;aACE,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AM,CAAC,MAAM,4BAA4B,GAAG,CAAC,IAAY,EAAE,EAAE;IACzD,OAAO,4BAA4B,IAAI,KAAK,CAAC;AACjD,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,6BAA6B,GAAG,CAAC,IAAY,EAAE,EAAE;IAC1D,OAAO,6BAA6B,IAAI,mDAAmD,CAAC;AAChG,CAAC,CAAC"}
@@ -1,7 +0,0 @@
1
- import type { IDescribeData } from '../../types/store/describe';
2
- export declare const describeApi: import("@reduxjs/toolkit/query").Api<import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("./api")._NEVER, unknown, {}>, {
3
- getDescribe: import("@reduxjs/toolkit/query").QueryDefinition<{
4
- paths: string[];
5
- database: string;
6
- }, import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("./api")._NEVER, unknown, {}>, "All" | "PDiskData" | "PreviewData" | "StorageData" | "Tablet" | "UserData" | "VDiskData", IDescribeData | undefined, "api">;
7
- }, "api", "All" | "PDiskData" | "PreviewData" | "StorageData" | "Tablet" | "UserData" | "VDiskData", typeof import("@reduxjs/toolkit/query").coreModuleName | typeof import("@reduxjs/toolkit/query/react").reactHooksModuleName>;
@@ -1,25 +0,0 @@
1
- import { api } from './api';
2
- export const describeApi = api.injectEndpoints({
3
- endpoints: (build) => ({
4
- getDescribe: build.query({
5
- queryFn: async ({ paths, database }, { signal }) => {
6
- try {
7
- const response = await Promise.all(paths.map((p) => window.api.getDescribe({ path: p, database }, { signal })));
8
- const data = response.reduce((acc, item) => {
9
- if (item === null || item === void 0 ? void 0 : item.Path) {
10
- acc[item.Path] = item;
11
- }
12
- return acc;
13
- }, {});
14
- return { data };
15
- }
16
- catch (error) {
17
- return { error };
18
- }
19
- },
20
- providesTags: ['All'],
21
- }),
22
- }),
23
- overrideExisting: 'throw',
24
- });
25
- //# sourceMappingURL=describe.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"describe.js","sourceRoot":"","sources":["../../../src/store/reducers/describe.ts"],"names":[],"mappings":"AAEA,OAAO,EAAC,GAAG,EAAC,MAAM,OAAO,CAAC;AAE1B,MAAM,CAAC,MAAM,WAAW,GAAG,GAAG,CAAC,eAAe,CAAC;IAC3C,SAAS,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;QACnB,WAAW,EAAE,KAAK,CAAC,KAAK,CAAC;YACrB,OAAO,EAAE,KAAK,EAAE,EAAC,KAAK,EAAE,QAAQ,EAAsC,EAAE,EAAC,MAAM,EAAC,EAAE,EAAE;gBAChF,IAAI,CAAC;oBACD,MAAM,QAAQ,GAAG,MAAM,OAAO,CAAC,GAAG,CAC9B,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,MAAM,CAAC,GAAG,CAAC,WAAW,CAAC,EAAC,IAAI,EAAE,CAAC,EAAE,QAAQ,EAAC,EAAE,EAAC,MAAM,EAAC,CAAC,CAAC,CAC1E,CAAC;oBACF,MAAM,IAAI,GAAG,QAAQ,CAAC,MAAM,CAAgB,CAAC,GAAG,EAAE,IAAI,EAAE,EAAE;wBACtD,IAAI,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,IAAI,EAAE,CAAC;4BACb,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC;wBAC1B,CAAC;wBACD,OAAO,GAAG,CAAC;oBACf,CAAC,EAAE,EAAE,CAAC,CAAC;oBACP,OAAO,EAAC,IAAI,EAAC,CAAC;gBAClB,CAAC;gBAAC,OAAO,KAAK,EAAE,CAAC;oBACb,OAAO,EAAC,KAAK,EAAC,CAAC;gBACnB,CAAC;YACL,CAAC;YACD,YAAY,EAAE,CAAC,KAAK,CAAC;SACxB,CAAC;KACL,CAAC;IACF,gBAAgB,EAAE,OAAO;CAC5B,CAAC,CAAC"}