From e15d806634443d0832d228426e383a3355ac247f Mon Sep 17 00:00:00 2001 From: Eliot Berriot Date: Thu, 26 Dec 2019 11:38:26 +0100 Subject: [PATCH] Resolve "Redesign the sidebar/navigation to simplify the UI" --- changes/changelog.d/594.feature | 1 + changes/notes.rst | 7 + front/package.json | 3 +- front/public/index.html | 80 +- front/src/App.vue | 255 ++++++- front/src/assets/logo/text-white.svg | 117 +++ front/src/components/Queue.vue | 576 +++++++++++++++ front/src/components/ShortcutsModal.vue | 7 +- front/src/components/Sidebar.vue | 593 ++++++++------- front/src/components/audio/PlayButton.vue | 38 +- front/src/components/audio/Player.vue | 685 +++++++----------- front/src/components/audio/SearchBar.vue | 2 +- front/src/components/audio/VolumeControl.vue | 118 +++ front/src/components/common/ActorAvatar.vue | 7 + front/src/components/common/ExpandableDiv.vue | 2 +- .../favorites/TrackFavoriteIcon.vue | 4 +- front/src/components/globals.js | 74 +- front/src/components/library/Albums.vue | 2 + front/src/components/library/Artists.vue | 2 + front/src/components/library/Home.vue | 13 +- front/src/components/library/Library.vue | 17 - front/src/components/library/Radios.vue | 6 +- .../manage/moderation/InstancePolicyCard.vue | 2 +- .../src/components/moderation/ReportModal.vue | 6 +- .../playlists/TrackPlaylistIcon.vue | 4 +- front/src/components/semantic/Modal.vue | 2 +- front/src/lodash.js | 1 + front/src/router/index.js | 160 ++-- front/src/store/player.js | 4 +- front/src/store/queue.js | 5 +- front/src/store/ui.js | 25 + front/src/style/_main.scss | 110 ++- front/src/style/themes/_dark.scss | 14 + front/src/style/themes/_light.scss | 16 +- front/src/vendor/color-thief.js | 661 ----------------- front/src/views/playlists/List.vue | 4 +- front/vue.config.js | 6 +- front/yarn.lock | 23 +- 38 files changed, 2073 insertions(+), 1579 deletions(-) create mode 100644 changes/changelog.d/594.feature create mode 100644 front/src/assets/logo/text-white.svg create mode 100644 front/src/components/Queue.vue create mode 100644 front/src/components/audio/VolumeControl.vue delete mode 100644 front/src/vendor/color-thief.js diff --git a/changes/changelog.d/594.feature b/changes/changelog.d/594.feature new file mode 100644 index 000000000..3ab7ccdd9 --- /dev/null +++ b/changes/changelog.d/594.feature @@ -0,0 +1 @@ +Brand new navigation, queue and player redesign (#594) diff --git a/changes/notes.rst b/changes/notes.rst index 1323a70ee..3ffbcfd25 100644 --- a/changes/notes.rst +++ b/changes/notes.rst @@ -6,6 +6,13 @@ Next release notes Those release notes refer to the current development branch and are reset after each release. +Redesigned navigation, player and queue +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +This release includes a full redesign of our navigation, player and queue. Overall, it should provide +a better, less confusing experience, especially on mobile devices. This redesign was suggested +14 months ago, and took a while, but thanks to the involvement and feedback of many people, we got it done! + Improved search performance ^^^^^^^^^^^^^^^^^^^^^^^^^^^ diff --git a/front/package.json b/front/package.json index c6b71944e..2d24fb952 100644 --- a/front/package.json +++ b/front/package.json @@ -25,7 +25,7 @@ "qs": "^6.7.0", "sanitize-html": "^1.20.1", "showdown": "^1.8.6", - "vue": "^2.5.17", + "vue": "^2.6.10", "vue-gettext": "^2.1.0", "vue-lazyload": "^1.2.6", "vue-masonry": "^0.11.5", @@ -50,6 +50,7 @@ "mocha": "^5.2.0", "moxios": "^0.4.0", "node-sass": "^4.9.3", + "preload-webpack-plugin": "^3.0.0-beta.4", "purgecss-webpack-plugin": "^1.6.0", "sass-loader": "^7.1.0", "sinon": "^6.1.5", diff --git a/front/public/index.html b/front/public/index.html index 142419ca6..42adc6d41 100644 --- a/front/public/index.html +++ b/front/public/index.html @@ -7,13 +7,85 @@ Funkwhale + - -
+
+
+
+
+
+ +

Loading Funkwhale…

+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/front/src/App.vue b/front/src/App.vue index 5be97dfb5..c1fee631b 100644 --- a/front/src/App.vue +++ b/front/src/App.vue @@ -1,5 +1,5 @@ @@ -331,16 +339,24 @@ export default { diff --git a/front/src/components/audio/SearchBar.vue b/front/src/components/audio/SearchBar.vue index ae2ae08fb..ed18805aa 100644 --- a/front/src/components/audio/SearchBar.vue +++ b/front/src/components/audio/SearchBar.vue @@ -1,7 +1,7 @@