-
Notifications
You must be signed in to change notification settings - Fork 2
Traduction de history-mode.md
#21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Signed-off-by: Bruno Lesieur <[email protected]>
# Conflicts: # docs/en/essentials/history-mode.md
Signed-off-by: Bruno Lesieur <[email protected]>
Signed-off-by: Bruno Lesieur <[email protected]>
Signed-off-by: Bruno Lesieur <[email protected]>
docs/en/essentials/history-mode.md
Outdated
|
||
To get rid of the hash, we can use the router's **history mode**, which leverages the `history.pushState` API to achieve URL navigation without a page reload: | ||
Pour se passer du hash, nous pouvons prendre en main le **mode historique** qui va utiliser l'API `history.pushState` pour réaliser de la navigation d'URL sans recharger la page : |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nous pouvons utiliser le mode historique qui utilisera l'API
history.pushState
afin de permettre une navigation sans rechargement de page :
|
||
Here comes a problem, though: Since our app is a single page client side app, without a proper server configuration, the users will get a 404 error if they access `http://oursite.com/user/id` directly in their browser. Now that's ugly. | ||
Cependant, un problème apparaît si votre application est une application monopage cliente. Sans une configuration serveur adaptée, les utilisateurs tomberons sur une page d'erreur 404 en tentant d'accéder à `http://oursite.com/user/id` directement dans leur navigateur. Maintenant ça craint. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
C'est de la merde !
https://www.youtube.com/watch?v=thx7fyY0kWU
(Non en vrai ne change rien)
docs/en/essentials/history-mode.md
Outdated
http.createServer(function (req, res) { | ||
fs.readFile("index.htm", "utf-8", function (err, content) { | ||
if (err) { | ||
console.log('Impossible d'ouvrir le fichie "index.htm".') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Impossible d\'ouvrir le fichier "index.htm"
Signed-off-by: Bruno Lesieur <[email protected]>
Merci @Kocal ! Je merge dès que tu valides. |
Ok pour moi. ^^ |
Dernière page de la partie essential. J'ai rajouté du contenu que je vais proposer en PR à l'original.