ydb-embedded-ui 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +7 -0
- package/LICENSE +21 -0
- package/README.md +2 -2
- package/dist/assets/icons/cluster.svg +1 -0
- package/dist/assets/icons/hide.svg +1 -0
- package/dist/assets/icons/show.svg +1 -0
- package/dist/assets/icons/user-check.svg +1 -1
- package/dist/assets/icons/user-secret.svg +1 -1
- package/dist/components/AsideNavigation/AsideHeader.scss +1 -2
- package/dist/components/AsideNavigation/AsideHeaderFooterItem/AsideHeaderFooterItem.scss +7 -7
- package/dist/components/AsideNavigation/AsideHeaderTooltip/AsideHeaderTooltip.scss +2 -2
- package/dist/components/AsideNavigation/CompositeBar/CompositeBar.scss +6 -6
- package/dist/components/AsideNavigation/Drawer/Drawer.scss +5 -5
- package/dist/components/AsideNavigation/Logo/Logo.scss +3 -4
- package/dist/components/AsideNavigation/Settings/Settings.scss +27 -12
- package/dist/components/AsideNavigation/Settings/SettingsMenu/SettingsMenu.scss +14 -6
- package/dist/components/Breadcrumbs/Breadcrumbs.scss +2 -1
- package/dist/components/ClusterInfo/ClusterInfo.scss +19 -12
- package/dist/components/ClusterInfo/ClusterInfo.tsx +110 -10
- package/dist/components/CopyToClipboard/CopyToClipboard.tsx +39 -0
- package/dist/components/CriticalActionDialog/CriticalActionDialog.scss +5 -4
- package/dist/components/Divider/Divider.scss +7 -0
- package/dist/components/Divider/Divider.tsx +11 -0
- package/dist/components/EmptyState/EmptyState.scss +14 -10
- package/dist/components/EnableFullscreenButton/EnableFullscreenButton.tsx +22 -0
- package/dist/components/EntityStatus/EntityStatus.js +5 -3
- package/dist/components/EntityStatus/EntityStatus.scss +35 -13
- package/dist/components/FullGroupViewer/FullGroupViewer.js +2 -4
- package/dist/components/FullGroupViewer/FullGroupViewer.scss +6 -3
- package/dist/components/FullNodeViewer/FullNodeViewer.scss +19 -11
- package/dist/components/Fullscreen/Fullscreen.scss +28 -0
- package/dist/components/Fullscreen/Fullscreen.tsx +81 -0
- package/dist/components/GroupTreeViewer/GroupTreeViewer.scss +1 -0
- package/dist/components/GroupViewer/GroupViewer.scss +8 -4
- package/dist/components/Icon/Icon.js +2 -0
- package/dist/components/InfoViewer/InfoViewer.scss +22 -16
- package/dist/components/NodesViewer/NodesViewer.js +25 -35
- package/dist/components/NodesViewer/NodesViewer.scss +15 -11
- package/dist/components/PDiskViewer/PDiskViewer.scss +10 -4
- package/dist/components/Pagination/Pagination.scss +6 -3
- package/dist/components/PoolBar/PoolBar.scss +14 -10
- package/dist/components/PoolUsage/PoolUsage.scss +17 -9
- package/dist/components/ProgressViewer/ProgressViewer.js +1 -1
- package/dist/components/ProgressViewer/ProgressViewer.scss +28 -18
- package/dist/components/QueryExecutionStatus/QueryExecutionStatus.scss +14 -0
- package/dist/components/QueryExecutionStatus/QueryExecutionStatus.tsx +29 -0
- package/dist/components/SplitPane/SplitPane.scss +33 -40
- package/dist/components/SplitPane/SplitPane.tsx +94 -0
- package/dist/components/Tablet/Tablet.scss +9 -6
- package/dist/components/TabletsOverall/TabletsOverall.scss +19 -0
- package/dist/components/TabletsOverall/TabletsOverall.tsx +105 -0
- package/dist/components/TabletsStatistic/TabletsStatistic.scss +24 -18
- package/dist/components/TabletsViewer/TabletsViewer.scss +12 -9
- package/dist/components/Tag/Tag.scss +6 -4
- package/dist/components/Tags/Tags.scss +1 -1
- package/dist/components/TreeView/TreeView.js +1 -1
- package/dist/components/TreeView/TreeView.scss +9 -0
- package/dist/components/TruncatedQuery/TruncatedQuery.scss +4 -3
- package/dist/containers/App/App.js +1 -0
- package/dist/containers/App/App.scss +50 -31
- package/dist/containers/App/Content.js +2 -2
- package/dist/containers/App/NodesTable.scss +25 -0
- package/dist/containers/App/TipPopup/TipPopup.scss +10 -6
- package/dist/containers/AppIcons/AppIcons.js +46 -22
- package/dist/containers/AsideNavigation/AsideNavigation.scss +1 -1
- package/dist/containers/AsideNavigation/AsideNavigation.tsx +12 -5
- package/dist/containers/Authentication/Authentication.scss +63 -14
- package/dist/containers/Authentication/Authentication.tsx +42 -9
- package/dist/containers/Cluster/Cluster.scss +5 -3
- package/dist/containers/Cluster/Cluster.tsx +49 -0
- package/dist/containers/Group/Group.scss +1 -1
- package/dist/containers/Header/Header.scss +15 -59
- package/dist/containers/Header/Header.tsx +75 -0
- package/dist/containers/Header/Host/Host.scss +10 -3
- package/dist/containers/Heatmap/Heatmap.js +1 -1
- package/dist/containers/Heatmap/Heatmap.scss +16 -7
- package/dist/containers/Heatmap/HeatmapCanvas/HeatmapCanvas.js +3 -3
- package/dist/containers/Heatmap/Histogram/Histogram.scss +21 -9
- package/dist/containers/Node/Node.js +1 -1
- package/dist/containers/Node/Node.scss +6 -4
- package/dist/containers/Nodes/Nodes.js +28 -27
- package/dist/containers/Nodes/Nodes.scss +5 -17
- package/dist/containers/Pdisk/Pdisk.scss +6 -4
- package/dist/containers/Pool/Pool.scss +7 -4
- package/dist/containers/ReduxTooltip/ReduxTooltip.scss +5 -1
- package/dist/containers/Storage/DiskStateProgressBar/DiskStateProgressBar.scss +77 -0
- package/dist/containers/{StorageV2 → Storage}/DiskStateProgressBar/DiskStateProgressBar.tsx +1 -1
- package/dist/containers/{StorageV2 → Storage}/Pdisk/Pdisk.scss +6 -4
- package/dist/containers/{StorageV2 → Storage}/Pdisk/Pdisk.tsx +1 -2
- package/dist/containers/{StorageV2 → Storage}/Storage.js +72 -34
- package/dist/containers/{StorageV2 → Storage}/Storage.scss +12 -14
- package/dist/containers/{StorageV2 → Storage}/StorageFilter/StorageFilter.js +1 -9
- package/dist/containers/{StorageV2 → Storage}/StorageGroups/StorageGroups.scss +2 -0
- package/dist/containers/{StorageV2 → Storage}/StorageGroups/StorageGroups.tsx +1 -1
- package/dist/containers/{StorageV2 → Storage}/StorageNodes/StorageNodes.scss +2 -0
- package/dist/containers/{StorageV2 → Storage}/StorageNodes/StorageNodes.tsx +1 -1
- package/dist/containers/{StorageV2 → Storage}/Vdisk/Vdisk.js +0 -0
- package/dist/containers/{StorageV2 → Storage}/Vdisk/Vdisk.scss +6 -4
- package/dist/containers/Tablet/Tablet.scss +13 -9
- package/dist/containers/Tablets/Tablets.js +21 -90
- package/dist/containers/Tablets/Tablets.scss +9 -35
- package/dist/containers/TabletsFilters/TabletsFilters.js +2 -75
- package/dist/containers/TabletsFilters/TabletsFilters.scss +15 -35
- package/dist/containers/Tenant/Acl/Acl.js +54 -47
- package/dist/containers/Tenant/Acl/Acl.scss +15 -4
- package/dist/containers/Tenant/{Compute → Diagnostics/Compute}/Compute.js +35 -12
- package/dist/containers/Tenant/Diagnostics/Compute/Compute.scss +14 -0
- package/dist/containers/Tenant/{Describe → Diagnostics/Describe}/Describe.js +50 -1
- package/dist/containers/Tenant/{Describe → Diagnostics/Describe}/Describe.scss +5 -3
- package/dist/containers/Tenant/Diagnostics/DetailedOverview/DetailedOverview.scss +27 -0
- package/dist/containers/Tenant/Diagnostics/DetailedOverview/DetailedOverview.tsx +88 -0
- package/dist/containers/Tenant/Diagnostics/Diagnostics.scss +50 -0
- package/dist/containers/Tenant/Diagnostics/Diagnostics.tsx +208 -0
- package/dist/containers/Tenant/Diagnostics/DiagnosticsPages.ts +75 -0
- package/dist/containers/Tenant/Diagnostics/Healthcheck/Healthcheck.js +191 -0
- package/dist/containers/Tenant/Diagnostics/Healthcheck/Healthcheck.scss +79 -0
- package/dist/containers/Tenant/{Healthcheck → Diagnostics/Healthcheck}/IssuesViewer/IssueViewer.scss +25 -13
- package/dist/containers/Tenant/{Healthcheck → Diagnostics/Healthcheck}/IssuesViewer/IssuesViewer.js +2 -2
- package/dist/containers/Tenant/{Schema → Diagnostics}/HotKeys/HotKeys.js +14 -8
- package/dist/containers/Tenant/{Schema → Diagnostics}/HotKeys/HotKeys.scss +7 -5
- package/dist/containers/Tenant/{Network → Diagnostics/Network}/Network.js +39 -9
- package/dist/containers/Tenant/{Network → Diagnostics/Network}/Network.scss +35 -36
- package/dist/containers/Tenant/{Network → Diagnostics/Network}/NodeNetwork/NodeNetwork.js +0 -0
- package/dist/containers/Tenant/{Network → Diagnostics/Network}/NodeNetwork/NodeNetwork.scss +11 -9
- package/dist/containers/Tenant/Diagnostics/Overview/Overview.scss +13 -0
- package/dist/containers/Tenant/Diagnostics/Overview/Overview.tsx +123 -0
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantOverview.js +200 -0
- package/dist/{components → containers/Tenant/Diagnostics}/TenantOverview/TenantOverview.scss +24 -17
- package/dist/containers/Tenant/{TopQueries → Diagnostics/TopQueries}/TopQueries.js +32 -30
- package/dist/containers/Tenant/{TopQueries → Diagnostics/TopQueries}/TopQueries.scss +10 -9
- package/dist/containers/Tenant/{TopShards → Diagnostics/TopShards}/TopShards.js +25 -29
- package/dist/containers/Tenant/{TopShards → Diagnostics/TopShards}/TopShards.scss +1 -13
- package/dist/containers/Tenant/ObjectGeneral/ObjectGeneral.scss +38 -0
- package/dist/containers/Tenant/ObjectGeneral/ObjectGeneral.tsx +104 -0
- package/dist/containers/Tenant/ObjectSummary/ObjectSummary.scss +165 -0
- package/dist/containers/Tenant/ObjectSummary/ObjectSummary.tsx +310 -0
- package/dist/containers/Tenant/Preview/Preview.js +50 -12
- package/dist/containers/Tenant/Preview/Preview.scss +45 -3
- package/dist/containers/Tenant/QueryEditor/QueriesHistory/QueriesHistory.scss +85 -0
- package/dist/containers/Tenant/QueryEditor/QueriesHistory/QueriesHistory.tsx +94 -0
- package/dist/containers/Tenant/QueryEditor/QueryEditor.js +291 -264
- package/dist/containers/Tenant/QueryEditor/QueryEditor.scss +47 -18
- package/dist/containers/Tenant/QueryEditor/QueryExplain/QueryExplain.js +132 -32
- package/dist/containers/Tenant/QueryEditor/QueryExplain/QueryExplain.scss +47 -11
- package/dist/containers/Tenant/QueryEditor/QueryResult/QueryResult.js +89 -20
- package/dist/containers/Tenant/QueryEditor/QueryResult/QueryResult.scss +60 -6
- package/dist/containers/Tenant/QueryEditor/SaveQuery/SaveQuery.js +10 -23
- package/dist/containers/Tenant/QueryEditor/SaveQuery/SaveQuery.scss +15 -7
- package/dist/containers/Tenant/QueryEditor/SavedQueries/SavedQueries.js +7 -3
- package/dist/containers/Tenant/QueryEditor/SavedQueries/SavedQueries.scss +28 -17
- package/dist/containers/Tenant/Schema/SchemaInfoViewer/SchemaInfoViewer.js +7 -7
- package/dist/containers/Tenant/Schema/SchemaInfoViewer/SchemaInfoViewer.scss +1 -11
- package/dist/containers/Tenant/Schema/SchemaNode/SchemaNode.js +37 -17
- package/dist/containers/Tenant/Schema/SchemaNode/SchemaNode.scss +33 -12
- package/dist/containers/Tenant/Schema/SchemaNodeActions/SchemaNodeActions.scss +17 -0
- package/dist/containers/Tenant/Schema/SchemaNodeActions/SchemaNodeActions.tsx +125 -0
- package/dist/containers/Tenant/Schema/SchemaTree/SchemaTree.js +5 -4
- package/dist/containers/Tenant/Schema/SchemaTree/SchemaTree.scss +6 -2
- package/dist/containers/Tenant/Schema/SchemaViewer/SchemaViewer.js +53 -34
- package/dist/containers/Tenant/Schema/SchemaViewer/SchemaViewer.scss +1 -22
- package/dist/containers/Tenant/Tenant.scss +3 -32
- package/dist/containers/Tenant/Tenant.tsx +161 -0
- package/dist/containers/Tenant/TenantPages.tsx +48 -0
- package/dist/containers/Tenant/utils/ToggleButton.scss +26 -0
- package/dist/containers/Tenant/utils/paneVisibilityToggleHelpers.tsx +126 -0
- package/dist/containers/Tenants/Tenants.js +41 -55
- package/dist/containers/Tenants/Tenants.scss +4 -17
- package/dist/containers/UserSettings/UserSettings.tsx +0 -2
- package/dist/containers/Vdisk/Vdisk.scss +6 -4
- package/dist/containers/VdiskPdiskNode/VdiskPdiskNode.js +1 -1
- package/dist/containers/VdiskPdiskNode/VdiskPdiskNode.scss +5 -5
- package/dist/{routes.js → routes.ts} +14 -4
- package/dist/store/reducers/clusterNodes.js +1 -1
- package/dist/store/reducers/fullscreen.ts +31 -0
- package/dist/store/reducers/header.ts +23 -0
- package/dist/store/reducers/hotKeys.js +1 -1
- package/dist/store/reducers/index.js +6 -0
- package/dist/store/reducers/saveQuery.ts +33 -0
- package/dist/store/reducers/schema.js +14 -0
- package/dist/store/reducers/shardsWorkload.js +1 -1
- package/dist/store/state-url-mapping.js +1 -1
- package/dist/store/utils.js +2 -6
- package/dist/styles/mixins.scss +49 -34
- package/dist/utils/autofetcher.ts +51 -0
- package/dist/utils/constants.js +25 -7
- package/dist/utils/createToast.tsx +23 -0
- package/dist/utils/getNodesColumns.js +25 -28
- package/dist/utils/index.js +6 -2
- package/package.json +8 -4
- package/dist/components/SplitPane/SplitPane.js +0 -368
- package/dist/components/TenantOverview/TenantOverview.js +0 -148
- package/dist/containers/Cluster/Cluster.js +0 -168
- package/dist/containers/Header/Header.js +0 -88
- package/dist/containers/StorageV2/DiskStateProgressBar/DiskStateProgressBar.scss +0 -81
- package/dist/containers/Tenant/Compute/Compute.scss +0 -6
- package/dist/containers/Tenant/Healthcheck/Healthcheck.js +0 -116
- package/dist/containers/Tenant/Healthcheck/Healthcheck.scss +0 -64
- package/dist/containers/Tenant/Schema/Info/Info.js +0 -84
- package/dist/containers/Tenant/Schema/Info/Info.scss +0 -3
- package/dist/containers/Tenant/Schema/SchemaMain/SchemaMain.js +0 -439
- package/dist/containers/Tenant/Schema/SchemaMain/SchemaMain.scss +0 -90
- package/dist/containers/Tenant/Schema/SchemaPages.js +0 -56
- package/dist/containers/Tenant/Tenant.js +0 -199
- package/dist/containers/Tenant/TenantPages.js +0 -35
@@ -1,199 +0,0 @@
|
|
1
|
-
import React from 'react';
|
2
|
-
import PropTypes from 'prop-types';
|
3
|
-
import {connect} from 'react-redux';
|
4
|
-
import {Link} from 'react-router-dom';
|
5
|
-
import cn from 'bem-cn-lite';
|
6
|
-
import qs from 'qs';
|
7
|
-
|
8
|
-
import {Loader, Tabs} from '@yandex-cloud/uikit';
|
9
|
-
|
10
|
-
import TenantOverview from '../../components/TenantOverview/TenantOverview';
|
11
|
-
import Storage from '../StorageV2/Storage';
|
12
|
-
import Compute from '../Tenant/Compute/Compute';
|
13
|
-
import SchemaMain from '../Tenant/Schema/SchemaMain/SchemaMain';
|
14
|
-
import Network from '../Tenant/Network/Network';
|
15
|
-
import EmptyState from '../../components/EmptyState/EmptyState';
|
16
|
-
import {INFO} from './Schema/SchemaPages';
|
17
|
-
import Healthcheck from './Healthcheck/Healthcheck';
|
18
|
-
import {HEALTHCHECK, STORAGE, COMPUTE, SCHEMA, TENANT_PAGES, NETWORK} from './TenantPages';
|
19
|
-
|
20
|
-
import Icon from '../../components/Icon/Icon';
|
21
|
-
|
22
|
-
import {hideTooltip, showTooltip} from '../../store/reducers/tooltip';
|
23
|
-
import {getTenantInfo, clearTenant} from '../../store/reducers/tenant';
|
24
|
-
import routes, {createHref} from '../../routes';
|
25
|
-
|
26
|
-
import './Tenant.scss';
|
27
|
-
|
28
|
-
const b = cn('tenant-page');
|
29
|
-
|
30
|
-
class Tenant extends React.Component {
|
31
|
-
static propTypes = {
|
32
|
-
history: PropTypes.object,
|
33
|
-
name: PropTypes.string,
|
34
|
-
getTenantInfo: PropTypes.func,
|
35
|
-
tenant: PropTypes.object,
|
36
|
-
loading: PropTypes.bool,
|
37
|
-
wasLoaded: PropTypes.bool,
|
38
|
-
error: PropTypes.bool,
|
39
|
-
clearTenant: PropTypes.func,
|
40
|
-
activeTab: PropTypes.string,
|
41
|
-
systemTablets: PropTypes.array,
|
42
|
-
hideTooltip: PropTypes.func,
|
43
|
-
showTooltip: PropTypes.func,
|
44
|
-
tenantName: PropTypes.string,
|
45
|
-
schemaTab: PropTypes.string,
|
46
|
-
additionalTenantInfo: PropTypes.func,
|
47
|
-
additionalNodesInfo: PropTypes.object,
|
48
|
-
getBackend: PropTypes.func,
|
49
|
-
};
|
50
|
-
componentDidMount() {
|
51
|
-
const {tenantName} = this.props;
|
52
|
-
if (tenantName) {
|
53
|
-
this.props.getTenantInfo({path: tenantName});
|
54
|
-
}
|
55
|
-
}
|
56
|
-
renderLoader() {
|
57
|
-
return (
|
58
|
-
<div className={b('loader')}>
|
59
|
-
<Loader size="l" />
|
60
|
-
</div>
|
61
|
-
);
|
62
|
-
}
|
63
|
-
renderTabs() {
|
64
|
-
const {activeTab, tenantName} = this.props;
|
65
|
-
|
66
|
-
const pages = TENANT_PAGES.map((page) => {
|
67
|
-
return {
|
68
|
-
...page,
|
69
|
-
path: createHref(routes.tenant, {page: page.id}, {name: tenantName}),
|
70
|
-
title: (
|
71
|
-
<div className={b('tab-label')}>
|
72
|
-
{page.icon}
|
73
|
-
{page.name}
|
74
|
-
</div>
|
75
|
-
),
|
76
|
-
};
|
77
|
-
});
|
78
|
-
|
79
|
-
return (
|
80
|
-
<div className={b('tabs')}>
|
81
|
-
<Tabs
|
82
|
-
items={pages}
|
83
|
-
activeTab={activeTab}
|
84
|
-
wrapTo={({path, id}, node) => (
|
85
|
-
<Link to={path} key={id} className={b('tab')}>
|
86
|
-
{node}
|
87
|
-
</Link>
|
88
|
-
)}
|
89
|
-
allowNotSelected={true}
|
90
|
-
/>
|
91
|
-
</div>
|
92
|
-
);
|
93
|
-
}
|
94
|
-
renderTabContent() {
|
95
|
-
const {activeTab, tenantName, schemaTab, queryParams, getBackend} = this.props;
|
96
|
-
|
97
|
-
switch (activeTab) {
|
98
|
-
case HEALTHCHECK: {
|
99
|
-
return (
|
100
|
-
<Healthcheck
|
101
|
-
tenant={tenantName}
|
102
|
-
hideTooltip={this.props.hideTooltip}
|
103
|
-
showTooltip={this.props.showTooltip}
|
104
|
-
/>
|
105
|
-
);
|
106
|
-
}
|
107
|
-
case STORAGE: {
|
108
|
-
return (
|
109
|
-
<div className={b('storage')}>
|
110
|
-
<Storage tenant={tenantName} />
|
111
|
-
</div>
|
112
|
-
);
|
113
|
-
}
|
114
|
-
case COMPUTE: {
|
115
|
-
return <Compute additionalNodesInfo={this.props.additionalNodesInfo} />;
|
116
|
-
}
|
117
|
-
case SCHEMA: {
|
118
|
-
return (
|
119
|
-
<SchemaMain
|
120
|
-
activeTab={schemaTab}
|
121
|
-
tenantName={tenantName}
|
122
|
-
tenantActiveTab={activeTab}
|
123
|
-
queryParams={queryParams}
|
124
|
-
getBackend={getBackend}
|
125
|
-
/>
|
126
|
-
);
|
127
|
-
}
|
128
|
-
case NETWORK: {
|
129
|
-
return <Network path={tenantName} />;
|
130
|
-
}
|
131
|
-
default:
|
132
|
-
return false;
|
133
|
-
}
|
134
|
-
}
|
135
|
-
render() {
|
136
|
-
const {tenant, loading, status} = this.props;
|
137
|
-
const {SystemTablets} = tenant;
|
138
|
-
if (status === 403) {
|
139
|
-
return (
|
140
|
-
<EmptyState
|
141
|
-
title="403 Access denied"
|
142
|
-
image={
|
143
|
-
<Icon name="accessDenied" viewBox="0 0 240 240" width={240} height={240} />
|
144
|
-
}
|
145
|
-
/>
|
146
|
-
);
|
147
|
-
}
|
148
|
-
|
149
|
-
return loading ? (
|
150
|
-
this.renderLoader()
|
151
|
-
) : (
|
152
|
-
<div className={b()}>
|
153
|
-
<div className={b('info')}>
|
154
|
-
<TenantOverview
|
155
|
-
systemTablets={SystemTablets}
|
156
|
-
tenant={tenant}
|
157
|
-
hideTooltip={this.props.hideTooltip}
|
158
|
-
showTooltip={this.props.showTooltip}
|
159
|
-
additionalTenantInfo={this.props.additionalTenantInfo}
|
160
|
-
/>
|
161
|
-
{this.renderTabs()}
|
162
|
-
</div>
|
163
|
-
<div className={b('content')}>{this.renderTabContent()}</div>
|
164
|
-
</div>
|
165
|
-
);
|
166
|
-
}
|
167
|
-
}
|
168
|
-
|
169
|
-
const mapStateToProps = (state, ownProps) => {
|
170
|
-
const queryParams = qs.parse(ownProps.location.search, {
|
171
|
-
ignoreQueryPrefix: true,
|
172
|
-
});
|
173
|
-
const {name: tenantName, schemaTab = INFO} = queryParams;
|
174
|
-
|
175
|
-
const {tenant = {}, systemTablets = [], loading, data: {status} = {}} = state.tenant;
|
176
|
-
const {page: activeTab} = ownProps.match.params;
|
177
|
-
const {NodeId: currentBackendId} = state.host.data;
|
178
|
-
|
179
|
-
return {
|
180
|
-
activeTab,
|
181
|
-
tenant,
|
182
|
-
systemTablets,
|
183
|
-
tenantName,
|
184
|
-
loading,
|
185
|
-
schemaTab,
|
186
|
-
currentBackendId,
|
187
|
-
status,
|
188
|
-
queryParams,
|
189
|
-
};
|
190
|
-
};
|
191
|
-
|
192
|
-
const mapDispatchToProps = {
|
193
|
-
getTenantInfo,
|
194
|
-
clearTenant,
|
195
|
-
hideTooltip,
|
196
|
-
showTooltip,
|
197
|
-
};
|
198
|
-
|
199
|
-
export default connect(mapStateToProps, mapDispatchToProps)(Tenant);
|
@@ -1,35 +0,0 @@
|
|
1
|
-
import Icon from '../../components/Icon/Icon';
|
2
|
-
|
3
|
-
export const HEALTHCHECK = 'healthcheck';
|
4
|
-
export const STORAGE = 'storage';
|
5
|
-
export const COMPUTE = 'compute';
|
6
|
-
export const SCHEMA = 'schema';
|
7
|
-
export const NETWORK = 'network';
|
8
|
-
|
9
|
-
export const TENANT_PAGES = [
|
10
|
-
{
|
11
|
-
id: SCHEMA,
|
12
|
-
name: 'Schema',
|
13
|
-
icon: <Icon name="schema" viewBox="0 0 576 512" />,
|
14
|
-
},
|
15
|
-
{
|
16
|
-
id: STORAGE,
|
17
|
-
name: 'Storage',
|
18
|
-
icon: <Icon name="storage" viewBox="0 0 448 512" />,
|
19
|
-
},
|
20
|
-
{
|
21
|
-
id: COMPUTE,
|
22
|
-
name: 'Compute',
|
23
|
-
icon: <Icon name="compute" viewBox="0 0 384 512" />,
|
24
|
-
},
|
25
|
-
{
|
26
|
-
id: NETWORK,
|
27
|
-
name: 'Network',
|
28
|
-
icon: <Icon name="network" viewBox="0 0 640 512" />,
|
29
|
-
},
|
30
|
-
{
|
31
|
-
id: HEALTHCHECK,
|
32
|
-
name: 'Healthcheck',
|
33
|
-
icon: <Icon name="healthcheck" viewBox="0 0 512 512" />,
|
34
|
-
},
|
35
|
-
];
|