Move schedule data to JSON file
This commit is contained in:
parent
cb2ad42915
commit
99d04f4b43
5 changed files with 136 additions and 122 deletions
26
app/schedule/types.ts
Normal file
26
app/schedule/types.ts
Normal 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[],
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue