From bf0893d759ea76f66fc46ed283403d9a70f23820 Mon Sep 17 00:00:00 2001 From: advplyr Date: Fri, 5 Nov 2021 20:24:02 -0500 Subject: [PATCH] Add: Experimental collections add/remove & db #151 --- client/assets/fonts.css | 27 ++- client/components/AudioPlayer.vue | 51 ++++-- client/components/app/BookShelf.vue | 12 +- client/components/app/BookShelfToolbar.vue | 4 +- client/components/app/SideRail.vue | 21 ++- client/components/cards/GroupCard.vue | 8 +- client/components/cards/GroupCover.vue | 4 +- .../modals/UserCollectionsModal.vue | 166 ++++++++++++++++++ .../modals/bookmarks/BookmarkItem.vue | 2 +- .../modals/collections/UserCollectionItem.vue | 91 ++++++++++ client/components/ui/IconBtn.vue | 5 +- client/layouts/default.vue | 15 ++ client/middleware/routed.js | 2 +- client/pages/audiobook/_id/index.vue | 8 + client/pages/collection/_id.vue | 61 +++++++ .../pages/library/_library/bookshelf/_id.vue | 4 + ...terial-icons.woff2 => MaterialIcons.woff2} | Bin .../static/fonts/MaterialIconsOutlined.woff2 | Bin 0 -> 142128 bytes client/store/globals.js | 18 ++ client/store/index.js | 3 + client/store/user.js | 33 +++- server/ApiController.js | 122 ++++++++++++- server/BackupManager.js | 2 + server/Db.js | 37 ++-- server/objects/Stream.js | 5 + server/objects/UserCollection.js | 88 ++++++++++ server/objects/UserListeningSession.js | 57 ++++++ 27 files changed, 784 insertions(+), 62 deletions(-) create mode 100644 client/components/modals/UserCollectionsModal.vue create mode 100644 client/components/modals/collections/UserCollectionItem.vue create mode 100644 client/pages/collection/_id.vue rename client/static/fonts/{material-icons.woff2 => MaterialIcons.woff2} (100%) create mode 100644 client/static/fonts/MaterialIconsOutlined.woff2 create mode 100644 client/store/globals.js create mode 100644 server/objects/UserCollection.js create mode 100644 server/objects/UserListeningSession.js diff --git a/client/assets/fonts.css b/client/assets/fonts.css index 874570ac..43de8964 100644 --- a/client/assets/fonts.css +++ b/client/assets/fonts.css @@ -1,9 +1,15 @@ -/* fallback */ + @font-face { font-family: 'Material Icons'; font-style: normal; font-weight: 400; - src: url(/fonts/material-icons.woff2) format('woff2'); + src: url(/fonts/MaterialIcons.woff2) format('woff2'); +} +@font-face { + font-family: 'Material Icons Outlined'; + font-style: normal; + font-weight: 400; + src: url(/fonts/MaterialIconsOutlined.woff2) format('woff2'); } .material-icons { @@ -23,6 +29,23 @@ .material-icons:not(.text-xs):not(.text-sm):not(.text-md):not(.text-base):not(.text-lg):not(.text-xl):not(.text-2xl):not(.text-3xl):not(.text-4xl):not(.text-5xl):not(.text-6xl) { font-size: 1.5rem; } +.material-icons-outlined { + font-family: 'Material Icons Outlined'; + font-weight: normal; + font-style: normal; + line-height: 1; + letter-spacing: normal; + text-transform: none; + display: inline-block; + white-space: nowrap; + word-wrap: normal; + direction: ltr; + -webkit-font-feature-settings: 'liga'; + -webkit-font-smoothing: antialiased; +} +.material-icons-outlined:not(.text-xs):not(.text-sm):not(.text-md):not(.text-base):not(.text-lg):not(.text-xl):not(.text-2xl):not(.text-3xl):not(.text-4xl):not(.text-5xl):not(.text-6xl) { + font-size: 1.5rem; +} @font-face { diff --git a/client/components/AudioPlayer.vue b/client/components/AudioPlayer.vue index 78b3978f..22f4c241 100644 --- a/client/components/AudioPlayer.vue +++ b/client/components/AudioPlayer.vue @@ -74,7 +74,7 @@ -