From 2acc9b0133331f41eeadfadbdc6d0dea65efd07d Mon Sep 17 00:00:00 2001 From: Trit0 Date: Sun, 29 Jun 2025 16:51:47 -0400 Subject: [PATCH] Supposed to load games --- app.go | 5 +- frontend/package.json.md5 | 2 +- frontend/src/App.vue | 2 +- frontend/src/components/GameCarousel.vue | 12 +-- frontend/src/models/game.ts | 22 ----- frontend/src/services/game-service.ts | 91 ++++++++++--------- frontend/src/stores/app-store.ts | 5 +- frontend/wailsjs/go/main/App.d.ts | 4 +- frontend/wailsjs/go/models.ts | 40 +++++++-- go.mod | 40 +++++---- go.sum | 107 +++++++++++------------ lib/config/config.go | 51 +++++++++++ lib/models/game.go | 20 +++++ lib/provider/provider.go | 52 ++++++----- 14 files changed, 268 insertions(+), 185 deletions(-) delete mode 100644 frontend/src/models/game.ts create mode 100644 lib/config/config.go create mode 100644 lib/models/game.go diff --git a/app.go b/app.go index 0d0e6f3..79c976f 100644 --- a/app.go +++ b/app.go @@ -1,6 +1,7 @@ package main import ( + "conjure-os/lib/models" "context" "fmt" @@ -37,6 +38,6 @@ func (a *App) Greet(name string) string { func (a *App) SelectGame(id string) { } -func (a *App) LoadGames() []provider.Game { - return provider.ObtainConjureGameInfo() +func (a *App) LoadGames() []models.Game { + return provider.GetConjureGameInfo() } diff --git a/frontend/package.json.md5 b/frontend/package.json.md5 index 3dd94f5..7f01a6d 100755 --- a/frontend/package.json.md5 +++ b/frontend/package.json.md5 @@ -1 +1 @@ -1f77c5bc2ac4189b53ca32c331845b25 \ No newline at end of file +0439ac4c00128949ad585ea9e2f68e8e \ No newline at end of file diff --git a/frontend/src/App.vue b/frontend/src/App.vue index bdced78..fdb39e6 100644 --- a/frontend/src/App.vue +++ b/frontend/src/App.vue @@ -50,7 +50,7 @@ const optionsOpen = ref(false); onMounted(async () => { games.value = await fetchGames(); - tags.value = [...new Set(games.value.flatMap(game => game.tags))]; + tags.value = [...new Set(games.value.flatMap(game => game.Genres))]; selectedTag.value = tags.value[0]; selectedGame.value = store.filteredGames[0]; }); diff --git a/frontend/src/components/GameCarousel.vue b/frontend/src/components/GameCarousel.vue index 2465388..93bf1c2 100644 --- a/frontend/src/components/GameCarousel.vue +++ b/frontend/src/components/GameCarousel.vue @@ -4,17 +4,17 @@
@@ -33,7 +33,9 @@