|
@@ -17,20 +17,20 @@ import { observer } from 'mobx-react'
|
|
|
import styled from 'styled-components'
|
|
import styled from 'styled-components'
|
|
|
import autobind from 'autobind-decorator'
|
|
import autobind from 'autobind-decorator'
|
|
|
|
|
|
|
|
-import InfoCountModule from './modules/InfoCountModule'
|
|
|
|
|
-import LicenceModule from './modules/LicenceModule'
|
|
|
|
|
-import ActivityModule from './modules/ActivityModule'
|
|
|
|
|
-import TopEndpointsModule from './modules/TopEndpointsModule'
|
|
|
|
|
-import ExecutionsModule from './modules/ExecutionsModule'
|
|
|
|
|
|
|
+import DashboardInfoCount from '../DashboardInfoCount/DashboardInfoCount'
|
|
|
|
|
+import DashboardLicence from '../DashboardLicence/DashboardLicence'
|
|
|
|
|
+import DashboardActivity from '../DashboardActivity/DashboardActivity'
|
|
|
|
|
+import DashboardTopEndpoints from '../DashboardTopEndpoints/DashboardTopEndpoints'
|
|
|
|
|
+import DashboardExecutions from '../DashboardExecutions/DashboardExecutions'
|
|
|
|
|
|
|
|
-import Palette from '../../styleUtils/Palette'
|
|
|
|
|
|
|
+import Palette from '../../../styleUtils/Palette'
|
|
|
|
|
|
|
|
-import type { Endpoint } from '../../../@types/Endpoint'
|
|
|
|
|
-import type { Project } from '../../../@types/Project'
|
|
|
|
|
-import type { User } from '../../../@types/User'
|
|
|
|
|
-import type { Licence, LicenceServerStatus } from '../../../@types/Licence'
|
|
|
|
|
-import type { NotificationItemData } from '../../../@types/NotificationItem'
|
|
|
|
|
-import { ReplicaItem, MigrationItem } from '../../../@types/MainItem'
|
|
|
|
|
|
|
+import type { Endpoint } from '../../../../@types/Endpoint'
|
|
|
|
|
+import type { Project } from '../../../../@types/Project'
|
|
|
|
|
+import type { User } from '../../../../@types/User'
|
|
|
|
|
+import type { Licence, LicenceServerStatus } from '../../../../@types/Licence'
|
|
|
|
|
+import type { NotificationItemData } from '../../../../@types/NotificationItem'
|
|
|
|
|
+import { ReplicaItem, MigrationItem } from '../../../../@types/MainItem'
|
|
|
|
|
|
|
|
const MIDDLE_WIDTHS = ['264px', '264px', '450px']
|
|
const MIDDLE_WIDTHS = ['264px', '264px', '450px']
|
|
|
|
|
|
|
@@ -109,7 +109,7 @@ class DashboardContent extends React.Component<Props, State> {
|
|
|
|
|
|
|
|
renderMiddleModules() {
|
|
renderMiddleModules() {
|
|
|
const modules = [
|
|
const modules = [
|
|
|
- <ActivityModule
|
|
|
|
|
|
|
+ <DashboardActivity
|
|
|
large={this.state.useMobileLayout || this.state.useLargeActivity}
|
|
large={this.state.useMobileLayout || this.state.useLargeActivity}
|
|
|
notificationItems={this.props.notificationItems}
|
|
notificationItems={this.props.notificationItems}
|
|
|
loading={this.props.notificationItemsLoading}
|
|
loading={this.props.notificationItemsLoading}
|
|
@@ -119,7 +119,7 @@ class DashboardContent extends React.Component<Props, State> {
|
|
|
}}
|
|
}}
|
|
|
onNewClick={this.props.onNewReplicaClick}
|
|
onNewClick={this.props.onNewReplicaClick}
|
|
|
/>,
|
|
/>,
|
|
|
- <TopEndpointsModule
|
|
|
|
|
|
|
+ <DashboardTopEndpoints
|
|
|
replicas={this.props.replicas}
|
|
replicas={this.props.replicas}
|
|
|
migrations={this.props.migrations}
|
|
migrations={this.props.migrations}
|
|
|
endpoints={this.props.endpoints}
|
|
endpoints={this.props.endpoints}
|
|
@@ -131,7 +131,7 @@ class DashboardContent extends React.Component<Props, State> {
|
|
|
}}
|
|
}}
|
|
|
onNewClick={this.props.onNewEndpointClick}
|
|
onNewClick={this.props.onNewEndpointClick}
|
|
|
/>,
|
|
/>,
|
|
|
- <LicenceModule
|
|
|
|
|
|
|
+ <DashboardLicence
|
|
|
licence={this.props.licence}
|
|
licence={this.props.licence}
|
|
|
loading={this.props.licenceLoading}
|
|
loading={this.props.licenceLoading}
|
|
|
licenceServerStatus={this.props.licenceServerStatus}
|
|
licenceServerStatus={this.props.licenceServerStatus}
|
|
@@ -211,11 +211,11 @@ class DashboardContent extends React.Component<Props, State> {
|
|
|
|
|
|
|
|
return (
|
|
return (
|
|
|
<Wrapper>
|
|
<Wrapper>
|
|
|
- <InfoCountModule
|
|
|
|
|
|
|
+ <DashboardInfoCount
|
|
|
data={infoCountData}
|
|
data={infoCountData}
|
|
|
/>
|
|
/>
|
|
|
{this.renderMiddleModules()}
|
|
{this.renderMiddleModules()}
|
|
|
- <ExecutionsModule
|
|
|
|
|
|
|
+ <DashboardExecutions
|
|
|
replicas={this.props.replicas}
|
|
replicas={this.props.replicas}
|
|
|
migrations={this.props.migrations}
|
|
migrations={this.props.migrations}
|
|
|
loading={this.props.replicasLoading || this.props.migrationsLoading}
|
|
loading={this.props.replicasLoading || this.props.migrationsLoading}
|