Skip to content

Commit ae7a4a4

Browse files
Merge remote-tracking branch 'origin/master'
# Conflicts: # src/v2/api/index.md
2 parents 4c3d118 + 4d91209 commit ae7a4a4

File tree

105 files changed

+9548
-5053
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

105 files changed

+9548
-5053
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
# vuejs.org
1+
# fr.vuejs.org
22

3-
This site is built with [hexo](http://hexo.io/). Site content is written in Markdown format located in `src`. Pull requests welcome!
3+
Ce site est assemblé avec [hexo](http://hexo.io/). Le contenu du Site est écrit au format Markdown et se trouve dans `src`. Les Pull requests son les bienvenues !
44

5-
## Developing
5+
## Développement
66

7-
Start a dev server at `localhost:4000`:
7+
Lancez un serveur de développement sur `localhost:4000` :
88

99
```
1010
$ npm install -g hexo-cli

_config.yml

Lines changed: 48 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@
55
# Site
66
title: Vue.js
77
subtitle:
8-
description: "Reactive Components for Modern Web Interfaces"
8+
description: "Le Framework JavaScript Évolutif"
99
author: Evan You
1010
email:
1111
language:
1212

1313
# URL
1414
## If your site is put in a subdirectory, set url as 'http://yoursite.com/child' and root as '/child/'
15-
url: http://vuejs.org
15+
url: http://fr.vuejs.org
1616
root: /
1717
permalink: :year/:month/:day/:title/
1818
tag_dir: tags
@@ -65,7 +65,7 @@ logger_format:
6565
## Hexo uses Moment.js to parse and display date
6666
## You can customize the date format as defined in
6767
## http://momentjs.com/docs/#/displaying/format/
68-
date_format: MMM D YYYY
68+
date_format: D MMM YYYY
6969
time_format: H:mm:ss
7070

7171
# Pagination
@@ -97,9 +97,53 @@ markdown:
9797
## Docs: http://zespia.tw/hexo/docs/deployment.html
9898
deploy:
9999
type: git
100-
repository: git@github.com:vuejs/vuejs.org.git
100+
repository: git@github.com:vuejs-fr/vuejs.org.git
101101

102102
feed:
103103
type: atom
104104
path: atom.xml
105105
limit: 20
106+
107+
alias:
108+
api/index.html: v2/api/index.html
109+
guide/class-and-style.html: v2/guide/class-and-style.html
110+
guide/comparison.html: v2/guide/comparison.html
111+
guide/components.html: v2/guide/components.html
112+
guide/computed.html: v2/guide/computed.html
113+
guide/conditional.html: v2/guide/conditional.html
114+
guide/custom-directive.html: v2/guide/custom-directive.html
115+
guide/deployment.html: v2/guide/deployment.html
116+
guide/events.html: v2/guide/events.html
117+
guide/forms.html: v2/guide/forms.html
118+
guide/index.html: v2/guide/index.html
119+
guide/installation.html: v2/guide/installation.html
120+
guide/instance.html: v2/guide/instance.html
121+
guide/join.html: v2/guide/join.html
122+
guide/list.html: v2/guide/list.html
123+
guide/migration-vue-router.html: v2/guide/migration-vue-router.html
124+
guide/migration-vuex.html: v2/guide/migration-vuex.html
125+
guide/migration.html: v2/guide/migration.html
126+
guide/mixins.html: v2/guide/mixins.html
127+
guide/plugins.html: v2/guide/plugins.html
128+
guide/reactivity.html: v2/guide/reactivity.html
129+
guide/render-function.html: v2/guide/render-function.html
130+
guide/routing.html: v2/guide/routing.html
131+
guide/single-file-components.html: v2/guide/single-file-components.html
132+
guide/ssr.html: v2/guide/ssr.html
133+
guide/state-management.html: v2/guide/state-management.html
134+
guide/syntax.html: v2/guide/syntax.html
135+
guide/transitioning-state.html: v2/guide/transitioning-state.html
136+
guide/transitions.html: v2/guide/transitions.html
137+
guide/unit-testing.html: v2/guide/unit-testing.html
138+
examples/commits.html: v2/examples/commits.html
139+
examples/elastic-header.html: v2/examples/elastic-header.html
140+
examples/firebase.html: v2/examples/firebase.html
141+
examples/grid-component.html: v2/examples/grid-component.html
142+
examples/hackernews.html: v2/examples/hackernews.html
143+
examples/index.html: v2/examples/index.html
144+
examples/modal.html: v2/examples/modal.html
145+
examples/select2.html: v2/examples/select2.html
146+
examples/svg.html: v2/examples/svg.html
147+
examples/todomvc.html: v2/examples/todomvc.html
148+
examples/tree-view.html: v2/examples/tree-view.html
149+

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
"dependencies": {
99
"hexo": "^3.2.2",
1010
"hexo-deployer-git": "0.1.0",
11+
"hexo-generator-alias": "git+https://github.com/chrisvfritz/vuejs.org-hexo-generator-alias.git",
1112
"hexo-generator-archive": "^0.1.4",
1213
"hexo-generator-category": "^0.1.3",
1314
"hexo-generator-feed": "^1.1.0",

src/CNAME

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
vuejs.org
1+
fr.vuejs.org

src/_posts/why-no-template-url.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ First, it allows us to write our template in a separate HTML file. This gives us
1313

1414
Second, because `templateURL` loads the template via Ajax at runtime, you don't need a build step in order to split up your files. This is convenient during development, but comes at a serious cost when you want to deploy it to production. Before HTTP/2 is universally supported, the number of HTTP requests is still probably the most critical factor in your app's initial load performance. Now imagine you use `templateURL` for every component in your app - the browser needs to perform dozens of HTTP requests before even being able to display anything! In case you don't know, most browsers limit the number of parallel requests it can perform to a single server. When you exceed that limit, your app's initial rendering will suffer for every extra round trip the browser has to wait for. Sure, there are build tools that can help you pre-register all those templates in `$templateCache` - but that shows us a build step is, in fact, inevitable for any serious frontend development.
1515

16-
So, without `templateURL`, how do we deal with the development experience problem? Writing templates as inline JavaScript strings is terrible, faking templates with `<script type="x/template">` also feels like a hack. Well, maybe it's time to up the game a bit and use a proper module bundler like [Webpack](http://webpack.github.io/) or [Browserify](http://browserify.org/). It might seem daunting if you've never dealt with them before, but trust me it's worth it to take the leap. Proper modularization is a necessity if you want to build anything large and maintainable. More importantly, you get to write your [Vue components in a single file](http://vuejs.org/guide/application.html#Single-File-Components), with proper syntax highlighting and the extra benefits of custom pre-processors, hot-reloading, ES2015 by default, autoprefixing and scoped CSS, which makes the development experience 10 times better.
16+
So, without `templateURL`, how do we deal with the development experience problem? Writing templates as inline JavaScript strings is terrible, faking templates with `<script type="x/template">` also feels like a hack. Well, maybe it's time to up the game a bit and use a proper module bundler like [Webpack](http://webpack.github.io/) or [Browserify](http://browserify.org/). It might seem daunting if you've never dealt with them before, but trust me it's worth it to take the leap. Proper modularization is a necessity if you want to build anything large and maintainable. More importantly, you get to write your [Vue components in a single file](http://vuejs.org/guide/single-file-components.html), with proper syntax highlighting and the extra benefits of custom pre-processors, hot-reloading, ES2015 by default, autoprefixing and scoped CSS, which makes the development experience 10 times better.
1717

1818
Finally, Vue does allow you to [lazy load your components](http://vuejs.org/guide/components.html#Async-Components), and with Webpack it is trivially easy. Although this is only a concern when your initial bundle is so large that you are better off splitting it apart.
1919

src/examples/commits.md

Lines changed: 0 additions & 9 deletions
This file was deleted.

src/examples/elastic-header.md

Lines changed: 0 additions & 7 deletions
This file was deleted.

src/examples/firebase.md

Lines changed: 0 additions & 9 deletions
This file was deleted.

src/examples/grid-component.md

Lines changed: 0 additions & 9 deletions
This file was deleted.

src/examples/index.md

Lines changed: 0 additions & 9 deletions
This file was deleted.

src/examples/modal.md

Lines changed: 0 additions & 9 deletions
This file was deleted.

src/examples/select2.md

Lines changed: 0 additions & 9 deletions
This file was deleted.

src/examples/svg.md

Lines changed: 0 additions & 9 deletions
This file was deleted.

src/examples/todomvc.md

Lines changed: 0 additions & 9 deletions
This file was deleted.

src/examples/tree-view.md

Lines changed: 0 additions & 9 deletions
This file was deleted.

src/guide/.npmignore

Whitespace-only changes.

0 commit comments

Comments
 (0)