This project uses React with shadcn/ui for interface components, specifically checkboxes in the Diagram section.
- Install Node.js dependencies:
npm installFor development with hot-reload:
npm run devThis will launch Vite in development mode. Note that you may need to configure a proxy or modify Flask configuration to serve React files in development.
Before launching Flask, you must build React components:
npm run buildThis will generate compiled files in static/react/.
src/: React/TypeScript source codesrc/components/ui/: shadcn/ui components (checkbox, label, etc.)src/components/: Custom React componentsstatic/react/: Compiled files (generated by build)tailwind.config.js: Tailwind CSS configuration (used by shadcn/ui)components.json: shadcn/ui configuration
- Tailwind CSS is now managed via npm (not CDN)
- Styles are defined in
src/index.css - React components communicate with vanilla JS via
window.mountDiagramCheckboxes