diff options
| author | Adam Soltys <[email protected]> | 2026-02-24 13:01:02 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2026-02-24 13:01:02 -0800 |
| commit | db59579a2efa8416f78c855faa7d7e62048447e5 (patch) | |
| tree | 28444081de0120f21f7596198937bdd52fe43495 /src/routes | |
| parent | 7eec7ac0b322b510b4e2cedef62422b6043d6405 (diff) | |
| download | coinos-ui-db59579a2efa8416f78c855faa7d7e62048447e5.tar.gz coinos-ui-db59579a2efa8416f78c855faa7d7e62048447e5.zip | |
lint
Diffstat (limited to 'src/routes')
| -rw-r--r-- | src/routes/(app)/ln/[lnurl]/+page.server.ts | 4 | ||||
| -rw-r--r-- | src/routes/(app)/payment/[id]/+page.svelte | 17 | ||||
| -rw-r--r-- | src/routes/(static)/login/+page.server.ts | 3 |
3 files changed, 17 insertions, 7 deletions
diff --git a/src/routes/(app)/ln/[lnurl]/+page.server.ts b/src/routes/(app)/ln/[lnurl]/+page.server.ts index eec5ce31..39bc0e72 100644 --- a/src/routes/(app)/ln/[lnurl]/+page.server.ts +++ b/src/routes/(app)/ln/[lnurl]/+page.server.ts @@ -12,7 +12,9 @@ export async function load({ params, parent }) { let data; const { lnurl } = params; - const url = Buffer.from(fromWords(decode(lnurl as `${string}1${string}`, 20000).words)).toString(); + const url = Buffer.from( + fromWords(decode(lnurl as `${string}1${string}`, 20000).words), + ).toString(); try { data = await get(`/decode?text=${lnurl}`); diff --git a/src/routes/(app)/payment/[id]/+page.svelte b/src/routes/(app)/payment/[id]/+page.svelte index 415581b6..84a728a0 100644 --- a/src/routes/(app)/payment/[id]/+page.svelte +++ b/src/routes/(app)/payment/[id]/+page.svelte @@ -144,7 +144,7 @@ <div> <span class="text-lg text-secondary">{$t("payments.date")}</span> <div> - {format(new Date(created), "MMM d, yyyy", { locale })} {format(new Date(created), "h:mmaaa", { locale })} + {format(new Date(created), "MMM d, yyyy", { locale })}{format(new Date(created), "h:mmaaa", { locale })} </div> </div> @@ -199,7 +199,10 @@ <span class="text-lg text-secondary">Txid</span> <div class="flex"> <div>{hash}</div> - <button class="flex font-bold hover:opacity-80 mb-auto my-auto" onclick={() => copy(hash)} aria-label="Copy transaction ID" + <button + class="flex font-bold hover:opacity-80 mb-auto my-auto" + onclick={() => copy(hash)} + aria-label="Copy transaction ID" ></button> </div> </div> @@ -218,7 +221,10 @@ {txid} </a> </div> - <button class="flex font-bold hover:opacity-80 mb-auto my-auto" onclick={() => copy(txid)} aria-label="Copy transaction ID" + <button + class="flex font-bold hover:opacity-80 mb-auto my-auto" + onclick={() => copy(txid)} + aria-label="Copy transaction ID" ></button> </div> </div> @@ -229,7 +235,10 @@ <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)} aria-label="Copy path" + <button + class="flex font-bold hover:opacity-80 mb-auto my-auto" + onclick={() => copy(path)} + aria-label="Copy path" ></button> </div> </div> diff --git a/src/routes/(static)/login/+page.server.ts b/src/routes/(static)/login/+page.server.ts index 18f9cb20..4200bc01 100644 --- a/src/routes/(static)/login/+page.server.ts +++ b/src/routes/(static)/login/+page.server.ts @@ -42,8 +42,7 @@ export const actions = { passkey: async ({ cookies, fetch, request }) => { const form = await fd(request); let { credential, challengeId, loginRedirect } = form; - if (loginRedirect === "null" || loginRedirect === "undefined") - loginRedirect = undefined; + if (loginRedirect === "null" || loginRedirect === "undefined") loginRedirect = undefined; credential = JSON.parse(credential); const maxAge = 380 * 24 * 60 * 60; |
