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
55274c4d
Commit
55274c4d
authored
Aug 30, 2017
by
afc163
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove ActivitiesItem
parent
aea99836
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
72 deletions
+0
-72
src/components/ActivitiesItem/index.js
src/components/ActivitiesItem/index.js
+0
-31
src/components/ActivitiesItem/index.less
src/components/ActivitiesItem/index.less
+0
-41
No files found.
src/components/ActivitiesItem/index.js
deleted
100644 β 0
View file @
aea99836
import
React
from
'
react
'
;
import
moment
from
'
moment
'
;
import
marked
from
'
marked
'
;
import
{
Avatar
}
from
'
antd
'
;
import
styles
from
'
./index.less
'
;
/* eslint react/no-danger:0 */
export
default
({
data
:
{
user
,
updatedAt
,
action
}
})
=>
(
<
div
className
=
{
styles
.
activitiesItem
}
>
<
div
className
=
{
styles
.
avatar
}
>
{
user
.
link
&&
<
a
href
=
{
user
.
link
}
target
=
"
_blank
"
>
<
Avatar
src
=
{
user
.
avatar
}
/
>
<
/a
>
}
{
!
user
.
link
&&
<
img
src
=
{
user
.
avatar
}
alt
=
{
user
.
title
}
/
>
}
<
/div
>
<
div
className
=
{
styles
.
content
}
>
<
div
>
<
span
className
=
{
styles
.
name
}
>
{
user
.
name
}
<
/span
>
<
div
dangerouslySetInnerHTML
=
{{
__html
:
marked
(
action
)
}}
/
>
<
/div
>
<
p
>
{
moment
(
updatedAt
).
fromNow
()}
<
/p
>
<
/div
>
<
/div
>
);
src/components/ActivitiesItem/index.less
deleted
100644 β 0
View file @
aea99836
@import "~antd/lib/style/themes/default.less";
.activitiesItem {
padding: 24px 24px 0 24px;
position: relative;
.avatar {
position: absolute;
top: 24px;
left: 24px;
img {
display: block;
border-radius: 32px;
width: 32px;
height: 32px;
}
}
.content {
border-bottom: 1px solid @border-color-split;
padding-left: 48px;
padding-bottom: 24px;
font-size: @font-size-base;
a {
color: @primary-color;
}
& > div {
line-height: 22px;
.name {
margin-right: 4px;
font-weight: 500;
}
div, p {
display: inline-block;
}
}
& > p {
margin-top: 4px;
line-height: 22px;
}
}
}
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