diff --git a/.env.development b/.env.development index e8fe015..f10177e 100644 --- a/.env.development +++ b/.env.development @@ -1,4 +1,4 @@ -VITE_APP_VERSION="3.0.44" +VITE_APP_VERSION="3.0.45" 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 6574d57..f8d527e 100644 --- a/.env.production +++ b/.env.production @@ -1,4 +1,4 @@ -VITE_APP_VERSION="3.0.44" +VITE_APP_VERSION="3.0.45" 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/package.json b/package.json index 8a6baa6..220b229 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "phaseweb3", - "version": "3.0.44", + "version": "3.0.45", "scripts": { "dev": "vite --host", "build": "vite build", diff --git a/public/data-sources/changelog.json b/public/data-sources/changelog.json index ef3c304..d0b671c 100644 --- a/public/data-sources/changelog.json +++ b/public/data-sources/changelog.json @@ -43,5 +43,6 @@ "3.0.41": ["- (Major) Completely refactor user profile schema", "- (Major) Add Hitchart to player view", "- (Major) Add changelog archive view"], "3.0.42-oMini": ["- (Major) Refactor loading state", "- (Minor) Add two new customizations, filled/outlined PillTags and Buttons"], "3.0.43": ["- (Major) Add pop'n music Jam&Fizz"], - "3.0.44": ["- (Bugfix) Fix broken race state on game page", "- (Major) Add customization options for BaseIcon fill type", "- (Major) Add pop'n music weekly course song"] + "3.0.44": ["- (Bugfix) Fix broken race state on game page", "- (Major) Add customization options for BaseIcon fill type", "- (Major) Add pop'n music weekly course song"], + "3.0.45": ["- (Bugfix) Fix Timeline not loading", "- (Major) Add a filter to the data in the timeline for private profiles", "- (Game) Add SDVX 6th chart", "- (Bugfix) Fix floats for jubeat difficulties"] } \ No newline at end of file diff --git a/src/colors.js b/src/colors.js index d268441..65874bb 100644 --- a/src/colors.js +++ b/src/colors.js @@ -115,6 +115,8 @@ export const getButtonColor = ( danger: "text-red-600 dark:text-red-500", warning: "text-yellow-600 dark:text-yellow-500", info: "text-blue-600 dark:text-blue-500", + sakura: "text-pink-300", + gold: "text-amber-400", }, outlineHover: { contrast: diff --git a/src/constants/index.js b/src/constants/index.js index cd3a4f4..44c4a54 100644 --- a/src/constants/index.js +++ b/src/constants/index.js @@ -2140,6 +2140,7 @@ export const gameData = [ 2: "EXHAUST", 3: "INFINITE", 4: "MAXIMUM", + 5: "ULTIMATE", }, rankTable: { 100: "NO PLAY", diff --git a/src/constants/scoreDataFilters.js b/src/constants/scoreDataFilters.js index 0d44951..3c55264 100644 --- a/src/constants/scoreDataFilters.js +++ b/src/constants/scoreDataFilters.js @@ -1,3 +1,7 @@ +function isFloat(n) { + return Number(n) === n && n % 1 !== 0; +} + export function shouldRenderChart(difficulty, chartTable, chartKey) { const invalidDifficulties = [0, -1, "-1", null]; const hasValidDifficulty = !invalidDifficulties.includes(difficulty); @@ -6,6 +10,9 @@ export function shouldRenderChart(difficulty, chartTable, chartKey) { } export function formatDifficulty(difficulty, difficultyDenom = 1) { + if (isFloat(difficulty)) { + return difficulty; + } if (isNaN(difficulty / difficultyDenom)) { return difficulty?.difnum ? difficulty.difnum : difficulty; } diff --git a/src/views/Game/PlayerView.vue b/src/views/Game/PlayerView.vue index f8333b7..93d5114 100644 --- a/src/views/Game/PlayerView.vue +++ b/src/views/Game/PlayerView.vue @@ -93,12 +93,13 @@ async function loadProfile() { versionForm.currentVersion, profileUserId, ); - data.timeline = await generateTimeline(data.stats); + const baseTimeline = await generateTimeline(data.stats); const formatted = formatProfile(data.profile, data.stats); myProfile.value = formatted[0]; myVersions.value = data.versions; myStats.value = formatted[1]; + myStats.value.timeline = baseTimeline; if (data && !versionForm.currentVersion) { versionForm.currentVersion = data.versions[data.versions.length - 1]; @@ -779,7 +780,7 @@ function formatHitchart(data) { /> -