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 @@ + + +