Migrate to dayjs and Astro 4.0

This commit is contained in:
2023-12-07 00:17:32 +01:00
parent 505ee26622
commit 311856415e
24 changed files with 731 additions and 980 deletions

View File

@@ -1,20 +1,20 @@
import type {ExtendedEvent, ShortEvent, SWEvent} from "../types/event.js";
import {fetchWithToken} from "./repo.js";
import type {Moment} from "moment";
import {ExtendedEventSchema, ShortEventSchema, SWEventSchema} from "../types/event.js";
import {z} from "zod";
import type {Dayjs} from "dayjs";
export interface CreateEvent {
name: string
start: Moment
end: Moment
start: Dayjs
end: Dayjs
}
export interface UpdateEvent {
name: string
start: Moment
end: Moment
deadline: Moment
start: Dayjs
end: Dayjs
deadline: Dayjs
maxTeamMembers: number
schemType: string | null
publicSchemsOnly: boolean

View File

@@ -1,15 +1,15 @@
import type {EventFight} from "../types/event.js";
import {fetchWithToken} from "./repo.js";
import type {Moment} from "moment";
import {z} from "zod";
import {EventFightSchema} from "../types/event.js";
import type {Dayjs} from "dayjs";
export interface CreateFight {
spielmodus: string
map: string
blueTeam: number
redTeam: number
start: Moment
start: Dayjs
kampfleiter: number | null
group: string | null
}
@@ -19,7 +19,7 @@ export interface UpdateFight {
map: string | null
blueTeam: number | null
redTeam: number | null
start: Moment | null
start: Dayjs | null
kampfleiter: number | null
group: string | null
}