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 b11d5d2790
continuous-integration/drone/push Build is passing Details
jumbotron/fix: scaling
2 years ago
..
components style: new style of markdown editor 3 years ago
hooks fix: ehm in realtà le pagine utente non funzionavano per niente 3 years ago
pages jumbotron/fix: updated scaling, pluralization 2 years ago
styles jumbotron/fix: scaling 2 years ago
App.tsx feat: new jumbotron page for dm hall screen 3 years ago
README.md Added a readme in the client folder 4 years ago
api.tsx refactor: added support for base url using a shared function 3 years ago
entry-client.tsx fix: maybe fixed open tags 4 years ago
entry-server.tsx magic: added a way for running async functions in the top level jsx code 3 years ago
hooks.tsx magic: added a way for running async functions in the top level jsx code 3 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.