diff options
| author | Adam Soltys <[email protected]> | 2026-02-11 16:16:10 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2026-02-11 16:16:10 -0800 |
| commit | 8a4b0087cbfe8b43d9b43d19af6d991a646ef3d7 (patch) | |
| tree | ce4700f6b3ccea8347404db58299308996600b92 /src/routes | |
| parent | 851906568f6669935a6141002b609a4a80a54450 (diff) | |
| download | coinos-ui-8a4b0087cbfe8b43d9b43d19af6d991a646ef3d7.tar.gz coinos-ui-8a4b0087cbfe8b43d9b43d19af6d991a646ef3d7.zip | |
remove unused imports
Diffstat (limited to 'src/routes')
83 files changed, 84 insertions, 100 deletions
diff --git a/src/routes/(app)/+error.svelte b/src/routes/(app)/+error.svelte index 38eb9238..0e31333c 100644 --- a/src/routes/(app)/+error.svelte +++ b/src/routes/(app)/+error.svelte @@ -1,4 +1,4 @@ -<script> +<script lang="ts"> import { back } from "$lib/utils"; import { page } from "$app/stores"; diff --git a/src/routes/(app)/+layout.svelte b/src/routes/(app)/+layout.svelte index b67194b7..6ac9bed5 100644 --- a/src/routes/(app)/+layout.svelte +++ b/src/routes/(app)/+layout.svelte @@ -1,4 +1,4 @@ -<script> +<script lang="ts"> import { getWallet, syncTransactions, settle } from "$lib/ark"; import { SvelteToast } from "@zerodevx/svelte-toast"; import { onDestroy, onMount } from "svelte"; diff --git a/src/routes/(app)/[username]/(profile)/+layout.svelte b/src/routes/(app)/[username]/(profile)/+layout.svelte index c17b511d..5734c71f 100644 --- a/src/routes/(app)/[username]/(profile)/+layout.svelte +++ b/src/routes/(app)/[username]/(profile)/+layout.svelte @@ -1,4 +1,4 @@ -<script> +<script lang="ts"> import { copy, f, loc, post, s, sats, success, fail } from "$lib/utils"; import { fiat } from "$lib/store"; import { t } from "$lib/translations"; diff --git a/src/routes/(app)/[username]/(profile)/+page.svelte b/src/routes/(app)/[username]/(profile)/+page.svelte index e999a731..fb4d6dd9 100644 --- a/src/routes/(app)/[username]/(profile)/+page.svelte +++ b/src/routes/(app)/[username]/(profile)/+page.svelte @@ -1,13 +1,11 @@ -<script> +<script lang="ts"> import { browser } from "$app/environment"; import { onMount } from "svelte"; - import { scale } from "svelte/transition"; - import { btc, f, sat } from "$lib/utils"; import Account from "$comp/Account.svelte"; import Balance from "$comp/Balance.svelte"; import { t } from "$lib/translations"; import { installPrompt, password } from "$lib/store"; - import { afterNavigate, preloadData } from "$app/navigation"; + import { afterNavigate } from "$app/navigation"; import { page } from "$app/stores"; let { data } = $props(); diff --git a/src/routes/(app)/[username]/(profile)/notes/+page.svelte b/src/routes/(app)/[username]/(profile)/notes/+page.svelte index eaea9635..6a452be3 100644 --- a/src/routes/(app)/[username]/(profile)/notes/+page.svelte +++ b/src/routes/(app)/[username]/(profile)/notes/+page.svelte @@ -1,7 +1,7 @@ <script lang="ts"> import { t } from "$lib/translations"; import Event from "$comp/Event.svelte"; - import { get, post } from "$lib/utils"; + import { post } from "$lib/utils"; import { onMount } from "svelte"; import { ignore } from "$lib/store"; diff --git a/src/routes/(app)/[username]/(profile)/notes/new/+page.svelte b/src/routes/(app)/[username]/(profile)/notes/new/+page.svelte index 445890a3..ff4524e1 100644 --- a/src/routes/(app)/[username]/(profile)/notes/new/+page.svelte +++ b/src/routes/(app)/[username]/(profile)/notes/new/+page.svelte @@ -1,4 +1,4 @@ -<script> +<script lang="ts"> import { goto } from "$app/navigation"; import { send, sign } from "$lib/nostr"; import { t } from "$lib/translations"; diff --git a/src/routes/(app)/[username]/+layout.svelte b/src/routes/(app)/[username]/+layout.svelte index e3ad7259..883fedb4 100644 --- a/src/routes/(app)/[username]/+layout.svelte +++ b/src/routes/(app)/[username]/+layout.svelte @@ -1,4 +1,4 @@ -<script> +<script lang="ts"> let { data, children, fixed } = $props(); </script> diff --git a/src/routes/(app)/[username]/accepted/create/+page.svelte b/src/routes/(app)/[username]/accepted/create/+page.svelte index b1997a36..339aae16 100644 --- a/src/routes/(app)/[username]/accepted/create/+page.svelte +++ b/src/routes/(app)/[username]/accepted/create/+page.svelte @@ -1,4 +1,4 @@ -<script> +<script lang="ts"> import { run, preventDefault } from 'svelte/legacy'; import { goto } from "$app/navigation"; diff --git a/src/routes/(app)/[username]/receive/+page.svelte b/src/routes/(app)/[username]/receive/+page.svelte index 99dc9f7e..009422a5 100644 --- a/src/routes/(app)/[username]/receive/+page.svelte +++ b/src/routes/(app)/[username]/receive/+page.svelte @@ -1,4 +1,4 @@ -<script> +<script lang="ts"> import { run } from "svelte/legacy"; import { btc, diff --git a/src/routes/(app)/account/[id]/+page.svelte b/src/routes/(app)/account/[id]/+page.svelte index f572d1f4..ad977e7a 100644 --- a/src/routes/(app)/account/[id]/+page.svelte +++ b/src/routes/(app)/account/[id]/+page.svelte @@ -1,4 +1,4 @@ -<script> +<script lang="ts"> import { page } from "$app/stores"; import Mnemonic from "$comp/Mnemonic.svelte"; import WalletPass from "$comp/WalletPass.svelte"; diff --git a/src/routes/(app)/account/bitcoin/+page.svelte b/src/routes/(app)/account/bitcoin/+page.svelte index d45ff8c6..ca90c758 100644 --- a/src/routes/(app)/account/bitcoin/+page.svelte +++ b/src/routes/(app)/account/bitcoin/+page.svelte @@ -1,4 +1,4 @@ -<script> +<script lang="ts"> import { t } from "$lib/translations"; </script> diff --git a/src/routes/(app)/account/cash/+page.svelte b/src/routes/(app)/account/cash/+page.svelte index 9a94ab7f..378d36ee 100644 --- a/src/routes/(app)/account/cash/+page.svelte +++ b/src/routes/(app)/account/cash/+page.svelte @@ -1,4 +1,4 @@ -<script> +<script lang="ts"> import { t } from "$lib/translations";</script> <div class="space-y-5"> diff --git a/src/routes/(app)/account/import/+page.svelte b/src/routes/(app)/account/import/+page.svelte index 7b6857e5..551cbb2d 100644 --- a/src/routes/(app)/account/import/+page.svelte +++ b/src/routes/(app)/account/import/+page.svelte @@ -1,4 +1,4 @@ -<script> +<script lang="ts"> import { run, preventDefault } from "svelte/legacy"; import { goto } from "$app/navigation"; diff --git a/src/routes/(app)/account/new/+page.svelte b/src/routes/(app)/account/new/+page.svelte index 03076b63..a514237a 100644 --- a/src/routes/(app)/account/new/+page.svelte +++ b/src/routes/(app)/account/new/+page.svelte @@ -1,4 +1,4 @@ -<script> +<script lang="ts"> import { t } from "$lib/translations"; </script> diff --git a/src/routes/(app)/account/seed/+page.svelte b/src/routes/(app)/account/seed/+page.svelte index 3779929b..537121af 100644 --- a/src/routes/(app)/account/seed/+page.svelte +++ b/src/routes/(app)/account/seed/+page.svelte @@ -1,4 +1,4 @@ -<script> +<script lang="ts"> import Mnemonic from "$comp/Mnemonic.svelte"; import { browser } from "$app/environment"; import { tick, onMount } from "svelte"; diff --git a/src/routes/(app)/account/setup/+page.svelte b/src/routes/(app)/account/setup/+page.svelte index 3109c10b..09703d92 100644 --- a/src/routes/(app)/account/setup/+page.svelte +++ b/src/routes/(app)/account/setup/+page.svelte @@ -1,4 +1,4 @@ -<script> +<script lang="ts"> import { t } from "$lib/translations"; </script> diff --git a/src/routes/(app)/admin/+layout.svelte b/src/routes/(app)/admin/+layout.svelte index 39cfe5ed..6c564dac 100644 --- a/src/routes/(app)/admin/+layout.svelte +++ b/src/routes/(app)/admin/+layout.svelte @@ -1,4 +1,4 @@ -<script> +<script lang="ts"> import LandingHeader from "$comp/LandingHeader.svelte"; let { data, children } = $props(); let { user } = data; diff --git a/src/routes/(app)/admin/+page.svelte b/src/routes/(app)/admin/+page.svelte index ccaa8794..a2a761fe 100644 --- a/src/routes/(app)/admin/+page.svelte +++ b/src/routes/(app)/admin/+page.svelte @@ -1,4 +1,4 @@ -<script> +<script lang="ts"> import { post } from "$lib/utils"; let { data } = $props(); let reset = (username) => post(`/reset`, { password }); diff --git a/src/routes/(app)/apps/[pubkey]/+page.svelte b/src/routes/(app)/apps/[pubkey]/+page.svelte index d1a5f2bd..b15fa717 100644 --- a/src/routes/(app)/apps/[pubkey]/+page.svelte +++ b/src/routes/(app)/apps/[pubkey]/+page.svelte @@ -1,4 +1,4 @@ -<script> +<script lang="ts"> import { t } from "$lib/translations"; import AppForm from "$comp/AppForm.svelte"; import { untrack } from "svelte"; diff --git a/src/routes/(app)/apps/[pubkey]/payments/+page.svelte b/src/routes/(app)/apps/[pubkey]/payments/+page.svelte index d3fb3bc3..fe74dc5a 100644 --- a/src/routes/(app)/apps/[pubkey]/payments/+page.svelte +++ b/src/routes/(app)/apps/[pubkey]/payments/+page.svelte @@ -1,4 +1,4 @@ -<script> +<script lang="ts"> import { loc } from "$lib/utils"; import Payments from "$comp/Payments.svelte"; import { t } from "$lib/translations"; diff --git a/src/routes/(app)/apps/new/+page.svelte b/src/routes/(app)/apps/new/+page.svelte index 194840a8..583a4ba0 100644 --- a/src/routes/(app)/apps/new/+page.svelte +++ b/src/routes/(app)/apps/new/+page.svelte @@ -1,4 +1,4 @@ -<script> +<script lang="ts"> import { t } from "$lib/translations"; import AppForm from "$comp/AppForm.svelte"; diff --git a/src/routes/(app)/e/[id]/+page.svelte b/src/routes/(app)/e/[id]/+page.svelte index 820d449d..40a9910a 100644 --- a/src/routes/(app)/e/[id]/+page.svelte +++ b/src/routes/(app)/e/[id]/+page.svelte @@ -1,4 +1,4 @@ -<script> +<script lang="ts"> import Event from "$comp/Event.svelte"; let { data } = $props(); diff --git a/src/routes/(app)/ecash/[id]/[...version]/+layout.svelte b/src/routes/(app)/ecash/[id]/[...version]/+layout.svelte index 1f20820c..bf00964b 100644 --- a/src/routes/(app)/ecash/[id]/[...version]/+layout.svelte +++ b/src/routes/(app)/ecash/[id]/[...version]/+layout.svelte @@ -1,4 +1,4 @@ -<script> +<script lang="ts"> import { copy, sats, f, s } from "$lib/utils"; import { t } from "$lib/translations"; import { fiat } from "$lib/store"; diff --git a/src/routes/(app)/ecash/[id]/[...version]/+page.svelte b/src/routes/(app)/ecash/[id]/[...version]/+page.svelte index e1a38235..3cfa502d 100644 --- a/src/routes/(app)/ecash/[id]/[...version]/+page.svelte +++ b/src/routes/(app)/ecash/[id]/[...version]/+page.svelte @@ -1,4 +1,4 @@ -<script> +<script lang="ts"> import { enhance } from "$app/forms"; import { copy, sats, f, s } from "$lib/utils"; import { t } from "$lib/translations"; diff --git a/src/routes/(app)/ecash/[id]/[...version]/swap/+page.svelte b/src/routes/(app)/ecash/[id]/[...version]/swap/+page.svelte index c434c9b4..f05a7297 100644 --- a/src/routes/(app)/ecash/[id]/[...version]/swap/+page.svelte +++ b/src/routes/(app)/ecash/[id]/[...version]/swap/+page.svelte @@ -1,4 +1,4 @@ -<script> +<script lang="ts"> let { data } = $props(); </script> diff --git a/src/routes/(app)/firehose/+page.svelte b/src/routes/(app)/firehose/+page.svelte index d56e6425..6b2338c2 100644 --- a/src/routes/(app)/firehose/+page.svelte +++ b/src/routes/(app)/firehose/+page.svelte @@ -27,7 +27,6 @@ event.author = await get(`/api/users/${event.pubkey}`); event.parts = parts; event.names = names; - let { content, pubkey } = event; events.push(event); if (events.length > 20) events.shift(); }, diff --git a/src/routes/(app)/fund/[id]/+page.svelte b/src/routes/(app)/fund/[id]/+page.svelte index 226e0249..5f8d848f 100644 --- a/src/routes/(app)/fund/[id]/+page.svelte +++ b/src/routes/(app)/fund/[id]/+page.svelte @@ -1,4 +1,4 @@ -<script> +<script lang="ts"> import Amount from "$comp/Amount.svelte"; import Payments from "$comp/Payments.svelte"; import { format } from "date-fns"; diff --git a/src/routes/(app)/fund/[id]/access/+page.svelte b/src/routes/(app)/fund/[id]/access/+page.svelte index 470729c4..9a7a85cb 100644 --- a/src/routes/(app)/fund/[id]/access/+page.svelte +++ b/src/routes/(app)/fund/[id]/access/+page.svelte @@ -1,4 +1,4 @@ -<script> +<script lang="ts"> import { focus, fail, post } from "$lib/utils"; import { enhance } from "$app/forms"; import { t } from "$lib/translations"; diff --git a/src/routes/(app)/fund/[id]/authorize/[...amount]/+page.svelte b/src/routes/(app)/fund/[id]/authorize/[...amount]/+page.svelte index b7c0c5cb..746318e7 100644 --- a/src/routes/(app)/fund/[id]/authorize/[...amount]/+page.svelte +++ b/src/routes/(app)/fund/[id]/authorize/[...amount]/+page.svelte @@ -1,9 +1,8 @@ -<script> +<script lang="ts"> import { onMount } from "svelte"; import Amount from "$comp/Amount.svelte"; import Success from "$comp/Success.svelte"; - import { scale } from "svelte/transition"; - import { toFiat, f, s } from "$lib/utils"; import { t } from "$lib/translations"; + import { t } from "$lib/translations"; import { loc } from "$lib/utils"; let { data } = $props(); diff --git a/src/routes/(app)/fund/[id]/gift/+page.svelte b/src/routes/(app)/fund/[id]/gift/+page.svelte index c3baed72..4e1efad3 100644 --- a/src/routes/(app)/fund/[id]/gift/+page.svelte +++ b/src/routes/(app)/fund/[id]/gift/+page.svelte @@ -1,4 +1,4 @@ -<script> +<script lang="ts"> import Amount from "$comp/Amount.svelte"; import { t } from "$lib/translations"; import { page } from "$app/stores"; import Qr from "$comp/Qr.svelte"; diff --git a/src/routes/(app)/fund/[id]/sweep/[...amount]/+page.svelte b/src/routes/(app)/fund/[id]/sweep/[...amount]/+page.svelte index f7a0c309..451fc128 100644 --- a/src/routes/(app)/fund/[id]/sweep/[...amount]/+page.svelte +++ b/src/routes/(app)/fund/[id]/sweep/[...amount]/+page.svelte @@ -1,10 +1,9 @@ -<script> +<script lang="ts"> import { onMount } from "svelte"; import { password } from "$lib/store"; import Amount from "$comp/Amount.svelte"; import Success from "$comp/Success.svelte"; - import { scale } from "svelte/transition"; - import { toFiat, f, s } from "$lib/utils"; import { t } from "$lib/translations"; + import { t } from "$lib/translations"; import { loc } from "$lib/utils"; let { data } = $props(); diff --git a/src/routes/(app)/fund/[id]/withdraw/+page.svelte b/src/routes/(app)/fund/[id]/withdraw/+page.svelte index 5f10f9bf..9b53824d 100644 --- a/src/routes/(app)/fund/[id]/withdraw/+page.svelte +++ b/src/routes/(app)/fund/[id]/withdraw/+page.svelte @@ -1,4 +1,4 @@ -<script> +<script lang="ts"> import { tick } from "svelte"; import handler from "$lib/handler"; import { t } from "$lib/translations"; diff --git a/src/routes/(app)/invoice/[id]/+page.svelte b/src/routes/(app)/invoice/[id]/+page.svelte index fe039870..beffa264 100644 --- a/src/routes/(app)/invoice/[id]/+page.svelte +++ b/src/routes/(app)/invoice/[id]/+page.svelte @@ -1,4 +1,4 @@ -<script> +<script lang="ts"> import { getWallet } from "$lib/ark"; import { enhance } from "$app/forms"; import { send } from "$lib/socket"; diff --git a/src/routes/(app)/invoice/[id]/memo/+page.svelte b/src/routes/(app)/invoice/[id]/memo/+page.svelte index c8b1a429..23ecc019 100644 --- a/src/routes/(app)/invoice/[id]/memo/+page.svelte +++ b/src/routes/(app)/invoice/[id]/memo/+page.svelte @@ -1,9 +1,9 @@ -<script> +<script lang="ts"> import { run } from "svelte/legacy"; import { onMount } from "svelte"; import { browser } from "$app/environment"; - import { invoice as inv, request } from "$lib/store"; + import { invoice as inv } from "$lib/store"; import { copy, select, f, sat, get, s, sats } from "$lib/utils"; import { t } from "$lib/translations"; import { enhance } from "$app/forms"; diff --git a/src/routes/(app)/invoice/[id]/paid/+page.svelte b/src/routes/(app)/invoice/[id]/paid/+page.svelte index bc61d7fe..30679ac3 100644 --- a/src/routes/(app)/invoice/[id]/paid/+page.svelte +++ b/src/routes/(app)/invoice/[id]/paid/+page.svelte @@ -1,4 +1,4 @@ -<script> +<script lang="ts"> import Amount from "$comp/Amount.svelte"; import Success from "$comp/Success.svelte"; import { t } from "$lib/translations"; diff --git a/src/routes/(app)/invoice/[id]/tip/+page.svelte b/src/routes/(app)/invoice/[id]/tip/+page.svelte index 4be2f536..c9f38837 100644 --- a/src/routes/(app)/invoice/[id]/tip/+page.svelte +++ b/src/routes/(app)/invoice/[id]/tip/+page.svelte @@ -1,4 +1,4 @@ -<script> +<script lang="ts"> import { fiat, invoice as inv, request } from "$lib/store"; import { loc, copy, focus, f, sat, get, s, sats } from "$lib/utils"; import Slider from "$comp/Slider.svelte"; diff --git a/src/routes/(app)/invoice/sent/+page.svelte b/src/routes/(app)/invoice/sent/+page.svelte index b7aedd30..f8a05801 100644 --- a/src/routes/(app)/invoice/sent/+page.svelte +++ b/src/routes/(app)/invoice/sent/+page.svelte @@ -1,4 +1,4 @@ -<script> +<script lang="ts"> import Avatar from "$comp/Avatar.svelte"; import { request } from "$lib/store"; </script> diff --git a/src/routes/(app)/invoices/+page.svelte b/src/routes/(app)/invoices/+page.svelte index fa2ad549..35a81a3e 100644 --- a/src/routes/(app)/invoices/+page.svelte +++ b/src/routes/(app)/invoices/+page.svelte @@ -1,4 +1,4 @@ -<script> +<script lang="ts"> let { data } = $props(); let { invoices } = $derived(data); let show = $state({}); diff --git a/src/routes/(app)/items/[id]/+page.svelte b/src/routes/(app)/items/[id]/+page.svelte index 9629f311..3128f34d 100644 --- a/src/routes/(app)/items/[id]/+page.svelte +++ b/src/routes/(app)/items/[id]/+page.svelte @@ -1,4 +1,4 @@ -<script> +<script lang="ts"> import { run } from 'svelte/legacy'; import { t } from "$lib/translations"; diff --git a/src/routes/(app)/items/create/+page.svelte b/src/routes/(app)/items/create/+page.svelte index b756e73e..de400927 100644 --- a/src/routes/(app)/items/create/+page.svelte +++ b/src/routes/(app)/items/create/+page.svelte @@ -1,4 +1,4 @@ -<script> +<script lang="ts"> import { run } from 'svelte/legacy'; import { t } from "$lib/translations"; diff --git a/src/routes/(app)/ln/[lnurl]/+page.svelte b/src/routes/(app)/ln/[lnurl]/+page.svelte index 386df9d2..af01d5fc 100644 --- a/src/routes/(app)/ln/[lnurl]/+page.svelte +++ b/src/routes/(app)/ln/[lnurl]/+page.svelte @@ -1,4 +1,4 @@ -<script> +<script lang="ts"> import Lnurlp from "$comp/Lnurlp.svelte"; import Lnurlw from "$comp/Lnurlw.svelte"; let { data } = $props(); diff --git a/src/routes/(app)/ln/withdrawal/sent/+page.svelte b/src/routes/(app)/ln/withdrawal/sent/+page.svelte index 0f6471be..fa888fc1 100644 --- a/src/routes/(app)/ln/withdrawal/sent/+page.svelte +++ b/src/routes/(app)/ln/withdrawal/sent/+page.svelte @@ -1,4 +1,4 @@ -<script> +<script lang="ts"> import { scale } from "svelte/transition"; import { toast } from "@zerodevx/svelte-toast"; import { t } from "$lib/translations"; diff --git a/src/routes/(app)/messages/+page.svelte b/src/routes/(app)/messages/+page.svelte index 54af2329..606af893 100644 --- a/src/routes/(app)/messages/+page.svelte +++ b/src/routes/(app)/messages/+page.svelte @@ -1,4 +1,4 @@ -<script> +<script lang="ts"> import { run } from 'svelte/legacy'; import { t } from "$lib/translations"; diff --git a/src/routes/(app)/messages/[recipient]/+page.svelte b/src/routes/(app)/messages/[recipient]/+page.svelte index da7df62d..c8d522f0 100644 --- a/src/routes/(app)/messages/[recipient]/+page.svelte +++ b/src/routes/(app)/messages/[recipient]/+page.svelte @@ -1,11 +1,10 @@ -<script> +<script lang="ts"> import { run, preventDefault } from 'svelte/legacy'; import { cubicInOut } from "svelte/easing"; import { browser } from "$app/environment"; import { t } from "$lib/translations"; import { format } from "date-fns"; - import { scale, fade, fly } from "svelte/transition"; import { enhance } from "$app/forms"; import Avatar from "$comp/Avatar.svelte"; import { back, fail, focus } from "$lib/utils"; diff --git a/src/routes/(app)/pay/[username]/[...amount]/+page.svelte b/src/routes/(app)/pay/[username]/[...amount]/+page.svelte index 46f73506..9807313a 100644 --- a/src/routes/(app)/pay/[username]/[...amount]/+page.svelte +++ b/src/routes/(app)/pay/[username]/[...amount]/+page.svelte @@ -1,4 +1,4 @@ -<script> +<script lang="ts"> import { tick } from "svelte"; import { t } from "$lib/translations"; import { goto, invalidateAll } from "$app/navigation"; diff --git a/src/routes/(app)/payment/[id]/+page.svelte b/src/routes/(app)/payment/[id]/+page.svelte index b4120adb..e368f2ad 100644 --- a/src/routes/(app)/payment/[id]/+page.svelte +++ b/src/routes/(app)/payment/[id]/+page.svelte @@ -1,4 +1,4 @@ -<script> +<script lang="ts"> import { browser } from "$app/environment"; import { onMount, tick } from "svelte"; import { t, loading } from "$lib/translations"; diff --git a/src/routes/(app)/payment/[id]/plain/+page.svelte b/src/routes/(app)/payment/[id]/plain/+page.svelte index 8e3fe8f3..30b774a8 100644 --- a/src/routes/(app)/payment/[id]/plain/+page.svelte +++ b/src/routes/(app)/payment/[id]/plain/+page.svelte @@ -1,4 +1,4 @@ -<script> +<script lang="ts"> import { goto } from "$app/navigation"; import { onMount } from "svelte"; import { browser } from "$app/environment"; diff --git a/src/routes/(app)/payments/[...page]/+page.svelte b/src/routes/(app)/payments/[...page]/+page.svelte index 1de317f6..7d73a0b1 100644 --- a/src/routes/(app)/payments/[...page]/+page.svelte +++ b/src/routes/(app)/payments/[...page]/+page.svelte @@ -1,4 +1,4 @@ -<script> +<script lang="ts"> import Avatar from "$comp/Avatar.svelte"; import Payments from "$comp/Payments.svelte"; import { onMount } from "svelte"; diff --git a/src/routes/(app)/pos/+page.svelte b/src/routes/(app)/pos/+page.svelte index 199cef43..967ddd09 100644 --- a/src/routes/(app)/pos/+page.svelte +++ b/src/routes/(app)/pos/+page.svelte @@ -1,4 +1,4 @@ -<script> +<script lang="ts"> import { enhance } from "$app/forms"; import { hex } from "@scure/base"; diff --git a/src/routes/(app)/printer/+page.svelte b/src/routes/(app)/printer/+page.svelte index c9295a54..28a3dfb1 100644 --- a/src/routes/(app)/printer/+page.svelte +++ b/src/routes/(app)/printer/+page.svelte @@ -1,4 +1,4 @@ -<script> +<script lang="ts"> import { enhance } from "$app/forms"; import { hex } from "@scure/base"; diff --git a/src/routes/(app)/qr/create/+page.svelte b/src/routes/(app)/qr/create/+page.svelte index b1997a36..339aae16 100644 --- a/src/routes/(app)/qr/create/+page.svelte +++ b/src/routes/(app)/qr/create/+page.svelte @@ -1,4 +1,4 @@ -<script> +<script lang="ts"> import { run, preventDefault } from 'svelte/legacy'; import { goto } from "$app/navigation"; diff --git a/src/routes/(app)/receive/[...token]/+page.svelte b/src/routes/(app)/receive/[...token]/+page.svelte index 271be926..59e13239 100644 --- a/src/routes/(app)/receive/[...token]/+page.svelte +++ b/src/routes/(app)/receive/[...token]/+page.svelte @@ -1,4 +1,4 @@ -<script> +<script lang="ts"> import { run } from 'svelte/legacy'; import { page } from "$app/stores"; diff --git a/src/routes/(app)/reset/[code]/+page.svelte b/src/routes/(app)/reset/[code]/+page.svelte index 29b9cbe0..57deedcd 100644 --- a/src/routes/(app)/reset/[code]/+page.svelte +++ b/src/routes/(app)/reset/[code]/+page.svelte @@ -1,4 +1,4 @@ -<script> +<script lang="ts"> import { PUBLIC_RECAPTCHA_SITE_KEY } from "$env/static/public"; import { browser } from "$app/environment"; import { onDestroy, onMount, tick } from "svelte"; diff --git a/src/routes/(app)/scan/+page.svelte b/src/routes/(app)/scan/+page.svelte index 23a277fe..bb64fbec 100644 --- a/src/routes/(app)/scan/+page.svelte +++ b/src/routes/(app)/scan/+page.svelte @@ -1,4 +1,4 @@ -<script> +<script lang="ts"> import { tick } from "svelte"; import { onMount, onDestroy } from "svelte"; import { back } from "$lib/utils"; import { goto } from "$app/navigation"; diff --git a/src/routes/(app)/send/+layout.svelte b/src/routes/(app)/send/+layout.svelte index 58f44736..29fa85d0 100644 --- a/src/routes/(app)/send/+layout.svelte +++ b/src/routes/(app)/send/+layout.svelte @@ -1,4 +1,4 @@ -<script> +<script lang="ts"> import { goto } from "$app/navigation"; import Pin from "$comp/Pin.svelte"; import { pin } from "$lib/store"; diff --git a/src/routes/(app)/send/[...text]/+page.svelte b/src/routes/(app)/send/[...text]/+page.svelte index c8b828e7..25a77a1e 100644 --- a/src/routes/(app)/send/[...text]/+page.svelte +++ b/src/routes/(app)/send/[...text]/+page.svelte @@ -1,4 +1,4 @@ -<script> +<script lang="ts"> import { invalidate } from "$app/navigation"; import { page } from "$app/stores"; import { fly } from "svelte/transition"; diff --git a/src/routes/(app)/send/ark/[address]/+page.svelte b/src/routes/(app)/send/ark/[address]/+page.svelte index 5361f292..531047fe 100644 --- a/src/routes/(app)/send/ark/[address]/+page.svelte +++ b/src/routes/(app)/send/ark/[address]/+page.svelte @@ -1,4 +1,4 @@ -<script> +<script lang="ts"> import { tick } from "svelte"; import { t } from "$lib/translations"; import Numpad from "$comp/Numpad.svelte"; diff --git a/src/routes/(app)/send/ark/[address]/[amount]/[...feeRate]/+page.svelte b/src/routes/(app)/send/ark/[address]/[amount]/[...feeRate]/+page.svelte index 95812266..ea1e9f71 100644 --- a/src/routes/(app)/send/ark/[address]/[amount]/[...feeRate]/+page.svelte +++ b/src/routes/(app)/send/ark/[address]/[amount]/[...feeRate]/+page.svelte @@ -1,4 +1,4 @@ -<script> +<script lang="ts"> import { t } from "$lib/translations"; import { enhance } from "$app/forms"; import Spinner from "$comp/Spinner.svelte"; diff --git a/src/routes/(app)/send/bitcoin/[address]/+page.svelte b/src/routes/(app)/send/bitcoin/[address]/+page.svelte index fc93ba3c..96b3fbd9 100644 --- a/src/routes/(app)/send/bitcoin/[address]/+page.svelte +++ b/src/routes/(app)/send/bitcoin/[address]/+page.svelte @@ -1,4 +1,4 @@ -<script> +<script lang="ts"> import { tick } from "svelte"; import { t } from "$lib/translations"; import Numpad from "$comp/Numpad.svelte"; 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 70b0aa47..faa6c919 100644 --- a/src/routes/(app)/send/bitcoin/[address]/[amount]/[...feeRate]/+page.svelte +++ b/src/routes/(app)/send/bitcoin/[address]/[amount]/[...feeRate]/+page.svelte @@ -1,4 +1,4 @@ -<script> +<script lang="ts"> import { tick } from "svelte"; import { t } from "$lib/translations"; import { enhance } from "$app/forms"; @@ -14,9 +14,6 @@ import { hex as hexUtil } from "@scure/base"; import * as btc from "@scure/btc-signer"; import { decrypt } from "nostr-tools/nip49"; - import { HDKey } from "@scure/bip32"; - import { entropyToMnemonic, mnemonicToSeed } from "@scure/bip39"; - import { wordlist } from "@scure/bip39/wordlists/english.js"; import { getRememberedWalletPassword, forgetWalletPassword, diff --git a/src/routes/(app)/send/fund/[...name]/[...amount]/+page.svelte b/src/routes/(app)/send/fund/[...name]/[...amount]/+page.svelte index 9cedbf8a..58d4812f 100644 --- a/src/routes/(app)/send/fund/[...name]/[...amount]/+page.svelte +++ b/src/routes/(app)/send/fund/[...name]/[...amount]/+page.svelte @@ -1,4 +1,4 @@ -<script> +<script lang="ts"> import { t } from "$lib/translations"; import { enhance } from "$app/forms"; import Numpad from "$comp/Numpad.svelte"; diff --git a/src/routes/(app)/send/invoice/[id]/+page.svelte b/src/routes/(app)/send/invoice/[id]/+page.svelte index 0c67caa1..2a2d72e2 100644 --- a/src/routes/(app)/send/invoice/[id]/+page.svelte +++ b/src/routes/(app)/send/invoice/[id]/+page.svelte @@ -1,8 +1,7 @@ -<script> +<script lang="ts"> import { invalidate } from "$app/navigation"; import { untrack } from "svelte"; import handler from "$lib/handler"; - import { onDestroy, onMount } from "svelte"; import { t } from "$lib/translations"; import { goto, invalidateAll } from "$app/navigation"; import { fiat as fiatStore, pin } from "$lib/store"; diff --git a/src/routes/(app)/send/lightning/[payreq]/[...memo]/+page.svelte b/src/routes/(app)/send/lightning/[payreq]/[...memo]/+page.svelte index 4e34c6d6..66ac240d 100644 --- a/src/routes/(app)/send/lightning/[payreq]/[...memo]/+page.svelte +++ b/src/routes/(app)/send/lightning/[payreq]/[...memo]/+page.svelte @@ -1,4 +1,4 @@ -<script> +<script lang="ts"> import { untrack } from "svelte"; import { t } from "$lib/translations"; import { enhance } from "$app/forms"; diff --git a/src/routes/(app)/send/zap/[id]/[...amount]/+page.svelte b/src/routes/(app)/send/zap/[id]/[...amount]/+page.svelte index b0ffa37e..0af4e6ac 100644 --- a/src/routes/(app)/send/zap/[id]/[...amount]/+page.svelte +++ b/src/routes/(app)/send/zap/[id]/[...amount]/+page.svelte @@ -1,4 +1,4 @@ -<script> +<script lang="ts"> import { tick } from "svelte"; import { goto } from "$app/navigation"; import { untrack } from "svelte"; diff --git a/src/routes/(app)/sent/[id]/+page.svelte b/src/routes/(app)/sent/[id]/+page.svelte index fb6849f0..3dde854f 100644 --- a/src/routes/(app)/sent/[id]/+page.svelte +++ b/src/routes/(app)/sent/[id]/+page.svelte @@ -1,4 +1,4 @@ -<script> +<script lang="ts"> import { loc, focus } from "$lib/utils"; import { t } from "$lib/translations"; import Success from "$comp/Success.svelte"; diff --git a/src/routes/(app)/settings/+layout.svelte b/src/routes/(app)/settings/+layout.svelte index 64a5597e..02e2fe62 100644 --- a/src/routes/(app)/settings/+layout.svelte +++ b/src/routes/(app)/settings/+layout.svelte @@ -42,7 +42,6 @@ { name: "security", key: "SECURITY" }, ]; - let { about, id, username } = $derived(user); let submitting = $state(); const pool = new SimplePool(); diff --git a/src/routes/(app)/settings/account/+page.svelte b/src/routes/(app)/settings/account/+page.svelte index 30161ee2..1aa46ff6 100644 --- a/src/routes/(app)/settings/account/+page.svelte +++ b/src/routes/(app)/settings/account/+page.svelte @@ -1,4 +1,4 @@ -<script> +<script lang="ts"> import { run } from "svelte/legacy"; import { theme } from "$lib/store"; diff --git a/src/routes/(app)/settings/nostr/+page.svelte b/src/routes/(app)/settings/nostr/+page.svelte index 6e033347..f1d06c66 100644 --- a/src/routes/(app)/settings/nostr/+page.svelte +++ b/src/routes/(app)/settings/nostr/+page.svelte @@ -6,10 +6,6 @@ import { tick } from "svelte"; import { t } from "$lib/translations"; import { s, f, sats, copy, fail } from "$lib/utils"; - import { - PUBLIC_COINOS_PUBKEY as pk, - PUBLIC_COINOS_RELAY as relay, - } from "$env/static/public"; import { fiat, rate, signer, save } from "$lib/store"; import { getPreferredRelays } from "$lib/nip17"; diff --git a/src/routes/(app)/settings/profile/+page.svelte b/src/routes/(app)/settings/profile/+page.svelte index 8e9983a9..d4a54a9f 100644 --- a/src/routes/(app)/settings/profile/+page.svelte +++ b/src/routes/(app)/settings/profile/+page.svelte @@ -1,4 +1,4 @@ -<script> +<script lang="ts"> import { tick } from "svelte"; import { avatar, banner as bannerStore } from "$lib/store"; import { t } from "$lib/translations"; diff --git a/src/routes/(app)/settings/security/+page.svelte b/src/routes/(app)/settings/security/+page.svelte index 73e293cd..8c9f0105 100644 --- a/src/routes/(app)/settings/security/+page.svelte +++ b/src/routes/(app)/settings/security/+page.svelte @@ -1,4 +1,4 @@ -<script> +<script lang="ts"> import { getContext } from "svelte"; import { tick } from "svelte"; import { t } from "$lib/translations"; diff --git a/src/routes/(app)/sign/+page.svelte b/src/routes/(app)/sign/+page.svelte index 819ba27c..fbea78ed 100644 --- a/src/routes/(app)/sign/+page.svelte +++ b/src/routes/(app)/sign/+page.svelte @@ -1,4 +1,4 @@ -<script> +<script lang="ts"> import { copy, focus } from "$lib/utils"; import { enhance } from "$app/forms"; diff --git a/src/routes/(app)/thread/[id]/+page.svelte b/src/routes/(app)/thread/[id]/+page.svelte index 932b6dfd..a77e6e36 100644 --- a/src/routes/(app)/thread/[id]/+page.svelte +++ b/src/routes/(app)/thread/[id]/+page.svelte @@ -1,4 +1,4 @@ -<script> +<script lang="ts"> import Event from "$comp/Event.svelte"; let { data } = $props(); diff --git a/src/routes/(app)/verify/[code]/+page.svelte b/src/routes/(app)/verify/[code]/+page.svelte index 306aee0b..17ff858a 100644 --- a/src/routes/(app)/verify/[code]/+page.svelte +++ b/src/routes/(app)/verify/[code]/+page.svelte @@ -1,4 +1,4 @@ -<script> +<script lang="ts"> import { scale } from "svelte/transition"; import { t } from "$lib/translations"; diff --git a/src/routes/(static)/+layout.svelte b/src/routes/(static)/+layout.svelte index ff763126..a6f6d858 100644 --- a/src/routes/(static)/+layout.svelte +++ b/src/routes/(static)/+layout.svelte @@ -1,4 +1,4 @@ -<script> +<script lang="ts"> import Nostr from "$comp/Nostr.svelte"; import { SvelteToast } from "@zerodevx/svelte-toast"; import Footer from "$comp/Footer.svelte"; diff --git a/src/routes/(static)/bounties/+page.svelte b/src/routes/(static)/bounties/+page.svelte index 03a9cb8f..6e8fb12b 100644 --- a/src/routes/(static)/bounties/+page.svelte +++ b/src/routes/(static)/bounties/+page.svelte @@ -1,4 +1,4 @@ -<script> +<script lang="ts"> import Avatar from "$comp/Avatar.svelte"; import { s } from "$lib/utils"; import Amount from "$comp/Amount.svelte"; diff --git a/src/routes/(static)/docs/+page.svelte b/src/routes/(static)/docs/+page.svelte index 3f9d4157..76e487c5 100644 --- a/src/routes/(static)/docs/+page.svelte +++ b/src/routes/(static)/docs/+page.svelte @@ -1,4 +1,4 @@ -<script> +<script lang="ts"> import { copyNoNewlines as copy } from "$lib/utils"; import { PUBLIC_DOMAIN, PUBLIC_COINOS_URL } from "$env/static/public"; diff --git a/src/routes/(static)/forgot/+page.svelte b/src/routes/(static)/forgot/+page.svelte index 9a9d2d76..186655a5 100644 --- a/src/routes/(static)/forgot/+page.svelte +++ b/src/routes/(static)/forgot/+page.svelte @@ -1,4 +1,4 @@ -<script> +<script lang="ts"> import { focus } from "$lib/utils"; import { enhance } from "$app/forms"; import { t } from "$lib/translations"; import Spinner from "$comp/Spinner.svelte"; diff --git a/src/routes/(static)/login/+page.svelte b/src/routes/(static)/login/+page.svelte index 23f772d3..30592625 100644 --- a/src/routes/(static)/login/+page.svelte +++ b/src/routes/(static)/login/+page.svelte @@ -1,4 +1,4 @@ -<script> +<script lang="ts"> import { PUBLIC_RECAPTCHA_SITE_KEY } from "$env/static/public"; import { browser } from "$app/environment"; import handler from "$lib/handler"; diff --git a/src/routes/(static)/register/+page.svelte b/src/routes/(static)/register/+page.svelte index 5a2f966f..38e8cbb0 100644 --- a/src/routes/(static)/register/+page.svelte +++ b/src/routes/(static)/register/+page.svelte @@ -1,4 +1,4 @@ -<script> +<script lang="ts"> import { PUBLIC_RECAPTCHA_SITE_KEY } from "$env/static/public"; import { onDestroy, onMount } from "svelte"; import { browser } from "$app/environment"; diff --git a/src/routes/(static)/support/+page.svelte b/src/routes/(static)/support/+page.svelte index db6ad37d..7a2b05a5 100644 --- a/src/routes/(static)/support/+page.svelte +++ b/src/routes/(static)/support/+page.svelte @@ -1,4 +1,4 @@ -<script> +<script lang="ts"> import { PUBLIC_RECAPTCHA_SITE_KEY } from "$env/static/public"; import { browser } from "$app/environment"; import { onDestroy, onMount } from "svelte"; diff --git a/src/routes/+error.svelte b/src/routes/+error.svelte index 9fbab0a7..e8c85578 100644 --- a/src/routes/+error.svelte +++ b/src/routes/+error.svelte @@ -1,4 +1,4 @@ -<script> +<script lang="ts"> import { page } from "$app/stores"; let { data } = $props(); diff --git a/src/routes/+layout.svelte b/src/routes/+layout.svelte index 74bb7ed7..b40b363a 100644 --- a/src/routes/+layout.svelte +++ b/src/routes/+layout.svelte @@ -1,4 +1,4 @@ -<script> +<script lang="ts"> import { run } from "svelte/legacy"; import { browser } from "$app/environment"; import { PUBLIC_DOMAIN } from "$env/static/public"; diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte index 1b5e0947..ee73adfb 100644 --- a/src/routes/+page.svelte +++ b/src/routes/+page.svelte @@ -8,8 +8,7 @@ import Footer from "$comp/Footer.svelte"; import About from "$comp/About.svelte"; - import { locale, t } from "$lib/translations"; - import { onDestroy, onMount, tick } from "svelte"; + import { t } from "$lib/translations"; let { data } = $props(); let { faqs, locations, user } = $derived(data); |
