Skip to content
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

chore(dev): dev setup info page #686

Merged
merged 7 commits into from
Oct 31, 2023
Prev Previous commit
ui(dev): cleanup dev setup page and color link in Footer
  • Loading branch information
theborakompanioni committed Oct 24, 2023
commit c83461f6cfa0badff7df52d1f83a307b8b16effd
29 changes: 14 additions & 15 deletions src/components/DevSetupPage.tsx
Original file line number Diff line number Diff line change
@@ -1,32 +1,31 @@
import { Link } from 'react-router-dom'
import Sprite from './Sprite'
import PageTitle from './PageTitle'
import { Link } from 'react-router-dom'
import { routes } from '../constants/routes'

const LINK_JM_REGTEST_JOINMARKET2 = 'http://localhost:29080'
const LINK_JM_REGTEST_JOINMARKET2_AUTH = {
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 = {
user: 'joinmarket',
password: 'joinmarket',
}
const LINK_JM_REGTEST_RPC_TERMINAL = 'http://localhost:3002/rpc-terminal'
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 className="">
<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: <code>Satoshi</code>
Name: <span className="font-monospace">Satoshi</span>
<br />
Password: <code>test</code>
Password: <span className="font-monospace">test</span>
</div>
</div>
</div>
Expand Down Expand Up @@ -57,9 +56,9 @@ export default function DevSetupPage() {
Basic Authentication
<br />
<small>
User: <code>{LINK_JM_REGTEST_JOINMARKET2_AUTH.user}</code>
User: <span className="font-monospace">{LINK_JM_REGTEST_JOINMARKET2_AUTH.user}</span>
<br />
Password: <code>{LINK_JM_REGTEST_JOINMARKET2_AUTH.password}</code>
Password: <span className="font-monospace">{LINK_JM_REGTEST_JOINMARKET2_AUTH.password}</span>
</small>
</div>
<div className="d-flex align-items-center">
Expand Down Expand Up @@ -87,9 +86,9 @@ export default function DevSetupPage() {
Basic Authentication
<br />
<small>
User: <code>{LINK_JM_REGTEST_EXPLORER_AUTH.user}</code>
User: <span className="font-monospace">{LINK_JM_REGTEST_EXPLORER_AUTH.user}</span>
<br />
Password: <code>{LINK_JM_REGTEST_EXPLORER_AUTH.password}</code>
Password: <span className="font-monospace">{LINK_JM_REGTEST_EXPLORER_AUTH.password}</span>
</small>
</div>
</div>
Expand Down
13 changes: 5 additions & 8 deletions src/components/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -105,14 +105,11 @@ export default function Footer() {
</div>
<div className="d-flex flex-1 order-2 justify-content-end align-items-center gap-1">
{isDebugFeatureEnabled('devSetupPage') && (
<>
<div className="d-none d-md-block text-small text-start text-secondary mx-1">
<Link className="text-secondary" to={routes.__devSetup}>
Dev Setup
</Link>
</div>
<div className="d-none d-md-block text-secondary">|</div>
</>
<div className="d-none d-md-block text-small text-start mx-1">
<Link className="text-warning" to={routes.__devSetup}>
Dev Setup
</Link>
</div>
)}
<div className="text-small text-start text-secondary mx-1">
<a
Expand Down