fix: correctly show chuni heaven judge counts in playlog

This commit is contained in:
sk1982 2024-04-13 02:28:02 -04:00
parent 43ab38db72
commit 63539b22e5
4 changed files with 7 additions and 12 deletions

View File

@ -45,7 +45,7 @@ export async function getPlaylog(opts: GetPlaylogOptions) {
({ ref }) => ['playlog.id', 'playlog.sortNumber', 'playlog.playDate', 'playlog.userPlayDate', 'playlog.track',
'playlog.score', 'playlog.rank', 'playlog.maxCombo', 'playlog.maxChain', 'playlog.rateTap',
'playlog.rateHold', 'playlog.rateSlide', 'playlog.rateAir', 'playlog.rateFlick', 'playlog.judgeGuilty',
'playlog.judgeAttack', 'playlog.judgeCritical', 'playlog.judgeHeaven', 'playlog.playerRating',
'playlog.judgeAttack', 'playlog.judgeCritical', 'playlog.judgeHeaven', 'playlog.playerRating', 'playlog.judgeJustice',
'playlog.isNewRecord', 'playlog.isFullCombo', 'playlog.fullChainKind', 'playlog.isAllJustice',
'playlog.playKind', 'playlog.isClear', 'playlog.placeName',
...CHUNI_MUSIC_PROPERTIES,

View File

@ -36,7 +36,7 @@ export default async function ChuniDashboard() {
</div>
<div className="text-lg font-semibold px-4 pt-4 border-t border-gray-500 md:hidden">Recent Plays</div>
<div className="my-4 w-full flex-grow grid gap-2 grid-cols-1 lg:grid-cols-2 2xl:grid-cols-3 5xl:grid-cols-6 6xl:grid-cols-8">
{playlog.data.map((entry, i) => <ChuniPlaylogCard className="w-full h-48"
{playlog.data.map((entry, i) => <ChuniPlaylogCard className="w-full h-52"
badgeClass="h-5 lg:h-[1.125rem] xl:h-6 2xl:h-[1.125rem] 4xl:h-6 5xl:h-[1.125rem]"
playlog={entry} key={i} />)}
</div>

View File

@ -85,10 +85,11 @@ export const ChuniPlaylogCard = ({ playlog, className, badgeClass, showDetails }
{!!playlog.isNewRecord && <ChuniScoreBadge variant="gold" fontSize="sm">NEW RECORD</ChuniScoreBadge>}
</div>
<div className="flex flex-wrap text-xs justify-around drop-shadow-sm gap-1">
<div className="text-chuni-justice-critical">Justice Critical: {playlog.judgeHeaven}</div>
<div className="text-chuni-justice">Justice: {playlog.judgeCritical}</div>
<div className="text-chuni-attack">Attack: {playlog.judgeAttack}</div>
<div className="text-chuni-miss">Miss: {playlog.judgeGuilty}</div>
<div className="text-yellow-300">J. Heaven: {playlog.judgeHeaven}</div>
<div className="text-yellow-500">J. Critical: {playlog.judgeCritical}</div>
<div className="text-orange-500">Justice: {playlog.judgeJustice}</div>
<div className="text-emerald-600">Attack: {playlog.judgeAttack}</div>
<div className="text-gray-400">Miss: {playlog.judgeGuilty}</div>
</div>
{showDetails && <>
<Divider className="md:hidden my-2"/>

View File

@ -18,12 +18,6 @@ const config = {
'4xl': '1920px',
'5xl': '2560px',
'6xl': '3440px'
},
colors: {
'chuni-justice-critical': '#dfb920',
'chuni-justice': '#db7814',
'chuni-attack': '#61a873',
'chuni-miss': '#adadad'
}
}
}