-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(dev): dev setup info page (#686)
- Loading branch information
1 parent
adfac29
commit 26bb17b
Showing
10 changed files
with
182 additions
and
22 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,111 @@ | ||
import { Link } from 'react-router-dom' | ||
import Sprite from './Sprite' | ||
import PageTitle from './PageTitle' | ||
import { routes } from '../constants/routes' | ||
|
||
const DEFAULT_BASIC_AUTH = { | ||
user: 'joinmarket', | ||
password: 'joinmarket', | ||
} | ||
|
||
const LINK_JM_REGTEST_JOINMARKET2 = 'http://localhost:29080' | ||
const LINK_JM_REGTEST_JOINMARKET2_AUTH = DEFAULT_BASIC_AUTH | ||
const LINK_JM_REGTEST_JOINMARKET3 = 'http://localhost:30080' | ||
const LINK_JM_REGTEST_EXPLORER = 'http://localhost:3002' | ||
const LINK_JM_REGTEST_EXPLORER_AUTH = DEFAULT_BASIC_AUTH | ||
const LINK_JM_REGTEST_RPC_TERMINAL = `${LINK_JM_REGTEST_EXPLORER}/rpc-terminal` | ||
|
||
export default function DevSetupPage() { | ||
return ( | ||
<div> | ||
<PageTitle title="Development setup" subtitle="" /> | ||
<div className="d-flex flex-column gap-3"> | ||
<div className="mb-4"> | ||
<h5>Test Wallet</h5> | ||
<div className="ms-3 my-2"> | ||
Name: <span className="font-monospace">Satoshi</span> | ||
<br /> | ||
Password: <span className="font-monospace">test</span> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<div className="d-flex flex-column gap-3"> | ||
<div className="mb-4"> | ||
<h5>Links</h5> | ||
<div className="my-2"> | ||
<Link className="link-dark" to={routes.__errorExample}> | ||
Error Example Page | ||
</Link> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<div className="mb-4"> | ||
<h5>Jam Instances</h5> | ||
<div> | ||
<div className="d-flex align-items-center"> | ||
<Sprite symbol="logo" width="24" height="24" className="me-2" /> | ||
<a href={LINK_JM_REGTEST_JOINMARKET2} target="_blank" rel="noopener noreferrer" className="link-dark"> | ||
jm_regtest_joinmarket2 ({LINK_JM_REGTEST_JOINMARKET2}) | ||
</a> | ||
<span className="badge rounded-pill bg-primary ms-2">secondary</span> | ||
</div> | ||
|
||
<div className="ms-5 my-2"> | ||
Basic Authentication | ||
<br /> | ||
<small> | ||
User: <span className="font-monospace">{LINK_JM_REGTEST_JOINMARKET2_AUTH.user}</span> | ||
<br /> | ||
Password: <span className="font-monospace">{LINK_JM_REGTEST_JOINMARKET2_AUTH.password}</span> | ||
</small> | ||
</div> | ||
<div className="d-flex align-items-center"> | ||
<Sprite symbol="logo" width="24" height="24" className="me-2" /> | ||
<a href={LINK_JM_REGTEST_JOINMARKET3} target="_blank" rel="noopener noreferrer" className="link-dark"> | ||
jm_regtest_joinmarket3 ({LINK_JM_REGTEST_JOINMARKET3}) | ||
</a> | ||
<span className="badge rounded-pill bg-success ms-2">tertiary</span> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<div className="mb-4"> | ||
<h5>Block Explorer</h5> | ||
<div> | ||
{' '} | ||
<div className="d-flex align-items-center"> | ||
<Sprite symbol="block" width="24" height="24" className="me-2" /> | ||
|
||
<a href={LINK_JM_REGTEST_EXPLORER} target="_blank" rel="noopener noreferrer" className="link-dark"> | ||
jm_regtest_explorer ({LINK_JM_REGTEST_EXPLORER}) | ||
</a> | ||
</div> | ||
<div className="ms-5 my-2"> | ||
Basic Authentication | ||
<br /> | ||
<small> | ||
User: <span className="font-monospace">{LINK_JM_REGTEST_EXPLORER_AUTH.user}</span> | ||
<br /> | ||
Password: <span className="font-monospace">{LINK_JM_REGTEST_EXPLORER_AUTH.password}</span> | ||
</small> | ||
</div> | ||
</div> | ||
<div> | ||
<div className="d-flex align-items-center"> | ||
<Sprite symbol="console" width="24" height="24" className="me-2" /> | ||
|
||
<a href={LINK_JM_REGTEST_RPC_TERMINAL} target="_blank" rel="noopener noreferrer" className="link-dark"> | ||
Regtest RPC Terminal ({LINK_JM_REGTEST_RPC_TERMINAL}) | ||
</a> | ||
</div> | ||
<div className="ms-5 my-2"> | ||
Mine a block, e.g.: | ||
<pre>generatetoaddress 1 bcrt1qrnz0thqslhxu86th069r9j6y7ldkgs2tzgf5wx</pre> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
) | ||
} |
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
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