Merge branch 'master' into shiyang
This commit is contained in:
commit
da2359f4f6
|
@ -1,4 +1,4 @@
|
||||||
logs/
|
/logs/
|
||||||
npm-debug.log
|
npm-debug.log
|
||||||
yarn-error.log
|
yarn-error.log
|
||||||
node_modules
|
node_modules
|
||||||
|
@ -19,4 +19,4 @@ docker/.node_modules/*
|
||||||
.vscode/
|
.vscode/
|
||||||
.umi*
|
.umi*
|
||||||
|
|
||||||
data
|
/data
|
|
@ -19,7 +19,6 @@
|
||||||
window.routerBase = '/';
|
window.routerBase = '/';
|
||||||
window.resourceBaseUrl = '{{ helper.assets.resourceBase }}';
|
window.resourceBaseUrl = '{{ helper.assets.resourceBase }}';
|
||||||
</script>
|
</script>
|
||||||
<script src="https://gw.alipayobjects.com/os/antv/pkg/_antv.data-set-0.9.6/dist/data-set.min.js"></script>
|
|
||||||
{% if ctx.app.config.env === 'local' -%}
|
{% if ctx.app.config.env === 'local' -%}
|
||||||
{{ helper.assets.getScript('umi.dll.js') | safe }}
|
{{ helper.assets.getScript('umi.dll.js') | safe }}
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
|
|
|
@ -17,15 +17,6 @@ export default [
|
||||||
Routes: ['src/pages/Authorized'],
|
Routes: ['src/pages/Authorized'],
|
||||||
authority: ['admin', 'user'],
|
authority: ['admin', 'user'],
|
||||||
routes: [
|
routes: [
|
||||||
|
|
||||||
//测试专用
|
|
||||||
{
|
|
||||||
path: '/test',
|
|
||||||
name: 'test',
|
|
||||||
icon: 'AppstoreAdd',
|
|
||||||
component: './Endpoints/Execute',
|
|
||||||
},
|
|
||||||
|
|
||||||
// dashboard
|
// dashboard
|
||||||
{ path: '/', redirect: '/platform' },
|
{ path: '/', redirect: '/platform' },
|
||||||
{
|
{
|
||||||
|
@ -58,7 +49,7 @@ export default [
|
||||||
path: '/logs',
|
path: '/logs',
|
||||||
name: 'logs',
|
name: 'logs',
|
||||||
icon: 'search',
|
icon: 'search',
|
||||||
component: './List/TableList',
|
component: './Logs/Overview',
|
||||||
},
|
},
|
||||||
|
|
||||||
//alertings
|
//alertings
|
||||||
|
|
Binary file not shown.
After Width: | Height: | Size: 66 KiB |
Before Width: | Height: | Size: 90 KiB After Width: | Height: | Size: 90 KiB |
File diff suppressed because it is too large
Load Diff
After Width: | Height: | Size: 91 KiB |
|
@ -21,7 +21,7 @@
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
vertical-align: middle;
|
vertical-align: middle;
|
||||||
font-size: 20px;
|
font-size: 20px;
|
||||||
margin: 0 0 0 12px;
|
margin: 3px 0 0 12px;
|
||||||
font-family: 'Myriad Pro', 'Helvetica Neue', Arial, Helvetica, sans-serif;
|
font-family: 'Myriad Pro', 'Helvetica Neue', Arial, Helvetica, sans-serif;
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
}
|
}
|
||||||
|
|
|
@ -51,7 +51,7 @@
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
vertical-align: top;
|
vertical-align: top;
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
margin: 0 0 0 12px;
|
margin: 2px 0 0 12px;
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
padding-right: 15px;
|
padding-right: 15px;
|
||||||
}
|
}
|
||||||
|
|
|
@ -12,7 +12,7 @@ import { formatMessage } from 'umi/locale';
|
||||||
import SiderMenu from '@/components/SiderMenu';
|
import SiderMenu from '@/components/SiderMenu';
|
||||||
import Authorized from '@/utils/Authorized';
|
import Authorized from '@/utils/Authorized';
|
||||||
import SettingDrawer from '@/components/SettingDrawer';
|
import SettingDrawer from '@/components/SettingDrawer';
|
||||||
import logo from '../assets/logo.svg';
|
import logo from '../assets/logo-color.svg';
|
||||||
import Footer from './Footer';
|
import Footer from './Footer';
|
||||||
import Header from './Header';
|
import Header from './Header';
|
||||||
import Context from './MenuContext';
|
import Context from './MenuContext';
|
||||||
|
|
|
@ -5,7 +5,7 @@ import { Icon } from 'antd';
|
||||||
import GlobalFooter from '@/components/GlobalFooter';
|
import GlobalFooter from '@/components/GlobalFooter';
|
||||||
import SelectLang from '@/components/SelectLang';
|
import SelectLang from '@/components/SelectLang';
|
||||||
import styles from './UserLayout.less';
|
import styles from './UserLayout.less';
|
||||||
import logo from '../assets/logo.svg';
|
import logo from '../assets/logo-color.svg';
|
||||||
|
|
||||||
const links = [
|
const links = [
|
||||||
{
|
{
|
||||||
|
|
|
@ -41,7 +41,6 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.header {
|
.header {
|
||||||
height: 44px;
|
|
||||||
line-height: 44px;
|
line-height: 44px;
|
||||||
a {
|
a {
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
|
@ -60,7 +59,7 @@
|
||||||
font-family: 'Myriad Pro', 'Helvetica Neue', Arial, Helvetica, sans-serif;
|
font-family: 'Myriad Pro', 'Helvetica Neue', Arial, Helvetica, sans-serif;
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
position: relative;
|
position: relative;
|
||||||
top: 2px;
|
top: 5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.desc {
|
.desc {
|
||||||
|
|
|
@ -0,0 +1,14 @@
|
||||||
|
import React from 'react';
|
||||||
|
import { formatMessage } from 'umi/locale';
|
||||||
|
import Link from 'umi/link';
|
||||||
|
import Exception from '@/components/Exception';
|
||||||
|
|
||||||
|
|
||||||
|
export default ()=>(
|
||||||
|
<Exception
|
||||||
|
type="403"
|
||||||
|
desc={formatMessage({ id: 'app.exception.description.403' })}
|
||||||
|
linkElement={Link}
|
||||||
|
backText={formatMessage({ id: 'app.exception.back' })}
|
||||||
|
/>
|
||||||
|
);
|
|
@ -81,10 +81,10 @@ class LoginPage extends Component {
|
||||||
login.type === 'account' &&
|
login.type === 'account' &&
|
||||||
!submitting &&
|
!submitting &&
|
||||||
this.renderMessage(formatMessage({ id: 'app.login.message-invalid-credentials' }))}
|
this.renderMessage(formatMessage({ id: 'app.login.message-invalid-credentials' }))}
|
||||||
<UserName name="userName" placeholder="admin/user" />
|
<UserName name="userName" placeholder="username" />
|
||||||
<Password
|
<Password
|
||||||
name="password"
|
name="password"
|
||||||
placeholder="888888/123456"
|
placeholder="password"
|
||||||
onPressEnter={() => this.loginForm.validateFields(this.handleSubmit)}
|
onPressEnter={() => this.loginForm.validateFields(this.handleSubmit)}
|
||||||
/>
|
/>
|
||||||
</Tab>
|
</Tab>
|
||||||
|
|
Loading…
Reference in New Issue