Skip to content

Commit d68aa9d

Browse files
Merge branch 'dev' into fix-hash-mode-deep-links
2 parents f12de15 + 99c4436 commit d68aa9d

Some content is hidden

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

44 files changed

+708
-603
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,4 @@ dist/*.gz
88
dist/*.map
99
explorations
1010
docs/.vuepress/dist
11+
yarn-error.log

docs-gitbook/ja/essentials/history-mode.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ history モードを使用する時は、URL は "普通" に見えます e.g. `
3232
</IfModule>
3333
```
3434

35+
`mod_rewrite`の代わりに、[`FallbackResource`](https://httpd.apache.org/docs/2.2/mod/mod_dir.html#fallbackresource) も使用することができます。
36+
3537
#### nginx
3638

3739
```nginx

docs/.vuepress/components/Bit.vue

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<template>
2+
<p class="bit-sponsor">
3+
<a href="https://www.bitsrc.io/?utm_source=vue&utm_medium=vue&utm_campaign=vue&utm_term=vue&utm_content=vue" target="_blank">
4+
<span>This project is sponsored by</span>
5+
<img alt="bit" src="https://raw.githubusercontent.com/vuejs/vuejs.org/master/themes/vue/source/images/bit-wide.png">
6+
</a>
7+
</p>
8+
</template>

docs/.vuepress/public/_redirects

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,31 @@
11
# redirect old urls to root
22

33
/en/essentials/getting-started.html /guide/
4-
/en/essentials/* /guide/essentials/*
5-
/en/advanced/* /guide/advanced/*
4+
/en/essentials/* /guide/essentials/:splat
5+
/en/advanced/* /guide/advanced/:splat
66
/en/api/* /api/
77
/en/* /:splat
88

99
/zh-cn/essentials/getting-started.html /zh/guide/
10-
/zh-cn/essentials/* /zh/guide/essentials/*
11-
/zh-cn/advanced/* /zh/guide/advanced/*
10+
/zh-cn/essentials/* /zh/guide/essentials/:splat
11+
/zh-cn/advanced/* /zh/guide/advanced/:splat
1212
/zh-cn/api/* /zh/api/
1313
/zh-cn/* /zh/:splat
1414

1515
/ru/essentials/getting-started.html /ru/guide/
16-
/ru/essentials/* /ru/guide/essentials/*
17-
/ru/advanced/* /ru/guide/advanced/*
16+
/ru/essentials/* /ru/guide/essentials/:splat
17+
/ru/advanced/* /ru/guide/advanced/:splat
1818
/ru/api/* /ru/api/
1919
/ru/* /ru/:splat
20+
21+
/ja/essentials/getting-started.html /ja/guide/
22+
/ja/essentials/* /ja/guide/essentials/:splat
23+
/ja/advanced/* /ja/guide/advanced/:splat
24+
/ja/api/* /ja/api/
25+
/ja/* /ja/:splat
26+
27+
/kr/essentials/getting-started.html /kr/guide/
28+
/kr/essentials/* /kr/guide/essentials/:splat
29+
/kr/advanced/* /kr/guide/advanced/:splat
30+
/kr/api/* /kr/api/
31+
/kr/* /kr/:splat

docs/.vuepress/style.styl

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
.bit-sponsor
2+
font-weight 600
3+
background-color #f3f6f8
4+
padding 0.6em 1.2em
5+
border-radius 8px
6+
display inline-block
7+
margin 1em 0 !important
8+
a
9+
color #999
10+
img
11+
height 40px
12+
margin-left 15px
13+
img, span
14+
vertical-align middle

docs/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# Introduction
22

3+
<Bit/>
4+
35
:::tip VERSION NOTE
46
For TypeScript users, `[email protected]+` requires `[email protected]+`, and vice versa.
57
:::

docs/api/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ sidebar: auto
44

55
# API Reference
66

7+
<Bit/>
8+
79
## `<router-link>`
810

911
`<router-link>` is the component for enabling user navigation in a router-enabled app. The target location is specified with the `to` prop. It renders as an `<a>` tag with correct `href` by default, but can be configured with the `tag` prop. In addition, the link automatically gets an active CSS class when the target route is active.

docs/guide/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# Getting Started
22

3+
<Bit/>
4+
35
::: tip Note
46
We will be using [ES2015](https://github.com/lukehoban/es6features) in the code samples in the guide.
57

docs/guide/essentials/dynamic-matching.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ const User = {
5353
}
5454
```
5555

56-
Or, use the `beforeRouteUpdate` guard introduced in 2.2:
56+
Or, use the `beforeRouteUpdate` [navigation guard](../advanced/navigation-guards.html) introduced in 2.2:
5757

5858
``` js
5959
const User = {

docs/ja/api/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,8 +253,9 @@ name ではないプロパティも描画されるコンポーネントに渡さ
253253
### fallback
254254

255255
- 型: `boolean`
256+
- デフォルト: `true`
256257

257-
ブラウザが `history.pushState` をサポートしないとき、 ルーターが `hash` モードにフォールバックかどうか制御します。デフォルトは `true`
258+
`history.pushState` がサポートされていないブラウザにおいて、モードが `history` に設定されているとき、ルーターを `hash` モードにフォールバックかどうか制御します。
258259

259260
これを `false` に設定すると、本質的に全ての `router-link` ナビゲーションが IE9 においてフルページリフレッシュになります。これは、サーバサイドレンダリングでハッシュモードの URL が機能しないため、IE9 で動作する必要がある場合に便利です。
260261

docs/ja/guide/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,4 +92,4 @@ export default {
9292
[動作](https://jsfiddle.net/yyx990803/xgrjzsup/) の例も確認してみてください.
9393

9494
`<router-link>` は対象のルートがマッチした時に自動的に `.router-link-active` が付与されるのにお気づきでしょうか。
95-
より詳細については [API リファレンス](../api/router-link.md) をご参照ください。
95+
より詳細については [API リファレンス](../api/#router-link) をご参照ください。

docs/ja/guide/advanced/transitions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
</transition>
99
```
1010

11-
[`<transition>` についての全て](http://jp.vuejs.org/guide/transitions.html) はここでも動作します。
11+
[全てのトランジション API は](http://jp.vuejs.org/guide/transitions.html) はここでも動作します。
1212

1313
## ルート単位のトランジション
1414

docs/ja/guide/essentials/dynamic-matching.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ const User = {
3434
| /user/:username | /user/evan | `{ username: 'evan' }` |
3535
| /user/:username/post/:post_id | /user/evan/post/123 | `{ username: 'evan', post_id: 123 }` |
3636

37-
`$route.params` に加えて、`$route` オブジェクトでは `$route.query` (もし URL 上にクエリがあるなら) や `$route.hash` など便利な情報も利用可能です。それらの詳細については [API リファレンス](../api/route-object.md) でご確認ください。
37+
`$route.params` に加えて、`$route` オブジェクトでは `$route.query` (もし URL 上にクエリがあるなら) や `$route.hash` など便利な情報も利用可能です。それらの詳細については [API リファレンス](../../api/#the-route-object) でご確認ください。
3838

3939
## パラメーター変更の検知
4040

@@ -53,7 +53,7 @@ const User = {
5353
}
5454
```
5555

56-
または、2.2 で導入された `beforeRouteUpdate` ガードを使用します:
56+
または、2.2 で導入された `beforeRouteUpdate` [ナビゲーションガード](../advanced/navigation-guards.html)を使用します:
5757

5858
``` js
5959
const User = {

docs/ja/guide/essentials/history-mode.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ history モードを使用する時は、URL は "普通" に見えます e.g. `
3232
</IfModule>
3333
```
3434

35+
`mod_rewrite`の代わりに、[`FallbackResource`](https://httpd.apache.org/docs/2.2/mod/mod_dir.html#fallbackresource) も使用することができます。
36+
3537
#### nginx
3638

3739
```nginx

docs/kr/api/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ sidebar: auto
228228

229229
- `current` 현재 라우트를 나타냅니다. (대부분의 경우에 변경할 일이 없습니다.)
230230

231-
- `append``current` 라우트에 추가할 수 있도록 합니다 ([`router-link`](router-link.md#props)처럼)
231+
- `append``current` 라우트에 추가할 수 있도록 합니다 ([`router-link`](#router-link-props)처럼)
232232

233233
### router.addRoutes
234234

docs/ru/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# Введение
22

3+
<Bit/>
4+
35
:::tip ПРИМЕЧАНИЕ К ВЕРСИИ
46
Для пользователей TypeScript, `[email protected]+` требуется `[email protected]+`, и наоборот.
57
:::

0 commit comments

Comments
 (0)