Pipeline
- Docsusage, props, keywords
- Demosrc/demo.tsx
- Buildshadcn add → vite
- Capturelight, dark, motion
- IndexBM25 + vectors
Public log. Prompts, raw model errors and costs stay on the admin side.
Log
Demo source
src/demo.tsx · from an earlier run
import { useState } from 'react'import { CalendarMonthView, CalendarToolbar, type CalendarEvent } from '@/components/dashboardblocks/calendar'import { getDay } from '@/components/dashboardblocks/schedule'const NOW = new Date(Date.UTC(2025, 5, 12, 10))const events: CalendarEvent[] = [ { id: '1', title: 'Team standup', start: new Date(Date.UTC(2025, 5, 9, 9, 30)), end: new Date(Date.UTC(2025, 5, 9, 10)), color: 'var(--chart-1)', calendar: 'Work', }, { id: '2', title: 'Design review', start: new Date(Date.UTC(2025, 5, 12, 14)), end: new Date(Date.UTC(2025, 5, 12, 15)), color: 'var(--chart-2)', calendar: 'Work', }, { id: '3', title: 'Launch week', start: new Date(Date.UTC(2025, 5, 16)), end: new Date(Date.UTC(2025, 5, 19)), allDay: true, color: 'var(--chart-3)', calendar: 'Projects', }, { id: '4', title: 'Dentist', start: new Date(Date.UTC(2025, 5, 20, 15)), end: new Date(Date.UTC(2025, 5, 20, 16)), color: 'var(--chart-4)', calendar: 'Personal', },]export default function CalendarDemo() { const [month, setMonth] = useState(() => getDay(NOW)) return ( <div className='flex w-full max-w-2xl flex-col gap-4'> <CalendarToolbar title={month.toLocaleString('en', { month: 'long', year: 'numeric', timeZone: 'UTC' })} onToday={() => setMonth(getDay(NOW))} onPrevious={() => setMonth((m) => new Date(Date.UTC(m.getUTCFullYear(), m.getUTCMonth() - 1, 1))) } onNext={() => setMonth((m) => new Date(Date.UTC(m.getUTCFullYear(), m.getUTCMonth() + 1, 1))) } /> <CalendarMonthView label='Schedule' events={events} month={month} now={NOW} onMonthChange={setMonth} /> </div> )}