Skip to content

Commit 058da1d

Browse files
committed
Merge remote-tracking branch 'upstream/master'
# Conflicts: # src/v2/api/index.md # src/v2/guide/join.md # themes/vue/layout/index.ejs # themes/vue/layout/partials/ecosystem_dropdown.ejs Signed-off-by: Bruno Lesieur <bruno.lesieur@gmail.com>
2 parents 0baacfe + aa38432 commit 058da1d

File tree

9 files changed

+1203
-657
lines changed

9 files changed

+1203
-657
lines changed

src/v2/api/index.md

Lines changed: 74 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,28 @@ type: api (En)
8282

8383
> En 2.2.0, ce hook capture également les erreurs dans les hooks du cycle de vie des composants. De plus, quand ce hook est `undefined`, les erreurs capturées seront loguées avec `console.error` plutôt qu'avoir un crash de l'application.
8484
85+
> In 2.4.0 this hook also captures errors thrown inside Vue custom event handlers.
86+
8587
> [Sentry](https://sentry.io), un service de traçage d'erreur, fournit une [intégration officielle](https://sentry.io/for/vue/) utilisant cette option.
8688
89+
### warnHandler
90+
91+
> New in 2.4.0
92+
93+
- **Type:** `Function`
94+
95+
- **Default:** `undefined`
96+
97+
- **Usage:**
98+
99+
``` js
100+
Vue.config.warnHandler = function (msg, vm, trace) {
101+
// trace is the component hierarchy trace
102+
}
103+
```
104+
105+
Assign a custom handler for runtime Vue warnings. Note this only works during development and is ignored in production.
106+
87107
### ignoredElements
88108

89109
- **Type :** `Array<string>`
@@ -1012,7 +1032,7 @@ Tous les hooks du cycle de vie ont automatiquement leur contexte `this` rattach
10121032
10131033
- **Type :** `Array<string>`
10141034
1015-
- **default:** `{% raw %}["{{", "}}"]{% endraw %}`
1035+
- **Default:** `{% raw %}["{{", "}}"]{% endraw %}`
10161036
10171037
- **Détails :**
10181038
@@ -1083,6 +1103,30 @@ Tous les hooks du cycle de vie ont automatiquement leur contexte `this` rattach
10831103
</ma-checkbox>
10841104
```
10851105
1106+
### inheritAttrs
1107+
1108+
> New in 2.4.0
1109+
1110+
- **Type:** `boolean`
1111+
1112+
- **Default:** `true`
1113+
1114+
- **Details:**
1115+
1116+
By default, parent scope attribute bindings that are not recognized as props will "fallthrough" and be applied to the root element of the child component as normal HTML attributes. When authoring a component that wraps a target element or another component, this may not always be the desired behavior. By setting `inheritAttrs` to `false`, this default behavior can be disabled. The attributes are available via the `$attrs` instance property (also new in 2.4) and can be explicitly bound to a non-root element using `v-bind`.
1117+
1118+
### comments
1119+
1120+
> New in 2.4.0
1121+
1122+
- **Type:** `boolean`
1123+
1124+
- **Default:** `false`
1125+
1126+
- **Details:**
1127+
1128+
When set to `true`, will preserve and render HTML comments found in templates. The default behavior is discarding them.
1129+
10861130
## Propriétés d'instance
10871131
10881132
### vm.$data
@@ -1259,13 +1303,33 @@ Tous les hooks du cycle de vie ont automatiquement leur contexte `this` rattach
12591303
12601304
- **Voir aussi :** [Rendu côté serveur](../guide/ssr.html)
12611305
1306+
### vm.$attrs
1307+
1308+
- **Type:** `{ [key: string]: string }`
1309+
1310+
- **Read only**
1311+
1312+
- **Details:**
1313+
1314+
Contains parent-scope attribute bindings that are not recognized (and extracted) as props. When a component doesn't have any declared props, this essentially contains all parent-scope bindings except for `class` and `style`, and can be passed down to an inner component via `v-bind="$attrs"` - useful when creating higher-order components.
1315+
1316+
### vm.$listeners
1317+
1318+
- **Type:** `{ [key: string]: Function | Array<Function> }`
1319+
1320+
- **Read only**
1321+
1322+
- **Details:**
1323+
1324+
Contains parent-scope `v-on` event listeners (without `.native` modifiers). This can be passed down to an inner component via `v-on="$listeners"` - useful when creating higher-order components.
1325+
12621326
## Méthodes et données d'instance
12631327
12641328
<h3 id="vm-watch">vm.$watch( expOuFn, callback, [options] )</h3>
12651329
12661330
- **Arguments :**
1267-
- `{string | Function} expOuFn`
1268-
- `{Function} callback`
1331+
- `{string | Function} expOrFn`
1332+
- `{Function | Object} callback`
12691333
- `{Object} [options]`
12701334
- `{boolean} deep`
12711335
- `{boolean} immediate`
@@ -1661,9 +1725,9 @@ Tous les hooks du cycle de vie ont automatiquement leur contexte `this` rattach
16611725

16621726
- **Shorthand:** `@`
16631727

1664-
- **Expects:** `Function | Inline Statement`
1728+
- **Expects:** `Function | Inline Statement | Object`
16651729

1666-
- **Argument:** `event (required)`
1730+
- **Argument:** `event`
16671731

16681732
- **Modifiers:**
16691733
- `.stop` - call `event.stopPropagation()`.
@@ -1682,6 +1746,8 @@ Tous les hooks du cycle de vie ont automatiquement leur contexte `this` rattach
16821746

16831747
Attaches an event listener to the element. The event type is denoted by the argument. The expression can either be a method name or an inline statement, or simply omitted when there are modifiers present.
16841748

1749+
Starting in `2.4.0`, `v-on` also supports binding to an object of event/listener pairs without an argument. Note when using the object syntax, it does not support any modifiers.
1750+
16851751
When used on a normal element, it listens to **native DOM events** only. When used on a custom element component, it also listens to **custom events** emitted on that child component.
16861752

16871753
When listening to native DOM events, the method receives the native event as the only argument. If using inline statement, the statement has access to the special `$event` property: `v-on:click="handle('ok', $event)"`.
@@ -1692,6 +1758,9 @@ Tous les hooks du cycle de vie ont automatiquement leur contexte `this` rattach
16921758
<!-- method handler -->
16931759
<button v-on:click="doThis"></button>
16941760
1761+
<!-- object syntax (2.4.0+) -->
1762+
<button v-on="{ mousedown: doThis, mouseup: doThat }"></button>
1763+
16951764
<!-- inline statement -->
16961765
<button v-on:click="doThat('hello', $event)"></button>
16971766

src/v2/guide/installation.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22
title: Installation
33
type: guide
44
order: 1
5-
vue_version: 2.3.0
6-
dev_size: "247.31"
7-
min_size: "76.64"
8-
gz_size: "28.03"
9-
ro_gz_size: "19.54"
5+
vue_version: 2.4.0
6+
dev_size: "257.91"
7+
min_size: "79.71"
8+
gz_size: "28.96"
9+
ro_gz_size: "20.18"
1010
---
1111

1212
### Compatibilité

src/v2/guide/join.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,20 +12,20 @@ Maintenant nous allons voir ensemble ce que la communauté peut faire pour vous
1212

1313
### Obtenir de l'aide
1414

15-
- [Forum](https://forum.vuejs.org/c/french): Le meilleur endroit pour poser des questions et obtenir des réponses à propos de Vue et de son écosystème.
16-
- [Chat Gitter](https://gitter.im/vuejs-fr/vue): Un lieu pour rencontrer et discuter avec des développeurs. Vous pouvez également poser vos questions ici, mais le forum est une meilleure plateforme, car les discussions sont catégorisées et indexées.
17-
- [Github (En)](https://github.com/vuejs): Si vous avez un bogue à reporter ou une demande de nouvelle fonctionnalité à faire, les issues Github sont là pour ça. Les pull requests sont également les bienvenues !
15+
- [Forum](https://forum.vuejs.org/french) : Le meilleur endroit pour poser des questions et obtenir des réponses à propos de Vue et de son écosystème.
16+
- [Chat](https://gitter.im/vuejs-fr/vue) | [En](https://chat.vuejs.org/) : Un lieu pour rencontrer et discuter avec des développeurs. Vous pouvez également poser vos questions ici, mais le forum est une meilleure plateforme, car les discussions sont catégorisées et indexées.
17+
- [GitHub](https://github.com/vuejs) : Si vous avez un bogue à reporter ou une demande de nouvelle fonctionnalité à faire, les issues Github sont là pour ça. Les pull requests sont également les bienvenues !
1818

1919
### Explorer l'écosystème
2020

21-
- [La page de Awesome Vue (En)](https://github.com/vuejs/awesome-vue): Trouvez d'autres ressources fantastiques publiées par des personnes tout aussi fantastiques.
22-
- [La sous-catégorie de forum « Show and Tell » (En)](http://forum.vuejs.org/c/show-and-tell): Un autre endroit génial pour voir ce que les autres ont bâti avec Vue afin d'agrandir son écosystème.
21+
- [La page de Awesome Vue](https://github.com/vuejs/awesome-vue): Trouvez d'autres ressources fantastiques publiées par des personnes tout aussi fantastiques.
22+
- [La sous-catégorie de forum « Show and Tell »](http://forum.vuejs.org/c/show-and-tell): Un autre endroit génial pour voir ce que les autres ont bâti avec Vue afin d'agrandir son écosystème.
2323

2424
## Comment pouvez-vous participer
2525

2626
### Contribuer au code
2727

28-
Comme pour n'importe quel projet, il y a des règles de contribution à respecter. Pour s'assurer que nous pouvons vous aider ou accepter votre pull request aussi rapidement que possible, merci de [lire le guide de contribution (En)](https://github.com/vuejs/vue/blob/dev/.github/CONTRIBUTING.md).
28+
Comme pour n'importe quel projet, il y a des règles de contribution à respecter. Pour s'assurer que nous pouvons vous aider ou accepter votre pull request aussi rapidement que possible, merci de [lire le guide de contribution](https://github.com/vuejs/vue/blob/dev/.github/CONTRIBUTING.md).
2929

3030
Après cela, vous serez fin prêt à contribuer sur les dépôts principaux de Vue :
3131

src/v2/guide/team.md

Lines changed: 37 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -207,21 +207,25 @@ order: 31
207207
'Kingston, Jamaica': [18.017874, -76.809904],
208208
'Tehran, Iran': [35.689197, 51.388974],
209209
'Shanghai, China': [31.230390, 121.473702],
210-
'Annecy, France': [45.899247, 6.129384]
210+
'Annecy, France': [45.899247, 6.129384],
211+
'Seoul, South Korea': [37.566535, 126.977969],
212+
'Taquaritinga, Brazil': [-21.430094, -48.515285]
211213
}
212214
var languageNameFor = {
213215
en: 'English',
214216
zh: '中文',
215217
vi: 'Tiếng Việt',
216218
pl: 'Polski',
219+
pt: 'Português',
217220
ru: 'Русский',
218221
jp: '日本語',
219222
fr: 'Français',
220223
de: 'Deutsch',
221224
el: 'Ελληνικά',
222225
es: 'Español',
223226
hi: 'हिंदी',
224-
fa: 'فارسی'
227+
fa: 'فارسی',
228+
ko: '한국어'
225229
}
226230

227231
var team = [{
@@ -632,6 +636,37 @@ order: 31
632636
links: [
633637
'https://node-atlas.js.org/', 'https://blog.lesieur.name/'
634638
]
639+
},
640+
{
641+
name: 'ChangJoo Park',
642+
title: 'Vuenthusiastic Korean Community Organizer',
643+
city: 'Seoul, South Korea',
644+
languages: ['ko', 'en'],
645+
github: 'changjoo-park',
646+
twitter: 'pcjpcj2',
647+
reposPersonal: [
648+
'vuejs-kr/kr.vuejs.org', 'ChangJoo-Park/vue-component-generator'
649+
],
650+
links: [
651+
'https://vuejs-kr.github.io',
652+
'https://twitter.com/pcjpcj2'
653+
]
654+
},
655+
{
656+
name: 'Erick Petrucelli',
657+
title: 'Perfectionist Chief Translator for Portuguese',
658+
city: 'Taquaritinga, Brasil',
659+
languages: ['pt', 'en'],
660+
github: 'ErickPetru',
661+
twitter: 'erickpetru',
662+
work: {
663+
role: 'Teacher',
664+
org: 'Fatec Taquaritinga',
665+
orgUrl: 'http://www.fatectq.edu.br/'
666+
},
667+
reposPersonal: [
668+
'vuejs-br/br.vuejs.org', 'ErickPetru/vue-feathers-chat'
669+
]
635670
}
636671
]
637672

themes/vue/_config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
site_description: "Vue.js - Le Framework JavaScript Évolutif"
22
google_analytics: UA-46852172-1
33
root_domain: vuejs.org
4-
vue_version: 2.3.0
4+
vue_version: 2.4.0

themes/vue/layout/index.ejs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,9 @@
3838
<div class="point">
3939
<h2>Performant</h2>
4040
<p>
41-
Minimum utile de 19ko min+gzip<br>
42-
Ultra-rapide avec son DOM Virtuel<br>
43-
Effort d'optimisation minimal
41+
Minimum utile de 20kb min+gzip.<br>
42+
Ultra-rapide avec son DOM Virtuel.<br>
43+
Effort d'optimisation minimal.
4444
</p>
4545
</div>
4646
</div>

themes/vue/layout/partials/ecosystem_dropdown.ejs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
<ul class="nav-dropdown">
44
<li><h4>Aide</h4></li>
55
<li><ul>
6-
<li style="text-align: left;padding: 0 24px 0 20px"><a style="display: inline-block;padding: 0;" href="http://forum.vuejs.org" class="nav-link" target="_blank">Forum</a> (<a style="display: inline-block;padding: 0;" href="https://forum.vuejs.org/c/french" class="nav-link" target="_blank">Fr</a>)</li>
7-
<li style="text-align: left;padding: 0 24px 0 20px"><a style="display: inline-block;padding: 0;" href="https://gitter.im/vuejs/vue" class="nav-link" target="_blank">Chat</a> (<a style="display: inline-block;padding: 0;" href="https://gitter.im/vuejs-fr/vue" class="nav-link" target="_blank">Fr</a>)</li>
6+
<li style="text-align: left;padding: 0 24px 0 20px"><a style="display: inline-block;padding: 0;" href="https://forum.vuejs.org/c/french" class="nav-link" target="_blank">Forum</a> | <a style="display: inline-block;padding: 0;" href="https://forum.vuejs.org/" class="nav-link" target="_blank">En</a></li>
7+
<li style="text-align: left;padding: 0 24px 0 20px"><a style="display: inline-block;padding: 0;" href="https://gitter.im/vuejs-fr/vue" class="nav-link" target="_blank">Chat</a> | <a style="display: inline-block;padding: 0;" href="https://chat.vuejs.org/" class="nav-link" target="_blank">En</a></li>
88
<li><a href="https://github.com/vuejs-templates" class="nav-link" target="_blank">Templates</a></li>
99
</ul></li>
1010
<li><h4>Infos</h4></li>

0 commit comments

Comments
 (0)