From 69d10461d6ee605d9d126686ae87f6ca5c4f181a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ciar=C3=A1n=20Ainsworth?= Date: Mon, 24 Jun 2019 17:39:09 +0200 Subject: [PATCH 1/7] Resolve "Colorized 'play' button in front of the currently playing music" --- changes/changelog.d/832.enhancement | 1 + front/src/components/audio/album/Card.vue | 11 +++++++++-- front/src/components/audio/track/Row.vue | 12 +++++++++--- 3 files changed, 19 insertions(+), 5 deletions(-) create mode 100644 changes/changelog.d/832.enhancement diff --git a/changes/changelog.d/832.enhancement b/changes/changelog.d/832.enhancement new file mode 100644 index 000000000..1a270b88e --- /dev/null +++ b/changes/changelog.d/832.enhancement @@ -0,0 +1 @@ +The currently playing track is now highlighted with an orange play icon (#832) \ No newline at end of file diff --git a/front/src/components/audio/album/Card.vue b/front/src/components/audio/album/Card.vue index bdc0dd6cb..db6e8de6b 100644 --- a/front/src/components/audio/album/Card.vue +++ b/front/src/components/audio/album/Card.vue @@ -20,7 +20,7 @@ - + @@ -57,6 +57,7 @@ From 3da6192ab3c809dc4ce88469c34b8e1694d8f311 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ciar=C3=A1n=20Ainsworth?= Date: Mon, 24 Jun 2019 13:30:56 +0200 Subject: [PATCH 2/7] Resolve "Hide favorites radios when user does not have any favorites" --- changes/changelog.d/419.enhancement | 1 + front/src/components/favorites/List.vue | 7 +++++-- front/src/components/library/Radios.vue | 10 ++++++++-- 3 files changed, 14 insertions(+), 4 deletions(-) create mode 100644 changes/changelog.d/419.enhancement diff --git a/changes/changelog.d/419.enhancement b/changes/changelog.d/419.enhancement new file mode 100644 index 000000000..f4716b53e --- /dev/null +++ b/changes/changelog.d/419.enhancement @@ -0,0 +1 @@ +Favorites radio will not be visible if the user does not have any favorites (#419) \ No newline at end of file diff --git a/front/src/components/favorites/List.vue b/front/src/components/favorites/List.vue index d1bde0935..6402d417f 100644 --- a/front/src/components/favorites/List.vue +++ b/front/src/components/favorites/List.vue @@ -16,7 +16,7 @@ 1 favorite - +
@@ -115,7 +115,10 @@ export default { return { title: this.$pgettext('Head/Favorites/Title', 'Your Favorites') } - } + }, + hasFavorites () { + return this.$store.state.favorites.count > 0 + }, }, methods: { updateQueryString: function() { diff --git a/front/src/components/library/Radios.vue b/front/src/components/library/Radios.vue index 9b2f7bf82..9f59db514 100644 --- a/front/src/components/library/Radios.vue +++ b/front/src/components/library/Radios.vue @@ -10,7 +10,7 @@ Instance radios
- +
@@ -144,7 +144,13 @@ export default { searchPlaceholder, title } - } + }, + isAuthenticated () { + return this.$store.state.auth.authenticated + }, + hasFavorites () { + return this.$store.state.favorites.count > 0 + }, }, methods: { updateQueryString: _.debounce(function() { From a05106437c87ac7f530500357a5b2785810c23f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ciar=C3=A1n=20Ainsworth?= Date: Mon, 24 Jun 2019 11:32:20 +0200 Subject: [PATCH 3/7] Resolve "Align items vertically in search results" --- changes/changelog.d/708.enhancement | 1 + front/src/components/Sidebar.vue | 6 ++++++ 2 files changed, 7 insertions(+) create mode 100644 changes/changelog.d/708.enhancement diff --git a/changes/changelog.d/708.enhancement b/changes/changelog.d/708.enhancement new file mode 100644 index 000000000..f3217e5a9 --- /dev/null +++ b/changes/changelog.d/708.enhancement @@ -0,0 +1 @@ +Aligned search headers with search results in the sidebar (#708) \ No newline at end of file diff --git a/front/src/components/Sidebar.vue b/front/src/components/Sidebar.vue index 8b183b215..0f2809064 100644 --- a/front/src/components/Sidebar.vue +++ b/front/src/components/Sidebar.vue @@ -466,6 +466,12 @@ $sidebar-color: #3d3e3f; border-radius: 0; } } + .ui.search .results { + vertical-align: middle; + } + .ui.search .name { + vertical-align: middle; + } } .ui.tiny.avatar.image { position: relative; From 79ced9514a2f6cb9b711110358b68ace021c0a5e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ciar=C3=A1n=20Ainsworth?= Date: Mon, 24 Jun 2019 11:04:05 +0200 Subject: [PATCH 4/7] Resolve "Clicking on playlist name from PlaylistModal does nothing if current page is that playlist's page" --- changes/changelog.d/807.enhancement | 1 + front/src/components/playlists/PlaylistModal.vue | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 changes/changelog.d/807.enhancement diff --git a/changes/changelog.d/807.enhancement b/changes/changelog.d/807.enhancement new file mode 100644 index 000000000..bab8f9647 --- /dev/null +++ b/changes/changelog.d/807.enhancement @@ -0,0 +1 @@ +Clicking on the currently selected playlist in the Playlist popup will now close the popup (#807) \ No newline at end of file diff --git a/front/src/components/playlists/PlaylistModal.vue b/front/src/components/playlists/PlaylistModal.vue index 44969afbf..97c5f0a1e 100644 --- a/front/src/components/playlists/PlaylistModal.vue +++ b/front/src/components/playlists/PlaylistModal.vue @@ -57,7 +57,7 @@ :to="{name: 'library.playlists.detail', params: {id: playlist.id }, query: {mode: 'edit'}}"> - {{ playlist.name }} + {{ playlist.name }} {{ playlist.tracks_count }} From 8308bc6a4dfba457cd4834592791f4f0ce13d58c Mon Sep 17 00:00:00 2001 From: Eliot Berriot Date: Fri, 21 Jun 2019 10:14:20 +0200 Subject: [PATCH 5/7] Fix #864: Redirect from / to /library when user is logged in --- changes/changelog.d/864.enhancement | 1 + front/src/components/Home.vue | 12 ++++++++++++ 2 files changed, 13 insertions(+) create mode 100644 changes/changelog.d/864.enhancement diff --git a/changes/changelog.d/864.enhancement b/changes/changelog.d/864.enhancement new file mode 100644 index 000000000..f903ac850 --- /dev/null +++ b/changes/changelog.d/864.enhancement @@ -0,0 +1 @@ +Redirect from / to /library when user is logged in (#864) diff --git a/front/src/components/Home.vue b/front/src/components/Home.vue index 9393d9b78..bbcc9a8f9 100644 --- a/front/src/components/Home.vue +++ b/front/src/components/Home.vue @@ -147,7 +147,19 @@ export default { let msg = this.$pgettext('Content/Home/List item/Verb', 'Get quality metadata about your music thanks to MusicBrainz') return this.$gettextInterpolate(msg, {url: this.musicbrainzUrl}) } + }, + watch: { + '$store.state.auth.authenticated': { + handler (v) { + if (v) { + console.log('Authenticated, redirecting to /library…') + this.$router.push('/library') + } + }, + immediate: true + } } + } From a1d01105a11adc337ab8bac0a13e50f8089fe44b Mon Sep 17 00:00:00 2001 From: Reg Date: Tue, 18 Jun 2019 22:52:57 +0200 Subject: [PATCH 6/7] Fixed typo refrence => reference --- api/funkwhale_api/music/management/commands/import_files.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/funkwhale_api/music/management/commands/import_files.py b/api/funkwhale_api/music/management/commands/import_files.py index 541b60886..33f8ed2d1 100644 --- a/api/funkwhale_api/music/management/commands/import_files.py +++ b/api/funkwhale_api/music/management/commands/import_files.py @@ -226,7 +226,7 @@ class Command(BaseCommand): urllib.parse.urlencode([("import", reference)]), ) self.stdout.write( - "For details, please refer to import refrence '{}' or URL {}".format( + "For details, please refer to import reference '{}' or URL {}".format( reference, import_url ) ) @@ -246,7 +246,7 @@ class Command(BaseCommand): self.stderr.write("- {}: {}".format(path, error)) self.stdout.write( - "For details, please refer to import refrence '{}' or URL {}".format( + "For details, please refer to import reference '{}' or URL {}".format( reference, import_url ) ) From fb855cd01689855fb1be936ff374ed347beb590c Mon Sep 17 00:00:00 2001 From: Ciaran Ainsworth Date: Sun, 16 Jun 2019 16:23:12 +0100 Subject: [PATCH 7/7] Added buttons to search for objects on Discogs --- changes/changelog.d/368.enhancement | 1 + front/src/components/library/AlbumBase.vue | 13 ++++++++++++- front/src/components/library/ArtistBase.vue | 10 ++++++++++ front/src/components/library/TrackBase.vue | 12 ++++++++++++ 4 files changed, 35 insertions(+), 1 deletion(-) create mode 100644 changes/changelog.d/368.enhancement diff --git a/changes/changelog.d/368.enhancement b/changes/changelog.d/368.enhancement new file mode 100644 index 000000000..7e8f78c0a --- /dev/null +++ b/changes/changelog.d/368.enhancement @@ -0,0 +1 @@ +Added button to search for objects on Discogs (#368) diff --git a/front/src/components/library/AlbumBase.vue b/front/src/components/library/AlbumBase.vue index 1f89bef88..2b3c978bc 100644 --- a/front/src/components/library/AlbumBase.vue +++ b/front/src/components/library/AlbumBase.vue @@ -61,7 +61,11 @@ View on MusicBrainz - + + Search on Discogs + + @@ -168,6 +172,13 @@ export default { return "https://musicbrainz.org/release/" + this.object.mbid } }, + discogsUrl() { + return ( + "https://discogs.com/search/?type=release&title=" + + encodeURI(this.object.title) + "&artist=" + + encodeURI(this.object.artist.name) + ) + }, headerStyle() { if (!this.object.cover.original) { return "" diff --git a/front/src/components/library/ArtistBase.vue b/front/src/components/library/ArtistBase.vue index 5da7370ba..3c21f603f 100644 --- a/front/src/components/library/ArtistBase.vue +++ b/front/src/components/library/ArtistBase.vue @@ -72,6 +72,10 @@ View on MusicBrainz + + + Search on Discogs + { diff --git a/front/src/components/library/TrackBase.vue b/front/src/components/library/TrackBase.vue index 4d396bd1a..4edd00c5d 100644 --- a/front/src/components/library/TrackBase.vue +++ b/front/src/components/library/TrackBase.vue @@ -76,6 +76,10 @@ View on MusicBrainz + + + Search on Discogs +