From cf0aa948fefb687915287b8ca4c584c156ee1d91 Mon Sep 17 00:00:00 2001 From: DecDuck Date: Tue, 28 Jan 2025 15:16:34 +1100 Subject: [PATCH] feat: refactor & redesign parts of UI --- assets/core.scss | 6 +- components/AddLibraryButton.vue | 155 +++-- components/CreateCollectionModal.vue | 31 +- components/DeleteCollectionModal.vue | 126 ++-- components/GamePanel.vue | 3 +- components/LibraryDirectory.vue | 73 ++ composables/collection.ts | 37 ++ error.vue | 9 +- pages/library.vue | 191 +++--- pages/library/collection/[id]/index.vue | 97 +-- pages/library/game/[id]/index.vue | 300 +++------ pages/library/index.vue | 622 ++---------------- pages/store/[id]/index.vue | 137 +--- pages/store/index.vue | 202 +----- server/api/v1/collection/[id]/entry.delete.ts | 19 +- server/api/v1/collection/[id]/entry.post.ts | 20 +- server/api/v1/collection/[id]/index.delete.ts | 15 +- server/api/v1/collection/[id]/index.get.ts | 7 +- .../api/v1/collection/default/entry.post.ts | 13 +- server/api/v1/collection/default/index.get.ts | 14 + server/internal/userlibrary/index.ts | 40 +- 21 files changed, 639 insertions(+), 1478 deletions(-) create mode 100644 components/LibraryDirectory.vue create mode 100644 server/api/v1/collection/default/index.get.ts diff --git a/assets/core.scss b/assets/core.scss index 88bf56d..f061d43 100644 --- a/assets/core.scss +++ b/assets/core.scss @@ -66,4 +66,8 @@ $helvetica: ( } .carousel__pagination-button--active:hover::after { background-color: #d4d4d8; -} \ No newline at end of file +} + +.carousel__viewport { + overflow: visible !important; +} diff --git a/components/AddLibraryButton.vue b/components/AddLibraryButton.vue index da86562..e6f528d 100644 --- a/components/AddLibraryButton.vue +++ b/components/AddLibraryButton.vue @@ -1,31 +1,21 @@ diff --git a/components/CreateCollectionModal.vue b/components/CreateCollectionModal.vue index 88194ea..68d1396 100644 --- a/components/CreateCollectionModal.vue +++ b/components/CreateCollectionModal.vue @@ -15,34 +15,28 @@ + diff --git a/components/GamePanel.vue b/components/GamePanel.vue index be6104d..5f6ed7e 100644 --- a/components/GamePanel.vue +++ b/components/GamePanel.vue @@ -1,7 +1,7 @@