-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2325 from mDuo13/migrate-interactive-tutorials
Migrate interactive tutorials
- Loading branch information
Showing
47 changed files
with
731 additions
and
592 deletions.
There are no files selected for viewing
27 changes: 12 additions & 15 deletions
27
content/@i18n/ja/_snippets/interactive-tutorials/connect-step.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,17 @@ | ||
{% if use_network is undefined or use_network == "Testnet" %} | ||
{% set ws_url = "wss://s.altnet.rippletest.net:51233" %} | ||
{% set explorer_url = "https://testnet.xrpl.org" %} | ||
{% set use_network = "Testnet" %} | ||
{% elif use_network == "Devnet" %} | ||
{% set ws_url = "wss://s.devnet.rippletest.net:51233" %} | ||
{% set explorer_url = "https://devnet.xrpl.org" %} | ||
{% elif use_network == "Mainnet" %} | ||
{% set ws_url = "wss://xrplcluster.com" %} | ||
{% set explorer_url = "https://livenet.xrpl.org" %} | ||
{% endif %} | ||
<!-- Interactive tutorials are hard-coded to Testnet for now due to Redocly | ||
limitations. They'll be replaced with new-style tutorials next anyway. | ||
Localized step names don't currently work due to problems with unicode | ||
in regexes. --> | ||
|
||
{{ start_step("Connect") }} | ||
<button id="connect-button" class="btn btn-primary" data-wsurl="{{ws_url}}" data-explorer="{{explorer_url}}">{{use_network}}に接続する</button> | ||
{% interactive-block label=default($label, "Connect") steps=$frontmatter.steps %} | ||
|
||
<button id="connect-button" class="btn btn-primary" data-wsurl="wss://s.altnet.rippletest.net:51233" data-explorer="https://testnet.xrpl.org">Testnetに接続する</button> | ||
<div> | ||
<strong>接続ステータス:</strong> | ||
<span id="connection-status">接続されていません</span> | ||
<div class="loader collapse" id="loader-connect"><img class="throbber" src="assets/img/xrp-loader-96.png"></div> | ||
|
||
{% loading-icon /%} | ||
|
||
</div> | ||
{{ end_step() }} | ||
|
||
{% /interactive-block %} |
16 changes: 5 additions & 11 deletions
16
content/@i18n/ja/_snippets/interactive-tutorials/generate-step.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,9 @@ | ||
{% if use_network is undefined or use_network == "Testnet" %} | ||
{% set use_network = "Testnet" %} | ||
{% set faucet_url = "https://faucet.altnet.rippletest.net/accounts" %} | ||
{% elif use_network == "Devnet" %} | ||
{% set faucet_url = "https://faucet.devnet.rippletest.net/accounts" %} | ||
{# No faucet for Mainnet! #} | ||
{% endif %} | ||
{% interactive-block label=default($label, "Generate") steps=$frontmatter.steps %} | ||
|
||
{{ start_step("Generate") }} | ||
<button id="generate-creds-button" class="btn btn-primary" data-fauceturl="{{faucet_url}}">{{use_network}}の暗号鍵を作成する</button> | ||
<div class="loader collapse"><img class="throbber" src="assets/img/xrp-loader-96.png">暗号鍵を作成しています…</div> | ||
<button id="generate-creds-button" class="btn btn-primary" data-fauceturl="https://faucet.altnet.rippletest.net/accounts">Testnetの暗号鍵を作成する</button> | ||
{% loading-icon message="暗号鍵を作成しています…" /%} | ||
<div class="output-area"></div> | ||
{{ end_step() }} | ||
|
||
{% /interactive-block %} | ||
|
||
**注意:** Rippleは[TestnetとDevnet](../../concepts/networks-and-servers/parallel-networks.md)をテストの目的でのみ運用しており、その状態とすべての残高を定期的にリセットしています。予防措置として、Testnet、DevnetとMainnetで同じアドレスを使用**しない**ことをお勧めします。 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.