|
|
@ -32,17 +32,13 @@ class Dashboard extends React.Component {
|
|
|
|
constructor(props) {
|
|
|
|
constructor(props) {
|
|
|
|
super(props);
|
|
|
|
super(props);
|
|
|
|
this.state = {
|
|
|
|
this.state = {
|
|
|
|
routes: props.routes
|
|
|
|
routes: props.routes,
|
|
|
|
};
|
|
|
|
|
|
|
|
const config = this.props.context;
|
|
|
|
|
|
|
|
this.Logo = config.theme.logo;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//functions for show the drawer
|
|
|
|
|
|
|
|
state = {
|
|
|
|
|
|
|
|
visible: false,
|
|
|
|
visible: false,
|
|
|
|
collapsed: false
|
|
|
|
collapsed: false
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
this.config = this.props.context;
|
|
|
|
|
|
|
|
this.Logo = this.config.theme.logo;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
showDrawer = () => {
|
|
|
|
showDrawer = () => {
|
|
|
|
this.setState({
|
|
|
|
this.setState({
|
|
|
@ -67,43 +63,61 @@ class Dashboard extends React.Component {
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<div className="web-layout">
|
|
|
|
<div className="web-layout">
|
|
|
|
|
|
|
|
|
|
|
|
<Menu
|
|
|
|
<Menu
|
|
|
|
theme="light"
|
|
|
|
theme="light"
|
|
|
|
mode="horizontal"
|
|
|
|
mode="horizontal"
|
|
|
|
defaultSelectedKeys={['1']}
|
|
|
|
defaultSelectedKeys={['1']}
|
|
|
|
style={{lineHeight: '64px'}}
|
|
|
|
style={{lineHeight: '64px'}}>
|
|
|
|
>
|
|
|
|
|
|
|
|
<Menu.Item key="1"><Link to="/publisher/apps"><Icon
|
|
|
|
<Menu.Item key="1"><Link to="/publisher/apps"><Icon
|
|
|
|
type="appstore"/>Apps</Link></Menu.Item>
|
|
|
|
type="appstore"/>Apps</Link></Menu.Item>
|
|
|
|
|
|
|
|
|
|
|
|
<SubMenu
|
|
|
|
<SubMenu
|
|
|
|
title={
|
|
|
|
title={
|
|
|
|
<span className="submenu-title-wrapper">
|
|
|
|
<span className="submenu-title-wrapper">
|
|
|
|
<Icon type="plus"/>
|
|
|
|
<Icon type="plus"/>
|
|
|
|
Add New App
|
|
|
|
Add New App
|
|
|
|
</span>
|
|
|
|
</span>
|
|
|
|
}
|
|
|
|
}>
|
|
|
|
>
|
|
|
|
<Menu.Item key="setting:1">
|
|
|
|
<Menu.Item key="setting:1"><Link to="/publisher/add-new-app/public">Public
|
|
|
|
<Link to="/publisher/add-new-app/public">Public APP</Link>
|
|
|
|
APP</Link></Menu.Item>
|
|
|
|
</Menu.Item>
|
|
|
|
<Menu.Item key="setting:2"><Link to="/publisher/add-new-app/enterprise">Enterprise
|
|
|
|
<Menu.Item key="setting:2">
|
|
|
|
APP</Link></Menu.Item>
|
|
|
|
<Link to="/publisher/add-new-app/enterprise">Enterprise APP</Link>
|
|
|
|
<Menu.Item key="setting:3"><Link to="/publisher/add-new-app/web-clip">Web
|
|
|
|
</Menu.Item>
|
|
|
|
Clip</Link></Menu.Item>
|
|
|
|
<Menu.Item key="setting:3">
|
|
|
|
<Menu.Item key="setting:3"><Link to="/publisher/add-new-app/custom-app">Custom
|
|
|
|
<Link to="/publisher/add-new-app/web-clip">Web Clip</Link>
|
|
|
|
App</Link></Menu.Item>
|
|
|
|
</Menu.Item>
|
|
|
|
|
|
|
|
<Menu.Item key="setting:4">
|
|
|
|
|
|
|
|
<Link to="/publisher/add-new-app/custom-app">Custom App</Link>
|
|
|
|
|
|
|
|
</Menu.Item>
|
|
|
|
|
|
|
|
</SubMenu>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<SubMenu
|
|
|
|
|
|
|
|
title={
|
|
|
|
|
|
|
|
<span className="submenu-title-wrapper">
|
|
|
|
|
|
|
|
<Icon type="control"/>Manage
|
|
|
|
|
|
|
|
</span>
|
|
|
|
|
|
|
|
}>
|
|
|
|
|
|
|
|
<Menu.Item key="manage">
|
|
|
|
|
|
|
|
<Link to="/publisher/manage">
|
|
|
|
|
|
|
|
<Icon type="setting"/> General
|
|
|
|
|
|
|
|
</Link>
|
|
|
|
|
|
|
|
</Menu.Item>
|
|
|
|
|
|
|
|
{this.config.androidEnterpriseToken != null && (
|
|
|
|
|
|
|
|
<Menu.Item key="manage-android-enterprise">
|
|
|
|
|
|
|
|
<Link to="/publisher/manage/android-enterprise">
|
|
|
|
|
|
|
|
<Icon type="android" theme="filled"/> Android Enterprise
|
|
|
|
|
|
|
|
</Link>
|
|
|
|
|
|
|
|
</Menu.Item>
|
|
|
|
|
|
|
|
)}
|
|
|
|
</SubMenu>
|
|
|
|
</SubMenu>
|
|
|
|
<Menu.Item key="2"><Link to="/publisher/manage"><Icon
|
|
|
|
|
|
|
|
type="control"/>Manage</Link></Menu.Item>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<SubMenu className="profile"
|
|
|
|
<SubMenu className="profile"
|
|
|
|
title={
|
|
|
|
title={
|
|
|
|
<span className="submenu-title-wrapper">
|
|
|
|
<span className="submenu-title-wrapper">
|
|
|
|
<Icon type="user"/>
|
|
|
|
<Icon type="user"/>Profile
|
|
|
|
Profile
|
|
|
|
|
|
|
|
</span>
|
|
|
|
</span>
|
|
|
|
}
|
|
|
|
}>
|
|
|
|
>
|
|
|
|
|
|
|
|
<Logout/>
|
|
|
|
<Logout/>
|
|
|
|
</SubMenu>
|
|
|
|
</SubMenu>
|
|
|
|
</Menu>
|
|
|
|
</Menu>
|
|
|
@ -118,56 +132,63 @@ class Dashboard extends React.Component {
|
|
|
|
</Button>
|
|
|
|
</Button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<Drawer
|
|
|
|
<Drawer
|
|
|
|
title={<Link to="/publisher/apps"><img alt="logo" src={this.Logo} style={{marginLeft: 30}}
|
|
|
|
title={
|
|
|
|
width={"60%"}/></Link>}
|
|
|
|
<Link to="/publisher/apps">
|
|
|
|
|
|
|
|
<img alt="logo"
|
|
|
|
|
|
|
|
src={this.Logo}
|
|
|
|
|
|
|
|
style={{marginLeft: 30}}
|
|
|
|
|
|
|
|
width={"60%"}/>
|
|
|
|
|
|
|
|
</Link>
|
|
|
|
|
|
|
|
}
|
|
|
|
placement="left"
|
|
|
|
placement="left"
|
|
|
|
closable={false}
|
|
|
|
closable={false}
|
|
|
|
onClose={this.onClose}
|
|
|
|
onClose={this.onClose}
|
|
|
|
visible={this.state.visible}
|
|
|
|
visible={this.state.visible}
|
|
|
|
getContainer={false}
|
|
|
|
getContainer={false}
|
|
|
|
style={{position: 'absolute'}}
|
|
|
|
style={{position: 'absolute'}}>
|
|
|
|
>
|
|
|
|
|
|
|
|
<Menu
|
|
|
|
<Menu
|
|
|
|
theme="light"
|
|
|
|
theme="light"
|
|
|
|
mode="inline"
|
|
|
|
mode="inline"
|
|
|
|
defaultSelectedKeys={['1']}
|
|
|
|
defaultSelectedKeys={['1']}
|
|
|
|
style={{lineHeight: '64px', width: 231}}
|
|
|
|
style={{lineHeight: '64px', width: 231}}>
|
|
|
|
>
|
|
|
|
|
|
|
|
<Menu.Item key="1"><Link to="/publisher/apps"><Icon
|
|
|
|
<Menu.Item key="1"><Link to="/publisher/apps"><Icon
|
|
|
|
type="appstore"/>Apps</Link></Menu.Item>
|
|
|
|
type="appstore"/>Apps</Link></Menu.Item>
|
|
|
|
<SubMenu
|
|
|
|
<SubMenu
|
|
|
|
title={
|
|
|
|
title={
|
|
|
|
<span className="submenu-title-wrapper">
|
|
|
|
<span className="submenu-title-wrapper">
|
|
|
|
<Icon type="plus"/>
|
|
|
|
<Icon type="plus"/>Add New App
|
|
|
|
Add New App
|
|
|
|
|
|
|
|
</span>
|
|
|
|
</span>
|
|
|
|
}
|
|
|
|
}>
|
|
|
|
>
|
|
|
|
<Menu.Item key="setting:1">
|
|
|
|
<Menu.Item key="setting:1"><Link to="/publisher/add-new-app/public">Public
|
|
|
|
<Link to="/publisher/add-new-app/public">Public APP</Link>
|
|
|
|
APP</Link></Menu.Item>
|
|
|
|
</Menu.Item>
|
|
|
|
<Menu.Item key="setting:2"><Link to="/publisher/add-new-app/enterprise">Enterprise
|
|
|
|
<Menu.Item key="setting:2">
|
|
|
|
APP</Link></Menu.Item>
|
|
|
|
<Link to="/publisher/add-new-app/enterprise">Enterprise APP</Link>
|
|
|
|
<Menu.Item key="setting:3"><Link to="/publisher/add-new-app/web-clip">Web
|
|
|
|
</Menu.Item>
|
|
|
|
Clip</Link></Menu.Item>
|
|
|
|
<Menu.Item key="setting:3">
|
|
|
|
<Menu.Item key="setting:4"><Link to="/publisher/add-new-app/custom-app">Custom
|
|
|
|
<Link to="/publisher/add-new-app/web-clip">Web Clip</Link>
|
|
|
|
App</Link></Menu.Item>
|
|
|
|
</Menu.Item>
|
|
|
|
|
|
|
|
<Menu.Item key="setting:4">
|
|
|
|
|
|
|
|
<Link to="/publisher/add-new-app/custom-app">Custom App</Link>
|
|
|
|
|
|
|
|
</Menu.Item>
|
|
|
|
</SubMenu>
|
|
|
|
</SubMenu>
|
|
|
|
<Menu.Item key="2"><Link to="/publisher/manage"><Icon
|
|
|
|
<Menu.Item key="2">
|
|
|
|
type="control"/>Manage</Link></Menu.Item>
|
|
|
|
<Link to="/publisher/manage">
|
|
|
|
|
|
|
|
<Icon type="control"/>Manage
|
|
|
|
|
|
|
|
</Link>
|
|
|
|
|
|
|
|
</Menu.Item>
|
|
|
|
</Menu>
|
|
|
|
</Menu>
|
|
|
|
</Drawer>
|
|
|
|
</Drawer>
|
|
|
|
<Menu
|
|
|
|
<Menu
|
|
|
|
mode="horizontal"
|
|
|
|
mode="horizontal"
|
|
|
|
defaultSelectedKeys={['1']}
|
|
|
|
defaultSelectedKeys={['1']}
|
|
|
|
style={{lineHeight: '63px', position: 'fixed', marginLeft: '80%'}}
|
|
|
|
style={{lineHeight: '63px', position: 'fixed', marginLeft: '80%'}}>
|
|
|
|
>
|
|
|
|
|
|
|
|
<SubMenu
|
|
|
|
<SubMenu
|
|
|
|
title={
|
|
|
|
title={
|
|
|
|
<span className="submenu-title-wrapper">
|
|
|
|
<span className="submenu-title-wrapper">
|
|
|
|
<Icon type="user"/>
|
|
|
|
<Icon type="user"/>
|
|
|
|
</span>
|
|
|
|
</span>
|
|
|
|
}
|
|
|
|
}>
|
|
|
|
>
|
|
|
|
|
|
|
|
<Logout/>
|
|
|
|
<Logout/>
|
|
|
|
</SubMenu>
|
|
|
|
</SubMenu>
|
|
|
|
</Menu>
|
|
|
|
</Menu>
|
|
|
|