Skip to content

Commit 9ed873d

Browse files
committed
Merge remote-tracking branch 'upstream/master'
# Conflicts: # themes/vue/_config.yml # themes/vue/layout/partials/ecosystem_dropdown.ejs # themes/vue/layout/partials/sidebar.ejs # themes/vue/source/css/_common.styl # themes/vue/source/css/index.styl # themes/vue/source/css/page.styl
2 parents 7625764 + a69cb15 commit 9ed873d

26 files changed

+1357
-940
lines changed

Diff for: _config.yml

+17-3
Original file line numberDiff line numberDiff line change
@@ -99,18 +99,24 @@ markdown:
9999
offline:
100100
maximumFileSizeToCacheInBytes: 10485760
101101
staticFileGlobs:
102-
- public/**/*.{js,html,css,png,jpg,gif,svg,eot,ttf,woff,json,xml}
102+
- public/**/*.{js,html,css,png,jpg,jpeg,gif,svg,eot,ttf,woff,woff2,json,xml}
103103
stripPrefix: public
104104
verbose: true
105105
runtimeCaching:
106+
# Ad Sources - should be networkFirst
106107
- urlPattern: /*
107-
handler: cacheFirst
108+
handler: networkFirst
108109
options:
109110
origin: sendgrid.sp1.convertro.com
110111
- urlPattern: /*
111-
handler: cacheFirst
112+
handler: networkFirst
112113
options:
113114
origin: ad.doubleclick.net
115+
- urlPattern: /*
116+
handler: networkFirst
117+
options:
118+
origin: srv.carbonads.net
119+
# CDNs - should be cacheFirst, since they should be used specific versions so should not change
114120
- urlPattern: /*
115121
handler: cacheFirst
116122
options:
@@ -123,6 +129,14 @@ offline:
123129
handler: cacheFirst
124130
options:
125131
origin: fonts.gstatic.com
132+
- urlPattern: /*
133+
handler: cacheFirst
134+
options:
135+
origin: cdnjs.cloudflare.com
136+
- urlPattern: /*
137+
handler: cacheFirst
138+
options:
139+
origin: maxcdn.bootstrapcdn.com
126140

127141
# Deployment
128142
## Docs: http://zespia.tw/hexo/docs/deployment.html

Diff for: src/v2/guide/components.md

+9-9
Original file line numberDiff line numberDiff line change
@@ -639,15 +639,15 @@ Voyons cela par l'exemple avec une simple saisie de devise :
639639

640640
``` js
641641
Vue.component('currency-input', {
642-
template: `
643-
<span>
644-
$
645-
<input
646-
ref="input"
647-
v-bind:value="value"
648-
v-on:input="updateValue($event.target.value)">
649-
</span>
650-
`,
642+
template: '\
643+
<span>\
644+
$\
645+
<input\
646+
ref="input"\
647+
v-bind:value="value"\
648+
v-on:input="updateValue($event.target.value)">\
649+
</span>\
650+
',
651651
props: ['value'],
652652
methods: {
653653
// Au lieu de mettre à jour directement la valeur, cette

Diff for: src/v2/guide/installation.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ Si vous avez besoin de compiler des templates en temps réel (ex. : passer une c
9393
``` js
9494
// ceci a besoin d'un compilateur
9595
new Vue({
96-
template: `<div>{{ hi }}</div>`
96+
template: '<div>{{ hi }}</div>'
9797
})
9898

9999
// ceci n'en a pas besoin

Diff for: src/v2/guide/list.md

+14-14
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ Voici un exemple complet d'une simple liste de tâches :
249249
<li
250250
is="todo-item"
251251
v-for="(todo, index) in todos"
252-
v-bind:key="todo"
252+
v-bind:key="index"
253253
v-bind:title="todo"
254254
v-on:remove="todos.splice(index, 1)"
255255
></li>
@@ -259,12 +259,12 @@ Voici un exemple complet d'une simple liste de tâches :
259259

260260
``` js
261261
Vue.component('todo-item', {
262-
template: `
263-
<li>
264-
{{ title }}
265-
<button v-on:click="$emit('remove')">X</button>
266-
</li>
267-
`,
262+
template: '\
263+
<li>\
264+
{{ title }}\
265+
<button v-on:click="$emit('remove')">X</button>\
266+
</li>\
267+
',
268268
props: ['title']
269269
})
270270

@@ -298,20 +298,20 @@ new Vue({
298298
<li
299299
is="todo-item"
300300
v-for="(todo, index) in todos"
301-
v-bind:key="todo"
301+
v-bind:key="index"
302302
v-bind:title="todo"
303303
v-on:remove="todos.splice(index, 1)"
304304
></li>
305305
</ul>
306306
</div>
307307
<script>
308308
Vue.component('todo-item', {
309-
template: `
310-
<li>
311-
{{ title }}
312-
<button v-on:click="$emit('remove')">X</button>
313-
</li>
314-
`,
309+
template: '\
310+
<li>\
311+
{{ title }}\
312+
<button v-on:click="$emit('remove')">X</button>\
313+
</li>\
314+
',
315315
props: ['title']
316316
})
317317
new Vue({

0 commit comments

Comments
 (0)