ydb-embedded-ui 6.16.0 → 6.17.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/components/ContentWithPopup/ContentWithPopup.d.ts +2 -1
- package/dist/components/ContentWithPopup/ContentWithPopup.js +9 -2
- package/dist/components/ContentWithPopup/ContentWithPopup.js.map +1 -1
- package/dist/components/ErrorBoundary/ErrorBoundary.scss +2 -0
- package/dist/components/FullNodeViewer/FullNodeViewer.js +1 -1
- package/dist/components/FullNodeViewer/FullNodeViewer.js.map +1 -1
- package/dist/components/InfoViewer/InfoViewer.d.ts +0 -1
- package/dist/components/InfoViewer/InfoViewer.js +0 -1
- package/dist/components/InfoViewer/InfoViewer.js.map +1 -1
- package/dist/components/InfoViewer/index.d.ts +1 -1
- package/dist/components/InfoViewer/index.js +1 -1
- package/dist/components/InfoViewer/index.js.map +1 -1
- package/dist/components/NodeHostWrapper/NodeHostWrapper.d.ts +2 -1
- package/dist/components/NodeHostWrapper/NodeHostWrapper.js +2 -2
- package/dist/components/NodeHostWrapper/NodeHostWrapper.js.map +1 -1
- package/dist/components/PaginatedTable/PaginatedTable.scss +8 -0
- package/dist/components/PaginatedTable/TableChunk.js +2 -1
- package/dist/components/PaginatedTable/TableChunk.js.map +1 -1
- package/dist/components/PaginatedTable/TableHead.js +1 -1
- package/dist/components/PaginatedTable/TableHead.js.map +1 -1
- package/dist/components/TabletsStatistic/TabletsStatistic.d.ts +2 -2
- package/dist/components/TabletsStatistic/TabletsStatistic.js +4 -6
- package/dist/components/TabletsStatistic/TabletsStatistic.js.map +1 -1
- package/dist/components/YDBDefinitionList/YDBDefinitionList.d.ts +9 -0
- package/dist/components/YDBDefinitionList/YDBDefinitionList.js +23 -0
- package/dist/components/YDBDefinitionList/YDBDefinitionList.js.map +1 -0
- package/dist/{containers/Tenant/Info/View/View.scss → components/YDBDefinitionList/YDBDefinitionList.scss} +6 -6
- package/dist/components/YDBDefinitionList/i18n/en.json +3 -0
- package/dist/components/YDBDefinitionList/i18n/index.d.ts +2 -0
- package/dist/components/YDBDefinitionList/i18n/index.js +5 -0
- package/dist/components/YDBDefinitionList/i18n/index.js.map +1 -0
- package/dist/containers/App/Content.js +1 -7
- package/dist/containers/App/Content.js.map +1 -1
- package/dist/containers/App/appSlots.d.ts +0 -6
- package/dist/containers/App/appSlots.js +0 -1
- package/dist/containers/App/appSlots.js.map +1 -1
- package/dist/containers/Cluster/Cluster.js +4 -13
- package/dist/containers/Cluster/Cluster.js.map +1 -1
- package/dist/containers/Cluster/ClusterInfo/ClusterInfo.d.ts +3 -3
- package/dist/containers/Cluster/ClusterInfo/ClusterInfo.js +18 -2
- package/dist/containers/Cluster/ClusterInfo/ClusterInfo.js.map +1 -1
- package/dist/containers/Header/Header.js +6 -7
- package/dist/containers/Header/Header.js.map +1 -1
- package/dist/containers/Header/breadcrumbs.js +26 -30
- package/dist/containers/Header/breadcrumbs.js.map +1 -1
- package/dist/containers/Node/Node.js +12 -6
- package/dist/containers/Node/Node.js.map +1 -1
- package/dist/containers/Node/NodePages.d.ts +2 -1
- package/dist/containers/Node/NodePages.js +2 -2
- package/dist/containers/Node/NodePages.js.map +1 -1
- package/dist/containers/Nodes/Nodes.js +1 -0
- package/dist/containers/Nodes/Nodes.js.map +1 -1
- package/dist/containers/Nodes/PaginatedNodes.js +1 -0
- package/dist/containers/Nodes/PaginatedNodes.js.map +1 -1
- package/dist/containers/Nodes/getNodesColumns.d.ts +3 -3
- package/dist/containers/Nodes/getNodesColumns.js +9 -9
- package/dist/containers/Nodes/getNodesColumns.js.map +1 -1
- package/dist/containers/PDiskPage/PDiskGroups/PDiskGroups.js +2 -2
- package/dist/containers/PDiskPage/PDiskGroups/PDiskGroups.js.map +1 -1
- package/dist/containers/Storage/Storage.js +1 -1
- package/dist/containers/Storage/Storage.js.map +1 -1
- package/dist/containers/Storage/StorageGroups/getStorageGroupsColumns.d.ts +1 -1
- package/dist/containers/Storage/StorageGroups/getStorageGroupsColumns.js +1 -1
- package/dist/containers/Storage/StorageGroups/getStorageGroupsColumns.js.map +1 -1
- package/dist/containers/Storage/StorageNodes/PaginatedStorageNodes.js +2 -2
- package/dist/containers/Storage/StorageNodes/PaginatedStorageNodes.js.map +1 -1
- package/dist/containers/Storage/StorageNodes/StorageNodes.d.ts +2 -1
- package/dist/containers/Storage/StorageNodes/StorageNodes.js +2 -2
- package/dist/containers/Storage/StorageNodes/StorageNodes.js.map +1 -1
- package/dist/containers/Storage/StorageNodes/getStorageNodesColumns.d.ts +1 -1
- package/dist/containers/Storage/StorageNodes/getStorageNodesColumns.js +4 -4
- package/dist/containers/Storage/StorageNodes/getStorageNodesColumns.js.map +1 -1
- package/dist/containers/Tablet/Tablet.js +33 -12
- package/dist/containers/Tablet/Tablet.js.map +1 -1
- package/dist/containers/Tablets/Tablets.d.ts +2 -1
- package/dist/containers/Tablets/Tablets.js +89 -85
- package/dist/containers/Tablets/Tablets.js.map +1 -1
- package/dist/containers/Tenant/Diagnostics/Diagnostics.js +1 -1
- package/dist/containers/Tenant/Diagnostics/Diagnostics.js.map +1 -1
- package/dist/containers/Tenant/Diagnostics/Overview/AsyncReplicationInfo/AsyncReplicationInfo.js +39 -20
- package/dist/containers/Tenant/Diagnostics/Overview/AsyncReplicationInfo/AsyncReplicationInfo.js.map +1 -1
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantStorage/TenantStorage.js +1 -1
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantStorage/TenantStorage.js.map +1 -1
- package/dist/containers/Tenant/Info/View/View.d.ts +0 -1
- package/dist/containers/Tenant/Info/View/View.js +3 -5
- package/dist/containers/Tenant/Info/View/View.js.map +1 -1
- package/dist/containers/Tenant/ObjectSummary/ObjectSummary.js +1 -1
- package/dist/containers/Tenant/ObjectSummary/ObjectSummary.js.map +1 -1
- package/dist/containers/Tenant/ObjectSummary/ObjectSummary.scss +3 -0
- package/dist/containers/Tenant/Schema/SchemaViewer/KeysView.d.ts +8 -0
- package/dist/containers/Tenant/Schema/SchemaViewer/KeysView.js +15 -0
- package/dist/containers/Tenant/Schema/SchemaViewer/KeysView.js.map +1 -0
- package/dist/containers/Tenant/Schema/SchemaViewer/SchemaViewer.js +7 -13
- package/dist/containers/Tenant/Schema/SchemaViewer/SchemaViewer.js.map +1 -1
- package/dist/containers/Tenant/Schema/SchemaViewer/SchemaViewer.scss +62 -3
- package/dist/containers/Tenant/Schema/SchemaViewer/columns.js +2 -20
- package/dist/containers/Tenant/Schema/SchemaViewer/columns.js.map +1 -1
- package/dist/containers/Tenant/Schema/SchemaViewer/i18n/en.json +3 -2
- package/dist/containers/Tenant/Schema/SchemaViewer/i18n/index.d.ts +1 -1
- package/dist/containers/Tenant/Schema/SchemaViewer/prepareData.js +11 -21
- package/dist/containers/Tenant/Schema/SchemaViewer/prepareData.js.map +1 -1
- package/dist/containers/Tenant/Schema/SchemaViewer/types.d.ts +1 -2
- package/dist/containers/Tenant/Schema/SchemaViewer/utils.d.ts +3 -0
- package/dist/containers/Tenant/Schema/SchemaViewer/utils.js +9 -0
- package/dist/containers/Tenant/Schema/SchemaViewer/utils.js.map +1 -0
- package/dist/containers/Tenants/Tenants.js +2 -2
- package/dist/containers/Tenants/Tenants.js.map +1 -1
- package/dist/containers/UserSettings/i18n/en.json +0 -1
- package/dist/containers/UserSettings/i18n/index.d.ts +1 -1
- package/dist/containers/UserSettings/settings.js +0 -3
- package/dist/containers/UserSettings/settings.js.map +1 -1
- package/dist/containers/VDiskPage/VDiskPage.d.ts +4 -0
- package/dist/containers/VDiskPage/VDiskPage.js +14 -10
- package/dist/containers/VDiskPage/VDiskPage.js.map +1 -1
- package/dist/containers/VDiskPage/VDiskPage.scss +9 -0
- package/dist/containers/Versions/GroupedNodesTree/GroupedNodesTree.d.ts +2 -2
- package/dist/containers/Versions/GroupedNodesTree/GroupedNodesTree.js.map +1 -1
- package/dist/containers/Versions/NodesTable/NodesTable.d.ts +2 -2
- package/dist/containers/Versions/NodesTable/NodesTable.js.map +1 -1
- package/dist/containers/Versions/NodesTreeTitle/NodesTreeTitle.d.ts +2 -2
- package/dist/containers/Versions/NodesTreeTitle/NodesTreeTitle.js.map +1 -1
- package/dist/containers/Versions/Versions.js +3 -2
- package/dist/containers/Versions/Versions.js.map +1 -1
- package/dist/containers/Versions/groupNodes.d.ts +4 -4
- package/dist/containers/Versions/groupNodes.js.map +1 -1
- package/dist/containers/Versions/types.d.ts +2 -2
- package/dist/services/api.d.ts +8 -7
- package/dist/services/api.js +20 -11
- package/dist/services/api.js.map +1 -1
- package/dist/store/configureStore.d.ts +2 -2
- package/dist/store/defaultStore.d.ts +1 -1
- package/dist/store/reducers/header/types.d.ts +7 -7
- package/dist/store/reducers/heatmap.js +2 -2
- package/dist/store/reducers/heatmap.js.map +1 -1
- package/dist/store/reducers/index.d.ts +2 -2
- package/dist/store/reducers/nodes/types.d.ts +6 -0
- package/dist/store/reducers/nodes/utils.js +6 -0
- package/dist/store/reducers/nodes/utils.js.map +1 -1
- package/dist/store/reducers/tablet.d.ts +1 -0
- package/dist/store/reducers/tablet.js +3 -3
- package/dist/store/reducers/tablet.js.map +1 -1
- package/dist/store/reducers/tenants/selectors.d.ts +9 -10
- package/dist/store/reducers/tenants/selectors.js +8 -7
- package/dist/store/reducers/tenants/selectors.js.map +1 -1
- package/dist/store/reducers/vdisk/types.d.ts +1 -1
- package/dist/store/reducers/vdisk/vdisk.d.ts +1 -1
- package/dist/store/state-url-mapping.d.ts +0 -8
- package/dist/store/state-url-mapping.js +0 -8
- package/dist/store/state-url-mapping.js.map +1 -1
- package/dist/styles/mixins.scss +5 -0
- package/dist/types/api/nodes.d.ts +5 -0
- package/dist/types/api/nodes.js.map +1 -1
- package/dist/types/store/heatmap.d.ts +0 -1
- package/dist/types/store/tablets.d.ts +1 -1
- package/dist/utils/constants.d.ts +1 -0
- package/dist/utils/constants.js +1 -0
- package/dist/utils/constants.js.map +1 -1
- package/dist/utils/versions/parseNodesToVersionsValues.d.ts +7 -0
- package/dist/utils/versions/parseNodesToVersionsValues.js +10 -0
- package/dist/utils/versions/parseNodesToVersionsValues.js.map +1 -1
- package/package.json +1 -1
- package/dist/containers/TabletsFilters/TabletsFilters.d.ts +0 -2
- package/dist/containers/TabletsFilters/TabletsFilters.js +0 -91
- package/dist/containers/TabletsFilters/TabletsFilters.js.map +0 -1
- package/dist/containers/TabletsFilters/TabletsFilters.scss +0 -80
- package/dist/containers/TabletsFilters/i18n/en.json +0 -3
- package/dist/containers/TabletsFilters/i18n/index.d.ts +0 -2
- package/dist/containers/TabletsFilters/i18n/index.js +0 -6
- package/dist/containers/TabletsFilters/i18n/index.js.map +0 -1
- package/dist/containers/TabletsFilters/i18n/ru.json +0 -3
- package/dist/store/reducers/clusterNodes/clusterNodes.d.ts +0 -5
- package/dist/store/reducers/clusterNodes/clusterNodes.js +0 -22
- package/dist/store/reducers/clusterNodes/clusterNodes.js.map +0 -1
- package/dist/store/reducers/tabletsFilters.d.ts +0 -44
- package/dist/store/reducers/tabletsFilters.js +0 -20
- package/dist/store/reducers/tabletsFilters.js.map +0 -1
@@ -4,6 +4,7 @@ interface ContentWithPopupProps extends PopupProps {
|
|
4
4
|
content: React.ReactNode;
|
5
5
|
className?: string;
|
6
6
|
children?: React.ReactNode;
|
7
|
+
pinOnClick?: boolean;
|
7
8
|
}
|
8
|
-
export declare const ContentWithPopup: ({ children, content, className, hasArrow, placement, ...props }: ContentWithPopupProps) => import("react/jsx-runtime").JSX.Element;
|
9
|
+
export declare const ContentWithPopup: ({ children, content, className, pinOnClick, hasArrow, placement, ...props }: ContentWithPopupProps) => import("react/jsx-runtime").JSX.Element;
|
9
10
|
export {};
|
@@ -1,8 +1,9 @@
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
2
2
|
import React from 'react';
|
3
3
|
import { Popup } from '@gravity-ui/uikit';
|
4
|
-
export const ContentWithPopup = ({ children, content, className, hasArrow = true, placement = ['top', 'bottom'], ...props }) => {
|
4
|
+
export const ContentWithPopup = ({ children, content, className, pinOnClick, hasArrow = true, placement = ['top', 'bottom'], ...props }) => {
|
5
5
|
const [isPopupVisible, setIsPopupVisible] = React.useState(false);
|
6
|
+
const [isPinned, setIsPinned] = React.useState(false);
|
6
7
|
const anchor = React.useRef(null);
|
7
8
|
const showPopup = () => {
|
8
9
|
setIsPopupVisible(true);
|
@@ -10,6 +11,12 @@ export const ContentWithPopup = ({ children, content, className, hasArrow = true
|
|
10
11
|
const hidePopup = () => {
|
11
12
|
setIsPopupVisible(false);
|
12
13
|
};
|
13
|
-
|
14
|
+
const pinPopup = () => {
|
15
|
+
setIsPinned(true);
|
16
|
+
};
|
17
|
+
const unpinPopup = () => {
|
18
|
+
setIsPinned(false);
|
19
|
+
};
|
20
|
+
return (_jsxs(React.Fragment, { children: [_jsx(Popup, { anchorRef: anchor, open: isPinned || isPopupVisible, placement: placement, hasArrow: hasArrow, onOutsideClick: unpinPopup, ...props, children: content }), _jsx("span", { className: className, ref: anchor, onClick: pinOnClick ? pinPopup : undefined, onMouseEnter: showPopup, onMouseLeave: hidePopup, children: children })] }));
|
14
21
|
};
|
15
22
|
//# sourceMappingURL=ContentWithPopup.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ContentWithPopup.js","sourceRoot":"","sources":["../../../src/components/ContentWithPopup/ContentWithPopup.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAC,KAAK,EAAC,MAAM,mBAAmB,CAAC;
|
1
|
+
{"version":3,"file":"ContentWithPopup.js","sourceRoot":"","sources":["../../../src/components/ContentWithPopup/ContentWithPopup.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAC,KAAK,EAAC,MAAM,mBAAmB,CAAC;AASxC,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,EAC7B,QAAQ,EACR,OAAO,EACP,SAAS,EACT,UAAU,EACV,QAAQ,GAAG,IAAI,EACf,SAAS,GAAG,CAAC,KAAK,EAAE,QAAQ,C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OAD_AVERAGE_TIME_INTERVALS } from '../../utils/constants';
|
4
|
-
import InfoViewer from '../InfoViewer/InfoViewer';
|
4
|
+
import { InfoViewer } from '../InfoViewer/InfoViewer';
|
5
5
|
import { PoolUsage } from '../PoolUsage/PoolUsage';
|
6
6
|
import { ProgressViewer } from '../ProgressViewer/ProgressViewer';
|
7
7
|
import './FullNodeViewer.scss';
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"FullNodeViewer.js","sourceRoot":"","sources":["../../../src/components/FullNodeViewer/FullNodeViewer.tsx"],"names":[],"mappings":";AACA,OAAO,EAAC,EAAE,EAAC,MAAM,gBAAgB,CAAC;AAClC,OAAO,EAAC,2BAA2B,EAAC,MAAM,uBAAuB,CAAC;AAClE,OAAO,UAAU,MAAM,0BAA0B,CAAC;
|
1
|
+
{"version":3,"file":"FullNodeViewer.js","sourceRoot":"","sources":["../../../src/components/FullNodeViewer/FullNodeViewer.tsx"],"names":[],"mappings":";AACA,OAAO,EAAC,EAAE,EAAC,MAAM,gBAAgB,CAAC;AAClC,OAAO,EAAC,2BAA2B,EAAC,MAAM,uBAAuB,CAAC;AAClE,OAAO,EAAC,UAAU,EAAC,MAAM,0BAA0B,CAAC;AAEpD,OAAO,EAAC,SAAS,EAAC,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAC,cAAc,EAAC,MAAM,kCAAkC,CAAC;AAEhE,OAAO,uBAAuB,CAAC;AAE/B,MAAM,CAAC,GAAG,EAAE,CAAC,kBAAkB,CAAC,CAAC;AAOjC,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,EAAC,IAAI,EAAE,SAAS,EAAsB,EAAE,EAAE;;IACrE,MAAM,aAAa,GAAG,MAAA,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,SAAS,0CAAE,GAAG,CAAC,CAAC,EAAC,IAAI,EAAE,OAAO,EAAC,EAAE,EAAE,CAAC,CAAC;QAC7D,KAAK,EAAE,IAAI;QACX,KAAK,EAAE,OAAO;KAC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S,EAAE,YAChC,IAAI,CAAC,CAAC,CAAC,CACJ,eAAK,SAAS,EAAE,CAAC,CAAC,aAAa,CAAC,aAC5B,0BACI,cAAK,SAAS,EAAE,CAAC,CAAC,eAAe,CAAC,sBAAa,EAC/C,cAAK,SAAS,EAAE,CAAC,CAAC,SAAS,EAAE,EAAC,KAAK,EAAE,IAAI,EAAC,CAAC,YACtC,MAAA,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,SAAS,0CAAE,GAAG,CAAC,CAAC,IAAI,EAAE,SAAS,EAAE,EAAE,CAAC,CACvC,KAAC,SAAS,IAAiB,IAAI,EAAE,IAAI,IAArB,SAAS,CAAgB,CAC5C,CAAC,GACA,IACJ,EAEL,aAAa,IAAI,aAAa,CAAC,MAAM,IAAI,CACtC,KAAC,UAAU,IACP,KAAK,EAAC,WAAW,EACjB,SAAS,EAAE,CAAC,CAAC,SAAS,CAAC,EACvB,IAAI,EAAE,aAAa,GACrB,CACL,EAED,KAAC,UAAU,IAAC,KAAK,EAAC,aAAa,EAAC,SAAS,EAAE,CAAC,CAAC,SAAS,CAAC,EAAE,IAAI,EAAE,UAAU,GAAI,EAE7E,KAAC,UAAU,IACP,KAAK,EAAC,cAAc,EACpB,SAAS,EAAE,CAAC,CAAC,SAAS,EAAE,EAAC,OAAO,EAAE,IAAI,EAAC,CAAC,EACxC,IAAI,EAAE,WAAW,GACnB,IACA,CACT,CAAC,CAAC,CAAC,CACA,cAAK,SAAS,EAAC,OAAO,wBAAc,CACvC,GACC,CACT,CAAC;AACN,CAAC,CAAC"}
|
@@ -14,4 +14,3 @@ export interface InfoViewerProps {
|
|
14
14
|
renderEmptyState?: (props?: Pick<InfoViewerProps, 'title' | 'size'>) => React.ReactNode;
|
15
15
|
}
|
16
16
|
export declare const InfoViewer: ({ title, info, dots, size, className, multilineLabels, renderEmptyState, }: InfoViewerProps) => import("react/jsx-runtime").JSX.Element;
|
17
|
-
export default InfoViewer;
|
@@ -10,5 +10,4 @@ export const InfoViewer = ({ title, info, dots = true, size, className, multilin
|
|
10
10
|
}
|
11
11
|
return (_jsxs("div", { className: b({ size }, className), children: [title && _jsx("div", { className: b('title'), children: title }), info && info.length > 0 ? (_jsx("div", { className: b('items'), children: info.map((data, infoIndex) => (_jsxs("div", { className: b('row'), children: [_jsxs("div", { className: b('label'), children: [_jsx("div", { className: b('label-text', { multiline: multilineLabels }), children: data.label }), dots && _jsx("div", { className: b('dots') })] }), _jsx("div", { className: b('value'), children: data.value })] }, infoIndex))) })) : (i18n('no-data'))] }));
|
12
12
|
};
|
13
|
-
export default InfoViewer;
|
14
13
|
//# sourceMappingURL=InfoViewer.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"InfoViewer.js","sourceRoot":"","sources":["../../../src/components/InfoViewer/InfoViewer.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAC,EAAE,EAAC,MAAM,gBAAgB,CAAC;AAElC,OAAO,IAAI,MAAM,QAAQ,CAAC;AAE1B,OAAO,mBAAmB,CAAC;AAiB3B,MAAM,CAAC,GAAG,EAAE,CAAC,aAAa,CAAC,CAAC;AAE5B,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,EACvB,KAAK,EACL,IAAI,EACJ,IAAI,GAAG,IAAI,EACX,IAAI,EACJ,SAAS,EACT,eAAe,EACf,gBAAgB,GACF,EAAE,EAAE;IAClB,IAAI,CAAC,CAAC,IAAI,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,gBAAgB,EAAE,CAAC;QAC9C,OAAO,KAAC,KAAK,CAAC,QAAQ,cAAE,gBAAgB,CAAC,EAAC,KAAK,EAAE,IAAI,EAAC,CAAC,GAAkB,CAAC;IAC9E,CAAC;IAED,OAAO,CACH,eAAK,SAAS,EAAE,CAAC,CAAC,EAAC,IAAI,EAAC,EAAE,SAAS,CAAC,aAC/B,KAAK,IAAI,cAAK,SAAS,EAAE,CAAC,CAAC,OAAO,CA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E,CAAC;QAC9C,OAAO,KAAC,KAAK,CAAC,QAAQ,cAAE,gBAAgB,CAAC,EAAC,KAAK,EAAE,IAAI,EAAC,CAAC,GAAkB,CAAC;IAC9E,CAAC;IAED,OAAO,CACH,eAAK,SAAS,EAAE,CAAC,CAAC,EAAC,IAAI,EAAC,EAAE,SAAS,CAAC,aAC/B,KAAK,IAAI,cAAK,SAAS,EAAE,CAAC,CAAC,OAAO,CAAC,YAAG,KAAK,GAAO,EAClD,IAAI,IAAI,IAAI,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,CACvB,cAAK,SAAS,EAAE,CAAC,CAAC,OAAO,CAAC,YACrB,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,SAAS,EAAE,EAAE,CAAC,CAC3B,eAAK,SAAS,EAAE,CAAC,CAAC,KAAK,CAAC,aACpB,eAAK,SAAS,EAAE,CAAC,CAAC,OAAO,CAAC,aACtB,cAAK,SAAS,EAAE,CAAC,CAAC,YAAY,EAAE,EAAC,SAAS,EAAE,eAAe,EAAC,CAAC,YACxD,IAAI,CAAC,KAAK,GACT,EACL,IAAI,IAAI,cAAK,SAAS,EAAE,CAAC,CAAC,MAAM,CAAC,GAAI,IACpC,EAEN,cAAK,SAAS,EAAE,CAAC,CAAC,OAAO,CAAC,YAAG,IAAI,CAAC,KAAK,GAAO,KARnB,SAAS,CASlC,CACT,CAAC,GACA,CACT,CAAC,CAAC,CAAC,CACA,IAAI,CAAC,SAAS,CAAC,CAClB,IACC,CACT,CAAC;AACN,CAAC,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/InfoViewer/index.ts"],"names":[],"mappings":"AAAA,OAAO,UAAU,MAAM,cAAc,CAAC;
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/InfoViewer/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAC,MAAM,cAAc,CAAC;AAExC,OAAO,EAAC,UAAU,EAAC,CAAC;AACpB,cAAc,SAAS,CAAC"}
|
@@ -3,6 +3,7 @@ import type { NodeAddress } from '../../types/additionalProps';
|
|
3
3
|
interface NodeHostWrapperProps {
|
4
4
|
node: NodesPreparedEntity;
|
5
5
|
getNodeRef?: (node?: NodeAddress) => string | null;
|
6
|
+
database?: string;
|
6
7
|
}
|
7
|
-
export declare const NodeHostWrapper: ({ node, getNodeRef }: NodeHostWrapperProps) => import("react/jsx-runtime").JSX.Element;
|
8
|
+
export declare const NodeHostWrapper: ({ node, getNodeRef, database }: NodeHostWrapperProps) => import("react/jsx-runtime").JSX.Element;
|
8
9
|
export {};
|
@@ -7,7 +7,7 @@ import { CellWithPopover } from '../CellWithPopover/CellWithPopover';
|
|
7
7
|
import { DeveloperUILinkButton } from '../DeveloperUILinkButton/DeveloperUILinkButton';
|
8
8
|
import { EntityStatus } from '../EntityStatus/EntityStatus';
|
9
9
|
import { NodeEndpointsTooltipContent } from '../TooltipsContent';
|
10
|
-
export const NodeHostWrapper = ({ node, getNodeRef }) => {
|
10
|
+
export const NodeHostWrapper = ({ node, getNodeRef, database }) => {
|
11
11
|
if (!node.Host) {
|
12
12
|
return _jsx("span", { children: "\u2014" });
|
13
13
|
}
|
@@ -21,7 +21,7 @@ export const NodeHostWrapper = ({ node, getNodeRef }) => {
|
|
21
21
|
}
|
22
22
|
const nodePath = isNodeAvailable
|
23
23
|
? getDefaultNodePath(node.NodeId, {
|
24
|
-
tenantName: node.TenantName,
|
24
|
+
tenantName: database !== null && database !== void 0 ? database : node.TenantName,
|
25
25
|
})
|
26
26
|
: undefined;
|
27
27
|
const additionalControls = nodeHref ? _jsx(DeveloperUILinkButton, { href: nodeHref }) : null;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"NodeHostWrapper.js","sourceRoot":"","sources":["../../../src/components/NodeHostWrapper/NodeHostWrapper.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAC,eAAe,EAAC,MAAM,mBAA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AC,IAAI,CAAC,GAAG,UAAU,CAAC;IAC7C,CAAC;SAAM,IAAI,IAAI,CAAC,MAAM,EAAE,CAAC;QACrB,QAAQ,GAAG,+BAA+B,CAAC,IAAI,CAAC,MAAM,CAAC,GAAG,UAAU,CAAC;IACzE,CAAC;IAED,MAAM,QAAQ,GAAG,eAAe;QAC5B,CAAC,CAAC,kBAAkB,CAAC,IAAI,CAAC,MAAM,EAAE;YAC5B,UAAU,EAAE,QAAQ,aAAR,QAAQ,cAAR,QAAQ,GAAI,IAAI,CAAC,UAAU;SAC1C,CAAC;QACJ,CAAC,CAAC,SAAS,CAAC;IAEhB,MAAM,kBAAkB,GAAG,QAAQ,CAAC,CAAC,CAAC,KAAC,qBAAqB,IAAC,IAAI,EAAE,QAAQ,GAAI,CAAC,CAAC,CAAC,IAAI,CAAC;IAEvF,OAAO,CACH,KAAC,eAAe,IACZ,QAAQ,EAAE,CAAC,eAAe,EAC1B,OAAO,EAAE,KAAC,2BAA2B,IAAC,IAAI,EAAE,IAAI,GAAI,EACpD,SAAS,EAAE,CAAC,KAAK,EAAE,QAAQ,CAAC,EAC5B,QAAQ,EAAE,eAAe,CAAC,SAAS,YAEnC,KAAC,YAAY,IACT,IAAI,EAAE,IAAI,CAAC,IAAI,EACf,MAAM,EAAE,IAAI,CAAC,WAAW,EACxB,IAAI,EAAE,QAAQ,EACd,kBAAkB,QAClB,kBAAkB,EAAE,kBAAkB,GACxC,GACY,CACrB,CAAC;AACN,CAAC,CAAC"}
|
@@ -40,6 +40,10 @@
|
|
40
40
|
&__head {
|
41
41
|
z-index: 1;
|
42
42
|
@include sticky-top();
|
43
|
+
|
44
|
+
&-row {
|
45
|
+
display: table;
|
46
|
+
}
|
43
47
|
}
|
44
48
|
|
45
49
|
&__sort-icon-container {
|
@@ -165,4 +169,8 @@
|
|
165
169
|
&__head-cell-wrapper:hover > &__resize-handler {
|
166
170
|
visibility: visible;
|
167
171
|
}
|
172
|
+
|
173
|
+
&__table-chunk {
|
174
|
+
display: block;
|
175
|
+
}
|
168
176
|
}
|
@@ -5,6 +5,7 @@ import { getArray } from '../../utils';
|
|
5
5
|
import { useAutoRefreshInterval } from '../../utils/hooks';
|
6
6
|
import { ResponseError } from '../Errors/ResponseError';
|
7
7
|
import { EmptyTableRow, LoadingTableRow, TableRow } from './TableRow';
|
8
|
+
import { b } from './shared';
|
8
9
|
const DEBOUNCE_TIMEOUT = 200;
|
9
10
|
export const TableChunk = ({ id, limit, rowHeight, columns, fetchData, tableName, filters, sortParams, observer, getRowClassName, renderErrorMessage, onDataFetched, isActive, }) => {
|
10
11
|
var _a;
|
@@ -69,6 +70,6 @@ export const TableChunk = ({ id, limit, rowHeight, columns, fetchData, tableName
|
|
69
70
|
return currentData.data.map((rowData, index) => (_jsx(TableRow, { index: index, row: rowData, columns: columns, height: rowHeight, getRowClassName: getRowClassName }, index)));
|
70
71
|
};
|
71
72
|
const chunkHeight = dataLength ? dataLength * rowHeight : limit * rowHeight;
|
72
|
-
return (_jsx("tbody", { ref: ref, id: id.toString(), style: { height: `${chunkHeight}px` }, children: renderContent() }));
|
73
|
+
return (_jsx("tbody", { className: b('table-chunk'), ref: ref, id: id.toString(), style: { height: `${chunkHeight}px` }, children: renderContent() }));
|
73
74
|
};
|
74
75
|
//# sourceMappingURL=TableChunk.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"TableChunk.js","sourceRoot":"","sources":["../../../src/components/PaginatedTable/TableChunk.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAC,YAAY,EAAC,MAAM,gCAAgC,CAAC;AAE5D,OAAO,EAAC,QAAQ,EAAC,MAAM,aAAa,CAAC;AACrC,OAAO,EAAC,sBAAsB,EAAC,MAAM,mBAAmB,CAAC;AACzD,OAAO,EAAC,aAAa,EAAC,MAAM,yBAAyB,CAAC;AAEtD,OAAO,EAAC,aAAa,EAAE,eAAe,EAAE,QAAQ,EAAC,MAAM,YAAY,C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E,EAAE,EAAE,CAAC,QAAQ,EAAE,EACjB,KAAK,EAAE,EAAC,MAAM,EAAE,GAAG,WAAW,IAAI,EAAC,YAElC,aAAa,EAAE,GACZ,CACX,CAAC;AACN,CAAC,CAAC"}
|
@@ -81,7 +81,7 @@ export const TableHead = ({ columns, onSort, onColumnsResize, defaultSortOrder =
|
|
81
81
|
}) }));
|
82
82
|
};
|
83
83
|
const renderTableHead = () => {
|
84
|
-
return (_jsx("thead", { className: b('head'), children: _jsx("tr", { children: columns.map((column) => {
|
84
|
+
return (_jsx("thead", { className: b('head'), children: _jsx("tr", { className: b('head-row'), children: columns.map((column) => {
|
85
85
|
var _a;
|
86
86
|
const sortOrder = sortParams.columnId === column.name ? sortParams.sortOrder : undefined;
|
87
87
|
const resizeable = onColumnsResize && ((_a = column.resizeable) !== null && _a !== void 0 ? _a : DEFAULT_RESIZEABLE);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"TableHead.js","sourceRoot":"","sources":["../../../src/components/PaginatedTable/TableHead.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAC,aAAa,EAAC,MAAM,iBAAiB,CAAC;AAC9C,OAAO,EACH,SAAS,EACT,kBAAkB,EAClB,kBAAkB,EAClB,wBAAwB,EACxB,UAAU,GACb,MAAM,aAAa,CAAC;AACrB,OAAO,EAAC,CAAC,EAAC,MAAM,UAAU,CAAC;AAG3B,kGAAkG;AAClG,MAAM,QAAQ,GAAG,CAAC,EAAC,KAAK,EAA0B,EAAE,EAAE;IAClD,OAAO,CACH,cACI,SAAS,EAAE,CAAC,CAAC,WAAW,EAAE,EAAC,IAAI,EAAE,KAAK,KAAK,UAAU,EAAC,CAAC,EACvD,OAAO,EAAC,UAAU,EAClB,KAAK,EAAC,IAAI,EACV,MAAM,EAAC,GAAG,YAEV,eAAM,IAAI,EAAC,cAAc,EAAC,CAAC,EAAC,gBAAgB,GAAG,GAC7C,CACT,CAAC;AACN,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E,EAAE;;oBACpB,MAAM,SAAS,GACX,UAAU,CAAC,QAAQ,KAAK,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC;oBAE3E,MAAM,UAAU,GACZ,eAAe,IAAI,CAAC,MAAA,MAAM,CAAC,UAAU,mCAAI,kBAAkB,CAAC,CAAC;oBAEjE,OAAO,CACH,KAAC,aAAa,IAEV,MAAM,EAAE,MAAM,EACd,UAAU,EAAE,UAAU,EACtB,SAAS,EAAE,SAAS,EACpB,gBAAgB,EAAE,gBAAgB,EAClC,MAAM,EAAE,UAAU,EAClB,SAAS,EAAE,SAAS,EACpB,eAAe,EAAE,eAAe,IAP3B,MAAM,CAAC,IAAI,CAQlB,CACL,CAAC;gBACN,CAAC,CAAC,GACD,GACD,CACX,CAAC;IACN,CAAC,CAAC;IAEF,OAAO,CACH,MAAC,KAAK,CAAC,QAAQ,eACV,oBAAoB,EAAE,EACtB,eAAe,EAAE,IACL,CACpB,CAAC;AACN,CAAC,CAAC"}
|
@@ -5,8 +5,8 @@ type Tablets = TFullTabletStateInfo[] | TComputeTabletStateInfo[];
|
|
5
5
|
interface TabletsStatisticProps {
|
6
6
|
tablets: Tablets;
|
7
7
|
path: string | undefined;
|
8
|
-
|
8
|
+
nodeId: string | number;
|
9
9
|
backend?: string;
|
10
10
|
}
|
11
|
-
export declare const TabletsStatistic: ({ tablets, path,
|
11
|
+
export declare const TabletsStatistic: ({ tablets, path, nodeId, backend }: TabletsStatisticProps) => import("react/jsx-runtime").JSX.Element;
|
12
12
|
export {};
|
@@ -1,5 +1,6 @@
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
2
2
|
import { Link } from 'react-router-dom';
|
3
|
+
import { TABLETS } from '../../containers/Node/NodePages';
|
3
4
|
import routes, { createHref } from '../../routes';
|
4
5
|
import { cn } from '../../utils/cn';
|
5
6
|
import { getTabletLabel } from '../../utils/constants';
|
@@ -17,14 +18,11 @@ const prepareTablets = (tablets) => {
|
|
17
18
|
});
|
18
19
|
return res.sort((x, y) => String(x.label).localeCompare(String(y.label)));
|
19
20
|
};
|
20
|
-
export const TabletsStatistic = ({ tablets = [], path,
|
21
|
+
export const TabletsStatistic = ({ tablets = [], path, nodeId, backend }) => {
|
21
22
|
const renderTabletInfo = (item, index) => {
|
22
23
|
var _a;
|
23
|
-
const tabletsPath = createHref(routes.
|
24
|
-
|
25
|
-
state: item.state,
|
26
|
-
type: item.type,
|
27
|
-
path,
|
24
|
+
const tabletsPath = createHref(routes.node, { id: nodeId, activeTab: TABLETS }, {
|
25
|
+
tenantName: path,
|
28
26
|
backend,
|
29
27
|
});
|
30
28
|
const label = `${item.label}: ${item.count}`;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"TabletsStatistic.js","sourceRoot":"","sources":["../../../src/components/TabletsStatistic/TabletsStatistic.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAC,IAAI,EAAC,MAAM,kBAAkB,CAAC;AAEtC,OAAO,MAAM,EAAE,EAAC,UAAU,EAAC,MAAM,cAAc,CAAC;AAGhD,OAAO,EAAC,EAAE,EAAC,MAAM,gBAAgB,CAAC;AAClC,OAAO,EAAC,cAAc,EAAC,MAAM,uBAAuB,CAAC;AACrD,OAAO,EAAC,0BAA0B,EAAC,MAAM,oBAAoB,CAAC;AAE9D,OAAO,yBAAyB,CAAC;AAEjC,MAAM,CAAC,GAAG,EAAE,CAAC,mBAAmB,CAAC,CAAC;AAIlC,MAAM,cAAc,GAAG,CAAC,OAAgB,EAAE,EAAE;IACxC,MAAM,GAAG,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE;QAC/B,OAAO;YACH,KAAK,EAAE,cAAc,CAAC,MAAM,CAAC,IAAI,CAAC;YAClC,IAAI,EAAE,MAAM,CAAC,IAAI;YACjB,KAAK,EAAE,MAAM,CAAC,KAAK;YACnB,KAAK,EAAE,0BAA0B,CAAC,MAAM,CAAC,K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|
+
import type { DefinitionListProps } from '@gravity-ui/components';
|
3
|
+
import './YDBDefinitionList.scss';
|
4
|
+
interface YDBDefinitionListProps extends DefinitionListProps {
|
5
|
+
title?: React.ReactNode;
|
6
|
+
}
|
7
|
+
/** DefinitionList with predefined styles and layout */
|
8
|
+
export declare function YDBDefinitionList({ title, items, nameMaxWidth, copyPosition, className, itemClassName, ...restProps }: YDBDefinitionListProps): import("react/jsx-runtime").JSX.Element;
|
9
|
+
export {};
|
@@ -0,0 +1,23 @@
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
2
|
+
import { DefinitionList } from '@gravity-ui/components';
|
3
|
+
import { cn } from '../../utils/cn';
|
4
|
+
import i18n from './i18n';
|
5
|
+
import './YDBDefinitionList.scss';
|
6
|
+
const b = cn('ydb-definition-list');
|
7
|
+
/** DefinitionList with predefined styles and layout */
|
8
|
+
export function YDBDefinitionList({ title, items, nameMaxWidth = 220, copyPosition = 'outside', className, itemClassName, ...restProps }) {
|
9
|
+
const renderTitle = () => {
|
10
|
+
if (title) {
|
11
|
+
return _jsx("div", { className: b('title'), children: title });
|
12
|
+
}
|
13
|
+
return null;
|
14
|
+
};
|
15
|
+
const renderContent = () => {
|
16
|
+
if (items.length) {
|
17
|
+
return (_jsx(DefinitionList, { items: items, nameMaxWidth: nameMaxWidth, copyPosition: copyPosition, className: b('properties-list', className), itemClassName: b('item', itemClassName), ...restProps }));
|
18
|
+
}
|
19
|
+
return i18n('no-data');
|
20
|
+
};
|
21
|
+
return (_jsxs("div", { className: b(null), children: [renderTitle(), renderContent()] }));
|
22
|
+
}
|
23
|
+
//# sourceMappingURL=YDBDefinitionList.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"YDBDefinitionList.js","sourceRoot":"","sources":["../../../src/components/YDBDefinitionList/YDBDefinitionList.tsx"],"names":[],"mappings":";AAGA,OAAO,EAAC,cAAc,EAAC,MAAM,wBAAwB,CAAC;AAEtD,OAAO,EAAC,EAAE,EAAC,MAAM,gBAAgB,CAAC;AAElC,OAAO,IAAI,MAAM,QAAQ,CAAC;AAE1B,OAAO,0BAA0B,CAAC;AAElC,MAAM,CAAC,GAAG,EAAE,CAAC,qBAAqB,CAAC,CAAC;AAMpC,uDAAuD;AACvD,MAAM,UAAU,iBAAiB,CAAC,EAC9B,KAAK,EACL,KAAK,EACL,YAAY,GAAG,GAAG,EAClB,YAAY,GAAG,SAAS,EACxB,SAAS,EACT,aAAa,EACb,GAAG,SAAS,EACS;IACrB,MAAM,WAAW,GAAG,GAAG,EAAE;QACrB,IAAI,KAAK,EAAE,CAAC;YACR,OAAO,cAAK,SAAS,EAAE,CAAC,CAAC,OAAO,CAAC,YAAG,KAAK,GAAO,CAAC;QACrD,CAAC;QACD,OAAO,IAAI,CAAC;IAChB,CAAC,CAAC;IAEF,MAAM,aAAa,GAAG,GAAG,EAAE;QACvB,IAAI,KAAK,CAAC,MAAM,EAAE,CAAC;YACf,OAAO,CACH,KAAC,cAAc,IACX,KAAK,EAAE,KAAK,EACZ,YAAY,EAAE,YAAY,EAC1B,YAAY,EAAE,YAAY,EAC1B,SAAS,EAAE,CAAC,CAAC,iBAAiB,EAAE,SAAS,CAAC,EAC1C,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE,aAAa,CAAC,KACnC,SAAS,GACf,CACL,CAAC;QACN,CAAC;QAED,OAAO,IAAI,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC,CAAC;IAEF,OAAO,CACH,eAAK,SAAS,EAAE,CAAC,CAAC,IAAI,CAAC,aAClB,WAAW,EAAE,EACb,aAAa,EAAE,IACd,CACT,CAAC;AACN,CAAC"}
|
@@ -1,13 +1,13 @@
|
|
1
|
-
@import '
|
1
|
+
@import '../../styles/mixins.scss';
|
2
2
|
|
3
|
-
.ydb-
|
3
|
+
.ydb-definition-list {
|
4
4
|
@include flex-container();
|
5
5
|
|
6
|
-
&__properties-list {
|
7
|
-
max-width: calc(100% - 40px);
|
8
|
-
}
|
9
|
-
|
10
6
|
&__title {
|
11
7
|
@include info-viewer-title();
|
12
8
|
}
|
9
|
+
|
10
|
+
&__properties-list {
|
11
|
+
max-width: calc(100% - 40px);
|
12
|
+
}
|
13
13
|
}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/YDBDefinitionList/i18n/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,eAAe,EAAC,MAAM,qBAAqB,CAAC;AAEpD,OAAO,EAAE,MAAM,WAAW,CAAC;AAE3B,MAAM,SAAS,GAAG,qBAAqB,CAAC;AAExC,eAAe,eAAe,CAAC,SAAS,EAAE,EAAC,EAAE,EAAC,CAAC,CAAC"}
|
@@ -14,7 +14,7 @@ import { lazyComponent } from '../../utils/lazyComponent';
|
|
14
14
|
import Authentication from '../Authentication/Authentication';
|
15
15
|
import { getClusterPath } from '../Cluster/utils';
|
16
16
|
import Header from '../Header/Header';
|
17
|
-
import { ClusterSlot, ClustersSlot, NodeSlot, PDiskPageSlot, RedirectSlot, RoutesSlot, TabletSlot,
|
17
|
+
import { ClusterSlot, ClustersSlot, NodeSlot, PDiskPageSlot, RedirectSlot, RoutesSlot, TabletSlot, TenantSlot, VDiskPageSlot, } from './appSlots';
|
18
18
|
import i18n from './i18n';
|
19
19
|
import './App.scss';
|
20
20
|
const b = cn('app');
|
@@ -55,12 +55,6 @@ const routesSlots = [
|
|
55
55
|
component: lazyComponent(() => import('../Tablet'), 'Tablet'),
|
56
56
|
wrapper: DataWrapper,
|
57
57
|
},
|
58
|
-
{
|
59
|
-
path: routes.tabletsFilters,
|
60
|
-
slot: TabletsFiltersSlot,
|
61
|
-
component: lazyComponent(() => import('../TabletsFilters/TabletsFilters'), 'TabletsFilters'),
|
62
|
-
wrapper: DataWrapper,
|
63
|
-
},
|
64
58
|
];
|
65
59
|
const Clusters = lazyComponent(() => import('../Clusters/Clusters'), 'Clusters');
|
66
60
|
function renderRouteSlot(slots, route) {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Content.js","sourceRoot":"","sources":["../../../src/containers/App/Content.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAC,OAAO,EAAC,MAAM,aAAa,CAAC;AAEpC,OAAO,EAAC,QAAQ,EAAE,KAAK,EAAE,MAAM,EAAC,MAAM,kBAAkB,CAAC;AAEzD,OAAO,EAAC,SAAS,EAAC,MAAM,6CAA6C,CAAC;AACtE,OAAO,EAAC,aAAa,EAAC,MAAM,8CAA8C,CAAC;AAC3E,OAAO,EAAC,QAAQ,EAAC,MAAM,wBAAwB,CAAC;AAGhD,OAAO,MAAM,MAAM,cAAc,CAAC;AAElC,OAAO,EAAC,iBAAiB,EAAC,MAAM,oDAAoD,CAAC;AACrF,OAAO,EAAC,eAAe,EAAC,MAAM,gDAAgD,CAAC;AAC/E,OAAO,EAAC,YAAY,EAAC,MAAM,gCAAgC,CAAC;AAC5D,OAAO,EAAC,EAAE,EAAC,MAAM,gBAAgB,CAAC;AAClC,OAAO,EAAC,aAAa,EAAC,MAAM,2BAA2B,CAAC;AACxD,OAAO,cAAc,MAAM,kCAAkC,CAAC;AAC9D,OAAO,EAAC,cAAc,EAAC,MAAM,kBAAkB,CAAC;AAChD,OAAO,MAAM,MAAM,kBAAkB,CAAC;AAGtC,OAAO,EACH,WAAW,EACX,YAAY,EACZ,QAAQ,EACR,aAAa,EACb,YAAY,EACZ,UAAU,EACV,UAAU,EACV,
|
1
|
+
{"version":3,"file":"Content.js","sourceRoot":"","sources":["../../../src/containers/App/Content.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAC,OAAO,EAAC,MAAM,aAAa,CAAC;AAEpC,OAAO,EAAC,QAAQ,EAAE,KAAK,EAAE,MAAM,EAAC,MAAM,kBAAkB,CAAC;AAEzD,OAAO,EAAC,SAAS,EAAC,MAAM,6CAA6C,CAAC;AACtE,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ACvC,KAAC,SAAS,IAAC,KAAK,EAAE,KAAK,YAAG,QAAQ,GAAa,GACnC,CACnB,CAAC;AACN,CAAC;AAED,SAAS,YAAY;IACjB,YAAY,CAAC,oBAAoB,CAAC,SAAS,CAAC,CAAC;IAC7C,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAS,eAAe;IACpB,eAAe,CAAC,8BAA8B,CAAC,SAAS,CAAC,CAAC;IAC1D,OAAO,IAAI,CAAC;AAChB,CAAC;AAQD,SAAS,cAAc,CAAC,KAA0B;IAC9C,MAAM,EAAC,iBAAiB,EAAE,eAAe,EAAC,GAAG,KAAK,CAAC;IAEnD,OAAO,CACH,MAAC,MAAM,eACH,KAAC,KAAK,IAAC,IAAI,EAAE,MAAM,CAAC,IAAI,YACpB,KAAC,cAAc,IAAC,QAAQ,SAAG,GACvB,EACR,KAAC,KAAK,cACF,cAAK,SAAS,EAAE,CAAC,CAAC,EAAC,QAAQ,EAAE,iBAAiB,EAAC,CAAC,YAC3C,eAAe,CAAC,CAAC,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,KAAC,cAAc,KAAG,GACpD,GACF,IACH,CACZ,CAAC;AACN,CAAC;AAED,SAAS,eAAe,CAAC,KAAgB;IACrC,OAAO;QACH,eAAe,EAAE,KAAK,CAAC,cAAc,CAAC,eAAe;QACrD,iBAAiB,EAAE,KAAK,CAAC,iBAAiB;KAC7C,CAAC;AACN,CAAC;AAED,eAAe,OAAO,CAAC,eAAe,CAAC,CAAC,cAAc,CAAC,CAAC"}
|
@@ -4,7 +4,6 @@ import type { Clusters } from '../Clusters/Clusters';
|
|
4
4
|
import type { Node } from '../Node/Node';
|
5
5
|
import type { PDiskPage } from '../PDiskPage/PDiskPage';
|
6
6
|
import type { Tablet } from '../Tablet';
|
7
|
-
import type { TabletsFilters } from '../TabletsFilters/TabletsFilters';
|
8
7
|
import type { Tenant } from '../Tenant/Tenant';
|
9
8
|
import type { VDiskPage } from '../VDiskPage/VDiskPage';
|
10
9
|
export declare const ClustersSlot: import("../../components/slots/types").SlotComponent<{
|
@@ -42,11 +41,6 @@ export declare const TabletSlot: import("../../components/slots/types").SlotComp
|
|
42
41
|
component: typeof Tablet;
|
43
42
|
} & RouteComponentProps) => React.ReactNode);
|
44
43
|
}, never>;
|
45
|
-
export declare const TabletsFiltersSlot: import("../../components/slots/types").SlotComponent<{
|
46
|
-
children: React.ReactNode | ((props: {
|
47
|
-
component: typeof TabletsFilters;
|
48
|
-
} & RouteComponentProps) => React.ReactNode);
|
49
|
-
}, never>;
|
50
44
|
export declare const RoutesSlot: import("../../components/slots/types").SlotComponent<{
|
51
45
|
children: React.ReactNode;
|
52
46
|
}, never>;
|
@@ -6,7 +6,6 @@ export const NodeSlot = createSlot('node');
|
|
6
6
|
export const PDiskPageSlot = createSlot('pDisk');
|
7
7
|
export const VDiskPageSlot = createSlot('vDisk');
|
8
8
|
export const TabletSlot = createSlot('tablet');
|
9
|
-
export const TabletsFiltersSlot = createSlot('tabletsFilters');
|
10
9
|
export const RoutesSlot = createSlot('routes');
|
11
10
|
export const RedirectSlot = createSlot('redirect');
|
12
11
|
//# sourceMappingURL=appSlots.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"appSlots.js","sourceRoot":"","sources":["../../../src/containers/App/appSlots.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAC,UAAU,EAAC,MAAM,wBAAwB,CAAC;
|
1
|
+
{"version":3,"file":"appSlots.js","sourceRoot":"","sources":["../../../src/containers/App/appSlots.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAC,UAAU,EAAC,MAAM,wBAAwB,CAAC;AASlD,MAAM,CAAC,MAAM,YAAY,GAAG,UAAU,CAInC,UAAU,CAAC,CAAC;AACf,MAAM,CAAC,MAAM,WAAW,GAAG,UAAU,CAIlC,SAAS,CAAC,CAAC;AACd,MAAM,CAAC,MAAM,UAAU,GAAG,UAAU,CAIjC,QAAQ,CAAC,CAAC;AACb,MAAM,CAAC,MAAM,QAAQ,GAAG,UAAU,CAI/B,MAAM,CAAC,CAAC;AACX,MAAM,CAAC,MAAM,aAAa,GAAG,UAAU,CAIpC,OAAO,CAAC,CAAC;AACZ,MAAM,CAAC,MAAM,aAAa,GAAG,UAAU,CAIpC,OAAO,CAAC,CAAC;AACZ,MAAM,CAAC,MAAM,UAAU,GAAG,UAAU,CAIjC,QAAQ,CAAC,CAAC;AAEb,MAAM,CAAC,MAAM,UAAU,GAAG,UAAU,CAA8B,QAAQ,CAAC,CAAC;AAC5E,MAAM,CAAC,MAAM,YAAY,GAAG,UAAU,CAAgB,UAAU,CAAC,CAAC"}
|
@@ -9,12 +9,11 @@ import { EntityStatus } from '../../components/EntityStatus/EntityStatus';
|
|
9
9
|
import { InternalLink } from '../../components/InternalLink';
|
10
10
|
import routes, { getLocationObjectFromHref } from '../../routes';
|
11
11
|
import { clusterApi, updateDefaultClusterTab } from '../../store/reducers/cluster/cluster';
|
12
|
-
import { clusterNodesApi } from '../../store/reducers/clusterNodes/clusterNodes';
|
13
12
|
import { setHeaderBreadcrumbs } from '../../store/reducers/header/header';
|
14
13
|
import { cn } from '../../utils/cn';
|
15
14
|
import { CLUSTER_DEFAULT_TITLE } from '../../utils/constants';
|
16
|
-
import {
|
17
|
-
import {
|
15
|
+
import { useTypedDispatch, useTypedSelector } from '../../utils/hooks';
|
16
|
+
import { parseVersionsToVersionToColorMap } from '../../utils/versions';
|
18
17
|
import { NodesWrapper } from '../Nodes/NodesWrapper';
|
19
18
|
import { StorageWrapper } from '../Storage/StorageWrapper';
|
20
19
|
import { Tenants } from '../Tenants/Tenants';
|
@@ -32,13 +31,8 @@ export function Cluster({ additionalClusterProps, additionalTenantsProps, additi
|
|
32
31
|
clusterName: StringParam,
|
33
32
|
backend: StringParam,
|
34
33
|
});
|
35
|
-
const
|
36
|
-
const { data: { clusterData: cluster = {}, groupsStats } = {}, isLoading: isClusterLoading, error, } = clusterApi.useGetClusterInfoQuery(clusterName !== null && clusterName !== void 0 ? clusterName : undefined, {
|
37
|
-
pollingInterval: autoRefreshInterval,
|
38
|
-
});
|
34
|
+
const { data: { clusterData: cluster = {}, groupsStats } = {}, isLoading: infoLoading, error, } = clusterApi.useGetClusterInfoQuery(clusterName !== null && clusterName !== void 0 ? clusterName : undefined);
|
39
35
|
const clusterError = error && typeof error === 'object' ? error : undefined;
|
40
|
-
const { data: nodes = [], isLoading: isNodesLoading } = clusterNodesApi.useGetClusterNodesQuery(undefined);
|
41
|
-
const infoLoading = isClusterLoading || isNodesLoading;
|
42
36
|
const { Name } = cluster;
|
43
37
|
React.useEffect(() => {
|
44
38
|
dispatch(setHeaderBreadcrumbs('cluster', {}));
|
@@ -49,9 +43,6 @@ export function Cluster({ additionalClusterProps, additionalTenantsProps, additi
|
|
49
43
|
}
|
50
44
|
return parseVersionsToVersionToColorMap(cluster === null || cluster === void 0 ? void 0 : cluster.Versions);
|
51
45
|
}, [additionalVersionsProps, cluster]);
|
52
|
-
const versionsValues = React.useMemo(() => {
|
53
|
-
return parseNodesToVersionsValues(nodes, versionToColor);
|
54
|
-
}, [nodes, versionToColor]);
|
55
46
|
const getClusterTitle = () => {
|
56
47
|
var _a;
|
57
48
|
if (infoLoading) {
|
@@ -67,7 +58,7 @@ export function Cluster({ additionalClusterProps, additionalTenantsProps, additi
|
|
67
58
|
dispatch(updateDefaultClusterTab(id));
|
68
59
|
}, children: node }, id));
|
69
60
|
} }) }), _jsxs("div", { children: [_jsx("div", { className: b('sticky-wrapper'), children: _jsx(AutoRefreshControl, { className: b('auto-refresh-control') }) }), _jsxs(Switch, { children: [_jsx(Route, { path: getLocationObjectFromHref(getClusterPath(clusterTabsIds.overview))
|
70
|
-
.pathname, children: _jsx(ClusterInfo, { cluster: cluster, groupsStats: groupsStats,
|
61
|
+
.pathname, children: _jsx(ClusterInfo, { cluster: cluster, groupsStats: groupsStats, versionToColor: versionToColor, loading: infoLoading, error: clusterError, additionalClusterProps: additionalClusterProps }) }), _jsx(Route, { path: getLocationObjectFromHref(getClusterPath(clusterTabsIds.tenants))
|
71
62
|
.pathname, children: _jsx(Tenants, { additionalTenantsProps: additionalTenantsProps }) }), _jsx(Route, { path: getLocationObjectFromHref(getClusterPath(clusterTabsIds.nodes)).pathname, children: _jsx(NodesWrapper, { parentContainer: container.current, additionalNodesProps: additionalNodesProps }) }), _jsx(Route, { path: getLocationObjectFromHref(getClusterPath(clusterTabsIds.storage))
|
72
63
|
.pathname, children: _jsx(StorageWrapper, { parentContainer: container.current, additionalNodesProps: additionalNodesProps }) }), _jsx(Route, { path: getLocationObjectFromHref(getClusterPath(clusterTabsIds.versions))
|
73
64
|
.pathname, children: _jsx(Versions, { versionToColor: versionToColor }) }), _jsx(Route, { render: () => (_jsx(Redirect, { to: getLocationObjectFromHref(getClusterPath(activeTabId)) })) })] })] })] }));
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Cluster.js","sourceRoot":"","sources":["../../../src/containers/Cluster/Cluster.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAC,QAAQ,EAAE,IAAI,EAAC,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAC,MAAM,EAAC,MAAM,oBAAoB,CAAC;AAC1C,OAAO,EAAC,QAAQ,EAAE,KAAK,EAAE,MAAM,EAAE,aAAa,EAAC,MAAM,kBAAkB,CAAC;AACxE,OAAO,EAAC,WAAW,EAAE,cAAc,EAAC,MAAM,kBAAkB,CAAC;AAE7D,OAAO,EAAC,kBAAkB,EAAC,MAAM,wDAAwD,CAAC;AAC1F,OAAO,EAAC,YAAY,EAAC,MAAM,4CAA4C,CAAC;AACxE,OAAO,EAAC,YAAY,EAAC,MAAM,+BAA+B,CAAC;AAC3D,OAAO,MAAM,EAAE,EAAC,yBAAyB,EAAC,MAAM,cAAc,CAAC;AAC/D,OAAO,EAAC,UAAU,EAAE,uBAAuB,EAAC,MAAM,sCAAsC,CAAC;AACzF,OAAO,EAAC,
|
1
|
+
{"version":3,"file":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S,GAAG,UAAU,CAAC;IAC3B,CAAC;IAED,KAAK,CAAC,SAAS,CAAC,GAAG,EAAE;QACjB,IAAI,SAAS,KAAK,UAAU,EAAE,CAAC;YAC3B,QAAQ,CAAC,uBAAuB,CAAC,SAAS,CAAC,CAAC,CAAC;QACjD,CAAC;IACL,CAAC,EAAE,CAAC,SAAS,EAAE,UAAU,EAAE,QAAQ,CAAC,CAAC,CAAC;IAEtC,OAAO,SAAS,CAAC;AACrB,CAAC"}
|
@@ -2,15 +2,15 @@ import type { ClusterGroupsStats } from '../../../store/reducers/cluster/types';
|
|
2
2
|
import type { AdditionalClusterProps } from '../../../types/additionalProps';
|
3
3
|
import type { TClusterInfo } from '../../../types/api/cluster';
|
4
4
|
import type { IResponseError } from '../../../types/api/error';
|
5
|
-
import type {
|
5
|
+
import type { VersionToColorMap } from '../../../types/versions';
|
6
6
|
import './ClusterInfo.scss';
|
7
7
|
interface ClusterInfoProps {
|
8
8
|
cluster?: TClusterInfo;
|
9
|
-
|
9
|
+
versionToColor?: VersionToColorMap;
|
10
10
|
groupsStats?: ClusterGroupsStats;
|
11
11
|
loading?: boolean;
|
12
12
|
error?: IResponseError;
|
13
13
|
additionalClusterProps?: AdditionalClusterProps;
|
14
14
|
}
|
15
|
-
export declare const ClusterInfo: ({ cluster,
|
15
|
+
export declare const ClusterInfo: ({ cluster, versionToColor, groupsStats, loading, error, additionalClusterProps, }: ClusterInfoProps) => import("react/jsx-runtime").JSX.Element;
|
16
16
|
export {};
|