Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
U
ui
Manage
Activity
Members
Labels
Plan
Issues
10
Issue boards
Milestones
Wiki
Code
Merge requests
12
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
funkwhale
ui
Merge requests
!3
Add documentation for all components
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Add documentation for all components
document-all-components
into
main
Overview
26
Commits
6
Pipelines
6
Changes
20
Merged
Ciarán Ainsworth
requested to merge
document-all-components
into
main
2 years ago
Overview
19
Commits
6
Pipelines
6
Changes
20
Expand
Closes
#3 (closed)
👍
0
👎
0
Merge request reports
Compare
main
version 5
78448344
2 years ago
version 4
0e3f867f
2 years ago
version 3
09322fc1
2 years ago
version 2
ac2b0769
2 years ago
version 1
d2206d3e
2 years ago
main (base)
and
latest version
latest version
dd1a18f1
6 commits,
2 years ago
version 5
78448344
5 commits,
2 years ago
version 4
0e3f867f
4 commits,
2 years ago
version 3
09322fc1
3 commits,
2 years ago
version 2
ac2b0769
2 commits,
2 years ago
version 1
d2206d3e
1 commit,
2 years ago
20 files
+
923
−
139
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
20
Search (e.g. *.vue) (Ctrl+P)
docs/components/activity/index.md
+
33
−
4
Options
@@ -17,16 +17,45 @@ const user = {
</script>
# Activity
```
html
Activities display history entries for a Funkwhale pod. Each item contains the following information:
-
An image
-
A track title
-
An artist name
-
A username
-
A
[
popover
](
./../popover/index.md
)
| Prop | Data type | Required? | Description |
|---------|--------------|-----------|----------------------------------------------|
|
`track`
| Track object | Yes | The track to render in the activity entry. |
|
`user`
| User object | Yes | The user associated with the activity entry. |
## Single items
You can render a single activity item by passing the track and user information to the
`<fw-activity>`
component.
```
vue-html
<fw-activity :track="track" :user="user" />
```
<fw-activity
:track=
"track"
:user=
"user"
/>
## Activity lists
You can display a list of activity items by passing a
`v-for`
directive and adding a
`key`
to the item. The
`key`
must be unique to the list.
::: info
Whenever there is more than 1 activity entry in a row, there woul
d b
e
a 1px border
to separate the entries
Items in a list are visually separate
d b
y
a 1px border
.
:::
```
html
<fw-activity
:track=
"track"
:user=
"user"
v-for=
"i in 3"
:key=
"i"
/>
```
vue-html{4-5}
<fw-activity
:track="track"
:user="user"
v-for="i in 3"
:key="i"
/>
```
<fw-activity
:track=
"track"
:user=
"user"
v-for=
"i in 3"
:key=
"i"
/>
Loading