You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Antonio De Lucreziis af2fcc31f8 feat: WIP, admins only can see a table of users that have logged in the site 2 years ago
..
components feat: added not-found and error pages 2 years ago
hooks all: Aggiunte varie feature e riscritte svariate cose 2 years ago
pages feat: WIP, admins only can see a table of users that have logged in the site 2 years ago
styles feat: WIP, admins only can see a table of users that have logged in the site 2 years ago
App.tsx feat: added not-found and error pages 2 years ago
README.md Added a readme in the client folder 2 years ago
api.tsx all: Aggiunte varie feature e riscritte svariate cose 2 years ago
entry-client.tsx fix: maybe fixed open tags 2 years ago
entry-server.tsx fix: Preact router and BASE_URL 2 years ago
hooks.tsx chore: formattato il codice e rimosso un vecchio file 2 years ago

README.md

Frontend

La frontend è un progetto in Preact che è organizzato come segue

  • App.jsx è il componente radice dell'applicazione in Preact

  • entry-client.jsx è lo script che viene eseguito nel browser quando si naviga su una pagina HTML.

  • entry-server.jsx gestisce il cosiddetto server side rendering.

    Quando viene fatta una richiesta al server su una determinata route, questo renderizza una pagina HTML ad hoc per quella route utilizzando <App /> come se fossimo nel browser.

    Poi il client (dallo script entry-client.jsx) reidrata la pagina che contiene l'HTML già renderizzato.