Admin navigation: grouped sidebar, plainer labels, Backup page

Agreed with the site owner:
- Grouped sidebar (Website / Bookings / Settings) instead of a flat top
  bar that overflowed on phones; a drawer with a hamburger below lg.
  Signed-in email and Log out at the bottom.
- Labels: Globals → Site design, Items → Services & products,
  Calendar → Events, Export/Import → Backup (URLs unchanged); page headings
  and cross-references updated to match.
- Export/import moved from a navbar dropdown to a /backup page that says
  what is and isn't included.
- Admin event calendar starts weeks on Monday (createCalendarMonth gains an
  optional weekStartsOn; the public block is unchanged).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KgF3Kf47LjPGHKQHszpUAv
This commit is contained in:
agent 2026-10-06 11:00:01 +00:00
parent 9264289813
commit fbcc71672b
11 changed files with 485 additions and 417 deletions

View file

@ -22,8 +22,8 @@
});
let categoryText = $state('');
const weekdays = ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'];
let month = $derived(createCalendarMonth(viewDate));
const weekdays = ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'];
let month = $derived(createCalendarMonth(viewDate, new Date(), 1));
let action = $derived(draft.id ? '?/update' : '?/create');
let dateInputType = $derived(draft.allDay ? 'date' : 'datetime-local');
let startValue = $derived(draft.allDay ? toDateInput(draft.start) : toZonedDatetimeInput(draft.start, data.timezone));
@ -86,13 +86,13 @@
}
</script>
<svelte:head><title>Calendar | CMS</title></svelte:head>
<svelte:head><title>Events | CMS</title></svelte:head>
<div class="space-y-6">
<div class="flex flex-col justify-between gap-4 md:flex-row md:items-end">
<div>
<h1 class="text-3xl font-bold">Calendar</h1>
<p class="text-base-content/60">Create and manage events used by Upcoming Calendar blocks.</p>
<h1 class="text-3xl font-bold">Events</h1>
<p class="text-base-content/60">Workshops and events shown in Upcoming Calendar blocks.</p>
</div>
<button class="btn btn-primary" type="button" onclick={() => createEvent()}>Create event</button>
</div>