-
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 directory-structure.md
#9
Changes from 5 commits
75e9c33
e1ec2b1
0db2840
ea05b31
3e05116
5ea7bbe
dd98294
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,89 +1,89 @@ | ||
--- | ||
title: Directory Structure | ||
description: The default Nuxt.js application structure is intended to provide a great starting point for both large and small applications. | ||
title: Structure des répertoires | ||
description: La structures par défaut d'une application Nuxt.js est destinée à fournir un excellent point de départ pour les petites et grandes applications. Bien sûr, vous êtes libre d'organiser votre application comme vous le souhaitez. | ||
--- | ||
|
||
> The default Nuxt.js application structure is intended to provide a great starting point for both small and large applications. Of course, you are free to organize your application however you like. | ||
> La structures par défaut d'une application Nuxt.js est destinée à fournir un excellent point de départ pour les petites et grandes applications. Bien sûr, vous êtes libre d'organiser votre application comme vous le souhaitez. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. La structure par défaut
|
||
|
||
## Directories | ||
## Répertoires | ||
|
||
### The Assets Directory | ||
### Le répertoire des ressources | ||
|
||
The `assets` directory contains your un-compiled assets such as LESS, SASS or JavaScript. | ||
Le répertoire `assets` contient vos ressources non-compilés comme par ex. vos Less, Sass, ou JavaScript. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. comme par There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Less et Sass s'écrivent ainsi selon les documentations officielles : J'ai déjà PR les originals |
||
|
||
[More documentation about Assets integration](/guide/assets) | ||
[Consultez la documentation à propos des ressources](/guide/assets) | ||
|
||
### The Components Directory | ||
### Le répertoire des composants | ||
|
||
The `components` directory contains your Vue.js Components. Nuxt.js doesn't supercharge the data method on these components. | ||
Le répertoire `components` contient vos composants Vue.js. Nuxt.js ne surcharge pas la méthode `data` sur ces composants. | ||
|
||
### The Layouts Directory | ||
### Le répertoire des présentations | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. "des mises en pages" me parait plus opportun There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. erreur de ma part, merci |
||
|
||
The `layouts` directory contains your Application Layouts. | ||
Le répertoire `layouts` contient vos mises en page. | ||
|
||
_This directory cannot be renamed._ | ||
_Ce répertoire ne peut pas être renommé._ | ||
|
||
[More documentation about Layouts integration](/guide/views#layouts) | ||
[Consultez la documentation à propos des mises en page](/guide/views#layouts) | ||
|
||
### The Middleware Directory | ||
### Le répertoire des middlewares | ||
|
||
The `middleware` directory contains your Application Middleware. Middleware lets you define custom functions that can be run before rendering either a page or a group of pages (layouts). | ||
Le répertoire `middleware` contient vos middlewares. Un middleware vous permet de définir une fonction qui sera exécutée avant de faire le rendu d'une mise en page ou d'un groupe de mises en page. | ||
|
||
[More documentation about Middleware integration](/guide/routing#middleware) | ||
[Consultez la documentation à propos des middleware](/guide/routing#middleware) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. à propos des middlewares
|
||
|
||
### The Pages Directory | ||
### Le répertoire des pages | ||
|
||
The `pages` directory contains your Application Views and Routes. The framework reads all the `.vue` files inside this directory and creates the application router. | ||
Le répertoire `pages` contient vos vues et routes de l'application. Le framework lit tous vos fichiers `.vue` au sein de ce répertoire et crée automatiquement le routage de votre application. | ||
|
||
_This directory cannot be renamed._ | ||
_Ce répertoire ne peut pas être renommé._ | ||
|
||
[More documentation about Pages integration](/guide/views) | ||
[Consultez la documentation à propos des pages](/guide/views) | ||
|
||
### The Plugins Directory | ||
### Le répertoire des plugins | ||
|
||
The `plugins` directory contains your Javascript plugins that you want to run before instantiating the root vue.js application. | ||
Le répertoire `plugins` contient les plugins JavaScript que vous désirez exécuter avant d'instancier l'application Vue.js racine. | ||
|
||
[More documentation about Plugins integration](/guide/plugins) | ||
[Consultez la documentation à propos des plugins](/guide/plugins) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Consultez la documentation à propos de l'intégration des plugins |
||
|
||
### The Static Directory | ||
### Le répertoire des fichiers statiques | ||
|
||
The `static` directory contains your static files. Each file inside this directory is mapped to /. | ||
Le répertoire `static` contient vos fichiers statiques. Chaque fichier au sein de ce répertoire est mappé à `/`. | ||
|
||
**Example:** /static/robots.txt is mapped as /robots.txt | ||
**Exemple :** `/static/robots.txt` est mappé à `/robots.txt` | ||
|
||
_This directory cannot be renamed._ | ||
_Ce répertoire ne peut pas être renommé._ | ||
|
||
[More documentation about Static integration](/guide/assets#static) | ||
[Consultez la documentation à propos des fichiers statiques](/guide/assets#static) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Consultez la documentation à propos de l'intégration des fichiers statiques |
||
|
||
### The Store Directory | ||
### Le répertoire des stores | ||
|
||
The `store` directory contains your [Vuex Store](http://vuex.vuejs.org) files. The Vuex Store option is implemented in the Nuxt.js framework. Creating an `index.js` file in this directory enables the option in the framework automatically. | ||
Le répertoire `store` contient vos fichiers [de store Vuex](https://vuex.vuejs.org/fr/). Les stores Vuex sont implémentés de manière optionnelle dans le framework Nuxt.js. La création d'un fichier `index.js` dans ce répertoire active automatiquement l'option dans le framework. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. optionnelle
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Il me semble que c'est « la manière » qui est optionnelle dans ce contexte. Si tu souhaites revoir la phrase je te laisse proposer :) There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Bien vu. Tu as raison |
||
|
||
_This directory cannot be renamed._ | ||
_Ce répertoire ne peut pas être renommé._ | ||
|
||
[More documentation about Store integration](/guide/vuex-store) | ||
[Consultez la documentation à propos des stores Vuex](/guide/vuex-store) | ||
|
||
### The nuxt.config.js File | ||
### Le fichier nuxt.config.js | ||
|
||
The `nuxt.config.js` file contains your Nuxt.js custom configuration. | ||
Le fichier `nuxt.config.js` contient vos configurations personnalisées concernant Nuxt.js. | ||
|
||
_This file can not be renamed._ | ||
_Ce fichier ne peut pas être renommé._ | ||
|
||
[More documentation about nuxt.config.js integration](/guide/configuration) | ||
[Consultez la documentation à propos de nuxt.config.js](/guide/configuration) | ||
|
||
### The package.json File | ||
### Le fichier package.json | ||
|
||
The `package.json` file contains your Application dependencies and scripts. | ||
Le fichier `package.json` contient les dépendances et scripts de votre application. | ||
|
||
_This file can not be renamed._ | ||
_Ce fichier ne peut pas être renommé._ | ||
|
||
## Aliases | ||
## Alias | ||
|
||
| Alias | Directory | | ||
| Alias | Répertoire | | ||
|-----|------| | ||
| `~` or `@` | [srcDir](/api/configuration-srcdir) | | ||
| `~~` or `@@` | [rootDir](/api/configuration-rootdir) | | ||
|
||
By default, `srcDir` is the same as `rootDir`. | ||
Par défaut, `srcDir` est le même répertoire que `rootDir`. | ||
|
||
<p class="Alert Alert--nuxt-green"><b>INFO:</b> Inside your `vue` templates, if you need to link to your `assets` or `static` directory, use `~assets/your_image.png` and `~static/your_image.png`.</p> | ||
<p class="Alert Alert--nuxt-green"><b>Info :</b> À l'intérieur de vos templates `vue`, si vous avez besoin de faire référence à vos répertoires `assets` ou `static`, utilisez par ex. `~assets/your_image.png` et `~static/your_image.png`.</p> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
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.
La structure par défaut