From 44394275ec84868e55bc59b9d76eaac622390cb2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ciar=C3=A1n=20Ainsworth?= Date: Thu, 21 Oct 2021 17:26:18 +0000 Subject: [PATCH] Update track table --- changes/changelog.d/tracktable.enhancement | 1 + front/scripts/fix-fomantic-css.py | 5 + front/src/components/Pagination.vue | 10 +- front/src/components/audio/AlbumEntries.vue | 64 ---- front/src/components/audio/ChannelEntries.vue | 69 ++-- front/src/components/audio/PlayButton.vue | 178 +--------- .../components/audio/podcast/MobileRow.vue | 195 +++++++++++ front/src/components/audio/podcast/Modal.vue | 304 ++++++++++++++++++ front/src/components/audio/podcast/Row.vue | 154 +++++++++ front/src/components/audio/podcast/Table.vue | 126 ++++++++ .../src/components/audio/track/MobileRow.vue | 187 +++++++++++ front/src/components/audio/track/Modal.vue | 304 ++++++++++++++++++ .../components/audio/track/PlayIndicator.vue | 8 + front/src/components/audio/track/Row.vue | 273 +++++++++++----- front/src/components/audio/track/Table.vue | 255 +++++++++++---- front/src/components/favorites/List.vue | 10 +- front/src/components/library/AlbumBase.vue | 6 +- front/src/components/library/AlbumDetail.vue | 51 +-- front/src/components/library/ArtistBase.vue | 2 +- front/src/components/library/ArtistDetail.vue | 16 +- .../src/components/library/radios/Builder.vue | 8 +- .../src/components/library/radios/Filter.vue | 4 +- front/src/components/mixins/PlayOptions.vue | 184 +++++++++++ front/src/components/semantic/Modal.vue | 8 +- front/src/style/_main.scss | 2 + front/src/style/_vars.scss | 2 + front/src/style/components/_button.scss | 2 +- front/src/style/components/_favorite.scss | 36 +++ .../src/style/components/_play_indicator.scss | 29 ++ front/src/style/components/_track_table.scss | 262 ++++++++++++++- front/src/style/globals/_utils.scss | 9 +- front/src/views/channels/DetailEpisodes.vue | 2 +- front/src/views/channels/DetailOverview.vue | 2 +- front/vue.config.js | 2 +- 34 files changed, 2304 insertions(+), 466 deletions(-) create mode 100644 changes/changelog.d/tracktable.enhancement delete mode 100644 front/src/components/audio/AlbumEntries.vue create mode 100644 front/src/components/audio/podcast/MobileRow.vue create mode 100644 front/src/components/audio/podcast/Modal.vue create mode 100644 front/src/components/audio/podcast/Row.vue create mode 100644 front/src/components/audio/podcast/Table.vue create mode 100644 front/src/components/audio/track/MobileRow.vue create mode 100644 front/src/components/audio/track/Modal.vue create mode 100644 front/src/components/audio/track/PlayIndicator.vue create mode 100644 front/src/components/mixins/PlayOptions.vue create mode 100644 front/src/style/components/_favorite.scss create mode 100644 front/src/style/components/_play_indicator.scss diff --git a/changes/changelog.d/tracktable.enhancement b/changes/changelog.d/tracktable.enhancement new file mode 100644 index 000000000..b1231f861 --- /dev/null +++ b/changes/changelog.d/tracktable.enhancement @@ -0,0 +1 @@ +Made changes to the track table to make it more visibly pleasing. diff --git a/front/scripts/fix-fomantic-css.py b/front/scripts/fix-fomantic-css.py index 3ab13001f..80b864416 100755 --- a/front/scripts/fix-fomantic-css.py +++ b/front/scripts/fix-fomantic-css.py @@ -309,6 +309,11 @@ REPLACEMENTS = { ("color", "var(--button-basic-hover-color)"), ("box-shadow", "var(--button-basic-hover-box-shadow)"), ], + (".ui.basic.button:focus",): [ + ("background", "var(--button-basic-hover-background)"), + ("color", "var(--button-basic-hover-color)"), + ("box-shadow", "var(--button-basic-hover-box-shadow)"), + ], }, "card": { "skip": [ diff --git a/front/src/components/Pagination.vue b/front/src/components/Pagination.vue index 64bd6dc21..d25e72b15 100644 --- a/front/src/components/Pagination.vue +++ b/front/src/components/Pagination.vue @@ -8,15 +8,13 @@ :class="[{'disabled': current - 1 < 1}, 'item']"> -
-
-
- -
-
{{ prettyPosition(track.position) }}
-
- {{ track.title }}
-
-
- - -
-
- -
-
-
- - - diff --git a/front/src/components/audio/ChannelEntries.vue b/front/src/components/audio/ChannelEntries.vue index 0ce183743..f067b5a75 100644 --- a/front/src/components/audio/ChannelEntries.vue +++ b/front/src/components/audio/ChannelEntries.vue @@ -5,18 +5,34 @@
- - + +