ydb-embedded-ui 1.5.0 → 1.5.3
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +31 -0
- package/dist/components/AsideNavigation/Settings/Settings.scss +4 -4
- package/dist/components/Breadcrumbs/Breadcrumbs.scss +1 -1
- package/dist/components/Collapse/Collapse.scss +8 -8
- package/dist/components/EmptyState/EmptyState.scss +6 -6
- package/dist/components/EntityStatus/EntityStatus.scss +6 -6
- package/dist/components/FullNodeViewer/FullNodeViewer.scss +7 -7
- package/dist/components/GroupViewer/GroupViewer.scss +1 -1
- package/dist/components/InfoViewer/InfoViewer.scss +4 -4
- package/dist/components/PDiskViewer/PDiskViewer.scss +1 -1
- package/dist/components/PoolUsage/PoolUsage.scss +5 -5
- package/dist/components/ProgressViewer/ProgressViewer.scss +9 -9
- package/dist/components/TableSkeleton/TableSkeleton.scss +1 -1
- package/dist/components/TabletsViewer/TabletsViewer.scss +2 -2
- package/dist/containers/App/App.js +2 -1
- package/dist/containers/App/App.scss +6 -0
- package/dist/containers/App/TipPopup/TipPopup.js +1 -1
- package/dist/containers/AsideNavigation/AsideNavigation.scss +1 -1
- package/dist/containers/Authentication/Authentication.scss +2 -2
- package/dist/containers/Authentication/Authentication.tsx +1 -0
- package/dist/containers/Header/Header.scss +2 -2
- package/dist/containers/Header/Host/Host.scss +6 -6
- package/dist/containers/Heatmap/Heatmap.js +1 -2
- package/dist/containers/Heatmap/Heatmap.scss +2 -2
- package/dist/containers/Node/Node.scss +0 -1
- package/dist/containers/Node/Node.tsx +1 -0
- package/dist/containers/Node/NodeStructure/NodeStructure.scss +3 -3
- package/dist/containers/Node/NodeStructure/Pdisk.tsx +6 -6
- package/dist/containers/Pdisk/Pdisk.scss +2 -2
- package/dist/containers/Pool/Pool.scss +3 -3
- package/dist/containers/Storage/DiskStateProgressBar/DiskStateProgressBar.scss +2 -2
- package/dist/containers/Storage/Storage.scss +3 -3
- package/dist/containers/Storage/StorageGroups/StorageGroups.tsx +4 -4
- package/dist/containers/Storage/StorageNodes/StorageNodes.tsx +4 -4
- package/dist/containers/Tablet/Tablet.scss +4 -4
- package/dist/containers/Tablets/Tablets.js +1 -2
- package/dist/containers/TabletsFilters/TabletsFilters.js +1 -2
- package/dist/containers/TabletsFilters/TabletsFilters.scss +2 -2
- package/dist/containers/Tenant/Acl/Acl.scss +2 -2
- package/dist/containers/Tenant/Diagnostics/Diagnostics.tsx +15 -21
- package/dist/containers/Tenant/Diagnostics/Network/Network.scss +6 -6
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantOverview.scss +4 -4
- package/dist/containers/Tenant/Diagnostics/TopQueries/TopQueries.scss +2 -2
- package/dist/containers/Tenant/ObjectGeneral/ObjectGeneral.scss +7 -8
- package/dist/containers/Tenant/ObjectGeneral/ObjectGeneral.tsx +2 -12
- package/dist/containers/Tenant/ObjectSummary/ObjectSummary.tsx +5 -8
- package/dist/containers/Tenant/QueryEditor/SaveQuery/SaveQuery.scss +1 -1
- package/dist/containers/Tenant/Schema/SchemaTree/SchemaTree.tsx +1 -3
- package/dist/containers/Tenant/Tenant.scss +2 -2
- package/dist/containers/Tenant/utils/schemaActions.ts +3 -18
- package/dist/containers/Vdisk/Vdisk.scss +2 -2
- package/dist/containers/VdiskPdiskNode/VdiskPdiskNode.scss +2 -2
- package/dist/store/reducers/tenant.js +30 -0
- package/dist/store/state-url-mapping.js +6 -0
- package/dist/styles/mixins.scss +13 -13
- package/dist/utils/getNodesColumns.js +2 -3
- package/package.json +5 -4
package/CHANGELOG.md
CHANGED
@@ -1,5 +1,36 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
### [1.5.3](https://github.com/ydb-platform/ydb-embedded-ui/compare/v1.5.2...v1.5.3) (2022-05-26)
|
4
|
+
|
5
|
+
|
6
|
+
### Bug Fixes
|
7
|
+
|
8
|
+
* explicitly set lang for ydb-ui-components i18n ([5684524](https://github.com/ydb-platform/ydb-embedded-ui/commit/5684524267e2cbf19a44de75b0e0b2bf98b617fd))
|
9
|
+
* proper icon size in uikit/Select ([a665d6d](https://github.com/ydb-platform/ydb-embedded-ui/commit/a665d6d829dae61ccf25566dd7b8cd1e46a743bb))
|
10
|
+
* update code for @yandex-cloud/uikit@^2.0.0 ([49d67a1](https://github.com/ydb-platform/ydb-embedded-ui/commit/49d67a1bddcba6fa138b5ebaeb280f16366b3329))
|
11
|
+
|
12
|
+
|
13
|
+
### chore
|
14
|
+
|
15
|
+
* update @yandex-cloud/uikit to 2.4.0 ([d2eb2e5](https://github.com/ydb-platform/ydb-embedded-ui/commit/d2eb2e5db147604ae346aea295ae22759712eaa4))
|
16
|
+
* add @yandex-cloud/uikit to peer deps ([9c9f599](https://github.com/ydb-platform/ydb-embedded-ui/commit/9c9f5997dcca1be5868d013da311a28e495e7faa))
|
17
|
+
* update ydb-ui-components to v2.0.1 ([3d6a8d3](https://github.com/ydb-platform/ydb-embedded-ui/commit/3d6a8d30ab2ab47203eb956904e891ae106c0bc7))
|
18
|
+
|
19
|
+
### [1.5.2](https://github.com/ydb-platform/ydb-embedded-ui/compare/v1.5.1...v1.5.2) (2022-05-26)
|
20
|
+
|
21
|
+
|
22
|
+
### Bug Fixes
|
23
|
+
|
24
|
+
* **Tenant:** always update diagnostics tabs for root ([db03266](https://github.com/ydb-platform/ydb-embedded-ui/commit/db03266fd7dd6e4588c1db0d109bdfaa8f693e2d))
|
25
|
+
* **Tenant:** don't use HistoryAPI and redux-location-state together ([c1bc562](https://github.com/ydb-platform/ydb-embedded-ui/commit/c1bc5621e3ead44b1b84e592f8d7106bbc918e37))
|
26
|
+
|
27
|
+
### [1.5.1](https://github.com/ydb-platform/ydb-embedded-ui/compare/v1.5.0...v1.5.1) (2022-05-25)
|
28
|
+
|
29
|
+
|
30
|
+
### Bug Fixes
|
31
|
+
|
32
|
+
* **Authentication:** submit form with enter in the login field ([7b6132a](https://github.com/ydb-platform/ydb-embedded-ui/commit/7b6132a6b2556939648167f30b08c5688b56ab98))
|
33
|
+
|
3
34
|
## [1.5.0](https://github.com/ydb-platform/ydb-embedded-ui/compare/v1.4.2...v1.5.0) (2022-05-24)
|
4
35
|
|
5
36
|
|
@@ -29,9 +29,9 @@
|
|
29
29
|
&__heading {
|
30
30
|
margin: 20px 20px 0;
|
31
31
|
|
32
|
-
font-size: var(--yc-text-
|
32
|
+
font-size: var(--yc-text-body-2-font-size);
|
33
33
|
font-weight: 500;
|
34
|
-
line-height: var(--yc-text-
|
34
|
+
line-height: var(--yc-text-body-2-line-height);
|
35
35
|
}
|
36
36
|
|
37
37
|
&__search {
|
@@ -48,9 +48,9 @@
|
|
48
48
|
&-heading {
|
49
49
|
margin: 0;
|
50
50
|
|
51
|
-
font-size: var(--yc-text-
|
51
|
+
font-size: var(--yc-text-body-2-font-size);
|
52
52
|
font-weight: 500;
|
53
|
-
line-height: var(--yc-text-
|
53
|
+
line-height: var(--yc-text-body-2-line-height);
|
54
54
|
|
55
55
|
&_badge {
|
56
56
|
position: relative;
|
@@ -20,18 +20,18 @@
|
|
20
20
|
|
21
21
|
&__title_size {
|
22
22
|
&_s {
|
23
|
-
font-size: var(--yc-text-body-font-size);
|
24
|
-
line-height: var(--yc-text-body-line-height);
|
23
|
+
font-size: var(--yc-text-body-1-font-size);
|
24
|
+
line-height: var(--yc-text-body-1-line-height);
|
25
25
|
}
|
26
26
|
|
27
27
|
&_m {
|
28
|
-
font-size: var(--yc-text-
|
29
|
-
line-height: var(--yc-text-
|
28
|
+
font-size: var(--yc-text-body-2-font-size);
|
29
|
+
line-height: var(--yc-text-body-2-line-height);
|
30
30
|
}
|
31
31
|
|
32
32
|
&_l {
|
33
|
-
font-size: var(--yc-text-
|
34
|
-
line-height: var(--yc-text-
|
33
|
+
font-size: var(--yc-text-body-3-font-size);
|
34
|
+
line-height: var(--yc-text-body-3-line-height);
|
35
35
|
}
|
36
36
|
}
|
37
37
|
|
@@ -55,9 +55,9 @@
|
|
55
55
|
}
|
56
56
|
|
57
57
|
&__empty-state-title {
|
58
|
-
font-size: var(--yc-text-body-font-size);
|
58
|
+
font-size: var(--yc-text-body-1-font-size);
|
59
59
|
font-weight: normal;
|
60
|
-
line-height: var(--yc-text-body-line-height);
|
60
|
+
line-height: var(--yc-text-body-1-line-height);
|
61
61
|
|
62
62
|
opacity: 0.5;
|
63
63
|
}
|
@@ -47,21 +47,21 @@
|
|
47
47
|
font-weight: 500;
|
48
48
|
|
49
49
|
&_size_s {
|
50
|
-
font-size: var(--yc-text-
|
51
|
-
line-height: var(--yc-text-
|
50
|
+
font-size: var(--yc-text-subheader-3-font-size);
|
51
|
+
line-height: var(--yc-text-subheader-3-line-height);
|
52
52
|
}
|
53
53
|
|
54
54
|
&_size_m {
|
55
|
-
font-size: var(--yc-text-
|
56
|
-
line-height: var(--yc-text-
|
55
|
+
font-size: var(--yc-text-header-2-font-size);
|
56
|
+
line-height: var(--yc-text-header-2-line-height);
|
57
57
|
}
|
58
58
|
}
|
59
59
|
|
60
60
|
&__description {
|
61
61
|
grid-area: description;
|
62
62
|
|
63
|
-
font-size: var(--yc-text-
|
64
|
-
line-height: var(--yc-text-
|
63
|
+
font-size: var(--yc-text-body-2-font-size);
|
64
|
+
line-height: var(--yc-text-body-2-line-height);
|
65
65
|
}
|
66
66
|
|
67
67
|
&__actions {
|
@@ -5,8 +5,8 @@
|
|
5
5
|
max-width: 100%;
|
6
6
|
height: 100%;
|
7
7
|
|
8
|
-
font-size: var(--yc-text-
|
9
|
-
line-height: var(--yc-text-
|
8
|
+
font-size: var(--yc-text-body-2-font-size);
|
9
|
+
line-height: var(--yc-text-body-2-line-height);
|
10
10
|
|
11
11
|
&__clipboard-button {
|
12
12
|
display: none;
|
@@ -42,8 +42,8 @@
|
|
42
42
|
&__label {
|
43
43
|
margin-right: 2px;
|
44
44
|
|
45
|
-
font-size: var(--yc-text-
|
46
|
-
line-height: var(--yc-text-
|
45
|
+
font-size: var(--yc-text-body-2-font-size);
|
46
|
+
line-height: var(--yc-text-body-2-line-height);
|
47
47
|
|
48
48
|
color: var(--yc-color-text-complementary);
|
49
49
|
}
|
@@ -96,7 +96,7 @@
|
|
96
96
|
}
|
97
97
|
|
98
98
|
&_size_m {
|
99
|
-
font-size: var(--yc-text-
|
100
|
-
line-height: var(--yc-text-
|
99
|
+
font-size: var(--yc-text-body-2-font-size);
|
100
|
+
line-height: var(--yc-text-body-2-line-height);
|
101
101
|
}
|
102
102
|
}
|
@@ -1,15 +1,15 @@
|
|
1
1
|
@import '../../styles/mixins.scss';
|
2
2
|
|
3
3
|
.full-node-viewer {
|
4
|
-
font-size: var(--yc-text-
|
5
|
-
line-height: var(--yc-text-
|
4
|
+
font-size: var(--yc-text-body-2-font-size);
|
5
|
+
line-height: var(--yc-text-body-2-line-height);
|
6
6
|
|
7
7
|
&__title {
|
8
8
|
margin: 0 20px 0 0;
|
9
9
|
|
10
|
-
font-size: var(--yc-text-
|
10
|
+
font-size: var(--yc-text-body-2-font-size);
|
11
11
|
font-weight: 600;
|
12
|
-
line-height: var(--yc-text-
|
12
|
+
line-height: var(--yc-text-body-2-line-height);
|
13
13
|
text-transform: uppercase;
|
14
14
|
}
|
15
15
|
|
@@ -50,7 +50,7 @@
|
|
50
50
|
min-width: 100px;
|
51
51
|
margin-right: 25px;
|
52
52
|
|
53
|
-
font-size: var(--yc-text-
|
53
|
+
font-size: var(--yc-text-body-2-font-size);
|
54
54
|
line-height: 18px;
|
55
55
|
white-space: nowrap;
|
56
56
|
|
@@ -69,9 +69,9 @@
|
|
69
69
|
&__section-title {
|
70
70
|
margin: 15px 0 10px;
|
71
71
|
|
72
|
-
font-size: var(--yc-text-
|
72
|
+
font-size: var(--yc-text-body-2-font-size);
|
73
73
|
font-weight: 600;
|
74
|
-
line-height: var(--yc-text-
|
74
|
+
line-height: var(--yc-text-body-2-line-height);
|
75
75
|
}
|
76
76
|
|
77
77
|
&__link {
|
@@ -1,12 +1,12 @@
|
|
1
1
|
.info-viewer {
|
2
|
-
font-size: var(--yc-text-
|
3
|
-
line-height: var(--yc-text-
|
2
|
+
font-size: var(--yc-text-body-2-font-size);
|
3
|
+
line-height: var(--yc-text-body-2-line-height);
|
4
4
|
&__title {
|
5
5
|
margin: 15px 0 10px;
|
6
6
|
|
7
|
-
font-size: var(--yc-text-
|
7
|
+
font-size: var(--yc-text-body-2-font-size);
|
8
8
|
font-weight: 600;
|
9
|
-
line-height: var(--yc-text-
|
9
|
+
line-height: var(--yc-text-body-2-line-height);
|
10
10
|
}
|
11
11
|
|
12
12
|
&__items {
|
@@ -1,6 +1,6 @@
|
|
1
1
|
.pool-usage {
|
2
|
-
font-size: var(--yc-text-
|
3
|
-
line-height: var(--yc-text-
|
2
|
+
font-size: var(--yc-text-body-2-font-size);
|
3
|
+
line-height: var(--yc-text-body-2-line-height);
|
4
4
|
&__info {
|
5
5
|
display: flex;
|
6
6
|
justify-content: space-between;
|
@@ -17,7 +17,7 @@
|
|
17
17
|
}
|
18
18
|
|
19
19
|
&__threads {
|
20
|
-
font-size: var(--yc-text-body-font-size);
|
20
|
+
font-size: var(--yc-text-body-1-font-size);
|
21
21
|
|
22
22
|
color: var(--yc-color-text-hint);
|
23
23
|
|
@@ -29,7 +29,7 @@
|
|
29
29
|
&__percents {
|
30
30
|
margin-right: 2px;
|
31
31
|
|
32
|
-
font-size: var(--yc-text-body-font-size);
|
32
|
+
font-size: var(--yc-text-body-1-font-size);
|
33
33
|
|
34
34
|
color: var(--yc-color-text-primary);
|
35
35
|
}
|
@@ -44,7 +44,7 @@
|
|
44
44
|
|
45
45
|
height: 6px;
|
46
46
|
|
47
|
-
font-size: var(--yc-text-
|
47
|
+
font-size: var(--yc-text-body-2-font-size);
|
48
48
|
|
49
49
|
border-radius: 4px;
|
50
50
|
background-color: var(--yc-color-base-generic-accent);
|
@@ -10,7 +10,7 @@
|
|
10
10
|
height: 23px;
|
11
11
|
padding: 0 4px;
|
12
12
|
|
13
|
-
font-size: var(--yc-text-
|
13
|
+
font-size: var(--yc-text-body-2-font-size);
|
14
14
|
white-space: nowrap;
|
15
15
|
|
16
16
|
color: var(--yc-color-text-light-primary);
|
@@ -49,20 +49,20 @@
|
|
49
49
|
&_size_xs {
|
50
50
|
height: 20px;
|
51
51
|
|
52
|
-
font-size: var(--yc-text-
|
53
|
-
line-height: var(--yc-text-
|
52
|
+
font-size: var(--yc-text-body-2-font-size);
|
53
|
+
line-height: var(--yc-text-body-2-line-height);
|
54
54
|
}
|
55
55
|
|
56
56
|
&_size_s {
|
57
57
|
height: 28px;
|
58
58
|
|
59
|
-
font-size: var(--yc-text-body-font-size);
|
59
|
+
font-size: var(--yc-text-body-1-font-size);
|
60
60
|
line-height: 28px;
|
61
61
|
}
|
62
62
|
&_size_m {
|
63
63
|
height: 32px;
|
64
64
|
|
65
|
-
font-size: var(--yc-text-
|
65
|
+
font-size: var(--yc-text-body-2-font-size);
|
66
66
|
line-height: 32px;
|
67
67
|
}
|
68
68
|
|
@@ -70,25 +70,25 @@
|
|
70
70
|
height: 24px;
|
71
71
|
|
72
72
|
font-size: 13px;
|
73
|
-
line-height: var(--yc-text-
|
73
|
+
line-height: var(--yc-text-subheader-3-line-height);
|
74
74
|
}
|
75
75
|
|
76
76
|
&_size_n {
|
77
77
|
height: 36px;
|
78
78
|
|
79
|
-
font-size: var(--yc-text-body-font-size);
|
79
|
+
font-size: var(--yc-text-body-1-font-size);
|
80
80
|
line-height: 36px;
|
81
81
|
}
|
82
82
|
|
83
83
|
&_size_l {
|
84
84
|
height: 38px;
|
85
85
|
|
86
|
-
font-size: var(--yc-text-
|
86
|
+
font-size: var(--yc-text-subheader-3-font-size);
|
87
87
|
line-height: 38px;
|
88
88
|
}
|
89
89
|
|
90
90
|
&_size_head {
|
91
|
-
font-size: var(--yc-text-body-font-size);
|
91
|
+
font-size: var(--yc-text-body-1-font-size);
|
92
92
|
line-height: 36px;
|
93
93
|
}
|
94
94
|
}
|
@@ -17,7 +17,7 @@
|
|
17
17
|
min-width: 60px;
|
18
18
|
margin-right: 20px;
|
19
19
|
|
20
|
-
font-size: var(--yc-text-body-font-size);
|
20
|
+
font-size: var(--yc-text-body-1-font-size);
|
21
21
|
line-height: 18px;
|
22
22
|
white-space: nowrap;
|
23
23
|
text-transform: capitalize;
|
@@ -33,7 +33,7 @@
|
|
33
33
|
margin: 0;
|
34
34
|
margin-bottom: 16px;
|
35
35
|
|
36
|
-
font-size: var(--yc-text-
|
36
|
+
font-size: var(--yc-text-body-2-font-size);
|
37
37
|
font-weight: bold;
|
38
38
|
line-height: 20px;
|
39
39
|
}
|
@@ -2,6 +2,7 @@ import React from 'react';
|
|
2
2
|
import {connect} from 'react-redux';
|
3
3
|
import PropTypes from 'prop-types';
|
4
4
|
|
5
|
+
import {i18n as YDBComponentsI18N} from 'ydb-ui-components/build/components/i18n';
|
5
6
|
import {I18N, i18n} from '../../utils/i18n';
|
6
7
|
|
7
8
|
import ContentWrapper, {Content} from './Content';
|
@@ -25,7 +26,7 @@ class App extends React.Component {
|
|
25
26
|
constructor(props) {
|
26
27
|
super(props);
|
27
28
|
i18n.setLang(I18N.LANGS.en);
|
28
|
-
|
29
|
+
YDBComponentsI18N.setLang(I18N.LANGS.en);
|
29
30
|
}
|
30
31
|
|
31
32
|
componentDidMount() {
|
@@ -3,9 +3,15 @@
|
|
3
3
|
@import './NodesTable';
|
4
4
|
|
5
5
|
* {
|
6
|
+
// FIXME: this is an overkill, potentially could break external components, needs refactoring
|
6
7
|
box-sizing: border-box;
|
7
8
|
}
|
8
9
|
|
10
|
+
.yc-select-popup__tick-icon {
|
11
|
+
// this is a local fix, remove after the refactoring
|
12
|
+
box-sizing: content-box;
|
13
|
+
}
|
14
|
+
|
9
15
|
html,
|
10
16
|
body,
|
11
17
|
#root {
|
@@ -54,7 +54,7 @@ function TipPopup({dbChangePopupVisibility, dataAttribute, initialIsPopupVisible
|
|
54
54
|
<div className={b('title')}>{tipData.title}</div>
|
55
55
|
<div className={b('content')}>{tipData.description}</div>
|
56
56
|
<div className={b('cross-icon-wrapper')}>
|
57
|
-
<Button view="
|
57
|
+
<Button view="flat-secondary" onClick={onClosePopupClick}>
|
58
58
|
<Icon data={closeIcon} size={10} className={b('cross-icon')} />
|
59
59
|
</Button>
|
60
60
|
</div>
|
@@ -15,14 +15,14 @@
|
|
15
15
|
@include body2-typography;
|
16
16
|
|
17
17
|
&__cluster-info-title {
|
18
|
-
font-size: var(--yc-text-body-font-size);
|
18
|
+
font-size: var(--yc-text-body-1-font-size);
|
19
19
|
text-transform: uppercase;
|
20
20
|
|
21
21
|
color: var(--yc-color-text-secondary);
|
22
22
|
}
|
23
23
|
|
24
24
|
&__cluster-info-name {
|
25
|
-
font-size: var(--yc-text-
|
25
|
+
font-size: var(--yc-text-body-2-font-size);
|
26
26
|
font-weight: 500;
|
27
27
|
}
|
28
28
|
|
@@ -13,8 +13,8 @@
|
|
13
13
|
|
14
14
|
margin-right: 15px;
|
15
15
|
|
16
|
-
font-size: var(--yc-text-
|
17
|
-
line-height: var(--yc-text-
|
16
|
+
font-size: var(--yc-text-body-2-font-size);
|
17
|
+
line-height: var(--yc-text-body-2-line-height);
|
18
18
|
}
|
19
19
|
&__info {
|
20
20
|
display: flex;
|
@@ -32,8 +32,8 @@
|
|
32
32
|
&__label {
|
33
33
|
margin-right: 10px;
|
34
34
|
|
35
|
-
font-size: var(--yc-text-body-font-size);
|
36
|
-
line-height: var(--yc-text-body-line-height);
|
35
|
+
font-size: var(--yc-text-body-1-font-size);
|
36
|
+
line-height: var(--yc-text-body-1-line-height);
|
37
37
|
|
38
38
|
color: var(--yc-color-text-hint);
|
39
39
|
|
@@ -42,8 +42,8 @@
|
|
42
42
|
}
|
43
43
|
}
|
44
44
|
&__value {
|
45
|
-
font-size: var(--yc-text-body-font-size);
|
46
|
-
line-height: var(--yc-text-body-line-height);
|
45
|
+
font-size: var(--yc-text-body-1-font-size);
|
46
|
+
line-height: var(--yc-text-body-1-line-height);
|
47
47
|
|
48
48
|
color: var(--yc-color-text-primary);
|
49
49
|
}
|
@@ -8,8 +8,7 @@ import {showTooltip, hideTooltip} from '../../store/reducers/tooltip';
|
|
8
8
|
import {COLORS_RANGE_SIZE, getColorRange, getColorIndex, getCurrentMetricLimits} from './util';
|
9
9
|
import {formatNumber} from '../../utils';
|
10
10
|
|
11
|
-
import {Loader, Checkbox} from '@yandex-cloud/uikit';
|
12
|
-
import {Select} from '@yandex-cloud/uikit/build/esm/components/unstable/Select';
|
11
|
+
import {Loader, Checkbox, Select} from '@yandex-cloud/uikit';
|
13
12
|
import {HeatmapCanvas} from './HeatmapCanvas/HeatmapCanvas';
|
14
13
|
import {Histogram} from './Histogram/Histogram';
|
15
14
|
import {AutoFetcher} from '../../utils/autofetcher';
|
@@ -49,9 +49,9 @@
|
|
49
49
|
&__label {
|
50
50
|
margin-right: 16px;
|
51
51
|
|
52
|
-
font-size: var(--yc-text-
|
52
|
+
font-size: var(--yc-text-body-2-font-size);
|
53
53
|
font-weight: 500;
|
54
|
-
line-height: var(--yc-text-
|
54
|
+
line-height: var(--yc-text-body-2-line-height);
|
55
55
|
text-transform: uppercase;
|
56
56
|
|
57
57
|
&_overall {
|
@@ -22,7 +22,7 @@
|
|
22
22
|
|
23
23
|
width: 573px;
|
24
24
|
margin-bottom: 8px;
|
25
|
-
padding
|
25
|
+
padding: 0 10px 0 20px;
|
26
26
|
|
27
27
|
border: 1px solid var(--yc-color-line-generic);
|
28
28
|
border-radius: 5px;
|
@@ -137,9 +137,9 @@
|
|
137
137
|
&__title {
|
138
138
|
margin-right: 16px;
|
139
139
|
|
140
|
-
font-size: var(--yc-text-
|
140
|
+
font-size: var(--yc-text-body-2-font-size);
|
141
141
|
font-weight: 500;
|
142
|
-
line-height: var(--yc-text-
|
142
|
+
line-height: var(--yc-text-body-2-line-height);
|
143
143
|
text-transform: uppercase;
|
144
144
|
}
|
145
145
|
}
|
@@ -2,7 +2,7 @@ import {useState} from 'react';
|
|
2
2
|
import cn from 'bem-cn-lite';
|
3
3
|
import _ from 'lodash';
|
4
4
|
|
5
|
-
import {ArrowToggle, Button,
|
5
|
+
import {ArrowToggle, Button, Popover} from '@yandex-cloud/uikit';
|
6
6
|
|
7
7
|
import DataTable, {Column, Settings} from '@yandex-cloud/react-data-table';
|
8
8
|
|
@@ -126,20 +126,20 @@ function getColumns({
|
|
126
126
|
width: 70,
|
127
127
|
render: ({row}) => {
|
128
128
|
return (
|
129
|
-
<
|
129
|
+
<Popover
|
130
130
|
placement={['right']}
|
131
131
|
content={<Vdisk {...row} />}
|
132
132
|
contentClassName={b('vdisk-details')}
|
133
133
|
>
|
134
134
|
<Button
|
135
|
-
view="
|
135
|
+
view="flat-secondary"
|
136
136
|
className={b('vdisk-details-button', {
|
137
137
|
selected: row.id === selectedVdiskId,
|
138
138
|
})}
|
139
139
|
>
|
140
140
|
<Icon name="information" viewBox="0 0 512 512" height={16} width={16} />
|
141
141
|
</Button>
|
142
|
-
</
|
142
|
+
</Popover>
|
143
143
|
);
|
144
144
|
},
|
145
145
|
sortable: false,
|
@@ -213,7 +213,7 @@ export function PDisk(props: PDiskProps) {
|
|
213
213
|
className={b('external-button')}
|
214
214
|
href={pDiskInternalViewerLink}
|
215
215
|
target="_blank"
|
216
|
-
view="
|
216
|
+
view="flat-secondary"
|
217
217
|
>
|
218
218
|
<Icon name="external" />
|
219
219
|
</Button>
|
@@ -289,7 +289,7 @@ export function PDisk(props: PDiskProps) {
|
|
289
289
|
<span>{data.Path}</span>
|
290
290
|
<EntityStatus status={data.Device} name={`${data.NodeId}-${data.PDiskId}`} />
|
291
291
|
</div>
|
292
|
-
<Button onClick={unfolded ? onClosePDiskDetails : onOpenPDiskDetails} view="
|
292
|
+
<Button onClick={unfolded ? onClosePDiskDetails : onOpenPDiskDetails} view="flat-secondary">
|
293
293
|
<ArrowToggle direction={unfolded ? 'top' : 'bottom'} />
|
294
294
|
</Button>
|
295
295
|
</div>
|
@@ -20,9 +20,9 @@
|
|
20
20
|
&__title {
|
21
21
|
margin-right: 16px;
|
22
22
|
|
23
|
-
font-size: var(--yc-text-
|
23
|
+
font-size: var(--yc-text-body-2-font-size);
|
24
24
|
font-weight: 500;
|
25
|
-
line-height: var(--yc-text-
|
25
|
+
line-height: var(--yc-text-body-2-line-height);
|
26
26
|
text-transform: uppercase;
|
27
27
|
}
|
28
28
|
|
@@ -10,9 +10,9 @@
|
|
10
10
|
&__title {
|
11
11
|
margin-right: 16px;
|
12
12
|
|
13
|
-
font-size: var(--yc-text-
|
13
|
+
font-size: var(--yc-text-body-2-font-size);
|
14
14
|
font-weight: 500;
|
15
|
-
line-height: var(--yc-text-
|
15
|
+
line-height: var(--yc-text-body-2-line-height);
|
16
16
|
text-transform: uppercase;
|
17
17
|
|
18
18
|
&_groups {
|
@@ -30,6 +30,6 @@
|
|
30
30
|
&__breadcrumbs {
|
31
31
|
padding: 20px 0;
|
32
32
|
|
33
|
-
font-size: var(--yc-text-
|
33
|
+
font-size: var(--yc-text-body-2-font-size);
|
34
34
|
}
|
35
35
|
}
|