diff options
| author | Adam Soltys <[email protected]> | 2026-02-11 23:02:30 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2026-02-11 23:02:30 -0800 |
| commit | 2e61e8abbc318c36969cb5add0c63df81135b4ab (patch) | |
| tree | 706396b41da448f0172719313fb6ae30ecebb004 /src/routes/(app) | |
| parent | 56a04684c1fb77ea7b21afc6b0d2e1c4773906f6 (diff) | |
| download | coinos-ui-2e61e8abbc318c36969cb5add0c63df81135b4ab.tar.gz coinos-ui-2e61e8abbc318c36969cb5add0c63df81135b4ab.zip | |
formatting
Diffstat (limited to 'src/routes/(app)')
49 files changed, 279 insertions, 380 deletions
diff --git a/src/routes/(app)/[username]/(profile)/+layout.svelte b/src/routes/(app)/[username]/(profile)/+layout.svelte index 6e6a318f..a0d45f22 100644 --- a/src/routes/(app)/[username]/(profile)/+layout.svelte +++ b/src/routes/(app)/[username]/(profile)/+layout.svelte @@ -36,9 +36,7 @@ let stripped = $derived(n.replace(/\s/g, "")); let username = $derived(n.length > 60 ? n.substr(0, 6) : display || stripped); - let lnaddr = $derived( - subject?.anon ? subject.lud16 || undefined : `${stripped}@${$page.url.host}`, - ); + let lnaddr = $derived(subject?.anon ? subject.lud16 || undefined : `${stripped}@${$page.url.host}`); let profile = $derived(`${$page.url.host}/${subject.anon ? npub : stripped}`); let lnurl = $derived( encode( @@ -82,9 +80,7 @@ role="button" tabindex="0" > - <div> - {subject.about} - </div> + <div>{subject.about}</div> {#if subject.website} <div> @@ -100,9 +96,7 @@ <div> <div class="text-secondary">{$t("user.lightningAddress")}</div> <div class="flex gap-4"> - <div class="break-all grow text-xl"> - {lnaddr} - </div> + <div class="break-all grow text-xl">{lnaddr}</div> <div class="flex mb-auto gap-1"> <button type="button" @@ -110,8 +104,9 @@ aria-label="Copy lightning address" onclick={() => copy(lnaddr)} > - ><iconify-icon noobserver icon="ph:copy-bold" width="32"></iconify-icon></button - > + > + <iconify-icon noobserver icon="ph:copy-bold" width="32"></iconify-icon> + </button> <a href={`/qr/${encodeURIComponent(lnaddr)}`} class="my-auto" @@ -126,9 +121,7 @@ <div> <div class="text-secondary">{$t("user.url")}</div> <div class="flex gap-4"> - <div class="break-all grow text-xl"> - {profile} - </div> + <div class="break-all grow text-xl">{profile}</div> <div class="flex mb-auto gap-1"> <button type="button" @@ -136,8 +129,9 @@ aria-label="Copy profile URL" onclick={() => copy(profile)} > - ><iconify-icon noobserver icon="ph:copy-bold" width="32"></iconify-icon></button - > + > + <iconify-icon noobserver icon="ph:copy-bold" width="32"></iconify-icon> + </button> <a href={`/qr/${encodeURIComponent(`${$page.url.protocol}//${profile}`)}`} class="my-auto" @@ -151,9 +145,7 @@ <div> <div class="text-secondary">{$t("user.lnurl")}</div> <div class="flex gap-4"> - <div class="break-all grow text-xl"> - {lnurl} - </div> + <div class="break-all grow text-xl">{lnurl}</div> <div class="flex mb-auto gap-1"> <button type="button" @@ -161,8 +153,9 @@ aria-label="Copy LNURL" onclick={() => copy(`lightning:${lnurl}`)} > - ><iconify-icon noobserver icon="ph:copy-bold" width="32"></iconify-icon></button - > + > + <iconify-icon noobserver icon="ph:copy-bold" width="32"></iconify-icon> + </button> <a href={`/${n}/accepted/${encodeURIComponent(`lightning:${lnurl}`)}`} class="my-auto" diff --git a/src/routes/(app)/[username]/(profile)/+page.svelte b/src/routes/(app)/[username]/(profile)/+page.svelte index 78816e36..21d0abdb 100644 --- a/src/routes/(app)/[username]/(profile)/+page.svelte +++ b/src/routes/(app)/[username]/(profile)/+page.svelte @@ -34,32 +34,30 @@ <div class="space-y-2"> {#if user?.destination && !user?.autowithdraw} <div class="rounded-2xl space-y-2 p-4 shadow-lg"> - <h1 class="text-3xl font-bold"> - {$t("user.settings.confirmAutoWithdrawal")} - </h1> - <div> - {$t("user.settings.confirmAutoWithdrawalDesc")} - </div> + <h1 class="text-3xl font-bold">{$t("user.settings.confirmAutoWithdrawal")}</h1> + <div>{$t("user.settings.confirmAutoWithdrawalDesc")}</div> <a href="/settings/account" class="btn"> <iconify-icon icon="ph:gear-bold" width="32"></iconify-icon> - Settings</a - > + Settings + </a> </div> {/if} {#if user?.fresh} <div> - {$t("user.settings.yourUsername")} <b>{user?.username}</b> + {$t("user.settings.yourUsername")} + <b>{user?.username}</b> {#if $password} <br /> {$t("user.settings.yourPassword")} - <b>{$password}</b>{/if} + <b>{$password}</b> + {/if} </div> <a href="/settings/profile" class="btn"> <iconify-icon icon="ph:gear-bold" width="32"></iconify-icon> - {$t("user.settings.continueSettingUp")}</a - > + {$t("user.settings.continueSettingUp")} + </a> {/if} {#if user?.id && user.id === subject.id} <div class="space-y-10 pb-8" data-sveltekit-preload-data="false"> @@ -80,9 +78,7 @@ </div> {#if locked} - <div class="text-sm"> - {$t("incident")} - </div> + <div class="text-sm">{$t("incident")}</div> {/if} {#if $installPrompt} @@ -100,16 +96,13 @@ {#if user?.username !== subject.username && (!subject.anon || subject.lud16)} <a href={subject.anon - ? `/send/${encodeURIComponent(subject.lud16)}` - : `/pay/${subject.username}`} + ? `/send/${encodeURIComponent(subject.lud16)}` + : `/pay/${subject.username}`} class="contents" > <button class="btn btn-accent !text-2xl items-center !w-full sm:!max-w-[400px] mx-auto"> <iconify-icon noobserver icon="ph:lightning-fill" class="text-yellow-300"></iconify-icon> - <div> - {$t("user.pay")} - {subject.username} - </div> + <div>{$t("user.pay")}{subject.username}</div> </button> </a> {/if} diff --git a/src/routes/(app)/[username]/(profile)/notes/new/+page.svelte b/src/routes/(app)/[username]/(profile)/notes/new/+page.svelte index a9cc3e19..4ed4f930 100644 --- a/src/routes/(app)/[username]/(profile)/notes/new/+page.svelte +++ b/src/routes/(app)/[username]/(profile)/notes/new/+page.svelte @@ -33,6 +33,6 @@ <div class="container px-4 max-w-xl mx-auto space-y-5"> <form method="POST" class="space-y-2 text-xl" onsubmit={submit}> <textarea use:focus bind:value={content} placeholder={$t("notes.contents")}></textarea> - <button type="submit" class="btn btn-accent"> {$t("payments.submit")}</button> + <button type="submit" class="btn btn-accent">{$t("payments.submit")}</button> </form> </div> diff --git a/src/routes/(app)/[username]/accepted/[text]/+page.svelte b/src/routes/(app)/[username]/accepted/[text]/+page.svelte index 3e16177c..6b2c3a86 100644 --- a/src/routes/(app)/[username]/accepted/[text]/+page.svelte +++ b/src/routes/(app)/[username]/accepted/[text]/+page.svelte @@ -38,13 +38,11 @@ /> {/if} <Qr {text} icon="icon.png" /> - <div class="text-center text-4xl font-bold break-all"> - coinos.io/{username.toLowerCase()} - </div> + <div class="text-center text-4xl font-bold break-all">coinos.io/{username.toLowerCase()}</div> </div> <button onclick={() => copy(lnurl)} class="flex gap-1 m-auto my-8"> <iconify-icon icon="ph:copy-bold" width={32}></iconify-icon> - LNURL</button - > + LNURL + </button> </div> diff --git a/src/routes/(app)/account/[id]/+page.svelte b/src/routes/(app)/account/[id]/+page.svelte index 43ebe508..7f306fea 100644 --- a/src/routes/(app)/account/[id]/+page.svelte +++ b/src/routes/(app)/account/[id]/+page.svelte @@ -71,9 +71,7 @@ </script> <div class="space-y-5"> - <h1 class="text-center text-3xl font-semibold"> - {$t("payments.accountSettings")} - </h1> + <h1 class="text-center text-3xl font-semibold">{$t("payments.accountSettings")}</h1> <div class="container w-full mx-auto text-lg px-4 max-w-xl space-y-2"> <form class="space-y-5" method="POST" use:enhance> @@ -92,20 +90,20 @@ <button onclick={() => copy(mnemonic)} type="button" class="btn"> <iconify-icon noobserver icon="ph:copy-bold" width="32"></iconify-icon> - <div class="my-auto">{$t("accounts.copy")}</div></button - > + <div class="my-auto">{$t("accounts.copy")}</div> + </button> {:else if seed} <button onclick={requestMnemonic} type="button" class="btn"> <iconify-icon noobserver icon="ph:eye-bold" width="32"></iconify-icon> - <div class="my-auto">{$t("accounts.revealMnemonic")}</div></button - > + <div class="my-auto">{$t("accounts.revealMnemonic")}</div> + </button> {/if} {#if seed} <button onclick={del} type="button" class="btn"> <iconify-icon noobserver icon="ph:trash-bold" width="32"></iconify-icon> - <div class="my-auto">{$t("accounts.deleteAccount")}</div></button - > + <div class="my-auto">{$t("accounts.deleteAccount")}</div> + </button> {/if} </div> diff --git a/src/routes/(app)/account/ark/+page.svelte b/src/routes/(app)/account/ark/+page.svelte index c21da0d5..79df4752 100644 --- a/src/routes/(app)/account/ark/+page.svelte +++ b/src/routes/(app)/account/ark/+page.svelte @@ -165,8 +165,7 @@ {#if hasMasterSeed} <form onsubmit={preventDefault(submit)} class="space-y-5"> <p class="text-secondary"> - Your Ark wallet will be derived from your master seed. Enter your wallet password to - continue. + Your Ark wallet will be derived from your master seed. Enter your wallet password to continue. </p> <label for="password" class="input flex items-center justify-center gap-2 w-full"> @@ -208,7 +207,7 @@ </label> <div class="space-y-2"> - <label for="rememberFor" class="text-sm text-secondary"> Remember for </label> + <label for="rememberFor" class="text-sm text-secondary">Remember for</label> <select id="rememberFor" class="w-full" @@ -223,7 +222,7 @@ <div class="flex gap-2"> <a href={`/${user.username}`} class="contents"> - <button type="button" class="btn !w-auto grow"> Back </button> + <button type="button" class="btn !w-auto grow">Back</button> </a> <button disabled={submitting} type="submit" class="btn btn-accent !w-auto grow"> {#if submitting} @@ -345,7 +344,7 @@ </label> <div class="space-y-2"> - <label for="rememberFor" class="text-sm text-secondary"> Remember for </label> + <label for="rememberFor" class="text-sm text-secondary">Remember for</label> <select id="rememberFor" class="w-full" diff --git a/src/routes/(app)/account/bitcoin/+page.svelte b/src/routes/(app)/account/bitcoin/+page.svelte index ca90c758..e856d397 100644 --- a/src/routes/(app)/account/bitcoin/+page.svelte +++ b/src/routes/(app)/account/bitcoin/+page.svelte @@ -3,9 +3,7 @@ </script> <div class="space-y-5"> - <h1 class="text-center text-3xl font-semibold"> - {$t("accounts.accountSetup")} - </h1> + <h1 class="text-center text-3xl font-semibold">{$t("accounts.accountSetup")}</h1> <div class="container w-full mx-auto text-lg px-4 max-w-xl space-y-5"> <a href="/account/seed" class="block"> diff --git a/src/routes/(app)/account/import/+page.svelte b/src/routes/(app)/account/import/+page.svelte index 09e1edb1..93616a92 100644 --- a/src/routes/(app)/account/import/+page.svelte +++ b/src/routes/(app)/account/import/+page.svelte @@ -49,9 +49,7 @@ ></textarea> <div class="flex gap-2"> <a href={`/account/bitcoin`} class="contents"> - <button type="button" class="btn !w-auto grow"> - {$t("accounts.back")} - </button> + <button type="button" class="btn !w-auto grow">{$t("accounts.back")}</button> </a> <button bind:this={el} type="submit" class="btn btn-accent !w-auto grow"> <div class="my-auto">{$t("accounts.next")}</div> diff --git a/src/routes/(app)/account/pass/+page.svelte b/src/routes/(app)/account/pass/+page.svelte index fd58921f..5a177ded 100644 --- a/src/routes/(app)/account/pass/+page.svelte +++ b/src/routes/(app)/account/pass/+page.svelte @@ -82,9 +82,7 @@ <div class="space-y-5"> <div> - <h1 class="text-center text-3xl font-semibold"> - {$t("accounts.accountPassword")} - </h1> + <h1 class="text-center text-3xl font-semibold">{$t("accounts.accountPassword")}</h1> </div> <form @@ -168,7 +166,7 @@ </label> <div class="space-y-2"> - <label for="rememberFor" class="text-sm text-secondary"> Remember for </label> + <label for="rememberFor" class="text-sm text-secondary">Remember for</label> <select id="rememberFor" class="w-full" @@ -183,9 +181,7 @@ <div class="flex gap-2"> <a href={`/account/seed`} class="contents"> - <button type="button" class="btn !w-auto grow"> - {$t("accounts.back")} - </button> + <button type="button" class="btn !w-auto grow">{$t("accounts.back")}</button> </a> <button disabled={submitting} type="submit" class="btn btn-accent !w-auto grow"> {#if submitting} diff --git a/src/routes/(app)/account/seed/+page.svelte b/src/routes/(app)/account/seed/+page.svelte index cbfe1024..69cfc1b6 100644 --- a/src/routes/(app)/account/seed/+page.svelte +++ b/src/routes/(app)/account/seed/+page.svelte @@ -22,9 +22,7 @@ </script> <div class="space-y-5"> - <h1 class="text-center text-3xl font-semibold"> - {$t("accounts.seedPhrase")} - </h1> + <h1 class="text-center text-3xl font-semibold">{$t("accounts.seedPhrase")}</h1> <div class="container w-full mx-auto px-4 max-w-xl space-y-2"> {#if $mnemonic} @@ -33,21 +31,15 @@ <button type="button" class="btn" onclick={() => copy($mnemonic)}> <iconify-icon noobserver icon="ph:copy-bold" width="32"></iconify-icon> - <div class="my-auto"> - {$t("payments.copy")} - </div> + <div class="my-auto">{$t("payments.copy")}</div> </button> <div class="flex gap-2"> <a href={`/account/bitcoin`} class="contents"> - <button type="button" class="btn !w-auto grow"> - {$t("accounts.back")} - </button> + <button type="button" class="btn !w-auto grow">{$t("accounts.back")}</button> </a> <a href={`/account/pass`} class="contents"> - <button type="button" class="btn btn-accent !w-auto grow"> - {$t("accounts.next")} - </button> + <button type="button" class="btn btn-accent !w-auto grow">{$t("accounts.next")}</button> </a> </div> </div> diff --git a/src/routes/(app)/admin/+page.svelte b/src/routes/(app)/admin/+page.svelte index a2a761fe..5604d01b 100644 --- a/src/routes/(app)/admin/+page.svelte +++ b/src/routes/(app)/admin/+page.svelte @@ -11,12 +11,16 @@ <div>{username}</div> <div>{balance}</div> <div>{expected}</div> - <div><input bind:value={password} /></div> + <div> + <input bind:value={password} /> + </div> <div> <button class="text-sm md:text-lg rounded-full border py-2 px-4 hover:opacity-80 min-w-[72px] bg-black text-white" - onclick={() => reset(username)}>Reset</button + onclick={() => reset(username)} > + Reset + </button> </div> </div> {/each} diff --git a/src/routes/(app)/apps/[pubkey]/+page.svelte b/src/routes/(app)/apps/[pubkey]/+page.svelte index b15fa717..d60ac227 100644 --- a/src/routes/(app)/apps/[pubkey]/+page.svelte +++ b/src/routes/(app)/apps/[pubkey]/+page.svelte @@ -10,9 +10,7 @@ <h2 class="text-2xl font-bold mb-2">{$t("accounts.connection")}</h2> {#if form?.error} - <div class="text-red-600 text-center"> - {form.error} - </div> + <div class="text-red-600 text-center">{form.error}</div> {/if} <AppForm {...app} {rate} {user} /> diff --git a/src/routes/(app)/apps/[pubkey]/payments/+page.svelte b/src/routes/(app)/apps/[pubkey]/payments/+page.svelte index fe74dc5a..6ea6ae6c 100644 --- a/src/routes/(app)/apps/[pubkey]/payments/+page.svelte +++ b/src/routes/(app)/apps/[pubkey]/payments/+page.svelte @@ -10,9 +10,7 @@ </script> <div class="space-y-5"> - <h1 class="text-center text-3xl md:text-4xl font-semibold"> - {$t("payments.header")} - </h1> + <h1 class="text-center text-3xl md:text-4xl font-semibold">{$t("payments.header")}</h1> <div class="container w-full mx-auto text-lg px-2 max-w-xl space-y-2"> <Payments {payments} {locale} {user} /> diff --git a/src/routes/(app)/apps/new/+page.svelte b/src/routes/(app)/apps/new/+page.svelte index 583a4ba0..8268ef29 100644 --- a/src/routes/(app)/apps/new/+page.svelte +++ b/src/routes/(app)/apps/new/+page.svelte @@ -10,9 +10,7 @@ <h2 class="text-2xl font-bold mb-2">{$t("accounts.connection")}</h2> {#if form?.error} - <div class="text-red-600 text-center"> - {form.error} - </div> + <div class="text-red-600 text-center">{form.error}</div> {/if} <AppForm {...app} {rate} {user} /> diff --git a/src/routes/(app)/dm/+page.svelte b/src/routes/(app)/dm/+page.svelte index 5a908664..cc30e84f 100644 --- a/src/routes/(app)/dm/+page.svelte +++ b/src/routes/(app)/dm/+page.svelte @@ -156,9 +156,7 @@ userInfo(selectedChat.pubkey).then((info) => (nostrUserInfo = info)); libnip17.getPreferredRelays(selectedChat.pubkey).then((relays) => { canSend = relays && relays.length > 0; - relaysSupporting(relays, [40]).then( - (supporting) => (canSendExpiring = supporting.length > 0), - ); + relaysSupporting(relays, [40]).then((supporting) => (canSendExpiring = supporting.length > 0)); }); updateEvents(); }; @@ -299,13 +297,15 @@ {creatingNewChat ? $t("dm.newChatHeader") : $t("dm.chatHeader")} <button class={"chat-btn push-right " + - ($theme === "light" ? "light-chat-btn" : "dark-chat-btn") + - (creatingNewChat ? ($theme === "light" ? " light-selected" : " dark-selected") : "")} + ($theme === "light" ? "light-chat-btn" : "dark-chat-btn") + + (creatingNewChat ? ($theme === "light" ? " light-selected" : " dark-selected") : "")} on:click={() => { creatingNewChat = !creatingNewChat; selectedChat = null; - }}>+</button + }} > + + + </button> </h2> {#if creatingNewChat} <input @@ -320,17 +320,17 @@ {#if (selectedChat && selectedChat.pubkey === c.pubkey) || !(muted && muted.has(c.pubkey))} <button class={"chat-btn tall-btn " + - ($theme === "light" ? "light-chat-btn" : "dark-chat-btn") + - (selectedChat && selectedChat.pubkey == c.pubkey - ? $theme === "light" - ? " light-selected" - : " dark-selected" - : "")} + ($theme === "light" ? "light-chat-btn" : "dark-chat-btn") + + (selectedChat && selectedChat.pubkey == c.pubkey + ? $theme === "light" + ? " light-selected" + : " dark-selected" + : "")} on:click={() => selectChat(c)} > - <span class={"text-xl" + (muted && muted.has(c.pubkey) ? " secondary" : "")} - >{name(c)}</span - > + <span class={"text-xl" + (muted && muted.has(c.pubkey) ? " secondary" : "")}> + {name(c)} + </span> <span class={(idValid(c) ? "" : "invalid ") + "secondary text-xs"}>{id(c)}</span> </button> {/if} @@ -376,49 +376,50 @@ {/if} <span class={"secondary timestamp text-small" + (idValid(selectedChat) ? "" : " invalid")} - title={npubEncode(selectedChat.pubkey)}>{id(selectedChat)}</span + title={npubEncode(selectedChat.pubkey)} > + {id(selectedChat)} + </span> <button class={"small-btn push-right " + - ($theme === "light" ? "light-chat-btn" : "dark-chat-btn")} + ($theme === "light" ? "light-chat-btn" : "dark-chat-btn")} on:click={() => toggleMute(selectedChat.pubkey)} - >{$t(muted && muted.has(selectedChat.pubkey) ? "dm.unmute" : "dm.mute")}</button > + {$t(muted && muted.has(selectedChat.pubkey) ? "dm.unmute" : "dm.mute")} + </button> </h1> {#if !(muted && muted.has(selectedChat.pubkey))} <div id="messages" style="overflow-y: scroll; max-height: 600px;"> {#each dates as day} - <p class="date-header secondary"> - {formatDate(new Date(day * 86400 * 1000))} - </p> + <p class="date-header secondary">{formatDate(new Date(day * 86400 * 1000))}</p> <ul> {#each messageRumours.get(day) as rumour} {#if rumour.pubkey === user.pubkey && pTagKeys(rumour).includes(selectedChat.pubkey)} <li class={(rumour.expiration && expirationClose(rumour.expiration) - ? "secondary " - : "") + - ($theme === "light" ? "light-message " : "dark-message ") + - "message by-user"} + ? "secondary " + : "") + + ($theme === "light" ? "light-message " : "dark-message ") + + "message by-user"} > {rumour.content} - <span class="timestamp secondary text-xs" - >{TIME.format(new Date(rumour.created_at * 1000))}</span - > + <span class="timestamp secondary text-xs"> + {TIME.format(new Date(rumour.created_at * 1000))} + </span> </li> {:else if rumour.pubkey === selectedChat.pubkey && pTagKeys(rumour).includes(user.pubkey)} <li class={(rumour.expiration && expirationClose(rumour.expiration) - ? "secondary " - : "") + - ($theme === "light" ? "light-message " : "dark-message ") + - "message by-other"} + ? "secondary " + : "") + + ($theme === "light" ? "light-message " : "dark-message ") + + "message by-other"} > {rumour.content} - <span class="timestamp secondary text-xs" - >{TIME.format(new Date(rumour.created_at * 1000))}</span - > + <span class="timestamp secondary text-xs"> + {TIME.format(new Date(rumour.created_at * 1000))} + </span> </li> {/if} {/each} @@ -433,8 +434,8 @@ class="btn btn-accent" disabled={!canSend} value={canSend - ? $t("dm.sendMessage") - : $t("dm.relaysNotFound").replace("[R]", name(selectedChat))} + ? $t("dm.sendMessage") + : $t("dm.relaysNotFound").replace("[R]", name(selectedChat))} on:click={async () => sendMessage(text)} /> {/if} @@ -447,7 +448,8 @@ bind:checked={expiryEnabled} disabled={!canSendExpiring} /> - <label for="expiryCheckbox">{$t("dm.expiry")}</label>: + <label for="expiryCheckbox">{$t("dm.expiry")}</label> + : <input type="number" class="short small-width vcenter" @@ -456,7 +458,9 @@ min="1" step="1" max="99999" - /> <label for="expiryCheckbox">{$t("dm.days")}</label>. + /> + <label for="expiryCheckbox">{$t("dm.days")}</label> + . <p class="secondary">{$t("dm.fadedWarning")}</p> {#if canSend && !canSendExpiring} <p class="warning"> @@ -471,10 +475,10 @@ {/if} {#if relayWarningShown} <p class="warning"> - <em - >{$t("dm.noRelaysSet")} - <a class="link" href="/settings/nostr#dm-relays">{$t("dm.nostrSettingsLink")}</a></em - > + <em> + {$t("dm.noRelaysSet")} + <a class="link" href="/settings/nostr#dm-relays">{$t("dm.nostrSettingsLink")}</a> + </em> </p> {/if} </div> diff --git a/src/routes/(app)/fund/[id]/access/+page.svelte b/src/routes/(app)/fund/[id]/access/+page.svelte index 9920fa5b..5c161e7c 100644 --- a/src/routes/(app)/fund/[id]/access/+page.svelte +++ b/src/routes/(app)/fund/[id]/access/+page.svelte @@ -56,8 +56,8 @@ <a href={`/fund/${id}`} class="btn"> <iconify-icon icon="ph:arrow-left-bold" width={32}></iconify-icon> - {$t("funds.returnToFund")}</a - > + {$t("funds.returnToFund")} + </a> </div> </div> </div> diff --git a/src/routes/(app)/fund/[id]/authorize/[...amount]/+page.svelte b/src/routes/(app)/fund/[id]/authorize/[...amount]/+page.svelte index 746318e7..d49e047e 100644 --- a/src/routes/(app)/fund/[id]/authorize/[...amount]/+page.svelte +++ b/src/routes/(app)/fund/[id]/authorize/[...amount]/+page.svelte @@ -19,6 +19,4 @@ <div class="opacity-0 w-screen h-screen fixed top-24 left-0 z-50"></div> </a> -<div class="flex justify-center mt-4"> - {$t("payments.tapAnywhere")} -</div> +<div class="flex justify-center mt-4">{$t("payments.tapAnywhere")}</div> diff --git a/src/routes/(app)/fund/[id]/sweep/[...amount]/+page.svelte b/src/routes/(app)/fund/[id]/sweep/[...amount]/+page.svelte index b67a024b..40ceafb8 100644 --- a/src/routes/(app)/fund/[id]/sweep/[...amount]/+page.svelte +++ b/src/routes/(app)/fund/[id]/sweep/[...amount]/+page.svelte @@ -22,6 +22,4 @@ <div class="opacity-0 w-screen h-screen fixed top-24 left-0 z-50"></div> </a> -<div class="flex justify-center mt-4"> - {$t("payments.tapAnywhere")} -</div> +<div class="flex justify-center mt-4">{$t("payments.tapAnywhere")}</div> diff --git a/src/routes/(app)/fund/[id]/withdraw/+page.svelte b/src/routes/(app)/fund/[id]/withdraw/+page.svelte index b8ccd5af..a37185ed 100644 --- a/src/routes/(app)/fund/[id]/withdraw/+page.svelte +++ b/src/routes/(app)/fund/[id]/withdraw/+page.svelte @@ -35,9 +35,7 @@ </script> {#if form?.message} - <div class="text-red-600 text-center"> - {form.message} - </div> + <div class="text-red-600 text-center">{form.message}</div> {/if} <div class="container px-4 mt-20 max-w-xl mx-auto"> @@ -55,12 +53,13 @@ onclick={setMax} disabled={submitting} onkeydown={setMax} - >{#if $fiat} + > + {#if $fiat} Max {f((balance * rate) / sats, currency, locale)} {:else} Max ⚡️{s(balance)} - {/if}</button - > + {/if} + </button> <button use:focus bind:this={submit} type="submit" class="btn btn-accent !w-auto grow"> {#if submitting} diff --git a/src/routes/(app)/invoice/[id]/paid/+page.svelte b/src/routes/(app)/invoice/[id]/paid/+page.svelte index 1a09653f..43423668 100644 --- a/src/routes/(app)/invoice/[id]/paid/+page.svelte +++ b/src/routes/(app)/invoice/[id]/paid/+page.svelte @@ -34,6 +34,4 @@ <div class="opacity-0 w-screen h-screen fixed top-24 left-0 z-50"></div> </a> -<div class="flex justify-center mt-4"> - {$t("payments.tapAnywhere")} -</div> +<div class="flex justify-center mt-4">{$t("payments.tapAnywhere")}</div> diff --git a/src/routes/(app)/invoice/[id]/tip/+page.svelte b/src/routes/(app)/invoice/[id]/tip/+page.svelte index 32ba78a2..684baf02 100644 --- a/src/routes/(app)/invoice/[id]/tip/+page.svelte +++ b/src/routes/(app)/invoice/[id]/tip/+page.svelte @@ -119,9 +119,7 @@ </div> <div class="flex items-center"> - <div class="font-semibold"> - +{s(tip, locale)} - </div> + <div class="font-semibold">+{s(tip, locale)}</div> </div> </div> {/if} @@ -139,24 +137,28 @@ type="button" class="btn" class:active={active(amount)} - onclick={() => handleTipButtonClick(amount)}>{amount}</button + onclick={() => handleTipButtonClick(amount)} > + {amount} + </button> {:else} <button type="button" class="btn" class:active={active(amount)} - onclick={() => handleTipButtonClick(amount)}>{amount}</button + onclick={() => handleTipButtonClick(amount)} > + {amount} + </button> {/if} {/each} {/if} </div> <div class="space-y-2"> - <button type="button" class="btn" onclick={() => (showCustomAmount = true)} - >{$t("payments.custom")}</button - > + <button type="button" class="btn" onclick={() => (showCustomAmount = true)}> + {$t("payments.custom")} + </button> <a href={`/invoice/${id}`} class="btn">{$t("payments.cancel")}</a> </div> {/if} diff --git a/src/routes/(app)/invoice/sent/+page.svelte b/src/routes/(app)/invoice/sent/+page.svelte index 457ff108..cc87ddaf 100644 --- a/src/routes/(app)/invoice/sent/+page.svelte +++ b/src/routes/(app)/invoice/sent/+page.svelte @@ -6,5 +6,8 @@ Invoice sent to <div class="flex"> <Avatar user={$request.requester} size={12} /> - <h1 class="my-auto"><b>{$request.requester.username}</b> is ready to pay</h1> + <h1 class="my-auto"> + <b>{$request.requester.username}</b> + is ready to pay + </h1> </div> diff --git a/src/routes/(app)/invoices/+page.svelte b/src/routes/(app)/invoices/+page.svelte index 418dfaf3..61c3173f 100644 --- a/src/routes/(app)/invoices/+page.svelte +++ b/src/routes/(app)/invoices/+page.svelte @@ -23,9 +23,7 @@ {#if !show[i.id]}...{/if} </button> {/if} - <div class="md:col-span-2 whitespace-nowrap"> - {i.received} / {i.amount} - </div> + <div class="md:col-span-2 whitespace-nowrap">{i.received} / {i.amount}</div> <div class="whitespace-nowrap"> {i.memo?.startsWith("[") ? JSON.parse(i.memo)[0][1] : i.memo} </div> diff --git a/src/routes/(app)/ln/withdrawal/sent/+page.svelte b/src/routes/(app)/ln/withdrawal/sent/+page.svelte index 3f0b8711..6b7a8f95 100644 --- a/src/routes/(app)/ln/withdrawal/sent/+page.svelte +++ b/src/routes/(app)/ln/withdrawal/sent/+page.svelte @@ -20,6 +20,4 @@ <div class="opacity-0 w-screen h-screen fixed top-0 left-0 z-50"></div> </a> -<div class="flex justify-center"> - {$t("payments.tapAnywhere")} -</div> +<div class="flex justify-center">{$t("payments.tapAnywhere")}</div> diff --git a/src/routes/(app)/messages/+page.svelte b/src/routes/(app)/messages/+page.svelte index 2aaede8b..550daed4 100644 --- a/src/routes/(app)/messages/+page.svelte +++ b/src/routes/(app)/messages/+page.svelte @@ -76,9 +76,7 @@ </div> <div class="my-auto truncate"> <div class="my-auto ml-1 text-lg font-bold">{u.username}</div> - <div class="my-auto ml-1 text-secondary text-lg truncate"> - {content} - </div> + <div class="my-auto ml-1 text-secondary text-lg truncate">{content}</div> </div> </div> </a> diff --git a/src/routes/(app)/messages/[recipient]/+page.svelte b/src/routes/(app)/messages/[recipient]/+page.svelte index f828bde2..e82b5617 100644 --- a/src/routes/(app)/messages/[recipient]/+page.svelte +++ b/src/routes/(app)/messages/[recipient]/+page.svelte @@ -143,8 +143,7 @@ </div> </div> <div class="text-sm text-gray-400 mb-6" class:text-right={ours}> - {format(new Date(created_at * 1000), "MMM d")}, - {format(new Date(created_at * 1000), "h:mm aa")} + {format(new Date(created_at * 1000), "MMM d")}, {format(new Date(created_at * 1000), "h:mm aa")} </div> {/if} {/each} diff --git a/src/routes/(app)/pay/[username]/[...amount]/+page.svelte b/src/routes/(app)/pay/[username]/[...amount]/+page.svelte index 6cae555c..aa46cfd5 100644 --- a/src/routes/(app)/pay/[username]/[...amount]/+page.svelte +++ b/src/routes/(app)/pay/[username]/[...amount]/+page.svelte @@ -46,9 +46,7 @@ </script> {#if form?.message} - <div class="text-red-600 text-center"> - {form.message} - </div> + <div class="text-red-600 text-center">{form.message}</div> {/if} <div class="container px-4 mt-20 max-w-xl mx-auto space-y-2"> @@ -61,17 +59,17 @@ <input name="prompt" value={subject.prompt} type="hidden" /> {#if user?.balance} - <button type="button" class="btn !w-auto grow" onclick={setMax} onkeydown={setMax} - >{#if $fiatStore} + <button type="button" class="btn !w-auto grow" onclick={setMax} onkeydown={setMax}> + {#if $fiatStore} Max {f((user.balance * rate) / sats, currency, locale)} {:else} Max ⚡️{s(user.balance)} - {/if}</button - > + {/if} + </button> {/if} <button type="submit" bind:this={next} class="btn btn-accent !w-auto grow"> - {$t("payments.next")}</button - > + {$t("payments.next")} + </button> </form> </div> diff --git a/src/routes/(app)/payment/[id]/+page.svelte b/src/routes/(app)/payment/[id]/+page.svelte index b8a4223d..643ce1ae 100644 --- a/src/routes/(app)/payment/[id]/+page.svelte +++ b/src/routes/(app)/payment/[id]/+page.svelte @@ -80,9 +80,7 @@ aria-label="Toggle currency display" > {#if $fiat} - <div class="flex items-center gap-1"> - {f(toFiat(amount, rate), currency, userLocale)} - </div> + <div class="flex items-center gap-1">{f(toFiat(amount, rate), currency, userLocale)}</div> {:else} <div class="flex items-center gap-1"> <iconify-icon noobserver icon="ph:lightning-fill" class="text-yellow-300"></iconify-icon> @@ -136,8 +134,7 @@ <div class="text-secondary flex"> <div class="flex items-center"> <iconify-icon noobserver icon="ph:lightning-fill" class="text-yellow-300"></iconify-icon> - {s((1 * sats) / rate)} = - {f(1, currency, userLocale, 0, 0)} + {s((1 * sats) / rate)} = {f(1, currency, userLocale, 0, 0)} </div> </div> </div> @@ -146,8 +143,7 @@ <div> <span class="text-lg text-secondary">{$t("payments.date")}</span> <div> - {format(new Date(created), "h:mmaaa", { locale })} - {format(new Date(created), "MMM d, yyyy", { locale })} + {format(new Date(created), "h:mmaaa", { locale })}{format(new Date(created), "MMM d, yyyy", { locale })} </div> </div> @@ -158,7 +154,8 @@ </a> {:else if type === types.fund} <a href={`/fund/${memo}`} class="btn btn-accent"> - <iconify-icon noobserver icon="ph:lightning-fill" class="text-yellow-300"></iconify-icon>{$t( + <iconify-icon noobserver icon="ph:lightning-fill" class="text-yellow-300"></iconify-icon> + {$t( "payments.viewFund", )} </a> @@ -166,7 +163,8 @@ {@const eid = JSON.parse(memo).tags.find((t) => t[0] === "e")[1]} <a href={`/e/${eid}`} class="btn btn-accent"> <img src="/images/nostr.png" class="w-8" alt="Nostr" /> - <iconify-icon noobserver icon="ph:lightning-fill" class="text-yellow-300"></iconify-icon>{$t( + <iconify-icon noobserver icon="ph:lightning-fill" class="text-yellow-300"></iconify-icon> + {$t( "payments.zappedEvent", )} </a> @@ -198,11 +196,13 @@ <a href={`${expl}/tx/${txid}${vout ? "#vout=" + vout : ""}`} target="_blank" - rel="noreferrer">{txid}</a + rel="noreferrer" > + {txid} + </a> </div> - <button class="flex font-bold hover:opacity-80 mb-auto my-auto" onclick={() => copy(txid)}> - </button> + <button class="flex font-bold hover:opacity-80 mb-auto my-auto" onclick={() => copy(txid)} + ></button> </div> </div> {/if} @@ -212,8 +212,8 @@ <span class="text-lg text-secondary">Path</span> <div class="flex"> <div>{path}</div> - <button class="flex font-bold hover:opacity-80 mb-auto my-auto" onclick={() => copy(path)}> - </button> + <button class="flex font-bold hover:opacity-80 mb-auto my-auto" onclick={() => copy(path)} + ></button> </div> </div> {/if} diff --git a/src/routes/(app)/payment/[id]/plain/+page.svelte b/src/routes/(app)/payment/[id]/plain/+page.svelte index 87ad2207..ad582c02 100644 --- a/src/routes/(app)/payment/[id]/plain/+page.svelte +++ b/src/routes/(app)/payment/[id]/plain/+page.svelte @@ -67,19 +67,14 @@ <div> <span class="text-lg text-secondary">Date</span> - <div> - {format(new Date(created), "MMMM d")}, - {format(new Date(created), "h:mm aaa")} - </div> + <div>{format(new Date(created), "MMMM d")}, {format(new Date(created), "h:mm aaa")}</div> </div> {#if type === "bitcoin"} <div> <span class="text-lg text-secondary">Txid</span> <div class="flex"> - <div> - {id} - </div> + <div>{id}</div> </div> </div> {/if} diff --git a/src/routes/(app)/payments/[...page]/+page.svelte b/src/routes/(app)/payments/[...page]/+page.svelte index f6cbcba8..4d20f8ef 100644 --- a/src/routes/(app)/payments/[...page]/+page.svelte +++ b/src/routes/(app)/payments/[...page]/+page.svelte @@ -148,9 +148,7 @@ </script> <div class="space-y-5"> - <h1 class="text-center text-3xl md:text-4xl font-semibold"> - {$t("payments.header")} - </h1> + <h1 class="text-center text-3xl md:text-4xl font-semibold">{$t("payments.header")}</h1> <div class="container w-full mx-auto text-lg px-2 max-w-xl space-y-2"> <div class="mx-auto flex justify-center w-full gap-1"> @@ -205,15 +203,23 @@ {#if totalIn > 0} <span class="text-left text-base text-secondary">{$t("payments.income")}</span> <!-- <span><b>{subtotalIn ? f(subtotalIn, c) : "-"}</b></span> --> - <span><b>{tipsIn > 0 ? f(tipsIn, c, locale) : ""}</b></span> - <span class="text-right"><b>{totalIn > 0 ? f(totalIn, c, locale) : "-"}</b></span> + <span> + <b>{tipsIn > 0 ? f(tipsIn, c, locale) : ""}</b> + </span> + <span class="text-right"> + <b>{totalIn > 0 ? f(totalIn, c, locale) : "-"}</b> + </span> {/if} {#if totalOut > 0} <span class="text-left text-base text-secondary">{$t("payments.expenditure")}</span> <!-- <span><b>{subtotalOut ? f(subtotalOut, c) : "-"}</b></span> --> - <span><b>{tipsOut > 0 ? f(tipsOut, c, locale) : "-"}</b></span> - <span class="text-right"><b>{totalOut > 0 ? f(totalOut, c, locale) : "-"}</b></span> + <span> + <b>{tipsOut > 0 ? f(tipsOut, c, locale) : "-"}</b> + </span> + <span class="text-right"> + <b>{totalOut > 0 ? f(totalOut, c, locale) : "-"}</b> + </span> {/if} {/each} </div> diff --git a/src/routes/(app)/pos/+page.svelte b/src/routes/(app)/pos/+page.svelte index 0b29608d..81758c56 100644 --- a/src/routes/(app)/pos/+page.svelte +++ b/src/routes/(app)/pos/+page.svelte @@ -158,12 +158,12 @@ {#if connected} <!-- Tabs --> <div class="flex gap-2 justify-center"> - <button class="btn" class:btn-neutral={tab === "config"} onclick={() => (tab = "config")} - >Flash config</button - > - <button class="btn" class:btn-neutral={tab === "firmware"} onclick={() => (tab = "firmware")} - >Flash firmware</button - > + <button class="btn" class:btn-neutral={tab === "config"} onclick={() => (tab = "config")}> + Flash config + </button> + <button class="btn" class:btn-neutral={tab === "firmware"} onclick={() => (tab = "firmware")}> + Flash firmware + </button> </div> {#if tab === "config"} @@ -172,7 +172,11 @@ {#if configDone} <div class="text-center text-2xl">Config written ✔</div> {:else} - <div>Generated config file (<b>{bytes.length} bytes</b>)</div> + <div> + Generated config file ( + <b>{bytes.length} bytes</b> + ) + </div> <label class="label mt-2" for="littlefs-address">LittleFS address (hex)</label> <input id="littlefs-address" @@ -183,9 +187,9 @@ <div class="mt-3"> <button class="btn" onclick={flashConfig}>Flash config</button> </div> - {#if configProgress > 0}<div class="mt-2"> - Progress: {configProgress}% - </div>{/if} + {#if configProgress > 0} + <div class="mt-2">Progress: {configProgress}%</div> + {/if} {/if} {:else} <form method="POST" use:enhance class="space-y-2"> diff --git a/src/routes/(app)/printer/+page.svelte b/src/routes/(app)/printer/+page.svelte index 108af3b5..c55f0abf 100644 --- a/src/routes/(app)/printer/+page.svelte +++ b/src/routes/(app)/printer/+page.svelte @@ -76,7 +76,11 @@ {#if progress} <div class="text-center text-2xl">Done!</div> {:else} - <div>Generated config file (<b>{data.length * 2} bytes</b>)</div> + <div> + Generated config file ( + <b>{data.length * 2} bytes</b> + ) + </div> <button class="btn" onclick={flash}>Flash</button> {/if} {:else} diff --git a/src/routes/(app)/receive/[...token]/+page.svelte b/src/routes/(app)/receive/[...token]/+page.svelte index bea32277..63f34fb4 100644 --- a/src/routes/(app)/receive/[...token]/+page.svelte +++ b/src/routes/(app)/receive/[...token]/+page.svelte @@ -75,8 +75,6 @@ </button> </div> - <button bind:this={el} type="submit" class="btn"> - {$t("user.send.next")} - </button> + <button bind:this={el} type="submit" class="btn">{$t("user.send.next")}</button> </form> </div> diff --git a/src/routes/(app)/reset/[code]/+page.svelte b/src/routes/(app)/reset/[code]/+page.svelte index deade18a..a2b13a30 100644 --- a/src/routes/(app)/reset/[code]/+page.svelte +++ b/src/routes/(app)/reset/[code]/+page.svelte @@ -74,9 +74,7 @@ <h1 class="text-2xl font-bold text-center">{$t("login.reset")}</h1> {#if form?.error} - <div class="text-red-600 text-center" in:fly> - {form.error} - </div> + <div class="text-red-600 text-center" in:fly>{form.error}</div> {/if} <form class="space-y-5" method="POST" onsubmit={handleSubmit}> @@ -84,8 +82,7 @@ <PasswordInput bind:value={$password} placeholder={$t("login.password")} /> <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. + 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 diff --git a/src/routes/(app)/send/[...text]/+page.svelte b/src/routes/(app)/send/[...text]/+page.svelte index 28332f6b..ea364b47 100644 --- a/src/routes/(app)/send/[...text]/+page.svelte +++ b/src/routes/(app)/send/[...text]/+page.svelte @@ -71,9 +71,7 @@ <svelte:window bind:innerWidth={w} /> <div class="container px-4 max-w-lg mx-auto space-y-5 mt-20"> - <h1 class="px-3 md:px-0 text-center text-3xl md:text-4xl font-semibold"> - {$t("payments.send")} - </h1> + <h1 class="px-3 md:px-0 text-center text-3xl md:text-4xl font-semibold">{$t("payments.send")}</h1> <form method="POST" use:enhance class="space-y-2 text-xl"> {#if form?.error} @@ -125,9 +123,7 @@ {#if contacts.length} <div class="space-y-5"> - <h1 class="px-3 md:px-0 text-2xl font-semibold mt-10"> - {$t("user.send.contacts")} - </h1> + <h1 class="px-3 md:px-0 text-2xl font-semibold mt-10">{$t("user.send.contacts")}</h1> <div> {#each all || contacts as c, i} <a href={`/pay/${c.username}`} class="contents"> @@ -142,7 +138,9 @@ onclick={(e) => pin(e, c)} aria-label={c.pinned ? "Unpin contact" : "Pin contact"} > - <iconify-icon icon={c.pinned ? "ph:push-pin-fill" : "ph:push-pin-bold"} width={32} + <iconify-icon + icon={c.pinned ? "ph:push-pin-fill" : "ph:push-pin-bold"} + width={32} ></iconify-icon> </button> <button diff --git a/src/routes/(app)/send/ark/[address]/+page.svelte b/src/routes/(app)/send/ark/[address]/+page.svelte index 23f3a7fb..705d73f7 100644 --- a/src/routes/(app)/send/ark/[address]/+page.svelte +++ b/src/routes/(app)/send/ark/[address]/+page.svelte @@ -37,13 +37,13 @@ <Numpad bind:amount={a} bind:fiat {currency} {submit} bind:rate={$rate} {locale} /> <div class="flex justify-center gap-2"> - <button type="button" class="btn !w-auto grow" onclick={setMax} onkeydown={setMax} - >{#if $fiatStore} + <button type="button" class="btn !w-auto grow" onclick={setMax} onkeydown={setMax}> + {#if $fiatStore} Max {f((balance * $rate) / sats, currency, locale)} {:else} Max ⚡️{s(balance)} - {/if}</button - > + {/if} + </button> <form action={`/send/ark/${address}/${amount}`} class="contents"> <button bind:this={submit} type="submit" class="btn !w-auto grow btn-accent"> diff --git a/src/routes/(app)/send/bitcoin/[address]/+page.svelte b/src/routes/(app)/send/bitcoin/[address]/+page.svelte index 76ac093e..17e9a5bf 100644 --- a/src/routes/(app)/send/bitcoin/[address]/+page.svelte +++ b/src/routes/(app)/send/bitcoin/[address]/+page.svelte @@ -37,13 +37,13 @@ <Numpad bind:amount={a} bind:fiat {currency} {submit} bind:rate={$rate} {locale} /> <div class="flex justify-center gap-2"> - <button type="button" class="btn !w-auto grow" onclick={setMax} onkeydown={setMax} - >{#if $fiatStore} + <button type="button" class="btn !w-auto grow" onclick={setMax} onkeydown={setMax}> + {#if $fiatStore} Max {f((balance * $rate) / sats, currency, locale)} {:else} Max ⚡️{s(balance)} - {/if}</button - > + {/if} + </button> <form action={`/send/bitcoin/${address}/${amount}`} class="contents"> <button use:focus bind:this={submit} type="submit" class="btn !w-auto grow btn-accent"> 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 49dbe7c6..adf379da 100644 --- a/src/routes/(app)/send/bitcoin/[address]/[amount]/[...feeRate]/+page.svelte +++ b/src/routes/(app)/send/bitcoin/[address]/[amount]/[...feeRate]/+page.svelte @@ -177,9 +177,9 @@ <div class="flex flex-wrap gap-4 justify-center"> <select bind:value={feeRate} onchange={setFee}> {#each Object.keys(feeNames) as feeName} - <option value={fees[feeName]} - >{feeNames[feeName]} — {fees[feeName]} sats/vb</option - > + <option value={fees[feeName]}> + {feeNames[feeName]} — {fees[feeName]} sats/vb + </option> {/each} </select> <Amount amount={fee} rate={$rate} {currency} /> diff --git a/src/routes/(app)/send/fund/[...name]/[...amount]/+page.svelte b/src/routes/(app)/send/fund/[...name]/[...amount]/+page.svelte index d0cf6743..49284b57 100644 --- a/src/routes/(app)/send/fund/[...name]/[...amount]/+page.svelte +++ b/src/routes/(app)/send/fund/[...name]/[...amount]/+page.svelte @@ -44,9 +44,7 @@ </script> {#if form?.message} - <div class="text-red-600 text-center"> - {form.message} - </div> + <div class="text-red-600 text-center">{form.message}</div> {/if} <div class="container px-4 mt-20 max-w-xl mx-auto"> @@ -64,12 +62,13 @@ onclick={setMax} disabled={submitting} onkeydown={setMax} - >{#if $fiatStore} + > + {#if $fiatStore} Max {f((balance * rate) / sats, currency, locale)} {:else} Max ⚡️{s(balance)} - {/if}</button - > + {/if} + </button> <button use:focus bind:this={submit} type="submit" class="btn btn-accent !w-auto grow"> {#if submitting} diff --git a/src/routes/(app)/send/invoice/[id]/+page.svelte b/src/routes/(app)/send/invoice/[id]/+page.svelte index 9174cf4c..e8ba3bfd 100644 --- a/src/routes/(app)/send/invoice/[id]/+page.svelte +++ b/src/routes/(app)/send/invoice/[id]/+page.svelte @@ -97,34 +97,24 @@ </script> {#if form?.message} - <div class="text-red-600 text-center"> - {form.message} - </div> + <div class="text-red-600 text-center">{form.message}</div> {/if} <div class="container px-4 max-w-xl mx-auto text-center space-y-5"> {#if amount} - <h1 class="text-4xl font-bold"> - {$t("payments.send")} - </h1> + <h1 class="text-4xl font-bold">{$t("payments.send")}</h1> <Amount {amount} {tip} {rate} {currency} {locale} /> - <h1 class="text-xl text-secondary"> - {$t("payments.to")} - </h1> + <h1 class="text-xl text-secondary">{$t("payments.to")}</h1> <div class="flex p-1 gap-2 justify-center"> <Avatar user={recipient} size={20} /> - <p class="text-4xl break-words my-auto"> - {recipient.username} - </p> + <p class="text-4xl break-words my-auto">{recipient.username}</p> </div> {#if invoice.items.length} - <h1 class="text-xl md:text-2xl text-secondary"> - {$t("payments.for")} - </h1> + <h1 class="text-xl md:text-2xl text-secondary">{$t("payments.for")}</h1> {#each invoice.items as i} <div class="grid grid-cols-4 text-xl"> @@ -165,13 +155,13 @@ {/if} </button> {:else} - <button type="button" class="btn !w-auto grow" onclick={setMax} onkeydown={setMax} - >{#if $fiatStore} + <button type="button" class="btn !w-auto grow" onclick={setMax} onkeydown={setMax}> + {#if $fiatStore} Max {f((balance * rate) / sats, currency, locale)} {:else} Max ⚡️{s(balance)} - {/if}</button - > + {/if} + </button> <button bind:this={submit} @@ -188,8 +178,8 @@ {#if !trusted} <button type="button" class="btn" onclick={toggleTrust}> <iconify-icon icon="ph:star-fill" width={32}></iconify-icon> - {$t("payments.trustUser")}</button - > + {$t("payments.trustUser")} + </button> {/if} </form> </div> diff --git a/src/routes/(app)/send/lightning/[payreq]/[...memo]/+page.svelte b/src/routes/(app)/send/lightning/[payreq]/[...memo]/+page.svelte index fbafd7d4..b8f39802 100644 --- a/src/routes/(app)/send/lightning/[payreq]/[...memo]/+page.svelte +++ b/src/routes/(app)/send/lightning/[payreq]/[...memo]/+page.svelte @@ -104,9 +104,7 @@ {/if} {#if amount} <div> - <h1 class="text-lg text-secondary"> - {$t("payments.send")} - </h1> + <h1 class="text-lg text-secondary">{$t("payments.send")}</h1> <Amount {amount} rate={$rate} {currency} {locale} /> </div> @@ -123,9 +121,7 @@ <div class="flex flex-wrap gap-4 justify-center"> <div class="my-auto"> {#if $fiat} - <h2 class="text-xl"> - {f(toFiat(ourfee as number, $rate as number), currency)} - </h2> + <h2 class="text-xl">{f(toFiat(ourfee as number, $rate as number), currency)}</h2> {:else} <h3 class="text-secondary">⚡️{s(ourfee)}</h3> {/if} @@ -144,9 +140,7 @@ <div class="mx-auto space-y-2"> <label for="maxfee" class="text-lg text-secondary">{$t("payments.maxfee")}</label> - <div class="text-secondary"> - {$t("payments.maxFeeDesc")} - </div> + <div class="text-secondary">{$t("payments.maxFeeDesc")}</div> <label class="input input-bordered border-primary input-lg rounded-2xl flex items-center gap-2 text-left" @@ -166,9 +160,9 @@ </button> {#if !(form?.message || showMax)} - <button type="button" class="btn" onclick={() => (showMax = !showMax)} - >{$t("payments.advancedSettings")}</button - > + <button type="button" class="btn" onclick={() => (showMax = !showMax)}> + {$t("payments.advancedSettings")} + </button> <input name="maxfee" type="hidden" bind:value={maxfee} /> {/if} </form> diff --git a/src/routes/(app)/send/zap/[id]/[...amount]/+page.svelte b/src/routes/(app)/send/zap/[id]/[...amount]/+page.svelte index bf5f5202..2e478695 100644 --- a/src/routes/(app)/send/zap/[id]/[...amount]/+page.svelte +++ b/src/routes/(app)/send/zap/[id]/[...amount]/+page.svelte @@ -54,9 +54,7 @@ <div class="container px-4 max-w-xl mx-auto text-center space-y-2"> {#if form?.message} - <div class="text-red-600 text-center"> - {$t(form.message)} - </div> + <div class="text-red-600 text-center">{$t(form.message)}</div> {/if} <form method="POST" action="?/setAmount" class="space-y-2" use:enhance> <input type="hidden" value={a} name="amount" /> diff --git a/src/routes/(app)/sent/[id]/+page.svelte b/src/routes/(app)/sent/[id]/+page.svelte index 3dde854f..aaf2a3a0 100644 --- a/src/routes/(app)/sent/[id]/+page.svelte +++ b/src/routes/(app)/sent/[id]/+page.svelte @@ -15,6 +15,4 @@ <div class="opacity-0 w-screen h-screen fixed top-0 left-0 z-50"></div> </a> -<div class="flex justify-center mt-4"> - {$t("payments.tapAnywhere")} -</div> +<div class="flex justify-center mt-4">{$t("payments.tapAnywhere")}</div> diff --git a/src/routes/(app)/settings/account/+page.svelte b/src/routes/(app)/settings/account/+page.svelte index 7a1bbab1..c435aced 100644 --- a/src/routes/(app)/settings/account/+page.svelte +++ b/src/routes/(app)/settings/account/+page.svelte @@ -117,9 +117,7 @@ <div class="space-y-1 relative"> <label for="email" class="font-bold block">{$t("user.settings.email")}</label> - <p class="text-secondary"> - {$t("user.settings.emailDescription")} - </p> + <p class="text-secondary">{$t("user.settings.emailDescription")}</p> <label class="input input-bordered border-primary input-lg rounded-2xl flex items-center gap-2"> <input type="text" name="email" class="clean" bind:value={email} /> @@ -138,9 +136,7 @@ <span class="font-bold">{$t("user.settings.notifications")}</span> <Toggle id="notify" bind:value={user.notify} /> </div> - <p class="text-secondary mt-1 w-9/12"> - {$t("user.settings.notificationsDesc")} - </p> + <p class="text-secondary mt-1 w-9/12">{$t("user.settings.notificationsDesc")}</p> </div> <div> @@ -164,16 +160,12 @@ <span class="font-bold">{$t("user.settings.tipPrompt")}</span> <Toggle id="prompt" bind:value={user.prompt} /> </div> - <p class="text-secondary mt-1 w-9/12"> - {$t("user.settings.tipPromptDescription")} - </p> + <p class="text-secondary mt-1 w-9/12">{$t("user.settings.tipPromptDescription")}</p> </div> <div class="space-y-1 relative"> <label for="tip" class="font-bold block">{$t("user.settings.tip")}</label> - <p class="text-secondary"> - {$t("user.settings.tipDesc")} - </p> + <p class="text-secondary">{$t("user.settings.tipDesc")}</p> <label class="input input-bordered border-primary input-lg rounded-2xl flex items-center gap-2"> <input type="text" name="tip" class="clean" bind:value={tip} /> @@ -185,9 +177,7 @@ <span class="font-bold">{$t("user.settings.autoWithdraw")}</span> <Toggle id="autowithdraw" bind:value={user.autowithdraw} /> </div> - <p class="text-secondary mt-1 w-9/12"> - {$t("user.settings.autoWithdrawDescription")} - </p> + <p class="text-secondary mt-1 w-9/12">{$t("user.settings.autoWithdrawDescription")}</p> </div> <div class:hidden={!user.autowithdraw}> @@ -213,9 +203,7 @@ </div> <input type="hidden" name="threshold" bind:value={user.threshold} /> </button> - <p class="text-secondary mt-1"> - {$t("user.settings.thresholdDesc")} - </p> + <p class="text-secondary mt-1">{$t("user.settings.thresholdDesc")}</p> </div> <div> @@ -229,18 +217,14 @@ </div> <input type="hidden" name="reserve" bind:value={user.reserve} /> </button> - <p class="text-secondary mt-1"> - {$t("user.settings.reserveDesc")} - </p> + <p class="text-secondary mt-1">{$t("user.settings.reserveDesc")}</p> </div> </div> {#if editingThreshold} <div class="fixed bg-base-100/90 inset-0 overflow-y-auto h-full w-full z-50 max-w-lg mx-auto"> <div class="relative p-5 border shadow-lg rounded-md bg-base-100 space-y-5"> - <h1 class="text-center text-2xl font-semibold"> - {$t("user.settings.threshold")} - </h1> + <h1 class="text-center text-2xl font-semibold">{$t("user.settings.threshold")}</h1> <Numpad bind:amount={user.threshold} {currency} @@ -257,9 +241,7 @@ {#if editingReserve} <div class="fixed bg-base-100/90 inset-0 overflow-y-auto h-full w-full z-50 mx-auto max-w-lg"> <div class="relative mx-auto p-5 border shadow-lg rounded-md bg-base-100 space-y-5 text-center"> - <h1 class="text-2xl font-semibold"> - {$t("user.settings.reserve")} - </h1> + <h1 class="text-2xl font-semibold">{$t("user.settings.reserve")}</h1> <Numpad bind:amount={user.reserve} {currency} @@ -275,8 +257,8 @@ {#if connect !== "connected"} <a href={connect} class="btn flex"> <img src="/images/square.svg" class="w-12" alt="Square" /> - <div>{$t("user.settings.connectSquare")}</div></a - > + <div>{$t("user.settings.connectSquare")}</div> + </a> {:else} <button type="button" onclick={revoke} class="btn"> <img src="/images/square.svg" class="w-12" class:invert={$theme === "dark"} alt="Square" /> diff --git a/src/routes/(app)/settings/nostr/+page.svelte b/src/routes/(app)/settings/nostr/+page.svelte index 35ae2b92..844433c3 100644 --- a/src/routes/(app)/settings/nostr/+page.svelte +++ b/src/routes/(app)/settings/nostr/+page.svelte @@ -55,12 +55,8 @@ <input type="hidden" name="extension" value={extension} /> <div> - <h2 class="text-2xl font-bold mb-2"> - {$t("user.settings.nwc")} - </h2> - <p class="text-secondary mb-4"> - {$t("user.settings.nwcDescription")} - </p> + <h2 class="text-2xl font-bold mb-2">{$t("user.settings.nwc")}</h2> + <p class="text-secondary mb-4">{$t("user.settings.nwcDescription")}</p> <div class="space-y-2"> {#each apps as app, i} @@ -75,18 +71,14 @@ <iconify-icon noobserver icon="ph:lightning-fill" class="text-yellow-300" ></iconify-icon> {#if $fiat && $rate} - {f((app.spent * ($rate as number)) / sats, user.currency, locale)} / - {f((app.max_amount * ($rate as number)) / sats, user.currency, locale)} + {f((app.spent * ($rate as number)) / sats, user.currency, locale)} / {f((app.max_amount * ($rate as number)) / sats, user.currency, locale)} {:else} - {s(app.spent, locale)} / - {s(app.max_amount, locale)} + {s(app.spent, locale)} / {s(app.max_amount, locale)} {/if} </div> {#if app.budget_renewal !== "never"} - <div> - {app.budget_renewal} - </div> + <div>{app.budget_renewal}</div> {/if} </div> {/if} @@ -154,14 +146,12 @@ </div> {#if revealNwc} - <div class="break-all grow"> - {nwc} - </div> + <div class="break-all grow">{nwc}</div> <div class="flex flex-wrap gap-2"> <button onclick={() => copy(nwc)} type="button" class="btn grow"> <iconify-icon noobserver icon="ph:copy-bold" width="32"></iconify-icon> - <div class="my-auto">{$t("accounts.copy")}</div></button - > + <div class="my-auto">{$t("accounts.copy")}</div> + </button> <a href={`/qr/${encodeURIComponent(nwc)}`} class="btn grow"> <iconify-icon noobserver icon="ph:qr-code-bold" width="32"></iconify-icon> <div class="my-auto">{$t("user.receive.showQR")}</div> @@ -179,9 +169,10 @@ class="my-auto btn btn-circle !w-auto grow" onclick={() => copy(npub)} aria-label="Copy" - ><iconify-icon noobserver icon="ph:copy-bold" width="32"></iconify-icon> - {$t("accounts.copy")}</button > + <iconify-icon noobserver icon="ph:copy-bold" width="32"></iconify-icon> + {$t("accounts.copy")} + </button> <a href={`/qr/${encodeURIComponent(npub)}`} @@ -197,8 +188,8 @@ {#if extensionAvailable} <button class="btn" type="button" onclick={getPubkey}> <img src="/images/alby.svg" width="32" alt="Alby" /> - {$t("user.settings.syncWithExtension")}</button - > + {$t("user.settings.syncWithExtension")} + </button> {/if} </div> @@ -206,9 +197,7 @@ <div class="space-y-2"> <label for="seedphrase" class="font-bold">{$t("user.settings.nostrKeys")}</label> - <p class="text-secondary mb-1"> - {$t("user.settings.nostrDescription")} - </p> + <p class="text-secondary mb-1">{$t("user.settings.nostrDescription")}</p> <div class="flex flex-wrap sm:flex-nowrap gap-2"> <button type="button" class="btn !w-auto flex-grow" onclick={toggleNsec}> @@ -236,11 +225,7 @@ </div> {/if} -<span class="font-bold" id="dm-relays"> - {$t("user.settings.preferredDM")} -</span> -<p class="text-secondary mb-1"> - {$t("user.settings.preferredDMDescription")} -</p> +<span class="font-bold" id="dm-relays">{$t("user.settings.preferredDM")}</span> +<p class="text-secondary mb-1">{$t("user.settings.preferredDMDescription")}</p> <textarea id="dmRelays" name="dmRelays" rows={3}></textarea> diff --git a/src/routes/(app)/settings/profile/+page.svelte b/src/routes/(app)/settings/profile/+page.svelte index e56f8a70..201a9c30 100644 --- a/src/routes/(app)/settings/profile/+page.svelte +++ b/src/routes/(app)/settings/profile/+page.svelte @@ -119,9 +119,9 @@ {/if} <div class="ml-2 p-2"> <!-- found missing translation --> - <button type="button" class="btn" onclick={selectAvatar} onkeydown={selectAvatar} - >{$t("user.settings.select")}</button - > + <button type="button" class="btn" onclick={selectAvatar} onkeydown={selectAvatar}> + {$t("user.settings.select")} + </button> <input type="file" class="hidden!" @@ -159,9 +159,9 @@ ></div> {/if} - <button type="button" class="btn !w-auto" onclick={selectBanner} onkeydown={selectBanner} - >{$t("user.settings.select")}</button - > + <button type="button" class="btn !w-auto" onclick={selectBanner} onkeydown={selectBanner}> + {$t("user.settings.select")} + </button> <input type="file" class="hidden!" diff --git a/src/routes/(app)/settings/security/+page.svelte b/src/routes/(app)/settings/security/+page.svelte index cb9897a1..9666b193 100644 --- a/src/routes/(app)/settings/security/+page.svelte +++ b/src/routes/(app)/settings/security/+page.svelte @@ -163,12 +163,10 @@ <input type="hidden" name="newpin" value={disablingPin ? "delete" : pin} /> <div> - <span class="font-bold mb-1" - >{verifying ? $t("user.settings.verifyPIN") : $t("user.settings.securityPIN")}</span - > - <p class="text-secondary mb-1"> - {$t("user.settings.securityPINDescription")} - </p> + <span class="font-bold mb-1"> + {verifying ? $t("user.settings.verifyPIN") : $t("user.settings.securityPIN")} + </span> + <p class="text-secondary mb-1">{$t("user.settings.securityPINDescription")}</p> {#if verifying} <Pin bind:value={verify} {cancel} notify={false} /> {:else if settingPin} @@ -180,16 +178,14 @@ icon={haspin ? "ph:lock-key-open-bold" : "ph:lock-key-bold"} width="32" ></iconify-icon> - {haspin ? $t("user.settings.disablePIN") : $t("user.settings.enablePIN")}</button - > + {haspin ? $t("user.settings.disablePIN") : $t("user.settings.enablePIN")} + </button> {/if} </div> <div> <span class="font-bold mb-1">{$t("user.settings.twofa")}</span> - <p class="text-secondary mb-4"> - {$t("user.settings.twofaDescription")} - </p> + <p class="text-secondary mb-4">{$t("user.settings.twofaDescription")}</p> {#if setting2fa} <a href={otp.uri}> @@ -197,7 +193,8 @@ </a> <div class="text-center my-4"> - {$t("user.settings.accountId")}<br /> + {$t("user.settings.accountId")} + <br /> <b>{otp.secret}</b> </div> diff --git a/src/routes/(app)/sign/+page.svelte b/src/routes/(app)/sign/+page.svelte index fbea78ed..32b96fe8 100644 --- a/src/routes/(app)/sign/+page.svelte +++ b/src/routes/(app)/sign/+page.svelte @@ -18,8 +18,8 @@ <button onclick={() => copy(signature)} type="button" class="btn grow"> <iconify-icon noobserver icon="ph:copy-bold" width="32"></iconify-icon> - <div class="my-auto">Copy</div></button - > + <div class="my-auto">Copy</div> + </button> {:else} <div class="text-2xl break-all">{address}</div> <form use:enhance method="POST" class="space-y-5"> diff --git a/src/routes/(app)/verify/[code]/+page.svelte b/src/routes/(app)/verify/[code]/+page.svelte index 813c29e6..c8587f2f 100644 --- a/src/routes/(app)/verify/[code]/+page.svelte +++ b/src/routes/(app)/verify/[code]/+page.svelte @@ -23,6 +23,4 @@ <div class="opacity-0 w-screen h-screen fixed top-0 left-0 z-50"></div> </a> -<div class="flex justify-center"> - {$t("payments.tapAnywhere")} -</div> +<div class="flex justify-center">{$t("payments.tapAnywhere")}</div> |
