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 { Map } from '@/components/shadcnmaps/map'import { MapControls } from '@/components/shadcnmaps/map-controls'import type { MapData, MapRegionData } from '@/components/shadcnmaps/types'const cells = [ { abbreviation: 'NW', name: 'Northwest' }, { abbreviation: 'N', name: 'North' }, { abbreviation: 'NE', name: 'Northeast' }, { abbreviation: 'W', name: 'West' }, { abbreviation: 'C', name: 'Central' }, { abbreviation: 'E', name: 'East' },]const regions: MapRegionData[] = cells.map((cell, index) => { const x = 4 + (index % 3) * 100 const y = 4 + Math.floor(index / 3) * 100 return { id: cell.abbreviation, name: cell.name, abbreviation: cell.abbreviation, path: `M${x} ${y}H${x + 92}V${y + 92}H${x}Z`, labelX: x + 46, labelY: y + 46, }})const data: MapData = { id: 'sample', name: 'Sample Regions', viewBox: '0 0 300 200', regions,}export default function MapDemo() { return ( <div className='w-full max-w-lg'> <Map data={data} enableZoom controls={<MapControls />} /> </div> )}