From 5d9a201a5bf8e39e726ff9d91d6089fdd8533adf Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Thu, 4 Apr 2024 01:07:05 +0200 Subject: [PATCH] [#297] Mopidy/MPD refactor+migration, UI side. --- .../webapp/src/components/Media/Controls.vue | 77 ++- .../http/webapp/src/components/Media/View.vue | 27 +- .../webapp/src/components/Media/vars.scss | 11 + .../src/components/panels/Media/Header.vue | 2 +- .../src/components/panels/Media/Index.vue | 1 - .../src/components/panels/Media/Info.vue | 2 +- .../src/components/panels/Media/Item.vue | 10 +- .../components/panels/Media/MediaImage.vue | 2 +- .../src/components/panels/Media/Nav.vue | 2 +- .../src/components/panels/Media/Results.vue | 4 +- .../src/components/panels/Media/vars.scss | 9 - .../src/components/panels/Music/Common.vue | 487 ++++++++++++++++++ .../src/components/panels/Music/Index.vue | 47 +- .../src/components/panels/Music/Library.vue | 46 +- .../src/components/panels/Music/Playlist.vue | 138 +++-- .../src/components/panels/Music/Playlists.vue | 24 +- .../src/components/panels/Music/Search.vue | 30 +- .../src/components/panels/Music/track.scss | 12 +- .../components/panels/MusicMopidy/Index.vue | 11 + .../src/components/panels/MusicMpd/Index.vue | 340 +----------- .../src/components/widgets/Music/Index.vue | 439 ++++++++++------ .../http/webapp/src/mixins/Music/Status.vue | 66 +++ .../http/webapp/src/style/themes/light.scss | 1 + .../http/webapp/src/views/Dashboard.vue | 12 +- 24 files changed, 1209 insertions(+), 591 deletions(-) delete mode 100644 platypush/backend/http/webapp/src/components/panels/Media/vars.scss create mode 100644 platypush/backend/http/webapp/src/components/panels/Music/Common.vue create mode 100644 platypush/backend/http/webapp/src/components/panels/MusicMopidy/Index.vue create mode 100644 platypush/backend/http/webapp/src/mixins/Music/Status.vue diff --git a/platypush/backend/http/webapp/src/components/Media/Controls.vue b/platypush/backend/http/webapp/src/components/Media/Controls.vue index a42c86ce4c..c372370416 100644 --- a/platypush/backend/http/webapp/src/components/Media/Controls.vue +++ b/platypush/backend/http/webapp/src/components/Media/Controls.vue @@ -1,8 +1,10 @@ @@ -50,6 +62,11 @@ export default { type: Object, }, + image: { + type: String, + default: null, + }, + buttons: { type: Object, }, diff --git a/platypush/backend/http/webapp/src/components/Media/vars.scss b/platypush/backend/http/webapp/src/components/Media/vars.scss index a2d0e1cd6f..45cb8213bb 100644 --- a/platypush/backend/http/webapp/src/components/Media/vars.scss +++ b/platypush/backend/http/webapp/src/components/Media/vars.scss @@ -1 +1,12 @@ $media-ctrl-panel-height: 5.5em; +$media-header-height: 3.3em; +$media-nav-width: 2.8em; +$filter-header-height: 3em; +$default-media-img-bg: #d0dad8; +$default-media-img-fg: white; +$media-ctrl-ext-bg: radial-gradient(white, #e0e3d0a0); +$media-ctrl-ext-shadow: 0 0 1px 2px inset #c7c8c8; + +.fa-youtube { + color: #d21; +} diff --git a/platypush/backend/http/webapp/src/components/panels/Media/Header.vue b/platypush/backend/http/webapp/src/components/panels/Media/Header.vue index 39963f6f3b..a1c8ce28ed 100644 --- a/platypush/backend/http/webapp/src/components/panels/Media/Header.vue +++ b/platypush/backend/http/webapp/src/components/panels/Media/Header.vue @@ -146,7 +146,7 @@ export default {