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
P
pro-blocks
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
pro-blocks
Commits
304574aa
Commit
304574aa
authored
Aug 15, 2018
by
sorrycc
Committed by
陈帅
Aug 17, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
code style, use @/layouts/ and remove /index affix
parent
ecd12e56
Changes
18
Show whitespace changes
Inline
Side-by-side
Showing
18 changed files
with
24 additions
and
24 deletions
+24
-24
src/components/Authorized/Secured.js
src/components/Authorized/Secured.js
+1
-1
src/layouts/BasicLayout.js
src/layouts/BasicLayout.js
+2
-2
src/layouts/Footer.js
src/layouts/Footer.js
+1
-1
src/layouts/Header.js
src/layouts/Header.js
+2
-2
src/layouts/UserLayout.js
src/layouts/UserLayout.js
+1
-1
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
+3
-3
src/pages/Dashboard/Monitor.js
src/pages/Dashboard/Monitor.js
+2
-2
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
+2
-2
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
No files found.
src/components/Authorized/Secured.js
View file @
304574aa
import
React
from
'
react
'
;
import
Exception
from
'
../Exception
/index
'
;
import
Exception
from
'
../Exception
'
;
import
CheckPermissions
from
'
./CheckPermissions
'
;
/**
* 默认不能访问任何页面
...
...
src/layouts/BasicLayout.js
View file @
304574aa
...
...
@@ -7,9 +7,9 @@ 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
/index
'
;
import
SiderMenu
from
'
../components/SiderMenu
'
;
import
Authorized
from
'
../utils/Authorized
'
;
import
SettingDarwer
from
'
../components/SettingDarwer
/index
'
;
import
SettingDarwer
from
'
../components/SettingDarwer
'
;
import
logo
from
'
../assets/logo.svg
'
;
import
Footer
from
'
./Footer
'
;
import
Header
from
'
./Header
'
;
...
...
src/layouts/Footer.js
View file @
304574aa
import
React
,
{
Fragment
}
from
'
react
'
;
import
{
Layout
,
Icon
}
from
'
antd
'
;
import
GlobalFooter
from
'
../components/GlobalFooter
/index
'
;
import
GlobalFooter
from
'
../components/GlobalFooter
'
;
const
{
Footer
}
=
Layout
;
const
FooterView
=
()
=>
(
...
...
src/layouts/Header.js
View file @
304574aa
...
...
@@ -3,8 +3,8 @@ import { Layout, message } from 'antd';
import
Animate
from
'
rc-animate
'
;
import
{
connect
}
from
'
dva
'
;
import
{
routerRedux
}
from
'
dva/router
'
;
import
GlobalHeader
from
'
../components/GlobalHeader
/index
'
;
import
TopNavHeader
from
'
../components/TopNavHeader
/index
'
;
import
GlobalHeader
from
'
../components/GlobalHeader
'
;
import
TopNavHeader
from
'
../components/TopNavHeader
'
;
import
styles
from
'
./Header.less
'
;
import
Authorized
from
'
../utils/Authorized
'
;
...
...
src/layouts/UserLayout.js
View file @
304574aa
import
React
,
{
Fragment
}
from
'
react
'
;
import
{
Link
}
from
'
dva/router
'
;
import
{
Icon
}
from
'
antd
'
;
import
GlobalFooter
from
'
../components/GlobalFooter
/index
'
;
import
GlobalFooter
from
'
../components/GlobalFooter
'
;
import
styles
from
'
./UserLayout.less
'
;
import
logo
from
'
../assets/logo.svg
'
;
...
...
src/pages/Account/Center/Center.js
View file @
304574aa
...
...
@@ -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 @
304574aa
...
...
@@ -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 @
304574aa
...
...
@@ -27,9 +27,9 @@ import {
import
Trend
from
'
components/Trend
'
;
import
NumberInfo
from
'
components/NumberInfo
'
;
import
numeral
from
'
numeral
'
;
import
GridContent
from
'
../..
/layouts/GridContent
'
;
import
Yuan
from
'
../..
/utils/Yuan
'
;
import
{
getTimeDistance
}
from
'
../..
/utils/utils
'
;
import
GridContent
from
'
@
/layouts/GridContent
'
;
import
Yuan
from
'
@
/utils/Yuan
'
;
import
{
getTimeDistance
}
from
'
@
/utils/utils
'
;
import
styles
from
'
./Analysis.less
'
;
...
...
src/pages/Dashboard/Monitor.js
View file @
304574aa
...
...
@@ -6,9 +6,9 @@ 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
Authorized
from
'
@
/utils/Authorized
'
;
import
styles
from
'
./Monitor.less
'
;
const
{
Secured
}
=
Authorized
;
...
...
src/pages/Forms/AdvancedForm.js
View file @
304574aa
...
...
@@ -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 @
304574aa
...
...
@@ -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 @
304574aa
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 @
304574aa
...
...
@@ -21,8 +21,8 @@ import {
Select
,
}
from
'
antd
'
;
import
PageHeaderLayout
from
'
../..
/layouts/PageHeaderLayout
'
;
import
Result
from
'
../..
/components/Result
'
;
import
PageHeaderLayout
from
'
@
/layouts/PageHeaderLayout
'
;
import
Result
from
'
@
/components/Result
'
;
import
styles
from
'
./BasicList.less
'
;
...
...
src/pages/List/CardList.js
View file @
304574aa
...
...
@@ -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 @
304574aa
...
...
@@ -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 @
304574aa
...
...
@@ -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 @
304574aa
...
...
@@ -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 @
304574aa
...
...
@@ -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
;
...
...
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