built create event UI

This commit is contained in:
2025-10-11 14:04:27 -04:00
parent e158427c93
commit b268ee46e1
3 changed files with 318 additions and 11 deletions

42
ui/src/api/calendar.ts Normal file
View File

@@ -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) {
}