From 2366dc74b585efc82cbd5103b5a55f635fe0dcc2 Mon Sep 17 00:00:00 2001 From: Trenton Zimmer <66042448+trmazi@users.noreply.github.com> Date: Fri, 18 Apr 2025 00:24:03 -0400 Subject: [PATCH] Add basic API key creation/deletion page. Clean up Update Modal, fill out Admin Event page, Fix user avatar formatting. --- .env.development | 2 +- .env.production | 2 +- public/data-sources/changelog.json | 3 +- src/components/Modal/UpdateModal.vue | 8 +- src/components/UserCard.vue | 44 +++++-- src/stores/api/admin.js | 20 ++++ src/views/Admin/APIView.vue | 134 +++++++++++++++++++-- src/views/Admin/DashboardView.vue | 8 +- src/views/Admin/EventsView.vue | 166 ++++++++++++++++++++++++--- src/views/Admin/MaintView.vue | 39 +++++-- src/views/Game/PlayersView.vue | 2 +- 11 files changed, 372 insertions(+), 56 deletions(-) diff --git a/.env.development b/.env.development index ae4a958..9ec29b8 100644 --- a/.env.development +++ b/.env.development @@ -1,4 +1,4 @@ -VITE_APP_VERSION="3.0.2" +VITE_APP_VERSION="3.0.3" 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 7e9d3d9..fd26186 100644 --- a/.env.production +++ b/.env.production @@ -1,4 +1,4 @@ -VITE_APP_VERSION="3.0.2" +VITE_APP_VERSION="3.0.3" 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 646e8c4..d92e158 100644 --- a/public/data-sources/changelog.json +++ b/public/data-sources/changelog.json @@ -1,4 +1,5 @@ { "3.0.1": ["- (Feature) Added update popup", "- (Optimization) Disabled ParticlesJS for the time being. This will be returned as an option in the future.", "- (Optimization) Fill in more score table data for GFDM.", "- (soon™️) I've started rival support, but it's not ready just yet. Stay tuned!"], - "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.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."] } \ No newline at end of file diff --git a/src/components/Modal/UpdateModal.vue b/src/components/Modal/UpdateModal.vue index aba553a..cc0a2f5 100644 --- a/src/components/Modal/UpdateModal.vue +++ b/src/components/Modal/UpdateModal.vue @@ -85,8 +85,10 @@ async function updateUserData(disable = false) { w="w-20" :size="45" /> -

Since you've been gone...

-

+

+ While you were away... +

+

We've updated the site! These updates include feature updates and bugfixes.

@@ -96,7 +98,7 @@ async function updateUserData(disable = false) {

Changelog:

- +

+ + + + - -