From 08da5d5da7283d6277eb3e6c1d729e19fb334c4b Mon Sep 17 00:00:00 2001 From: Trenton Zimmer <66042448+trmazi@users.noreply.github.com> Date: Wed, 17 Dec 2025 17:01:15 -0500 Subject: [PATCH] Add Hitchart and Event schedule to game homepage --- .env.development | 2 +- .env.production | 2 +- public/data-sources/changelog.json | 3 +- src/components/Cards/SongCardSmall.vue | 25 ++ src/components/GeneralTable.vue | 20 +- src/constants/index.js | 25 +- src/constants/scheduledEvents/ddrEvents.js | 9 + src/constants/scheduledEvents/iidxEvents.js | 108 +++++++ src/constants/scheduledEvents/jubeatEvents.js | 63 ++++ src/helpers/score/index.js | 1 - src/stores/api/profile.js | 8 +- src/views/Game/GameView.vue | 288 +++++++++++++++++- src/views/Game/RivalsView.vue | 6 +- 13 files changed, 515 insertions(+), 45 deletions(-) create mode 100644 src/components/Cards/SongCardSmall.vue create mode 100644 src/constants/scheduledEvents/ddrEvents.js create mode 100644 src/constants/scheduledEvents/iidxEvents.js create mode 100644 src/constants/scheduledEvents/jubeatEvents.js diff --git a/.env.development b/.env.development index 29d88c4..72ab04d 100644 --- a/.env.development +++ b/.env.development @@ -1,4 +1,4 @@ -VITE_APP_VERSION="3.0.38" +VITE_APP_VERSION="3.0.39" VITE_API_URL="http://localhost:8000/" VITE_API_KEY="your_api_key_should_be_here" VITE_ASSET_PATH="/assets" diff --git a/.env.production b/.env.production index a272f0e..e87d99a 100644 --- a/.env.production +++ b/.env.production @@ -1,4 +1,4 @@ -VITE_APP_VERSION="3.0.38" +VITE_APP_VERSION="3.0.39" 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 a4c2cd1..bf34c15 100644 --- a/public/data-sources/changelog.json +++ b/public/data-sources/changelog.json @@ -37,5 +37,6 @@ "3.0.35": ["- (Bugfix) Fix cursor hover state on news card and profile card", "- (Minor) Update DDR game options", "- (Minor) Update IIDX event settings", "- (Minor) Add IIDX 32 basic QPro settings"], "3.0.36": ["- (Major) Finish more game metadata (DRS, Museca, Nostalgia, pop'n, jubeat)"], "3.0.37": ["- (Major) Finish more game metadata (RB, SDVX, FTT)", "- (Bugfix) Fix personal record button showing for games without scores."], - "3.0.38": ["- (Major) Finish IIDX base metadata", "- (Minor) Add new greeting"] + "3.0.38": ["- (Major) Finish IIDX base metadata", "- (Minor) Add new greeting"], + "3.0.39": ["- (Major) Add Hitchart and Event schedule to game homepage", "- (Bugfix) Fix breaking jubeat Copius title"] } \ No newline at end of file diff --git a/src/components/Cards/SongCardSmall.vue b/src/components/Cards/SongCardSmall.vue new file mode 100644 index 0000000..115e05f --- /dev/null +++ b/src/components/Cards/SongCardSmall.vue @@ -0,0 +1,25 @@ + + + diff --git a/src/components/GeneralTable.vue b/src/components/GeneralTable.vue index b4c3388..a321bda 100644 --- a/src/components/GeneralTable.vue +++ b/src/components/GeneralTable.vue @@ -7,7 +7,24 @@ import { exportJSON } from "@/helpers/contentExport"; const $route = useRoute(); -const props = defineProps(["headers", "items", "hasAvatar"]); +const props = defineProps({ + headers: { + type: Array, + required: true, + }, + items: { + type: Array, + required: true, + }, + hasAvatar: { + type: Boolean, + default: false, + }, + rowsPerPage: { + type: Number, + default: 25, + }, +}); const emits = defineEmits(["row-clicked"]); const handleRowClick = (item) => { @@ -32,6 +49,7 @@ function downloadJSON() { body-text-direction="left" :prevent-context-menu-row="false" class="pt-2" + :rows-per-page="rowsPerPage" @click-row="handleRowClick" >