Skip to content

Commit 226cc70

Browse files
feat(Nodes): use /viewer/json/nodes endpoint
1 parent e91e136 commit 226cc70

31 files changed

+523
-740
lines changed

src/components/TabletsStatistic/TabletsStatistic.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ const prepareTablets = (tablets: ITablets) => {
2929

3030
interface TabletsStatisticProps {
3131
tablets: ITablets;
32-
path: string;
32+
path: string | undefined;
3333
nodeIds: string[] | number[];
3434
}
3535

src/containers/App/App.scss

-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
@import url('https://fonts.googleapis.com/css2?family=Rubik&display=swap');
22
@import '../../styles/mixins.scss';
3-
@import './NodesTable';
43

54
* {
65
// FIXME: this is an overkill, potentially could break external components, needs refactoring

src/containers/Cluster/Cluster.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import cn from 'bem-cn-lite';
22
//@ts-ignore
33
import Tenants from '../Tenants/Tenants';
44
//@ts-ignore
5-
import Nodes from '../Nodes/Nodes';
5+
import {Nodes} from '../Nodes/Nodes';
66
//@ts-ignore
77
import Storage from '../Storage/Storage';
88
import routes, {CLUSTER_PAGES} from '../../routes';
@@ -28,7 +28,7 @@ function Cluster(props: ClusterProps) {
2828
return <Tenants {...props} />;
2929
}
3030
case CLUSTER_PAGES.nodes.id: {
31-
return <Nodes {...props} />;
31+
return <Nodes additionalNodesInfo={props.additionalNodesInfo} />;
3232
}
3333
case CLUSTER_PAGES.storage.id: {
3434
//@ts-ignore

src/containers/Nodes/Nodes.js

-214
This file was deleted.

src/containers/Nodes/Nodes.scss

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
@import '../../styles/mixins.scss';
22

3-
.cluster-nodes {
3+
.ydb-nodes {
44
overflow: auto;
5+
flex-grow: 1;
6+
7+
height: 100%;
8+
59
@include flex-container();
610

711
&__search {

0 commit comments

Comments
 (0)