Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
ant-design-pro
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
duanledexianxianxian
ant-design-pro
Commits
d6b2123b
Commit
d6b2123b
authored
Aug 14, 2018
by
sorrycc
Committed by
ιεΈ
Aug 17, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
move src/pages/layouts to src/layouts
parent
eb10d864
Changes
29
Hide whitespace changes
Inline
Side-by-side
Showing
29 changed files
with
30 additions
and
30 deletions
+30
-30
config/router.config.js
config/router.config.js
+3
-3
src/layouts/BasicLayout.js
src/layouts/BasicLayout.js
+4
-4
src/layouts/Footer.js
src/layouts/Footer.js
+1
-1
src/layouts/GridContent.js
src/layouts/GridContent.js
+0
-0
src/layouts/GridContent.less
src/layouts/GridContent.less
+0
-0
src/layouts/Header.js
src/layouts/Header.js
+3
-3
src/layouts/Header.less
src/layouts/Header.less
+0
-0
src/layouts/LoadingPage.js
src/layouts/LoadingPage.js
+1
-1
src/layouts/MenuContext.js
src/layouts/MenuContext.js
+0
-0
src/layouts/PageHeaderLayout.js
src/layouts/PageHeaderLayout.js
+0
-0
src/layouts/PageHeaderLayout.less
src/layouts/PageHeaderLayout.less
+0
-0
src/layouts/UserLayout.js
src/layouts/UserLayout.js
+2
-2
src/layouts/UserLayout.less
src/layouts/UserLayout.less
+0
-0
src/pages/Account/Center/Center.js
src/pages/Account/Center/Center.js
+1
-1
src/pages/Account/Settings/Info.js
src/pages/Account/Settings/Info.js
+1
-1
src/pages/Dashboard/Analysis.js
src/pages/Dashboard/Analysis.js
+1
-1
src/pages/Dashboard/Monitor.js
src/pages/Dashboard/Monitor.js
+1
-1
src/pages/Dashboard/Workplace.js
src/pages/Dashboard/Workplace.js
+1
-1
src/pages/Forms/AdvancedForm.js
src/pages/Forms/AdvancedForm.js
+1
-1
src/pages/Forms/BasicForm.js
src/pages/Forms/BasicForm.js
+1
-1
src/pages/Forms/StepForm/index.js
src/pages/Forms/StepForm/index.js
+1
-1
src/pages/List/BasicList.js
src/pages/List/BasicList.js
+1
-1
src/pages/List/CardList.js
src/pages/List/CardList.js
+1
-1
src/pages/List/List.js
src/pages/List/List.js
+1
-1
src/pages/List/TableList.js
src/pages/List/TableList.js
+1
-1
src/pages/Profile/AdvancedProfile.js
src/pages/Profile/AdvancedProfile.js
+1
-1
src/pages/Profile/BasicProfile.js
src/pages/Profile/BasicProfile.js
+1
-1
src/pages/Result/Error.js
src/pages/Result/Error.js
+1
-1
src/pages/Result/Success.js
src/pages/Result/Success.js
+1
-1
No files found.
config/router.config.js
View file @
d6b2123b
...
...
@@ -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
'
},
...
...
src/
pages/
layouts/BasicLayout.js
→
src/layouts/BasicLayout.js
View file @
d6b2123b
...
...
@@ -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
'
;
...
...
src/
pages/
layouts/Footer.js
→
src/layouts/Footer.js
View file @
d6b2123b
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
=
()
=>
(
...
...
src/
pages/
layouts/GridContent.js
→
src/layouts/GridContent.js
View file @
d6b2123b
File moved
src/
pages/
layouts/GridContent.less
→
src/layouts/GridContent.less
View file @
d6b2123b
File moved
src/
pages/
layouts/Header.js
→
src/layouts/Header.js
View file @
d6b2123b
...
...
@@ -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
;
...
...
src/
pages/
layouts/Header.less
→
src/layouts/Header.less
View file @
d6b2123b
File moved
src/
pages/
layouts/LoadingPage.js
→
src/layouts/LoadingPage.js
View file @
d6b2123b
...
...
@@ -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
)
{
...
...
src/
pages/
layouts/MenuContext.js
→
src/layouts/MenuContext.js
View file @
d6b2123b
File moved
src/
pages/
layouts/PageHeaderLayout.js
→
src/layouts/PageHeaderLayout.js
View file @
d6b2123b
File moved
src/
pages/
layouts/PageHeaderLayout.less
→
src/layouts/PageHeaderLayout.less
View file @
d6b2123b
File moved
src/
pages/
layouts/UserLayout.js
→
src/layouts/UserLayout.js
View file @
d6b2123b
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
=
[
{
...
...
src/
pages/
layouts/UserLayout.less
→
src/layouts/UserLayout.less
View file @
d6b2123b
File moved
src/pages/Account/Center/Center.js
View file @
d6b2123b
...
...
@@ -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
})
=>
({
...
...
src/pages/Account/Settings/Info.js
View file @
d6b2123b
...
...
@@ -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
;
...
...
src/pages/Dashboard/Analysis.js
View file @
d6b2123b
...
...
@@ -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
'
;
...
...
src/pages/Dashboard/Monitor.js
View file @
d6b2123b
...
...
@@ -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
'
;
...
...
src/pages/Dashboard/Workplace.js
View file @
d6b2123b
...
...
@@ -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
'
;
...
...
src/pages/Forms/AdvancedForm.js
View file @
d6b2123b
...
...
@@ -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
'
;
...
...
src/pages/Forms/BasicForm.js
View file @
d6b2123b
...
...
@@ -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
;
...
...
src/pages/Forms/StepForm/index.js
View file @
d6b2123b
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';
...
...
src/pages/List/BasicList.js
View file @
d6b2123b
...
...
@@ -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
'
;
...
...
src/pages/List/CardList.js
View file @
d6b2123b
...
...
@@ -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
'
;
...
...
src/pages/List/List.js
View file @
d6b2123b
...
...
@@ -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
{
...
...
src/pages/List/TableList.js
View file @
d6b2123b
...
...
@@ -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
'
;
...
...
src/pages/Profile/AdvancedProfile.js
View file @
d6b2123b
...
...
@@ -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
;
...
...
src/pages/Profile/BasicProfile.js
View file @
d6b2123b
...
...
@@ -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
;
...
...
src/pages/Result/Error.js
View file @
d6b2123b
...
...
@@ -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
>
...
...
src/pages/Result/Success.js
View file @
d6b2123b
...
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment