From fb6915340c4b6d267b879d9ffd9e864419bdda33 Mon Sep 17 00:00:00 2001 From: Trenton Zimmer <66042448+trmazi@users.noreply.github.com> Date: Thu, 22 May 2025 11:23:25 -0400 Subject: [PATCH] Add game header card, add admin page for arcades, fix bugs --- .env.development | 2 +- .env.production | 2 +- public/data-sources/changelog.json | 3 +- src/colors.js | 2 +- src/components/CardBoxWidget.vue | 8 +- src/components/Cards/GameHeader.vue | 153 ++++++++++++++++++ src/components/Charts/UserNotesRadar.vue | 2 +- src/components/GameTitleLine.vue | 16 +- src/components/SectionTitleLine.vue | 2 +- src/constants/sources.js | 12 ++ src/layouts/LayoutAuthenticated.vue | 4 - src/router/index.js | 19 ++- src/stores/api/admin.js | 10 ++ src/stores/main.js | 5 + src/views/Admin/ArcadesView.vue | 194 +++++++++++++++++++++-- src/views/Admin/MachinesView.vue | 30 ---- src/views/Game/EditView.vue | 72 +++------ src/views/Game/GameView.vue | 88 +++------- src/views/Game/NetworkScores.vue | 17 +- src/views/Game/PersonalScores.vue | 25 +-- src/views/Game/PlayerView.vue | 23 +-- src/views/Game/RivalsView.vue | 68 +++----- src/views/Game/SongView.vue | 108 +++++++++++++ 23 files changed, 595 insertions(+), 270 deletions(-) create mode 100644 src/components/Cards/GameHeader.vue delete mode 100644 src/views/Admin/MachinesView.vue create mode 100644 src/views/Game/SongView.vue diff --git a/.env.development b/.env.development index 9ca9a27..aba9151 100644 --- a/.env.development +++ b/.env.development @@ -1,4 +1,4 @@ -VITE_APP_VERSION="3.0.5" +VITE_APP_VERSION="3.0.6" VITE_API_URL="http://10.5.7.5:8000/" VITE_API_KEY="your_api_key_should_be_here" VITE_ASSET_PATH="/assets" diff --git a/.env.production b/.env.production index 6b8231f..9ae16d2 100644 --- a/.env.production +++ b/.env.production @@ -1,4 +1,4 @@ -VITE_APP_VERSION="3.0.5" +VITE_APP_VERSION="3.0.6" VITE_API_URL="https://restfulsleep.phaseii.network" VITE_API_KEY="your_api_key_should_be_here" VITE_ASSET_PATH="https://cdn.phaseii.network/file/PhaseII/web-assets" diff --git a/public/data-sources/changelog.json b/public/data-sources/changelog.json index 271b814..db2dd0a 100644 --- a/public/data-sources/changelog.json +++ b/public/data-sources/changelog.json @@ -3,5 +3,6 @@ "3.0.2": ["- (Feature) Added new greetings", "- (Feature) Added new user background", "- (Feature) Added toggle for disabling/enabling this popup", "- (Feature) Added version info to footer", "- (Feature) Fill in more profile data on personal profile view", "- (Fix) DDR stats now work again", "- (Fix) DDR player weight can now be set (kinda)"], "3.0.3": ["- (Feature) Discord avatars are now reactive!", "- (Feature) New profile badges! I'll be working on a backend for these soon™️", "- (Optimization) Fix this box's formatting on mobile."], "3.0.4": ["- (Feature) Add performance event flag settings for SOUND VOLTEX EXCEED GEAR"], - "3.0.5": ["- (Feature) Add profile badges based on Discord server roles. Expands Discord linking capabilities."] + "3.0.5": ["- (Feature) Add profile badges based on Discord server roles. Expands Discord linking capabilities."], + "3.0.6": ["- (Major) Replace non-standard game cards with a standardized and new header card. May break some layouts so PLEASE REPORT BUGS!", "- (Feature) Create song detail page, not yet completed or reactive.", "- (Bugfix) Fix issue where deleteSession fails if the session has already been deleted.", "- (Minor) Edit ring color on red buttons", "- (Admin) Add Arcades admin page", "- (Bugfix) Fix incorrect prop types for Notes Radar"] } \ No newline at end of file diff --git a/src/colors.js b/src/colors.js index 01e61e2..691381c 100644 --- a/src/colors.js +++ b/src/colors.js @@ -95,7 +95,7 @@ export const getButtonColor = ( lightDark: "border-gray-100 dark:border-slate-800", contrast: "border-gray-800 dark:border-white", success: "border-emerald-600 dark:border-emerald-800", - danger: "border-red-600 dark:border-ruby-950", + danger: "border-red-600 dark:border-red-950", warning: "border-yellow-600 dark:border-yellow-950", info: "border-blue-600 dark:border-blue-950", }, diff --git a/src/components/CardBoxWidget.vue b/src/components/CardBoxWidget.vue index b641b1b..4d927e3 100644 --- a/src/components/CardBoxWidget.vue +++ b/src/components/CardBoxWidget.vue @@ -50,6 +50,10 @@ defineProps({ type: String, default: null, }, + smallContent: { + type: Boolean, + default: false, + }, }); @@ -82,7 +86,9 @@ defineProps({ :prefix="prefix" :suffix="suffix" /> -
Enter an arcade to manage it
+