forked from sk1982/actaeon
fix: correctly show chuni heaven judge counts in playlog
This commit is contained in:
parent
43ab38db72
commit
63539b22e5
@ -45,7 +45,7 @@ export async function getPlaylog(opts: GetPlaylogOptions) {
|
|||||||
({ ref }) => ['playlog.id', 'playlog.sortNumber', 'playlog.playDate', 'playlog.userPlayDate', 'playlog.track',
|
({ ref }) => ['playlog.id', 'playlog.sortNumber', 'playlog.playDate', 'playlog.userPlayDate', 'playlog.track',
|
||||||
'playlog.score', 'playlog.rank', 'playlog.maxCombo', 'playlog.maxChain', 'playlog.rateTap',
|
'playlog.score', 'playlog.rank', 'playlog.maxCombo', 'playlog.maxChain', 'playlog.rateTap',
|
||||||
'playlog.rateHold', 'playlog.rateSlide', 'playlog.rateAir', 'playlog.rateFlick', 'playlog.judgeGuilty',
|
'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.isNewRecord', 'playlog.isFullCombo', 'playlog.fullChainKind', 'playlog.isAllJustice',
|
||||||
'playlog.playKind', 'playlog.isClear', 'playlog.placeName',
|
'playlog.playKind', 'playlog.isClear', 'playlog.placeName',
|
||||||
...CHUNI_MUSIC_PROPERTIES,
|
...CHUNI_MUSIC_PROPERTIES,
|
||||||
|
@ -36,7 +36,7 @@ export default async function ChuniDashboard() {
|
|||||||
</div>
|
</div>
|
||||||
<div className="text-lg font-semibold px-4 pt-4 border-t border-gray-500 md:hidden">Recent Plays</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">
|
<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]"
|
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} />)}
|
playlog={entry} key={i} />)}
|
||||||
</div>
|
</div>
|
||||||
|
@ -85,10 +85,11 @@ export const ChuniPlaylogCard = ({ playlog, className, badgeClass, showDetails }
|
|||||||
{!!playlog.isNewRecord && <ChuniScoreBadge variant="gold" fontSize="sm">NEW RECORD</ChuniScoreBadge>}
|
{!!playlog.isNewRecord && <ChuniScoreBadge variant="gold" fontSize="sm">NEW RECORD</ChuniScoreBadge>}
|
||||||
</div>
|
</div>
|
||||||
<div className="flex flex-wrap text-xs justify-around drop-shadow-sm gap-1">
|
<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-yellow-300">J. Heaven: {playlog.judgeHeaven}</div>
|
||||||
<div className="text-chuni-justice">Justice: {playlog.judgeCritical}</div>
|
<div className="text-yellow-500">J. Critical: {playlog.judgeCritical}</div>
|
||||||
<div className="text-chuni-attack">Attack: {playlog.judgeAttack}</div>
|
<div className="text-orange-500">Justice: {playlog.judgeJustice}</div>
|
||||||
<div className="text-chuni-miss">Miss: {playlog.judgeGuilty}</div>
|
<div className="text-emerald-600">Attack: {playlog.judgeAttack}</div>
|
||||||
|
<div className="text-gray-400">Miss: {playlog.judgeGuilty}</div>
|
||||||
</div>
|
</div>
|
||||||
{showDetails && <>
|
{showDetails && <>
|
||||||
<Divider className="md:hidden my-2"/>
|
<Divider className="md:hidden my-2"/>
|
||||||
|
@ -18,12 +18,6 @@ const config = {
|
|||||||
'4xl': '1920px',
|
'4xl': '1920px',
|
||||||
'5xl': '2560px',
|
'5xl': '2560px',
|
||||||
'6xl': '3440px'
|
'6xl': '3440px'
|
||||||
},
|
|
||||||
colors: {
|
|
||||||
'chuni-justice-critical': '#dfb920',
|
|
||||||
'chuni-justice': '#db7814',
|
|
||||||
'chuni-attack': '#61a873',
|
|
||||||
'chuni-miss': '#adadad'
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user