How quitlightfe/word-generator works
This is a browser-based generator for Russian student-notice documents. A user enters recipient and student details, previews the populated HTML notice, then downloads it as DOCX. The React app owns the form state, date formatting, template substitution, and export flow; the static notice content lives separately. Source excerpts show the app’s calls and bootstrap wiring, but not the internals of the DOCX library.
Main entry points: App.tsx Notice form · main.tsx React bootstrap · template.ts Notice template
Components 8
User interface
- Notice form
src/App.tsx
Document generation
- Notice template
src/data/template.ts - HTML preview
src/App.tsx - DOCX export
src/App.tsx
Browser runtime
- React bootstrap
src/main.tsx - HTML-to-DOCX library
- Browser download APIs
Other components
- User
Connections 8
- React bootstrap → Notice form: renders
src/main.tsx - User → Notice form: enters details
src/App.tsx - Notice form → Notice template: reads
src/App.tsx - Notice form → HTML preview: fills fields
src/App.tsx - HTML preview → Notice form: renders preview
src/App.tsx - User → DOCX export: requests download
src/App.tsx - DOCX export → HTML-to-DOCX library: converts HTML
src/App.tsx - DOCX export → Browser download APIs: downloads DOCX
src/App.tsx