-
Notifications
You must be signed in to change notification settings - Fork 103
Traduction de cookbook/form-validation.md
#168
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
Cette page est prête pour une revue @cedlemo ? |
form-validation
form-validation
cookbook/form-validation.md
oui, je l'ai "pushée" dès qu'elle était prête. |
cookbook/form-validation.md
cookbook/form-validation.md
@@ -323,14 +324,14 @@ const app = new Vue({ | |||
}) | |||
``` | |||
|
|||
We set up the total value as a computed value, and outside of that bug I ran into, it was simple enough to setup. My checkForm method now just needs to see if the total is 100 and that's it. You can play with this here: |
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.
Il faut éviter les mots comme "simple", "juste", qui peuvent être décourageants pour des débutants qui ne trouvent pas ça simple et intuitif.
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.
@rsp, fait.
src/v2/cookbook/form-validation.md
Outdated
|
||
In my final example, we built something that makes use of Ajax to validate at the server. The form will ask you to name a new product and will then check to ensure that the name is unique. We wrote a quick [OpenWhisk](http://openwhisk.apache.org/) serverless action to do the validation. While it isn't terribly important, here is the logic: | ||
Dans mon dernier exemple, nous contruisons quelquechose qui utilise Ajax afin de valider via le serveur. Le formulaire va vous demander de nommer un nouveau produit et ensuite s'assurer que ce nom est unique. Nous avons écrit une rapide [OpenWhisk](http://openwhisk.apache.org/) action sans serveur pour gèrer la validation, voici la logique de cette action. |
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 mon dernier exemple, nous contruisons quelquechose qui utilise Ajax afin de valider via le serveur. Le formulaire va vous demander de nommer un nouveau produit et ensuite s'assurer que ce nom est unique. Nous avons écrit une rapide [OpenWhisk](http://openwhisk.apache.org/) action sans serveur pour gèrer la validation, voici la logique de cette action. | |
Dans mon dernier exemple, nous construisons quelque chose qui utilise Ajax afin de valider via le serveur. Le formulaire va vous demander de nommer un nouveau produit et ensuite s'assurer que ce nom est unique. Nous avons écrit une rapide [OpenWhisk](http://openwhisk.apache.org/) action sans serveur pour gérer la validation, voici la logique de cette action. |
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.
En relisant je trouve l'utilisation de 'quelque chose' et même la phrase un peu lourde. Ne serait-il pas mieux d'écrire:
Dans mon dernier exemple, nous allons construire une application vuejs qui utilise Ajax pour valider des données via le serveur.'
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.
Oui c'est effectivement mieux :)
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.
Quid du coup de ce paragraphe?
Co-Authored-By: cedlemo <cedlemo@gmx.com>
Co-Authored-By: cedlemo <cedlemo@gmx.com>
Co-Authored-By: cedlemo <cedlemo@gmx.com>
Co-Authored-By: cedlemo <cedlemo@gmx.com>
Co-Authored-By: cedlemo <cedlemo@gmx.com>
Co-Authored-By: cedlemo <cedlemo@gmx.com>
Co-Authored-By: cedlemo <cedlemo@gmx.com>
Co-Authored-By: cedlemo <cedlemo@gmx.com>
src/v2/cookbook/form-validation.md
Outdated
|
||
<p>Cette page est en cours de traduction. Pour nous aider, vous pouvez participer sur <a href="https://github.com/vuejs-fr/vuejs.org" target="_blank">le dépôt GitHub dédié de Vuejs-FR</a>.</p><p>Form validation is natively supported by the browser, but sometimes different browsers will handle things in a manner which makes relying on it a bit tricky. Even when validation is supported perfectly, there may be times when custom validations are needed and a more manual, Vue-based solution may be more appropriate. Let's begin with a simple example.</p> | ||
<p>Cette page est en cours de traduction. Pour nous aider, vous pouvez participer sur <a href="https://github.com/vuejs-fr/vuejs.org" target="_blank">le dépôt GitHub dédié de Vuejs-FR</a>.</p><p> |
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.
À supprimer non ?
src/v2/cookbook/form-validation.md
Outdated
@@ -347,7 +348,7 @@ function main(args) { | |||
} | |||
``` | |||
|
|||
Basically any name but "vista", "empire", and "mbp" are acceptable. Ok, so let's look at the form. | |||
En gros, tous les noms excepté "vista", "empire", and "mbp" sont valides. Bien, regardons donc le formulaire. |
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.
- exceptés
src/v2/cookbook/form-validation.md
Outdated
|
||
In my final example, we built something that makes use of Ajax to validate at the server. The form will ask you to name a new product and will then check to ensure that the name is unique. We wrote a quick [OpenWhisk](http://openwhisk.apache.org/) serverless action to do the validation. While it isn't terribly important, here is the logic: | ||
Dans mon dernier exemple, nous contruisons quelquechose qui utilise Ajax afin de valider via le serveur. Le formulaire va vous demander de nommer un nouveau produit et ensuite s'assurer que ce nom est unique. Nous avons écrit une rapide [OpenWhisk](http://openwhisk.apache.org/) action sans serveur pour gèrer la validation, voici la logique de cette action. |
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.
Quid du coup de ce paragraphe?
src/v2/cookbook/form-validation.md
Outdated
|
||
While this cookbook entry focused on doing form validation "by hand", there are, of course, some great Vue libraries that will handle a lot of this for you. Switching to a prepackage library may impact the final size of your application, but the benefits could be tremendous. You have code that is (most likely) heavily tested and also updated on a regular basis. Some examples of form validation libraries for Vue include: | ||
Bien que cette partie se focalise essentiellement sur une validation "manuelle", il y a bien sûr, de très bonnes bibliothèques permettant de gèrer cela pour vous. Opter pour une bibliothèque pré-packagée pourrait avoir un impact sur la taille finale de votre application, mais les bénéfices pourraient être énormes. Vous avez à votre disposition du code qui est (très probablement) très bien testé et aussi mis à jour régulièrement. Quelques exemples de bibliothèques de validation pour 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.
- "gérer"
No description provided.