ydb-embedded-ui 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +8 -0
- package/README.md +28 -0
- package/dist/HOCS/WithSearch/WithSearch.js +26 -0
- package/dist/HOCS/index.js +1 -0
- package/dist/assets/icons/bug.svg +1 -0
- package/dist/assets/icons/close.svg +1 -0
- package/dist/assets/icons/control-menu-button.svg +1 -0
- package/dist/assets/icons/databases.svg +3 -0
- package/dist/assets/icons/dots.svg +1 -0
- package/dist/assets/icons/server.svg +1 -0
- package/dist/assets/icons/settings-with-dot.svg +1 -0
- package/dist/assets/icons/settings.svg +1 -0
- package/dist/assets/icons/signIn.svg +1 -0
- package/dist/assets/icons/signOut.svg +1 -0
- package/dist/assets/icons/star.svg +1 -0
- package/dist/assets/icons/storage.svg +1 -0
- package/dist/assets/icons/support.svg +1 -0
- package/dist/assets/icons/user-check.svg +1 -0
- package/dist/assets/icons/user-secret.svg +1 -0
- package/dist/assets/icons/ydb.svg +4 -0
- package/dist/components/AsideNavigation/AsideHeader.scss +148 -0
- package/dist/components/AsideNavigation/AsideHeader.tsx +388 -0
- package/dist/components/AsideNavigation/AsideHeaderFooterItem/AsideHeaderFooterItem.scss +82 -0
- package/dist/components/AsideNavigation/AsideHeaderFooterItem/AsideHeaderFooterItem.tsx +138 -0
- package/dist/components/AsideNavigation/AsideHeaderFooterSlot/AsideHeaderFooterSlot.tsx +33 -0
- package/dist/components/AsideNavigation/AsideHeaderFooterSlot/SlotsContext.tsx +49 -0
- package/dist/components/AsideNavigation/AsideHeaderTooltip/AsideHeaderTooltip.scss +16 -0
- package/dist/components/AsideNavigation/AsideHeaderTooltip/AsideHeaderTooltip.tsx +37 -0
- package/dist/components/AsideNavigation/CompositeBar/CompositeBar.scss +108 -0
- package/dist/components/AsideNavigation/CompositeBar/CompositeBar.tsx +282 -0
- package/dist/components/AsideNavigation/Content/Content.tsx +35 -0
- package/dist/components/AsideNavigation/Drawer/Drawer.scss +76 -0
- package/dist/components/AsideNavigation/Drawer/Drawer.tsx +134 -0
- package/dist/components/AsideNavigation/Drawer/index.ts +1 -0
- package/dist/components/AsideNavigation/Logo/Logo.scss +44 -0
- package/dist/components/AsideNavigation/Logo/Logo.tsx +82 -0
- package/dist/components/AsideNavigation/Settings/README.md +92 -0
- package/dist/components/AsideNavigation/Settings/Settings.scss +113 -0
- package/dist/components/AsideNavigation/Settings/Settings.tsx +270 -0
- package/dist/components/AsideNavigation/Settings/SettingsMenu/SettingsMenu.scss +70 -0
- package/dist/components/AsideNavigation/Settings/SettingsMenu/SettingsMenu.tsx +141 -0
- package/dist/components/AsideNavigation/Settings/SettingsSearch/SettingsSearch.tsx +57 -0
- package/dist/components/AsideNavigation/Settings/collect-settings.ts +156 -0
- package/dist/components/AsideNavigation/Settings/filter-settings.ts +38 -0
- package/dist/components/AsideNavigation/Settings/helpers.ts +39 -0
- package/dist/components/AsideNavigation/Settings/i18n/en.json +5 -0
- package/dist/components/AsideNavigation/Settings/i18n/index.ts +11 -0
- package/dist/components/AsideNavigation/Settings/i18n/ru.json +5 -0
- package/dist/components/AsideNavigation/Settings/index.ts +1 -0
- package/dist/components/AsideNavigation/constants.ts +28 -0
- package/dist/components/AsideNavigation/helpers.ts +34 -0
- package/dist/components/AsideNavigation/i18n/en.json +4 -0
- package/dist/components/AsideNavigation/i18n/index.ts +11 -0
- package/dist/components/AsideNavigation/i18n/ru.json +4 -0
- package/dist/components/AsideNavigation/icons.ts +32 -0
- package/dist/components/AsideNavigation/types.ts +23 -0
- package/dist/components/Breadcrumbs/Breadcrumbs.js +25 -0
- package/dist/components/Breadcrumbs/Breadcrumbs.scss +4 -0
- package/dist/components/ClusterInfo/ClusterInfo.scss +65 -0
- package/dist/components/ClusterInfo/ClusterInfo.tsx +157 -0
- package/dist/components/Collapse/Collapse.js +84 -0
- package/dist/components/Collapse/Collapse.scss +70 -0
- package/dist/components/CriticalActionDialog/CriticalActionDialog.js +53 -0
- package/dist/components/CriticalActionDialog/CriticalActionDialog.scss +31 -0
- package/dist/components/EmptyState/EmptyState.js +48 -0
- package/dist/components/EmptyState/EmptyState.scss +70 -0
- package/dist/components/EntityStatus/EntityStatus.js +96 -0
- package/dist/components/EntityStatus/EntityStatus.scss +81 -0
- package/dist/components/FullGroupViewer/FullGroupViewer.js +149 -0
- package/dist/components/FullGroupViewer/FullGroupViewer.scss +32 -0
- package/dist/components/FullNodeViewer/FullNodeViewer.js +108 -0
- package/dist/components/FullNodeViewer/FullNodeViewer.scss +78 -0
- package/dist/components/GroupTreeViewer/GroupTreeViewer.js +86 -0
- package/dist/components/GroupTreeViewer/GroupTreeViewer.scss +17 -0
- package/dist/components/GroupViewer/GroupViewer.js +100 -0
- package/dist/components/GroupViewer/GroupViewer.scss +41 -0
- package/dist/components/Hotkey/Hotkey.js +102 -0
- package/dist/components/Icon/Icon.js +26 -0
- package/dist/components/InfoViewer/InfoViewer.js +47 -0
- package/dist/components/InfoViewer/InfoViewer.scss +48 -0
- package/dist/components/InternalLink/InternalLink.js +15 -0
- package/dist/components/NodesViewer/NodesViewer.js +183 -0
- package/dist/components/NodesViewer/NodesViewer.scss +66 -0
- package/dist/components/PDiskViewer/PDiskViewer.js +80 -0
- package/dist/components/PDiskViewer/PDiskViewer.scss +40 -0
- package/dist/components/Pagination/Pagination.js +63 -0
- package/dist/components/Pagination/Pagination.scss +25 -0
- package/dist/components/PoolBar/PoolBar.js +52 -0
- package/dist/components/PoolBar/PoolBar.scss +40 -0
- package/dist/components/PoolUsage/PoolUsage.js +54 -0
- package/dist/components/PoolUsage/PoolUsage.scss +65 -0
- package/dist/components/PoolsGraph/PoolsGraph.js +33 -0
- package/dist/components/PoolsGraph/PoolsGraph.scss +3 -0
- package/dist/components/ProblemFilter/ProblemFilter.js +24 -0
- package/dist/components/ProgressViewer/ProgressViewer.js +92 -0
- package/dist/components/ProgressViewer/ProgressViewer.scss +84 -0
- package/dist/components/SplitPane/SplitPane.js +368 -0
- package/dist/components/SplitPane/SplitPane.scss +107 -0
- package/dist/components/SplitPane/index.js +3 -0
- package/dist/components/Tablet/Tablet.js +61 -0
- package/dist/components/Tablet/Tablet.scss +49 -0
- package/dist/components/TabletsStatistic/TabletsStatistic.js +58 -0
- package/dist/components/TabletsStatistic/TabletsStatistic.scss +41 -0
- package/dist/components/TabletsViewer/TabletsViewer.js +44 -0
- package/dist/components/TabletsViewer/TabletsViewer.scss +37 -0
- package/dist/components/Tag/Tag.js +14 -0
- package/dist/components/Tag/Tag.scss +17 -0
- package/dist/components/Tags/Tags.js +36 -0
- package/dist/components/Tags/Tags.scss +5 -0
- package/dist/components/TenantOverview/TenantOverview.js +148 -0
- package/dist/components/TenantOverview/TenantOverview.scss +75 -0
- package/dist/components/TreeView/TreeView.js +60 -0
- package/dist/components/TreeView/TreeView.scss +30 -0
- package/dist/components/TruncatedQuery/TruncatedQuery.js +26 -0
- package/dist/components/TruncatedQuery/TruncatedQuery.scss +12 -0
- package/dist/containers/App/App.js +67 -0
- package/dist/containers/App/App.scss +154 -0
- package/dist/containers/App/Content.js +109 -0
- package/dist/containers/App/TipPopup/TipPopup.js +66 -0
- package/dist/containers/App/TipPopup/TipPopup.scss +42 -0
- package/dist/containers/AppIcons/AppIcons.js +477 -0
- package/dist/containers/AsideNavigation/AsideNavigation.scss +43 -0
- package/dist/containers/AsideNavigation/AsideNavigation.tsx +228 -0
- package/dist/containers/Authentication/Authentication.scss +37 -0
- package/dist/containers/Authentication/Authentication.tsx +89 -0
- package/dist/containers/Cluster/Cluster.js +168 -0
- package/dist/containers/Cluster/Cluster.scss +52 -0
- package/dist/containers/Group/Group.js +97 -0
- package/dist/containers/Group/Group.scss +6 -0
- package/dist/containers/Header/Header.js +88 -0
- package/dist/containers/Header/Header.scss +72 -0
- package/dist/containers/Header/Host/Host.js +66 -0
- package/dist/containers/Header/Host/Host.scss +43 -0
- package/dist/containers/Heatmap/Heatmap.js +246 -0
- package/dist/containers/Heatmap/Heatmap.scss +94 -0
- package/dist/containers/Heatmap/HeatmapCanvas/HeatmapCanvas.js +167 -0
- package/dist/containers/Heatmap/Histogram/Histogram.js +108 -0
- package/dist/containers/Heatmap/Histogram/Histogram.scss +49 -0
- package/dist/containers/Heatmap/util.js +110 -0
- package/dist/containers/Node/Node.js +184 -0
- package/dist/containers/Node/Node.scss +34 -0
- package/dist/containers/Node/NodePages.js +13 -0
- package/dist/containers/Nodes/Nodes.js +193 -0
- package/dist/containers/Nodes/Nodes.scss +50 -0
- package/dist/containers/Pdisk/Pdisk.js +159 -0
- package/dist/containers/Pdisk/Pdisk.scss +40 -0
- package/dist/containers/Pool/Pool.js +169 -0
- package/dist/containers/Pool/Pool.scss +32 -0
- package/dist/containers/ReduxTooltip/ReduxTooltip.js +108 -0
- package/dist/containers/ReduxTooltip/ReduxTooltip.scss +67 -0
- package/dist/containers/StorageV2/DiskStateProgressBar/DiskStateProgressBar.scss +81 -0
- package/dist/containers/StorageV2/DiskStateProgressBar/DiskStateProgressBar.tsx +56 -0
- package/dist/containers/StorageV2/Pdisk/Pdisk.scss +32 -0
- package/dist/containers/StorageV2/Pdisk/Pdisk.tsx +167 -0
- package/dist/containers/StorageV2/Storage.js +249 -0
- package/dist/containers/StorageV2/Storage.scss +57 -0
- package/dist/containers/StorageV2/StorageFilter/StorageFilter.js +39 -0
- package/dist/containers/StorageV2/StorageGroups/StorageGroups.scss +26 -0
- package/dist/containers/StorageV2/StorageGroups/StorageGroups.tsx +234 -0
- package/dist/containers/StorageV2/StorageNodes/StorageNodes.scss +30 -0
- package/dist/containers/StorageV2/StorageNodes/StorageNodes.tsx +135 -0
- package/dist/containers/StorageV2/Vdisk/Vdisk.js +250 -0
- package/dist/containers/StorageV2/Vdisk/Vdisk.scss +32 -0
- package/dist/containers/Tablet/Tablet.js +453 -0
- package/dist/containers/Tablet/Tablet.scss +88 -0
- package/dist/containers/Tablets/Tablets.js +306 -0
- package/dist/containers/Tablets/Tablets.scss +77 -0
- package/dist/containers/TabletsFilters/TabletsFilters.js +412 -0
- package/dist/containers/TabletsFilters/TabletsFilters.scss +104 -0
- package/dist/containers/Tenant/Acl/Acl.js +149 -0
- package/dist/containers/Tenant/Acl/Acl.scss +34 -0
- package/dist/containers/Tenant/Compute/Compute.js +110 -0
- package/dist/containers/Tenant/Compute/Compute.scss +6 -0
- package/dist/containers/Tenant/Describe/Describe.js +81 -0
- package/dist/containers/Tenant/Describe/Describe.scss +25 -0
- package/dist/containers/Tenant/Healthcheck/Healthcheck.js +116 -0
- package/dist/containers/Tenant/Healthcheck/Healthcheck.scss +64 -0
- package/dist/containers/Tenant/Healthcheck/IssuesViewer/IssueViewer.scss +164 -0
- package/dist/containers/Tenant/Healthcheck/IssuesViewer/IssuesViewer.js +185 -0
- package/dist/containers/Tenant/Network/Network.js +341 -0
- package/dist/containers/Tenant/Network/Network.scss +145 -0
- package/dist/containers/Tenant/Network/NodeNetwork/NodeNetwork.js +71 -0
- package/dist/containers/Tenant/Network/NodeNetwork/NodeNetwork.scss +52 -0
- package/dist/containers/Tenant/Preview/Preview.js +169 -0
- package/dist/containers/Tenant/Preview/Preview.scss +20 -0
- package/dist/containers/Tenant/QueryEditor/QueryEditor.js +649 -0
- package/dist/containers/Tenant/QueryEditor/QueryEditor.scss +71 -0
- package/dist/containers/Tenant/QueryEditor/QueryExplain/QueryExplain.js +168 -0
- package/dist/containers/Tenant/QueryEditor/QueryExplain/QueryExplain.scss +42 -0
- package/dist/containers/Tenant/QueryEditor/QueryResult/QueryResult.js +58 -0
- package/dist/containers/Tenant/QueryEditor/QueryResult/QueryResult.scss +24 -0
- package/dist/containers/Tenant/QueryEditor/SaveQuery/SaveQuery.js +171 -0
- package/dist/containers/Tenant/QueryEditor/SaveQuery/SaveQuery.scss +51 -0
- package/dist/containers/Tenant/QueryEditor/SavedQueries/SavedQueries.js +156 -0
- package/dist/containers/Tenant/QueryEditor/SavedQueries/SavedQueries.scss +82 -0
- package/dist/containers/Tenant/Schema/HotKeys/HotKeys.js +149 -0
- package/dist/containers/Tenant/Schema/HotKeys/HotKeys.scss +48 -0
- package/dist/containers/Tenant/Schema/Info/Info.js +84 -0
- package/dist/containers/Tenant/Schema/Info/Info.scss +3 -0
- package/dist/containers/Tenant/Schema/SchemaInfoViewer/SchemaInfoViewer.js +67 -0
- package/dist/containers/Tenant/Schema/SchemaInfoViewer/SchemaInfoViewer.scss +21 -0
- package/dist/containers/Tenant/Schema/SchemaMain/SchemaMain.js +439 -0
- package/dist/containers/Tenant/Schema/SchemaMain/SchemaMain.scss +90 -0
- package/dist/containers/Tenant/Schema/SchemaNode/SchemaNode.js +150 -0
- package/dist/containers/Tenant/Schema/SchemaNode/SchemaNode.scss +41 -0
- package/dist/containers/Tenant/Schema/SchemaPages.js +56 -0
- package/dist/containers/Tenant/Schema/SchemaTree/SchemaTree.js +115 -0
- package/dist/containers/Tenant/Schema/SchemaTree/SchemaTree.scss +13 -0
- package/dist/containers/Tenant/Schema/SchemaViewer/SchemaViewer.js +63 -0
- package/dist/containers/Tenant/Schema/SchemaViewer/SchemaViewer.scss +28 -0
- package/dist/containers/Tenant/Tenant.js +199 -0
- package/dist/containers/Tenant/Tenant.scss +94 -0
- package/dist/containers/Tenant/TenantPages.js +35 -0
- package/dist/containers/Tenant/TopQueries/TopQueries.js +184 -0
- package/dist/containers/Tenant/TopQueries/TopQueries.scss +53 -0
- package/dist/containers/Tenant/TopShards/TopShards.js +171 -0
- package/dist/containers/Tenant/TopShards/TopShards.scss +23 -0
- package/dist/containers/Tenants/Tenants.js +375 -0
- package/dist/containers/Tenants/Tenants.scss +73 -0
- package/dist/containers/UserSettings/UserSettings.tsx +57 -0
- package/dist/containers/Vdisk/Vdisk.js +160 -0
- package/dist/containers/Vdisk/Vdisk.scss +40 -0
- package/dist/containers/VdiskPdiskNode/VdiskPdiskNode.js +528 -0
- package/dist/containers/VdiskPdiskNode/VdiskPdiskNode.scss +60 -0
- package/dist/contexts/HistoryContext.ts +6 -0
- package/dist/index.css +11 -0
- package/dist/index.js +28 -0
- package/dist/index.test.js +5 -0
- package/dist/react-app-env.d.ts +1 -0
- package/dist/reportWebVitals.js +13 -0
- package/dist/routes.js +40 -0
- package/dist/services/api.js +224 -0
- package/dist/setupTests.js +5 -0
- package/dist/store/index.js +61 -0
- package/dist/store/reducers/authentication.js +77 -0
- package/dist/store/reducers/cluster.js +52 -0
- package/dist/store/reducers/clusterInfo.js +48 -0
- package/dist/store/reducers/clusterNodes.js +70 -0
- package/dist/store/reducers/describe.js +45 -0
- package/dist/store/reducers/executeQuery.js +158 -0
- package/dist/store/reducers/executeTopQueries.js +69 -0
- package/dist/store/reducers/explainQuery.js +174 -0
- package/dist/store/reducers/group.js +49 -0
- package/dist/store/reducers/healthcheckInfo.js +45 -0
- package/dist/store/reducers/heatmap.js +105 -0
- package/dist/store/reducers/host.js +44 -0
- package/dist/store/reducers/hotKeys.js +57 -0
- package/dist/store/reducers/index.js +78 -0
- package/dist/store/reducers/network.js +45 -0
- package/dist/store/reducers/node.js +42 -0
- package/dist/store/reducers/nodes.js +58 -0
- package/dist/store/reducers/olapStats.js +74 -0
- package/dist/store/reducers/pdisk.js +51 -0
- package/dist/store/reducers/pool.js +42 -0
- package/dist/store/reducers/preview.js +73 -0
- package/dist/store/reducers/schema.js +95 -0
- package/dist/store/reducers/schemaAcl.js +44 -0
- package/dist/store/reducers/settings.js +76 -0
- package/dist/store/reducers/shardsWorkload.js +75 -0
- package/dist/store/reducers/storage.js +280 -0
- package/dist/store/reducers/tablet.js +94 -0
- package/dist/store/reducers/tablets.js +90 -0
- package/dist/store/reducers/tabletsFilters.js +126 -0
- package/dist/store/reducers/tenant.js +76 -0
- package/dist/store/reducers/tenants.js +61 -0
- package/dist/store/reducers/tooltip.js +64 -0
- package/dist/store/reducers/vdisk.js +49 -0
- package/dist/store/state-url-mapping.js +133 -0
- package/dist/store/utils.js +55 -0
- package/dist/styles/mixins.scss +254 -0
- package/dist/styles/react-treeview.scss +45 -0
- package/dist/types/assets.d.ts +12 -0
- package/dist/types/react-list.d.ts +4 -0
- package/dist/types/window.d.ts +33 -0
- package/dist/utils/actionsConstants.js +4 -0
- package/dist/utils/constants.js +126 -0
- package/dist/utils/getNodesColumns.js +156 -0
- package/dist/utils/i18n/i18n.ts +7 -0
- package/dist/utils/i18n/index.ts +1 -0
- package/dist/utils/index.js +136 -0
- package/dist/utils/monaco.js +69 -0
- package/dist/utils/prepareQueryExplain.ts +101 -0
- package/dist/utils/tooltip.js +197 -0
- package/dist/utils/utils.js +75 -0
- package/package.json +89 -0
@@ -0,0 +1,375 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
import PropTypes from 'prop-types';
|
3
|
+
import cn from 'bem-cn-lite';
|
4
|
+
import {connect} from 'react-redux';
|
5
|
+
import _ from 'lodash';
|
6
|
+
|
7
|
+
import DataTable from '@yandex-cloud/react-data-table';
|
8
|
+
import {Loader, Switch, TextInput, Button} from '@yandex-cloud/uikit';
|
9
|
+
|
10
|
+
import EntityStatus from '../../components/EntityStatus/EntityStatus';
|
11
|
+
import PoolsGraph from '../../components/PoolsGraph/PoolsGraph';
|
12
|
+
import TabletsStatistic from '../../components/TabletsStatistic/TabletsStatistic';
|
13
|
+
import ProblemFilter, {problemFilterType} from '../../components/ProblemFilter/ProblemFilter';
|
14
|
+
import {AutoFetcher} from '../Cluster/Cluster';
|
15
|
+
|
16
|
+
import routes, {createHref} from '../../routes';
|
17
|
+
import {formatCPU, formatNumber, formatBytes} from '../../utils';
|
18
|
+
import {hideTooltip, showTooltip} from '../../store/reducers/tooltip';
|
19
|
+
import {withSearch} from '../../HOCS';
|
20
|
+
import {ALL} from '../../utils/constants';
|
21
|
+
import {getTenantsInfo} from '../../store/reducers/tenants';
|
22
|
+
import {changeFilter} from '../../store/reducers/settings';
|
23
|
+
import {clusterName} from '../../store';
|
24
|
+
import {TENANT_PAGES} from '../Tenant/TenantPages';
|
25
|
+
|
26
|
+
import './Tenants.scss';
|
27
|
+
|
28
|
+
const b = cn('tenants');
|
29
|
+
|
30
|
+
const tableSettings = {
|
31
|
+
displayIndices: false,
|
32
|
+
stickyHead: DataTable.MOVING,
|
33
|
+
syncHeadOnResize: true,
|
34
|
+
dynamicRender: true,
|
35
|
+
};
|
36
|
+
|
37
|
+
class Tenants extends React.Component {
|
38
|
+
static renderLoader() {
|
39
|
+
return (
|
40
|
+
<div className={'loader'}>
|
41
|
+
<Loader size="l" />
|
42
|
+
</div>
|
43
|
+
);
|
44
|
+
}
|
45
|
+
|
46
|
+
static propTypes = {
|
47
|
+
loading: PropTypes.bool,
|
48
|
+
wasLoaded: PropTypes.bool,
|
49
|
+
error: PropTypes.bool,
|
50
|
+
getTenantsInfo: PropTypes.func,
|
51
|
+
tenants: PropTypes.array,
|
52
|
+
showTooltip: PropTypes.func,
|
53
|
+
hideTooltip: PropTypes.func,
|
54
|
+
searchQuery: PropTypes.string,
|
55
|
+
handleSearchQuery: PropTypes.func,
|
56
|
+
filter: problemFilterType,
|
57
|
+
changeFilter: PropTypes.func,
|
58
|
+
cluster: PropTypes.object,
|
59
|
+
singleClusterMode: PropTypes.bool,
|
60
|
+
additionalTenantsInfo: PropTypes.object,
|
61
|
+
};
|
62
|
+
|
63
|
+
static defaultProps = {
|
64
|
+
className: '',
|
65
|
+
};
|
66
|
+
|
67
|
+
static filterTenants(tenants, filter) {
|
68
|
+
if (filter === ALL) {
|
69
|
+
return tenants;
|
70
|
+
}
|
71
|
+
|
72
|
+
return _.filter(tenants, (tenant) => {
|
73
|
+
return tenant.Overall && tenant.Overall !== 'Green';
|
74
|
+
});
|
75
|
+
}
|
76
|
+
|
77
|
+
state = {
|
78
|
+
formatValues: false,
|
79
|
+
};
|
80
|
+
|
81
|
+
componentDidMount() {
|
82
|
+
this.autofetcher = new AutoFetcher();
|
83
|
+
this.props.getTenantsInfo(clusterName);
|
84
|
+
this.autofetcher.fetch(() => this.props.getTenantsInfo(clusterName));
|
85
|
+
}
|
86
|
+
|
87
|
+
componentWillUnmount() {
|
88
|
+
this.autofetcher.stop();
|
89
|
+
}
|
90
|
+
|
91
|
+
handleFormatChange = () => {
|
92
|
+
this.setState({formatValues: !this.state.formatValues});
|
93
|
+
};
|
94
|
+
|
95
|
+
renderControls() {
|
96
|
+
const {searchQuery, handleSearchQuery, filter, changeFilter} = this.props;
|
97
|
+
const {formatValues} = this.state;
|
98
|
+
|
99
|
+
return (
|
100
|
+
<div className={b('controls')}>
|
101
|
+
<div className={b('controls-left')}>
|
102
|
+
<TextInput
|
103
|
+
className={b('search')}
|
104
|
+
placeholder="Database name…"
|
105
|
+
text={searchQuery}
|
106
|
+
onUpdate={handleSearchQuery}
|
107
|
+
hasClear
|
108
|
+
/>
|
109
|
+
<ProblemFilter value={filter} onChange={changeFilter} />
|
110
|
+
</div>
|
111
|
+
|
112
|
+
<Switch onUpdate={this.handleFormatChange} checked={formatValues} content="raw" />
|
113
|
+
</div>
|
114
|
+
);
|
115
|
+
}
|
116
|
+
|
117
|
+
getControlPlaneValue = (item) => {
|
118
|
+
const parts = _.get(item, 'Name', []).split('/');
|
119
|
+
const defaultValue = parts.length ? parts.slice(-1) : '—';
|
120
|
+
|
121
|
+
return _.get(item, 'ControlPlane.name', defaultValue);
|
122
|
+
};
|
123
|
+
|
124
|
+
renderTable = () => {
|
125
|
+
const {
|
126
|
+
tenants = [],
|
127
|
+
searchQuery,
|
128
|
+
showTooltip,
|
129
|
+
hideTooltip,
|
130
|
+
filter,
|
131
|
+
handleSearchQuery,
|
132
|
+
additionalTenantsInfo = {},
|
133
|
+
} = this.props;
|
134
|
+
const {formatValues} = this.state;
|
135
|
+
|
136
|
+
const filteredTenantsBySearch = tenants.filter(
|
137
|
+
(item) =>
|
138
|
+
item.Name.includes(searchQuery) ||
|
139
|
+
this.getControlPlaneValue(item).includes(searchQuery),
|
140
|
+
filter,
|
141
|
+
);
|
142
|
+
const filteredTenants = Tenants.filterTenants(filteredTenantsBySearch, filter);
|
143
|
+
|
144
|
+
const columns = [
|
145
|
+
{
|
146
|
+
name: 'Name',
|
147
|
+
header: 'Database',
|
148
|
+
render: ({value, row}) => {
|
149
|
+
const tenantBackend = additionalTenantsInfo.tenantBackend
|
150
|
+
? additionalTenantsInfo.tenantBackend(row.backend)
|
151
|
+
: undefined;
|
152
|
+
return (
|
153
|
+
<React.Fragment>
|
154
|
+
<EntityStatus
|
155
|
+
externalLink={Boolean(row.backend)}
|
156
|
+
className={b('name')}
|
157
|
+
name={value || 'unknown database'}
|
158
|
+
status={row.Overall}
|
159
|
+
hasClipboardButton
|
160
|
+
path={createHref(
|
161
|
+
routes.tenant,
|
162
|
+
{page: TENANT_PAGES[0].id},
|
163
|
+
{
|
164
|
+
name: value,
|
165
|
+
backend: tenantBackend,
|
166
|
+
},
|
167
|
+
)}
|
168
|
+
/>
|
169
|
+
{additionalTenantsInfo.name && additionalTenantsInfo.name(value, row)}
|
170
|
+
</React.Fragment>
|
171
|
+
);
|
172
|
+
},
|
173
|
+
width: 440,
|
174
|
+
sortable: true,
|
175
|
+
defaultOrder: DataTable.DESCENDING,
|
176
|
+
},
|
177
|
+
{
|
178
|
+
name: 'ControlPlaneName',
|
179
|
+
header: 'Name',
|
180
|
+
render: ({row}) => {
|
181
|
+
return this.getControlPlaneValue(row);
|
182
|
+
},
|
183
|
+
width: 200,
|
184
|
+
sortable: true,
|
185
|
+
defaultOrder: DataTable.DESCENDING,
|
186
|
+
},
|
187
|
+
{
|
188
|
+
name: 'Type',
|
189
|
+
width: 200,
|
190
|
+
render: ({value, row}) => {
|
191
|
+
if (value !== 'Serverless') {
|
192
|
+
return value;
|
193
|
+
}
|
194
|
+
|
195
|
+
const sharedTenantName = _.find(tenants, {Id: row.ResourceId}).Name;
|
196
|
+
|
197
|
+
return (
|
198
|
+
<div className={b('type')}>
|
199
|
+
<span className={b('type-value')}>{value}</span>
|
200
|
+
<Button
|
201
|
+
className={b('type-button')}
|
202
|
+
onClick={() => handleSearchQuery(sharedTenantName)}
|
203
|
+
>
|
204
|
+
Show shared
|
205
|
+
</Button>
|
206
|
+
</div>
|
207
|
+
);
|
208
|
+
},
|
209
|
+
},
|
210
|
+
{
|
211
|
+
name: 'State',
|
212
|
+
width: 80,
|
213
|
+
render: ({value}) => (value ? value.toLowerCase() : '—'),
|
214
|
+
customStyle: () => ({textTransform: 'capitalize'}),
|
215
|
+
},
|
216
|
+
{
|
217
|
+
name: 'cpu',
|
218
|
+
header: 'CPU',
|
219
|
+
width: 80,
|
220
|
+
sortAccessor: ({Metrics = {}, CoresUsed}) => {
|
221
|
+
const cpuRaw =
|
222
|
+
CoresUsed !== undefined ? Number(CoresUsed) * 1_000_000 : Metrics.CPU;
|
223
|
+
return isNaN(Number(cpuRaw)) ? 0 : Number(cpuRaw);
|
224
|
+
},
|
225
|
+
accessor: ({Metrics = {}, CoresUsed}) => {
|
226
|
+
if (!isNaN(Number(CoresUsed))) {
|
227
|
+
const cores = Math.round(Number(CoresUsed) * 100) / 100;
|
228
|
+
return cores || '—';
|
229
|
+
} else {
|
230
|
+
return Number(Metrics.CPU) ? formatCPU(Number(Metrics.CPU)) : '—';
|
231
|
+
}
|
232
|
+
},
|
233
|
+
align: DataTable.RIGHT,
|
234
|
+
defaultOrder: DataTable.DESCENDING,
|
235
|
+
},
|
236
|
+
{
|
237
|
+
name: 'memory',
|
238
|
+
header: 'Memory',
|
239
|
+
width: 120,
|
240
|
+
accessor: ({Metrics = {}, MemoryUsed}) => {
|
241
|
+
return !isNaN(Number(MemoryUsed)) ? Number(MemoryUsed) : Number(Metrics.Memory);
|
242
|
+
},
|
243
|
+
sortAccessor: ({Metrics = {}, MemoryUsed}) => {
|
244
|
+
const memory = MemoryUsed ?? Metrics.Memory;
|
245
|
+
return isNaN(Number(memory)) ? 0 : Number(memory);
|
246
|
+
},
|
247
|
+
render: ({value}) =>
|
248
|
+
value ? (formatValues ? formatNumber(value) : formatBytes(value)) : '—',
|
249
|
+
align: DataTable.RIGHT,
|
250
|
+
defaultOrder: DataTable.DESCENDING,
|
251
|
+
},
|
252
|
+
{
|
253
|
+
name: 'storage',
|
254
|
+
header: 'Storage',
|
255
|
+
width: 120,
|
256
|
+
accessor: ({Metrics = {}, StorageAllocatedSize}) => {
|
257
|
+
return !isNaN(Number(StorageAllocatedSize))
|
258
|
+
? Number(StorageAllocatedSize)
|
259
|
+
: Number(Metrics.Storage);
|
260
|
+
},
|
261
|
+
sortAccessor: ({Metrics = {}, StorageAllocatedSize}) => {
|
262
|
+
const storage = StorageAllocatedSize ?? Metrics.Storage;
|
263
|
+
return isNaN(Number(storage)) ? 0 : Number(storage);
|
264
|
+
},
|
265
|
+
render: ({value}) =>
|
266
|
+
value ? (formatValues ? formatNumber(value) : formatBytes(value)) : '—',
|
267
|
+
align: DataTable.RIGHT,
|
268
|
+
defaultOrder: DataTable.DESCENDING,
|
269
|
+
},
|
270
|
+
{
|
271
|
+
name: 'StorageGroups',
|
272
|
+
header: 'Groups',
|
273
|
+
width: 100,
|
274
|
+
sortAccessor: ({StorageGroups}) =>
|
275
|
+
isNaN(Number(StorageGroups)) ? 0 : Number(StorageGroups),
|
276
|
+
render: ({value}) => value ?? '—',
|
277
|
+
align: DataTable.RIGHT,
|
278
|
+
defaultOrder: DataTable.DESCENDING,
|
279
|
+
},
|
280
|
+
{
|
281
|
+
name: 'PoolStats',
|
282
|
+
header: 'Pools',
|
283
|
+
width: 100,
|
284
|
+
sortAccessor: ({PoolStats = []}) =>
|
285
|
+
PoolStats.reduce((acc, item) => acc + item.Usage, 0),
|
286
|
+
defaultOrder: DataTable.DESCENDING,
|
287
|
+
align: DataTable.CENTER,
|
288
|
+
render: ({value}) => (
|
289
|
+
<PoolsGraph
|
290
|
+
onMouseEnter={showTooltip}
|
291
|
+
onMouseLeave={hideTooltip}
|
292
|
+
rowInfo={value}
|
293
|
+
pools={value}
|
294
|
+
/>
|
295
|
+
),
|
296
|
+
},
|
297
|
+
{
|
298
|
+
name: 'Tablets',
|
299
|
+
header: 'Tablets States',
|
300
|
+
sortable: false,
|
301
|
+
width: 370,
|
302
|
+
render: ({value, row}) =>
|
303
|
+
value ? (
|
304
|
+
<TabletsStatistic path={row.Name} tablets={value} nodeIds={row.NodeIds} />
|
305
|
+
) : (
|
306
|
+
'—'
|
307
|
+
),
|
308
|
+
},
|
309
|
+
];
|
310
|
+
|
311
|
+
if (filteredTenants.length === 0 && filter === ALL) {
|
312
|
+
return <div className="error"> no tenants data</div>;
|
313
|
+
} else if (filteredTenants.length === 0) {
|
314
|
+
return <div className="no-problem" />;
|
315
|
+
}
|
316
|
+
|
317
|
+
return (
|
318
|
+
<div className={b('table-wrapper')}>
|
319
|
+
<div className={b('table-content')}>
|
320
|
+
<DataTable
|
321
|
+
theme="internal"
|
322
|
+
data={filteredTenants}
|
323
|
+
columns={columns}
|
324
|
+
settings={tableSettings}
|
325
|
+
dynamicRender={true}
|
326
|
+
/>
|
327
|
+
</div>
|
328
|
+
</div>
|
329
|
+
);
|
330
|
+
};
|
331
|
+
|
332
|
+
renderContent = () => {
|
333
|
+
return (
|
334
|
+
<div className={b()}>
|
335
|
+
{this.renderControls()}
|
336
|
+
{this.renderTable()}
|
337
|
+
</div>
|
338
|
+
);
|
339
|
+
};
|
340
|
+
|
341
|
+
render() {
|
342
|
+
const {loading, wasLoaded, error} = this.props;
|
343
|
+
|
344
|
+
if (loading && !wasLoaded) {
|
345
|
+
return Tenants.renderLoader();
|
346
|
+
} else if (error) {
|
347
|
+
return <div>{error.statusText}</div>;
|
348
|
+
} else {
|
349
|
+
return this.renderContent();
|
350
|
+
}
|
351
|
+
}
|
352
|
+
}
|
353
|
+
|
354
|
+
const mapStateToProps = (state) => {
|
355
|
+
const {tenants, wasLoaded, loading, error} = state.tenants;
|
356
|
+
const {singleClusterMode} = state;
|
357
|
+
|
358
|
+
return {
|
359
|
+
singleClusterMode,
|
360
|
+
tenants,
|
361
|
+
wasLoaded,
|
362
|
+
loading,
|
363
|
+
error,
|
364
|
+
filter: state.settings.problemFilter,
|
365
|
+
};
|
366
|
+
};
|
367
|
+
|
368
|
+
const mapDispatchToProps = {
|
369
|
+
getTenantsInfo,
|
370
|
+
hideTooltip,
|
371
|
+
showTooltip,
|
372
|
+
changeFilter,
|
373
|
+
};
|
374
|
+
|
375
|
+
export default withSearch(connect(mapStateToProps, mapDispatchToProps)(Tenants));
|
@@ -0,0 +1,73 @@
|
|
1
|
+
@import '../../styles/mixins.scss';
|
2
|
+
|
3
|
+
.tenants {
|
4
|
+
@include flex-container();
|
5
|
+
overflow: auto;
|
6
|
+
|
7
|
+
&__format-label {
|
8
|
+
margin-right: 15px;
|
9
|
+
}
|
10
|
+
|
11
|
+
&__title {
|
12
|
+
text-align: center;
|
13
|
+
}
|
14
|
+
|
15
|
+
&__tooltip {
|
16
|
+
animation: none !important;
|
17
|
+
}
|
18
|
+
|
19
|
+
&__search {
|
20
|
+
width: 450px;
|
21
|
+
margin: 0 15px 0 0;
|
22
|
+
}
|
23
|
+
|
24
|
+
&__tablets {
|
25
|
+
padding: 0 !important;
|
26
|
+
|
27
|
+
.tablets-viewer__grid {
|
28
|
+
grid-gap: 20px;
|
29
|
+
}
|
30
|
+
}
|
31
|
+
|
32
|
+
&__controls {
|
33
|
+
display: flex;
|
34
|
+
justify-content: space-between;
|
35
|
+
margin: 17px 0;
|
36
|
+
}
|
37
|
+
|
38
|
+
&__controls-left {
|
39
|
+
display: flex;
|
40
|
+
align-items: center;
|
41
|
+
|
42
|
+
& > * {
|
43
|
+
margin-right: 25px;
|
44
|
+
}
|
45
|
+
}
|
46
|
+
|
47
|
+
&__table-wrapper {
|
48
|
+
@include flex-container();
|
49
|
+
overflow: auto;
|
50
|
+
}
|
51
|
+
|
52
|
+
&__table-content {
|
53
|
+
@include freeze-nth-column(1);
|
54
|
+
|
55
|
+
@include table-styles;
|
56
|
+
@include table-sticky-styles;
|
57
|
+
}
|
58
|
+
|
59
|
+
&__type-value {
|
60
|
+
margin-right: 10px;
|
61
|
+
}
|
62
|
+
|
63
|
+
&__type-button {
|
64
|
+
visibility: hidden;
|
65
|
+
}
|
66
|
+
|
67
|
+
.data-table__row:hover &__type-button {
|
68
|
+
visibility: visible;
|
69
|
+
}
|
70
|
+
&__name {
|
71
|
+
max-width: 90%;
|
72
|
+
}
|
73
|
+
}
|
@@ -0,0 +1,57 @@
|
|
1
|
+
import {connect} from 'react-redux';
|
2
|
+
|
3
|
+
import {RadioButton} from '@yandex-cloud/uikit';
|
4
|
+
import {Settings} from '../../components/AsideNavigation/Settings';
|
5
|
+
import favoriteFilledIcon from '../../assets/icons/star.svg';
|
6
|
+
//@ts-ignore
|
7
|
+
import {THEME_KEY} from '../../utils/constants';
|
8
|
+
//@ts-ignore
|
9
|
+
import {setSettingValue} from '../../store/reducers/settings';
|
10
|
+
|
11
|
+
// import './UserSettings.scss';
|
12
|
+
|
13
|
+
enum Theme {
|
14
|
+
light = 'light',
|
15
|
+
dark = 'dark',
|
16
|
+
system = 'system',
|
17
|
+
}
|
18
|
+
|
19
|
+
function UserSettings(props: any) {
|
20
|
+
const _onThemeChangeHandler = (value: string) => {
|
21
|
+
props.setSettingValue(THEME_KEY, value);
|
22
|
+
};
|
23
|
+
|
24
|
+
return (
|
25
|
+
<Settings>
|
26
|
+
<Settings.Page
|
27
|
+
id="general"
|
28
|
+
title="General"
|
29
|
+
icon={{data: favoriteFilledIcon, height: 14, width: 14}}
|
30
|
+
>
|
31
|
+
<Settings.Section title="General">
|
32
|
+
<Settings.Item title="Interface theme">
|
33
|
+
<RadioButton value={props.theme} onUpdate={_onThemeChangeHandler}>
|
34
|
+
<RadioButton.Option value={Theme.system}>System</RadioButton.Option>
|
35
|
+
<RadioButton.Option value={Theme.light}>Light</RadioButton.Option>
|
36
|
+
<RadioButton.Option value={Theme.dark}>Dark</RadioButton.Option>
|
37
|
+
</RadioButton>
|
38
|
+
</Settings.Item>
|
39
|
+
</Settings.Section>
|
40
|
+
</Settings.Page>
|
41
|
+
</Settings>
|
42
|
+
);
|
43
|
+
}
|
44
|
+
|
45
|
+
const mapStateToProps = (state: any) => {
|
46
|
+
const {theme} = state.settings.userSettings;
|
47
|
+
|
48
|
+
return {
|
49
|
+
theme,
|
50
|
+
};
|
51
|
+
};
|
52
|
+
|
53
|
+
const mapDispatchToProps = {
|
54
|
+
setSettingValue,
|
55
|
+
};
|
56
|
+
|
57
|
+
export default connect(mapStateToProps, mapDispatchToProps)(UserSettings);
|
@@ -0,0 +1,160 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
import PropTypes from 'prop-types';
|
3
|
+
import cn from 'bem-cn-lite';
|
4
|
+
import {connect} from 'react-redux';
|
5
|
+
|
6
|
+
import {Link} from 'react-router-dom';
|
7
|
+
import {Loader} from '@yandex-cloud/uikit';
|
8
|
+
|
9
|
+
import InfoViewer from '../../components/InfoViewer/InfoViewer';
|
10
|
+
import EntityStatus from '../../components/EntityStatus/EntityStatus';
|
11
|
+
|
12
|
+
import {getVdiskInfo, clearStore} from '../../store/reducers/vdisk';
|
13
|
+
import {VDISK_AUTO_RELOAD_INTERVAL} from '../../utils/constants';
|
14
|
+
import {formatBytes, calcUptime, stringifyVdiskId} from '../../utils';
|
15
|
+
import routes, {createHref} from '../../routes';
|
16
|
+
|
17
|
+
import './Vdisk.scss';
|
18
|
+
|
19
|
+
const b = cn('vdisk');
|
20
|
+
|
21
|
+
class Vdisk extends React.Component {
|
22
|
+
static renderLoader() {
|
23
|
+
return (
|
24
|
+
<div className={'loader'}>
|
25
|
+
<Loader size="l" />
|
26
|
+
</div>
|
27
|
+
);
|
28
|
+
}
|
29
|
+
|
30
|
+
static propTypes = {
|
31
|
+
className: PropTypes.string,
|
32
|
+
loading: PropTypes.bool,
|
33
|
+
wasLoaded: PropTypes.bool,
|
34
|
+
error: PropTypes.bool,
|
35
|
+
getVdiskInfo: PropTypes.func,
|
36
|
+
clearStore: PropTypes.func,
|
37
|
+
vdisk: PropTypes.object,
|
38
|
+
location: PropTypes.object,
|
39
|
+
};
|
40
|
+
|
41
|
+
static defaultProps = {
|
42
|
+
className: '',
|
43
|
+
};
|
44
|
+
|
45
|
+
componentDidMount() {
|
46
|
+
const {id} = this.props.match.params;
|
47
|
+
|
48
|
+
this.props.getVdiskInfo(id);
|
49
|
+
this.reloadDescriptor = setInterval(
|
50
|
+
() => this.props.getVdiskInfo(id),
|
51
|
+
VDISK_AUTO_RELOAD_INTERVAL,
|
52
|
+
);
|
53
|
+
}
|
54
|
+
|
55
|
+
componentWillUnmount() {
|
56
|
+
this.props.clearStore();
|
57
|
+
clearInterval(this.reloadDescriptor);
|
58
|
+
}
|
59
|
+
|
60
|
+
renderContent = () => {
|
61
|
+
const {
|
62
|
+
AllocatedSize,
|
63
|
+
ChangeTime,
|
64
|
+
DiskSpace,
|
65
|
+
FrontQueues,
|
66
|
+
Guid,
|
67
|
+
NodeId,
|
68
|
+
PDiskId,
|
69
|
+
Replicated,
|
70
|
+
VDiskState,
|
71
|
+
VDiskId,
|
72
|
+
} = this.props.vdisk;
|
73
|
+
|
74
|
+
const vdiskInfo = [
|
75
|
+
{label: 'Allocated Size', value: formatBytes(AllocatedSize)},
|
76
|
+
{label: 'Change Time', value: calcUptime(ChangeTime)},
|
77
|
+
{label: 'Disk Space', value: <EntityStatus status={DiskSpace} />},
|
78
|
+
{label: 'Front Queues', value: <EntityStatus status={FrontQueues} />},
|
79
|
+
{label: 'Guid', value: Guid},
|
80
|
+
{
|
81
|
+
label: 'NodeId',
|
82
|
+
value: (
|
83
|
+
<Link
|
84
|
+
className={b('link')}
|
85
|
+
to={createHref(routes.node, {id: NodeId, activeTab: 'storage'})}
|
86
|
+
>
|
87
|
+
{NodeId}
|
88
|
+
</Link>
|
89
|
+
),
|
90
|
+
},
|
91
|
+
{
|
92
|
+
label: 'PDiskId',
|
93
|
+
value: (
|
94
|
+
<Link
|
95
|
+
className={b('link')}
|
96
|
+
to={createHref(routes.pdisk, {id: PDiskId}, {node_id: NodeId})}
|
97
|
+
>
|
98
|
+
{PDiskId}
|
99
|
+
</Link>
|
100
|
+
),
|
101
|
+
},
|
102
|
+
{label: 'Replicated', value: Replicated ? '✓' : '☓'},
|
103
|
+
{
|
104
|
+
label: 'VDiskState',
|
105
|
+
value: VDiskState,
|
106
|
+
},
|
107
|
+
];
|
108
|
+
|
109
|
+
return (
|
110
|
+
<div className={b()}>
|
111
|
+
<div className={b('row')}>
|
112
|
+
<span className={b('title')}>VDisk </span>
|
113
|
+
<EntityStatus
|
114
|
+
status={VDiskState === 'OK' ? 'green' : 'red'}
|
115
|
+
name={stringifyVdiskId(VDiskId)}
|
116
|
+
/>
|
117
|
+
</div>
|
118
|
+
|
119
|
+
<div className={b('column')}>
|
120
|
+
<InfoViewer className={b('section')} info={vdiskInfo} />
|
121
|
+
</div>
|
122
|
+
</div>
|
123
|
+
);
|
124
|
+
};
|
125
|
+
|
126
|
+
render() {
|
127
|
+
const {loading, wasLoaded, error} = this.props;
|
128
|
+
|
129
|
+
if (loading && !wasLoaded) {
|
130
|
+
return Vdisk.renderLoader();
|
131
|
+
} else if (error) {
|
132
|
+
return <div>{error.statusText}</div>;
|
133
|
+
} else {
|
134
|
+
return this.renderContent();
|
135
|
+
}
|
136
|
+
}
|
137
|
+
}
|
138
|
+
|
139
|
+
const mapStateToProps = (state) => {
|
140
|
+
const {data, wasLoaded, loading, error} = state.vdisk;
|
141
|
+
|
142
|
+
let vdisk;
|
143
|
+
if (data) {
|
144
|
+
vdisk = data.VDiskStateInfo[0];
|
145
|
+
}
|
146
|
+
|
147
|
+
return {
|
148
|
+
vdisk,
|
149
|
+
wasLoaded,
|
150
|
+
loading,
|
151
|
+
error,
|
152
|
+
};
|
153
|
+
};
|
154
|
+
|
155
|
+
const mapDispatchToProps = {
|
156
|
+
getVdiskInfo,
|
157
|
+
clearStore,
|
158
|
+
};
|
159
|
+
|
160
|
+
export default connect(mapStateToProps, mapDispatchToProps)(Vdisk);
|
@@ -0,0 +1,40 @@
|
|
1
|
+
@import '../../styles/mixins.scss';
|
2
|
+
|
3
|
+
.vdisk {
|
4
|
+
@include container-fluid();
|
5
|
+
padding: 20px;
|
6
|
+
|
7
|
+
.info-viewer__items {
|
8
|
+
grid-template-columns: max-content;
|
9
|
+
}
|
10
|
+
|
11
|
+
&__row {
|
12
|
+
display: flex;
|
13
|
+
}
|
14
|
+
|
15
|
+
&__column {
|
16
|
+
display: flex;
|
17
|
+
flex-direction: column;
|
18
|
+
}
|
19
|
+
|
20
|
+
&__title {
|
21
|
+
font-size: var(--yc-text-body2-font-size);
|
22
|
+
line-height: var(--yc-text-body2-line-height);
|
23
|
+
font-weight: 500;
|
24
|
+
text-transform: uppercase;
|
25
|
+
margin-right: 16px;
|
26
|
+
}
|
27
|
+
|
28
|
+
&__section {
|
29
|
+
padding: 15px 0;
|
30
|
+
|
31
|
+
.info-viewer__label {
|
32
|
+
min-width: 205px;
|
33
|
+
}
|
34
|
+
}
|
35
|
+
|
36
|
+
&__link {
|
37
|
+
color: var(--yc-color-base-special);
|
38
|
+
text-decoration: none;
|
39
|
+
}
|
40
|
+
}
|