core: add contest score ratio (#765)

Co-authored-by: panda <panda_dtdyy@outlook.com>
This commit is contained in:
undefinedandpanda authored and GitHub committed 2024-04-01 19:25:18 +08:00
1 parent 9013c4eaa6
commit e25db178fd
11 files changed
+121 -23

No files matched your search

+1
View File
@@ -80,6 +80,7 @@ export const STATUS_CODES: Record<STATUS, string> = {
};
export function getScoreColor(score: number | string): string {
if (score === null || score === undefined || !Number.isFinite(+score)) return '#000000';
return [
'#ff4f4f',
'#ff694f',