From 7c31dfd4abf6b735cddae248c7166a70fc39bc00 Mon Sep 17 00:00:00 2001 From: Raymond <101374892+raymonable@users.noreply.github.com> Date: Mon, 8 Jun 2026 12:11:30 -0400 Subject: [PATCH] feat: add candidate display option to global game options --- AquaNet/.env.example | 7 +- .../settings/GeneralGameSettings.svelte | 71 ++++++++++++++----- AquaNet/src/libs/generalTypes.ts | 2 + AquaNet/src/libs/i18n/en_ref.ts | 19 +++-- .../src/pages/Home/ImportDataAction.svelte | 1 + AquaNet/src/pages/UserHome.svelte | 25 ++++--- .../icu/samnyan/aqua/net/db/AquaNetUser.kt | 2 + .../samnyan/aqua/net/games/chu3/Chu3Import.kt | 5 +- .../samnyan/aqua/net/games/ongeki/Ongeki.kt | 6 +- .../resources/db/80/V1000_80__candidates.sql | 2 + 10 files changed, 96 insertions(+), 44 deletions(-) create mode 100644 src/main/resources/db/80/V1000_80__candidates.sql diff --git a/AquaNet/.env.example b/AquaNet/.env.example index 4305f6e6..4e13e9d1 100644 --- a/AquaNet/.env.example +++ b/AquaNet/.env.example @@ -1,7 +1,10 @@ +# This should reference your AquaDX instance's :80 port. +# Sometimes issues with CORS may appear, the easiest fix is to use a reverse proxy like Caddy to put AquaDX on the /aqua path, +# and set this to match the /aqua path (see example below) VITE_AQUA_HOST=https://aquadx.net/aqua -# Link to datas (eg, songid, information, etc). -# Leave this as is if you do not have the data. +# Link to converted game data (ex: all_music.json, all_items.json, etc.) +# Profile pictures are also served through this path, you may want to disable profile pictures if using the primary instance for data fetching VITE_DATA_HOST=https://aquadx.net VITE_AQUA_CONNECTION=aquadx.hydev.org diff --git a/AquaNet/src/components/settings/GeneralGameSettings.svelte b/AquaNet/src/components/settings/GeneralGameSettings.svelte index 30111a37..61e041d4 100644 --- a/AquaNet/src/components/settings/GeneralGameSettings.svelte +++ b/AquaNet/src/components/settings/GeneralGameSettings.svelte @@ -1,32 +1,67 @@ - -
-
- {ts("settings.siteNotice")} -
-
-
- - +{#if !loading} +
+
+ {ts("settings.siteNotice")} +
+
+
+ + +
+
+
+ submit('displayCandidates', me.displayCandidates.toString())}/> + +
+
+
+
+ {ts("settings.regionNotice")} +
+
-
-
- {ts("settings.regionNotice")} -
- -
+{/if} + +