scoreboard: bug fixes

This commit is contained in:
undefined committed 2024-11-17 23:28:39 +08:00
1 parent c555992478
commit 53fc85ddd6
6 files changed
+6 -6

No files matched your search

+1 -1
View File
@@ -39,7 +39,7 @@
"@types/cross-spawn": "^6.0.6",
"@types/node": "22.7.4",
"@types/semver": "^7.5.8",
"autocannon": "^7.15.0",
"autocannon": "^8.0.0",
"cac": "^6.7.14",
"chai": "^5.1.2",
"cross-env": "^7.0.3",
+1 -1
View File
@@ -55,7 +55,7 @@ export function apply(ctx: Context) {
payload: {
name: tdoc.title,
duration: Math.floor((new Date(tdoc.endAt).getTime() - new Date(tdoc.beginAt).getTime()) / 1000),
frozen: Math.floor((new Date(tdoc.endAt).getTime() - new Date(tdoc.lockAt).getTime()) / 1000),
frozen: Math.floor((new Date(tdoc.lockAt).getTime() - new Date(tdoc.beginAt).getTime()) / 1000),
problems: tdoc.pids.map((i, n) => ({ name: pid(n), id: i.toString() })),
teams: teams.map((t) => ({
id: t.uid.toString(),
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@hydrooj/onsite-toolkit",
"version": "0.0.1",
"version": "0.0.2",
"dependencies": {
"@react-spring/web": "^9.7.5",
"react-use": "^17.5.1"
+1 -1
View File
@@ -96,7 +96,7 @@ export async function apply(ctx: Context) {
},
},
balloon_color: tdoc.balloon
? tdoc.pids.map((i) => ({
? tdoc.pids.filter((i) => tdoc.balloon[i]).map((i) => ({
color: '#000',
background_color: typeof tdoc.balloon[i] === 'string' ? tdoc.balloon[i] : tdoc.balloon[i].color,
}))
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "@hydrooj/scoreboard-xcpcio",
"license": "AGPL-3.0-or-later",
"version": "0.0.2",
"version": "0.0.3",
"main": "index.ts",
"scripts": {
"postinstall": "node -r @hydrooj/register install.ts"
+1 -1
View File
@@ -108,7 +108,7 @@
"style-loader": "^3.3.4",
"stylus": "^0.64.0",
"stylus-loader": "7.1.2",
"svgtofont": "^6.0.1",
"svgtofont": "^6.1.0",
"tether": "1.4.7",
"tether-drop": "^1.4.2",
"timeago-react": "^3.0.6",