From 5691ecba5cc899dd0f88cd6702c23b9f4dca2d3d Mon Sep 17 00:00:00 2001 From: Javier Bullrich Date: Mon, 24 Jun 2024 09:38:28 +0200 Subject: [PATCH] Set paseo as default network (#426) Resolves #424 I also added a new header text as requested by @lovelaced --- client/src/lib/components/Card.svelte | 4 +++- client/src/lib/components/Faucet.svelte | 3 ++- client/src/lib/utils/networkData.ts | 4 ++-- client/src/routes/+page.svelte | 8 +++++--- client/src/routes/{paseo => rococo}/+page.svelte | 4 ++-- client/tests/paseo.test.ts | 2 +- client/tests/rococo.test.ts | 2 +- client/tests/switch.test.ts | 3 ++- 8 files changed, 18 insertions(+), 12 deletions(-) rename client/src/routes/{paseo => rococo}/+page.svelte (73%) diff --git a/client/src/lib/components/Card.svelte b/client/src/lib/components/Card.svelte index 8e80321d..ed360ab1 100644 --- a/client/src/lib/components/Card.svelte +++ b/client/src/lib/components/Card.svelte @@ -1,13 +1,15 @@

{$testnet.networkName} Faucet

- Get {$testnet.currency} tokens for Polkadot's {$testnet.networkName} testnet and its parachains. + {title}

diff --git a/client/src/lib/components/Faucet.svelte b/client/src/lib/components/Faucet.svelte index 49ffca45..453244e5 100644 --- a/client/src/lib/components/Faucet.svelte +++ b/client/src/lib/components/Faucet.svelte @@ -14,6 +14,7 @@ export let faq: string; export let network: NetworkData; + export let title: string = `Get ${network.currency} tokens for Polkadot's ${network.networkName} testnet and its parachains.`; let parachain: number; onMount(() => { @@ -29,7 +30,7 @@
- + {#if !$operation}
{:else} diff --git a/client/src/lib/utils/networkData.ts b/client/src/lib/utils/networkData.ts index bf0824ac..59cc87cb 100644 --- a/client/src/lib/utils/networkData.ts +++ b/client/src/lib/utils/networkData.ts @@ -60,8 +60,8 @@ export const Paseo: NetworkData = { }; export const Networks: { network: NetworkData; url: string }[] = [ - { network: Rococo, url: (base as string) || "/" }, - { network: Paseo, url: `${base as string}/paseo` }, + { network: Paseo, url: (base as string) || "/" }, + { network: Rococo, url: `${base as string}/rococo` }, { network: Westend, url: `${base as string}/westend` }, ]; diff --git a/client/src/routes/+page.svelte b/client/src/routes/+page.svelte index f56a51f4..aa80044b 100644 --- a/client/src/routes/+page.svelte +++ b/client/src/routes/+page.svelte @@ -1,12 +1,14 @@ - + diff --git a/client/src/routes/paseo/+page.svelte b/client/src/routes/rococo/+page.svelte similarity index 73% rename from client/src/routes/paseo/+page.svelte rename to client/src/routes/rococo/+page.svelte index 467601af..f56a51f4 100644 --- a/client/src/routes/paseo/+page.svelte +++ b/client/src/routes/rococo/+page.svelte @@ -1,9 +1,9 @@