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
7cc1fccd
Commit
7cc1fccd
authored
Aug 31, 2018
by
afc163
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove extra empty object argument
parent
5b24b0e3
Changes
9
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
19 additions
and
19 deletions
+19
-19
src/pages/Account/Settings/BaseView.js
src/pages/Account/Settings/BaseView.js
+8
-8
src/pages/Account/Settings/NotificationView.js
src/pages/Account/Settings/NotificationView.js
+2
-2
src/pages/Account/Settings/SecurityView.js
src/pages/Account/Settings/SecurityView.js
+1
-1
src/pages/Authorized.js
src/pages/Authorized.js
+1
-1
src/pages/Exception/403.js
src/pages/Exception/403.js
+1
-1
src/pages/Exception/404.js
src/pages/Exception/404.js
+1
-1
src/pages/Exception/500.js
src/pages/Exception/500.js
+1
-1
src/pages/Result/Error.js
src/pages/Result/Error.js
+2
-2
src/pages/Result/Success.js
src/pages/Result/Success.js
+2
-2
No files found.
src/pages/Account/Settings/BaseView.js
View file @
7cc1fccd
...
@@ -88,7 +88,7 @@ class BaseView extends Component {
...
@@ -88,7 +88,7 @@ class BaseView extends Component {
<
div
className
=
{
styles
.
baseView
}
ref
=
{
this
.
getViewDom
}
>
<
div
className
=
{
styles
.
baseView
}
ref
=
{
this
.
getViewDom
}
>
<
div
className
=
{
styles
.
left
}
>
<
div
className
=
{
styles
.
left
}
>
<
Form
layout
=
"
vertical
"
onSubmit
=
{
this
.
handleSubmit
}
hideRequiredMark
>
<
Form
layout
=
"
vertical
"
onSubmit
=
{
this
.
handleSubmit
}
hideRequiredMark
>
<
FormItem
label
=
{
formatMessage
({
id
:
'
app.settings.basic.email
'
}
,
{}
)}
>
<
FormItem
label
=
{
formatMessage
({
id
:
'
app.settings.basic.email
'
})}
>
{
getFieldDecorator
(
'
email
'
,
{
{
getFieldDecorator
(
'
email
'
,
{
rules
:
[
rules
:
[
{
{
...
@@ -98,7 +98,7 @@ class BaseView extends Component {
...
@@ -98,7 +98,7 @@ class BaseView extends Component {
],
],
})(
<
Input
/>
)}
})(
<
Input
/>
)}
<
/FormItem
>
<
/FormItem
>
<
FormItem
label
=
{
formatMessage
({
id
:
'
app.settings.basic.nickname
'
}
,
{}
)}
>
<
FormItem
label
=
{
formatMessage
({
id
:
'
app.settings.basic.nickname
'
})}
>
{
getFieldDecorator
(
'
name
'
,
{
{
getFieldDecorator
(
'
name
'
,
{
rules
:
[
rules
:
[
{
{
...
@@ -108,7 +108,7 @@ class BaseView extends Component {
...
@@ -108,7 +108,7 @@ class BaseView extends Component {
],
],
})(
<
Input
/>
)}
})(
<
Input
/>
)}
<
/FormItem
>
<
/FormItem
>
<
FormItem
label
=
{
formatMessage
({
id
:
'
app.settings.basic.profile
'
}
,
{}
)}
>
<
FormItem
label
=
{
formatMessage
({
id
:
'
app.settings.basic.profile
'
})}
>
{
getFieldDecorator
(
'
profile
'
,
{
{
getFieldDecorator
(
'
profile
'
,
{
rules
:
[
rules
:
[
{
{
...
@@ -118,12 +118,12 @@ class BaseView extends Component {
...
@@ -118,12 +118,12 @@ class BaseView extends Component {
],
],
})(
})(
<
Input
.
TextArea
<
Input
.
TextArea
placeholder
=
{
formatMessage
({
id
:
'
app.settings.basic.profile-placeholder
'
}
,
{}
)}
placeholder
=
{
formatMessage
({
id
:
'
app.settings.basic.profile-placeholder
'
})}
rows
=
{
4
}
rows
=
{
4
}
/
>
/
>
)}
)}
<
/FormItem
>
<
/FormItem
>
<
FormItem
label
=
{
formatMessage
({
id
:
'
app.settings.basic.country
'
}
,
{}
)}
>
<
FormItem
label
=
{
formatMessage
({
id
:
'
app.settings.basic.country
'
})}
>
{
getFieldDecorator
(
'
country
'
,
{
{
getFieldDecorator
(
'
country
'
,
{
rules
:
[
rules
:
[
{
{
...
@@ -137,7 +137,7 @@ class BaseView extends Component {
...
@@ -137,7 +137,7 @@ class BaseView extends Component {
<
/Select
>
<
/Select
>
)}
)}
<
/FormItem
>
<
/FormItem
>
<
FormItem
label
=
{
formatMessage
({
id
:
'
app.settings.basic.geographic
'
}
,
{}
)}
>
<
FormItem
label
=
{
formatMessage
({
id
:
'
app.settings.basic.geographic
'
})}
>
{
getFieldDecorator
(
'
geographic
'
,
{
{
getFieldDecorator
(
'
geographic
'
,
{
rules
:
[
rules
:
[
{
{
...
@@ -150,7 +150,7 @@ class BaseView extends Component {
...
@@ -150,7 +150,7 @@ class BaseView extends Component {
],
],
})(
<
GeographicView
/>
)}
})(
<
GeographicView
/>
)}
<
/FormItem
>
<
/FormItem
>
<
FormItem
label
=
{
formatMessage
({
id
:
'
app.settings.basic.address
'
}
,
{}
)}
>
<
FormItem
label
=
{
formatMessage
({
id
:
'
app.settings.basic.address
'
})}
>
{
getFieldDecorator
(
'
address
'
,
{
{
getFieldDecorator
(
'
address
'
,
{
rules
:
[
rules
:
[
{
{
...
@@ -160,7 +160,7 @@ class BaseView extends Component {
...
@@ -160,7 +160,7 @@ class BaseView extends Component {
],
],
})(
<
Input
/>
)}
})(
<
Input
/>
)}
<
/FormItem
>
<
/FormItem
>
<
FormItem
label
=
{
formatMessage
({
id
:
'
app.settings.basic.phone
'
}
,
{}
)}
>
<
FormItem
label
=
{
formatMessage
({
id
:
'
app.settings.basic.phone
'
})}
>
{
getFieldDecorator
(
'
phone
'
,
{
{
getFieldDecorator
(
'
phone
'
,
{
rules
:
[
rules
:
[
{
{
...
...
src/pages/Account/Settings/NotificationView.js
View file @
7cc1fccd
...
@@ -6,8 +6,8 @@ class NotificationView extends Component {
...
@@ -6,8 +6,8 @@ class NotificationView extends Component {
getData
=
()
=>
{
getData
=
()
=>
{
const
Action
=
(
const
Action
=
(
<
Switch
<
Switch
checkedChildren
=
{
formatMessage
({
id
:
'
app.settings.open
'
}
,
{}
)}
checkedChildren
=
{
formatMessage
({
id
:
'
app.settings.open
'
})}
unCheckedChildren
=
{
formatMessage
({
id
:
'
app.settings.close
'
}
,
{}
)}
unCheckedChildren
=
{
formatMessage
({
id
:
'
app.settings.close
'
})}
defaultChecked
defaultChecked
/>
/>
);
);
...
...
src/pages/Account/Settings/SecurityView.js
View file @
7cc1fccd
...
@@ -28,7 +28,7 @@ class SecurityView extends Component {
...
@@ -28,7 +28,7 @@ class SecurityView extends Component {
title
:
formatMessage
({
id
:
'
app.settings.security.password
'
},
{}),
title
:
formatMessage
({
id
:
'
app.settings.security.password
'
},
{}),
description
:
(
description
:
(
<
Fragment
>
<
Fragment
>
{
formatMessage
({
id
:
'
app.settings.security.password-description
'
}
,
{}
)}
οΌ
{
formatMessage
({
id
:
'
app.settings.security.password-description
'
})}
οΌ
{
passwordStrength
.
strong
}
{
passwordStrength
.
strong
}
<
/Fragment
>
<
/Fragment
>
),
),
...
...
src/pages/Authorized.js
View file @
7cc1fccd
...
@@ -21,7 +21,7 @@ export default ({ children, route, location }) => {
...
@@ -21,7 +21,7 @@ export default ({ children, route, location }) => {
const
noMatch
=
(
const
noMatch
=
(
<
Exception
<
Exception
type
=
"
403
"
type
=
"
403
"
desc
=
{
formatMessage
({
id
:
'
app.exception.description.403
'
}
,
{}
)}
desc
=
{
formatMessage
({
id
:
'
app.exception.description.403
'
})}
linkElement
=
{
Link
}
linkElement
=
{
Link
}
backText
=
{
formatMessage
({
id
:
'
app.exception.back
'
})}
backText
=
{
formatMessage
({
id
:
'
app.exception.back
'
})}
/
>
/
>
...
...
src/pages/Exception/403.js
View file @
7cc1fccd
...
@@ -6,7 +6,7 @@ import Exception from '@/components/Exception';
...
@@ -6,7 +6,7 @@ import Exception from '@/components/Exception';
const
Exception403
=
()
=>
(
const
Exception403
=
()
=>
(
<
Exception
<
Exception
type
=
"
403
"
type
=
"
403
"
desc
=
{
formatMessage
({
id
:
'
app.exception.description.403
'
}
,
{}
)}
desc
=
{
formatMessage
({
id
:
'
app.exception.description.403
'
})}
linkElement
=
{
Link
}
linkElement
=
{
Link
}
backText
=
{
formatMessage
({
id
:
'
app.exception.back
'
})}
backText
=
{
formatMessage
({
id
:
'
app.exception.back
'
})}
/
>
/
>
...
...
src/pages/Exception/404.js
View file @
7cc1fccd
...
@@ -6,7 +6,7 @@ import Exception from '@/components/Exception';
...
@@ -6,7 +6,7 @@ import Exception from '@/components/Exception';
const
Exception404
=
()
=>
(
const
Exception404
=
()
=>
(
<
Exception
<
Exception
type
=
"
404
"
type
=
"
404
"
desc
=
{
formatMessage
({
id
:
'
app.exception.description.404
'
}
,
{}
)}
desc
=
{
formatMessage
({
id
:
'
app.exception.description.404
'
})}
linkElement
=
{
Link
}
linkElement
=
{
Link
}
backText
=
{
formatMessage
({
id
:
'
app.exception.back
'
})}
backText
=
{
formatMessage
({
id
:
'
app.exception.back
'
})}
/
>
/
>
...
...
src/pages/Exception/500.js
View file @
7cc1fccd
...
@@ -6,7 +6,7 @@ import Exception from '@/components/Exception';
...
@@ -6,7 +6,7 @@ import Exception from '@/components/Exception';
const
Exception500
=
()
=>
(
const
Exception500
=
()
=>
(
<
Exception
<
Exception
type
=
"
500
"
type
=
"
500
"
desc
=
{
formatMessage
({
id
:
'
app.exception.description.500
'
}
,
{}
)}
desc
=
{
formatMessage
({
id
:
'
app.exception.description.500
'
})}
linkElement
=
{
Link
}
linkElement
=
{
Link
}
backText
=
{
formatMessage
({
id
:
'
app.exception.back
'
})}
backText
=
{
formatMessage
({
id
:
'
app.exception.back
'
})}
/
>
/
>
...
...
src/pages/Result/Error.js
View file @
7cc1fccd
...
@@ -55,8 +55,8 @@ export default () => (
...
@@ -55,8 +55,8 @@ export default () => (
<
Card
bordered
=
{
false
}
>
<
Card
bordered
=
{
false
}
>
<
Result
<
Result
type
=
"
error
"
type
=
"
error
"
title
=
{
formatMessage
({
id
:
'
app.result.error.title
'
}
,
{}
)}
title
=
{
formatMessage
({
id
:
'
app.result.error.title
'
})}
description
=
{
formatMessage
({
id
:
'
app.result.error.description
'
}
,
{}
)}
description
=
{
formatMessage
({
id
:
'
app.result.error.description
'
})}
extra
=
{
extra
}
extra
=
{
extra
}
actions
=
{
actions
}
actions
=
{
actions
}
style
=
{{
marginTop
:
48
,
marginBottom
:
16
}}
style
=
{{
marginTop
:
48
,
marginBottom
:
16
}}
...
...
src/pages/Result/Success.js
View file @
7cc1fccd
...
@@ -132,8 +132,8 @@ export default () => (
...
@@ -132,8 +132,8 @@ export default () => (
<
Card
bordered
=
{
false
}
>
<
Card
bordered
=
{
false
}
>
<
Result
<
Result
type
=
"
success
"
type
=
"
success
"
title
=
{
formatMessage
({
id
:
'
app.result.success.title
'
}
,
{}
)}
title
=
{
formatMessage
({
id
:
'
app.result.success.title
'
})}
description
=
{
formatMessage
({
id
:
'
app.result.success.description
'
}
,
{}
)}
description
=
{
formatMessage
({
id
:
'
app.result.success.description
'
})}
extra
=
{
extra
}
extra
=
{
extra
}
actions
=
{
actions
}
actions
=
{
actions
}
style
=
{{
marginTop
:
48
,
marginBottom
:
16
}}
style
=
{{
marginTop
:
48
,
marginBottom
:
16
}}
...
...
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