- Add docs/README.md as the index of all documentation. - Split the 52 DEC entries of decisioni-e-limiti.md into docs/adr/ADR-NN files (same numbers), add ADR-53 (audit log), TEMPLATE.md and an ADR index with a feature -> ADR table. - Rename decisioni-e-limiti.md to limiti-noti.md (LIM only) and rewrite all DEC-nn references as links to the ADRs. - Document the docs-first / SSOT / ADR rules in processo-di-modifica.md and map the docs in CLAUDE.md and README.md. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
1.1 KiB
1.1 KiB
ADR-50 — Frontend statici, senza framework né build
- Stato: Accettata — implementazione da completare (B-94)
- Area: Interfacce, API e lingue
- Fonte di verità per: la scelta di progetto descritta qui sotto; i requisiti (
PREFISSO-NN) che la attuano stanno nei documenti di dominio, indicati nelle Conseguenze.
Decisione
Frontend statici, senza framework né build: due SPA servite
direttamente da FastAPI, che parlano con la stessa API JSON (nessuna
separazione fra API utente e admin oltre al controllo del token). Le pagine
HTML hanno Cache-Control: no-store, i file JS e CSS Cache-Control: no-cache (il browser li riconvalida a ogni caricamento, così un
aggiornamento non lascia una pagina nuova con uno script vecchio;
architettura.md, B-94).
Codice: app/main.py:index_page · app/main.py:admin_panel · app/static/app.js · app/static/admin.js
Stato: da implementare (B-94) · Oggi: solo le quattro pagine HTML hanno
Cache-Control (no-store); JS e CSS, serviti da StaticFiles, non ne
hanno.