|
|
@ -17,7 +17,18 @@
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
import React from 'react';
|
|
|
|
import React from 'react';
|
|
|
|
import { Layout, Menu, Icon, Drawer, Button } from 'antd';
|
|
|
|
|
|
|
|
|
|
|
|
import {
|
|
|
|
|
|
|
|
AndroidFilled,
|
|
|
|
|
|
|
|
AppstoreOutlined,
|
|
|
|
|
|
|
|
ControlOutlined,
|
|
|
|
|
|
|
|
PlusOutlined,
|
|
|
|
|
|
|
|
SettingOutlined,
|
|
|
|
|
|
|
|
UserOutlined,
|
|
|
|
|
|
|
|
} from '@ant-design/icons';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import { Icon as LegacyIcon } from '@ant-design/compatible';
|
|
|
|
|
|
|
|
import { Layout, Menu, Drawer, Button } from 'antd';
|
|
|
|
import { Switch, Link } from 'react-router-dom';
|
|
|
|
import { Switch, Link } from 'react-router-dom';
|
|
|
|
import RouteWithSubRoutes from '../../components/RouteWithSubRoutes';
|
|
|
|
import RouteWithSubRoutes from '../../components/RouteWithSubRoutes';
|
|
|
|
import { Redirect } from 'react-router';
|
|
|
|
import { Redirect } from 'react-router';
|
|
|
@ -81,7 +92,7 @@ class Dashboard extends React.Component {
|
|
|
|
>
|
|
|
|
>
|
|
|
|
<Menu.Item key="1">
|
|
|
|
<Menu.Item key="1">
|
|
|
|
<Link to="/publisher/apps">
|
|
|
|
<Link to="/publisher/apps">
|
|
|
|
<Icon type="appstore" />
|
|
|
|
<AppstoreOutlined />
|
|
|
|
Apps
|
|
|
|
Apps
|
|
|
|
</Link>
|
|
|
|
</Link>
|
|
|
|
</Menu.Item>
|
|
|
|
</Menu.Item>
|
|
|
@ -92,7 +103,7 @@ class Dashboard extends React.Component {
|
|
|
|
<SubMenu
|
|
|
|
<SubMenu
|
|
|
|
title={
|
|
|
|
title={
|
|
|
|
<span className="submenu-title-wrapper">
|
|
|
|
<span className="submenu-title-wrapper">
|
|
|
|
<Icon type="plus" />
|
|
|
|
<PlusOutlined />
|
|
|
|
Add New App
|
|
|
|
Add New App
|
|
|
|
</span>
|
|
|
|
</span>
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -118,21 +129,20 @@ class Dashboard extends React.Component {
|
|
|
|
<SubMenu
|
|
|
|
<SubMenu
|
|
|
|
title={
|
|
|
|
title={
|
|
|
|
<span className="submenu-title-wrapper">
|
|
|
|
<span className="submenu-title-wrapper">
|
|
|
|
<Icon type="control" />
|
|
|
|
<ControlOutlined />
|
|
|
|
Manage
|
|
|
|
Manage
|
|
|
|
</span>
|
|
|
|
</span>
|
|
|
|
}
|
|
|
|
}
|
|
|
|
>
|
|
|
|
>
|
|
|
|
<Menu.Item key="manage">
|
|
|
|
<Menu.Item key="manage">
|
|
|
|
<Link to="/publisher/manage">
|
|
|
|
<Link to="/publisher/manage">
|
|
|
|
<Icon type="setting" /> General
|
|
|
|
<SettingOutlined /> General
|
|
|
|
</Link>
|
|
|
|
</Link>
|
|
|
|
</Menu.Item>
|
|
|
|
</Menu.Item>
|
|
|
|
{this.config.androidEnterpriseToken != null && (
|
|
|
|
{this.config.androidEnterpriseToken != null && (
|
|
|
|
<Menu.Item key="manage-android-enterprise">
|
|
|
|
<Menu.Item key="manage-android-enterprise">
|
|
|
|
<Link to="/publisher/manage/android-enterprise">
|
|
|
|
<Link to="/publisher/manage/android-enterprise">
|
|
|
|
<Icon type="android" theme="filled" /> Android
|
|
|
|
<AndroidFilled /> Android Enterprise
|
|
|
|
Enterprise
|
|
|
|
|
|
|
|
</Link>
|
|
|
|
</Link>
|
|
|
|
</Menu.Item>
|
|
|
|
</Menu.Item>
|
|
|
|
)}
|
|
|
|
)}
|
|
|
@ -142,7 +152,7 @@ class Dashboard extends React.Component {
|
|
|
|
className="profile"
|
|
|
|
className="profile"
|
|
|
|
title={
|
|
|
|
title={
|
|
|
|
<span className="submenu-title-wrapper">
|
|
|
|
<span className="submenu-title-wrapper">
|
|
|
|
<Icon type="user" />
|
|
|
|
<UserOutlined />
|
|
|
|
{this.config.username}
|
|
|
|
{this.config.username}
|
|
|
|
</span>
|
|
|
|
</span>
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -157,7 +167,7 @@ class Dashboard extends React.Component {
|
|
|
|
<Layout className="mobile-layout">
|
|
|
|
<Layout className="mobile-layout">
|
|
|
|
<div className="mobile-menu-button">
|
|
|
|
<div className="mobile-menu-button">
|
|
|
|
<Button type="link" onClick={this.showMobileNavigationBar}>
|
|
|
|
<Button type="link" onClick={this.showMobileNavigationBar}>
|
|
|
|
<Icon
|
|
|
|
<LegacyIcon
|
|
|
|
type={this.state.collapsed ? 'menu-fold' : 'menu-unfold'}
|
|
|
|
type={this.state.collapsed ? 'menu-fold' : 'menu-unfold'}
|
|
|
|
className="bar-icon"
|
|
|
|
className="bar-icon"
|
|
|
|
/>
|
|
|
|
/>
|
|
|
@ -194,14 +204,14 @@ class Dashboard extends React.Component {
|
|
|
|
>
|
|
|
|
>
|
|
|
|
<Menu.Item key="1">
|
|
|
|
<Menu.Item key="1">
|
|
|
|
<Link to="/publisher/apps">
|
|
|
|
<Link to="/publisher/apps">
|
|
|
|
<Icon type="appstore" />
|
|
|
|
<AppstoreOutlined />
|
|
|
|
Apps
|
|
|
|
Apps
|
|
|
|
</Link>
|
|
|
|
</Link>
|
|
|
|
</Menu.Item>
|
|
|
|
</Menu.Item>
|
|
|
|
<SubMenu
|
|
|
|
<SubMenu
|
|
|
|
title={
|
|
|
|
title={
|
|
|
|
<span className="submenu-title-wrapper">
|
|
|
|
<span className="submenu-title-wrapper">
|
|
|
|
<Icon type="plus" />
|
|
|
|
<PlusOutlined />
|
|
|
|
Add New App
|
|
|
|
Add New App
|
|
|
|
</span>
|
|
|
|
</span>
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -223,7 +233,7 @@ class Dashboard extends React.Component {
|
|
|
|
</SubMenu>
|
|
|
|
</SubMenu>
|
|
|
|
<Menu.Item key="2">
|
|
|
|
<Menu.Item key="2">
|
|
|
|
<Link to="/publisher/manage">
|
|
|
|
<Link to="/publisher/manage">
|
|
|
|
<Icon type="control" />
|
|
|
|
<ControlOutlined />
|
|
|
|
Manage
|
|
|
|
Manage
|
|
|
|
</Link>
|
|
|
|
</Link>
|
|
|
|
</Menu.Item>
|
|
|
|
</Menu.Item>
|
|
|
@ -238,7 +248,7 @@ class Dashboard extends React.Component {
|
|
|
|
<SubMenu
|
|
|
|
<SubMenu
|
|
|
|
title={
|
|
|
|
title={
|
|
|
|
<span className="submenu-title-wrapper">
|
|
|
|
<span className="submenu-title-wrapper">
|
|
|
|
<Icon type="user" />
|
|
|
|
<UserOutlined />
|
|
|
|
</span>
|
|
|
|
</span>
|
|
|
|
}
|
|
|
|
}
|
|
|
|
>
|
|
|
|
>
|
|
|
|