From eea8f82bf929e455ec2a97952103e417a96b7f6e Mon Sep 17 00:00:00 2001 From: Aden Lindsay <140392385+AdenMGB@users.noreply.github.com> Date: Mon, 27 Jan 2025 11:15:09 +1030 Subject: [PATCH] squash: AdenMGB collection design & backend work Update index.post.ts to implement saving collections functionality Update index.get.ts to verify if collection exists and if user can access it Update index.delete.ts to ask questions and not be so nonchalant Update entry.post.ts Update entry.delete.ts to do it better Update index.vue to add functionality to the add to library button + fidgit with image Update index.vue to also add add to library functionality, but no fidget :( Update entry.post.ts to infact not remove it Update index.ts Update index.vue to manage collections from store page Update index.ts to restrut for ahhhh Update index.vue too add collection control to carosel Update index.vue fix minor issue Update index.vue to fix dropdown modal bug Create library.vue for page layout Create index.vue for library game details pane Create index.vue for viewing collections pane Create DeleteCollectionModal.vue component Create CreateCollectionModal.vue component Update AddLibraryButton.vue with dropdown :D Update index.vue to use new components Update index.vue for more components :O Update entry.post.ts to not not return success, it'll figure it out Update entry.delete.ts to not return... --- components/AddLibraryButton.vue | 143 ++-- components/CreateCollectionModal.vue | 118 ++++ components/DeleteCollectionModal.vue | 88 +++ pages/library.vue | 153 +++++ pages/library/collection/[id]/index.vue | 119 ++++ pages/library/game/[id]/index.vue | 258 ++++++++ pages/library/index.vue | 620 ++++++++++++++++++ pages/store/[id]/index.vue | 140 +++- pages/store/index.vue | 190 +++++- server/api/v1/collection/[id]/entry.delete.ts | 19 +- server/api/v1/collection/[id]/entry.post.ts | 21 +- server/api/v1/collection/[id]/index.delete.ts | 28 +- server/api/v1/collection/[id]/index.get.ts | 16 + .../api/v1/collection/default/entry.post.ts | 15 +- server/api/v1/collection/index.post.ts | 5 +- server/internal/userlibrary/index.ts | 8 +- 16 files changed, 1844 insertions(+), 97 deletions(-) create mode 100644 components/CreateCollectionModal.vue create mode 100644 components/DeleteCollectionModal.vue create mode 100644 pages/library.vue create mode 100644 pages/library/collection/[id]/index.vue create mode 100644 pages/library/game/[id]/index.vue create mode 100644 pages/library/index.vue diff --git a/components/AddLibraryButton.vue b/components/AddLibraryButton.vue index 3b822f8..da86562 100644 --- a/components/AddLibraryButton.vue +++ b/components/AddLibraryButton.vue @@ -1,23 +1,34 @@ diff --git a/components/CreateCollectionModal.vue b/components/CreateCollectionModal.vue new file mode 100644 index 0000000..bfbc8e8 --- /dev/null +++ b/components/CreateCollectionModal.vue @@ -0,0 +1,118 @@ + + + diff --git a/components/DeleteCollectionModal.vue b/components/DeleteCollectionModal.vue new file mode 100644 index 0000000..41673a8 --- /dev/null +++ b/components/DeleteCollectionModal.vue @@ -0,0 +1,88 @@ + + + diff --git a/pages/library.vue b/pages/library.vue new file mode 100644 index 0000000..6539456 --- /dev/null +++ b/pages/library.vue @@ -0,0 +1,153 @@ + + + + + diff --git a/pages/library/collection/[id]/index.vue b/pages/library/collection/[id]/index.vue new file mode 100644 index 0000000..88c5bc6 --- /dev/null +++ b/pages/library/collection/[id]/index.vue @@ -0,0 +1,119 @@ + + + + + diff --git a/pages/library/game/[id]/index.vue b/pages/library/game/[id]/index.vue new file mode 100644 index 0000000..a28c2a0 --- /dev/null +++ b/pages/library/game/[id]/index.vue @@ -0,0 +1,258 @@ + + + + + diff --git a/pages/library/index.vue b/pages/library/index.vue new file mode 100644 index 0000000..a58343d --- /dev/null +++ b/pages/library/index.vue @@ -0,0 +1,620 @@ + + + + + diff --git a/pages/store/[id]/index.vue b/pages/store/[id]/index.vue index 37a76ee..2b4f91e 100644 --- a/pages/store/[id]/index.vue +++ b/pages/store/[id]/index.vue @@ -30,13 +30,18 @@ class="transition-all duration-300 hover:scale-105 hover:rotate-[-1deg] w-64 h-auto rounded" :src="useObject(game.mCoverId)" /> - +
+ +
+ + + + + +