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
a29ef6b3
Commit
a29ef6b3
authored
Sep 06, 2018
by
lijiehua
Committed by
偏右
Sep 06, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix lint error
parent
293e55a1
Changes
25
Show whitespace changes
Inline
Side-by-side
Showing
25 changed files
with
51 additions
and
24 deletions
+51
-24
src/pages/Account/Center/Applications.js
src/pages/Account/Center/Applications.js
+2
-1
src/pages/Account/Center/Articles.js
src/pages/Account/Center/Articles.js
+2
-1
src/pages/Account/Center/Projects.js
src/pages/Account/Center/Projects.js
+2
-1
src/pages/Account/Settings/BaseView.js
src/pages/Account/Settings/BaseView.js
+1
-0
src/pages/Account/Settings/BindingView.js
src/pages/Account/Settings/BindingView.js
+1
-0
src/pages/Account/Settings/GeographicView.js
src/pages/Account/Settings/GeographicView.js
+2
-1
src/pages/Account/Settings/Info.js
src/pages/Account/Settings/Info.js
+2
-1
src/pages/Account/Settings/NotificationView.js
src/pages/Account/Settings/NotificationView.js
+1
-0
src/pages/Account/Settings/SecurityView.js
src/pages/Account/Settings/SecurityView.js
+1
-0
src/pages/Exception/TriggerException.js
src/pages/Exception/TriggerException.js
+2
-1
src/pages/Forms/BasicForm.js
src/pages/Forms/BasicForm.js
+2
-1
src/pages/Forms/StepForm/Step1.js
src/pages/Forms/StepForm/Step1.js
+2
-1
src/pages/Forms/StepForm/Step2.js
src/pages/Forms/StepForm/Step2.js
+5
-4
src/pages/Forms/StepForm/Step3.js
src/pages/Forms/StepForm/Step3.js
+2
-1
src/pages/Forms/TableForm.js
src/pages/Forms/TableForm.js
+3
-1
src/pages/List/Applications.js
src/pages/List/Applications.js
+2
-1
src/pages/List/Articles.js
src/pages/List/Articles.js
+2
-1
src/pages/List/BasicList.js
src/pages/List/BasicList.js
+2
-1
src/pages/List/CardList.js
src/pages/List/CardList.js
+2
-1
src/pages/List/List.js
src/pages/List/List.js
+2
-1
src/pages/List/Projects.js
src/pages/List/Projects.js
+3
-1
src/pages/List/TableList.js
src/pages/List/TableList.js
+2
-1
src/pages/Profile/AdvancedProfile.js
src/pages/Profile/AdvancedProfile.js
+2
-1
src/pages/Profile/BasicProfile.js
src/pages/Profile/BasicProfile.js
+2
-1
src/pages/User/Register.js
src/pages/User/Register.js
+2
-1
No files found.
src/pages/Account/Center/Applications.js
View file @
a29ef6b3
...
@@ -5,7 +5,6 @@ import { connect } from 'dva';
...
@@ -5,7 +5,6 @@ import { connect } from 'dva';
import
{
formatWan
}
from
'
@/utils/utils
'
;
import
{
formatWan
}
from
'
@/utils/utils
'
;
import
stylesApplications
from
'
../../List/Applications.less
'
;
import
stylesApplications
from
'
../../List/Applications.less
'
;
export
default
@
connect
(({
list
})
=>
({
@
connect
(({
list
})
=>
({
list
,
list
,
}))
}))
...
@@ -85,3 +84,5 @@ class Center extends PureComponent {
...
@@ -85,3 +84,5 @@ class Center extends PureComponent {
);
);
}
}
}
}
export
default
Center
;
src/pages/Account/Center/Articles.js
View file @
a29ef6b3
...
@@ -5,7 +5,6 @@ import { connect } from 'dva';
...
@@ -5,7 +5,6 @@ import { connect } from 'dva';
import
stylesArticles
from
'
../../List/Articles.less
'
;
import
stylesArticles
from
'
../../List/Articles.less
'
;
import
styles
from
'
./Articles.less
'
;
import
styles
from
'
./Articles.less
'
;
export
default
@
connect
(({
list
})
=>
({
@
connect
(({
list
})
=>
({
list
,
list
,
}))
}))
...
@@ -68,3 +67,5 @@ class Center extends PureComponent {
...
@@ -68,3 +67,5 @@ class Center extends PureComponent {
);
);
}
}
}
}
export
default
Center
;
src/pages/Account/Center/Projects.js
View file @
a29ef6b3
...
@@ -5,7 +5,6 @@ import { connect } from 'dva';
...
@@ -5,7 +5,6 @@ import { connect } from 'dva';
import
AvatarList
from
'
@/components/AvatarList
'
;
import
AvatarList
from
'
@/components/AvatarList
'
;
import
stylesProjects
from
'
../../List/Projects.less
'
;
import
stylesProjects
from
'
../../List/Projects.less
'
;
export
default
@
connect
(({
list
})
=>
({
@
connect
(({
list
})
=>
({
list
,
list
,
}))
}))
...
@@ -49,3 +48,5 @@ class Center extends PureComponent {
...
@@ -49,3 +48,5 @@ class Center extends PureComponent {
);
);
}
}
}
}
export
default
Center
;
src/pages/Account/Settings/BaseView.js
View file @
a29ef6b3
...
@@ -186,4 +186,5 @@ class BaseView extends Component {
...
@@ -186,4 +186,5 @@ class BaseView extends Component {
);
);
}
}
}
}
export
default
BaseView
;
export
default
BaseView
;
src/pages/Account/Settings/BindingView.js
View file @
a29ef6b3
...
@@ -56,4 +56,5 @@ class BindingView extends Component {
...
@@ -56,4 +56,5 @@ class BindingView extends Component {
);
);
}
}
}
}
export
default
BindingView
;
export
default
BindingView
;
src/pages/Account/Settings/GeographicView.js
View file @
a29ef6b3
...
@@ -10,7 +10,6 @@ const nullSlectItem = {
...
@@ -10,7 +10,6 @@ const nullSlectItem = {
key
:
''
,
key
:
''
,
};
};
export
default
@
connect
(({
geographic
})
=>
{
@
connect
(({
geographic
})
=>
{
const
{
province
,
isLoading
,
city
}
=
geographic
;
const
{
province
,
isLoading
,
city
}
=
geographic
;
return
{
return
{
...
@@ -125,3 +124,5 @@ class GeographicView extends PureComponent {
...
@@ -125,3 +124,5 @@ class GeographicView extends PureComponent {
);
);
}
}
}
}
export
default
GeographicView
;
src/pages/Account/Settings/Info.js
View file @
a29ef6b3
...
@@ -8,7 +8,6 @@ import styles from './Info.less';
...
@@ -8,7 +8,6 @@ import styles from './Info.less';
const
{
Item
}
=
Menu
;
const
{
Item
}
=
Menu
;
export
default
@
connect
(({
user
})
=>
({
@
connect
(({
user
})
=>
({
currentUser
:
user
.
currentUser
,
currentUser
:
user
.
currentUser
,
}))
}))
...
@@ -122,3 +121,5 @@ class Info extends Component {
...
@@ -122,3 +121,5 @@ class Info extends Component {
);
);
}
}
}
}
export
default
Info
;
src/pages/Account/Settings/NotificationView.js
View file @
a29ef6b3
...
@@ -46,4 +46,5 @@ class NotificationView extends Component {
...
@@ -46,4 +46,5 @@ class NotificationView extends Component {
);
);
}
}
}
}
export
default
NotificationView
;
export
default
NotificationView
;
src/pages/Account/Settings/SecurityView.js
View file @
a29ef6b3
...
@@ -98,4 +98,5 @@ class SecurityView extends Component {
...
@@ -98,4 +98,5 @@ class SecurityView extends Component {
);
);
}
}
}
}
export
default
SecurityView
;
export
default
SecurityView
;
src/pages/Exception/TriggerException.js
View file @
a29ef6b3
...
@@ -3,7 +3,6 @@ import { Button, Spin, Card } from 'antd';
...
@@ -3,7 +3,6 @@ import { Button, Spin, Card } from 'antd';
import
{
connect
}
from
'
dva
'
;
import
{
connect
}
from
'
dva
'
;
import
styles
from
'
./style.less
'
;
import
styles
from
'
./style.less
'
;
export
default
@
connect
(
state
=>
({
@
connect
(
state
=>
({
isloading
:
state
.
error
.
isloading
,
isloading
:
state
.
error
.
isloading
,
}))
}))
...
@@ -47,3 +46,5 @@ class TriggerException extends PureComponent {
...
@@ -47,3 +46,5 @@ class TriggerException extends PureComponent {
);
);
}
}
}
}
export
default
TriggerException
;
src/pages/Forms/BasicForm.js
View file @
a29ef6b3
...
@@ -20,7 +20,6 @@ const { Option } = Select;
...
@@ -20,7 +20,6 @@ const { Option } = Select;
const
{
RangePicker
}
=
DatePicker
;
const
{
RangePicker
}
=
DatePicker
;
const
{
TextArea
}
=
Input
;
const
{
TextArea
}
=
Input
;
export
default
@
connect
(({
loading
})
=>
({
@
connect
(({
loading
})
=>
({
submitting
:
loading
.
effects
[
'
form/submitRegularForm
'
],
submitting
:
loading
.
effects
[
'
form/submitRegularForm
'
],
}))
}))
...
@@ -201,3 +200,5 @@ class BasicForms extends PureComponent {
...
@@ -201,3 +200,5 @@ class BasicForms extends PureComponent {
);
);
}
}
}
}
export
default
BasicForms
;
src/pages/Forms/StepForm/Step1.js
View file @
a29ef6b3
...
@@ -15,7 +15,6 @@ const formItemLayout = {
...
@@ -15,7 +15,6 @@ const formItemLayout = {
},
},
};
};
export
default
@
connect
(({
form
})
=>
({
@
connect
(({
form
})
=>
({
data
:
form
.
step
,
data
:
form
.
step
,
}))
}))
...
@@ -112,3 +111,5 @@ class Step1 extends React.PureComponent {
...
@@ -112,3 +111,5 @@ class Step1 extends React.PureComponent {
);
);
}
}
}
}
export
default
Step1
;
src/pages/Forms/StepForm/Step2.js
View file @
a29ef6b3
...
@@ -14,6 +14,10 @@ const formItemLayout = {
...
@@ -14,6 +14,10 @@ const formItemLayout = {
},
},
};
};
@
connect
(({
form
,
loading
})
=>
({
submitting
:
loading
.
effects
[
'
form/submitStepForm
'
],
data
:
form
.
step
,
}))
@
Form
.
create
()
@
Form
.
create
()
class
Step2
extends
React
.
PureComponent
{
class
Step2
extends
React
.
PureComponent
{
render
()
{
render
()
{
...
@@ -92,7 +96,4 @@ class Step2 extends React.PureComponent {
...
@@ -92,7 +96,4 @@ class Step2 extends React.PureComponent {
}
}
}
}
export
default
connect
(({
form
,
loading
})
=>
({
export
default
Step2
;
submitting
:
loading
.
effects
[
'
form/submitStepForm
'
],
data
:
form
.
step
,
}))(
Step2
);
src/pages/Forms/StepForm/Step3.js
View file @
a29ef6b3
...
@@ -5,7 +5,6 @@ import router from 'umi/router';
...
@@ -5,7 +5,6 @@ import router from 'umi/router';
import
Result
from
'
@/components/Result
'
;
import
Result
from
'
@/components/Result
'
;
import
styles
from
'
./style.less
'
;
import
styles
from
'
./style.less
'
;
export
default
@
connect
(({
form
})
=>
({
@
connect
(({
form
})
=>
({
data
:
form
.
step
,
data
:
form
.
step
,
}))
}))
...
@@ -71,3 +70,5 @@ class Step3 extends React.PureComponent {
...
@@ -71,3 +70,5 @@ class Step3 extends React.PureComponent {
);
);
}
}
}
}
export
default
Step3
;
src/pages/Forms/TableForm.js
View file @
a29ef6b3
...
@@ -3,7 +3,7 @@ import { Table, Button, Input, message, Popconfirm, Divider } from 'antd';
...
@@ -3,7 +3,7 @@ import { Table, Button, Input, message, Popconfirm, Divider } from 'antd';
import
isEqual
from
'
lodash/isEqual
'
;
import
isEqual
from
'
lodash/isEqual
'
;
import
styles
from
'
./style.less
'
;
import
styles
from
'
./style.less
'
;
export
default
class
TableForm
extends
PureComponent
{
class
TableForm
extends
PureComponent
{
index
=
0
;
index
=
0
;
cacheOriginData
=
{};
cacheOriginData
=
{};
...
@@ -257,3 +257,5 @@ export default class TableForm extends PureComponent {
...
@@ -257,3 +257,5 @@ export default class TableForm extends PureComponent {
);
);
}
}
}
}
export
default
TableForm
;
src/pages/List/Applications.js
View file @
a29ef6b3
...
@@ -12,7 +12,6 @@ import styles from './Applications.less';
...
@@ -12,7 +12,6 @@ import styles from './Applications.less';
const
{
Option
}
=
Select
;
const
{
Option
}
=
Select
;
const
FormItem
=
Form
.
Item
;
const
FormItem
=
Form
.
Item
;
export
default
@
Form
.
create
()
@
Form
.
create
()
@
connect
(({
list
,
loading
})
=>
({
@
connect
(({
list
,
loading
})
=>
({
list
,
list
,
...
@@ -193,3 +192,5 @@ class FilterCardList extends PureComponent {
...
@@ -193,3 +192,5 @@ class FilterCardList extends PureComponent {
);
);
}
}
}
}
export
default
FilterCardList
;
src/pages/List/Articles.js
View file @
a29ef6b3
...
@@ -12,7 +12,6 @@ const FormItem = Form.Item;
...
@@ -12,7 +12,6 @@ const FormItem = Form.Item;
const
pageSize
=
5
;
const
pageSize
=
5
;
export
default
@
Form
.
create
()
@
Form
.
create
()
@
connect
(({
list
,
loading
})
=>
({
@
connect
(({
list
,
loading
})
=>
({
list
,
list
,
...
@@ -240,3 +239,5 @@ class SearchList extends Component {
...
@@ -240,3 +239,5 @@ class SearchList extends Component {
);
);
}
}
}
}
export
default
SearchList
;
src/pages/List/BasicList.js
View file @
a29ef6b3
...
@@ -32,7 +32,6 @@ const RadioGroup = Radio.Group;
...
@@ -32,7 +32,6 @@ const RadioGroup = Radio.Group;
const
SelectOption
=
Select
.
Option
;
const
SelectOption
=
Select
.
Option
;
const
{
Search
,
TextArea
}
=
Input
;
const
{
Search
,
TextArea
}
=
Input
;
export
default
@
connect
(({
list
,
loading
})
=>
({
@
connect
(({
list
,
loading
})
=>
({
list
,
list
,
loading
:
loading
.
models
.
list
,
loading
:
loading
.
models
.
list
,
...
@@ -337,3 +336,5 @@ class BasicList extends PureComponent {
...
@@ -337,3 +336,5 @@ class BasicList extends PureComponent {
);
);
}
}
}
}
export
default
BasicList
;
src/pages/List/CardList.js
View file @
a29ef6b3
...
@@ -7,7 +7,6 @@ import PageHeaderWrapper from '@/components/PageHeaderWrapper';
...
@@ -7,7 +7,6 @@ import PageHeaderWrapper from '@/components/PageHeaderWrapper';
import
styles
from
'
./CardList.less
'
;
import
styles
from
'
./CardList.less
'
;
export
default
@
connect
(({
list
,
loading
})
=>
({
@
connect
(({
list
,
loading
})
=>
({
list
,
list
,
loading
:
loading
.
models
.
list
,
loading
:
loading
.
models
.
list
,
...
@@ -98,3 +97,5 @@ class CardList extends PureComponent {
...
@@ -98,3 +97,5 @@ class CardList extends PureComponent {
);
);
}
}
}
}
export
default
CardList
;
src/pages/List/List.js
View file @
a29ef6b3
...
@@ -4,7 +4,6 @@ import { connect } from 'dva';
...
@@ -4,7 +4,6 @@ import { connect } from 'dva';
import
{
Input
}
from
'
antd
'
;
import
{
Input
}
from
'
antd
'
;
import
PageHeaderWrapper
from
'
@/components/PageHeaderWrapper
'
;
import
PageHeaderWrapper
from
'
@/components/PageHeaderWrapper
'
;
export
default
@
connect
()
@
connect
()
class
SearchList
extends
Component
{
class
SearchList
extends
Component
{
handleTabChange
=
key
=>
{
handleTabChange
=
key
=>
{
...
@@ -72,3 +71,5 @@ class SearchList extends Component {
...
@@ -72,3 +71,5 @@ class SearchList extends Component {
);
);
}
}
}
}
export
default
SearchList
;
src/pages/List/Projects.js
View file @
a29ef6b3
...
@@ -14,7 +14,7 @@ const { Option } = Select;
...
@@ -14,7 +14,7 @@ const { Option } = Select;
const
FormItem
=
Form
.
Item
;
const
FormItem
=
Form
.
Item
;
/* eslint react/no-array-index-key: 0 */
/* eslint react/no-array-index-key: 0 */
export
default
@
Form
.
create
()
@
Form
.
create
()
@
connect
(({
list
,
loading
})
=>
({
@
connect
(({
list
,
loading
})
=>
({
list
,
list
,
...
@@ -163,3 +163,5 @@ class CoverCardList extends PureComponent {
...
@@ -163,3 +163,5 @@ class CoverCardList extends PureComponent {
);
);
}
}
}
}
export
default
CoverCardList
;
src/pages/List/TableList.js
View file @
a29ef6b3
...
@@ -266,7 +266,6 @@ class UpdateForm extends PureComponent {
...
@@ -266,7 +266,6 @@ class UpdateForm extends PureComponent {
}
}
/* eslint react/no-multi-comp:0 */
/* eslint react/no-multi-comp:0 */
export
default
@
connect
(({
rule
,
loading
})
=>
({
@
connect
(({
rule
,
loading
})
=>
({
rule
,
rule
,
loading
:
loading
.
models
.
rule
,
loading
:
loading
.
models
.
rule
,
...
@@ -672,3 +671,5 @@ class TableList extends PureComponent {
...
@@ -672,3 +671,5 @@ class TableList extends PureComponent {
);
);
}
}
}
}
export
default
TableList
;
src/pages/Profile/AdvancedProfile.js
View file @
a29ef6b3
...
@@ -180,7 +180,6 @@ const columns = [
...
@@ -180,7 +180,6 @@ const columns = [
},
},
];
];
export
default
@
connect
(({
profile
,
loading
})
=>
({
@
connect
(({
profile
,
loading
})
=>
({
profile
,
profile
,
loading
:
loading
.
effects
[
'
profile/fetchAdvanced
'
],
loading
:
loading
.
effects
[
'
profile/fetchAdvanced
'
],
...
@@ -350,3 +349,5 @@ class AdvancedProfile extends Component {
...
@@ -350,3 +349,5 @@ class AdvancedProfile extends Component {
);
);
}
}
}
}
export
default
AdvancedProfile
;
src/pages/Profile/BasicProfile.js
View file @
a29ef6b3
...
@@ -41,7 +41,6 @@ const progressColumns = [
...
@@ -41,7 +41,6 @@ const progressColumns = [
},
},
];
];
export
default
@
connect
(({
profile
,
loading
})
=>
({
@
connect
(({
profile
,
loading
})
=>
({
profile
,
profile
,
loading
:
loading
.
effects
[
'
profile/fetchBasic
'
],
loading
:
loading
.
effects
[
'
profile/fetchBasic
'
],
...
@@ -182,3 +181,5 @@ class BasicProfile extends Component {
...
@@ -182,3 +181,5 @@ class BasicProfile extends Component {
);
);
}
}
}
}
export
default
BasicProfile
;
src/pages/User/Register.js
View file @
a29ef6b3
...
@@ -21,7 +21,6 @@ const passwordProgressMap = {
...
@@ -21,7 +21,6 @@ const passwordProgressMap = {
poor
:
'
exception
'
,
poor
:
'
exception
'
,
};
};
export
default
@
connect
(({
register
,
loading
})
=>
({
@
connect
(({
register
,
loading
})
=>
({
register
,
register
,
submitting
:
loading
.
effects
[
'
register/submit
'
],
submitting
:
loading
.
effects
[
'
register/submit
'
],
...
@@ -290,3 +289,5 @@ class Register extends Component {
...
@@ -290,3 +289,5 @@ class Register extends Component {
);
);
}
}
}
}
export
default
Register
;
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