From b268ee46e14442581ba7ae1acb3a9c2d7f5e6ef7 Mon Sep 17 00:00:00 2001 From: ajdj100 Date: Sat, 11 Oct 2025 14:04:27 -0400 Subject: [PATCH] built create event UI --- ui/src/api/calendar.ts | 42 +++ .../calendar/CreateCalendarEvent.vue | 257 ++++++++++++++++++ ui/src/pages/Calendar.vue | 30 +- 3 files changed, 318 insertions(+), 11 deletions(-) create mode 100644 ui/src/api/calendar.ts create mode 100644 ui/src/components/calendar/CreateCalendarEvent.vue diff --git a/ui/src/api/calendar.ts b/ui/src/api/calendar.ts new file mode 100644 index 0000000..d4c01ac --- /dev/null +++ b/ui/src/api/calendar.ts @@ -0,0 +1,42 @@ +export interface CalendarEvent { + name: string, + start: Date, + end: Date, + location: string, + color: string, + description: string, + creator: any | null, // user object + id: number | null +} + +export enum CalendarAttendance { + Attending = "attending", + NotAttending = "not_attending", + Maybe = "maybe" +} + +export interface CalendarSignup { + memberID: number, + eventID: number, + state: CalendarAttendance +} + +export async function createCalendarEvent(eventData: CalendarEvent) { + +} + +export async function editCalendarEvent(eventData: CalendarEvent) { + +} + +export async function cancelCalendarEvent(eventID: number) { + +} + +export async function adminCancelCalendarEvent(eventID: number) { + +} + +export async function setCalendarEventAttendance(eventID: number, state: CalendarAttendance) { + +} \ No newline at end of file diff --git a/ui/src/components/calendar/CreateCalendarEvent.vue b/ui/src/components/calendar/CreateCalendarEvent.vue new file mode 100644 index 0000000..d2e5355 --- /dev/null +++ b/ui/src/components/calendar/CreateCalendarEvent.vue @@ -0,0 +1,257 @@ + + +