ydb-embedded-ui 7.2.0 → 8.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (220) 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/containers/Cluster/Cluster.js +2 -2
  5. package/dist/containers/Cluster/Cluster.js.map +1 -1
  6. package/dist/containers/Cluster/ClusterInfo/ClusterInfo.js +24 -8
  7. package/dist/containers/Cluster/ClusterInfo/ClusterInfo.js.map +1 -1
  8. package/dist/containers/Cluster/ClusterInfo/ClusterInfo.scss +7 -26
  9. package/dist/containers/Cluster/ClusterInfo/utils.d.ts +2 -4
  10. package/dist/containers/Cluster/ClusterInfo/utils.js +2 -19
  11. package/dist/containers/Cluster/ClusterInfo/utils.js.map +1 -1
  12. package/dist/containers/Cluster/i18n/en.json +3 -1
  13. package/dist/containers/Cluster/i18n/index.d.ts +1 -1
  14. package/dist/containers/Node/Node.d.ts +0 -1
  15. package/dist/containers/Node/Node.js +5 -3
  16. package/dist/containers/Node/Node.js.map +1 -1
  17. package/dist/containers/Operations/Operations.js +2 -1
  18. package/dist/containers/Operations/Operations.js.map +1 -1
  19. package/dist/containers/PDiskPage/PDiskPage.js +5 -2
  20. package/dist/containers/PDiskPage/PDiskPage.js.map +1 -1
  21. package/dist/containers/ReduxTooltip/ReduxTooltip.scss +0 -30
  22. package/dist/containers/Storage/PaginatedStorage.d.ts +1 -1
  23. package/dist/containers/Storage/StorageGroups/columns/hooks.d.ts +0 -2
  24. package/dist/containers/Storage/StorageGroups/columns/hooks.js +2 -5
  25. package/dist/containers/Storage/StorageGroups/columns/hooks.js.map +1 -1
  26. package/dist/containers/Storage/StorageGroups/columns/types.d.ts +2 -2
  27. package/dist/containers/Storage/StorageNodes/PaginatedStorageNodesTable.d.ts +1 -0
  28. package/dist/containers/Storage/StorageNodes/PaginatedStorageNodesTable.js +5 -2
  29. package/dist/containers/Storage/StorageNodes/PaginatedStorageNodesTable.js.map +1 -1
  30. package/dist/containers/Storage/StorageNodes/columns/types.d.ts +1 -1
  31. package/dist/containers/Storage/StorageVisibleEntitiesFilter/StorageVisibleEntitiesFilter.d.ts +0 -5
  32. package/dist/containers/Storage/StorageVisibleEntitiesFilter/StorageVisibleEntitiesFilter.js +1 -1
  33. package/dist/containers/Storage/StorageVisibleEntitiesFilter/StorageVisibleEntitiesFilter.js.map +1 -1
  34. package/dist/containers/Storage/utils/index.d.ts +3 -6
  35. package/dist/containers/Storage/utils/index.js +7 -34
  36. package/dist/containers/Storage/utils/index.js.map +1 -1
  37. package/dist/containers/StorageGroupPage/StorageGroupPage.js +4 -2
  38. package/dist/containers/StorageGroupPage/StorageGroupPage.js.map +1 -1
  39. package/dist/containers/Tablet/Tablet.d.ts +0 -1
  40. package/dist/containers/Tablet/Tablet.js +1 -1
  41. package/dist/containers/Tablet/Tablet.js.map +1 -1
  42. package/dist/containers/Tablet/components/TabletInfo/i18n/index.d.ts +1 -1
  43. package/dist/containers/Tenant/Diagnostics/Diagnostics.js +2 -2
  44. package/dist/containers/Tenant/Diagnostics/Diagnostics.js.map +1 -1
  45. package/dist/containers/Tenant/Diagnostics/DiagnosticsPages.d.ts +0 -163
  46. package/dist/containers/Tenant/Diagnostics/DiagnosticsPages.js +10 -10
  47. package/dist/containers/Tenant/Diagnostics/DiagnosticsPages.js.map +1 -1
  48. package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/TopNodesByCpu.d.ts +0 -5
  49. package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/TopNodesByCpu.js +1 -1
  50. package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/TopNodesByCpu.js.map +1 -1
  51. package/dist/containers/Tenant/Diagnostics/TopQueries/utils.d.ts +2 -2
  52. package/dist/containers/Tenant/Diagnostics/TopShards/utils.d.ts +1 -1
  53. package/dist/containers/Tenant/Query/Issues/models.d.ts +2 -2
  54. package/dist/containers/Tenant/Query/Issues/models.js +2 -2
  55. package/dist/containers/Tenant/Query/Issues/models.js.map +1 -1
  56. package/dist/containers/Tenant/Query/QueryEditor/helpers.d.ts +0 -1
  57. package/dist/containers/Tenant/Query/QueryEditor/helpers.js +1 -1
  58. package/dist/containers/Tenant/Query/QueryEditor/helpers.js.map +1 -1
  59. package/dist/containers/Tenant/Query/QueryResult/components/PlanToSvgButton/PlanToSvgButton.js +49 -8
  60. package/dist/containers/Tenant/Query/QueryResult/components/PlanToSvgButton/PlanToSvgButton.js.map +1 -1
  61. package/dist/containers/Tenant/Query/QueryResult/i18n/en.json +2 -1
  62. package/dist/containers/Tenant/Query/QueryResult/i18n/index.d.ts +1 -1
  63. package/dist/containers/Tenant/Query/QuerySettingsDialog/constants.d.ts +0 -104
  64. package/dist/containers/Tenant/Query/QuerySettingsDialog/constants.js +4 -4
  65. package/dist/containers/Tenant/Query/QuerySettingsDialog/constants.js.map +1 -1
  66. package/dist/containers/Tenant/Schema/SchemaViewer/columns.d.ts +0 -12
  67. package/dist/containers/Tenant/Schema/SchemaViewer/columns.js +1 -1
  68. package/dist/containers/Tenant/Schema/SchemaViewer/columns.js.map +1 -1
  69. package/dist/containers/Tenant/Schema/SchemaViewer/prepareData.d.ts +1 -2
  70. package/dist/containers/Tenant/Schema/SchemaViewer/prepareData.js +1 -1
  71. package/dist/containers/Tenant/Schema/SchemaViewer/prepareData.js.map +1 -1
  72. package/dist/containers/Tenant/utils/schema.d.ts +0 -1
  73. package/dist/containers/Tenant/utils/schema.js +0 -18
  74. package/dist/containers/Tenant/utils/schema.js.map +1 -1
  75. package/dist/containers/UserSettings/i18n/en.json +1 -3
  76. package/dist/containers/UserSettings/i18n/index.d.ts +1 -1
  77. package/dist/containers/UserSettings/settings.d.ts +0 -1
  78. package/dist/containers/UserSettings/settings.js +2 -7
  79. package/dist/containers/UserSettings/settings.js.map +1 -1
  80. package/dist/containers/VDiskPage/VDiskPage.js +7 -2
  81. package/dist/containers/VDiskPage/VDiskPage.js.map +1 -1
  82. package/dist/containers/Versions/GroupedNodesTree/GroupedNodesTree.d.ts +0 -1
  83. package/dist/containers/Versions/GroupedNodesTree/GroupedNodesTree.js +1 -1
  84. package/dist/containers/Versions/GroupedNodesTree/GroupedNodesTree.js.map +1 -1
  85. package/dist/lib.d.ts +2 -2
  86. package/dist/lib.js +1 -1
  87. package/dist/lib.js.map +1 -1
  88. package/dist/routes.d.ts +2 -2
  89. package/dist/services/settings.d.ts +0 -1
  90. package/dist/services/settings.js +1 -2
  91. package/dist/services/settings.js.map +1 -1
  92. package/dist/store/reducers/cluster/cluster.d.ts +0 -164
  93. package/dist/store/reducers/cluster/cluster.js +1 -1
  94. package/dist/store/reducers/cluster/cluster.js.map +1 -1
  95. package/dist/store/reducers/cluster/types.d.ts +2 -6
  96. package/dist/store/reducers/executeTopQueries/types.d.ts +0 -3
  97. package/dist/store/reducers/healthcheckInfo/healthcheckInfo.d.ts +0 -195
  98. package/dist/store/reducers/healthcheckInfo/healthcheckInfo.js +1 -1
  99. package/dist/store/reducers/healthcheckInfo/healthcheckInfo.js.map +1 -1
  100. package/dist/store/reducers/nodes/types.d.ts +1 -6
  101. package/dist/store/reducers/query/types.d.ts +2 -1
  102. package/dist/store/reducers/schema/schema.d.ts +0 -6
  103. package/dist/store/reducers/schema/schema.js +1 -1
  104. package/dist/store/reducers/schema/schema.js.map +1 -1
  105. package/dist/store/reducers/shardsWorkload/types.d.ts +0 -3
  106. package/dist/store/reducers/storage/types.d.ts +1 -6
  107. package/dist/store/reducers/storage/types.js.map +1 -1
  108. package/dist/store/reducers/storage/utils.d.ts +2 -5
  109. package/dist/store/reducers/storage/utils.js +3 -3
  110. package/dist/store/reducers/storage/utils.js.map +1 -1
  111. package/dist/store/reducers/tableSchemaData.d.ts +2 -1
  112. package/dist/store/reducers/tablets.d.ts +0 -131
  113. package/dist/store/reducers/tablets.js +1 -1
  114. package/dist/store/reducers/tablets.js.map +1 -1
  115. package/dist/store/reducers/tenants/utils.d.ts +0 -11
  116. package/dist/store/reducers/tenants/utils.js +1 -14
  117. package/dist/store/reducers/tenants/utils.js.map +1 -1
  118. package/dist/store/reducers/tooltip.d.ts +1 -1
  119. package/dist/store/reducers/tooltip.js +1 -1
  120. package/dist/store/reducers/vdisk/types.d.ts +0 -2
  121. package/dist/types/additionalProps.d.ts +2 -2
  122. package/dist/types/api/error.d.ts +1 -1
  123. package/dist/types/components.d.ts +5 -0
  124. package/dist/types/components.js +2 -0
  125. package/dist/types/components.js.map +1 -0
  126. package/dist/types/index.d.ts +0 -1
  127. package/dist/types/index.js.map +1 -1
  128. package/dist/types/store/tablet.d.ts +1 -8
  129. package/dist/types/store/tablets.d.ts +0 -8
  130. package/dist/types/store/tooltip.d.ts +2 -4
  131. package/dist/utils/constants.d.ts +0 -38
  132. package/dist/utils/constants.js +1 -28
  133. package/dist/utils/constants.js.map +1 -1
  134. package/dist/utils/dataFormatters/__test__/formatUptime.test.js +39 -4
  135. package/dist/utils/dataFormatters/__test__/formatUptime.test.js.map +1 -1
  136. package/dist/utils/dataFormatters/dataFormatters.d.ts +6 -3
  137. package/dist/utils/dataFormatters/dataFormatters.js +34 -16
  138. package/dist/utils/dataFormatters/dataFormatters.js.map +1 -1
  139. package/dist/utils/dataFormatters/i18n/en.json +3 -1
  140. package/dist/utils/dataFormatters/i18n/index.d.ts +1 -1
  141. package/dist/utils/dataFormatters/i18n/index.js +1 -2
  142. package/dist/utils/dataFormatters/i18n/index.js.map +1 -1
  143. package/dist/utils/errors/i18n/en.json +3 -0
  144. package/dist/utils/errors/i18n/index.d.ts +2 -0
  145. package/dist/utils/errors/i18n/index.js +5 -0
  146. package/dist/utils/errors/i18n/index.js.map +1 -0
  147. package/dist/utils/errors/index.d.ts +6 -0
  148. package/dist/utils/errors/index.js +33 -0
  149. package/dist/utils/errors/index.js.map +1 -0
  150. package/dist/utils/hooks/useTableSort.d.ts +1 -1
  151. package/dist/utils/monitoring.d.ts +3 -2
  152. package/dist/utils/nodes.js.map +1 -1
  153. package/dist/utils/tablet.d.ts +0 -2
  154. package/dist/utils/tablet.js +0 -10
  155. package/dist/utils/tablet.js.map +1 -1
  156. package/dist/utils/tooltip.d.ts +0 -4
  157. package/dist/utils/tooltip.js +1 -23
  158. package/dist/utils/tooltip.js.map +1 -1
  159. package/dist/utils/utils.d.ts +0 -1
  160. package/dist/utils/utils.js +0 -10
  161. package/dist/utils/utils.js.map +1 -1
  162. package/package.json +2 -2
  163. package/dist/components/GroupInfo/GroupInfo.d.ts +0 -7
  164. package/dist/components/GroupInfo/GroupInfo.js +0 -27
  165. package/dist/components/GroupInfo/GroupInfo.js.map +0 -1
  166. package/dist/components/GroupInfo/i18n/en.json +0 -6
  167. package/dist/components/GroupInfo/i18n/index.d.ts +0 -1
  168. package/dist/components/GroupInfo/i18n/index.js +0 -5
  169. package/dist/components/GroupInfo/i18n/index.js.map +0 -1
  170. package/dist/components/QuerySettingsDescription/index.d.ts +0 -1
  171. package/dist/components/QuerySettingsDescription/index.js +0 -2
  172. package/dist/components/QuerySettingsDescription/index.js.map +0 -1
  173. package/dist/components/Tablet/Tablet.d.ts +0 -8
  174. package/dist/components/Tablet/Tablet.js +0 -18
  175. package/dist/components/Tablet/Tablet.js.map +0 -1
  176. package/dist/components/Tablet/Tablet.scss +0 -40
  177. package/dist/components/Tablet/index.d.ts +0 -1
  178. package/dist/components/Tablet/index.js +0 -2
  179. package/dist/components/Tablet/index.js.map +0 -1
  180. package/dist/components/TabletsOverall/TabletsOverall.d.ts +0 -8
  181. package/dist/components/TabletsOverall/TabletsOverall.js +0 -69
  182. package/dist/components/TabletsOverall/TabletsOverall.js.map +0 -1
  183. package/dist/components/TabletsOverall/TabletsOverall.scss +0 -18
  184. package/dist/containers/ClusterModeGuard/index.d.ts +0 -1
  185. package/dist/containers/ClusterModeGuard/index.js +0 -2
  186. package/dist/containers/ClusterModeGuard/index.js.map +0 -1
  187. package/dist/containers/Nodes/columns/hooks.d.ts +0 -6
  188. package/dist/containers/Nodes/columns/hooks.js +0 -12
  189. package/dist/containers/Nodes/columns/hooks.js.map +0 -1
  190. package/dist/containers/Nodes/index.d.ts +0 -1
  191. package/dist/containers/Nodes/index.js +0 -2
  192. package/dist/containers/Nodes/index.js.map +0 -1
  193. package/dist/containers/PDiskPage/shared.d.ts +0 -1
  194. package/dist/containers/PDiskPage/shared.js +0 -3
  195. package/dist/containers/PDiskPage/shared.js.map +0 -1
  196. package/dist/containers/Storage/Storage.d.ts +0 -17
  197. package/dist/containers/Storage/Storage.js +0 -101
  198. package/dist/containers/Storage/Storage.js.map +0 -1
  199. package/dist/containers/Storage/StorageGroups/StorageGroupsTable.d.ts +0 -14
  200. package/dist/containers/Storage/StorageGroups/StorageGroupsTable.js +0 -14
  201. package/dist/containers/Storage/StorageGroups/StorageGroupsTable.js.map +0 -1
  202. package/dist/containers/Storage/StorageNodes/StorageNodesTable.d.ts +0 -16
  203. package/dist/containers/Storage/StorageNodes/StorageNodesTable.js +0 -22
  204. package/dist/containers/Storage/StorageNodes/StorageNodesTable.js.map +0 -1
  205. package/dist/containers/Storage/StorageNodes/shared.d.ts +0 -3
  206. package/dist/containers/Storage/StorageNodes/shared.js +0 -5
  207. package/dist/containers/Storage/StorageNodes/shared.js.map +0 -1
  208. package/dist/containers/Storage/StorageWrapper.d.ts +0 -10
  209. package/dist/containers/Storage/StorageWrapper.js +0 -20
  210. package/dist/containers/Storage/StorageWrapper.js.map +0 -1
  211. package/dist/store/reducers/nodes/selectors.d.ts +0 -4
  212. package/dist/store/reducers/nodes/selectors.js +0 -13
  213. package/dist/store/reducers/nodes/selectors.js.map +0 -1
  214. package/dist/store/reducers/schema/types.d.ts +0 -10
  215. package/dist/store/reducers/schema/types.js +0 -2
  216. package/dist/store/reducers/schema/types.js.map +0 -1
  217. package/dist/store/reducers/storage/selectors.d.ts +0 -4
  218. package/dist/store/reducers/storage/selectors.js +0 -37
  219. package/dist/store/reducers/storage/selectors.js.map +0 -1
  220. package/dist/utils/dataFormatters/i18n/ru.json +0 -3
@@ -9,16 +9,6 @@ export function parseJson(value) {
9
9
  return value;
10
10
  }
11
11
  }
12
- export function getValueFromLS(key, defaultValue) {
13
- var _a;
14
- try {
15
- return (_a = localStorage.getItem(key)) !== null && _a !== void 0 ? _a : defaultValue;
16
- }
17
- catch (err) {
18
- console.log(err);
19
- }
20
- return;
21
- }
22
12
  const sizes = [' B', ' KB', ' MB', ' GB', ' TB', ' PB', ' EB'];
23
13
  const base = 1000;
24
14
  export function bytesToSize(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,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC;AAC/D,MAAM,IAAI,GAAG,IAAI,CAAC;AAElB,MAAM,UAAU,WAAW,CAAC,KAAa;IACrC,IAAI,KAAK,CAAC,KAAK,CAAC,EAAE,CAAC;QACf,OAAO,EAAE,CAAC;IACd,CAAC;IACD,IAAI,KAAK,GAAG,IAAI,EAAE,CAAC;QACf,OAAO,MAAM,CAAC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AC5B,KAAK,IAAI,CAAC,GAAG,GAAG,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;QAC3B,MAAM,GAAG,GAAG,GAAG,MAAM,CAAC;IAC1B,CAAC;IACD,OAAO,MAAM,CAAC;AAClB,CAAC;AAED,MAAM,UAAU,SAAS,CAAC,KAAe;IACrC,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE,CAAC;QAC5B,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;IACzB,CAAC;IACD,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE,CAAC;QAC5B,yCAAyC;QACzC,sEAAsE;QACtE,2DAA2D;QAC3D,OAAO,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC,CAAC;IAC9D,CAAC;IACD,OAAO,KAAK,CAAC;AACjB,CAAC;AAED,MAAM,UAAU,aAAa,CAAC,KAAa,EAAE,SAAkB;IAC3D,OAAO,MAAM,CAAC,KAAK,CAAC,CAAC,aAAa,CAAC,SAAS,CAAC,CAAC;AAClD,CAAC;AAED,MAAM,CAAC,MAAM,eAAe,GAAG,MAAM,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ydb-embedded-ui",
3
- "version": "7.2.0",
3
+ "version": "8.0.0",
4
4
  "files": [
5
5
  "dist"
6
6
  ],
@@ -69,7 +69,7 @@
69
69
  "lint:styles": "stylelint 'src/**/*.{css,scss}'",
70
70
  "lint:other": "npm run prettier -- --check",
71
71
  "prettier": "prettier '**/*.{json,yaml,yml,md}'",
72
- "unimported": "npx unimported --no-cache",
72
+ "unused": "npx knip --include dependencies,files,exports,types",
73
73
  "package": "rm -rf dist && tsc -p tsconfig.package.json && copyfiles -u 1 'src/**/*.{css,scss,svg}' dist",
74
74
  "test": "react-app-rewired test",
75
75
  "eject": "react-scripts eject",
@@ -1,7 +0,0 @@
1
- import type { PreparedStorageGroup } from '../../store/reducers/storage/types';
2
- import type { InfoViewerProps } from '../InfoViewer/InfoViewer';
3
- interface GroupInfoProps<T extends Partial<PreparedStorageGroup>> extends Omit<InfoViewerProps, 'info'> {
4
- data: T;
5
- }
6
- export declare function GroupInfo<T extends Partial<PreparedStorageGroup>>({ data, ...infoViewerProps }: GroupInfoProps<T>): import("react/jsx-runtime").JSX.Element;
7
- export {};
@@ -1,27 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import { valueIsDefined } from '../../utils';
3
- import { formatStorageValuesToGb } from '../../utils/dataFormatters/dataFormatters';
4
- import { InfoViewer } from '../InfoViewer';
5
- import { ProgressViewer } from '../ProgressViewer/ProgressViewer';
6
- import { groupInfoKeyset } from './i18n';
7
- export function GroupInfo({ data, ...infoViewerProps }) {
8
- const { GroupId, PoolName, Used, Limit, ErasureSpecies } = data;
9
- const groupInfo = [];
10
- if (valueIsDefined(GroupId)) {
11
- groupInfo.push({ label: groupInfoKeyset('group-id'), value: GroupId });
12
- }
13
- if (valueIsDefined(PoolName)) {
14
- groupInfo.push({ label: groupInfoKeyset('pool-name'), value: PoolName });
15
- }
16
- if (valueIsDefined(ErasureSpecies)) {
17
- groupInfo.push({ label: groupInfoKeyset('erasure'), value: ErasureSpecies });
18
- }
19
- if (Number(Used) >= 0 && Number(Limit) >= 0) {
20
- groupInfo.push({
21
- label: groupInfoKeyset('size'),
22
- value: (_jsx(ProgressViewer, { value: Used, capacity: Limit, formatValues: formatStorageValuesToGb, colorizeProgress: true })),
23
- });
24
- }
25
- return _jsx(InfoViewer, { info: groupInfo, ...infoViewerProps });
26
- }
27
- //# sourceMappingURL=GroupInfo.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"GroupInfo.js","sourceRoot":"","sources":["../../../src/components/GroupInfo/GroupInfo.tsx"],"names":[],"mappings":";AACA,OAAO,EAAC,cAAc,EAAC,MAAM,aAAa,CAAC;AAC3C,OAAO,EAAC,uBA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SACJ,CAAC,CAAC;IACP,CAAC;IAED,OAAO,KAAC,UAAU,IAAC,IAAI,EAAE,SAAS,KAAM,eAAe,GAAI,CAAC;AAChE,CAAC"}
@@ -1,6 +0,0 @@
1
- {
2
- "group-id": "Group ID",
3
- "pool-name": "Storage Pool Name",
4
- "size": "Size",
5
- "erasure": "Erasure"
6
- }
@@ -1 +0,0 @@
1
- export declare const groupInfoKeyset: (key: "size" | "pool-name" | "erasure" | "group-id", params?: import("@gravity-ui/i18n").Params) => string;
@@ -1,5 +0,0 @@
1
- import { registerKeysets } from '../../../utils/i18n';
2
- import en from './en.json';
3
- const COMPONENT = 'ydb-group-info';
4
- export const groupInfoKeyset = registerKeysets(COMPONENT, { en });
5
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/GroupInfo/i18n/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,eAAe,EAAC,MAAM,qBAAqB,CAAC;AAEpD,OAAO,EAAE,MAAM,WAAW,CAAC;AAE3B,MAAM,SAAS,GAAG,gBAAgB,CAAC;AAEnC,MAAM,CAAC,MAAM,eAAe,GAAG,eAAe,CAAC,SAAS,EAAE,EAAC,EAAE,EAAC,CAAC,CAAC"}
@@ -1 +0,0 @@
1
- export * from './QuerySettingsDescription';
@@ -1,2 +0,0 @@
1
- export * from './QuerySettingsDescription';
2
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/QuerySettingsDescription/index.ts"],"names":[],"mappings":"AAAA,cAAc,4BAA4B,CAAC"}
@@ -1,8 +0,0 @@
1
- import type { TTabletStateInfo } from '../../types/api/tablet';
2
- import './Tablet.scss';
3
- interface TabletProps {
4
- tablet?: TTabletStateInfo;
5
- database?: string;
6
- }
7
- export declare const Tablet: ({ tablet, database }: TabletProps) => import("react/jsx-runtime").JSX.Element;
8
- export {};
@@ -1,18 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import { getTabletPagePath } from '../../routes';
3
- import { cn } from '../../utils/cn';
4
- import { getTabletLabel } from '../../utils/constants';
5
- import { ContentWithPopup } from '../ContentWithPopup/ContentWithPopup';
6
- import { InternalLink } from '../InternalLink';
7
- import { TabletIcon } from '../TabletIcon/TabletIcon';
8
- import { TabletTooltipContent } from '../TooltipsContent';
9
- import './Tablet.scss';
10
- const b = cn('tablet');
11
- export const Tablet = ({ tablet = {}, database }) => {
12
- var _a;
13
- const { TabletId: id } = tablet;
14
- const status = (_a = tablet.Overall) === null || _a === void 0 ? void 0 : _a.toLowerCase();
15
- const tabletPath = id && getTabletPagePath(id, { database });
16
- return (_jsx(ContentWithPopup, { className: b('wrapper'), content: _jsx(TabletTooltipContent, { data: tablet, className: b('popup-content') }), children: _jsx(InternalLink, { to: tabletPath, children: _jsx(TabletIcon, { className: b({ status }), text: getTabletLabel(tablet.Type) }) }) }));
17
- };
18
- //# sourceMappingURL=Tablet.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Tablet.js","sourceRoot":"","sources":["../../../src/components/Tablet/Tablet.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAC,iBAAiB,EAAC,MAAM,cAAc,CAAC;AAE/C,OAAO,EAAC,EAAE,EAAC,MAAM,gBAAgB,CAAC;AAClC,OAAO,EAAC,cAAc,EAAC,MAAM,uBAAuB,CAAC;AACrD,OAAO,EAAC,gBAAgB,EAAC,MAAM,sCAAsC,CAAC;AACtE,OAAO,EAAC,YAAY,EAAC,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAC,UAAU,EAAC,MAAM,0BAA0B,CAAC;AACpD,OAAO,EAAC,oBAAoB,EAAC,MAAM,oBAAoB,CAAC;AAExD,OAAO,eAAe,CAAC;AAEvB,MAAM,CAAC,GAAG,EAAE,CAAC,QAAQ,CAAC,CAAC;AAOvB,MAAM,CAAC,MAAM,MAAM,GAAG,CAAC,EAAC,MAAM,GAAG,EAAE,EAAE,QAAQ,EAAc,EAAE,EAAE;;IAC3D,MAAM,EAAC,QAAQ,EAAE,EAAE,EAAC,GAAG,MAAM,CAAC;IAC9B,MAAM,MAAM,GAAG,MAAA,MAAM,CAAC,OAAO,0CAAE,WAAW,EAAE,CAAC;IAE7C,MAAM,UAAU,GAAG,EAAE,IAAI,iBAAiB,CAAC,EAAE,EAAE,EAAC,QAAQ,EAAC,CAAC,CAAC;IAE3D,OAAO,CACH,KAAC,gBAAgB,IACb,SAAS,EAAE,CAAC,CAAC,SAAS,CAAC,EACvB,OAAO,EAAE,KAAC,oBAAoB,IAAC,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,CAAC,CAAC,eAAe,CAAC,GAAI,YAE9E,KAAC,YAAY,IAAC,EAAE,EAAE,UAAU,YACxB,KAAC,UAAU,IAAC,SAAS,EAAE,CAAC,CAAC,EAAC,MAAM,EAAC,CAAC,EAAE,IAAI,EAAE,cAAc,CAAC,MAAM,CAAC,IAAI,CAAC,GAAI,GAC9D,GACA,CACtB,CAAC;AACN,CAAC,CAAC"}
@@ -1,40 +0,0 @@
1
- .tablet {
2
- cursor: pointer;
3
-
4
- color: var(--g-color-text-complementary);
5
- border-color: var(--g-color-base-generic-medium-hover);
6
-
7
- &__wrapper {
8
- margin-right: 2px;
9
- margin-bottom: 2px;
10
- &:last-child {
11
- margin-right: 0;
12
- }
13
- }
14
-
15
- &__popup-content {
16
- padding: 10px;
17
- }
18
-
19
- &_status_grey {
20
- background-color: var(--ydb-color-status-grey);
21
- }
22
- &_status_yellow {
23
- background-color: var(--ydb-color-status-yellow);
24
- }
25
- &_status_orange {
26
- background-color: var(--ydb-color-status-orange);
27
- }
28
- &_status_red {
29
- background-color: var(--ydb-color-status-red);
30
- }
31
- &_status_green {
32
- background-color: var(--ydb-color-status-green);
33
- }
34
- &_status_blue {
35
- background-color: var(--ydb-color-status-blue);
36
- }
37
- &_status_black {
38
- background-color: var(--ydb-color-status-black);
39
- }
40
- }
@@ -1 +0,0 @@
1
- export * from './Tablet';
@@ -1,2 +0,0 @@
1
- export * from './Tablet';
2
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/Tablet/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC"}
@@ -1,8 +0,0 @@
1
- import './TabletsOverall.scss';
2
- interface TabletsOverallProps {
3
- tablets: {
4
- Overall?: string;
5
- }[];
6
- }
7
- declare function TabletsOverall({ tablets }: TabletsOverallProps): import("react/jsx-runtime").JSX.Element;
8
- export default TabletsOverall;
@@ -1,69 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { Progress } from '@gravity-ui/uikit';
3
- import { hideTooltip, showTooltip } from '../../store/reducers/tooltip';
4
- import { cn } from '../../utils/cn';
5
- import { COLORS_PRIORITY } from '../../utils/constants';
6
- import { useTypedDispatch } from '../../utils/hooks';
7
- import './TabletsOverall.scss';
8
- // to be able to see problem places with very small percentage, we'll set minimum percentage to 3.
9
- const minOverallPercentValue = 3;
10
- const colors = {
11
- grey: 'var(--ydb-color-status-grey)',
12
- green: 'var(--ydb-color-status-green)',
13
- yellow: ' var(--ydb-color-status-yellow)',
14
- orange: 'var(--ydb-color-status-orange)',
15
- red: 'var(--ydb-color-status-red)',
16
- blue: 'var(--ydb-color-status-blue)',
17
- };
18
- const b = cn('kv-tablets-overall');
19
- function TabletsOverall({ tablets }) {
20
- const dispatch = useTypedDispatch();
21
- const tabletsCount = tablets.length;
22
- const subtractPercentsFromMaxPercents = (statesForOverallProgress, subtractValue) => {
23
- Object.keys(statesForOverallProgress).some((key) => {
24
- if (statesForOverallProgress[key] > 10) {
25
- statesForOverallProgress[key] -= minOverallPercentValue - subtractValue;
26
- return true;
27
- }
28
- return false;
29
- });
30
- };
31
- // determine how many tablets of what color are in "tablets"
32
- const statesForOverallProgress = tablets.reduce((acc, tablet) => {
33
- var _a;
34
- const color = (_a = tablet.Overall) === null || _a === void 0 ? void 0 : _a.toLowerCase();
35
- if (color && !acc[color]) {
36
- acc[color] = 1;
37
- }
38
- else if (color) {
39
- acc[color]++;
40
- }
41
- return acc;
42
- }, {});
43
- const tooltipData = [];
44
- // determine how many percents is every color in statesForOverallProgress and by the way generate information for tooltip
45
- Object.keys(statesForOverallProgress).forEach((key) => {
46
- const percents = (statesForOverallProgress[key] / tabletsCount) * 100;
47
- const value = statesForOverallProgress[key];
48
- statesForOverallProgress[key] = percents;
49
- tooltipData.push({ color: key, percents, value, total: tablets.length });
50
- });
51
- // replace percents which are smaller then 3 to 3.
52
- Object.keys(statesForOverallProgress).forEach((key) => {
53
- if (statesForOverallProgress[key] < minOverallPercentValue) {
54
- subtractPercentsFromMaxPercents(statesForOverallProgress, statesForOverallProgress[key]);
55
- statesForOverallProgress[key] = minOverallPercentValue;
56
- }
57
- });
58
- const memoryProgress = 100;
59
- const stack = Object.keys(statesForOverallProgress).map((key) => ({
60
- color: colors[key],
61
- colorKey: key,
62
- value: statesForOverallProgress[key],
63
- }));
64
- // sort stack to achieve order "green, orange, yellow, red, blue, grey"
65
- stack.sort((a, b) => COLORS_PRIORITY[b.colorKey] - COLORS_PRIORITY[a.colorKey]);
66
- return (_jsxs("div", { className: b('row', { overall: true }), children: [_jsx("span", { className: b('label', { overall: true }), children: "Overall:" }), _jsx("div", { onMouseLeave: () => dispatch(hideTooltip()), onMouseEnter: (e) => dispatch(showTooltip(e.target, tooltipData, 'tabletsOverall')), children: _jsx(Progress, { value: memoryProgress, stack: stack }) })] }));
67
- }
68
- export default TabletsOverall;
69
- //# sourceMappingURL=TabletsOverall.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"TabletsOverall.js","sourceRoot":"","sources":["../../../src/components/TabletsOverall/TabletsOverall.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAC,QAAQ,EAAC,MAAM,mBAAmB,CAAC;AAE3C,OAAO,EAAC,WAAW,EAAE,WAAW,EAAC,MAAM,8BAA8B,CAAC;A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AAM,CAAC,GAAY,CAAC;QAC3B,QAAQ,EAAE,GAAY;QACtB,KAAK,EAAE,wBAAwB,CAAC,GAAG,CAAC;KACvC,CAAC,CAAC,CAAC;IAEJ,uEAAuE;IACvE,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,eAAe,CAAC,CAAC,CAAC,QAAQ,CAAC,GAAG,eAAe,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC;IAEhF,OAAO,CACH,eAAK,SAAS,EAAE,CAAC,CAAC,KAAK,EAAE,EAAC,OAAO,EAAE,IAAI,EAAC,CAAC,aACrC,eAAM,SAAS,EAAE,CAAC,CAAC,OAAO,EAAE,EAAC,OAAO,EAAE,IAAI,EAAC,CAAC,yBAAiB,EAC7D,cACI,YAAY,EAAE,GAAG,EAAE,CAAC,QAAQ,CAAC,WAAW,EAAE,CAAC,EAC3C,YAAY,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAC,CAAC,MAAM,EAAE,WAAW,EAAE,gBAAgB,CAAC,CAAC,YAEnF,KAAC,QAAQ,IAAC,KAAK,EAAE,cAAc,EAAE,KAAK,EAAE,KAAK,GAAI,GAC/C,IACJ,CACT,CAAC;AACN,CAAC;AAED,eAAe,cAAc,CAAC"}
@@ -1,18 +0,0 @@
1
- .kv-tablets-overall {
2
- &__row {
3
- display: flex;
4
- align-items: center;
5
- gap: 8px;
6
-
7
- &_overall {
8
- .g-progress {
9
- width: 166px;
10
- margin: 0;
11
- }
12
- }
13
- }
14
-
15
- &__label {
16
- font-weight: 500;
17
- }
18
- }
@@ -1 +0,0 @@
1
- export * from './ClusterModeGuard';
@@ -1,2 +0,0 @@
1
- export * from './ClusterModeGuard';
2
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/containers/ClusterModeGuard/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC"}
@@ -1,6 +0,0 @@
1
- import type { GetNodesColumnsParams } from '../../../components/nodesColumns/types';
2
- export declare function useNodesSelectedColumns(params: GetNodesColumnsParams): {
3
- columnsToShow: import("../../../utils/tableUtils/types").Column<import("../../../store/reducers/nodes/types").NodesPreparedEntity>[];
4
- columnsToSelect: import("@gravity-ui/uikit").TableColumnSetupItem[];
5
- setColumns: (updated: import("@gravity-ui/uikit").TableColumnSetupItem[]) => void;
6
- };
@@ -1,12 +0,0 @@
1
- import React from 'react';
2
- import { NODES_COLUMNS_TITLES } from '../../../components/nodesColumns/constants';
3
- import { useSelectedColumns } from '../../../utils/hooks/useSelectedColumns';
4
- import { getNodesColumns } from './columns';
5
- import { DEFAULT_NODES_COLUMNS, NODES_TABLE_SELECTED_COLUMNS_LS_KEY, REQUIRED_NODES_COLUMNS, } from './constants';
6
- export function useNodesSelectedColumns(params) {
7
- const columns = React.useMemo(() => {
8
- return getNodesColumns(params);
9
- }, [params]);
10
- return useSelectedColumns(columns, NODES_TABLE_SELECTED_COLUMNS_LS_KEY, NODES_COLUMNS_TITLES, DEFAULT_NODES_COLUMNS, REQUIRED_NODES_COLUMNS);
11
- }
12
- //# sourceMappingURL=hooks.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"hooks.js","sourceRoot":"","sources":["../../../../src/containers/Nodes/columns/hooks.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAC,oBAAoB,EAAC,MAAM,4CAA4C,CAAC;AAEhF,OAAO,EAAC,kBAAkB,EAAC,MAAM,yCAAyC,CAAC;AAE3E,OAAO,EAAC,eAAe,EAAC,MAAM,WAAW,CAAC;AAC1C,OAAO,EACH,qBAAqB,EACrB,mCAAmC,EACnC,sBAAsB,GACzB,MAAM,aAAa,CAAC;AAErB,MAAM,UAAU,uBAAuB,CAAC,MAA6B;IACjE,MAAM,OAAO,GAAG,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE;QAC/B,OAAO,eAAe,CAAC,MAAM,CAAC,CAAC;IACnC,CAAC,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC;IAEb,OAAO,kBAAkB,CACrB,OAAO,EACP,mCAAmC,EACnC,oBAAoB,EACpB,qBAAqB,EACrB,sBAAsB,CACzB,CAAC;AACN,CAAC"}
@@ -1 +0,0 @@
1
- export * from './Nodes';
@@ -1,2 +0,0 @@
1
- export * from './Nodes';
2
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/containers/Nodes/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC"}
@@ -1 +0,0 @@
1
- export declare const pdiskPageCn: import("@bem-react/classname").ClassNameFormatter;
@@ -1,3 +0,0 @@
1
- import { cn } from '../../utils/cn';
2
- export const pdiskPageCn = cn('ydb-pdisk-page');
3
- //# sourceMappingURL=shared.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"shared.js","sourceRoot":"","sources":["../../../src/containers/PDiskPage/shared.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,EAAE,EAAC,MAAM,gBAAgB,CAAC;AAElC,MAAM,CAAC,MAAM,WAAW,GAAG,EAAE,CAAC,gBAAgB,CAAC,CAAC"}
@@ -1,17 +0,0 @@
1
- import type { OrderType, SortOrder } from '@gravity-ui/react-data-table';
2
- import type { HandleSort } from '../../utils/hooks';
3
- import type { StorageViewContext } from './types';
4
- import './Storage.scss';
5
- export declare function useStorageSort<T extends {
6
- sortValue: string;
7
- sortOrder: OrderType;
8
- }>({ sortValue, sortOrder }: T, onSort: (params: T | undefined) => void): [SortOrder[] | undefined, HandleSort];
9
- interface StorageProps {
10
- database?: string;
11
- nodeId?: string | number;
12
- groupId?: string | number;
13
- pDiskId?: string | number;
14
- viewContext: StorageViewContext;
15
- }
16
- export declare const Storage: ({ database, viewContext, nodeId, groupId, pDiskId }: StorageProps) => import("react/jsx-runtime").JSX.Element;
17
- export {};
@@ -1,101 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import React from 'react';
3
- import { AccessDenied } from '../../components/Errors/403';
4
- import { isAccessError } from '../../components/Errors/PageError/PageError';
5
- import { ResponseError } from '../../components/Errors/ResponseError';
6
- import { TableWithControlsLayout } from '../../components/TableWithControlsLayout/TableWithControlsLayout';
7
- import { useCapabilitiesLoaded, useStorageGroupsHandlerAvailable, } from '../../store/reducers/capabilities/hooks';
8
- import { useClusterBaseInfo } from '../../store/reducers/cluster/cluster';
9
- import { filterGroups, filterNodes } from '../../store/reducers/storage/selectors';
10
- import { storageApi } from '../../store/reducers/storage/storage';
11
- import { useAutoRefreshInterval, useTableSort } from '../../utils/hooks';
12
- import { useAdditionalNodeProps } from '../AppWithClusters/useClusterData';
13
- import { StorageGroupsControls, StorageNodesControls } from './StorageControls/StorageControls';
14
- import { StorageGroupsTable } from './StorageGroups/StorageGroupsTable';
15
- import { useStorageGroupsSelectedColumns } from './StorageGroups/columns/hooks';
16
- import { StorageNodesTable } from './StorageNodes/StorageNodesTable';
17
- import { useStorageNodesSelectedColumns } from './StorageNodes/columns/hooks';
18
- import { b } from './shared';
19
- import { useStorageQueryParams } from './useStorageQueryParams';
20
- import { defaultSortNode, getDefaultSortGroup } from './utils';
21
- import './Storage.scss';
22
- export function useStorageSort({ sortValue, sortOrder }, onSort) {
23
- return useTableSort({
24
- initialSortColumn: sortValue,
25
- initialSortOrder: sortOrder,
26
- multiple: false,
27
- onSort: (sort) => {
28
- const newSort = (sort === null || sort === void 0 ? void 0 : sort[0])
29
- ? {
30
- sortValue: sort[0].columnId,
31
- sortOrder: sort[0].order,
32
- }
33
- : undefined;
34
- onSort(newSort);
35
- },
36
- });
37
- }
38
- export const Storage = ({ database, viewContext, nodeId, groupId, pDiskId }) => {
39
- var _a, _b;
40
- const { balancer } = useClusterBaseInfo();
41
- const { additionalNodesProps } = useAdditionalNodeProps({ balancer });
42
- const { storageType, searchValue, visibleEntities, nodesUptimeFilter, handleShowAllGroups, handleShowAllNodes, } = useStorageQueryParams();
43
- const capabilitiesLoaded = useCapabilitiesLoaded();
44
- const groupsHandlerAvailable = useStorageGroupsHandlerAvailable();
45
- const [autoRefreshInterval] = useAutoRefreshInterval();
46
- const isGroups = storageType === 'groups';
47
- const isNodes = storageType === 'nodes';
48
- const [nodeSort, setNodeSort] = React.useState(undefined);
49
- const nodesSortParams = nodeSort ? nodeSort : defaultSortNode;
50
- const [groupSort, setGroupSort] = React.useState(undefined);
51
- const groupsSortParams = groupSort ? groupSort : getDefaultSortGroup(visibleEntities);
52
- const { columnsToShow: storageNodesColumnsToShow, columnsToSelect: storageNodesColumnsToSelect, setColumns: setStorageNodesSelectedColumns, } = useStorageNodesSelectedColumns({
53
- additionalNodesProps,
54
- visibleEntities,
55
- database,
56
- viewContext,
57
- });
58
- const { columnsToShow: storageGroupsColumnsToShow, columnsToSelect: storageGroupsColumnsToSelect, setColumns: setStorageGroupsSelectedColumns, } = useStorageGroupsSelectedColumns({ visibleEntities, viewContext });
59
- const nodesQuery = storageApi.useGetStorageNodesInfoQuery({
60
- database,
61
- with: visibleEntities,
62
- node_id: nodeId,
63
- group_id: groupId,
64
- }, {
65
- skip: !isNodes,
66
- pollingInterval: autoRefreshInterval,
67
- });
68
- const groupsQuery = storageApi.useGetStorageGroupsInfoQuery({
69
- database,
70
- with: visibleEntities,
71
- nodeId,
72
- groupId,
73
- pDiskId,
74
- shouldUseGroupsHandler: groupsHandlerAvailable,
75
- fieldsRequired: 'all',
76
- }, {
77
- skip: !isGroups || !capabilitiesLoaded,
78
- pollingInterval: autoRefreshInterval,
79
- });
80
- const { currentData, isFetching, error } = isNodes ? nodesQuery : groupsQuery;
81
- const { currentData: { nodes = [] } = {} } = nodesQuery;
82
- const { currentData: { groups = [] } = {} } = groupsQuery;
83
- const nodesTotalCount = ((_a = nodesQuery.currentData) === null || _a === void 0 ? void 0 : _a.total) || 0;
84
- const groupsTotalCount = ((_b = groupsQuery.currentData) === null || _b === void 0 ? void 0 : _b.total) || 0;
85
- const isLoading = currentData === undefined && isFetching;
86
- const storageNodes = React.useMemo(() => filterNodes(nodes, searchValue, nodesUptimeFilter), [nodes, nodesUptimeFilter, searchValue]);
87
- const storageGroups = React.useMemo(() => filterGroups(groups, searchValue), [searchValue, groups]);
88
- const [nodesSort, handleNodesSort] = useStorageSort(nodesSortParams, setNodeSort);
89
- const [groupsSort, handleGroupsSort] = useStorageSort(groupsSortParams, setGroupSort);
90
- const renderDataTable = () => {
91
- return (_jsxs(React.Fragment, { children: [isGroups ? (_jsx(StorageGroupsTable, { visibleEntities: visibleEntities, data: storageGroups, onShowAll: handleShowAllGroups, sort: groupsSort, handleSort: handleGroupsSort, columns: storageGroupsColumnsToShow }, "groups")) : null, isNodes ? (_jsx(StorageNodesTable, { visibleEntities: visibleEntities, nodesUptimeFilter: nodesUptimeFilter, data: storageNodes, onShowAll: handleShowAllNodes, sort: nodesSort, handleSort: handleNodesSort, columns: storageNodesColumnsToShow }, "nodes")) : null] }));
92
- };
93
- const renderControls = () => {
94
- return (_jsxs(React.Fragment, { children: [isGroups ? (_jsx(StorageGroupsControls, { withTypeSelector: true, entitiesCountCurrent: storageGroups.length, entitiesCountTotal: groupsTotalCount, entitiesLoading: isLoading, columnsToSelect: storageGroupsColumnsToSelect, handleSelectedColumnsUpdate: setStorageGroupsSelectedColumns })) : null, isNodes ? (_jsx(StorageNodesControls, { withTypeSelector: true, entitiesCountCurrent: storageNodes.length, entitiesCountTotal: nodesTotalCount, entitiesLoading: isLoading, columnsToSelect: storageNodesColumnsToSelect, handleSelectedColumnsUpdate: setStorageNodesSelectedColumns })) : null] }));
95
- };
96
- if (isAccessError(error)) {
97
- return _jsx(AccessDenied, { position: "left" });
98
- }
99
- return (_jsxs(TableWithControlsLayout, { children: [_jsx(TableWithControlsLayout.Controls, { children: renderControls() }), error ? _jsx(ResponseError, { error: error }) : null, _jsx(TableWithControlsLayout.Table, { loading: isLoading || !capabilitiesLoaded, className: b('table'), children: currentData ? renderDataTable() : null })] }));
100
- };
101
- //# sourceMappingURL=Storage.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Storage.js","sourceRoot":"","sources":["../../../src/containers/Storage/Storage.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,EAAC,YAAY,EAAC,MAAM,6BAA6B,CAAC;AACzD,OAAO,EAAC,aAAa,EAAC,MAAM,6CAA6C,CAAC;AAC1E,OAAO,EAAC,aAAa,EAAC,MAAM,uCAAuC,CAAC;AACpE,OAAO,EAAC,uBAAuB,EAAC,MAAM,kEAAkE,CAAC;AACzG,OAAO,EACH,qBAAqB,EACrB,gCAAgC,GACnC,MAAM,yCAAyC,CAAC;AACjD,OAAO,EAAC,kBAAkB,EAAC,MAAM,sCAAsC,CAAC;AAExE,OAAO,EAAC,YAAY,EAAE,WAAW,EAAC,MAAM,wCAAwC,CAAC;AACjF,OAAO,EAAC,UAAU,EAAC,MAAM,sCAAsC,CAAC;AAGhE,OAAO,EAAC,sBAAsB,EAAE,YAAY,EAAC,MAAM,mBAAmB,CAAC;AACvE,OAAO,EAAC,sBAAsB,EAAC,MAAM,mCAAmC,CAAC;AAEzE,OAAO,EAAC,qBAAqB,EAAE,oBAAoB,EAAC,MAAM,mCAAmC,CAAC;AAC9F,OAAO,EAAC,kBAAkB,EAAC,MAAM,oCAAoC,CAAC;AACtE,OAAO,EAAC,+BAA+B,EAAC,MAAM,+BAA+B,CAAC;AAC9E,OAAO,EAAC,iBAAiB,EAAC,MAAM,kCAAkC,CAAC;AACnE,OAAO,EAAC,8BAA8B,EAAC,MAAM,8BAA8B,CAAC;AAC5E,OAAO,EAAC,CAAC,EAAC,MAAM,UAAU,CAAC;AAE3B,OAAO,EAAC,qBAAqB,EAAC,MAAM,yBAAyB,CAAC;AAC9D,OAAO,EAAC,eAAe,EAAE,mBAAmB,EAAC,MAAM,SAAS,CAAC;AAE7D,OAAO,gBAAgB,CAAC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cAAc,EAAE,GAAoC,EACtF,KAAK,CAAC,CAAC,CAAC,KAAC,aAAa,IAAC,KAAK,EAAE,KAAK,GAAI,CAAC,CAAC,CAAC,IAAI,EAC/C,KAAC,uBAAuB,CAAC,KAAK,IAC1B,OAAO,EAAE,SAAS,IAAI,CAAC,kBAAkB,EACzC,SAAS,EAAE,CAAC,CAAC,OAAO,CAAC,YAEpB,WAAW,CAAC,CAAC,CAAC,eAAe,EAAE,CAAC,CAAC,CAAC,IAAI,GACX,IACV,CAC7B,CAAC;AACN,CAAC,CAAC"}
@@ -1,14 +0,0 @@
1
- import type { SortOrder } from '@gravity-ui/react-data-table';
2
- import type { PreparedStorageGroup, VisibleEntities } from '../../../store/reducers/storage/types';
3
- import type { HandleSort } from '../../../utils/hooks/useTableSort';
4
- import type { StorageGroupsColumn } from './columns/types';
5
- interface StorageGroupsTableProps {
6
- data: PreparedStorageGroup[];
7
- columns: StorageGroupsColumn[];
8
- visibleEntities: VisibleEntities;
9
- onShowAll?: VoidFunction;
10
- sort?: SortOrder[];
11
- handleSort?: HandleSort;
12
- }
13
- export declare function StorageGroupsTable({ data, columns, visibleEntities, onShowAll, sort, handleSort, }: StorageGroupsTableProps): import("react/jsx-runtime").JSX.Element;
14
- export {};
@@ -1,14 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import { ResizeableDataTable } from '../../../components/ResizeableDataTable/ResizeableDataTable';
3
- import { VISIBLE_ENTITIES } from '../../../store/reducers/storage/constants';
4
- import { DEFAULT_TABLE_SETTINGS } from '../../../utils/constants';
5
- import { StorageGroupsEmptyDataMessage } from './StorageGroupsEmptyDataMessage';
6
- import { STORAGE_GROUPS_COLUMNS_WIDTH_LS_KEY } from './columns/constants';
7
- import i18n from './i18n';
8
- export function StorageGroupsTable({ data, columns, visibleEntities, onShowAll, sort, handleSort, }) {
9
- if (!data.length && visibleEntities !== VISIBLE_ENTITIES.all) {
10
- return (_jsx(StorageGroupsEmptyDataMessage, { onShowAll: onShowAll, visibleEntities: visibleEntities }));
11
- }
12
- return (_jsx(ResizeableDataTable, { columnsWidthLSKey: STORAGE_GROUPS_COLUMNS_WIDTH_LS_KEY, data: data, columns: columns, settings: DEFAULT_TABLE_SETTINGS, emptyDataMessage: i18n('empty.default'), sortOrder: sort, onSort: handleSort }, visibleEntities));
13
- }
14
- //# sourceMappingURL=StorageGroupsTable.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"StorageGroupsTable.js","sourceRoot":"","sources":["../../../../src/containers/Storage/StorageGroups/StorageGroupsTable.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAC,mBAAmB,EAAC,MAAM,6DAA6D,CAAC;AAChG,OAAO,EAAC,gBAAgB,EAAC,MAAM,2CAA2C,CAAC;AAE3E,OAAO,EAAC,sBAAsB,EAAC,MAAM,0BAA0B,CAAC;AAGhE,OAAO,EAAC,6BAA6B,EAAC,MAAM,iCAAiC,CAAC;AAC9E,OAAO,EAAC,mCAAmC,EAAC,MAAM,qBAAqB,CAAC;AAExE,OAAO,IAAI,MAAM,QAAQ,CAAC;AAW1B,MAAM,UAAU,kBAAkB,CAAC,EAC/B,IAAI,EACJ,OAAO,EACP,eAAe,EACf,SAAS,EACT,IAAI,EACJ,UAAU,GACY;IACtB,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,sBAAsB,EAChC,gBAAgB,EAAE,IAAI,CAAC,eAAe,CAAC,EACvC,SAAS,EAAE,IAAI,EACf,MAAM,EAAE,UAAU,IANb,eAAe,CAOtB,CACL,CAAC;AACN,CAAC"}
@@ -1,16 +0,0 @@
1
- import type { SortOrder } from '@gravity-ui/react-data-table';
2
- import type { PreparedStorageNode, VisibleEntities } from '../../../store/reducers/storage/types';
3
- import type { HandleSort } from '../../../utils/hooks/useTableSort';
4
- import { NodesUptimeFilterValues } from '../../../utils/nodes';
5
- import type { StorageNodesColumn } from './columns/types';
6
- interface StorageNodesTableProps {
7
- data: PreparedStorageNode[];
8
- columns: StorageNodesColumn[];
9
- visibleEntities: VisibleEntities;
10
- nodesUptimeFilter: NodesUptimeFilterValues;
11
- sort?: SortOrder[];
12
- onShowAll?: VoidFunction;
13
- handleSort?: HandleSort;
14
- }
15
- export declare function StorageNodesTable({ data, columns, visibleEntities, nodesUptimeFilter, sort, onShowAll, handleSort, }: StorageNodesTableProps): import("react/jsx-runtime").JSX.Element;
16
- export {};
@@ -1,22 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import { ResizeableDataTable } from '../../../components/ResizeableDataTable/ResizeableDataTable';
3
- import { VISIBLE_ENTITIES } from '../../../store/reducers/storage/constants';
4
- import { DEFAULT_TABLE_SETTINGS } from '../../../utils/constants';
5
- import { NodesUptimeFilterValues } from '../../../utils/nodes';
6
- import { StorageNodesEmptyDataMessage } from './StorageNodesEmptyDataMessage';
7
- import { STORAGE_NODES_COLUMNS_WIDTH_LS_KEY } from './columns/constants';
8
- import i18n from './i18n';
9
- import { getRowUnavailableClassName } from './shared';
10
- const tableSettings = {
11
- ...DEFAULT_TABLE_SETTINGS,
12
- dynamicRenderMinSize: 51,
13
- };
14
- export function StorageNodesTable({ data, columns, visibleEntities, nodesUptimeFilter, sort, onShowAll, handleSort, }) {
15
- if (!data.length &&
16
- (visibleEntities !== VISIBLE_ENTITIES.all ||
17
- nodesUptimeFilter !== NodesUptimeFilterValues.All)) {
18
- return (_jsx(StorageNodesEmptyDataMessage, { visibleEntities: visibleEntities, nodesUptimeFilter: nodesUptimeFilter, onShowAll: onShowAll }));
19
- }
20
- return (_jsx(ResizeableDataTable, { columnsWidthLSKey: STORAGE_NODES_COLUMNS_WIDTH_LS_KEY, data: data, columns: columns, settings: tableSettings, emptyDataMessage: i18n('empty.default'), rowClassName: getRowUnavailableClassName, sortOrder: sort, onSort: handleSort }, visibleEntities));
21
- }
22
- //# sourceMappingURL=StorageNodesTable.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"StorageNodesTable.js","sourceRoot":"","sources":["../../../../src/containers/Storage/StorageNodes/StorageNodesTable.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAC,mBAAmB,EAAC,MAAM,6DAA6D,CAAC;AAChG,OAAO,EAAC,gBAAgB,EAAC,MAAM,2CAA2C,CAAC;AAE3E,OAAO,EAAC,sBAAsB,EAAC,MAAM,0BAA0B,CAAC;AAEhE,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;AAEpD,MAAM,aAAa,GAAG;IAClB,GAAG,sBAAsB;IACzB,oBAAoB,EAAE,EAAE;CAClB,CAAC;AAYX,MAAM,UAAU,iBAAiB,CAAC,EAC9B,IAAI,EACJ,OAAO,EACP,eAAe,EACf,iBAAiB,EACjB,IAAI,EACJ,SAAS,EACT,UAAU,GACW;IACrB,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,aAAa,EACvB,gBAAgB,EAAE,IAAI,CAAC,eAAe,CAAC,EACvC,YAAY,EAAE,0BAA0B,EACxC,SAAS,EAAE,IAAI,EACf,MAAM,EAAE,UAAU,IAPb,eAAyB,CAQhC,CACL,CAAC;AACN,CAAC"}
@@ -1,3 +0,0 @@
1
- import type { PreparedStorageNode } from '../../../store/reducers/storage/types';
2
- export declare const b: import("@bem-react/classname").ClassNameFormatter;
3
- export declare const getRowUnavailableClassName: (row: PreparedStorageNode) => string;