diff --git a/frontend/src/routes/CalendarPage.svelte b/frontend/src/routes/CalendarPage.svelte new file mode 100644 index 0000000..91f8504 --- /dev/null +++ b/frontend/src/routes/CalendarPage.svelte @@ -0,0 +1,141 @@ + + +

Calendar

+ +{#if !calendars.length} +

Add a calendar in Settings first.

+{:else} +
+ + +
+ +
+ + {monthLabel(month)} + +
+ +
+
+ Download new and changed (.ics) + Download everything +
+

+ On iPhone, open the file and tap “Add All”. Each download holds what changed since the last one, so re-importing + doesn't duplicate events in Apple Calendar. + {#if calendar?.last_exported_at}Last download: {new Date(calendar.last_exported_at.replace(' ', 'T') + 'Z').toLocaleString()}.{/if} +

+
+ +
+ +
+ {#if editing === 'new'} +
+ (editing = null)} /> +
+ {/if} + + {#if error} +

{error}

+ {:else if events === null} +

Loading…

+ {:else if view === 'grid'} + + {:else if !events.length} +

Nothing this month.

+ {:else} + {#each byDay as [day, list] (day)} +

{dayLabel(day)}

+ + {/each} + {/if} +{/if} + +