fix dev refresh issue
This commit is contained in:
parent
180d6157c0
commit
2bc68ba1f6
|
@ -41,221 +41,221 @@ export default [
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
// forms
|
// // forms
|
||||||
{
|
// {
|
||||||
path: '/form',
|
// path: '/form',
|
||||||
icon: 'form',
|
// icon: 'form',
|
||||||
name: 'form',
|
// name: 'form',
|
||||||
routes: [
|
// routes: [
|
||||||
{
|
// {
|
||||||
path: '/form/basic-form',
|
// path: '/form/basic-form',
|
||||||
name: 'basicform',
|
// name: 'basicform',
|
||||||
component: './Forms/BasicForm',
|
// component: './Forms/BasicForm',
|
||||||
},
|
// },
|
||||||
{
|
// {
|
||||||
path: '/form/step-form',
|
// path: '/form/step-form',
|
||||||
name: 'stepform',
|
// name: 'stepform',
|
||||||
component: './Forms/StepForm',
|
// component: './Forms/StepForm',
|
||||||
hideChildrenInMenu: true,
|
// hideChildrenInMenu: true,
|
||||||
routes: [
|
// routes: [
|
||||||
{
|
// {
|
||||||
path: '/form/step-form',
|
// path: '/form/step-form',
|
||||||
name: 'stepform',
|
// name: 'stepform',
|
||||||
redirect: '/form/step-form/info',
|
// redirect: '/form/step-form/info',
|
||||||
},
|
// },
|
||||||
{
|
// {
|
||||||
path: '/form/step-form/info',
|
// path: '/form/step-form/info',
|
||||||
name: 'info',
|
// name: 'info',
|
||||||
component: './Forms/StepForm/Step1',
|
// component: './Forms/StepForm/Step1',
|
||||||
},
|
// },
|
||||||
{
|
// {
|
||||||
path: '/form/step-form/confirm',
|
// path: '/form/step-form/confirm',
|
||||||
name: 'confirm',
|
// name: 'confirm',
|
||||||
component: './Forms/StepForm/Step2',
|
// component: './Forms/StepForm/Step2',
|
||||||
},
|
// },
|
||||||
{
|
// {
|
||||||
path: '/form/step-form/result',
|
// path: '/form/step-form/result',
|
||||||
name: 'result',
|
// name: 'result',
|
||||||
component: './Forms/StepForm/Step3',
|
// component: './Forms/StepForm/Step3',
|
||||||
},
|
// },
|
||||||
],
|
// ],
|
||||||
},
|
// },
|
||||||
{
|
// {
|
||||||
path: '/form/advanced-form',
|
// path: '/form/advanced-form',
|
||||||
name: 'advancedform',
|
// name: 'advancedform',
|
||||||
authority: ['admin'],
|
// authority: ['admin'],
|
||||||
component: './Forms/AdvancedForm',
|
// component: './Forms/AdvancedForm',
|
||||||
},
|
// },
|
||||||
],
|
// ],
|
||||||
},
|
// },
|
||||||
// list
|
// // list
|
||||||
{
|
// {
|
||||||
path: '/list',
|
// path: '/list',
|
||||||
icon: 'table',
|
// icon: 'table',
|
||||||
name: 'list',
|
// name: 'list',
|
||||||
routes: [
|
// routes: [
|
||||||
{
|
// {
|
||||||
path: '/list/table-list',
|
// path: '/list/table-list',
|
||||||
name: 'searchtable',
|
// name: 'searchtable',
|
||||||
component: './List/TableList',
|
// component: './List/TableList',
|
||||||
},
|
// },
|
||||||
{
|
// {
|
||||||
path: '/list/basic-list',
|
// path: '/list/basic-list',
|
||||||
name: 'basiclist',
|
// name: 'basiclist',
|
||||||
component: './List/BasicList',
|
// component: './List/BasicList',
|
||||||
},
|
// },
|
||||||
{
|
// {
|
||||||
path: '/list/card-list',
|
// path: '/list/card-list',
|
||||||
name: 'cardlist',
|
// name: 'cardlist',
|
||||||
component: './List/CardList',
|
// component: './List/CardList',
|
||||||
},
|
// },
|
||||||
{
|
// {
|
||||||
path: '/list/search',
|
// path: '/list/search',
|
||||||
name: 'searchlist',
|
// name: 'searchlist',
|
||||||
component: './List/List',
|
// component: './List/List',
|
||||||
routes: [
|
// routes: [
|
||||||
{
|
// {
|
||||||
path: '/list/search',
|
// path: '/list/search',
|
||||||
redirect: '/list/search/articles',
|
// redirect: '/list/search/articles',
|
||||||
},
|
// },
|
||||||
{
|
// {
|
||||||
path: '/list/search/articles',
|
// path: '/list/search/articles',
|
||||||
name: 'articles',
|
// name: 'articles',
|
||||||
component: './List/Articles',
|
// component: './List/Articles',
|
||||||
},
|
// },
|
||||||
{
|
// {
|
||||||
path: '/list/search/projects',
|
// path: '/list/search/projects',
|
||||||
name: 'projects',
|
// name: 'projects',
|
||||||
component: './List/Projects',
|
// component: './List/Projects',
|
||||||
},
|
// },
|
||||||
{
|
// {
|
||||||
path: '/list/search/applications',
|
// path: '/list/search/applications',
|
||||||
name: 'applications',
|
// name: 'applications',
|
||||||
component: './List/Applications',
|
// component: './List/Applications',
|
||||||
},
|
// },
|
||||||
],
|
// ],
|
||||||
},
|
// },
|
||||||
],
|
// ],
|
||||||
},
|
// },
|
||||||
{
|
// {
|
||||||
path: '/profile',
|
// path: '/profile',
|
||||||
name: 'profile',
|
// name: 'profile',
|
||||||
icon: 'profile',
|
// icon: 'profile',
|
||||||
routes: [
|
// routes: [
|
||||||
// profile
|
// // profile
|
||||||
{
|
// {
|
||||||
path: '/profile/basic',
|
// path: '/profile/basic',
|
||||||
name: 'basic',
|
// name: 'basic',
|
||||||
component: './Profile/BasicProfile',
|
// component: './Profile/BasicProfile',
|
||||||
},
|
// },
|
||||||
{
|
// {
|
||||||
path: '/profile/advanced',
|
// path: '/profile/advanced',
|
||||||
name: 'advanced',
|
// name: 'advanced',
|
||||||
authority: ['admin'],
|
// authority: ['admin'],
|
||||||
component: './Profile/AdvancedProfile',
|
// component: './Profile/AdvancedProfile',
|
||||||
},
|
// },
|
||||||
],
|
// ],
|
||||||
},
|
// },
|
||||||
{
|
// {
|
||||||
name: 'result',
|
// name: 'result',
|
||||||
icon: 'check-circle-o',
|
// icon: 'check-circle-o',
|
||||||
path: '/result',
|
// path: '/result',
|
||||||
routes: [
|
// routes: [
|
||||||
// result
|
// // result
|
||||||
{
|
// {
|
||||||
path: '/result/success',
|
// path: '/result/success',
|
||||||
name: 'success',
|
// name: 'success',
|
||||||
component: './Result/Success',
|
// component: './Result/Success',
|
||||||
},
|
// },
|
||||||
{ path: '/result/fail', name: 'fail', component: './Result/Error' },
|
// { path: '/result/fail', name: 'fail', component: './Result/Error' },
|
||||||
],
|
// ],
|
||||||
},
|
// },
|
||||||
{
|
// {
|
||||||
name: 'exception',
|
// name: 'exception',
|
||||||
icon: 'warning',
|
// icon: 'warning',
|
||||||
path: '/exception',
|
// path: '/exception',
|
||||||
routes: [
|
// routes: [
|
||||||
// exception
|
// // exception
|
||||||
{
|
// {
|
||||||
path: '/exception/403',
|
// path: '/exception/403',
|
||||||
name: 'not-permission',
|
// name: 'not-permission',
|
||||||
component: './Exception/403',
|
// component: './Exception/403',
|
||||||
},
|
// },
|
||||||
{
|
// {
|
||||||
path: '/exception/404',
|
// path: '/exception/404',
|
||||||
name: 'not-find',
|
// name: 'not-find',
|
||||||
component: './Exception/404',
|
// component: './Exception/404',
|
||||||
},
|
// },
|
||||||
{
|
// {
|
||||||
path: '/exception/500',
|
// path: '/exception/500',
|
||||||
name: 'server-error',
|
// name: 'server-error',
|
||||||
component: './Exception/500',
|
// component: './Exception/500',
|
||||||
},
|
// },
|
||||||
{
|
// {
|
||||||
path: '/exception/trigger',
|
// path: '/exception/trigger',
|
||||||
name: 'trigger',
|
// name: 'trigger',
|
||||||
hideInMenu: true,
|
// hideInMenu: true,
|
||||||
component: './Exception/TriggerException',
|
// component: './Exception/TriggerException',
|
||||||
},
|
// },
|
||||||
],
|
// ],
|
||||||
},
|
// },
|
||||||
{
|
// {
|
||||||
name: 'account',
|
// name: 'account',
|
||||||
icon: 'user',
|
// icon: 'user',
|
||||||
path: '/account',
|
// path: '/account',
|
||||||
routes: [
|
// routes: [
|
||||||
{
|
// {
|
||||||
path: '/account/center',
|
// path: '/account/center',
|
||||||
name: 'center',
|
// name: 'center',
|
||||||
component: './Account/Center/Center',
|
// component: './Account/Center/Center',
|
||||||
routes: [
|
// routes: [
|
||||||
{
|
// {
|
||||||
path: '/account/center',
|
// path: '/account/center',
|
||||||
redirect: '/account/center/articles',
|
// redirect: '/account/center/articles',
|
||||||
},
|
// },
|
||||||
{
|
// {
|
||||||
path: '/account/center/articles',
|
// path: '/account/center/articles',
|
||||||
component: './Account/Center/Articles',
|
// component: './Account/Center/Articles',
|
||||||
},
|
// },
|
||||||
{
|
// {
|
||||||
path: '/account/center/applications',
|
// path: '/account/center/applications',
|
||||||
component: './Account/Center/Applications',
|
// component: './Account/Center/Applications',
|
||||||
},
|
// },
|
||||||
{
|
// {
|
||||||
path: '/account/center/projects',
|
// path: '/account/center/projects',
|
||||||
component: './Account/Center/Projects',
|
// component: './Account/Center/Projects',
|
||||||
},
|
// },
|
||||||
],
|
// ],
|
||||||
},
|
// },
|
||||||
{
|
// {
|
||||||
path: '/account/settings',
|
// path: '/account/settings',
|
||||||
name: 'settings',
|
// name: 'settings',
|
||||||
component: './Account/Settings/Info',
|
// component: './Account/Settings/Info',
|
||||||
routes: [
|
// routes: [
|
||||||
{
|
// {
|
||||||
path: '/account/settings',
|
// path: '/account/settings',
|
||||||
redirect: '/account/settings/base',
|
// redirect: '/account/settings/base',
|
||||||
},
|
// },
|
||||||
{
|
// {
|
||||||
path: '/account/settings/base',
|
// path: '/account/settings/base',
|
||||||
component: './Account/Settings/BaseView',
|
// component: './Account/Settings/BaseView',
|
||||||
},
|
// },
|
||||||
{
|
// {
|
||||||
path: '/account/settings/security',
|
// path: '/account/settings/security',
|
||||||
component: './Account/Settings/SecurityView',
|
// component: './Account/Settings/SecurityView',
|
||||||
},
|
// },
|
||||||
{
|
// {
|
||||||
path: '/account/settings/binding',
|
// path: '/account/settings/binding',
|
||||||
component: './Account/Settings/BindingView',
|
// component: './Account/Settings/BindingView',
|
||||||
},
|
// },
|
||||||
{
|
// {
|
||||||
path: '/account/settings/notification',
|
// path: '/account/settings/notification',
|
||||||
component: './Account/Settings/NotificationView',
|
// component: './Account/Settings/NotificationView',
|
||||||
},
|
// },
|
||||||
],
|
// ],
|
||||||
},
|
// },
|
||||||
],
|
// ],
|
||||||
},
|
// },
|
||||||
{
|
{
|
||||||
component: '404',
|
component: '404',
|
||||||
},
|
},
|
||||||
|
|
|
@ -13,7 +13,8 @@
|
||||||
img {
|
img {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
vertical-align: middle;
|
vertical-align: middle;
|
||||||
height: 32px;
|
max-height: 32px;
|
||||||
|
max-width:32px;
|
||||||
}
|
}
|
||||||
h1 {
|
h1 {
|
||||||
color: #000000;
|
color: #000000;
|
||||||
|
|
|
@ -27,7 +27,7 @@ const links = [
|
||||||
|
|
||||||
const copyright = (
|
const copyright = (
|
||||||
<Fragment>
|
<Fragment>
|
||||||
Copyright <Icon type="copyright" /> 2018 蚂蚁金服体验技术部出品
|
Copyright <Icon type="copyright" /> 2020 INFINI.LTD
|
||||||
</Fragment>
|
</Fragment>
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -56,10 +56,10 @@ class UserLayout extends React.PureComponent {
|
||||||
<div className={styles.header}>
|
<div className={styles.header}>
|
||||||
<Link to="/">
|
<Link to="/">
|
||||||
<img alt="logo" className={styles.logo} src={logo} />
|
<img alt="logo" className={styles.logo} src={logo} />
|
||||||
<span className={styles.title}>Ant Design</span>
|
<span className={styles.title}>极限日志分析中心</span>
|
||||||
</Link>
|
</Link>
|
||||||
</div>
|
</div>
|
||||||
<div className={styles.desc}>Ant Design 是西湖区最具影响力的 Web 设计规范</div>
|
<div className={styles.desc}>极限科技的日志分析中心是东半球最好用的日志分析平台</div>
|
||||||
</div>
|
</div>
|
||||||
{children}
|
{children}
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -23,7 +23,7 @@ module.exports = appInfo => {
|
||||||
env: {
|
env: {
|
||||||
APP_ROOT: path.join(__dirname, '../app/web'),
|
APP_ROOT: path.join(__dirname, '../app/web'),
|
||||||
BROWSER: 'none',
|
BROWSER: 'none',
|
||||||
HOST: '0.0.0.0',
|
HMR: 'none',
|
||||||
SOCKET_SERVER: 'http://127.0.0.1:{port}',
|
SOCKET_SERVER: 'http://127.0.0.1:{port}',
|
||||||
},
|
},
|
||||||
debug: true,
|
debug: true,
|
||||||
|
|
|
@ -70,9 +70,9 @@
|
||||||
"node": ">=8.9.0"
|
"node": ">=8.9.0"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "egg-scripts start --daemon --title=egg-server-ant-design-pro --env prod",
|
"start": "egg-scripts start --daemon --title=infini-logging-center --env prod",
|
||||||
"stop": "egg-scripts stop --title=egg-server-ant-design-pro",
|
"stop": "egg-scripts stop --title=infini-logging-center",
|
||||||
"dev": "UMI_UI=none egg-bin dev",
|
"dev": "SOCKET_SERVER=none UMI_UI=none egg-bin dev",
|
||||||
"debug": "egg-bin debug",
|
"debug": "egg-bin debug",
|
||||||
"build": "APP_ROOT=$PWD/app/web umi build",
|
"build": "APP_ROOT=$PWD/app/web umi build",
|
||||||
"test": "npm run lint -- --fix && npm run test-local",
|
"test": "npm run lint -- --fix && npm run test-local",
|
||||||
|
@ -83,7 +83,8 @@
|
||||||
"autod": "autod",
|
"autod": "autod",
|
||||||
"sync": "./script/sync.js",
|
"sync": "./script/sync.js",
|
||||||
"docker:build": "docker-compose -f ./docker/docker-compose.dev.yml build",
|
"docker:build": "docker-compose -f ./docker/docker-compose.dev.yml build",
|
||||||
"docker:dev": "docker-compose -f ./docker/docker-compose.dev.yml up"
|
"docker:dev": "docker-compose -f ./docker/docker-compose.dev.yml up",
|
||||||
|
"docker:stop": "docker-compose -f ./docker/docker-compose.dev.yml down"
|
||||||
},
|
},
|
||||||
"ci": {
|
"ci": {
|
||||||
"version": "8",
|
"version": "8",
|
||||||
|
|
Loading…
Reference in New Issue