Commit d6b2123b authored by sorrycc's avatar sorrycc Committed by ι™ˆεΈ…

move src/pages/layouts to src/layouts

parent eb10d864
......@@ -2,10 +2,10 @@ module.exports = [
// user
{
path: '/user',
component: './layouts/UserLayout',
component: '../layouts/UserLayout',
routes: [
{ path: '/user', redirect: '/user/login' },
{ path: '/user/login', component: '/User/Login' },
{ path: '/user/login', component: './User/Login' },
{ path: '/user/register', component: './User/Register' },
{ path: '/user/register-result', component: './User/RegisterResult' },
],
......@@ -13,7 +13,7 @@ module.exports = [
// app
{
path: '/',
component: './layouts/LoadingPage',
component: '../layouts/LoadingPage',
routes: [
// dashboard
{ path: '/', redirect: '/dashboard/analysis' },
......
......@@ -7,10 +7,10 @@ import { ContainerQuery } from 'react-container-query';
import classNames from 'classnames';
import pathToRegexp from 'path-to-regexp';
import { formatMessage } from 'umi/locale';
import SiderMenu from '../../components/SiderMenu';
import Authorized from '../../utils/Authorized';
import SettingDarwer from '../../components/SettingDarwer';
import logo from '../../assets/logo.svg';
import SiderMenu from '../components/SiderMenu/index';
import Authorized from '../utils/Authorized';
import SettingDarwer from '../components/SettingDarwer/index';
import logo from '../assets/logo.svg';
import Footer from './Footer';
import Header from './Header';
import Context from './MenuContext';
......
import React, { Fragment } from 'react';
import { Layout, Icon } from 'antd';
import GlobalFooter from '../../components/GlobalFooter';
import GlobalFooter from '../components/GlobalFooter/index';
const { Footer } = Layout;
const FooterView = () => (
......
......@@ -3,10 +3,10 @@ import { Layout, message } from 'antd';
import Animate from 'rc-animate';
import { connect } from 'dva';
import { routerRedux } from 'dva/router';
import GlobalHeader from '../../components/GlobalHeader';
import TopNavHeader from '../../components/TopNavHeader';
import GlobalHeader from '../components/GlobalHeader/index';
import TopNavHeader from '../components/TopNavHeader/index';
import styles from './Header.less';
import Authorized from '../../utils/Authorized';
import Authorized from '../utils/Authorized';
const { Header } = Layout;
......
......@@ -4,7 +4,7 @@ import { connect } from 'dva';
import { enquireScreen, unenquireScreen } from 'enquire-js';
import BasicLayout from './BasicLayout';
// TODO: should use this.props.routes
import routerConfig from '../../../config/router.config';
import routerConfig from '../../config/router.config';
// Conversion router to menu.
function formatter(data, parentPath = '', parentAuthority, parentName) {
......
import React, { Fragment } from 'react';
import { Link } from 'dva/router';
import { Icon } from 'antd';
import GlobalFooter from '../../components/GlobalFooter';
import GlobalFooter from '../components/GlobalFooter/index';
import styles from './UserLayout.less';
import logo from '../../assets/logo.svg';
import logo from '../assets/logo.svg';
const links = [
{
......
......@@ -2,7 +2,7 @@ import React, { PureComponent } from 'react';
import { connect } from 'dva';
import { Link, routerRedux } from 'dva/router';
import { Card, Row, Col, Icon, Avatar, Tag, Divider, Spin, Input } from 'antd';
import GridContent from '../../layouts/GridContent';
import GridContent from '../../../layouts/GridContent';
import styles from './Center.less';
@connect(({ loading, user, project }) => ({
......
......@@ -4,7 +4,7 @@ import { routerRedux } from 'dva/router';
import { FormattedMessage } from 'umi/locale';
import { Menu } from 'antd';
import styles from './Info.less';
import GridContent from '../../layouts/GridContent';
import GridContent from '../../../layouts/GridContent';
const { Item } = Menu;
......
......@@ -27,7 +27,7 @@ import {
import Trend from 'components/Trend';
import NumberInfo from 'components/NumberInfo';
import numeral from 'numeral';
import GridContent from '../layouts/GridContent';
import GridContent from '../../layouts/GridContent';
import Yuan from '../../utils/Yuan';
import { getTimeDistance } from '../../utils/utils';
......
......@@ -6,7 +6,7 @@ import NumberInfo from 'components/NumberInfo';
import CountDown from 'components/CountDown';
import ActiveChart from 'components/ActiveChart';
import numeral from 'numeral';
import GridContent from '../layouts/GridContent';
import GridContent from '../../layouts/GridContent';
import Authorized from '../../utils/Authorized';
import styles from './Monitor.less';
......
......@@ -6,7 +6,7 @@ import { Row, Col, Card, List, Avatar } from 'antd';
import { Radar } from 'components/Charts';
import EditableLinkGroup from 'components/EditableLinkGroup';
import PageHeaderLayout from '../layouts/PageHeaderLayout';
import PageHeaderLayout from '../../layouts/PageHeaderLayout';
import styles from './Workplace.less';
......
......@@ -14,7 +14,7 @@ import {
} from 'antd';
import { connect } from 'dva';
import FooterToolbar from 'components/FooterToolbar';
import PageHeaderLayout from '../layouts/PageHeaderLayout';
import PageHeaderLayout from '../../layouts/PageHeaderLayout';
import TableForm from './TableForm';
import styles from './style.less';
......
......@@ -12,7 +12,7 @@ import {
Icon,
Tooltip,
} from 'antd';
import PageHeaderLayout from '../layouts/PageHeaderLayout';
import PageHeaderLayout from '../../layouts/PageHeaderLayout';
import styles from './style.less';
const FormItem = Form.Item;
......
import React, { PureComponent, Fragment } from 'react';
import { Card, Steps } from 'antd';
import PageHeaderLayout from '../../layouts/PageHeaderLayout';
import PageHeaderLayout from '../../../layouts/PageHeaderLayout';
import styles from '../style.less';
// import { Route, Redirect, Switch } from 'dva/router';
......
......@@ -21,7 +21,7 @@ import {
Select,
} from 'antd';
import PageHeaderLayout from '../layouts/PageHeaderLayout';
import PageHeaderLayout from '../../layouts/PageHeaderLayout';
import Result from '../../components/Result';
import styles from './BasicList.less';
......
......@@ -3,7 +3,7 @@ import { connect } from 'dva';
import { Card, Button, Icon, List } from 'antd';
import Ellipsis from 'components/Ellipsis';
import PageHeaderLayout from '../layouts/PageHeaderLayout';
import PageHeaderLayout from '../../layouts/PageHeaderLayout';
import styles from './CardList.less';
......
......@@ -2,7 +2,7 @@ import React, { Component } from 'react';
import { routerRedux } from 'dva/router';
import { connect } from 'dva';
import { Input } from 'antd';
import PageHeaderLayout from '../layouts/PageHeaderLayout';
import PageHeaderLayout from '../../layouts/PageHeaderLayout';
@connect()
export default class SearchList extends Component {
......
......@@ -22,7 +22,7 @@ import {
Radio,
} from 'antd';
import StandardTable from 'components/StandardTable';
import PageHeaderLayout from '../layouts/PageHeaderLayout';
import PageHeaderLayout from '../../layouts/PageHeaderLayout';
import styles from './TableList.less';
......
......@@ -19,7 +19,7 @@ import {
} from 'antd';
import classNames from 'classnames';
import DescriptionList from 'components/DescriptionList';
import PageHeaderLayout from '../layouts/PageHeaderLayout';
import PageHeaderLayout from '../../layouts/PageHeaderLayout';
import styles from './AdvancedProfile.less';
const { Step } = Steps;
......
......@@ -2,7 +2,7 @@ import React, { Component } from 'react';
import { connect } from 'dva';
import { Card, Badge, Table, Divider } from 'antd';
import DescriptionList from 'components/DescriptionList';
import PageHeaderLayout from '../layouts/PageHeaderLayout';
import PageHeaderLayout from '../../layouts/PageHeaderLayout';
import styles from './BasicProfile.less';
const { Description } = DescriptionList;
......
......@@ -2,7 +2,7 @@ import React, { Fragment } from 'react';
import { formatMessage, FormattedMessage } from 'umi/locale';
import { Button, Icon, Card } from 'antd';
import Result from 'components/Result';
import PageHeaderLayout from '../layouts/PageHeaderLayout';
import PageHeaderLayout from '../../layouts/PageHeaderLayout';
const extra = (
<Fragment>
......
......@@ -2,7 +2,7 @@ import React, { Fragment } from 'react';
import { formatMessage, FormattedMessage } from 'umi/locale';
import { Button, Row, Col, Icon, Steps, Card } from 'antd';
import Result from 'components/Result';
import PageHeaderLayout from '../layouts/PageHeaderLayout';
import PageHeaderLayout from '../../layouts/PageHeaderLayout';
const { Step } = Steps;
......
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