Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Maxence Bothorel
funkwhale
Commits
f503466a
Verified
Commit
f503466a
authored
Mar 20, 2018
by
Eliot Berriot
Browse files
UI Polishing
parent
a38f6485
Changes
3
Hide whitespace changes
Inline
Side-by-side
front/src/components/Sidebar.vue
View file @
f503466a
...
...
@@ -36,6 +36,12 @@
<router-link
class=
"item"
v-else
:to=
"{name: 'login'}"
><i
class=
"sign in icon"
></i>
Login
</router-link>
<router-link
class=
"item"
:to=
"{path: '/library'}"
><i
class=
"sound icon"
>
</i>
Browse library
</router-link>
<router-link
class=
"item"
:to=
"{path: '/favorites'}"
><i
class=
"heart icon"
></i>
Favorites
</router-link>
<a
@
click=
"$store.commit('playlists/chooseTrack', null)"
v-if=
"$store.state.auth.authenticated"
class=
"item"
>
<i
class=
"list icon"
></i>
Playlists
</a>
<router-link
v-if=
"$store.state.auth.authenticated"
class=
"item"
:to=
"{path: '/activity'}"
><i
class=
"bell icon"
></i>
Activity
</router-link>
...
...
front/src/components/library/Track.vue
View file @
f503466a
...
...
@@ -24,6 +24,11 @@
<play-button
class=
"orange"
:track=
"track"
>
Play
</play-button>
<track-favorite-icon
:track=
"track"
:button=
"true"
></track-favorite-icon>
<track-playlist-icon
:button=
"true"
v-if=
"$store.state.auth.authenticated"
:track=
"track"
></track-playlist-icon>
<a
:href=
"wikipediaUrl"
target=
"_blank"
class=
"ui button"
>
<i
class=
"wikipedia icon"
></i>
Search on wikipedia
...
...
@@ -66,6 +71,7 @@ import logger from '@/logging'
import
backend
from
'
@/audio/backend
'
import
PlayButton
from
'
@/components/audio/PlayButton
'
import
TrackFavoriteIcon
from
'
@/components/favorites/TrackFavoriteIcon
'
import
TrackPlaylistIcon
from
'
@/components/playlists/TrackPlaylistIcon
'
const
FETCH_URL
=
'
tracks/
'
...
...
@@ -73,6 +79,7 @@ export default {
props
:
[
'
id
'
],
components
:
{
PlayButton
,
TrackPlaylistIcon
,
TrackFavoriteIcon
},
data
()
{
...
...
front/src/router/index.js
View file @
f503466a
...
...
@@ -110,7 +110,14 @@ export default new Router({
},
{
path
:
'
radios/build
'
,
name
:
'
library.radios.build
'
,
component
:
RadioBuilder
,
props
:
true
},
{
path
:
'
radios/build/:id
'
,
name
:
'
library.radios.edit
'
,
component
:
RadioBuilder
,
props
:
true
},
{
path
:
'
playlists/:id
'
,
name
:
'
library.playlists.detail
'
,
component
:
PlaylistDetail
,
props
:
true
},
{
path
:
'
playlists/:id
'
,
name
:
'
library.playlists.detail
'
,
component
:
PlaylistDetail
,
props
:
(
route
)
=>
({
id
:
route
.
params
.
id
,
defaultEdit
:
route
.
query
.
mode
===
'
edit
'
})
},
{
path
:
'
artists/:id
'
,
name
:
'
library.artists.detail
'
,
component
:
LibraryArtist
,
props
:
true
},
{
path
:
'
albums/:id
'
,
name
:
'
library.albums.detail
'
,
component
:
LibraryAlbum
,
props
:
true
},
{
path
:
'
tracks/:id
'
,
name
:
'
library.tracks.detail
'
,
component
:
LibraryTrack
,
props
:
true
},
...
...
Write
Preview
Supports
Markdown
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