Move all code to old/ to prepare for Nuxt rewrite
This commit is contained in:
parent
6007f4caeb
commit
51ff27c569
33 changed files with 0 additions and 1 deletions
|
@ -1,35 +0,0 @@
|
|||
import Timetable from "@/ui/timetable"
|
||||
import { Schedule } from "./types"
|
||||
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";
|
||||
import { PushNotification } from "@/ui/push-notification";
|
||||
|
||||
export const dynamic = "force-dynamic";
|
||||
|
||||
export default async function page() {
|
||||
const schedule: Schedule = JSON.parse(await readFile("schedule.json", "utf-8"));
|
||||
return (
|
||||
<ScheduleProvider schedule={schedule}>
|
||||
<main>
|
||||
<h1>Schedule & Events</h1>
|
||||
<p>
|
||||
Study carefully, we only hold these events once a year.
|
||||
</p>
|
||||
<p>
|
||||
Get notified about updates
|
||||
</p>
|
||||
<PushNotification vapidPublicKey={process.env.VAPID_PUBLIC_KEY!} />
|
||||
<h2>Schedule</h2>
|
||||
<Timetable />
|
||||
<EventsEdit />
|
||||
<h2>Events</h2>
|
||||
<Events />
|
||||
<h2>Locations</h2>
|
||||
<Locations />
|
||||
</main>
|
||||
</ScheduleProvider>
|
||||
);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue