Skip to content

Commit 24e2286

Browse files
committed
Merge remote-tracking branch 'jp.vuejs.org/lang-ja' into lang-ja
2 parents 378b0b5 + 3f8a1a0 commit 24e2286

File tree

6 files changed

+24
-20
lines changed

6 files changed

+24
-20
lines changed

src/v2/guide/team.md

+8-1
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ order: 803
9191
</ul>
9292
</dd>
9393
</template>
94-
<footer v-if="profile.github || profile.twitter" class="social">
94+
<footer v-if="hasSocialLinks" class="social">
9595
<a class=github v-if="profile.github" :href="githubUrl(profile.github)">
9696
<i class="fa fa-github"></i>
9797
<span class="sr-only">Github</span>
@@ -100,6 +100,10 @@ order: 803
100100
<i class="fa fa-twitter"></i>
101101
<span class="sr-only">Twitter</span>
102102
</a>
103+
<a class=codepen v-if="profile.codepen" :href="'https://codepen.io/' + profile.codepen">
104+
<i class="fa fa-codepen"></i>
105+
<span class="sr-only">CodePen</span>
106+
</a>
103107
</footer>
104108
</dl>
105109
</div>
@@ -897,6 +901,9 @@ order: 803
897901
}).join('</li><li>') +
898902
'</li></ul>'
899903
)
904+
},
905+
hasSocialLinks: function () {
906+
return this.profile.github || this.profile.twitter || this.profile.codepen
900907
}
901908
},
902909
methods: {

src/v2/guide/typescript.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: TypeScript のサポート
3-
updated: 2017-10-29
3+
updated: 2017-11-08
44
type: guide
55
order: 404
66
---
@@ -31,6 +31,8 @@ order: 404
3131
}
3232
```
3333

34+
コンポーネントメソッド内で `this` の型をチェックするには `strict: true` (もしくは最低でも `strict` フラグの一部の `noImplicitThis: true`) を含める必要があることに注意してください。
35+
3436
より詳細なことについては [TypeScript compiler options docs](https://www.typescriptlang.org/docs/handbook/compiler-options.html) を見てください。
3537

3638
## 開発ツール
@@ -142,8 +144,7 @@ var vm = new Vue({
142144

143145
## 戻り値の型にアノテーションをつける
144146

145-
Vue の宣言ファイルは循環的な性質を持つため、TypeScript は特定のメソッドの型を推論するのが困難な場合があります。
146-
この理由のため、`render``computed` のメソッドに戻り値の型のアノテーションを付ける必要があるかもしれません。
147+
Vue の宣言ファイルは循環的な性質を持つため、TypeScript は特定のメソッドの型を推論するのが困難な場合があります。この理由のため、`render``computed` のメソッドに戻り値の型のアノテーションを付ける必要があるかもしれません。
147148

148149
```ts
149150
import Vue, { VNode } from 'vue'
@@ -173,5 +174,4 @@ const Component = Vue.extend({
173174
})
174175
```
175176

176-
型推論やメンバの補完が機能していない場合、特定のメソッドにアノテーションを付けるとこれらの問題に対処できます。
177-
`--noImplicitAny` オプションを使用すると、これらのアノテーションが付けられていないメソッドの多くを見つけるのに役立ちます。
177+
型推論やメンバの補完が機能していない場合、特定のメソッドにアノテーションを付けるとこれらの問題に対処できます。`--noImplicitAny` オプションを使用すると、これらのアノテーションが付けられていないメソッドの多くを見つけるのに役立ちます。

src/v2/style-guide/index.md

+10-10
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
type: style-guide
3-
updated: 2017-11-04
3+
updated: 2017-11-08
44
---
55

66
# スタイルガイド <sup class="beta">beta</sup>
@@ -1381,34 +1381,34 @@ HTML では、空白を含まない属性値は引用符でくくらなくても
13811381
2. **リスト描画** (同じ要素の複数のバリエーションを作成する)
13821382
- `v-for`
13831383

1384-
2. **条件** (要素が描画/表示されているかどうか)
1384+
3. **条件** (要素が描画/表示されているかどうか)
13851385
- `v-if`
13861386
- `v-else-if`
13871387
- `v-else`
13881388
- `v-show`
13891389
- `v-cloak`
13901390

1391-
3. **描画修飾子** (要素の描画方法を変更)
1391+
4. **描画修飾子** (要素の描画方法を変更)
13921392
- `v-pre`
13931393
- `v-once`
13941394

1395-
4. **グローバルな認識** (コンポーネントを超えた知識が必要)
1395+
5. **グローバルな認識** (コンポーネントを超えた知識が必要)
13961396
- `id`
13971397

1398-
5. **一意の属性** (一意の値を必要とする属性)
1398+
6. **一意の属性** (一意の値を必要とする属性)
13991399
- `ref`
14001400
- `key`
14011401
- `slot`
14021402

1403-
6. **双方向バインディング** (バインディングとイベントの結合)
1403+
7. **双方向バインディング** (バインディングとイベントの結合)
14041404
- `v-model`
14051405

1406-
7. **その他の属性** (すべての指定されていないバインドされた属性とバインドされていない属性)
1406+
8. **その他の属性** (すべての指定されていないバインドされた属性とバインドされていない属性)
14071407

1408-
8. **イベント** (コンポーネントのイベントリスナ)
1408+
9. **イベント** (コンポーネントのイベントリスナ)
14091409
- `v-on`
14101410

1411-
9. **コンテンツ** (要素のコンテンツを上書きする)
1411+
10. **コンテンツ** (要素のコンテンツを上書きする)
14121412
- `v-html`
14131413
- `v-text`
14141414

@@ -1480,7 +1480,7 @@ computed: {
14801480

14811481
### 単一ファイルコンポーネントのトップレベルの属性の順序 <sup data-p="c">推奨</sup>
14821482

1483-
**[単一ファイルコンポーネント](../guide/single-file-components.html)では、 `template``script``style` タグを一貫した順序にするべきです、 `<style>` は最後です、それは他の2つのうち少なくとも1つが常に必要だからです。**
1483+
**[単一ファイルコンポーネント](../guide/single-file-components.html)では、 `<template>``<script>``<style>` タグを一貫した順序にするべきです、 `<style>` は最後です、それは他の2つのうち少なくとも1つが常に必要だからです。**
14841484

14851485
{% raw %}<div class="style-example example-bad">{% endraw %}
14861486
#### 悪い例

themes/vue/layout/index.ejs

-3
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,6 @@
5555
</div>
5656

5757
<div id="footer">
58-
<a href="https://www.shuttleworthfoundation.org/fellows/flash-grants/" target="_blank">
59-
<img src="/images/shuttleworth.png" style="width: 200px;">
60-
</a>
6158
<p>Released under the <a href="https://opensource.org/licenses/MIT" target="_blank">MIT License</a><br>
6259
Copyright &copy; 2014-<%- new Date().getFullYear() %> Evan You</p>
6360
</div>

themes/vue/source/css/_team.styl

+1-1
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@
118118
line-height: 1
119119
vertical-align: middle
120120
margin-right: 4px
121-
&.github
121+
&.github, &.codepen
122122
color: #000
123123
&.twitter
124124
color: #1da1f3
-14.1 KB
Binary file not shown.

0 commit comments

Comments
 (0)