New Code Editor and fun

This commit is contained in:
2023-12-03 19:31:29 +01:00
parent 2abe554059
commit fbd52f3edb
53 changed files with 1330 additions and 489 deletions

View File

@@ -0,0 +1,26 @@
import {z} from "zod";
export const RankingSchema = z.array(z.object({
name: z.string(),
elo: z.number(),
}))
export type Ranking = z.infer<typeof RankingSchema>;
export const FightStatsSchema = z.array(z.object({
date: z.string(),
gamemode: z.string(),
count: z.number(),
}))
export type FightStats = z.infer<typeof FightStatsSchema>;
export const UserStatsSchema = z.object({
eventFightParticipation: z.number(),
eventParticipation: z.number(),
acceptedSchematics: z.number(),
fights: z.number(),
playtime: z.number()
})
export type UserStats = z.infer<typeof UserStatsSchema>;