Move schedule data to JSON file

This commit is contained in:
Hornwitser 2025-02-26 23:56:19 +01:00
parent cb2ad42915
commit 99d04f4b43
5 changed files with 136 additions and 122 deletions

26
app/schedule/types.ts Normal file
View file

@ -0,0 +1,26 @@
export interface ScheduleEvent {
name: string,
id: string,
host?: string,
cancelled?: boolean,
description?: string,
slots: TimeSlot[],
}
export interface ScheduleLocation {
name: string,
id: string,
description?: string,
}
export interface TimeSlot {
id: string,
start: string,
end: string,
locations: string[],
}
export interface Schedule {
locations: ScheduleLocation[],
events: ScheduleEvent[],
}