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
07dd3eb9
Commit
07dd3eb9
authored
Dec 08, 2017
by
afc163
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
change avatars
parent
00278519
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
30 additions
and
16 deletions
+30
-16
.roadhogrc.mock.js
.roadhogrc.mock.js
+1
-1
mock/api.js
mock/api.js
+20
-6
package.json
package.json
+1
-2
src/layouts/UserLayout.js
src/layouts/UserLayout.js
+2
-1
src/routes/Dashboard/Workplace.js
src/routes/Dashboard/Workplace.js
+6
-6
No files found.
.roadhogrc.mock.js
View file @
07dd3eb9
...
@@ -24,7 +24,7 @@ const proxy = {
...
@@ -24,7 +24,7 @@ const proxy = {
},
},
$body
:
{
$body
:
{
name
:
'
Serati Ma
'
,
name
:
'
Serati Ma
'
,
avatar
:
'
https://gw.alipayobjects.com/zos/rmsportal/
eHBsAsOrrJcnvFlnzNTT
.png
'
,
avatar
:
'
https://gw.alipayobjects.com/zos/rmsportal/
keeYtvRpGFVVKOOiOZDS
.png
'
,
userid
:
'
00000001
'
,
userid
:
'
00000001
'
,
notifyCount
:
12
,
notifyCount
:
12
,
},
},
...
...
mock/api.js
View file @
07dd3eb9
...
@@ -20,6 +20,20 @@ const avatars = [
...
@@ -20,6 +20,20 @@ const avatars = [
'
https://gw.alipayobjects.com/zos/rmsportal/ComBAopevLwENQdKWiIn.png
'
,
// Vue
'
https://gw.alipayobjects.com/zos/rmsportal/ComBAopevLwENQdKWiIn.png
'
,
// Vue
'
https://gw.alipayobjects.com/zos/rmsportal/nxkuOJlFJuAUhzlMTCEe.png
'
,
// Webpack
'
https://gw.alipayobjects.com/zos/rmsportal/nxkuOJlFJuAUhzlMTCEe.png
'
,
// Webpack
];
];
const
avatars2
=
[
'
https://gw.alipayobjects.com/zos/rmsportal/keeYtvRpGFVVKOOiOZDS.png
'
,
'
https://gw.alipayobjects.com/zos/rmsportal/HpGtMMahFSHCFrLHoRgp.png
'
,
'
https://gw.alipayobjects.com/zos/rmsportal/vbkXPXkeyhWWEQKpTmyB.png
'
,
'
https://gw.alipayobjects.com/zos/rmsportal/UXeAaBwlPaPqIVOjMqpK.png
'
,
'
https://gw.alipayobjects.com/zos/rmsportal/lPPRIxHBXYiVglbTqzUM.png
'
,
'
https://gw.alipayobjects.com/zos/rmsportal/gGbnPtZRDoBIzgnviJSd.png
'
,
'
https://gw.alipayobjects.com/zos/rmsportal/uDbwqVZzLhaZeVaTDahw.png
'
,
'
https://gw.alipayobjects.com/zos/rmsportal/HtgZoejyvBLuuRtmMfFh.png
'
,
'
https://gw.alipayobjects.com/zos/rmsportal/XvQuAhIgggZWZEjWJsuu.png
'
,
'
https://gw.alipayobjects.com/zos/rmsportal/RsKCNHXwelfBwCzjYfNb.png
'
,
];
const
covers
=
[
const
covers
=
[
'
https://gw.alipayobjects.com/zos/rmsportal/uMfMFlvUuceEyPpotzlq.png
'
,
'
https://gw.alipayobjects.com/zos/rmsportal/uMfMFlvUuceEyPpotzlq.png
'
,
'
https://gw.alipayobjects.com/zos/rmsportal/iZBVOIhGJiAnhplqjvZW.png
'
,
'
https://gw.alipayobjects.com/zos/rmsportal/iZBVOIhGJiAnhplqjvZW.png
'
,
...
@@ -178,7 +192,7 @@ export const getActivities = [
...
@@ -178,7 +192,7 @@ export const getActivities = [
updatedAt
:
new
Date
(),
updatedAt
:
new
Date
(),
user
:
{
user
:
{
name
:
'
林东东
'
,
name
:
'
林东东
'
,
avatar
:
avatars
[
0
],
avatar
:
avatars
2
[
0
],
},
},
group
:
{
group
:
{
name
:
'
高逼格设计天团
'
,
name
:
'
高逼格设计天团
'
,
...
@@ -195,7 +209,7 @@ export const getActivities = [
...
@@ -195,7 +209,7 @@ export const getActivities = [
updatedAt
:
new
Date
(),
updatedAt
:
new
Date
(),
user
:
{
user
:
{
name
:
'
付小小
'
,
name
:
'
付小小
'
,
avatar
:
avatars
[
1
],
avatar
:
avatars
2
[
1
],
},
},
group
:
{
group
:
{
name
:
'
高逼格设计天团
'
,
name
:
'
高逼格设计天团
'
,
...
@@ -212,7 +226,7 @@ export const getActivities = [
...
@@ -212,7 +226,7 @@ export const getActivities = [
updatedAt
:
new
Date
(),
updatedAt
:
new
Date
(),
user
:
{
user
:
{
name
:
'
曲丽丽
'
,
name
:
'
曲丽丽
'
,
avatar
:
avatars
[
2
],
avatar
:
avatars
2
[
2
],
},
},
group
:
{
group
:
{
name
:
'
中二少女团
'
,
name
:
'
中二少女团
'
,
...
@@ -229,7 +243,7 @@ export const getActivities = [
...
@@ -229,7 +243,7 @@ export const getActivities = [
updatedAt
:
new
Date
(),
updatedAt
:
new
Date
(),
user
:
{
user
:
{
name
:
'
周星星
'
,
name
:
'
周星星
'
,
avatar
:
avatars
[
3
],
avatar
:
avatars
2
[
3
],
},
},
project
:
{
project
:
{
name
:
'
5 月日常迭代
'
,
name
:
'
5 月日常迭代
'
,
...
@@ -242,7 +256,7 @@ export const getActivities = [
...
@@ -242,7 +256,7 @@ export const getActivities = [
updatedAt
:
new
Date
(),
updatedAt
:
new
Date
(),
user
:
{
user
:
{
name
:
'
朱偏右
'
,
name
:
'
朱偏右
'
,
avatar
:
avatars
[
4
],
avatar
:
avatars
2
[
4
],
},
},
project
:
{
project
:
{
name
:
'
工程效能
'
,
name
:
'
工程效能
'
,
...
@@ -259,7 +273,7 @@ export const getActivities = [
...
@@ -259,7 +273,7 @@ export const getActivities = [
updatedAt
:
new
Date
(),
updatedAt
:
new
Date
(),
user
:
{
user
:
{
name
:
'
乐哥
'
,
name
:
'
乐哥
'
,
avatar
:
avatars
[
5
],
avatar
:
avatars
2
[
5
],
},
},
group
:
{
group
:
{
name
:
'
程序员日常
'
,
name
:
'
程序员日常
'
,
...
...
package.json
View file @
07dd3eb9
...
@@ -96,8 +96,7 @@
...
@@ -96,8 +96,7 @@
},
},
"lint-staged"
:
{
"lint-staged"
:
{
"**/*.{js,jsx}"
:
"lint-staged:js"
,
"**/*.{js,jsx}"
:
"lint-staged:js"
,
"**/*.less"
:
"stylelint --syntax less"
,
"**/*.less"
:
"stylelint --syntax less"
"*.{js,jsx,less,json}"
:
[
"prettier --write"
,
"git add"
]
},
},
"browserslist"
:
[
"> 1%"
,
"last 2 versions"
,
"not ie <= 10"
]
"browserslist"
:
[
"> 1%"
,
"last 2 versions"
,
"not ie <= 10"
]
}
}
src/layouts/UserLayout.js
View file @
07dd3eb9
...
@@ -5,6 +5,7 @@ import DocumentTitle from 'react-document-title';
...
@@ -5,6 +5,7 @@ import DocumentTitle from 'react-document-title';
import
{
Icon
}
from
'
antd
'
;
import
{
Icon
}
from
'
antd
'
;
import
GlobalFooter
from
'
../components/GlobalFooter
'
;
import
GlobalFooter
from
'
../components/GlobalFooter
'
;
import
styles
from
'
./UserLayout.less
'
;
import
styles
from
'
./UserLayout.less
'
;
import
logo
from
'
../assets/logo.svg
'
;
const
links
=
[{
const
links
=
[{
title
:
'
帮助
'
,
title
:
'
帮助
'
,
...
@@ -47,7 +48,7 @@ class UserLayout extends React.PureComponent {
...
@@ -47,7 +48,7 @@ class UserLayout extends React.PureComponent {
<
div
className
=
{
styles
.
top
}
>
<
div
className
=
{
styles
.
top
}
>
<
div
className
=
{
styles
.
header
}
>
<
div
className
=
{
styles
.
header
}
>
<
Link
to
=
"
/
"
>
<
Link
to
=
"
/
"
>
<
img
alt
=
"
"
className
=
{
styles
.
logo
}
src
=
"
https://gw.alipayobjects.com/zos/rmsportal/NGCCBOENpgTXpBWUIPnI.svg
"
/>
<
img
alt
=
"
logo
"
className
=
{
styles
.
logo
}
src
=
{
logo
}
/
>
<
span
className
=
{
styles
.
title
}
>
Ant
Design
<
/span
>
<
span
className
=
{
styles
.
title
}
>
Ant
Design
<
/span
>
<
/Link
>
<
/Link
>
<
/div
>
<
/div
>
...
...
src/routes/Dashboard/Workplace.js
View file @
07dd3eb9
...
@@ -41,31 +41,31 @@ const members = [
...
@@ -41,31 +41,31 @@ const members = [
{
{
id
:
'
members-1
'
,
id
:
'
members-1
'
,
title
:
'
科学搬砖组
'
,
title
:
'
科学搬砖组
'
,
logo
:
'
https://gw.alipayobjects.com/zos/rmsportal/
WdGqmHpayyMjiEhcKoVE
.png
'
,
logo
:
'
https://gw.alipayobjects.com/zos/rmsportal/
keeYtvRpGFVVKOOiOZDS
.png
'
,
link
:
''
,
link
:
''
,
},
},
{
{
id
:
'
members-2
'
,
id
:
'
members-2
'
,
title
:
'
程序员日常
'
,
title
:
'
程序员日常
'
,
logo
:
'
https://gw.alipayobjects.com/zos/rmsportal/
zOsKZmFRdUtvpqCImOVY
.png
'
,
logo
:
'
https://gw.alipayobjects.com/zos/rmsportal/
HpGtMMahFSHCFrLHoRgp
.png
'
,
link
:
''
,
link
:
''
,
},
},
{
{
id
:
'
members-3
'
,
id
:
'
members-3
'
,
title
:
'
设计天团
'
,
title
:
'
设计天团
'
,
logo
:
'
https://gw.alipayobjects.com/zos/rmsportal/
dURIMkkrRFpPgTuzkwn
B.png
'
,
logo
:
'
https://gw.alipayobjects.com/zos/rmsportal/
vbkXPXkeyhWWEQKpTmy
B.png
'
,
link
:
''
,
link
:
''
,
},
},
{
{
id
:
'
members-4
'
,
id
:
'
members-4
'
,
title
:
'
中二少女团
'
,
title
:
'
中二少女团
'
,
logo
:
'
https://gw.alipayobjects.com/zos/rmsportal/
sfjbOqnsXXJgNCjCzDBL
.png
'
,
logo
:
'
https://gw.alipayobjects.com/zos/rmsportal/
UXeAaBwlPaPqIVOjMqpK
.png
'
,
link
:
''
,
link
:
''
,
},
},
{
{
id
:
'
members-5
'
,
id
:
'
members-5
'
,
title
:
'
骗你学计算机
'
,
title
:
'
骗你学计算机
'
,
logo
:
'
https://gw.alipayobjects.com/zos/rmsportal/
siCrBXXhmvTQGWPNLBow
.png
'
,
logo
:
'
https://gw.alipayobjects.com/zos/rmsportal/
lPPRIxHBXYiVglbTqzUM
.png
'
,
link
:
''
,
link
:
''
,
},
},
];
];
...
@@ -139,7 +139,7 @@ export default class Workplace extends PureComponent {
...
@@ -139,7 +139,7 @@ export default class Workplace extends PureComponent {
const
pageHeaderContent
=
(
const
pageHeaderContent
=
(
<
div
className
=
{
styles
.
pageHeaderContent
}
>
<
div
className
=
{
styles
.
pageHeaderContent
}
>
<
div
className
=
{
styles
.
avatar
}
>
<
div
className
=
{
styles
.
avatar
}
>
<
Avatar
size
=
"
large
"
src
=
"
https://gw.alipayobjects.com/zos/rmsportal/
lctvVCLfRpYCkYxAsiVQ
.png
"
/>
<
Avatar
size
=
"
large
"
src
=
"
https://gw.alipayobjects.com/zos/rmsportal/
keeYtvRpGFVVKOOiOZDS
.png
"
/>
<
/div
>
<
/div
>
<
div
className
=
{
styles
.
content
}
>
<
div
className
=
{
styles
.
content
}
>
<
div
className
=
{
styles
.
contentTitle
}
>
早安
,
曲丽丽
,
祝你开心每一天
!
<
/div
>
<
div
className
=
{
styles
.
contentTitle
}
>
早安
,
曲丽丽
,
祝你开心每一天
!
<
/div
>
...
...
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