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
dc5b0f67
Commit
dc5b0f67
authored
Jul 10, 2018
by
愚道
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use config routes
parent
64b5984a
Changes
42
Show whitespace changes
Inline
Side-by-side
Showing
42 changed files
with
178 additions
and
180 deletions
+178
-180
config/config.js
config/config.js
+111
-63
src/common/menu.js
src/common/menu.js
+34
-34
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/Applications.js
src/pages/List/Applications.js
+1
-1
src/pages/List/Applications.less
src/pages/List/Applications.less
+1
-1
src/pages/List/Articles.js
src/pages/List/Articles.js
+0
-0
src/pages/List/Articles.less
src/pages/List/Articles.less
+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/Projects.js
src/pages/List/Projects.js
+0
-0
src/pages/List/Projects.less
src/pages/List/Projects.less
+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
src/pages/User/_layout.js
src/pages/User/_layout.js
+1
-1
src/pages/_routes.json
src/pages/_routes.json
+0
-42
src/pages/index.js
src/pages/index.js
+0
-3
src/pages/layouts/BasicLayout.js
src/pages/layouts/BasicLayout.js
+7
-7
src/pages/layouts/BlankLayout.js
src/pages/layouts/BlankLayout.js
+0
-0
src/pages/layouts/Footer.js
src/pages/layouts/Footer.js
+1
-1
src/pages/layouts/GridContent.js
src/pages/layouts/GridContent.js
+0
-0
src/pages/layouts/GridContent.less
src/pages/layouts/GridContent.less
+0
-0
src/pages/layouts/Header.js
src/pages/layouts/Header.js
+3
-3
src/pages/layouts/Header.less
src/pages/layouts/Header.less
+0
-0
src/pages/layouts/LoadingPage.js
src/pages/layouts/LoadingPage.js
+0
-0
src/pages/layouts/MenuContext.js
src/pages/layouts/MenuContext.js
+0
-0
src/pages/layouts/PageHeaderLayout.js
src/pages/layouts/PageHeaderLayout.js
+1
-1
src/pages/layouts/PageHeaderLayout.less
src/pages/layouts/PageHeaderLayout.less
+0
-0
src/pages/layouts/UserLayout.js
src/pages/layouts/UserLayout.js
+0
-0
src/pages/layouts/UserLayout.less
src/pages/layouts/UserLayout.less
+0
-0
src/pages/layouts/index.js
src/pages/layouts/index.js
+0
-0
src/theme.js
src/theme.js
+0
-5
No files found.
config/config.js
View file @
dc5b0f67
...
...
@@ -3,83 +3,88 @@
// https://umijs.org/config/
const
path
=
require
(
'
path
'
);
const
pageRoutes
=
require
(
'
../src/pages
/_routes
'
);
// const pageRoutes = require('..
/_routes');
export
default
{
// add for transfer to umi
plugins
:
[
'
umi-plugin-dva
'
,
// TODO 决定是否使用约定路由,如果使用配置路由那么 umi-plugin-routes 可以去掉了
[
'
umi-plugin-routes
'
,
{
exclude
:
[
/
\.
test
\.
js/
],
update
(
routes
)
{
return
[...
pageRoutes
,
...
routes
];
},
},
],
//
[
//
'umi-plugin-routes',
//
{
//
exclude: [/\.test\.js/],
//
update(routes) {
//
return [...pageRoutes, ...routes];
//
},
//
},
//
],
],
disableServiceWorker
:
true
,
// 路由配置
// TODO ./src/pages 太冗余了
// routes: [{
// path: '/',
// component: './src/layouts/BasicLayout',
// indexRoute: { redirect: '/dashboard/analysis' },
// childRoutes: [
// // dashboard
// { path: 'dashboard/analysis', component: './src/pages/Dashboard/Analysis' },
// { path: 'dashboard/monitor', component: './src/pages/Dashboard/Monitor' },
// { path: 'dashboard/workplace', component: './src/pages/Dashboard/Workplace' },
routes
:
[
{
path
:
'
/
'
,
component
:
'
./layouts/index
'
,
routes
:
[
// dashboard
{
path
:
'
/
'
,
redirect
:
'
/dashboard/analysis
'
},
{
path
:
'
/dashboard/analysis
'
,
component
:
'
./Dashboard/Analysis
'
},
{
path
:
'
/dashboard/monitor
'
,
component
:
'
./Dashboard/Monitor
'
},
{
path
:
'
/dashboard/workplace
'
,
component
:
'
./Dashboard/Workplace
'
},
//
// forms
// { path: 'form/basic-form', component: './src/pages
/Forms/BasicForm' },
//
{
// path: '
form/step-form',
// component: './src/pages
/Forms/StepForm',
// indexRoute: { redirect: '/form/step-form/info' },
// childRoutes: [
// { path: 'info', component: './src/pages
/Forms/StepForm/Step1' },
// { path: 'confirm', component: './src/pages
/Forms/StepForm/Step2' },
// { path: 'result', component: './src/pages
/Forms/StepForm/Step3' },
//
],
//
},
// { path: 'form/advanced-form', component: './src/pages
/Forms/AdvancedForm' },
// forms
{
path
:
'
/form/basic-form
'
,
component
:
'
.
/Forms/BasicForm
'
},
{
path
:
'
/
form/step-form
'
,
component
:
'
.
/Forms/StepForm
'
,
routes
:
[
{
path
:
'
/form/step-form
'
,
redirect
:
'
/form/step-form/info
'
},
{
path
:
'
/form/step-form/info
'
,
component
:
'
.
/Forms/StepForm/Step1
'
},
{
path
:
'
/form/step-form/confirm
'
,
component
:
'
.
/Forms/StepForm/Step2
'
},
{
path
:
'
/form/step-form/result
'
,
component
:
'
.
/Forms/StepForm/Step3
'
},
],
},
{
path
:
'
/form/advanced-form
'
,
component
:
'
.
/Forms/AdvancedForm
'
},
//
// list
// { path: 'list/table-list', component: './src/pages
/List/TableList' },
// { path: 'list/table-list', component: './src/pages
/List/TableList' },
// { path: 'list/basic-list', component: './src/pages
/List/BasicList' },
// { path: 'list/card-list', component: './src/pages
/List/CardList' },
//
{
// path: '
list/search',
// component: './src/pages
/List/List',
// indexRoute: { redirect: '/list/search/projects' },
// childRoutes: [
// { path: 'articles', component: './src/pages
/List/Articles' },
// { path: 'projects', component: './src/pages
/List/Projects' },
// { path: 'applications', component: './src/pages
/List/Applications' },
//
],
//
},
// list
{
path
:
'
/list/table-list
'
,
component
:
'
.
/List/TableList
'
},
{
path
:
'
/list/table-list
'
,
component
:
'
.
/List/TableList
'
},
{
path
:
'
/list/basic-list
'
,
component
:
'
.
/List/BasicList
'
},
{
path
:
'
/list/card-list
'
,
component
:
'
.
/List/CardList
'
},
{
path
:
'
/
list/search
'
,
component
:
'
.
/List/List
'
,
routes
:
[
{
path
:
'
/list/search
'
,
redirect
:
'
/list/search/projects
'
},
{
path
:
'
/list/search/articles
'
,
component
:
'
.
/List/Articles
'
},
{
path
:
'
/list/search/projects
'
,
component
:
'
.
/List/Projects
'
},
{
path
:
'
/list/search/applications
'
,
component
:
'
.
/List/Applications
'
},
],
},
//
// profile
// { path: 'profile/basic', component: './src/pages
/Profile/BasicProfile' },
// { path: 'profile/advanced', component: './src/pages
/Profile/AdvancedProfile' },
// profile
{
path
:
'
/profile/basic
'
,
component
:
'
.
/Profile/BasicProfile
'
},
{
path
:
'
/profile/advanced
'
,
component
:
'
.
/Profile/AdvancedProfile
'
},
//
// result
// { path: 'result/success', component: './src/pages
/Result/Success' },
// { path: 'result/fail', component: './src/pages
/Result/Error' },
// result
{
path
:
'
/result/success
'
,
component
:
'
.
/Result/Success
'
},
{
path
:
'
/result/fail
'
,
component
:
'
.
/Result/Error
'
},
// // exception
// { path: 'exception/403', component: './src/pages/Exception/403' },
// { path: 'exception/404', component: './src/pages/Exception/404' },
// { path: 'exception/500', component: './src/pages/Exception/500' },
// exception
{
path
:
'
/exception/403
'
,
component
:
'
./Exception/403
'
},
{
path
:
'
/exception/404
'
,
component
:
'
./Exception/404
'
},
{
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
...
...
@@ -102,9 +107,9 @@ export default {
common
:
path
.
resolve
(
__dirname
,
'
../src/common/
'
),
},
ignoreMomentLocale
:
true
,
theme
:
'
./src
/theme.js
'
,
// theme: '.
/theme.js',
// html: { TODO remove
// template: './
src/
index.ejs',
// template: './index.ejs',
// },
publicPath
:
'
/
'
,
// TODO check hash config
...
...
@@ -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"
// }
// ]
src/common/menu.js
View file @
dc5b0f67
...
...
@@ -199,19 +199,19 @@ const menuData = [
{
name
:
'
dashboard
'
,
icon
:
'
dashboard
'
,
path
:
'
D
ashboard
'
,
path
:
'
d
ashboard
'
,
children
:
[
{
name
:
'
分析页
'
,
path
:
'
A
nalysis
'
,
path
:
'
a
nalysis
'
,
},
{
name
:
'
监控页
'
,
path
:
'
M
onitor
'
,
path
:
'
m
onitor
'
,
},
{
name
:
'
工作台
'
,
path
:
'
W
orkplace
'
,
path
:
'
w
orkplace
'
,
// hideInBreadcrumb: true,
// hideInMenu: true,
},
...
...
@@ -220,55 +220,55 @@ const menuData = [
{
name
:
'
表单页
'
,
icon
:
'
form
'
,
path
:
'
Forms
'
,
path
:
'
form
'
,
children
:
[
{
name
:
'
基础表单
'
,
path
:
'
BasicF
orm
'
,
path
:
'
basic-f
orm
'
,
},
{
name
:
'
分步表单
'
,
path
:
'
StepF
orm
'
,
path
:
'
step-f
orm
'
,
},
{
name
:
'
高级表单
'
,
// authority: 'admin',
path
:
'
AdvancedF
orm
'
,
path
:
'
advanced-f
orm
'
,
},
],
},
{
name
:
'
列表页
'
,
icon
:
'
table
'
,
path
:
'
L
ist
'
,
path
:
'
l
ist
'
,
children
:
[
{
name
:
'
查询表格
'
,
path
:
'
TableL
ist
'
,
path
:
'
table-l
ist
'
,
},
{
name
:
'
标准列表
'
,
path
:
'
basic
L
ist
'
,
path
:
'
basic
-l
ist
'
,
},
{
name
:
'
卡片列表
'
,
path
:
'
CardL
ist
'
,
path
:
'
card-l
ist
'
,
},
{
name
:
'
搜索列表
'
,
path
:
'
S
earch
'
,
path
:
'
s
earch
'
,
children
:
[
{
name
:
'
搜索列表(文章)
'
,
path
:
'
A
rticles
'
,
path
:
'
a
rticles
'
,
},
{
name
:
'
搜索列表(项目)
'
,
path
:
'
P
rojects
'
,
path
:
'
p
rojects
'
,
},
{
name
:
'
搜索列表(应用)
'
,
path
:
'
A
pplications
'
,
path
:
'
a
pplications
'
,
},
],
},
...
...
@@ -277,15 +277,15 @@ const menuData = [
{
name
:
'
详情页
'
,
icon
:
'
profile
'
,
path
:
'
P
rofile
'
,
path
:
'
p
rofile
'
,
children
:
[
{
name
:
'
基础详情页
'
,
path
:
'
BasicProfile
'
,
path
:
'
basic
'
,
},
{
name
:
'
高级详情页
'
,
path
:
'
AdvancedProfile
'
,
path
:
'
advanced
'
,
// authority: 'admin',
},
],
...
...
@@ -293,22 +293,22 @@ const menuData = [
{
name
:
'
结果页
'
,
icon
:
'
check-circle-o
'
,
path
:
'
R
esult
'
,
path
:
'
r
esult
'
,
children
:
[
{
name
:
'
成功
'
,
path
:
'
S
uccess
'
,
path
:
'
s
uccess
'
,
},
{
name
:
'
失败
'
,
path
:
'
Error
'
,
path
:
'
fail
'
,
},
],
},
{
name
:
'
异常页
'
,
icon
:
'
warning
'
,
path
:
'
E
xception
'
,
path
:
'
e
xception
'
,
children
:
[
{
name
:
'
403
'
,
...
...
@@ -322,11 +322,11 @@ const menuData = [
name
:
'
500
'
,
path
:
'
500
'
,
},
{
name
:
'
触发异常
'
,
path
:
'
triggerException
'
,
hideInMenu
:
true
,
},
//
{
//
name: '触发异常',
//
path: 'triggerException',
//
hideInMenu: true,
//
},
],
},
{
...
...
@@ -337,30 +337,30 @@ const menuData = [
children
:
[
{
name
:
'
登录
'
,
path
:
'
L
ogin
'
,
path
:
'
l
ogin
'
,
},
{
name
:
'
注册
'
,
path
:
'
R
egister
'
,
path
:
'
r
egister
'
,
},
{
name
:
'
注册结果
'
,
path
:
'
RegisterR
esult
'
,
path
:
'
register-r
esult
'
,
},
],
},
{
name
:
'
个人页
'
,
icon
:
'
user
'
,
path
:
'
Ac
count
'
,
path
:
'
a
count
'
,
children
:
[
{
name
:
'
个人中心
'
,
path
:
'
C
enter
'
,
path
:
'
c
enter
'
,
},
{
name
:
'
个人设置
'
,
path
:
'
S
ettings
'
,
path
:
'
s
ettings
'
,
},
],
},
...
...
src/pages/Account/Center/Center.js
View file @
dc5b0f67
...
...
@@ -3,7 +3,7 @@ import { connect } from 'dva';
import
{
Link
,
routerRedux
,
Route
,
Switch
,
Redirect
}
from
'
dva/router
'
;
import
{
Card
,
Row
,
Col
,
Icon
,
Avatar
,
Tag
,
Divider
,
Spin
,
Input
}
from
'
antd
'
;
import
{
getRoutes
}
from
'
../../../utils/utils
'
;
import
GridContent
from
'
../../
../
layouts/GridContent
'
;
import
GridContent
from
'
../../layouts/GridContent
'
;
import
styles
from
'
./Center.less
'
;
@
connect
(({
list
,
loading
,
user
,
project
})
=>
({
...
...
src/pages/Account/Settings/Info.js
View file @
dc5b0f67
...
...
@@ -4,7 +4,7 @@ import { Route, routerRedux, Switch, Redirect } from 'dva/router';
import
{
Menu
}
from
'
antd
'
;
import
styles
from
'
./Info.less
'
;
import
{
getRoutes
}
from
'
../../../utils/utils
'
;
import
GridContent
from
'
../../
../
layouts/GridContent
'
;
import
GridContent
from
'
../../layouts/GridContent
'
;
const
{
Item
}
=
Menu
;
...
...
src/pages/Dashboard/Analysis.js
View file @
dc5b0f67
...
...
@@ -26,7 +26,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 @
dc5b0f67
...
...
@@ -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 @
dc5b0f67
...
...
@@ -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 @
dc5b0f67
...
...
@@ -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 @
dc5b0f67
...
...
@@ -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/
_layout
.js
→
src/pages/Forms/StepForm/
index
.js
View file @
dc5b0f67
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/
Search/
Applications.js
→
src/pages/List/Applications.js
View file @
dc5b0f67
...
...
@@ -5,7 +5,7 @@ import { Row, Col, Form, Card, Select, Icon, Avatar, List, Tooltip, Dropdown, Me
import
TagSelect
from
'
components/TagSelect
'
;
import
StandardFormRow
from
'
components/StandardFormRow
'
;
import
{
formatWan
}
from
'
../../
../
utils/utils
'
;
import
{
formatWan
}
from
'
../../utils/utils
'
;
import
styles
from
'
./Applications.less
'
;
...
...
src/pages/List/
Search/
Applications.less
→
src/pages/List/Applications.less
View file @
dc5b0f67
@import '~antd/lib/style/themes/default.less';
@import '../../
../
utils/utils.less';
@import '../../utils/utils.less';
.filterCardList {
margin-bottom: -24px;
...
...
src/pages/List/
Search/
Articles.js
→
src/pages/List/Articles.js
View file @
dc5b0f67
File moved
src/pages/List/
Search/
Articles.less
→
src/pages/List/Articles.less
View file @
dc5b0f67
@import '~antd/lib/style/themes/default.less';
@import '../../
../
utils/utils.less';
@import '../../utils/utils.less';
.listContent {
.description {
...
...
src/pages/List/BasicList.js
View file @
dc5b0f67
...
...
@@ -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 @
dc5b0f67
...
...
@@ -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/
Search/_layou
t.js
→
src/pages/List/
Lis
t.js
View file @
dc5b0f67
...
...
@@ -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/
Search/
Projects.js
→
src/pages/List/Projects.js
View file @
dc5b0f67
File moved
src/pages/List/
Search/
Projects.less
→
src/pages/List/Projects.less
View file @
dc5b0f67
@import '~antd/lib/style/themes/default.less';
@import '../../
../
utils/utils.less';
@import '../../utils/utils.less';
.coverCardList {
margin-bottom: -24px;
...
...
src/pages/List/TableList.js
View file @
dc5b0f67
...
...
@@ -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 @
dc5b0f67
...
...
@@ -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 @
dc5b0f67
...
...
@@ -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 @
dc5b0f67
import
React
,
{
Fragment
}
from
'
react
'
;
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 @
dc5b0f67
import
React
,
{
Fragment
}
from
'
react
'
;
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
;
...
...
src/pages/User/_layout.js
View file @
dc5b0f67
import
React
from
'
react
'
;
import
{
getRouterData
}
from
'
common/router
'
;
import
{
getMenuData
}
from
'
common/menu
'
;
import
UserLayout
from
'
../
../
layouts/UserLayout
'
;
import
UserLayout
from
'
../layouts/UserLayout
'
;
export
default
props
=>
{
const
{
children
,
location
}
=
props
;
...
...
src/pages/_routes.json
deleted
100644 → 0
View file @
64b5984a
[
{
"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"
}
]
src/pages/index.js
deleted
100644 → 0
View file @
64b5984a
import
React
from
'
react
'
;
export
default
()
=>
<
div
/>
;
src/layouts/BasicLayout.js
→
src/
pages/
layouts/BasicLayout.js
View file @
dc5b0f67
...
...
@@ -4,16 +4,16 @@ import React from 'react';
import
{
Layout
}
from
'
antd
'
;
import
DocumentTitle
from
'
react-document-title
'
;
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
classNames
from
'
classnames
'
;
import
pathToRegexp
from
'
path-to-regexp
'
;
import
SiderMenu
from
'
../components/SiderMenu
'
;
import
NotFound
from
'
../pages
/Exception/404
'
;
import
{
getRoutes
}
from
'
../utils/utils
'
;
import
Authorized
from
'
../utils/Authorized
'
;
import
SettingDarwer
from
'
../components/SettingDarwer
'
;
import
logo
from
'
../assets/logo.svg
'
;
import
SiderMenu
from
'
../
../
components/SiderMenu
'
;
// import NotFound from '..
/Exception/404';
//
import { getRoutes } from '../utils/utils';
import
Authorized
from
'
../
../
utils/Authorized
'
;
import
SettingDarwer
from
'
../
../
components/SettingDarwer
'
;
import
logo
from
'
../
../
assets/logo.svg
'
;
import
Footer
from
'
./Footer
'
;
import
Header
from
'
./Header
'
;
import
Context
from
'
./MenuContext
'
;
...
...
src/layouts/BlankLayout.js
→
src/
pages/
layouts/BlankLayout.js
View file @
dc5b0f67
File moved
src/layouts/Footer.js
→
src/
pages/
layouts/Footer.js
View file @
dc5b0f67
import
React
,
{
Fragment
}
from
'
react
'
;
import
{
Layout
,
Icon
}
from
'
antd
'
;
import
GlobalFooter
from
'
../components/GlobalFooter
'
;
import
GlobalFooter
from
'
../
../
components/GlobalFooter
'
;
const
{
Footer
}
=
Layout
;
const
FooterView
=
()
=>
(
...
...
src/layouts/GridContent.js
→
src/
pages/
layouts/GridContent.js
View file @
dc5b0f67
File moved
src/layouts/GridContent.less
→
src/
pages/
layouts/GridContent.less
View file @
dc5b0f67
File moved
src/layouts/Header.js
→
src/
pages/
layouts/Header.js
View file @
dc5b0f67
...
...
@@ -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
'
;
import
TopNavHeader
from
'
../
../
components/TopNavHeader
'
;
import
styles
from
'
./Header.less
'
;
import
Authorized
from
'
../utils/Authorized
'
;
import
Authorized
from
'
../
../
utils/Authorized
'
;
const
{
Header
}
=
Layout
;
...
...
src/layouts/Header.less
→
src/
pages/
layouts/Header.less
View file @
dc5b0f67
File moved
src/layouts/LoadingPage.js
→
src/
pages/
layouts/LoadingPage.js
View file @
dc5b0f67
File moved
src/layouts/MenuContext.js
→
src/
pages/
layouts/MenuContext.js
View file @
dc5b0f67
File moved
src/layouts/PageHeaderLayout.js
→
src/
pages/
layouts/PageHeaderLayout.js
View file @
dc5b0f67
import
React
from
'
react
'
;
import
{
Link
}
from
'
dva/router
'
;
import
PageHeader
from
'
../components/PageHeader
'
;
import
PageHeader
from
'
../
../
components/PageHeader
'
;
import
GridContent
from
'
./GridContent
'
;
import
styles
from
'
./PageHeaderLayout.less
'
;
import
MenuContext
from
'
./MenuContext
'
;
...
...
src/layouts/PageHeaderLayout.less
→
src/
pages/
layouts/PageHeaderLayout.less
View file @
dc5b0f67
File moved
src/layouts/UserLayout.js
→
src/
pages/
layouts/UserLayout.js
View file @
dc5b0f67
File moved
src/layouts/UserLayout.less
→
src/
pages/
layouts/UserLayout.less
View file @
dc5b0f67
File moved
src/layouts/index.js
→
src/
pages/
layouts/index.js
View file @
dc5b0f67
File moved
src/theme.js
deleted
100644 → 0
View file @
64b5984a
// https://github.com/ant-design/ant-design/blob/master/components/style/themes/default.less
module
.
exports
=
{
// 'primary-color': '#10e99b',
'
card-actions-background
'
:
'
#f5f8fa
'
,
};
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