Skip to content

Calendar

  • Route: src/routes/secure/calendar/+page.svelte (+ +layout.svelte)
  • Feature: src/features/calendar/index.svelte (+ svc/)

Overview

The Calendar is a month/week/agenda view of scheduled events built on @event-calendar/*. Events render with participant avatar overlays; users can create, edit, resize, and join events directly from the calendar.

Core Features

  • Month / week / agenda views (@event-calendar/core, day-grid, time-grid, list).
  • Create / edit events by reusing the dashboard event commands.
  • Resize events by dragging (calls resizeEvent).
  • Join an event by starting it on the hub (initEvent/secure/events/{eventId}).

Module Functions (svc/index.ts)

ts
export async function getCalendarEvents(startTime: Date, endTime: Date): Promise<...>
export async function resizeEvent(command: ResizeEventCommandInput): Promise<...>

Permission model

  • ManageEvents gates create/edit/join actions; unauthorized users see a read-only calendar.

Released under the MIT License.