aboutsummaryrefslogtreecommitdiffstats
path: root/src/routes
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2023-12-20 15:06:00 -0800
committerAdam Soltys <[email protected]>2023-12-20 15:06:00 -0800
commitb419ccffd45add72259f4abe548ad29b61309488 (patch)
tree42b99083b5c70ca14727a16010fd9caa7562e3bc /src/routes
parent4cb3b467486456b53c956da95cdc0d17c3e6ff24 (diff)
downloadcoinos-ui-b419ccffd45add72259f4abe548ad29b61309488.tar.gz
coinos-ui-b419ccffd45add72259f4abe548ad29b61309488.zip
prettier
Diffstat (limited to 'src/routes')
-rw-r--r--src/routes/(app)/+error.svelte3
-rw-r--r--src/routes/(app)/[username]/(profile)/request/+page.svelte3
-rw-r--r--src/routes/(app)/[username]/card/[serial]/+page.svelte6
-rw-r--r--src/routes/(app)/[username]/funds/+page.svelte3
-rw-r--r--src/routes/(app)/[username]/generate/+page.svelte4
-rw-r--r--src/routes/(app)/[username]/invoice/[id]/+layout.server.js8
-rw-r--r--src/routes/(app)/[username]/invoice/[id]/+page.svelte24
-rw-r--r--src/routes/(app)/[username]/invoice/[id]/paid/+page.svelte12
-rw-r--r--src/routes/(app)/[username]/receive/[...param]/+page.svelte3
-rw-r--r--src/routes/(app)/[username]/settings/[...tab]/+page.svelte3
-rw-r--r--src/routes/(app)/[username]/settings/[...tab]/_account.svelte1
-rw-r--r--src/routes/(app)/[username]/settings/[...tab]/_pos.svelte6
-rw-r--r--src/routes/(app)/[username]/settings/[...tab]/_security.svelte6
-rw-r--r--src/routes/(app)/[username]/settings/[...tab]/_shopify.svelte4
-rw-r--r--src/routes/(app)/buy/+page.svelte11
-rw-r--r--src/routes/(app)/forgot/+page.svelte9
-rw-r--r--src/routes/(app)/fund/[id]/+page.svelte12
-rw-r--r--src/routes/(app)/fund/[id]/withdraw/+page.svelte3
-rw-r--r--src/routes/(app)/launch/+page.svelte7
-rw-r--r--src/routes/(app)/launch/purchase/+page.svelte17
-rw-r--r--src/routes/(app)/launch/purchase/card/+page.server.js3
-rw-r--r--src/routes/(app)/launch/purchase/card/+page.svelte8
-rw-r--r--src/routes/(app)/launch/thanks/[asset]/+page.svelte7
-rw-r--r--src/routes/(app)/launch/ticket/+page.svelte7
-rw-r--r--src/routes/(app)/login/+page.svelte13
-rw-r--r--src/routes/(app)/register/+page.server.js11
-rw-r--r--src/routes/(app)/register/+page.svelte24
-rw-r--r--src/routes/(app)/reset/[code]/+page.svelte12
-rw-r--r--src/routes/(app)/scan/+page.svelte5
-rw-r--r--src/routes/(app)/send/[...text]/+page.svelte12
-rw-r--r--src/routes/(app)/send/bitcoin/[address]/+page.svelte6
-rw-r--r--src/routes/(app)/send/bitcoin/[address]/[amount]/[...feeRate]/+page.server.js2
-rw-r--r--src/routes/(app)/send/bitcoin/[address]/[amount]/[...feeRate]/+page.svelte9
-rw-r--r--src/routes/(app)/send/fund/[name]/[...amount]/+page.svelte3
-rw-r--r--src/routes/(app)/send/invoice/[id]/+page.svelte6
-rw-r--r--src/routes/(app)/send/lightning/[payreq]/+page.svelte10
-rw-r--r--src/routes/(app)/support/+page.svelte3
-rw-r--r--src/routes/(static)/docs/+page.svelte1
-rw-r--r--src/routes/+page.svelte2
39 files changed, 176 insertions, 113 deletions
diff --git a/src/routes/(app)/+error.svelte b/src/routes/(app)/+error.svelte
index b5a5e139..6ce7979c 100644
--- a/src/routes/(app)/+error.svelte
+++ b/src/routes/(app)/+error.svelte
@@ -27,7 +27,8 @@
<div class="flex justify-center py-24">
<a href={link}>
<button
- class="bg-black text-white border rounded-full px-8 py-4 font-bold hover:opacity-80 text-xl">
+ class="bg-black text-white border rounded-full px-8 py-4 font-bold hover:opacity-80 text-xl"
+ >
Back
</button>
</a>
diff --git a/src/routes/(app)/[username]/(profile)/request/+page.svelte b/src/routes/(app)/[username]/(profile)/request/+page.svelte
index 373a1302..a07ee914 100644
--- a/src/routes/(app)/[username]/(profile)/request/+page.svelte
+++ b/src/routes/(app)/[username]/(profile)/request/+page.svelte
@@ -26,7 +26,8 @@
<div class="w-full flex">
<button
type="submit"
- class="bg-black text-white border rounded-full px-6 py-2 font-bold mx-auto">
+ class="bg-black text-white border rounded-full px-6 py-2 font-bold mx-auto"
+ >
{$t("payments.submit")}
</button>
</div>
diff --git a/src/routes/(app)/[username]/card/[serial]/+page.svelte b/src/routes/(app)/[username]/card/[serial]/+page.svelte
index 1792b443..1d11ebee 100644
--- a/src/routes/(app)/[username]/card/[serial]/+page.svelte
+++ b/src/routes/(app)/[username]/card/[serial]/+page.svelte
@@ -13,13 +13,15 @@
<div class="flex justify-center">
<a href={`/send/pot/${serial}`}>
<button
- class="rounded-full border py-3 px-6 font-bold hover:opacity-80 flex w-60 bg-black text-white justify-center gap-2">
+ class="rounded-full border py-3 px-6 font-bold hover:opacity-80 flex w-60 bg-black text-white justify-center gap-2"
+ >
<svg
xmlns="http://www.w3.org/2000/svg"
class="invert text-black peer-placeholder-shown:text-gray-300 h-6 w-6 my-auto"
fill="none"
viewBox="0 0 24 24"
- stroke="currentColor">
+ stroke="currentColor"
+ >
<path
stroke-linecap="round"
stroke-linejoin="round"
diff --git a/src/routes/(app)/[username]/funds/+page.svelte b/src/routes/(app)/[username]/funds/+page.svelte
index edbe22a5..25686e86 100644
--- a/src/routes/(app)/[username]/funds/+page.svelte
+++ b/src/routes/(app)/[username]/funds/+page.svelte
@@ -37,7 +37,8 @@
</div>
<button
- class="ml-auto rounded-full border py-2 px-4 w-36 hover:opacity-80 flex mx-auto">
+ class="ml-auto rounded-full border py-2 px-4 w-36 hover:opacity-80 flex mx-auto"
+ >
<Icon icon="plus" style="opacity-50 mr-2 my-auto" />
<div class="my-auto">{$t("payments.create")}</div>
</button>
diff --git a/src/routes/(app)/[username]/generate/+page.svelte b/src/routes/(app)/[username]/generate/+page.svelte
index 0c83fad4..b9b077a3 100644
--- a/src/routes/(app)/[username]/generate/+page.svelte
+++ b/src/routes/(app)/[username]/generate/+page.svelte
@@ -62,7 +62,9 @@
{/if}
<div class="container px-4 text-center mx-auto">
- <h1 class="text-3xl md:text-4xl font-bold mb-6">Generating new account keys</h1>
+ <h1 class="text-3xl md:text-4xl font-bold mb-6">
+ Generating new account keys
+ </h1>
<div class="flex w-full py-5 max-w-[200px] mx-auto bg-black rounded-2xl">
<Spinner />
</div>
diff --git a/src/routes/(app)/[username]/invoice/[id]/+layout.server.js b/src/routes/(app)/[username]/invoice/[id]/+layout.server.js
index b887d407..c69da78a 100644
--- a/src/routes/(app)/[username]/invoice/[id]/+layout.server.js
+++ b/src/routes/(app)/[username]/invoice/[id]/+layout.server.js
@@ -27,10 +27,10 @@ export async function load({ depends, params, url, parent }) {
(amount > 0 && (pending >= amount || received >= amount));
if (paid && !url.pathname.endsWith("paid")) {
redirect(
- 307,
- `/${params.username}/invoice/${id}/paid` +
- (options ? "?options=true" : "")
- );
+ 307,
+ `/${params.username}/invoice/${id}/paid` +
+ (options ? "?options=true" : "")
+ );
}
let sm = Qr.drawImg(invoice.text || "", { size: 300 });
diff --git a/src/routes/(app)/[username]/invoice/[id]/+page.svelte b/src/routes/(app)/[username]/invoice/[id]/+page.svelte
index 13c75fca..0ff1c21c 100644
--- a/src/routes/(app)/[username]/invoice/[id]/+page.svelte
+++ b/src/routes/(app)/[username]/invoice/[id]/+page.svelte
@@ -130,13 +130,17 @@
class="rounded-full border py-2 px-4 font-bold hover:opacity-80 w-full"
class:bg-black={type === types.lightning}
class:text-white={type === types.lightning}
- on:click={toggleType}> ⚡️ Lightning </button>
+ on:click={toggleType}
+ >
+ ⚡️ Lightning
+ </button>
<button
class="rounded-full border py-2 px-4 font-bold hover:opacity-80 w-full flex justify-center"
class:bg-black={type === types.bitcoin}
class:text-white={type === types.bitcoin}
- on:click={toggleType}>
+ on:click={toggleType}
+ >
<img
src="/images/bitcoin.svg"
class="my-auto w-8 border-4 border-transparent"
@@ -151,7 +155,8 @@
<a
href={invoice.type === "bitcoin"
? invoice.text
- : "lightning:" + invoice.text}>
+ : "lightning:" + invoice.text}
+ >
<div class="relative flex">
<div class="flex mx-auto w-[360px] h-[360px]">
<img
@@ -203,7 +208,8 @@
<div class="w-full flex justify-center gap-2 flex-wrap">
<a href={link} class="w-full md:w-auto">
<button
- class="w-full md:w-auto flex justify-center rounded-full border py-3 px-5 hover:opacity-80">
+ class="w-full md:w-auto flex justify-center rounded-full border py-3 px-5 hover:opacity-80"
+ >
<Icon icon="mobile" style="mr-1 w-6" />
<div class="text-secondary">{$t("payments.openLink")}</div>
</button>
@@ -211,18 +217,16 @@
<button
class="flex rounded-full justify-center border py-3 px-5 hover:opacity-80 w-full md:w-auto"
- on:click={() => copy(txt)}>
-
-
+ on:click={() => copy(txt)}
+ >
<Icon icon="copy" style="mr-1" />
<div class="text-secondary">{$t("payments.copyText")}</div></button
>
<button
class="w-full md:w-auto flex justify-center rounded-full border py-3 px-5 hover:opacity-80"
- on:click={() => (showQr = !showQr)}>
-
-
+ on:click={() => (showQr = !showQr)}
+ >
<Icon icon="qr" style="mr-1 invert" />
<div class="text-secondary">
{showQr ? $t("payments.hide") : $t("payments.show")}
diff --git a/src/routes/(app)/[username]/invoice/[id]/paid/+page.svelte b/src/routes/(app)/[username]/invoice/[id]/paid/+page.svelte
index bc974b9a..9740dc92 100644
--- a/src/routes/(app)/[username]/invoice/[id]/paid/+page.svelte
+++ b/src/routes/(app)/[username]/invoice/[id]/paid/+page.svelte
@@ -9,16 +9,8 @@
export let data;
let amount, currency, rate, received, pending, tip, user, id;
$: data &&
- ({
- amount,
- currency,
- rate,
- received,
- pending,
- tip,
- user,
- id,
- } = data.invoice);
+ ({ amount, currency, rate, received, pending, tip, user, id } =
+ data.invoice);
toast.pop(0);
</script>
diff --git a/src/routes/(app)/[username]/receive/[...param]/+page.svelte b/src/routes/(app)/[username]/receive/[...param]/+page.svelte
index 37ab57f0..6d8939a9 100644
--- a/src/routes/(app)/[username]/receive/[...param]/+page.svelte
+++ b/src/routes/(app)/[username]/receive/[...param]/+page.svelte
@@ -49,7 +49,8 @@
bind:this={submit}
type="submit"
class="bg-black text-white rounded-xl w-full h-[48px] flex justify-center items-center font-semibold
- opacity-100 hover:opacity-80">
+ opacity-100 hover:opacity-80"
+ >
{$t("payments.next")}
</button>
</div>
diff --git a/src/routes/(app)/[username]/settings/[...tab]/+page.svelte b/src/routes/(app)/[username]/settings/[...tab]/+page.svelte
index 714ed8db..54a2d71c 100644
--- a/src/routes/(app)/[username]/settings/[...tab]/+page.svelte
+++ b/src/routes/(app)/[username]/settings/[...tab]/+page.svelte
@@ -223,7 +223,8 @@
bind:this={submit}
type="submit"
class="border-2 border-black rounded-xl font-semibold mx-auto py-3 w-40 hover:opacity-80"
- class:bg-black={submitting}>
+ class:bg-black={submitting}
+ >
{#if submitting}
<Spinner />
{:else}
diff --git a/src/routes/(app)/[username]/settings/[...tab]/_account.svelte b/src/routes/(app)/[username]/settings/[...tab]/_account.svelte
index 773485f0..15ee7b0c 100644
--- a/src/routes/(app)/[username]/settings/[...tab]/_account.svelte
+++ b/src/routes/(app)/[username]/settings/[...tab]/_account.svelte
@@ -109,7 +109,6 @@
</div>
</div>
-
<div>
<span class="font-bold">{$t("user.settings.profileImage")}</span>
diff --git a/src/routes/(app)/[username]/settings/[...tab]/_pos.svelte b/src/routes/(app)/[username]/settings/[...tab]/_pos.svelte
index 0e4301c4..539cfd5e 100644
--- a/src/routes/(app)/[username]/settings/[...tab]/_pos.svelte
+++ b/src/routes/(app)/[username]/settings/[...tab]/_pos.svelte
@@ -25,7 +25,8 @@
<select
name="currency"
class="select-styles block py-3 w-full"
- value={user.currency}>
+ value={user.currency}
+ >
{#each fiats as fiat}
<option value={fiat}>{fiat}</option>
{/each}
@@ -67,7 +68,8 @@
<a href="./shopify">
<button
type="button"
- class="flex rounded-full border py-2 px-4 font-bold hover:opacity-80 w-full gap-2 my-5 justify-center">
+ class="flex rounded-full border py-2 px-4 font-bold hover:opacity-80 w-full gap-2 my-5 justify-center"
+ >
<img src="/icons/shopify.svg" class="w-8" />
<div class="my-auto">Shopify Integration</div>
</button>
diff --git a/src/routes/(app)/[username]/settings/[...tab]/_security.svelte b/src/routes/(app)/[username]/settings/[...tab]/_security.svelte
index 3aa7012e..38bf726c 100644
--- a/src/routes/(app)/[username]/settings/[...tab]/_security.svelte
+++ b/src/routes/(app)/[username]/settings/[...tab]/_security.svelte
@@ -167,7 +167,8 @@
type="button"
on:click={togglePassword}
on:keydown={togglePassword}
- class="absolute right-5 top-11">
+ class="absolute right-5 top-11"
+ >
<Icon icon={revealPassword ? "eye" : "eye-off"} />
</button>
</div>
@@ -211,7 +212,8 @@
<select
name="locktime"
class="select-styles block py-3 w-full"
- value={parseInt(user.locktime)}>
+ value={parseInt(user.locktime)}
+ >
<option value={5 * 60}>5 {$t("user.settings.minutes")}</option>
<option value={10 * 60}>10 {$t("user.settings.minutes")}</option>
<option value={30 * 60}>30 {$t("user.settings.minutes")}</option>
diff --git a/src/routes/(app)/[username]/settings/[...tab]/_shopify.svelte b/src/routes/(app)/[username]/settings/[...tab]/_shopify.svelte
index 870803fb..0266fa9c 100644
--- a/src/routes/(app)/[username]/settings/[...tab]/_shopify.svelte
+++ b/src/routes/(app)/[username]/settings/[...tab]/_shopify.svelte
@@ -28,7 +28,9 @@
<div class="flex mb-2">
<div
class="text-gray-600 p-4 my-auto bg-gray-100 border rounded-l-2xl border-r-0 pr-1"
- >admin.shopify.com/store/</div>
+ >
+ admin.shopify.com/store/
+ </div>
<input
type="text"
name="shopifyStore"
diff --git a/src/routes/(app)/buy/+page.svelte b/src/routes/(app)/buy/+page.svelte
index affb77ee..2b81b7a8 100644
--- a/src/routes/(app)/buy/+page.svelte
+++ b/src/routes/(app)/buy/+page.svelte
@@ -60,8 +60,7 @@
/>
<span
class="absolute bottom-[9px] left-0 translate-x-1/2 w-6 text-black peer-placeholder-shown:text-gray-300
- "
- >$</span
+ ">$</span
>
</label>
@@ -94,9 +93,8 @@
CVC/CVV
<span class="relative group">
<span
- class="hidden group-hover:flex justify-center items-center px-2 py-1 text-xs absolute -right-2 transform translate-x-full -translate-y-1/2 w-max top-1/2 bg-black text-white">
-
-
+ class="hidden group-hover:flex justify-center items-center px-2 py-1 text-xs absolute -right-2 transform translate-x-full -translate-y-1/2 w-max top-1/2 bg-black text-white"
+ >
3-digit number on the back of your card</span
>
</span>
@@ -115,7 +113,8 @@
<button
class="bg-black text-white border rounded-full px-8 py-4 font-bold hover:opacity-80 mx-auto text-xl"
type="submit"
- disabled={loading}>
+ disabled={loading}
+ >
{#if loading}
<Spinner />
{:else}
diff --git a/src/routes/(app)/forgot/+page.svelte b/src/routes/(app)/forgot/+page.svelte
index 9490d531..378262cc 100644
--- a/src/routes/(app)/forgot/+page.svelte
+++ b/src/routes/(app)/forgot/+page.svelte
@@ -32,13 +32,15 @@
{#if form?.success}
<div class="text-secondary">
- A password reset link will be sent to your email if we have it on file.
+ A password reset link will be sent to your email if we have it on
+ file.
</div>
<div class="flex w-full">
<a
href="/login"
- class="bg-black text-white w-full rounded-2xl p-4 font-semibold hover:opacity-80 text-center">
+ class="bg-black text-white w-full rounded-2xl p-4 font-semibold hover:opacity-80 text-center"
+ >
Continue
</a>
</div>
@@ -60,7 +62,8 @@
<button
type="submit"
class="bg-black text-white w-full rounded-2xl p-4 font-semibold hover:opacity-80"
- disabled={loading}>
+ disabled={loading}
+ >
{#if loading}
<Spinner />
{:else}
diff --git a/src/routes/(app)/fund/[id]/+page.svelte b/src/routes/(app)/fund/[id]/+page.svelte
index ebb1a517..b81e2917 100644
--- a/src/routes/(app)/fund/[id]/+page.svelte
+++ b/src/routes/(app)/fund/[id]/+page.svelte
@@ -62,7 +62,8 @@
<div class="grow">
<a href={`/send/fund/${id}`}>
<button
- class="rounded-full border py-3 px-2 font-bold hover:opacity-80 flex gap-1 w-full justify-center">
+ class="rounded-full border py-3 px-2 font-bold hover:opacity-80 flex gap-1 w-full justify-center"
+ >
<Icon icon="plus" />
{$t("payments.addFunds")}
</button>
@@ -71,7 +72,8 @@
<div class="grow">
<a href={`/fund/${id}/withdraw`}>
<button
- class="rounded-full border py-3 px-2 font-bold hover:opacity-80 flex gap-1 w-full justify-center">
+ class="rounded-full border py-3 px-2 font-bold hover:opacity-80 flex gap-1 w-full justify-center"
+ >
<Icon icon="minus" style="rotate-180" />
{$t("payments.takeFunds")}
</button>
@@ -81,13 +83,15 @@
<div class="flex gap-2" data-sveltekit-prefetch="off">
<button
class="rounded-full border py-3 px-2 font-bold hover:opacity-80 flex gap-1 w-full justify-center"
- on:click={toggle}>
+ on:click={toggle}
+ >
<Icon icon="qr" style="invert" />
{show ? $t("payments.hide") : $t("payments.show")} QR
</button>
<button
class="rounded-full border py-3 px-2 font-bold hover:opacity-80 flex gap-1 w-full justify-center"
- on:click={() => copy($page.url.host + $page.url.pathname)}>
+ on:click={() => copy($page.url.host + $page.url.pathname)}
+ >
<Icon icon="copy" style="w-6" />
{$t("payments.copyLink")}
</button>
diff --git a/src/routes/(app)/fund/[id]/withdraw/+page.svelte b/src/routes/(app)/fund/[id]/withdraw/+page.svelte
index e7c1d852..7af07e38 100644
--- a/src/routes/(app)/fund/[id]/withdraw/+page.svelte
+++ b/src/routes/(app)/fund/[id]/withdraw/+page.svelte
@@ -47,7 +47,8 @@
<div class="flex w-full">
<button
type="submit"
- class="opacity-100 hover:opacity-80'} rounded-2xl border py-3 font-bold mx-auto mt-2 bg-black text-white px-4 w-24">
+ class="opacity-100 hover:opacity-80'} rounded-2xl border py-3 font-bold mx-auto mt-2 bg-black text-white px-4 w-24"
+ >
{#if loading}
<Spinner />
{:else}
diff --git a/src/routes/(app)/launch/+page.svelte b/src/routes/(app)/launch/+page.svelte
index cb43e63e..ef02ae0f 100644
--- a/src/routes/(app)/launch/+page.svelte
+++ b/src/routes/(app)/launch/+page.svelte
@@ -58,7 +58,9 @@
<div class="p-4 font-normal text-gray-800 md:w-3/4 space-y-5">
<h1
class="mb-4 text-4xl font-bold leading-none tracking-tight text-gray-800"
- >Launch Party!</h1>
+ >
+ Launch Party!
+ </h1>
<p class="leading-normal mb-2">
Come join us at our launch party celebrating our new design and 10
@@ -104,7 +106,8 @@
<div class="flex w-full my-8">
<a href={link} class="mx-auto">
<button
- class="bg-white text-black border rounded-full px-8 py-4 font-bold hover:opacity-80 text-2xl">
+ class="bg-white text-black border rounded-full px-8 py-4 font-bold hover:opacity-80 text-2xl"
+ >
{text}
</button>
</a>
diff --git a/src/routes/(app)/launch/purchase/+page.svelte b/src/routes/(app)/launch/purchase/+page.svelte
index 3af3b186..49a51973 100644
--- a/src/routes/(app)/launch/purchase/+page.svelte
+++ b/src/routes/(app)/launch/purchase/+page.svelte
@@ -21,7 +21,9 @@
<div class="font-normal text-gray-800 mx-auto mb-8 space-y-8">
<h1
class="mb-4 text-4xl font-bold leading-none tracking-tight text-gray-800 text-center"
- >Purchase Ticket</h1>
+ >
+ Purchase Ticket
+ </h1>
<img
src={`/tickets/${(ticket + 1).toString().padStart(2, "0")}.png`}
@@ -35,7 +37,8 @@
<div class="w-full flex">
<button
- class="bg-black text-white border rounded-full px-8 py-4 font-bold hover:opacity-80 mx-auto text-2xl">
+ class="bg-black text-white border rounded-full px-8 py-4 font-bold hover:opacity-80 mx-auto text-2xl"
+ >
Count me in
</button>
</div>
@@ -43,21 +46,25 @@
{:else}
<h1
class="mb-4 text-xl font-bold leading-none tracking-tight text-gray-800 text-center"
- >Payment Options</h1>
+ >
+ Payment Options
+ </h1>
<div class="flex justify-center gap-4">
<form action="?/lightning" method="POST">
<input type="hidden" name="currency" value={currency} />
<input type="hidden" name="username" value={username} />
<button
- class="border rounded-full px-8 py-4 font-bold hover:opacity-80 mx-auto text-2xl">
+ class="border rounded-full px-8 py-4 font-bold hover:opacity-80 mx-auto text-2xl"
+ >
Lightning
</button>
</form>
<a href={`purchase/card`}>
<button
- class="border rounded-full px-8 py-4 font-bold hover:opacity-80 mx-auto text-2xl">
+ class="border rounded-full px-8 py-4 font-bold hover:opacity-80 mx-auto text-2xl"
+ >
Credit Card
</button>
</a>
diff --git a/src/routes/(app)/launch/purchase/card/+page.server.js b/src/routes/(app)/launch/purchase/card/+page.server.js
index 416a66e4..9fb36b71 100644
--- a/src/routes/(app)/launch/purchase/card/+page.server.js
+++ b/src/routes/(app)/launch/purchase/card/+page.server.js
@@ -43,8 +43,7 @@ export const actions = {
method,
}).then((r) => r.json());
- if (status !== "succeeded")
- error(500, { message: "Card payment failed" });
+ if (status !== "succeeded") error(500, { message: "Card payment failed" });
let asset = await createTicket(cookies, form.get("username"));
redirect(307, `/launch/thanks/${asset}`);
diff --git a/src/routes/(app)/launch/purchase/card/+page.svelte b/src/routes/(app)/launch/purchase/card/+page.svelte
index d7ef830d..6d33c87f 100644
--- a/src/routes/(app)/launch/purchase/card/+page.svelte
+++ b/src/routes/(app)/launch/purchase/card/+page.svelte
@@ -48,9 +48,8 @@
CVC/CVV
<span class="relative group">
<span
- class="hidden group-hover:flex justify-center items-center px-2 py-1 text-xs absolute -right-2 transform translate-x-full -translate-y-1/2 w-max top-1/2 bg-black text-white">
-
-
+ class="hidden group-hover:flex justify-center items-center px-2 py-1 text-xs absolute -right-2 transform translate-x-full -translate-y-1/2 w-max top-1/2 bg-black text-white"
+ >
3-digit number on the back of your card</span
>
</span>
@@ -68,7 +67,8 @@
<button
class="bg-black text-white border rounded-full px-8 py-4 font-bold hover:opacity-80 mx-auto text-xl"
type="submit"
- disabled={loading}>
+ disabled={loading}
+ >
{#if loading}
<Spinner />
{:else}
diff --git a/src/routes/(app)/launch/thanks/[asset]/+page.svelte b/src/routes/(app)/launch/thanks/[asset]/+page.svelte
index 3d8fb844..9b37002b 100644
--- a/src/routes/(app)/launch/thanks/[asset]/+page.svelte
+++ b/src/routes/(app)/launch/thanks/[asset]/+page.svelte
@@ -12,7 +12,9 @@
<div class="font-normal text-gray-800 mx-auto mb-8 space-y-8">
<h1
class="mb-4 text-4xl font-bold leading-none tracking-tight text-gray-800 text-center"
- >Thanks!</h1>
+ >
+ Thanks!
+ </h1>
<p>We look forward to seeing you!</p>
</div>
@@ -20,7 +22,8 @@
<div class="w-full flex">
<a href="/launch/ticket" class="mx-auto">
<button
- class="bg-black text-white border rounded-full px-8 py-4 font-bold hover:opacity-80 text-2xl">
+ class="bg-black text-white border rounded-full px-8 py-4 font-bold hover:opacity-80 text-2xl"
+ >
Done
</button>
</a>
diff --git a/src/routes/(app)/launch/ticket/+page.svelte b/src/routes/(app)/launch/ticket/+page.svelte
index a4888727..6b16e804 100644
--- a/src/routes/(app)/launch/ticket/+page.svelte
+++ b/src/routes/(app)/launch/ticket/+page.svelte
@@ -7,7 +7,9 @@
<div class="font-normal text-gray-800 mx-auto mb-8 space-y-8">
<h1
class="mb-4 text-4xl font-bold leading-none tracking-tight text-gray-800 text-center"
- >Your Ticket</h1>
+ >
+ Your Ticket
+ </h1>
<p>
We've minted your ticket as an <a
@@ -25,7 +27,8 @@
<div class="w-full flex">
<a href="/" class="mx-auto">
<button
- class="bg-black text-white border rounded-full px-8 py-4 font-bold hover:opacity-80 text-2xl">
+ class="bg-black text-white border rounded-full px-8 py-4 font-bold hover:opacity-80 text-2xl"
+ >
Done
</button>
</a>
diff --git a/src/routes/(app)/login/+page.svelte b/src/routes/(app)/login/+page.svelte
index b729d70f..cebbf41c 100644
--- a/src/routes/(app)/login/+page.svelte
+++ b/src/routes/(app)/login/+page.svelte
@@ -145,15 +145,14 @@
<button
type="button"
on:click={() => (revealPassword = !revealPassword)}
- class="absolute right-5 top-10">
+ class="absolute right-5 top-10"
+ >
<Icon icon={revealPassword ? "eye" : "eye-off"} />
</button>
</div>
<div class="flex justify-end items-center">
- <a
- href="/forgot"
- class="underline underline-offset-4 text-black"
+ <a href="/forgot" class="underline underline-offset-4 text-black"
>{$t("login.forgotUserOrPassword")}</a
>
</div>
@@ -162,7 +161,8 @@
type="submit"
class="bg-black text-white w-full rounded-2xl p-4 font-semibold hover:opacity-80"
disabled={loading}
- bind:this={btn}>
+ bind:this={btn}
+ >
{#if loading}
<Spinner />
{:else}
@@ -175,7 +175,8 @@
{$t("login.haveAccount")}
<a
href={"/register"}
- class="block md:inline text-black underline underline-offset-4 hover:opacity-80">
+ class="block md:inline text-black underline underline-offset-4 hover:opacity-80"
+ >
{$t("login.register")}
</a>
</p>
diff --git a/src/routes/(app)/register/+page.server.js b/src/routes/(app)/register/+page.server.js
index cdb5736e..318f6b98 100644
--- a/src/routes/(app)/register/+page.server.js
+++ b/src/routes/(app)/register/+page.server.js
@@ -15,15 +15,8 @@ export const actions = {
let ip = request.headers.get("cf-connecting-ip");
let form = await fd(request);
- let {
- profile,
- username,
- password,
- cipher,
- salt,
- pubkey,
- loginRedirect,
- } = form;
+ let { profile, username, password, cipher, salt, pubkey, loginRedirect } =
+ form;
let user = { profile, username, password, cipher, salt, pubkey };
let error;
diff --git a/src/routes/(app)/register/+page.svelte b/src/routes/(app)/register/+page.svelte
index ef057fcf..5783059a 100644
--- a/src/routes/(app)/register/+page.svelte
+++ b/src/routes/(app)/register/+page.svelte
@@ -175,12 +175,14 @@
<div class="relative">
<button
class="absolute w-8 h-12 left-12 bg-white rounded top-12"
- on:click={decr}>
+ on:click={decr}
+ >
<Icon icon="chevron-left" style="w-8 " />
</button>
<div class="relative w-32 mx-auto" on:click={selectAvatar}>
<button
- class="w-32 h-32 rounded-full border-4 border-white overflow-hidden flex mx-auto relative">
+ class="w-32 h-32 rounded-full border-4 border-white overflow-hidden flex mx-auto relative"
+ >
<img
{src}
class="w-full h-full object-cover object-center overflow-hidden"
@@ -188,13 +190,15 @@
/>
</button>
<button
- class="absolute bg-white rounded-full p-2 mx-auto right-0 bottom-0 z-10 bg-opacity-80">
+ class="absolute bg-white rounded-full p-2 mx-auto right-0 bottom-0 z-10 bg-opacity-80"
+ >
<Icon icon="upload" style="w-8" />
</button>
</div>
<button
class="absolute w-8 h-12 right-12 bg-white rounded top-12"
- on:click={incr}>
+ on:click={incr}
+ >
<Icon icon="chevron-left" style="w-8 rotate-180" />
</button>
</div>
@@ -236,7 +240,8 @@
type="button"
on:click={refresh}
class="absolute right-0 top-4"
- tabindex="5">
+ tabindex="5"
+ >
<Icon icon="random" style="w-10 m-4" />
</button>
</div>
@@ -271,7 +276,8 @@
type="button"
tabindex="4"
on:click={() => (revealPassword = !revealPassword)}
- class="absolute right-0 top-4">
+ class="absolute right-0 top-4"
+ >
<Icon icon={revealPassword ? "eye" : "eye-off"} style="m-6" />
</button>
</div>
@@ -285,7 +291,8 @@
type="submit"
class="bg-black text-white w-full rounded-2xl p-4 font-semibold hover:opacity-80"
disabled={loading}
- bind:this={btn}>
+ bind:this={btn}
+ >
{#if loading}
<Spinner />
{:else}
@@ -298,7 +305,8 @@
{$t("login.haveAccount")}
<a
href={"/login"}
- class="block md:inline text-black underline underline-offset-4 hover:opacity-80">
+ class="block md:inline text-black underline underline-offset-4 hover:opacity-80"
+ >
{$t("login.signIn")}
</a>
</p>
diff --git a/src/routes/(app)/reset/[code]/+page.svelte b/src/routes/(app)/reset/[code]/+page.svelte
index 83e860ae..d93e8bdf 100644
--- a/src/routes/(app)/reset/[code]/+page.svelte
+++ b/src/routes/(app)/reset/[code]/+page.svelte
@@ -57,17 +57,23 @@
<button
type="button"
on:click={() => (revealPassword = !revealPassword)}
- class="absolute right-5 top-10">
+ class="absolute right-5 top-10"
+ >
<Icon icon={revealPassword ? "eye" : "eye-off"} />
</button>
</div>
- <div class="text-secondary">A new seed phrase will be generated for your account. You'll need to import your old seed phrase if you want to use the same nostr profile and savings account as before.</div>
+ <div class="text-secondary">
+ A new seed phrase will be generated for your account. You'll need to
+ import your old seed phrase if you want to use the same nostr profile
+ and savings account as before.
+ </div>
<button
type="submit"
class="bg-black text-white w-full rounded-2xl p-4 font-semibold hover:opacity-80"
- disabled={loading}>
+ disabled={loading}
+ >
{#if loading}
<Spinner />
{:else}
diff --git a/src/routes/(app)/scan/+page.svelte b/src/routes/(app)/scan/+page.svelte
index c02fc1c2..e23b9bb8 100644
--- a/src/routes/(app)/scan/+page.svelte
+++ b/src/routes/(app)/scan/+page.svelte
@@ -37,7 +37,10 @@
<div class="flex w-full mb-4">
<button
class="mx-auto border rounded-full px-6 py-2 font-bold hover:opacity-80"
- on:click={back}> Cancel </button>
+ on:click={back}
+ >
+ Cancel
+ </button>
</div>
<style>
diff --git a/src/routes/(app)/send/[...text]/+page.svelte b/src/routes/(app)/send/[...text]/+page.svelte
index b76e067e..8548964c 100644
--- a/src/routes/(app)/send/[...text]/+page.svelte
+++ b/src/routes/(app)/send/[...text]/+page.svelte
@@ -63,7 +63,8 @@
<a href={`/qr/${encodeURIComponent(text)}`}>
<button
type="button"
- class="flex border rounded-full px-6 py-2 font-bold hover:opacity-80 mr-1">
+ class="flex border rounded-full px-6 py-2 font-bold hover:opacity-80 mr-1"
+ >
<Icon icon="qr" style="mr-2 w-6 my-auto invert" />
<div class="my-auto">{$t("user.send.makeQR")}</div>
</button>
@@ -73,7 +74,8 @@
<a href="/scan">
<button
type="button"
- class="flex border rounded-full px-6 py-2 font-bold hover:opacity-80 mr-1">
+ class="flex border rounded-full px-6 py-2 font-bold hover:opacity-80 mr-1"
+ >
<Icon icon="camera" style="mr-2 w-6 my-auto" />
<div class="my-auto">{$t("user.send.scan")}</div>
</button>
@@ -82,7 +84,8 @@
<button
type="button"
class="flex border rounded-full px-6 py-2 font-bold hover:opacity-80 mr-1"
- on:click={paste}>
+ on:click={paste}
+ >
<Icon icon="paste" style="mr-2 w-6 my-auto" />
<div class="my-auto">{$t("user.send.paste")}</div>
</button>
@@ -92,7 +95,8 @@
type="submit"
class="{!text
? 'opacity-50'
- : 'opacity-100 hover:opacity-80'} bg-black text-white border rounded-full px-6 py-2 font-bold">
+ : 'opacity-100 hover:opacity-80'} bg-black text-white border rounded-full px-6 py-2 font-bold"
+ >
{$t("user.send.next")}
</button>
</div>
diff --git a/src/routes/(app)/send/bitcoin/[address]/+page.svelte b/src/routes/(app)/send/bitcoin/[address]/+page.svelte
index 93a5fe5a..2ed99823 100644
--- a/src/routes/(app)/send/bitcoin/[address]/+page.svelte
+++ b/src/routes/(app)/send/bitcoin/[address]/+page.svelte
@@ -24,7 +24,11 @@
};
</script>
-<button type="button" class="ml-5 md:ml-20 mt-5 md:mt-10 hover:opacity-80" on:click={back}>
+<button
+ type="button"
+ class="ml-5 md:ml-20 mt-5 md:mt-10 hover:opacity-80"
+ on:click={back}
+>
<Icon icon="arrow-left" style="w-10" />
</button>
diff --git a/src/routes/(app)/send/bitcoin/[address]/[amount]/[...feeRate]/+page.server.js b/src/routes/(app)/send/bitcoin/[address]/[amount]/[...feeRate]/+page.server.js
index 08741296..9af95188 100644
--- a/src/routes/(app)/send/bitcoin/[address]/[amount]/[...feeRate]/+page.server.js
+++ b/src/routes/(app)/send/bitcoin/[address]/[amount]/[...feeRate]/+page.server.js
@@ -20,7 +20,7 @@ export async function load({ params: { address, amount, feeRate }, cookies }) {
return { amount, address, fee, fees, feeRate, ourfee, hex };
} catch (e) {
throw redirect(307, `/send/bitcoin/${address}`);
- }
+ }
}
export const actions = {
diff --git a/src/routes/(app)/send/bitcoin/[address]/[amount]/[...feeRate]/+page.svelte b/src/routes/(app)/send/bitcoin/[address]/[amount]/[...feeRate]/+page.svelte
index 37ec4d14..263448de 100644
--- a/src/routes/(app)/send/bitcoin/[address]/[amount]/[...feeRate]/+page.svelte
+++ b/src/routes/(app)/send/bitcoin/[address]/[amount]/[...feeRate]/+page.svelte
@@ -42,10 +42,15 @@
};
let setFee = () => goto(`/send/bitcoin/${address}/${amount}/${feeRate}`);
- let goBack = () => goto(`/send/bitcoin/${address}`)
+ let goBack = () => goto(`/send/bitcoin/${address}`);
</script>
-<button type="button" class="ml-5 md:ml-20 mt-5 md:mt-10 hover:opacity-80" on:click={goBack}>
+<button
+ type="button"
+ class="ml-5 md:ml-20 mt-5 md:mt-10 hover:opacity-80"
+ data-sveltekit-preload-data="false"
+ on:click={goBack}
+>
<Icon icon="arrow-left" style="w-10" />
</button>
diff --git a/src/routes/(app)/send/fund/[name]/[...amount]/+page.svelte b/src/routes/(app)/send/fund/[name]/[...amount]/+page.svelte
index 240abc32..b6a4aa0c 100644
--- a/src/routes/(app)/send/fund/[name]/[...amount]/+page.svelte
+++ b/src/routes/(app)/send/fund/[name]/[...amount]/+page.svelte
@@ -47,7 +47,8 @@
<div class="flex w-full">
<button
type="submit"
- class="opacity-100 hover:opacity-80'} rounded-2xl border py-3 font-bold mx-auto mt-2 bg-black text-white px-4 w-24">
+ class="opacity-100 hover:opacity-80'} rounded-2xl border py-3 font-bold mx-auto mt-2 bg-black text-white px-4 w-24"
+ >
{#if loading}
<Spinner />
{:else}
diff --git a/src/routes/(app)/send/invoice/[id]/+page.svelte b/src/routes/(app)/send/invoice/[id]/+page.svelte
index 1e26ece1..ae997bce 100644
--- a/src/routes/(app)/send/invoice/[id]/+page.svelte
+++ b/src/routes/(app)/send/invoice/[id]/+page.svelte
@@ -145,7 +145,8 @@
<button
use:focus
type="submit"
- class="opacity-100 hover:opacity-80'} rounded-2xl border py-3 font-bold mx-auto mt-2 bg-black text-white px-4 w-24">
+ class="opacity-100 hover:opacity-80'} rounded-2xl border py-3 font-bold mx-auto mt-2 bg-black text-white px-4 w-24"
+ >
{#if loading}
<Spinner />
{:else}
@@ -156,7 +157,8 @@
<button
type="button"
class="opacity-100 hover:opacity-80'} rounded-2xl border py-3 font-bold mx-auto mt-2 bg-black text-white px-4 w-24"
- on:click={setAmount}>
+ on:click={setAmount}
+ >
{$t("payments.next")}
</button>
{/if}
diff --git a/src/routes/(app)/send/lightning/[payreq]/+page.svelte b/src/routes/(app)/send/lightning/[payreq]/+page.svelte
index ff64df23..a5b812cb 100644
--- a/src/routes/(app)/send/lightning/[payreq]/+page.svelte
+++ b/src/routes/(app)/send/lightning/[payreq]/+page.svelte
@@ -74,7 +74,8 @@
<button
type="submit"
class="opacity-100 hover:opacity-80'} rounded-2xl border py-3 font-bold mx-auto mt-2 bg-black text-white px-4 w-24"
- disabled={loading}>
+ disabled={loading}
+ >
{#if loading}
<Spinner />
{:else}
@@ -91,7 +92,9 @@
<div
class="absolute right-[2px] top-[25px] text-gray-600 rounded-r-2xl p-4 h-[54px] my-auto border-l"
- >⚡️</div>
+ >
+ ⚡️
+ </div>
</div>
{:else}
<div class="flex w-full mt-5">
@@ -110,7 +113,8 @@
<button
type="submit"
class="bg-black text-white rounded-xl h-[48px] flex w-full justify-center items-center font-semibold
- opacity-100 hover:opacity-80">
+ opacity-100 hover:opacity-80"
+ >
Next
</button>
</form>
diff --git a/src/routes/(app)/support/+page.svelte b/src/routes/(app)/support/+page.svelte
index 17a6063e..ad31ad1a 100644
--- a/src/routes/(app)/support/+page.svelte
+++ b/src/routes/(app)/support/+page.svelte
@@ -48,7 +48,8 @@
<svelte:head
><script
- src="https://www.google.com/recaptcha/api.js?render=6LfCd8YkAAAAANmVJgzN3SQY3n3fv1RhiS5PgMYM"></script></svelte:head
+ src="https://www.google.com/recaptcha/api.js?render=6LfCd8YkAAAAANmVJgzN3SQY3n3fv1RhiS5PgMYM"
+ ></script></svelte:head
>
{#if user}
diff --git a/src/routes/(static)/docs/+page.svelte b/src/routes/(static)/docs/+page.svelte
index a6b1bf08..119dca89 100644
--- a/src/routes/(static)/docs/+page.svelte
+++ b/src/routes/(static)/docs/+page.svelte
@@ -9,7 +9,6 @@
let { user, token } = data;
-
let api = PUBLIC_DOMAIN.includes("localhost")
? `${PUBLIC_COINOS_URL}`
: `https://${PUBLIC_DOMAIN}/api`;
diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte
index 23aaacfa..3cffea21 100644
--- a/src/routes/+page.svelte
+++ b/src/routes/+page.svelte
@@ -1,4 +1,4 @@
- <script>
+<script>
import LandingHeader from "$comp/LandingHeader.svelte";
import LandingHero from "$comp/LandingHero.svelte";
import LandingInfoCard from "$comp/LandingInfoCard.svelte";