feat: replace native date inputs with shadcn date picker

Add calendar + popover components and a custom DateTimePicker wrapper.
Video forms use date-only; article forms include a time picker.
Also add video player preview to the video edit form.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-06 17:03:35 +01:00
parent e943876e70
commit 609f116b5d
33 changed files with 799 additions and 15 deletions

View File

@@ -9,6 +9,7 @@
import { Label } from "$lib/components/ui/label";
import { Textarea } from "$lib/components/ui/textarea";
import { TagsInput } from "$lib/components/ui/tags-input";
import { DatePicker } from "$lib/components/ui/date-picker";
import { FileDropZone, MEGABYTE } from "$lib/components/ui/file-drop-zone";
let title = $state("");
@@ -154,8 +155,8 @@
<Input id="category" bind:value={category} placeholder={$_("admin.article_form.category_placeholder")} />
</div>
<div class="space-y-1.5">
<Label for="publishDate">{$_("admin.common.publish_date")}</Label>
<Input id="publishDate" type="datetime-local" bind:value={publishDate} />
<Label>{$_("admin.common.publish_date")}</Label>
<DatePicker bind:value={publishDate} placeholder={$_("admin.common.publish_date")} />
</div>
</div>