Skip to content

Commit 7f9fec0

Browse files
authored
Merge pull request #1199 from Agoric/docs-hydration-error-debug
docs: fix hydration errors due to `iframe`s sitewide
2 parents 687cb5e + 13eec3c commit 7f9fec0

11 files changed

+30
-5
lines changed

main/guides/getting-started/explainer-deploying-a-smart-contact.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,13 @@ Note the calling the `yarn start:contract` command is the same as running `yarn
4444
},
4545
```
4646

47-
In the json snippet above note that the `start` command is running `yarn docker:make clean start-contract`.
47+
In the json snippet above note that the `start` command is running `yarn docker:make clean start-contract`.
4848

4949
::: tip Video Walkthrough
5050

5151
As you're going through this explainer it may be helpful to watch this video walkthrough.
5252

53+
<ClientOnly>
5354
<iframe width="560" height="315" src="https://www.youtube.com/embed/pWZUHJqj_Lo" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
54-
55+
</ClientOnly>
5556
:::

main/guides/getting-started/explainer-how-to-make-an-offer.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Making an Offer
2-
As you saw in the `dapp-offer-up` tutorial you could use the dapp UI to make an offer on up to three items.
2+
As you saw in the `dapp-offer-up` tutorial you could use the dapp UI to make an offer on up to three items.
33

44
Take a look at our detailed [tutorial on how the UI for making offers](https://docs.agoric.com/guides/getting-started/ui-tutorial/making-an-offer.html) works in this dapp.
55

@@ -11,6 +11,8 @@ Here is how the UI looks after completion:
1111

1212
As you're going through this explainer it may be helpful to watch this video walkthrough.
1313

14+
<ClientOnly>
1415
<iframe width="560" height="315" src="https://www.youtube.com/embed/Wy13GLmujhA" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
16+
</ClientOnly>
1517

1618
:::

main/guides/getting-started/explainer-how-to-start-a-local-chain.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Starting a Local Chain
2-
As you saw in this tutorial, starting a local chain is easy!
2+
As you saw in this tutorial, starting a local chain is easy!
33

44
## How it Works
55
In the `dapp-offer-up` sample dapp, configuration for the Agoric containers is specified in the `package.json` file. Take note of the Docker specific parameters in the `script` section of `package.json` below:
@@ -25,6 +25,8 @@ In the tutorial you first used the `yarn create` command to clone the dapp. Next
2525

2626
As you're going through this explainer it may be helpful to watch this video walkthrough.
2727

28+
<ClientOnly>
2829
<iframe width="560" height="315" src="https://www.youtube.com/embed/WJ1MlHudpuM" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
30+
</ClientOnly>
2931

3032
:::

main/guides/getting-started/index.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@ In these steps you will be getting your first Agoric dapp up and running!
66

77
As you're going through this tutorial it may be helpful to watch this video walkthrough, showing you all the steps and the desired outcome of each.
88

9+
<ClientOnly>
910
<iframe width="560" height="315" src="https://www.youtube.com/embed/huTI9_Gq2ow" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
11+
</ClientOnly>
1012

1113
:::
1214

@@ -180,7 +182,7 @@ Previously, you installed brew on your machine. You can install docker using the
180182
```sh
181183
brew cask install docker
182184
```
183-
or
185+
or
184186
```sh
185187
brew install docker --cask
186188
```

main/guides/getting-started/sell-concert-tickets-contract-explainer.md

+2
Original file line numberDiff line numberDiff line change
@@ -131,4 +131,6 @@ atomicRearrange(
131131
Take a complete look at this example code in our [Github repository](https://github.com/Agoric/dapp-agoric-basics/blob/main/contract/src/sell-concert-tickets.contract.js).
132132

133133
As you're going through this tutorial it may be helpful to watch this video walkthrough:
134+
<ClientOnly>
134135
<iframe width="560" height="315" src="https://www.youtube.com/embed/Wtq6dwsRdOQ" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
136+
</ClientOnly>

main/guides/getting-started/swaparoo-how-to-swap-assets-explainer.md

+2
Original file line numberDiff line numberDiff line change
@@ -105,4 +105,6 @@ const creatorFacet = Far('Creator', {
105105

106106
## Video Walkthrough
107107
Watch this short video walk-through of the complete Swaparoo Smart Contract that allows any two parties to trade any digital assets with minimal risk.
108+
<ClientOnly>
108109
<iframe width="560" height="315" src="https://www.youtube.com/embed/qHa7u8r62JQ" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
110+
</ClientOnly>

main/guides/getting-started/swaparoo-making-a-payment-explainer.md

+2
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,6 @@ Deposit facets provide an abstraction layer for handling payments and ensure tha
3838

3939
## Video Walkthrough
4040
As you're going through this tutorial it may be helpful to watch this video walkthrough.
41+
<ClientOnly>
4142
<iframe width="560" height="315" src="https://www.youtube.com/embed/XeHBMO7SckU" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
43+
</ClientOnly>

main/guides/js-programming/eventual-send.md

+2
Original file line numberDiff line numberDiff line change
@@ -139,5 +139,7 @@ Now we can see the result in some detail. Note the way the promise from
139139
::: tip Watch: How Agoric Solves Reentrancy Hazards (November 2020)
140140
for more on eventual send and remote communication
141141

142+
<ClientOnly>
142143
<iframe width="560" height="315" src="https://www.youtube.com/embed/38oTyVv_D9I" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
144+
</ClientOnly>
143145
:::

main/guides/js-programming/hardened-js.md

+4
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@
55
_The first 15 minutes cover much of the material below.
66
The last 10 minutes are Q&A._
77

8+
<ClientOnly>
89
<iframe width="560" height="315" src="https://www.youtube.com/embed/YcWXqHPui_w?list=PLzDw4TTug5O1oHRbp2HkcvKABAY9FKsmG" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
10+
</ClientOnly>
911
:::
1012

1113

@@ -81,7 +83,9 @@ This limits the damage that can happen if there is an exploitable bug.
8183
::: tip Watch: Navigating the Attack Surface
8284
to achieve a *multiplicative* reduction in risk. _15 min_<br />
8385

86+
<ClientOnly>
8487
<iframe width="560" height="315" src="https://www.youtube.com/embed/wW9-KuezPp8" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
88+
</ClientOnly>
8589
:::
8690

8791
## Tool Support: eslint config

main/guides/js-programming/index.md

+2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@ This 15 minute overview is the first in a
99
of short talks on the Agoric Architecture that overlap substantially with the material in
1010
the sections below.
1111
<br />
12+
<ClientOnly>
1213
<iframe width="560" height="315" src="https://www.youtube.com/embed/52SgGFpWjsY?list=PLzDw4TTug5O1oHRbp2HkcvKABAY9FKsmG" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
14+
</ClientOnly>
1315
:::
1416

1517
## Vats: the Unit of Synchrony

main/guides/zoe/index.md

+4
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,9 @@ Note that in this flow, _assets are not sent to the contract_; only information
2929

3030
::: tip Watch: Offer Safety: Partitioning Risk in Smart Contracts (20 min. Sep 2019)
3131

32+
<ClientOnly>
3233
<iframe width="400" height="225" src="https://www.youtube.com/embed/T6h6TMuVHKQ?si=NzWre0vhlxjBxG-5&amp;controls=0" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen></iframe>
34+
</ClientOnly>
3335

3436
:::
3537

@@ -42,7 +44,9 @@ Note that in this flow, _assets are not sent to the contract_; only information
4244

4345
::: tip Watch: How To Build a Composable DeFi Contract (1:47 Dec 2020)
4446

47+
<ClientOnly>
4548
<iframe width="560" height="315" src="https://www.youtube.com/embed/e9dMkC2oFh8?si=3Luwp25R8d23elAa" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen></iframe>
49+
</ClientOnly>
4650

4751
Agoric has written [a number of example contracts that you can
4852
use](./contracts/index), including:

0 commit comments

Comments
 (0)