Implement editing of the schedule

Cobbled together minimum viable system for editing the schedule in a way
that propogates updates to connected clients.
This commit is contained in:
Hornwitser 2025-02-27 18:39:04 +01:00
parent cdad188233
commit 093a6816bc
7 changed files with 236 additions and 49 deletions

View file

@ -4,6 +4,7 @@ import { readFile } from "fs/promises"
import { ScheduleProvider } from "./context"
import { Events } from "@/ui/events";
import { Locations } from "@/ui/locations";
import { EventsEdit } from "@/ui/events-edit";
export default async function page() {
const schedule: Schedule = JSON.parse(await readFile("schedule.json", "utf-8"));
@ -16,6 +17,7 @@ export default async function page() {
</p>
<h2>Schedule</h2>
<Timetable />
<EventsEdit />
<h2>Events</h2>
<Events />
<h2>Locations</h2>