mirror of
https://github.com/PhaseII-eAmusement-Network/PhaseWeb3-Vue.git
synced 2026-03-22 02:04:17 -05:00
Add a few timeline changes and fixes, add missing colors
This commit is contained in:
parent
712e123e3f
commit
03f34bf0c3
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "phaseweb3",
|
||||
"version": "3.0.44",
|
||||
"version": "3.0.45",
|
||||
"scripts": {
|
||||
"dev": "vite --host",
|
||||
"build": "vite build",
|
||||
|
|
|
|||
|
|
@ -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"]
|
||||
}
|
||||
|
|
@ -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:
|
||||
|
|
|
|||
|
|
@ -2140,6 +2140,7 @@ export const gameData = [
|
|||
2: "EXHAUST",
|
||||
3: "INFINITE",
|
||||
4: "MAXIMUM",
|
||||
5: "ULTIMATE",
|
||||
},
|
||||
rankTable: {
|
||||
100: "NO PLAY",
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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) {
|
|||
/>
|
||||
</template>
|
||||
|
||||
<template v-if="myProfile?.timeline">
|
||||
<template v-if="myStats?.timeline">
|
||||
<SectionTitleLine :icon="PhCalendarDots" title="Timeline" main />
|
||||
<div class="my-6">
|
||||
<CardBox>
|
||||
|
|
@ -788,7 +789,7 @@ function formatHitchart(data) {
|
|||
>
|
||||
<li
|
||||
v-for="playHistory of JSON.parse(
|
||||
JSON.stringify(myProfile?.timeline),
|
||||
JSON.stringify(myStats?.timeline),
|
||||
).reverse()"
|
||||
:key="playHistory.timestamp"
|
||||
class="md:inline-block shrink-0"
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user