From 37c38e69dff90331108a93473d123e637fa57466 Mon Sep 17 00:00:00 2001 From: advplyr Date: Fri, 24 Sep 2021 07:32:38 -0500 Subject: [PATCH] Side rail, book group cards, fix dropdown select --- client/assets/app.css | 4 + client/components/app/Appbar.vue | 4 +- client/components/app/BookShelf.vue | 85 ++++--- client/components/app/BookShelfToolbar.vue | 48 +++- client/components/app/SideRail.vue | 28 +-- client/components/app/StreamContainer.vue | 2 +- client/components/cards/Book3d.vue | 254 +++++++++++++++++++++ client/components/cards/BookCover.vue | 10 +- client/components/cards/GroupCard.vue | 45 +++- client/components/cards/GroupCover.vue | 139 +++++++++++ client/components/ui/InputDropdown.vue | 5 +- client/components/ui/Tooltip.vue | 2 +- client/layouts/default.vue | 2 +- client/middleware/authenticated.js | 4 +- client/package.json | 2 +- client/pages/batch/index.vue | 2 +- client/pages/index.vue | 7 +- client/pages/library/_id.vue | 12 +- client/pages/login.vue | 2 +- client/plugins/init.client.js | 3 + client/store/audiobooks.js | 39 +++- package.json | 8 +- readme.md | 3 - server/Server.js | 2 + 24 files changed, 615 insertions(+), 97 deletions(-) create mode 100644 client/components/cards/Book3d.vue create mode 100644 client/components/cards/GroupCover.vue diff --git a/client/assets/app.css b/client/assets/app.css index 6e37ca4b..2a0391f4 100644 --- a/client/assets/app.css +++ b/client/assets/app.css @@ -103,6 +103,10 @@ box-shadow: 4px 1px 8px #11111166, -4px 1px 8px #11111166, 1px -4px 8px #11111166; } +.box-shadow-book3d { + box-shadow: 4px 1px 8px #11111166, 1px -4px 8px #11111166; +} + .box-shadow-side { box-shadow: 4px 0px 4px #11111166; } diff --git a/client/components/app/Appbar.vue b/client/components/app/Appbar.vue index 3fca7849..40457cf8 100644 --- a/client/components/app/Appbar.vue +++ b/client/components/app/Appbar.vue @@ -63,7 +63,7 @@ export default { }, computed: { showBack() { - return this.$route.name !== 'index' + return this.$route.name !== 'library-id' }, user() { return this.$store.state.user.user @@ -114,7 +114,7 @@ export default { if (this.$route.name === 'audiobook-id-edit') { this.$router.push(`/audiobook/${this.$route.params.id}`) } else { - this.$router.push('/') + this.$router.push('/library') } }, cancelSelectionMode() { diff --git a/client/components/app/BookShelf.vue b/client/components/app/BookShelf.vue index 797453b6..68ec5166 100644 --- a/client/components/app/BookShelf.vue +++ b/client/components/app/BookShelf.vue @@ -16,21 +16,22 @@ Scan Audiobooks -
-