Skip to content

Commit 30d7482

Browse files
oohirapotato4d
authored andcommitted
[Doc]: chore: add rel=sponsor to partner links #1851 (#1866)
* cherry-pick & translate vuejs/v2.vuejs.org@5741905
1 parent 3d8aeef commit 30d7482

19 files changed

+527
-469
lines changed

src/v2/cookbook/form-validation.md

Lines changed: 436 additions & 436 deletions
Large diffs are not rendered by default.

src/v2/guide/class-and-style.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ order: 6
88
データバインディングに一般に求められることの 1 つは、要素のクラスリストとインラインスタイルを操作することです。それらはどちらも属性ですから、`v-bind` を使って扱うことができます。最終的な文字列を式で計算するだけです。しかしながら、文字列の連結に手を出すのは煩わしく、エラーのもとです。そのため、Vue は `v-bind``class``style` と一緒に使われるとき、特別な拡張機能を提供します。文字列だけではなく、式はオブジェクトまたは配列を返すことができます。
99

1010
## HTML クラスのバインディング
11-
<div class="vueschool"><a href="https://vueschool.io/lessons/vuejs-dynamic-classes?friend=vuejs" target="_blank" rel="noopener" title="Free Vue.js Dynamic Classes Lesson">Vue School で無料の動画レッスンを見る</a></div>
11+
<div class="vueschool"><a href="https://vueschool.io/lessons/vuejs-dynamic-classes?friend=vuejs" target="_blank" rel="sponsored noopener" title="Free Vue.js Dynamic Classes Lesson">Vue School で無料の動画レッスンを見る</a></div>
1212

1313
### オブジェクト構文
1414

src/v2/guide/components-dynamic-async.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ new Vue({
202202

203203
## 非同期コンポーネント
204204

205-
<div class="vueschool"><a href="https://vueschool.io/lessons/dynamically-load-components?friend=vuejs" target="_blank" rel="noopener" title="Free Vue.js Async Components lesson">Vue School で無料の動画レッスンを見る</a></div>
205+
<div class="vueschool"><a href="https://vueschool.io/lessons/dynamically-load-components?friend=vuejs" target="_blank" rel="sponsored noopener" title="Free Vue.js Async Components lesson">Vue School で無料の動画レッスンを見る</a></div>
206206

207207
大規模なアプリケーションでは、アプリケーションを小さなまとまりに分割し、必要なコンポーネントだけサーバからロードしたい場合があるでしょう。Vue では、コンポーネント定義を非同期で解決するファクトリ関数としてコンポーネントを定義することができます。Vue は、コンポーネントをレンダリングする必要がある場合にのみファクトリ関数をトリガし、将来の再レンダリングのために結果をキャッシュします。例えば:
208208

src/v2/guide/components-registration.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ order: 101
77

88
> このページは [コンポーネントの基本](components.html) を読まれていることが前提になっています。コンポーネントを扱った事のない場合はこちらのページを先に読んでください。
99
10-
<div class="vueschool"><a href="https://vueschool.io/lessons/global-vs-local-components?friend=vuejs" target="_blank" rel="noopener" title="Free Vue.js Component Registration lesson">Vue School で無料の動画レッスンを見る</a></div>
10+
<div class="vueschool"><a href="https://vueschool.io/lessons/global-vs-local-components?friend=vuejs" target="_blank" rel="sponsored noopener" title="Free Vue.js Component Registration lesson">Vue School で無料の動画レッスンを見る</a></div>
1111

1212
## コンポーネント名
1313

src/v2/guide/components.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ type: guide
55
order: 11
66
---
77

8-
<div class="vueschool"><a href="https://vueschool.io/courses/vuejs-components-fundamentals?friend=vuejs" target="_blank" rel="noopener" title="Free Vue.js Components Fundamentals Course">Vue School で無料の動画レッスンを見る</a></div>
8+
<div class="vueschool"><a href="https://vueschool.io/courses/vuejs-components-fundamentals?friend=vuejs" target="_blank" rel="sponsored noopener" title="Free Vue.js Components Fundamentals Course">Vue School で無料の動画レッスンを見る</a></div>
99

1010
## 基本例
1111

src/v2/guide/custom-directive.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ order: 302
77

88
## 基本
99

10-
<div class="vueschool"><a href="https://vueschool.io/lessons/create-vuejs-directive?friend=vuejs" target="_blank" rel="noopener" title="Free Vue.js Custom Directives lesson">Vue School で無料の動画レッスンを見る</a></div>
10+
<div class="vueschool"><a href="https://vueschool.io/lessons/create-vuejs-directive?friend=vuejs" target="_blank" rel="sponsored noopener" title="Free Vue.js Custom Directives lesson">Vue School で無料の動画レッスンを見る</a></div>
1111

1212
Vue.js 本体で出荷されたディレクティブの標準セットに加えて (`v-model``v-show`)、カスタムディレクティブ (custom directive) を登録することができます。Vue 2.0 では、コードの再利用と抽象化における基本の形はコンポーネントです。しかしながら、通常の要素で低レベル DOM にアクセスしなければならないケースがあるかもしれません。こういった場面では、カスタムディレクティブが役立つでしょう。ひとつの例として、以下のような input 要素へのフォーカスが挙げられます:
1313

src/v2/guide/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Vue (発音は / v j u ː / 、 **view** と同様)はユーザーインター
1313

1414
あなたが経験豊富なフロントエンド開発者で、 Vue.js と他のライブラリ/フレームワークを比較したい場合、[他のフレームワークとの比較](comparison.html)を確認してください。
1515

16-
<div class="vue-mastery"><a href="https://www.vuemastery.com/courses/intro-to-vue-js/vue-instance/" target="_blank" rel="noopener" title="Free Vue.js Course">Vue Masteryで無料の動画コースを見る</a></div>
16+
<div class="vue-mastery"><a href="https://www.vuemastery.com/courses/intro-to-vue-js/vue-instance/" target="_blank" rel="sponsored noopener" title="Free Vue.js Course">Vue Masteryで無料の動画コースを見る</a></div>
1717

1818
## はじめに
1919

@@ -402,4 +402,4 @@ Vue は内部的にはカスタム要素を使っていませんが、カスタ
402402

403403
Vue.js のコアの基本的な機能について簡単に紹介しましたが、このガイドの残りの部分では、基本的な機能だけでなく他の高度な機能についてもっと詳しく扱うので、全てに目を通すようにしてください!
404404

405-
<div id="video-modal" class="modal"><div class="video-space" style="padding: 56.25% 0 0 0; position: relative;"><iframe src="https://player.vimeo.com/video/247494684?dnt=1" style="height: 100%; left: 0; position: absolute; top: 0; width: 100%; margin: 0" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe></div><script src="https://player.vimeo.com/api/player.js"></script><p class="modal-text">Video by <a href="https://www.vuemastery.com" target="_blank" rel="noopener" title="Vue.js Courses on Vue Mastery">Vue Mastery</a>. Watch Vue Mastery’s free <a href="https://www.vuemastery.com/courses/intro-to-vue-js/vue-instance/" target="_blank" rel="noopener" title="Vue.js Courses on Vue Mastery">Intro to Vue course</a>.</div>
405+
<div id="video-modal" class="modal"><div class="video-space" style="padding: 56.25% 0 0 0; position: relative;"><iframe src="https://player.vimeo.com/video/247494684?dnt=1" style="height: 100%; left: 0; position: absolute; top: 0; width: 100%; margin: 0" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe></div><script src="https://player.vimeo.com/api/player.js"></script><p class="modal-text">Video by <a href="https://www.vuemastery.com" target="_blank" rel="sponsored noopener" title="Vue.js Courses on Vue Mastery">Vue Mastery</a>. Watch Vue Mastery’s free <a href="https://www.vuemastery.com/courses/intro-to-vue-js/vue-instance/" target="_blank" rel="sponsored noopener" title="Vue.js Courses on Vue Mastery">Intro to Vue course</a>.</div>

src/v2/guide/installation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ $ npm install vue
7777

7878
<p class="tip">CLI は Node.js および関連するビルドツールに関する事前知識を前提としています。Vue またはフロントエンドビルドツールを初めて使用している場合、CLI を使用する前に、ビルドツールなしで[ガイド](./)を参照することを強くお勧めします。</p>
7979

80-
<div class="vue-mastery"><a href="https://www.vuemastery.com/courses/real-world-vue-js/vue-cli" target="_blank" rel="noopener" title="Vue CLI">Vue Masteryで動画の説明を見る</a></div>
80+
<div class="vue-mastery"><a href="https://www.vuemastery.com/courses/real-world-vue-js/vue-cli" target="_blank" rel="sponsored noopener" title="Vue CLI">Vue Masteryで動画の説明を見る</a></div>
8181

8282
## さまざまなビルドについて
8383

src/v2/guide/instance.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ vm.$watch('a', function (newValue, oldValue) {
123123

124124
## インスタンスライフサイクルフック
125125

126-
<div class="vueschool"><a href="https://vueschool.io/lessons/understanding-the-vuejs-lifecycle-hooks?friend=vuejs" target="_blank" rel="noopener" title="Free Vue.js Lifecycle Hooks Lesson">Vue School で無料の動画レッスンを見る</a></div>
126+
<div class="vueschool"><a href="https://vueschool.io/lessons/understanding-the-vuejs-lifecycle-hooks?friend=vuejs" target="_blank" rel="sponsored noopener" title="Free Vue.js Lifecycle Hooks Lesson">Vue School で無料の動画レッスンを見る</a></div>
127127

128128
各 Vue インスタンスは、生成時に一連の初期化を行います。例えば、データの監視のセットアップやテンプレートのコンパイル、DOM へのインスタンスのマウント、データが変化したときの DOM の更新などがあります。その初期化の過程で、特定の段階でユーザー自身のコードを追加する、いくつかの **ライフサイクルフック(lifecycle hooks)** と呼ばれる関数を実行します。
129129

src/v2/guide/reactivity.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ order: 601
77

88
さらに深く見ていきましょう!Vue の最大の特徴の1つは、控えめなリアクティブシステムです。モデルは単なるプレーンな JavaScript オブジェクトです。それらを変更するとビューが更新されます。これは状態管理を非常にシンプルかつ直感的にしますが、よくある問題を避けるためにその仕組みを理解することも重要です。このセクションでは、Vue のリアクティブシステムの低レベルの詳細の一部について掘り下げていきます。
99

10-
<div class="vue-mastery"><a href="https://www.vuemastery.com/courses/advanced-components/build-a-reactivity-system" target="_blank" rel="noopener" title="Vue Reactivity">Vue Masteryで動画の説明を見る</a></div>
10+
<div class="vue-mastery"><a href="https://www.vuemastery.com/courses/advanced-components/build-a-reactivity-system" target="_blank" rel="sponsored noopener" title="Vue Reactivity">Vue Masteryで動画の説明を見る</a></div>
1111

1212
## 変更の追跡方法
1313

src/v2/guide/single-file-components.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ order: 401
77

88
## 前書き
99

10-
<div class="vueschool"><a href="https://vueschool.io/lessons/introduction-to-single-file-components?friend=vuejs" target="_blank" rel="noopener" title="Free Vue.js Single File Components lesson">Vue School で無料の動画レッスンを見る</a></div>
10+
<div class="vueschool"><a href="https://vueschool.io/lessons/introduction-to-single-file-components?friend=vuejs" target="_blank" rel="sponsored noopener" title="Free Vue.js Single File Components lesson">Vue School で無料の動画レッスンを見る</a></div>
1111

1212
多くの Vue プロジェクトでは、グローバルコンポーネントは、`new Vue({ el: '#container '})` の後に各ページの body においてコンテナ要素をターゲットにすることに続いて、`Vue.component` を使用して定義されています。
1313

src/v2/guide/state-management.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ order: 502
99

1010
大規模なアプリケーションは、多くの状態が色々なコンポーネントに散らばったり、コンポーネント間の相互作用のために複雑になりがちです。この問題を解消するために、 Vue は Elm から触発された状態管理ライブラリの [vuex](https://github.com/vuejs/vuex) を提供します。[vue-devtools](https://github.com/vuejs/vue-devtools) とも連携し、特別なセットアップなしで[タイムトラベルデバッグ](https://raw.githubusercontent.com/vuejs/vue-devtools/master/media/demo.gif)を提供します。
1111

12-
<div class="vue-mastery"><a href="https://www.vuemastery.com/courses/mastering-vuex/intro-to-vuex/" target="_blank" rel="noopener" title="Vuex Tutorial">Vue Masteryで動画の説明を見る</a></div>
12+
<div class="vue-mastery"><a href="https://www.vuemastery.com/courses/mastering-vuex/intro-to-vuex/" target="_blank" rel="sponsored noopener" title="Vuex Tutorial">Vue Masteryで動画の説明を見る</a></div>
1313

1414
### React 開発者への情報
1515

themes/vue/layout/index.ejs

Lines changed: 27 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -121,9 +121,33 @@
121121
</div>
122122

123123
<div id="video-modal" class="modal">
124-
<div class="video-space" style="padding: 56.25% 0 0 0; position: relative;"><iframe src="https://player.vimeo.com/video/247494684?dnt=1" style="height: 100%; left: 0; position: absolute; top: 0; width: 100%;" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>
125-
</div><script src="https://player.vimeo.com/api/player.js"></script>
126-
<p class="modal-text">Video by <a href="https://www.vuemastery.com" target="_blank" rel="noopener" title="Vue.js Courses on Vue Mastery">Vue Mastery</a>. Watch Vue Mastery’s free <a href="https://www.vuemastery.com/courses/intro-to-vue-js/vue-instance/" target="_blank" rel="noopener" title="Vue.js Courses on Vue Mastery">Intro to Vue course</a>.
124+
<div class="video-space" style="padding: 56.25% 0 0 0; position: relative;">
125+
<iframe
126+
src="https://player.vimeo.com/video/247494684?dnt=1"
127+
style="height: 100%; left: 0; position: absolute; top: 0; width: 100%;"
128+
frameborder="0"
129+
webkitallowfullscreen
130+
mozallowfullscreen
131+
allowfullscreen></iframe>
132+
</div>
133+
<script src="https://player.vimeo.com/api/player.js"></script>
134+
<p class="modal-text">
135+
Video by
136+
<a
137+
href="https://www.vuemastery.com"
138+
target="_blank"
139+
rel="sponsored noopener"
140+
title="Vue.js Courses on Vue Mastery">
141+
Vue Mastery
142+
</a>. Watch Vue Mastery’s free
143+
<a
144+
href="https://www.vuemastery.com/courses/intro-to-vue-js/vue-instance/"
145+
target="_blank"
146+
rel="sponsored noopener"
147+
title="Vue.js Courses on Vue Mastery"
148+
>
149+
Intro to Vue course
150+
</a>.
127151
</p>
128152
</div>
129153

themes/vue/layout/partials/learn_dropdown.ejs

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,20 @@
1414
<li><h4>ビデオコース</h4></li>
1515
<li>
1616
<ul>
17-
<li><a href="https://www.vuemastery.com/courses/" class="nav-link" target="_blank" rel="noopener">Vue Mastery</a></li>
18-
<li><a href="https://vueschool.io/?friend=vuejs&utm_source=Vuejs.org&utm_medium=Link&utm_content=Navbar%20Dropdown" class="nav-link" target="_blank" rel="noopener">Vue School</a></li>
17+
<li>
18+
<a href="https://www.vuemastery.com/courses/" class="nav-link" target="_blank" rel="sponsored noopener">
19+
Vue Mastery
20+
</a>
21+
</li>
22+
<li>
23+
<a
24+
href="https://vueschool.io/?friend=vuejs&utm_source=Vuejs.org&utm_medium=Link&utm_content=Navbar%20Dropdown"
25+
class="nav-link"
26+
target="_blank" rel="sponsored noopener"
27+
>
28+
Vue School
29+
</a>
30+
</li>
1931
</ul>
2032
</li>
2133
</ul>

themes/vue/layout/partials/platinum_sponsors.ejs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<span>プラチナスポンサー</span>
44
<div>
55
<%_ for (const sponsor of theme.platinum_sponsors) {_%>
6-
<a href="<%- sponsor.url %>" target="_blank" rel="noopener" class="logo">
6+
<a href="<%- sponsor.url %>" target="_blank" rel="sponsored noopener" class="logo">
77
<img src="<%- url_for(`/images/${sponsor.wide_img || sponsor.img}`) %>" alt="<%-sponsor.name-%>">
88
</a>
99
<%_ } _%>

themes/vue/layout/partials/sponsors.ejs

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
<h3>Patreon スポンサー</h3>
22

33
<%_ for (const sponsor of theme.platinum_sponsors) {_%>
4-
<a href="<%- sponsor.url %>" target="_blank" rel="noopener" style="width: 160px;">
4+
<a href="<%- sponsor.url %>" target="_blank" rel="sponsored noopener" style="width: 160px;">
55
<img src="<%- url_for(`/images/${sponsor.img}`) %>" style="width: 160px;" alt="<%-sponsor.name-%>">
66
</a>
77
<%_ } _%>
88
<br>
99
<br>
1010
<%_ for (const sponsor of theme.gold_sponsors) {_%>
11-
<a href="<%- sponsor.url %>" target="_blank" rel="noopener" style="width: 120px;">
11+
<a href="<%- sponsor.url %>" target="_blank" rel="sponsored noopener" style="width: 120px;">
1212
<img src="<%- url_for(`/images/${sponsor.img}`) %>" style="width: 120px;" alt="<%-sponsor.name-%>">
1313
</a>
1414
<%_ } _%>
@@ -20,15 +20,23 @@
2020
<h3>OpenCollective スポンサー</h3>
2121
<h4>プラチナ</h4>
2222
<%_ for (let i = 0; i < 2; i++) {_%>
23-
<a href="https://opencollective.com/vuejs/tiers/platinum-sponsors/<%- i %>/website" rel="noopener" target="_blank">
24-
<img src="https://opencollective.com/vuejs/tiers/platinum-sponsors/<%- i %>/avatar.svg" alt="Vue.js スポンサー">
25-
</a>
23+
<a
24+
href="https://opencollective.com/vuejs/tiers/platinum-sponsors/<%- i %>/website"
25+
rel="sponsored noopener"
26+
target="_blank"
27+
>
28+
<img src="https://opencollective.com/vuejs/tiers/platinum-sponsors/<%- i %>/avatar.svg" alt="Vue.js スポンサー">
29+
</a>
2630
<%_ } _%>
2731
<h4>ゴールド</h4>
2832
<%_ for (let i = 0; i < 8; i++) {_%>
29-
<a href="https://opencollective.com/vuejs/tiers/gold-sponsors/<%- i %>/website" rel="noopener" target="_blank">
30-
<img src="https://opencollective.com/vuejs/tiers/gold-sponsors/<%- i %>/avatar.svg" alt="Vue.js スポンサー">
31-
</a>
33+
<a
34+
href="https://opencollective.com/vuejs/tiers/gold-sponsors/<%- i %>/website"
35+
rel="sponsored noopener"
36+
target="_blank"
37+
>
38+
<img src="https://opencollective.com/vuejs/tiers/gold-sponsors/<%- i %>/avatar.svg" alt="Vue.js スポンサー">
39+
</a>
3240
<%_ } _%>
3341
</div>
3442

themes/vue/layout/partials/sponsors_sidebar.ejs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<span>スペシャルスポンサー</span>
44
<div>
55
<%_ for (const sponsor of theme.special_sponsors) {_%>
6-
<a href="<%- sponsor.url %>" target="_blank" rel="noopener" class="logo">
6+
<a href="<%- sponsor.url %>" target="_blank" rel="sponsored noopener" class="logo">
77
<img src="<%- url_for(`/images/${sponsor.wide_img || sponsor.img}`) %>" alt="<%-sponsor.name-%>">
88
</a>
99
<%_ } _%>

0 commit comments

Comments
 (0)