aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/components/Balance.svelte2
-rw-r--r--src/routes/(app)/+error.svelte4
-rw-r--r--src/routes/(app)/[username]/settings/[...tab]/+page.server.js2
-rw-r--r--src/routes/(app)/buy/+page.server.js2
-rw-r--r--src/routes/(app)/buy/+page.svelte8
-rw-r--r--src/routes/(app)/send/[...text]/+page.server.js4
-rw-r--r--src/routes/(static)/bounties/+page.svelte9
7 files changed, 19 insertions, 12 deletions
diff --git a/src/components/Balance.svelte b/src/components/Balance.svelte
index 5d993c28..cc923b7d 100644
--- a/src/components/Balance.svelte
+++ b/src/components/Balance.svelte
@@ -9,7 +9,7 @@
<div class="space-y-2">
<div class="text-5xl font-bold tabular-nums">
{#if isNaN($animatedRate)}
- <div class="text-gray-200">&mdash;</div>
+ <div class="text-gray-200">&mdash;</div>
{:else}
{f((user.balance * $animatedRate) / sats, user.currency)}
{/if}
diff --git a/src/routes/(app)/+error.svelte b/src/routes/(app)/+error.svelte
index 0851cb27..36726e26 100644
--- a/src/routes/(app)/+error.svelte
+++ b/src/routes/(app)/+error.svelte
@@ -1,7 +1,7 @@
<script>
import { back } from '$lib/utils';
import { Icon } from '$comp';
- import { page } from '$app/stores';
+ import { page } from '$app/stores';
export let data;
let { user } = data;
@@ -22,7 +22,7 @@
<h1 class="text-2xl md:text-3xl font-semibold text-center">Error</h1>
</div>
<p class="text-secondary text-center">Something went wrong</p>
- <p class="text-secondary text-center">{$page.error.message}</p>
+ <p class="text-secondary text-center">{$page.error.message}</p>
<div class="flex justify-center py-24">
<a href={link}>
diff --git a/src/routes/(app)/[username]/settings/[...tab]/+page.server.js b/src/routes/(app)/[username]/settings/[...tab]/+page.server.js
index 94240adc..e833a102 100644
--- a/src/routes/(app)/[username]/settings/[...tab]/+page.server.js
+++ b/src/routes/(app)/[username]/settings/[...tab]/+page.server.js
@@ -9,7 +9,7 @@ export function load({ params, url }) {
export const actions = {
default: async ({ cookies, request }) => {
let form = Object.fromEntries(await request.formData());
- form.prompt = form.prompt === 'on'
+ form.prompt = form.prompt === 'on';
let user = { ...(await get('/me', auth(cookies))), ...form };
try {
diff --git a/src/routes/(app)/buy/+page.server.js b/src/routes/(app)/buy/+page.server.js
index 8a88ed4e..fc7ae473 100644
--- a/src/routes/(app)/buy/+page.server.js
+++ b/src/routes/(app)/buy/+page.server.js
@@ -13,7 +13,7 @@ export const actions = {
await post(
'/buy',
{
- amount: form.get('amount'),
+ amount: form.get('amount'),
number: form.get('number').replace(/\s+/g, ''),
month: form.get('expiry').slice(0, 2),
year: form.get('expiry').slice(-2),
diff --git a/src/routes/(app)/buy/+page.svelte b/src/routes/(app)/buy/+page.svelte
index ed803110..323d5ef0 100644
--- a/src/routes/(app)/buy/+page.svelte
+++ b/src/routes/(app)/buy/+page.svelte
@@ -7,7 +7,7 @@
let { username } = data.user;
let loading;
- let amount, n, d, cvc;
+ let amount, n, d, cvc;
</script>
<div class="container px-4 max-w-xl mx-auto mt-10 space-y-5">
@@ -49,8 +49,10 @@
placeholder="&bull;&bull;&bull;"
bind:value={amount}
/>
- <span class="absolute bottom-[9px] left-0 translate-x-1/2 w-6 text-black peer-placeholder-shown:text-gray-300
- ">$</span>
+ <span
+ class="absolute bottom-[9px] left-0 translate-x-1/2 w-6 text-black peer-placeholder-shown:text-gray-300
+ ">$</span
+ >
</label>
<label class="relative w-full flex flex-col">
diff --git a/src/routes/(app)/send/[...text]/+page.server.js b/src/routes/(app)/send/[...text]/+page.server.js
index b1089a5b..9c7d4185 100644
--- a/src/routes/(app)/send/[...text]/+page.server.js
+++ b/src/routes/(app)/send/[...text]/+page.server.js
@@ -52,8 +52,8 @@ let parse = async (t, host) => {
throw redirect(307, r);
}
- if (user) throw redirect(307, `/send/${user.username}`);
- else if (id) throw redirect(307, `/send/${id}`);
+ if (user) throw redirect(307, `/send/${user.username}`);
+ else if (id) throw redirect(307, `/send/${id}`);
}
// user
diff --git a/src/routes/(static)/bounties/+page.svelte b/src/routes/(static)/bounties/+page.svelte
index 843ef1d2..17fa5b7b 100644
--- a/src/routes/(static)/bounties/+page.svelte
+++ b/src/routes/(static)/bounties/+page.svelte
@@ -8,7 +8,10 @@
<ul>
<li>Grocery / Produce Store</li>
- <li>Cafe &mdash; Claimed by <a href="/reverendhodl">ReverendHodl</a> for <a href="https://btcmap.org/map?lat=49.2814113&long=-123.049572">Laughing Bean Coffee Co.</a>!</li>
+ <li>
+ Cafe &mdash; Claimed by <a href="/reverendhodl">ReverendHodl</a> for
+ <a href="https://btcmap.org/map?lat=49.2814113&long=-123.049572">Laughing Bean Coffee Co.</a>!
+ </li>
<li>Bakery</li>
<li>Butcher Shop</li>
<li>Laundromat / Dry Cleaner</li>
@@ -79,5 +82,7 @@
</div>
<style>
- a { @apply font-bold; }
+ a {
+ @apply font-bold;
+ }
</style>