From a022ec48c54fb1dfdbc3d5cec40bb5366e07135e Mon Sep 17 00:00:00 2001 From: Georges-Antoine Assi Date: Thu, 27 Jul 2023 11:10:55 -0400 Subject: [PATCH] Fix bugs + add back loading bar --- .../components/GameGallery/Card/ActionBar.vue | 49 +-- .../src/components/GameGallery/Card/Cover.vue | 43 +-- .../components/GameGallery/ListItem/Item.vue | 67 ++-- frontend/src/services/api.js | 10 +- frontend/src/stores/download.js | 14 + frontend/src/views/Details.vue | 308 ++++++++++++------ 6 files changed, 292 insertions(+), 199 deletions(-) create mode 100644 frontend/src/stores/download.js diff --git a/frontend/src/components/GameGallery/Card/ActionBar.vue b/frontend/src/components/GameGallery/Card/ActionBar.vue index 5dc588805..d393b60a8 100644 --- a/frontend/src/components/GameGallery/Card/ActionBar.vue +++ b/frontend/src/components/GameGallery/Card/ActionBar.vue @@ -1,12 +1,13 @@ @@ -15,48 +16,32 @@ const downloadUrl = `${window.location.origin}${props.rom.download_path}` - + - Search IGDB + Search + IGDB - - - Edit + + + Edit - - - Delete + + + Delete diff --git a/frontend/src/components/GameGallery/Card/Cover.vue b/frontend/src/components/GameGallery/Card/Cover.vue index 5ca59eec9..2b1a93f9e 100644 --- a/frontend/src/components/GameGallery/Card/Cover.vue +++ b/frontend/src/components/GameGallery/Card/Cover.vue @@ -1,24 +1,21 @@ diff --git a/frontend/src/components/GameGallery/ListItem/Item.vue b/frontend/src/components/GameGallery/ListItem/Item.vue index 492713de4..44823626d 100644 --- a/frontend/src/components/GameGallery/ListItem/Item.vue +++ b/frontend/src/components/GameGallery/ListItem/Item.vue @@ -1,83 +1,66 @@