-
Notifications
You must be signed in to change notification settings - Fork 11
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
Relecture de vuex-store.md
#17
Conversation
Signed-off-by: Bruno Lesieur <[email protected]>
en/guide/vuex-store.md
Outdated
--- | ||
|
||
> Using a store to manage the state is important to every big application, that's why nuxt.js implement [vuex](https://github.com/vuejs/vuex) in its core. | ||
> L'utilisation d'un store pour gérer l'état est important pour toutes les applications de taille importante, c'est pourquoi [Vuex](https//vuex.vuejs.org/fr/) est implémenté au cœur de Nuxt.js. |
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.
"https://"
en/guide/vuex-store.md
Outdated
2. Add `vuex` module in the vendors bundle | ||
3. Add the `store` option to the root `Vue` instance. | ||
1. importera Vuex, | ||
2. ajoutera le module `vuex` dans le packetage vendors, |
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.
"paquetage"
Pour aligner notamment avec "empaqueter".
en/guide/vuex-store.md
Outdated
@@ -133,7 +135,7 @@ And in your `pages/todos.vue`, using the `todos` module: | |||
<input type="checkbox" :checked="todo.done" @change="toggle(todo)"> | |||
<span :class="{ done: todo.done }">{{ todo.text }}</span> | |||
</li> | |||
<li><input placeholder="What needs to be done?" @keyup.enter="addTodo"></li> | |||
<li><input placeholder="Qu'est-ce qui dois être fait ?" @keyup.enter="addTodo"></li> |
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.
"Qu'est-ce qui doit être fait ?"
en/guide/vuex-store.md
Outdated
|
||
The context is given to `nuxtServerInit` as the 2nd argument, it is the same as the `data` or `fetch` method except that `context.redirect()` and `context.error()` are omitted. | ||
Le contexte est fourni par `nuxtServerInit` comme 2ème argument. C'est le même que pour les méthodes `data` et `fetch` excepté que `context.redirect()` et `context.error()` sont omis. |
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.
"2e argument"
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 n'avons pas utiliser « 2ᵉ » dans les documentations précédente. Pour plus de consistence je vais écrire deuxième.
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.
Pas de soucis pour ce cas là. Par contre, ce serait bien de changer à l'occasion dans les autres documentations (je peux m'en occuper) pour abréger correctement les adjectifs numéraux ordinaux :)
Signed-off-by: Bruno Lesieur <[email protected]>
Merci @rspt pour tes retours ! |
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.
Quelques remarques
3. Add the `store` option to the root `Vue` instance. | ||
1. importera Vuex, | ||
2. ajoutera le module `vuex` dans le paquetage vendors, | ||
3. ajoutera l'option `store` à l'instance racine de Vue. |
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.
Vue => Vue
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.
J'ai déjà corrigé das l'originale. Dès qu'on parle de l'instance racine on se réfère toujours au titre produit :
Source (chercher root) :
— https://vuejs.org/v2/guide/instance.html
— https://vuejs.org/v2/guide/components.html
— ...
en/guide/vuex-store.md
Outdated
|
||
- **Classic:** `store/index.js` returns a store instance | ||
- **Modules:** every `.js` file inside the `store` directory is transformed as a [namespaced module](http://vuex.vuejs.org/en/modules.html) (`index` being the root module) | ||
- **Classique :** `store/index.js` retourne une instance. |
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.
store/index.js
retourne une instance de store.
en/guide/vuex-store.md
Outdated
|
||
To activate the store with the classic mode, we create the `store/index.js` file which should export a method which returns a Vuex instance: | ||
Pour activer le store avec le mode classique, nous créons `store/index.js` dans lequel nous exportons l'instance du store : |
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.
dans lequel nous exportons l'instance du store : => qui devrait exporter une méthode qui renvoie une instance Vuex :
en/guide/vuex-store.md
Outdated
|
||
> Note: Asynchronous `nuxtServerInit` actions must return a Promise to allow the `nuxt` server to wait on them. | ||
> Note : Les actions `nuxtServerInit` asynchrones doivent retourner une promesse pour permettre au serveur `nuxt` de les attendres. |
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.
attendres => attendre
Bon pour moi a condition d'uitiliser les caractères utf-8 d'exposition (pas
sur la même ligne). Mais il me semble qu'on est raccord car je ne crois pas
qu'ils utilisent d'abréviation dans les docs de Vue. (first, second, etc.)
[image: Bruno Lesieur] <http://www.lesieur.name/>
[image: Logo Google+] <https://plus.google.com/+BrunoLesieur/> [image: Logo
Twitter] <https://twitter.com/MachinisteWeb> [image: Logo LinkedIn]
<https://www.linkedin.com/in/brunolesieur/>
Bruno Lesieur
Développeur web Front-end et Node.js
Email : [email protected]
Site : https://www.lesieur.name/
Le 23 septembre 2017 à 10:59, Julien Grünhagel <[email protected]> a
écrit :
… ***@***.**** commented on this pull request.
------------------------------
In en/guide/vuex-store.md
<#17 (comment)>:
>
-The context is given to `nuxtServerInit` as the 2nd argument, it is the same as the `data` or `fetch` method except that `context.redirect()` and `context.error()` are omitted.
+Le contexte est fourni par `nuxtServerInit` comme 2ème argument. C'est le même que pour les méthodes `data` et `fetch` excepté que `context.redirect()` et `context.error()` sont omis.
Pas de soucis pour ce cas là. Par contre, ce serait bien de changer à
l'occasion dans les autres documentations (je peux m'en occuper) pour
abréger correctement les adjectifs numéraux ordinaux :)
https://www.google.ch/search?q=abr%C3%A9viation+des+
adjectifs+num%C3%A9raux+ordinaux&oq=abbr%C3%A9viation+
des+a&aqs=chrome.4.69i57j0l5.8687j0j7&sourceid=chrome&ie=UTF-8
—
You are receiving this because you were assigned.
Reply to this email directly, view it on GitHub
<#17 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/ADs8ubX0q0QJUZAfwXpFZmiK03omjLU2ks5slMiEgaJpZM4PheXH>
.
|
Signed-off-by: Bruno Lesieur <[email protected]>
Revue de vuex-store.md