ydb-embedded-ui 4.3.0 → 4.4.1
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +24 -0
- package/dist/containers/App/Content.js +2 -8
- package/dist/containers/AsideNavigation/AsideNavigation.tsx +1 -1
- package/dist/containers/Cluster/Cluster.scss +4 -0
- package/dist/containers/Cluster/Cluster.tsx +14 -8
- package/dist/{components → containers}/ClusterInfo/ClusterInfo.scss +39 -0
- package/dist/containers/ClusterInfo/ClusterInfo.tsx +207 -0
- package/dist/containers/ClusterInfo/utils.ts +13 -0
- package/dist/containers/Header/Header.tsx +9 -16
- package/dist/containers/Nodes/Nodes.tsx +4 -6
- package/dist/containers/Storage/DiskStateProgressBar/DiskStateProgressBar.tsx +2 -3
- package/dist/containers/Tenant/Diagnostics/Partitions/Headers/Headers.tsx +4 -4
- package/dist/containers/Tenant/Diagnostics/Partitions/Partitions.scss +4 -0
- package/dist/containers/Tenant/Diagnostics/Partitions/Partitions.tsx +2 -2
- package/dist/containers/Tenant/Diagnostics/Partitions/PartitionsControls/PartitionsControls.tsx +20 -26
- package/dist/containers/Tenant/Diagnostics/Partitions/i18n/en.json +1 -1
- package/dist/containers/Tenant/Diagnostics/Partitions/i18n/ru.json +1 -1
- package/dist/containers/UserSettings/Setting.tsx +82 -0
- package/dist/containers/UserSettings/UserSettings.tsx +61 -102
- package/dist/containers/UserSettings/i18n/en.json +20 -0
- package/dist/containers/UserSettings/i18n/index.ts +11 -0
- package/dist/containers/UserSettings/i18n/ru.json +20 -0
- package/dist/containers/Versions/GroupedNodesTree/GroupedNodesTree.scss +59 -0
- package/dist/containers/Versions/GroupedNodesTree/GroupedNodesTree.tsx +98 -0
- package/dist/containers/Versions/NodesTable/NodesTable.tsx +150 -0
- package/dist/containers/Versions/NodesTreeTitle/NodesTreeTitle.scss +55 -0
- package/dist/containers/Versions/NodesTreeTitle/NodesTreeTitle.tsx +62 -0
- package/dist/containers/Versions/Versions.scss +32 -0
- package/dist/containers/Versions/Versions.tsx +121 -0
- package/dist/containers/Versions/groupNodes.ts +124 -0
- package/dist/containers/Versions/types.ts +16 -0
- package/dist/routes.ts +0 -6
- package/dist/services/api.ts +3 -0
- package/dist/store/reducers/cluster/cluster.ts +4 -0
- package/dist/store/reducers/cluster/types.ts +3 -2
- package/dist/store/reducers/clusterNodes/clusterNodes.tsx +64 -0
- package/dist/store/reducers/clusterNodes/types.ts +22 -0
- package/dist/store/reducers/index.ts +2 -8
- package/dist/store/reducers/partitions/partitions.ts +2 -2
- package/dist/store/reducers/partitions/types.ts +1 -1
- package/dist/types/additionalProps.ts +5 -0
- package/dist/types/versions.ts +9 -0
- package/dist/utils/constants.ts +0 -11
- package/dist/utils/hooks/useSetting.ts +5 -3
- package/dist/utils/versions/getVersionsColors.ts +98 -0
- package/dist/utils/versions/index.ts +3 -0
- package/dist/utils/versions/parseNodesToVersionsValues.ts +28 -0
- package/dist/utils/versions/parseVersion.ts +23 -0
- package/package.json +1 -1
- package/dist/components/ClusterInfo/ClusterInfo.tsx +0 -239
- package/dist/components/FullGroupViewer/FullGroupViewer.js +0 -147
- package/dist/components/FullGroupViewer/FullGroupViewer.scss +0 -35
- package/dist/components/GroupTreeViewer/GroupTreeViewer.js +0 -87
- package/dist/components/GroupTreeViewer/GroupTreeViewer.scss +0 -16
- package/dist/components/GroupViewer/GroupViewer.js +0 -100
- package/dist/components/GroupViewer/GroupViewer.scss +0 -45
- package/dist/components/PDiskViewer/PDiskViewer.js +0 -79
- package/dist/components/PDiskViewer/PDiskViewer.scss +0 -46
- package/dist/components/TabletsViewer/TabletsViewer.js +0 -44
- package/dist/components/TabletsViewer/TabletsViewer.scss +0 -40
- package/dist/components/VerticalBars/VerticalBars.scss +0 -15
- package/dist/components/VerticalBars/VerticalBars.tsx +0 -38
- package/dist/components/VerticalBars/index.ts +0 -1
- package/dist/containers/Group/Group.js +0 -97
- package/dist/containers/Group/Group.scss +0 -6
- package/dist/containers/Header/Host/Host.js +0 -66
- package/dist/containers/Header/Host/Host.scss +0 -50
- package/dist/containers/Pdisk/Pdisk.js +0 -156
- package/dist/containers/Pdisk/Pdisk.scss +0 -42
- package/dist/containers/Pool/Pool.js +0 -170
- package/dist/containers/Pool/Pool.scss +0 -35
- package/dist/containers/Vdisk/Vdisk.js +0 -158
- package/dist/containers/Vdisk/Vdisk.scss +0 -42
- package/dist/containers/VdiskPdiskNode/VdiskPdiskNode.js +0 -526
- package/dist/containers/VdiskPdiskNode/VdiskPdiskNode.scss +0 -60
- package/dist/store/reducers/group.js +0 -49
- package/dist/store/reducers/pdisk.js +0 -51
- package/dist/store/reducers/pool.js +0 -42
- package/dist/store/reducers/vdisk.js +0 -49
@@ -1,42 +0,0 @@
|
|
1
|
-
import {createRequestActionTypes, createApiRequest} from '../utils';
|
2
|
-
import '../../services/api';
|
3
|
-
|
4
|
-
const FETCH_POOL = createRequestActionTypes('pool', 'FETCH_POOL');
|
5
|
-
|
6
|
-
const pool = function z(state = {loading: true, wasLoaded: false}, action) {
|
7
|
-
switch (action.type) {
|
8
|
-
case FETCH_POOL.REQUEST: {
|
9
|
-
return {
|
10
|
-
...state,
|
11
|
-
loading: true,
|
12
|
-
};
|
13
|
-
}
|
14
|
-
case FETCH_POOL.SUCCESS: {
|
15
|
-
return {
|
16
|
-
...state,
|
17
|
-
data: action.data,
|
18
|
-
loading: false,
|
19
|
-
wasLoaded: true,
|
20
|
-
error: undefined,
|
21
|
-
};
|
22
|
-
}
|
23
|
-
case FETCH_POOL.FAILURE: {
|
24
|
-
return {
|
25
|
-
...state,
|
26
|
-
error: action.error,
|
27
|
-
loading: false,
|
28
|
-
};
|
29
|
-
}
|
30
|
-
default:
|
31
|
-
return state;
|
32
|
-
}
|
33
|
-
};
|
34
|
-
|
35
|
-
export function getPoolInfo(poolName) {
|
36
|
-
return createApiRequest({
|
37
|
-
request: window.api.getPoolInfo(poolName),
|
38
|
-
actions: FETCH_POOL,
|
39
|
-
});
|
40
|
-
}
|
41
|
-
|
42
|
-
export default pool;
|
@@ -1,49 +0,0 @@
|
|
1
|
-
import {createRequestActionTypes, createApiRequest} from '../utils';
|
2
|
-
import '../../services/api';
|
3
|
-
|
4
|
-
const FETCH_VDISK = createRequestActionTypes('VDISK', 'FETCH_VDISK');
|
5
|
-
|
6
|
-
const initialState = {loading: true, wasLoaded: false, data: undefined};
|
7
|
-
|
8
|
-
const vdisk = (state = initialState, action) => {
|
9
|
-
switch (action.type) {
|
10
|
-
case FETCH_VDISK.REQUEST: {
|
11
|
-
return {
|
12
|
-
...state,
|
13
|
-
loading: true,
|
14
|
-
};
|
15
|
-
}
|
16
|
-
case FETCH_VDISK.SUCCESS: {
|
17
|
-
return {
|
18
|
-
...state,
|
19
|
-
data: action.data,
|
20
|
-
loading: false,
|
21
|
-
wasLoaded: true,
|
22
|
-
error: undefined,
|
23
|
-
};
|
24
|
-
}
|
25
|
-
case FETCH_VDISK.FAILURE: {
|
26
|
-
return {
|
27
|
-
...state,
|
28
|
-
error: action.error,
|
29
|
-
loading: false,
|
30
|
-
};
|
31
|
-
}
|
32
|
-
case 'CLEAR_STORE': {
|
33
|
-
return initialState;
|
34
|
-
}
|
35
|
-
default:
|
36
|
-
return state;
|
37
|
-
}
|
38
|
-
};
|
39
|
-
|
40
|
-
export const clearStore = () => ({type: 'CLEAR_STORE'});
|
41
|
-
|
42
|
-
export const getVdiskInfo = ({vdiskId, pdiskId, nodeId}) => {
|
43
|
-
return createApiRequest({
|
44
|
-
request: window.api.getVdiskInfo({vdiskId, pdiskId, nodeId}),
|
45
|
-
actions: FETCH_VDISK,
|
46
|
-
});
|
47
|
-
};
|
48
|
-
|
49
|
-
export default vdisk;
|