Commit dc5b0f67 authored by 愚道's avatar 愚道

use config routes

parent 64b5984a
...@@ -3,83 +3,88 @@ ...@@ -3,83 +3,88 @@
// https://umijs.org/config/ // https://umijs.org/config/
const path = require('path'); const path = require('path');
const pageRoutes = require('../src/pages/_routes'); // const pageRoutes = require('../_routes');
export default { export default {
// add for transfer to umi // add for transfer to umi
plugins: [ plugins: [
'umi-plugin-dva', 'umi-plugin-dva',
// TODO 决定是否使用约定路由,如果使用配置路由那么 umi-plugin-routes 可以去掉了 // TODO 决定是否使用约定路由,如果使用配置路由那么 umi-plugin-routes 可以去掉了
[ // [
'umi-plugin-routes', // 'umi-plugin-routes',
{ // {
exclude: [/\.test\.js/], // exclude: [/\.test\.js/],
update(routes) { // update(routes) {
return [...pageRoutes, ...routes]; // return [...pageRoutes, ...routes];
}, // },
}, // },
], // ],
], ],
disableServiceWorker: true, disableServiceWorker: true,
// 路由配置 // 路由配置
// TODO ./src/pages 太冗余了 routes: [
// routes: [{ {
// path: '/', path: '/',
// component: './src/layouts/BasicLayout', component: './layouts/index',
// indexRoute: { redirect: '/dashboard/analysis' }, routes: [
// childRoutes: [ // dashboard
{ path: '/', redirect: '/dashboard/analysis' },
// // dashboard { path: '/dashboard/analysis', component: './Dashboard/Analysis' },
// { path: 'dashboard/analysis', component: './src/pages/Dashboard/Analysis' }, { path: '/dashboard/monitor', component: './Dashboard/Monitor' },
// { path: 'dashboard/monitor', component: './src/pages/Dashboard/Monitor' }, { path: '/dashboard/workplace', component: './Dashboard/Workplace' },
// { path: 'dashboard/workplace', component: './src/pages/Dashboard/Workplace' },
// // forms // forms
// { path: 'form/basic-form', component: './src/pages/Forms/BasicForm' }, { path: '/form/basic-form', component: './Forms/BasicForm' },
// { {
// path: 'form/step-form', path: '/form/step-form',
// component: './src/pages/Forms/StepForm', component: './Forms/StepForm',
// indexRoute: { redirect: '/form/step-form/info' }, routes: [
// childRoutes: [ { path: '/form/step-form', redirect: '/form/step-form/info' },
// { path: 'info', component: './src/pages/Forms/StepForm/Step1' }, { path: '/form/step-form/info', component: './Forms/StepForm/Step1' },
// { path: 'confirm', component: './src/pages/Forms/StepForm/Step2' }, { path: '/form/step-form/confirm', component: './Forms/StepForm/Step2' },
// { path: 'result', component: './src/pages/Forms/StepForm/Step3' }, { path: '/form/step-form/result', component: './Forms/StepForm/Step3' },
// ], ],
// }, },
// { path: 'form/advanced-form', component: './src/pages/Forms/AdvancedForm' }, { path: '/form/advanced-form', component: './Forms/AdvancedForm' },
// // list // list
// { path: 'list/table-list', component: './src/pages/List/TableList' }, { path: '/list/table-list', component: './List/TableList' },
// { path: 'list/table-list', component: './src/pages/List/TableList' }, { path: '/list/table-list', component: './List/TableList' },
// { path: 'list/basic-list', component: './src/pages/List/BasicList' }, { path: '/list/basic-list', component: './List/BasicList' },
// { path: 'list/card-list', component: './src/pages/List/CardList' }, { path: '/list/card-list', component: './List/CardList' },
// { {
// path: 'list/search', path: '/list/search',
// component: './src/pages/List/List', component: './List/List',
// indexRoute: { redirect: '/list/search/projects' }, routes: [
// childRoutes: [ { path: '/list/search', redirect: '/list/search/projects' },
// { path: 'articles', component: './src/pages/List/Articles' }, { path: '/list/search/articles', component: './List/Articles' },
// { path: 'projects', component: './src/pages/List/Projects' }, { path: '/list/search/projects', component: './List/Projects' },
// { path: 'applications', component: './src/pages/List/Applications' }, { path: '/list/search/applications', component: './List/Applications' },
// ], ],
// }, },
// // profile // profile
// { path: 'profile/basic', component: './src/pages/Profile/BasicProfile' }, { path: '/profile/basic', component: './Profile/BasicProfile' },
// { path: 'profile/advanced', component: './src/pages/Profile/AdvancedProfile' }, { path: '/profile/advanced', component: './Profile/AdvancedProfile' },
// // result // result
// { path: 'result/success', component: './src/pages/Result/Success' }, { path: '/result/success', component: './Result/Success' },
// { path: 'result/fail', component: './src/pages/Result/Error' }, { path: '/result/fail', component: './Result/Error' },
// // exception // exception
// { path: 'exception/403', component: './src/pages/Exception/403' }, { path: '/exception/403', component: './Exception/403' },
// { path: 'exception/404', component: './src/pages/Exception/404' }, { path: '/exception/404', component: './Exception/404' },
// { path: 'exception/500', component: './src/pages/Exception/500' }, { path: '/exception/500', component: './Exception/500' },
],
},
],
// // ], // https://github.com/ant-design/ant-design/blob/master/components/style/themes/default.less
// }], theme: {
// 'primary-color': '#10e99b',
'card-actions-background': '#f5f8fa',
},
// copy from old webpackrc.js // copy from old webpackrc.js
...@@ -102,9 +107,9 @@ export default { ...@@ -102,9 +107,9 @@ export default {
common: path.resolve(__dirname, '../src/common/'), common: path.resolve(__dirname, '../src/common/'),
}, },
ignoreMomentLocale: true, ignoreMomentLocale: true,
theme: './src/theme.js', // theme: './theme.js',
// html: { TODO remove // html: { TODO remove
// template: './src/index.ejs', // template: './index.ejs',
// }, // },
publicPath: '/', publicPath: '/',
// TODO check hash config // TODO check hash config
...@@ -130,3 +135,46 @@ export default { ...@@ -130,3 +135,46 @@ export default {
}, },
}, },
}; };
// [
// {
// "path": "/Dashboard",
// "exact": true,
// "redirect": "/Dashboard/Analysis"
// },
// {
// "path": "/Forms",
// "exact": true,
// "redirect": "/Forms/BasicForm"
// },
// {
// "path": "/Forms/StepForm",
// "exact": true,
// "redirect": "/Forms/StepForm/Step1"
// },
// {
// "path": "/List",
// "exact": true,
// "redirect": "/List/TableList"
// },
// {
// "path": "/List/Search",
// "exact": true,
// "redirect": "/List/Search/Articles"
// },
// {
// "path": "/Profile",
// "exact": true,
// "redirect": "/Profile/BasicProfile"
// },
// {
// "path": "/Result",
// "exact": true,
// "redirect": "/Result/Success"
// },
// {
// "path": "/Exception",
// "exact": true,
// "redirect": "/Exception/403"
// }
// ]
...@@ -199,19 +199,19 @@ const menuData = [ ...@@ -199,19 +199,19 @@ const menuData = [
{ {
name: 'dashboard', name: 'dashboard',
icon: 'dashboard', icon: 'dashboard',
path: 'Dashboard', path: 'dashboard',
children: [ children: [
{ {
name: '分析页', name: '分析页',
path: 'Analysis', path: 'analysis',
}, },
{ {
name: '监控页', name: '监控页',
path: 'Monitor', path: 'monitor',
}, },
{ {
name: '工作台', name: '工作台',
path: 'Workplace', path: 'workplace',
// hideInBreadcrumb: true, // hideInBreadcrumb: true,
// hideInMenu: true, // hideInMenu: true,
}, },
...@@ -220,55 +220,55 @@ const menuData = [ ...@@ -220,55 +220,55 @@ const menuData = [
{ {
name: '表单页', name: '表单页',
icon: 'form', icon: 'form',
path: 'Forms', path: 'form',
children: [ children: [
{ {
name: '基础表单', name: '基础表单',
path: 'BasicForm', path: 'basic-form',
}, },
{ {
name: '分步表单', name: '分步表单',
path: 'StepForm', path: 'step-form',
}, },
{ {
name: '高级表单', name: '高级表单',
// authority: 'admin', // authority: 'admin',
path: 'AdvancedForm', path: 'advanced-form',
}, },
], ],
}, },
{ {
name: '列表页', name: '列表页',
icon: 'table', icon: 'table',
path: 'List', path: 'list',
children: [ children: [
{ {
name: '查询表格', name: '查询表格',
path: 'TableList', path: 'table-list',
}, },
{ {
name: '标准列表', name: '标准列表',
path: 'basicList', path: 'basic-list',
}, },
{ {
name: '卡片列表', name: '卡片列表',
path: 'CardList', path: 'card-list',
}, },
{ {
name: '搜索列表', name: '搜索列表',
path: 'Search', path: 'search',
children: [ children: [
{ {
name: '搜索列表(文章)', name: '搜索列表(文章)',
path: 'Articles', path: 'articles',
}, },
{ {
name: '搜索列表(项目)', name: '搜索列表(项目)',
path: 'Projects', path: 'projects',
}, },
{ {
name: '搜索列表(应用)', name: '搜索列表(应用)',
path: 'Applications', path: 'applications',
}, },
], ],
}, },
...@@ -277,15 +277,15 @@ const menuData = [ ...@@ -277,15 +277,15 @@ const menuData = [
{ {
name: '详情页', name: '详情页',
icon: 'profile', icon: 'profile',
path: 'Profile', path: 'profile',
children: [ children: [
{ {
name: '基础详情页', name: '基础详情页',
path: 'BasicProfile', path: 'basic',
}, },
{ {
name: '高级详情页', name: '高级详情页',
path: 'AdvancedProfile', path: 'advanced',
// authority: 'admin', // authority: 'admin',
}, },
], ],
...@@ -293,22 +293,22 @@ const menuData = [ ...@@ -293,22 +293,22 @@ const menuData = [
{ {
name: '结果页', name: '结果页',
icon: 'check-circle-o', icon: 'check-circle-o',
path: 'Result', path: 'result',
children: [ children: [
{ {
name: '成功', name: '成功',
path: 'Success', path: 'success',
}, },
{ {
name: '失败', name: '失败',
path: 'Error', path: 'fail',
}, },
], ],
}, },
{ {
name: '异常页', name: '异常页',
icon: 'warning', icon: 'warning',
path: 'Exception', path: 'exception',
children: [ children: [
{ {
name: '403', name: '403',
...@@ -322,11 +322,11 @@ const menuData = [ ...@@ -322,11 +322,11 @@ const menuData = [
name: '500', name: '500',
path: '500', path: '500',
}, },
{ // {
name: '触发异常', // name: '触发异常',
path: 'triggerException', // path: 'triggerException',
hideInMenu: true, // hideInMenu: true,
}, // },
], ],
}, },
{ {
...@@ -337,30 +337,30 @@ const menuData = [ ...@@ -337,30 +337,30 @@ const menuData = [
children: [ children: [
{ {
name: '登录', name: '登录',
path: 'Login', path: 'login',
}, },
{ {
name: '注册', name: '注册',
path: 'Register', path: 'register',
}, },
{ {
name: '注册结果', name: '注册结果',
path: 'RegisterResult', path: 'register-result',
}, },
], ],
}, },
{ {
name: '个人页', name: '个人页',
icon: 'user', icon: 'user',
path: 'Account', path: 'acount',
children: [ children: [
{ {
name: '个人中心', name: '个人中心',
path: 'Center', path: 'center',
}, },
{ {
name: '个人设置', name: '个人设置',
path: 'Settings', path: 'settings',
}, },
], ],
}, },
......
...@@ -3,7 +3,7 @@ import { connect } from 'dva'; ...@@ -3,7 +3,7 @@ import { connect } from 'dva';
import { Link, routerRedux, Route, Switch, Redirect } from 'dva/router'; import { Link, routerRedux, Route, Switch, Redirect } from 'dva/router';
import { Card, Row, Col, Icon, Avatar, Tag, Divider, Spin, Input } from 'antd'; import { Card, Row, Col, Icon, Avatar, Tag, Divider, Spin, Input } from 'antd';
import { getRoutes } from '../../../utils/utils'; import { getRoutes } from '../../../utils/utils';
import GridContent from '../../../layouts/GridContent'; import GridContent from '../../layouts/GridContent';
import styles from './Center.less'; import styles from './Center.less';
@connect(({ list, loading, user, project }) => ({ @connect(({ list, loading, user, project }) => ({
......
...@@ -4,7 +4,7 @@ import { Route, routerRedux, Switch, Redirect } from 'dva/router'; ...@@ -4,7 +4,7 @@ import { Route, routerRedux, Switch, Redirect } from 'dva/router';
import { Menu } from 'antd'; import { Menu } from 'antd';
import styles from './Info.less'; import styles from './Info.less';
import { getRoutes } from '../../../utils/utils'; import { getRoutes } from '../../../utils/utils';
import GridContent from '../../../layouts/GridContent'; import GridContent from '../../layouts/GridContent';
const { Item } = Menu; const { Item } = Menu;
......
...@@ -26,7 +26,7 @@ import { ...@@ -26,7 +26,7 @@ import {
import Trend from 'components/Trend'; import Trend from 'components/Trend';
import NumberInfo from 'components/NumberInfo'; import NumberInfo from 'components/NumberInfo';
import numeral from 'numeral'; import numeral from 'numeral';
import GridContent from '../../layouts/GridContent'; import GridContent from '../layouts/GridContent';
import Yuan from '../../utils/Yuan'; import Yuan from '../../utils/Yuan';
import { getTimeDistance } from '../../utils/utils'; import { getTimeDistance } from '../../utils/utils';
......
...@@ -6,7 +6,7 @@ import NumberInfo from 'components/NumberInfo'; ...@@ -6,7 +6,7 @@ import NumberInfo from 'components/NumberInfo';
import CountDown from 'components/CountDown'; import CountDown from 'components/CountDown';
import ActiveChart from 'components/ActiveChart'; import ActiveChart from 'components/ActiveChart';
import numeral from 'numeral'; import numeral from 'numeral';
import GridContent from '../../layouts/GridContent'; import GridContent from '../layouts/GridContent';
import Authorized from '../../utils/Authorized'; import Authorized from '../../utils/Authorized';
import styles from './Monitor.less'; import styles from './Monitor.less';
......
...@@ -6,7 +6,7 @@ import { Row, Col, Card, List, Avatar } from 'antd'; ...@@ -6,7 +6,7 @@ import { Row, Col, Card, List, Avatar } from 'antd';
import { Radar } from 'components/Charts'; import { Radar } from 'components/Charts';
import EditableLinkGroup from 'components/EditableLinkGroup'; import EditableLinkGroup from 'components/EditableLinkGroup';
import PageHeaderLayout from '../../layouts/PageHeaderLayout'; import PageHeaderLayout from '../layouts/PageHeaderLayout';
import styles from './Workplace.less'; import styles from './Workplace.less';
......
...@@ -14,7 +14,7 @@ import { ...@@ -14,7 +14,7 @@ import {
} from 'antd'; } from 'antd';
import { connect } from 'dva'; import { connect } from 'dva';
import FooterToolbar from 'components/FooterToolbar'; import FooterToolbar from 'components/FooterToolbar';
import PageHeaderLayout from '../../layouts/PageHeaderLayout'; import PageHeaderLayout from '../layouts/PageHeaderLayout';
import TableForm from './TableForm'; import TableForm from './TableForm';
import styles from './style.less'; import styles from './style.less';
......
...@@ -12,7 +12,7 @@ import { ...@@ -12,7 +12,7 @@ import {
Icon, Icon,
Tooltip, Tooltip,
} from 'antd'; } from 'antd';
import PageHeaderLayout from '../../layouts/PageHeaderLayout'; import PageHeaderLayout from '../layouts/PageHeaderLayout';
import styles from './style.less'; import styles from './style.less';
const FormItem = Form.Item; const FormItem = Form.Item;
......
import React, { PureComponent, Fragment } from 'react'; import React, { PureComponent, Fragment } from 'react';
import { Card, Steps } from 'antd'; import { Card, Steps } from 'antd';
import PageHeaderLayout from '../../../layouts/PageHeaderLayout'; import PageHeaderLayout from '../../layouts/PageHeaderLayout';
import styles from '../style.less'; import styles from '../style.less';
// import { Route, Redirect, Switch } from 'dva/router'; // import { Route, Redirect, Switch } from 'dva/router';
......
...@@ -5,7 +5,7 @@ import { Row, Col, Form, Card, Select, Icon, Avatar, List, Tooltip, Dropdown, Me ...@@ -5,7 +5,7 @@ import { Row, Col, Form, Card, Select, Icon, Avatar, List, Tooltip, Dropdown, Me
import TagSelect from 'components/TagSelect'; import TagSelect from 'components/TagSelect';
import StandardFormRow from 'components/StandardFormRow'; import StandardFormRow from 'components/StandardFormRow';
import { formatWan } from '../../../utils/utils'; import { formatWan } from '../../utils/utils';
import styles from './Applications.less'; import styles from './Applications.less';
......
@import '~antd/lib/style/themes/default.less'; @import '~antd/lib/style/themes/default.less';
@import '../../../utils/utils.less'; @import '../../utils/utils.less';
.filterCardList { .filterCardList {
margin-bottom: -24px; margin-bottom: -24px;
......
@import '~antd/lib/style/themes/default.less'; @import '~antd/lib/style/themes/default.less';
@import '../../../utils/utils.less'; @import '../../utils/utils.less';
.listContent { .listContent {
.description { .description {
......
...@@ -21,7 +21,7 @@ import { ...@@ -21,7 +21,7 @@ import {
Select, Select,
} from 'antd'; } from 'antd';
import PageHeaderLayout from '../../layouts/PageHeaderLayout'; import PageHeaderLayout from '../layouts/PageHeaderLayout';
import Result from '../../components/Result'; import Result from '../../components/Result';
import styles from './BasicList.less'; import styles from './BasicList.less';
......
...@@ -3,7 +3,7 @@ import { connect } from 'dva'; ...@@ -3,7 +3,7 @@ import { connect } from 'dva';
import { Card, Button, Icon, List } from 'antd'; import { Card, Button, Icon, List } from 'antd';
import Ellipsis from 'components/Ellipsis'; import Ellipsis from 'components/Ellipsis';
import PageHeaderLayout from '../../layouts/PageHeaderLayout'; import PageHeaderLayout from '../layouts/PageHeaderLayout';
import styles from './CardList.less'; import styles from './CardList.less';
......
...@@ -2,7 +2,7 @@ import React, { Component } from 'react'; ...@@ -2,7 +2,7 @@ import React, { Component } from 'react';
import { routerRedux } from 'dva/router'; import { routerRedux } from 'dva/router';
import { connect } from 'dva'; import { connect } from 'dva';
import { Input } from 'antd'; import { Input } from 'antd';
import PageHeaderLayout from '../../../layouts/PageHeaderLayout'; import PageHeaderLayout from '../layouts/PageHeaderLayout';
@connect() @connect()
export default class SearchList extends Component { export default class SearchList extends Component {
......
@import '~antd/lib/style/themes/default.less'; @import '~antd/lib/style/themes/default.less';
@import '../../../utils/utils.less'; @import '../../utils/utils.less';
.coverCardList { .coverCardList {
margin-bottom: -24px; margin-bottom: -24px;
......
...@@ -22,7 +22,7 @@ import { ...@@ -22,7 +22,7 @@ import {
Radio, Radio,
} from 'antd'; } from 'antd';
import StandardTable from 'components/StandardTable'; import StandardTable from 'components/StandardTable';
import PageHeaderLayout from '../../layouts/PageHeaderLayout'; import PageHeaderLayout from '../layouts/PageHeaderLayout';
import styles from './TableList.less'; import styles from './TableList.less';
......
...@@ -19,7 +19,7 @@ import { ...@@ -19,7 +19,7 @@ import {
} from 'antd'; } from 'antd';
import classNames from 'classnames'; import classNames from 'classnames';
import DescriptionList from 'components/DescriptionList'; import DescriptionList from 'components/DescriptionList';
import PageHeaderLayout from '../../layouts/PageHeaderLayout'; import PageHeaderLayout from '../layouts/PageHeaderLayout';
import styles from './AdvancedProfile.less'; import styles from './AdvancedProfile.less';
const { Step } = Steps; const { Step } = Steps;
......
...@@ -2,7 +2,7 @@ import React, { Component } from 'react'; ...@@ -2,7 +2,7 @@ import React, { Component } from 'react';
import { connect } from 'dva'; import { connect } from 'dva';
import { Card, Badge, Table, Divider } from 'antd'; import { Card, Badge, Table, Divider } from 'antd';
import DescriptionList from 'components/DescriptionList'; import DescriptionList from 'components/DescriptionList';
import PageHeaderLayout from '../../layouts/PageHeaderLayout'; import PageHeaderLayout from '../layouts/PageHeaderLayout';
import styles from './BasicProfile.less'; import styles from './BasicProfile.less';
const { Description } = DescriptionList; const { Description } = DescriptionList;
......
import React, { Fragment } from 'react'; import React, { Fragment } from 'react';
import { Button, Icon, Card } from 'antd'; import { Button, Icon, Card } from 'antd';
import Result from 'components/Result'; import Result from 'components/Result';
import PageHeaderLayout from '../../layouts/PageHeaderLayout'; import PageHeaderLayout from '../layouts/PageHeaderLayout';
const extra = ( const extra = (
<Fragment> <Fragment>
......
import React, { Fragment } from 'react'; import React, { Fragment } from 'react';
import { Button, Row, Col, Icon, Steps, Card } from 'antd'; import { Button, Row, Col, Icon, Steps, Card } from 'antd';
import Result from 'components/Result'; import Result from 'components/Result';
import PageHeaderLayout from '../../layouts/PageHeaderLayout'; import PageHeaderLayout from '../layouts/PageHeaderLayout';
const { Step } = Steps; const { Step } = Steps;
......
import React from 'react'; import React from 'react';
import { getRouterData } from 'common/router'; import { getRouterData } from 'common/router';
import { getMenuData } from 'common/menu'; import { getMenuData } from 'common/menu';
import UserLayout from '../../layouts/UserLayout'; import UserLayout from '../layouts/UserLayout';
export default props => { export default props => {
const { children, location } = props; const { children, location } = props;
......
[
{
"path": "/Dashboard",
"exact": true,
"redirect": "/Dashboard/Analysis"
},
{
"path": "/Forms",
"exact": true,
"redirect": "/Forms/BasicForm"
},
{
"path": "/Forms/StepForm",
"exact": true,
"redirect": "/Forms/StepForm/Step1"
},
{
"path": "/List",
"exact": true,
"redirect": "/List/TableList"
},
{
"path": "/List/Search",
"exact": true,
"redirect": "/List/Search/Articles"
},
{
"path": "/Profile",
"exact": true,
"redirect": "/Profile/BasicProfile"
},
{
"path": "/Result",
"exact": true,
"redirect": "/Result/Success"
},
{
"path": "/Exception",
"exact": true,
"redirect": "/Exception/403"
}
]
import React from 'react';
export default () => <div />;
...@@ -4,16 +4,16 @@ import React from 'react'; ...@@ -4,16 +4,16 @@ import React from 'react';
import { Layout } from 'antd'; import { Layout } from 'antd';
import DocumentTitle from 'react-document-title'; import DocumentTitle from 'react-document-title';
import { connect } from 'dva'; import { connect } from 'dva';
import { Route, Redirect, Switch } from 'dva/router'; // import { Route, Redirect, Switch } from 'dva/router';
import { ContainerQuery } from 'react-container-query'; import { ContainerQuery } from 'react-container-query';
import classNames from 'classnames'; import classNames from 'classnames';
import pathToRegexp from 'path-to-regexp'; import pathToRegexp from 'path-to-regexp';
import SiderMenu from '../components/SiderMenu'; import SiderMenu from '../../components/SiderMenu';
import NotFound from '../pages/Exception/404'; // import NotFound from '../Exception/404';
import { getRoutes } from '../utils/utils'; // import { getRoutes } from '../utils/utils';
import Authorized from '../utils/Authorized'; import Authorized from '../../utils/Authorized';
import SettingDarwer from '../components/SettingDarwer'; import SettingDarwer from '../../components/SettingDarwer';
import logo from '../assets/logo.svg'; import logo from '../../assets/logo.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';
......
import React, { Fragment } from 'react'; import React, { Fragment } from 'react';
import { Layout, Icon } from 'antd'; import { Layout, Icon } from 'antd';
import GlobalFooter from '../components/GlobalFooter'; import GlobalFooter from '../../components/GlobalFooter';
const { Footer } = Layout; const { Footer } = Layout;
const FooterView = () => ( const FooterView = () => (
......
...@@ -3,10 +3,10 @@ import { Layout, message } from 'antd'; ...@@ -3,10 +3,10 @@ import { Layout, message } from 'antd';
import Animate from 'rc-animate'; import Animate from 'rc-animate';
import { connect } from 'dva'; import { connect } from 'dva';
import { routerRedux } from 'dva/router'; import { routerRedux } from 'dva/router';
import GlobalHeader from '../components/GlobalHeader'; import GlobalHeader from '../../components/GlobalHeader';
import TopNavHeader from '../components/TopNavHeader'; import TopNavHeader from '../../components/TopNavHeader';
import styles from './Header.less'; import styles from './Header.less';
import Authorized from '../utils/Authorized'; import Authorized from '../../utils/Authorized';
const { Header } = Layout; const { Header } = Layout;
......
import React from 'react'; import React from 'react';
import { Link } from 'dva/router'; import { Link } from 'dva/router';
import PageHeader from '../components/PageHeader'; import PageHeader from '../../components/PageHeader';
import GridContent from './GridContent'; import GridContent from './GridContent';
import styles from './PageHeaderLayout.less'; import styles from './PageHeaderLayout.less';
import MenuContext from './MenuContext'; import MenuContext from './MenuContext';
......
// https://github.com/ant-design/ant-design/blob/master/components/style/themes/default.less
module.exports = {
// 'primary-color': '#10e99b',
'card-actions-background': '#f5f8fa',
};
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment