From e4fbc7cd50ab4dc56257072c10f520bbd48b47bc Mon Sep 17 00:00:00 2001 From: DecDuck Date: Sun, 6 Jul 2025 13:10:57 +1000 Subject: [PATCH] Toggle for showing title & description overlay on store page #51 (#130) * #51 Adds settings page with showTitleDescriptionOnGamePanel * Removes console.log * Renames isHidden to system, adds missing system column on Game and fixes nitro plugin on fresh database * Implements a different way to handle the placeholder image * Removes system column on Game * Groups settings keys together * Removes unused i18n keys * fix: fix eslints and other small tweaks --------- Co-authored-by: Francois Ribemont --- components/GameCarousel.vue | 10 +- components/GamePanel.vue | 74 ++++-- components/OptionWrapper.vue | 22 ++ eslint.config.mjs | 2 +- i18n/locales/en_us.json | 19 +- layouts/admin.vue | 2 +- pages/admin/settings/index.vue | 119 +++++++++- .../migration.sql | 2 + prisma/models/app.prisma | 2 + prisma/models/client.prisma | 26 +-- prisma/models/content.prisma | 216 +++++++++--------- public/game-panel-placeholder.png | Bin 0 -> 32954 bytes .../api/v1/admin/settings/dummy-data.get.ts | 11 + server/api/v1/admin/settings/index.get.ts | 13 ++ server/api/v1/admin/settings/index.patch.ts | 23 ++ server/internal/acls/descriptions.ts | 4 + server/internal/acls/index.ts | 4 + server/internal/library/index.ts | 4 +- 18 files changed, 404 insertions(+), 149 deletions(-) create mode 100644 components/OptionWrapper.vue create mode 100644 prisma/migrations/20250621205541_add_show_title_description_on_game_panel/migration.sql create mode 100644 public/game-panel-placeholder.png create mode 100644 server/api/v1/admin/settings/dummy-data.get.ts create mode 100644 server/api/v1/admin/settings/index.get.ts create mode 100644 server/api/v1/admin/settings/index.patch.ts diff --git a/components/GameCarousel.vue b/components/GameCarousel.vue index 14ab80e..bb40069 100644 --- a/components/GameCarousel.vue +++ b/components/GameCarousel.vue @@ -7,7 +7,11 @@ :key="gameIdx" class="justify-start" > - +