Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
M
Moecube Accounts Web
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
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
MyCard
Moecube Accounts Web
Commits
836b8ad6
Commit
836b8ad6
authored
Jan 17, 2023
by
mercury233
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
reselect avatar
parent
5621db3f
Pipeline
#19640
passed with stages
in 1 minute and 11 seconds
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
9 deletions
+14
-9
i18n.json
i18n.json
+2
-0
src/routes/Profiles.js
src/routes/Profiles.js
+12
-9
No files found.
i18n.json
View file @
836b8ad6
...
...
@@ -11,6 +11,7 @@
"reset-info"
:
"Reset User Info"
,
"Change-Avatar"
:
"Change Avatar"
,
"Upload-Avatar"
:
"Confirm Upload Avatar"
,
"Reselect-Avatar"
:
"Reselect Avatar"
,
"upload"
:
"upload"
,
"avatar"
:
"Avatar"
,
"nickname"
:
"Nickname"
,
...
...
@@ -107,6 +108,7 @@
"reset-info"
:
"修改信息"
,
"Change-Avatar"
:
"修改头像"
,
"Upload-Avatar"
:
"确认上传头像"
,
"Reselect-Avatar"
:
"重新选择头像"
,
"upload"
:
"上传"
,
"avatar"
:
"头像"
,
"nickname"
:
"昵称"
,
...
...
src/routes/Profiles.js
View file @
836b8ad6
...
...
@@ -107,30 +107,33 @@ class Profiles extends React.Component {
<
Form
onSubmit
=
{
this
.
onUpdateSubmit
}
>
<
FormItem
style
=
{{
display
:
'
flex
'
,
justifyContent
:
'
center
'
}}
>
<
div
style
=
{{
display
:
isUpload
?
'
flex
'
:
'
none
'
,
flexDirection
:
'
column
'
}}
>
<
div
style
=
{{
flexDirection
:
'
column
'
}}
>
<
Cropper
ref
=
{(
cropper
)
=>
{
this
.
cropper
=
cropper
;
}}
src
=
{
imageUrl
||
defaultAvatar
}
className
=
"
cropper-image
"
style
=
{{
height
:
'
300px
'
,
width
:
'
300px
'
}}
style
=
{{
height
:
'
300px
'
,
width
:
'
300px
'
,
display
:
isUpload
?
'
flex
'
:
'
none
'
}}
aspectRatio
=
{
1
/
1
}
autoCropArea
=
{
1
}
guides
/>
<
img
alt
=
"
avatar
"
style
=
{{
height
:
'
300px
'
,
width
:
'
300px
'
,
display
:
!
isUpload
?
'
flex
'
:
'
none
'
}}
src
=
{
avatar
||
imageUrl
||
defaultAvatar
}
/
>
<
br
/>
<
Button
type
=
"
primary
"
onClick
=
{
this
.
handleUpload
}
>
<
Button
type
=
"
primary
"
onClick
=
{
this
.
handleUpload
}
style
=
{{
display
:
isUpload
?
'
flex
'
:
'
none
'
}}
>
<
Icon
type
=
"
check
"
/>
<
Format
id
=
"
Upload-Avatar
"
/>
<
/Button
>
<
/div
>
<
div
style
=
{{
display
:
!
isUpload
?
'
flex
'
:
'
none
'
,
flexDirection
:
'
column
'
}}
>
<
img
alt
=
"
avatar
"
style
=
{{
height
:
'
300px
'
,
width
:
'
300px
'
}}
src
=
{
avatar
||
imageUrl
||
defaultAvatar
}
/
>
<
br
/>
<
Button
style
=
{{
padding
:
'
4px 0
'
}}
>
<
Button
type
=
"
default
"
>
<
label
style
=
{{
display
:
'
flex
'
,
flex
:
1
,
justifyContent
:
'
center
'
,
alignItems
:
'
center
'
}}
>
<
Icon
type
=
"
plus
"
/>
<
Format
id
=
"
Change-Avatar
"
/>
<
Icon
type
=
"
plus
"
/>
<
Format
id
=
"
Change-Avatar
"
style
=
{{
display
:
isUpload
?
'
flex
'
:
'
none
'
}}
/
>
<
Format
id
=
"
Reselect-Avatar
"
style
=
{{
display
:
!
isUpload
?
'
flex
'
:
'
none
'
}}
/
>
<
input
type
=
"
file
"
onChange
=
{
this
.
onGetFile
}
ref
=
{(
file
)
=>
{
this
.
file
=
file
;
...
...
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