Skip to content

Commit 70a1bcd

Browse files
authored
Merge pull request #46 from tomoam/update-up-to-20230924
2023/09/24 迄の更新に追従
2 parents 6bd3efd + 1ac3339 commit 70a1bcd

File tree

40 files changed

+1665
-1027
lines changed

40 files changed

+1665
-1027
lines changed

LICENSE.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
MIT License
2+
3+
Copyright (c) 2023 [these people](https://github.com/sveltejs/learn.svelte.dev/graphs/contributors)
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
6+
7+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
8+
9+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

content/tutorial/01-svelte/06-bindings/03-checkbox-inputs/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@ title: Checkbox inputs
66

77
```svelte
88
/// file: App.svelte
9-
<input type=checkbox +++bind:+++checked={yes}>
9+
<input type="checkbox" +++bind:+++checked={yes}>
1010
```

content/tutorial/01-svelte/08-stores/06-store-bindings/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ store が書き込み可能、つまり `set` メソッドを持っている場
1313

1414
入力値を変更すると `name` とそれに依存しているもの全てが更新されます。
1515

16-
また、コンポーネント内で store の値に直接代入することもできます。`<input>` の後ろに `<button>` 要素を追加してください:
16+
また、コンポーネント内で store の値に直接代入することもできます。`name` を更新するための `on:click` イベントハンドラを追加してください:
1717

1818
```svelte
1919
/// file: App.svelte

content/tutorial/02-advanced-svelte/05-bindings/03-media-elements/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,14 +63,15 @@ function seek(e) {
6363
/>
6464
```
6565

66-
`<audio>``<video>` のバインディングの完全なセットは以下の通りです — 6つの _読み取り専用(readonly)_ のバインディング…
66+
`<audio>``<video>` のバインディングの完全なセットは以下の通りです — 7つの _読み取り専用(readonly)_ のバインディング…
6767

6868
- `duration` (readonly) — ビデオの総再生時間 (秒単位)
6969
- `buffered` (readonly) — `{start, end}` オブジェクトの配列
7070
- `seekable` (readonly) — 同上
7171
- `played` (readonly) — 同上
7272
- `seeking` (readonly) — boolean
7373
- `ended` (readonly) — boolean
74+
- `readyState` (readonly) — 0 から 4 までの数値 (0 と 4 も含む)
7475

7576
…と5つの _双方向_ バインディングです:
7677

content/tutorial/02-advanced-svelte/05-bindings/03-media-elements/app-b/src/lib/AudioPlayer.svelte

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
bind:currentTime={time}
2424
bind:duration
2525
bind:paused
26+
preload="metadata"
2627
on:ended={() => {
2728
time = 0;
2829
}}

content/tutorial/02-advanced-svelte/06-classes-and-styles/04-component-styles/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ title: Component styles
3737
height: 5em;
3838
border-radius: 0.5em;
3939
margin: 0 0 1em 0;
40-
background: +++var(--color, #ddd)+++;
40+
background-color: +++var(--color, #ddd)+++;
4141
}
4242
</style>
4343
```
@@ -55,4 +55,4 @@ title: Component styles
5555

5656
他の属性と同じようにこの値を動的にすることができます。
5757

58-
この機能は、必要に応じて各コンポーネントを `<div style="display: contents">` でラップしてカスタムプロパティを適用する、という仕組みになっています。
58+
この機能は、必要に応じて各コンポーネントを `<div style="display: contents">` でラップしてカスタムプロパティを適用する、という仕組みになっています。

content/tutorial/02-advanced-svelte/06-classes-and-styles/04-component-styles/app-a/src/lib/Box.svelte

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@
66
height: 5em;
77
border-radius: 0.5em;
88
margin: 0 0 1em 0;
9-
background: #ddd;
9+
background-color: #ddd;
1010
}
11-
</style>
11+
</style>

content/tutorial/02-advanced-svelte/06-classes-and-styles/04-component-styles/app-b/src/lib/Box.svelte

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@
66
height: 5em;
77
border-radius: 0.5em;
88
margin: 0 0 1em 0;
9-
background: var(--color, #ddd);
9+
background-color: var(--color, #ddd);
1010
}
11-
</style>
11+
</style>

content/tutorial/02-advanced-svelte/07-composition/02-named-slots/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ title: Named slots
44

55
前回の例には _default slot_ があり、それはコンポーネントの直接の子をレンダリングするものでした。時々、配置場所をもっとコントロールしなければならないときがあると思います。そのような場合は、 _named slots_ を使用することができます。
66

7-
`<Card>` コンポーネントの子として、すでに `<span slot="telephone">`、その他 `company``address` が置いてあります。これに対応するように、named slots を `Card.svelte` に追加しましょう:
7+
`App.svelte` の中で、`<span slot="telephone">``company``address` を子として持つ `<Card>` コンポーネントをレンダリングしようとしています。これに対応するように、named slots を `Card.svelte` に追加しましょう:
88

99
```svelte
1010
/// file: Card.svelte

content/tutorial/02-advanced-svelte/08-context/01-context-api/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,5 +86,5 @@ import { getContext } from 'svelte';
8686

8787
const { count } = getContext('my-context');
8888

89-
$: console.log({ count });
89+
$: console.log({ count: $count });
9090
```

0 commit comments

Comments
 (0)