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 | |
| parent | 851906568f6669935a6141002b609a4a80a54450 (diff) | |
| download | coinos-ui-8a4b0087cbfe8b43d9b43d19af6d991a646ef3d7.tar.gz coinos-ui-8a4b0087cbfe8b43d9b43d19af6d991a646ef3d7.zip | |
remove unused imports
Diffstat (limited to 'src')
124 files changed, 123 insertions, 150 deletions
diff --git a/src/components/404.svelte b/src/components/404.svelte index 2f5f7acd..d5fdfa38 100644 --- a/src/components/404.svelte +++ b/src/components/404.svelte @@ -1,4 +1,4 @@ -<script> +<script lang="ts"> import { t } from "$lib/translations"; </script> diff --git a/src/components/About.svelte b/src/components/About.svelte index ae1955c1..5cc3603c 100644 --- a/src/components/About.svelte +++ b/src/components/About.svelte @@ -1,4 +1,4 @@ -<script> +<script lang="ts"> import { onMount } from "svelte"; import Image from "$comp/Image.svelte"; import { t } from "$lib/translations"; diff --git a/src/components/Account.svelte b/src/components/Account.svelte index bb9aec22..0eaf6dfb 100644 --- a/src/components/Account.svelte +++ b/src/components/Account.svelte @@ -1,4 +1,4 @@ -<script> +<script lang="ts"> import { hex } from "@scure/base"; import { bytesToHex } from "@noble/hashes/utils.js"; import WalletPass from "$comp/WalletPass.svelte"; diff --git a/src/components/Amount.svelte b/src/components/Amount.svelte index 7dea7cf1..4c7c487a 100644 --- a/src/components/Amount.svelte +++ b/src/components/Amount.svelte @@ -1,4 +1,4 @@ -<script> +<script lang="ts"> import { copy, s, f, toFiat } from "$lib/utils"; import { fiat } from "$lib/store"; const { diff --git a/src/components/AmountField.svelte b/src/components/AmountField.svelte index 851518e0..36e7d4a6 100644 --- a/src/components/AmountField.svelte +++ b/src/components/AmountField.svelte @@ -1,4 +1,4 @@ -<script> +<script lang="ts"> import { t } from "$lib/translations"; import { tick } from "svelte"; import Numpad from "$comp/Numpad.svelte"; diff --git a/src/components/AppForm.svelte b/src/components/AppForm.svelte index f9491f38..ec33390a 100644 --- a/src/components/AppForm.svelte +++ b/src/components/AppForm.svelte @@ -1,4 +1,4 @@ -<script> +<script lang="ts"> import { browser } from "$app/environment"; import { applyAction, deserialize } from "$app/forms"; import { page } from "$app/stores"; diff --git a/src/components/AppHeader.svelte b/src/components/AppHeader.svelte index 0bdd6907..0ab48706 100644 --- a/src/components/AppHeader.svelte +++ b/src/components/AppHeader.svelte @@ -1,4 +1,4 @@ -<script> +<script lang="ts"> import { banner, theme, newPayment } from "$lib/store"; import { goto } from "$app/navigation"; import Avatar from "$comp/Avatar.svelte"; diff --git a/src/components/Balance.svelte b/src/components/Balance.svelte index 4ceaa65a..5d1bfd7b 100644 --- a/src/components/Balance.svelte +++ b/src/components/Balance.svelte @@ -1,4 +1,4 @@ -<script> +<script lang="ts"> import Amount from "$comp/Amount.svelte"; import Pin from "$comp/Pin.svelte"; import { loc, f, toFiat, s, si, sat, sats } from "$lib/utils"; diff --git a/src/components/Code.svelte b/src/components/Code.svelte index 774dd7b7..4f182ff2 100644 --- a/src/components/Code.svelte +++ b/src/components/Code.svelte @@ -1,4 +1,4 @@ -<script> +<script lang="ts"> import { copyNoNewlines as copy } from "$lib/utils"; import samples from "$lib/samples"; let { sample } = $props(); diff --git a/src/components/DarkToggle.svelte b/src/components/DarkToggle.svelte index 2808d829..fdc79110 100644 --- a/src/components/DarkToggle.svelte +++ b/src/components/DarkToggle.svelte @@ -1,4 +1,4 @@ -<script> +<script lang="ts"> import { t } from "$lib/translations"; import { theme } from "$lib/store"; let dark = () => { diff --git a/src/components/Event.svelte b/src/components/Event.svelte index d31ae437..8faba04d 100644 --- a/src/components/Event.svelte +++ b/src/components/Event.svelte @@ -1,4 +1,4 @@ -<script> +<script lang="ts"> import Avatar from "$comp/Avatar.svelte"; import Media from "$comp/Media.svelte"; import { goto } from "$app/navigation"; diff --git a/src/components/Footer.svelte b/src/components/Footer.svelte index 8d2275ca..27a57e55 100644 --- a/src/components/Footer.svelte +++ b/src/components/Footer.svelte @@ -1,4 +1,4 @@ -<script> +<script lang="ts"> import DarkToggle from "$comp/DarkToggle.svelte"; import LocaleSelector from "$comp/LocaleSelector.svelte"; import { t } from "$lib/translations"; diff --git a/src/components/Image.svelte b/src/components/Image.svelte index 4bc90571..d03c20c3 100644 --- a/src/components/Image.svelte +++ b/src/components/Image.svelte @@ -1,4 +1,4 @@ -<script> +<script lang="ts"> let { image, style } = $props(); </script> diff --git a/src/components/InvoiceActions.svelte b/src/components/InvoiceActions.svelte index 2e3bf87c..7cc62698 100644 --- a/src/components/InvoiceActions.svelte +++ b/src/components/InvoiceActions.svelte @@ -1,4 +1,4 @@ -<script> +<script lang="ts"> import { amountPrompt } from "$lib/store"; import { types } from "$lib/utils"; import { page } from "$app/stores"; diff --git a/src/components/InvoiceData.svelte b/src/components/InvoiceData.svelte index 5ba950d5..3be12215 100644 --- a/src/components/InvoiceData.svelte +++ b/src/components/InvoiceData.svelte @@ -1,4 +1,4 @@ -<script> +<script lang="ts"> import Amount from "$comp/Amount.svelte"; import { btc, copy, f, sat, sats, types } from "$lib/utils"; diff --git a/src/components/InvoiceTypes.svelte b/src/components/InvoiceTypes.svelte index 4c4177a6..9aa1330a 100644 --- a/src/components/InvoiceTypes.svelte +++ b/src/components/InvoiceTypes.svelte @@ -1,4 +1,4 @@ -<script> +<script lang="ts"> import { types } from "$lib/utils"; import { page } from "$app/stores"; import { amountPrompt } from "$lib/store"; diff --git a/src/components/ItemForm.svelte b/src/components/ItemForm.svelte index d92b63a3..77437c1f 100644 --- a/src/components/ItemForm.svelte +++ b/src/components/ItemForm.svelte @@ -1,4 +1,4 @@ -<script> +<script lang="ts"> import { preventDefault } from 'svelte/legacy'; import { t } from "$lib/translations"; diff --git a/src/components/LandingHeader.svelte b/src/components/LandingHeader.svelte index 0dfc609c..603795ab 100644 --- a/src/components/LandingHeader.svelte +++ b/src/components/LandingHeader.svelte @@ -1,4 +1,4 @@ -<script> +<script lang="ts"> import { goto } from "$app/navigation"; import { scroll } from "$lib/utils"; import { t } from "$lib/translations"; diff --git a/src/components/LandingHero.svelte b/src/components/LandingHero.svelte index fe260753..2bd950da 100644 --- a/src/components/LandingHero.svelte +++ b/src/components/LandingHero.svelte @@ -1,4 +1,4 @@ -<script> +<script lang="ts"> import { focus } from "$lib/utils"; import { goto } from "$app/navigation"; import Image from "$comp/Image.svelte"; import { t } from "$lib/translations"; diff --git a/src/components/LandingInfoCard.svelte b/src/components/LandingInfoCard.svelte index 63951e86..ca16a5a4 100644 --- a/src/components/LandingInfoCard.svelte +++ b/src/components/LandingInfoCard.svelte @@ -1,4 +1,4 @@ -<script> +<script lang="ts"> import Image from "./Image.svelte"; let { diff --git a/src/components/Lnurlp.svelte b/src/components/Lnurlp.svelte index 8f14ddff..c735c5a8 100644 --- a/src/components/Lnurlp.svelte +++ b/src/components/Lnurlp.svelte @@ -1,4 +1,4 @@ -<script> +<script lang="ts"> import { run } from "svelte/legacy"; import { t } from "$lib/translations"; diff --git a/src/components/Lnurlw.svelte b/src/components/Lnurlw.svelte index 9cf30f0c..784e8468 100644 --- a/src/components/Lnurlw.svelte +++ b/src/components/Lnurlw.svelte @@ -1,4 +1,4 @@ -<script> +<script lang="ts"> import { tick } from "svelte"; import handler from "$lib/handler"; import { sats, f, s } from "$lib/utils"; diff --git a/src/components/LocaleSelector.svelte b/src/components/LocaleSelector.svelte index b3930829..e6fbdec8 100644 --- a/src/components/LocaleSelector.svelte +++ b/src/components/LocaleSelector.svelte @@ -1,4 +1,4 @@ -<script> +<script lang="ts"> import { run } from "svelte/legacy"; import { t, locale, locales } from "$lib/translations"; diff --git a/src/components/LocationsMap.svelte b/src/components/LocationsMap.svelte index eec704a8..3abdfcc4 100644 --- a/src/components/LocationsMap.svelte +++ b/src/components/LocationsMap.svelte @@ -1,4 +1,4 @@ -<script> +<script lang="ts"> import { tick, onMount, onDestroy, mount } from "svelte"; import { browser } from "$app/environment"; import Popup from "$comp/Popup.svelte"; diff --git a/src/components/Menu.svelte b/src/components/Menu.svelte index 67df31ab..7f04dff0 100644 --- a/src/components/Menu.svelte +++ b/src/components/Menu.svelte @@ -1,4 +1,4 @@ -<script> +<script lang="ts"> import { theme } from "$lib/store"; import DarkToggle from "$comp/DarkToggle.svelte"; import { OutClick } from "svelte-outclick"; diff --git a/src/components/Mnemonic.svelte b/src/components/Mnemonic.svelte index aa63c728..e00197fc 100644 --- a/src/components/Mnemonic.svelte +++ b/src/components/Mnemonic.svelte @@ -1,4 +1,4 @@ -<script> +<script lang="ts"> let { mnemonic } = $props(); </script> diff --git a/src/components/Nostr.svelte b/src/components/Nostr.svelte index 4f45da9f..8718d4eb 100644 --- a/src/components/Nostr.svelte +++ b/src/components/Nostr.svelte @@ -3,16 +3,7 @@ import { browser } from "$app/environment"; import { t } from "$lib/translations"; import PasswordInput from "$comp/PasswordInput.svelte"; - import { Relay } from "nostr-tools/relay"; import { bytesToHex, hexToBytes } from "@noble/hashes/utils.js"; - import { - nip04, - nip19, - getEventHash, - generateSecretKey, - getPublicKey, - } from "nostr-tools"; - import { getConversationKey, decrypt } from "nostr-tools/nip44"; import { copy, focus, fail, post } from "$lib/utils"; import { eventToSign, signer } from "$lib/store"; diff --git a/src/components/Numpad.svelte b/src/components/Numpad.svelte index 5e3e8fa6..664010e1 100644 --- a/src/components/Numpad.svelte +++ b/src/components/Numpad.svelte @@ -1,4 +1,4 @@ -<script> +<script lang="ts"> import { onMount } from "svelte"; import Left from "$comp/Left.svelte"; import { f, s, focus, warning, sat, sats } from "$lib/utils"; diff --git a/src/components/PasswordInput.svelte b/src/components/PasswordInput.svelte index 317c62d4..3f784290 100644 --- a/src/components/PasswordInput.svelte +++ b/src/components/PasswordInput.svelte @@ -1,4 +1,4 @@ -<script> +<script lang="ts"> let { name = $bindable("password"), show = $bindable(), diff --git a/src/components/Payments.svelte b/src/components/Payments.svelte index d27a59c1..4d6f1da1 100644 --- a/src/components/Payments.svelte +++ b/src/components/Payments.svelte @@ -1,4 +1,4 @@ -<script> +<script lang="ts"> import { goto } from "$app/navigation"; import Avatar from "$comp/Avatar.svelte"; import { get, f, s, si, sat, loc, sats, types } from "$lib/utils"; diff --git a/src/components/Pin.svelte b/src/components/Pin.svelte index ab5decf1..9c5d8664 100644 --- a/src/components/Pin.svelte +++ b/src/components/Pin.svelte @@ -1,4 +1,4 @@ -<script> +<script lang="ts"> import { t } from "$lib/translations"; import { post, success, fail, focus, setCookie } from "$lib/utils"; import Pinpad from "$comp/Pinpad.svelte"; diff --git a/src/components/Pinpad.svelte b/src/components/Pinpad.svelte index b3438864..524e75f8 100644 --- a/src/components/Pinpad.svelte +++ b/src/components/Pinpad.svelte @@ -1,4 +1,4 @@ -<script> +<script lang="ts"> import Left from "$comp/Left.svelte"; import { focus, post, warning } from "$lib/utils"; import { t } from "$lib/translations"; diff --git a/src/components/Popup.svelte b/src/components/Popup.svelte index 661b2bed..e696c5cc 100644 --- a/src/components/Popup.svelte +++ b/src/components/Popup.svelte @@ -1,4 +1,4 @@ -<script> +<script lang="ts"> import { page } from "$app/stores"; import Avatar from "$comp/Avatar.svelte"; let { tags } = $props(); diff --git a/src/components/Qr.svelte b/src/components/Qr.svelte index 1fe4a84d..6a34ee7c 100644 --- a/src/components/Qr.svelte +++ b/src/components/Qr.svelte @@ -1,4 +1,4 @@ -<script> +<script lang="ts"> import { onMount } from "svelte"; import { browser } from "$app/environment"; let { icon, text } = $props(); diff --git a/src/components/SetAmount.svelte b/src/components/SetAmount.svelte index c3adf9c4..a28f207a 100644 --- a/src/components/SetAmount.svelte +++ b/src/components/SetAmount.svelte @@ -1,4 +1,4 @@ -<script> +<script lang="ts"> import { amountPrompt } from "$lib/store"; import Numpad from "$comp/Numpad.svelte"; import Toggle from "$comp/Toggle.svelte"; diff --git a/src/components/SetMemo.svelte b/src/components/SetMemo.svelte index 99828d05..2c3fd617 100644 --- a/src/components/SetMemo.svelte +++ b/src/components/SetMemo.svelte @@ -1,4 +1,4 @@ -<script> +<script lang="ts"> import { focus } from "$lib/utils"; let { diff --git a/src/components/SetType.svelte b/src/components/SetType.svelte index f195d2ee..ffc4cca8 100644 --- a/src/components/SetType.svelte +++ b/src/components/SetType.svelte @@ -1,4 +1,4 @@ -<script> +<script lang="ts"> import InvoiceTypes from "$comp/InvoiceTypes.svelte"; import { focus } from "$lib/utils"; @@ -14,7 +14,6 @@ t, } = $props(); - let { aid, type } = $derived(invoice); </script> {#if settingType} diff --git a/src/components/Success.svelte b/src/components/Success.svelte index d7561081..20557f9f 100644 --- a/src/components/Success.svelte +++ b/src/components/Success.svelte @@ -1,4 +1,4 @@ -<script> +<script lang="ts"> import { browser } from "$app/environment"; import { scale } from "svelte/transition"; import Amount from "$comp/Amount.svelte"; diff --git a/src/components/Toggle.svelte b/src/components/Toggle.svelte index 0bc319ab..b8dc37f9 100644 --- a/src/components/Toggle.svelte +++ b/src/components/Toggle.svelte @@ -1,4 +1,4 @@ -<script> +<script lang="ts"> let { id, value = $bindable() } = $props(); </script> diff --git a/src/components/WalletPass.svelte b/src/components/WalletPass.svelte index 11f6978a..e7a3c7f9 100644 --- a/src/components/WalletPass.svelte +++ b/src/components/WalletPass.svelte @@ -1,4 +1,4 @@ -<script> +<script lang="ts"> import { preventDefault } from 'svelte/legacy'; import { focus } from "$lib/utils"; diff --git a/src/lib/nostr.ts b/src/lib/nostr.ts index bd4a2a2a..99efb697 100644 --- a/src/lib/nostr.ts +++ b/src/lib/nostr.ts @@ -17,7 +17,6 @@ import { nip04, nip19, } from "nostr-tools"; -import { decrypt as nip44decrypt, getConversationKey } from "nostr-tools/nip44"; import { Relay } from "nostr-tools/relay"; import { get } from "svelte/store"; 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); |
