Skip to content

docs :rps hooks tutorial update #1522

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/src/frontend/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -597,7 +597,7 @@ You can use `{!js} canFundFromFaucet` to check if `{!js} fundFromFaucet` can be
Example:

```js
load: /examples/rps-9-web/index.js
load: /examples/rps-9-comp/index.js
md5: 5e5c8976731882c06e7f094e05ca43b3
range: 32 - 34
```
Expand All @@ -616,7 +616,7 @@ A Promise that resolves to `{!js} true` if `{!js} fundFromFaucet` can be used, `
Example:

```js
load: /examples/rps-9-web/index.js
load: /examples/rps-9-comp/index.js
md5: 5e5c8976731882c06e7f094e05ca43b3
range: 26 - 34
```
Expand Down
2 changes: 1 addition & 1 deletion docs/src/tut/rps/7-rpc/config.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{ "bookRank": 10 }
{ "bookRank": 20 }
2 changes: 1 addition & 1 deletion docs/src/tut/rps/7-rpc/index.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# {#tut-7-rpc} Rock, Paper, Scissors in Python
# {#tut-7-rpc} Rock, Paper, Scissors (Python)

The main sequence of the tutorial uses the
[JavaScript frontend support library](##ref-frontends-js) to implement
Expand Down
2 changes: 1 addition & 1 deletion docs/src/tut/rps/config.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{ "bookRank": 20,
{ "bookRank": 10,
"hasOtp": true
}
291 changes: 155 additions & 136 deletions docs/src/tut/rps/index.md

Large diffs are not rendered by default.

Binary file added docs/src/tut/rps/rps-9-comp/AcceptTerms.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/src/tut/rps/rps-9-comp/Attaching.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/src/tut/rps/rps-9-comp/ConnectAccount.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/src/tut/rps/rps-9-comp/Deploying.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/src/tut/rps/rps-9-comp/FundAccount.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/src/tut/rps/rps-9-comp/WaitingForTurn.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions docs/src/tut/rps/rps-9-comp/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{ "bookRank": 10,
"hasOtp": true
}
2,060 changes: 2,060 additions & 0 deletions docs/src/tut/rps/rps-9-comp/index.md

Large diffs are not rendered by default.

Binary file modified docs/src/tut/rps/rps-9-web/AcceptTerms.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/src/tut/rps/rps-9-web/Attacher.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/src/tut/rps/rps-9-web/Attaching.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/src/tut/rps/rps-9-web/ConnectAccount.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/src/tut/rps/rps-9-web/Deployer.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/src/tut/rps/rps-9-web/DeployerorAttacher.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/src/tut/rps/rps-9-web/Deploying.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/src/tut/rps/rps-9-web/FundAccount.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/src/tut/rps/rps-9-web/WaitingForTurn.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/src/tut/rps/rps-9-web/setWager.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
126 changes: 125 additions & 1 deletion docs/xrefs.json
Original file line number Diff line number Diff line change
Expand Up @@ -1396,7 +1396,7 @@
"path": "/tut/rps/#tut-7"
},
"tut-7-rpc": {
"title": "Rock, Paper, Scissors in Python",
"title": "Rock, Paper, Scissors (Python)",
"path": "/tut/rps/7-rpc/#tut-7-rpc"
},
"tut-8": {
Expand Down Expand Up @@ -1539,6 +1539,130 @@
"title": "Where Do We Go From Here?",
"path": "/tut/rsvp/#tut-rsvp7"
},
"tutcomp": {
"title": "Rock, Paper, Scissors! (React Classes)",
"path": "/tut/rps/rps-9-comp/#tutcomp"
},
"tutcomp-1": {
"title": "Install and Initialize",
"path": "/tut/rps/rps-9-comp/#tutcomp-1"
},
"tutcomp-10": {
"title": "Onward and Further",
"path": "/tut/rps/rps-9-comp/#tutcomp-10"
},
"tutcomp-2": {
"title": "Scaffolding and Setup",
"path": "/tut/rps/rps-9-comp/#tutcomp-2"
},
"tutcomp-3": {
"title": "Rock, Paper, and Scissors",
"path": "/tut/rps/rps-9-comp/#tutcomp-3"
},
"tutcomp-4": {
"title": "Bets and Wagers",
"path": "/tut/rps/rps-9-comp/#tutcomp-4"
},
"tutcomp-5": {
"title": "Trust and Commitments",
"path": "/tut/rps/rps-9-comp/#tutcomp-5"
},
"tutcomp-6": {
"title": "Timeouts and Participation",
"path": "/tut/rps/rps-9-comp/#tutcomp-6"
},
"tutcomp-7": {
"title": "Play and Play Again",
"path": "/tut/rps/rps-9-comp/#tutcomp-7"
},
"tutcomp-8": {
"title": "Interaction and Independence",
"path": "/tut/rps/rps-9-comp/#tutcomp-8"
},
"tutcomp-9": {
"title": "Web Interaction",
"path": "/tut/rps/rps-9-comp/#tutcomp-9"
},
"tutcomp-9-AcceptTerms": {
"title": "Accept Terms dialog",
"path": "/tut/rps/rps-9-comp/#tutcomp-9-AcceptTerms"
},
"tutcomp-9-App": {
"title": "Application component",
"path": "/tut/rps/rps-9-comp/#tutcomp-9-App"
},
"tutcomp-9-Attach": {
"title": "Attach dialog",
"path": "/tut/rps/rps-9-comp/#tutcomp-9-Attach"
},
"tutcomp-9-Attacher": {
"title": "Attacher component",
"path": "/tut/rps/rps-9-comp/#tutcomp-9-Attacher"
},
"tutcomp-9-Attaching": {
"title": "Attaching display",
"path": "/tut/rps/rps-9-comp/#tutcomp-9-Attaching"
},
"tutcomp-9-ConnectAccount": {
"title": "Connect Account dialog",
"path": "/tut/rps/rps-9-comp/#tutcomp-9-ConnectAccount"
},
"tutcomp-9-Deploy": {
"title": "Deploy dialog",
"path": "/tut/rps/rps-9-comp/#tutcomp-9-Deploy"
},
"tutcomp-9-Deployer": {
"title": "Deployer component",
"path": "/tut/rps/rps-9-comp/#tutcomp-9-Deployer"
},
"tutcomp-9-DeployerOrAttacher": {
"title": "Choose Role",
"path": "/tut/rps/rps-9-comp/#tutcomp-9-DeployerOrAttacher"
},
"tutcomp-9-Deploying": {
"title": "Deploying display",
"path": "/tut/rps/rps-9-comp/#tutcomp-9-Deploying"
},
"tutcomp-9-Done": {
"title": "Done display",
"path": "/tut/rps/rps-9-comp/#tutcomp-9-Done"
},
"tutcomp-9-Final": {
"title": "Putting it all together",
"path": "/tut/rps/rps-9-comp/#tutcomp-9-Final"
},
"tutcomp-9-FundAccount": {
"title": "Fund Account dialog",
"path": "/tut/rps/rps-9-comp/#tutcomp-9-FundAccount"
},
"tutcomp-9-GetHand": {
"title": "Get Hand dialog",
"path": "/tut/rps/rps-9-comp/#tutcomp-9-GetHand"
},
"tutcomp-9-Player": {
"title": "Player component",
"path": "/tut/rps/rps-9-comp/#tutcomp-9-Player"
},
"tutcomp-9-SetWager": {
"title": "Set Wager dialog",
"path": "/tut/rps/rps-9-comp/#tutcomp-9-SetWager"
},
"tutcomp-9-Timeout": {
"title": "Timeout display",
"path": "/tut/rps/rps-9-comp/#tutcomp-9-Timeout"
},
"tutcomp-9-WaitingForAttacher": {
"title": "Waiting for Attacher display",
"path": "/tut/rps/rps-9-comp/#tutcomp-9-WaitingForAttacher"
},
"tutcomp-9-WaitingForResults": {
"title": "Waiting for results display",
"path": "/tut/rps/rps-9-comp/#tutcomp-9-WaitingForResults"
},
"tutcomp-9-WaitingForTurn": {
"title": "Waiting for Turn display",
"path": "/tut/rps/rps-9-comp/#tutcomp-9-WaitingForTurn"
},
"tuts": {
"title": "Tutorials",
"path": "/tut/#tuts"
Expand Down
Loading