From eb7f66c89e15442e1e8a30a1a537be418931ec36 Mon Sep 17 00:00:00 2001 From: advplyr Date: Sun, 30 Apr 2023 14:11:54 -0500 Subject: [PATCH] Add:Narrators page #860 #1139 --- client/assets/app.css | 2 +- client/components/app/SideRail.vue | 27 ++- client/components/cards/NarratorCard.vue | 4 +- .../pages/config/item-metadata-utils/tags.vue | 4 +- client/pages/library/_library/narrators.vue | 161 ++++++++++++++++++ client/strings/en-us.json | 1 + server/controllers/LibraryController.js | 86 +++++++++- server/objects/metadata/BookMetadata.js | 26 +++ server/routers/ApiRouter.js | 3 + 9 files changed, 296 insertions(+), 18 deletions(-) create mode 100644 client/pages/library/_library/narrators.vue diff --git a/client/assets/app.css b/client/assets/app.css index c823af2f..f8e51521 100644 --- a/client/assets/app.css +++ b/client/assets/app.css @@ -112,7 +112,7 @@ input[type=number] { background-color: #373838; } -.tracksTable tr:hover { +.tracksTable tr:hover:not(:has(th)) { background-color: #474747; } diff --git a/client/components/app/SideRail.vue b/client/components/app/SideRail.vue index 25350d24..995f4c23 100644 --- a/client/components/app/SideRail.vue +++ b/client/components/app/SideRail.vue @@ -49,6 +49,14 @@
+ + queue_music + +

{{ $strings.ButtonPlaylists }}

+ +
+ + + + record_voice_over + +

{{ $strings.LabelNarrators }}

+ +
+ + @@ -78,14 +94,6 @@
- - queue_music - -

{{ $strings.ButtonPlaylists }}

- -
- - file_download @@ -178,6 +186,9 @@ export default { isAuthorsPage() { return this.$route.name === 'library-library-authors' }, + isNarratorsPage() { + return this.$route.name === 'library-library-narrators' + }, isPlaylistsPage() { return this.paramId === 'playlists' }, diff --git a/client/components/cards/NarratorCard.vue b/client/components/cards/NarratorCard.vue index 9d3e5a30..7b8848cc 100644 --- a/client/components/cards/NarratorCard.vue +++ b/client/components/cards/NarratorCard.vue @@ -1,8 +1,8 @@