From 3e5338ec8ec4b35bd2ab7b0dfbb75174953b3ce7 Mon Sep 17 00:00:00 2001 From: Mark Cooper Date: Mon, 27 Sep 2021 06:52:21 -0500 Subject: [PATCH] Fixing scanner inodes, select all fix, starting ebook reader --- client/components/app/Appbar.vue | 7 +- client/components/app/BookShelf.vue | 2 +- client/components/cards/BookCard.vue | 7 + client/components/tables/AudioFilesTable.vue | 2 +- client/components/tables/OtherFilesTable.vue | 2 +- client/components/tables/TracksTable.vue | 2 +- client/middleware/authenticated.js | 2 +- client/package-lock.json | 2 +- client/package.json | 2 +- client/pages/audiobook/_id/index.vue | 22 + client/pages/library/_id.vue | 10 +- client/pages/login.vue | 1 - client/store/audiobooks.js | 30 +- package-lock.json | 427 ++++++++++++++++++- package.json | 2 +- server/EbookReader.js | 42 ++ server/Scanner.js | 74 ++-- server/Server.js | 4 +- server/objects/Audiobook.js | 65 ++- server/utils/audioFileScanner.js | 2 +- server/utils/scandir.js | 20 +- 21 files changed, 661 insertions(+), 66 deletions(-) create mode 100644 server/EbookReader.js diff --git a/client/components/app/Appbar.vue b/client/components/app/Appbar.vue index 40457cf8..fa3b726b 100644 --- a/client/components/app/Appbar.vue +++ b/client/components/app/Appbar.vue @@ -37,7 +37,9 @@

{{ numAudiobooksSelected }} Selected

- {{ isAllSelected ? 'Select None' : 'Select All' }} + {{ isAllSelected ? 'Select None' : 'Select All' }}({{ audiobooksShowing.length }})
@@ -87,7 +89,8 @@ export default { return this.$store.state.user.user.audiobooks || {} }, audiobooksShowing() { - return this.$store.getters['audiobooks/getFiltered']() + // return this.$store.getters['audiobooks/getFiltered']() + return this.$store.getters['audiobooks/getEntitiesShowing']() }, userCanUpdate() { return this.$store.getters['user/getUserCanUpdate'] diff --git a/client/components/app/BookShelf.vue b/client/components/app/BookShelf.vue index 262b7054..220d2cf1 100644 --- a/client/components/app/BookShelf.vue +++ b/client/components/app/BookShelf.vue @@ -23,7 +23,7 @@
diff --git a/client/components/cards/BookCard.vue b/client/components/cards/BookCard.vue index 5ce85331..7896132b 100644 --- a/client/components/cards/BookCard.vue +++ b/client/components/cards/BookCard.vue @@ -33,6 +33,10 @@

#{{ volumeNumber }}

+ +
@@ -78,6 +82,9 @@ export default { audiobookId() { return this.audiobook.id }, + hasEbook() { + return this.audiobook.numEbooks + }, isSelectionMode() { return this.$store.getters['getNumAudiobooksSelected'] }, diff --git a/client/components/tables/AudioFilesTable.vue b/client/components/tables/AudioFilesTable.vue index b1201bd1..899f432c 100644 --- a/client/components/tables/AudioFilesTable.vue +++ b/client/components/tables/AudioFilesTable.vue @@ -23,7 +23,7 @@