diff options
Diffstat (limited to 'src')
58 files changed, 553 insertions, 478 deletions
diff --git a/src/components/Calendar.svelte b/src/components/Calendar.svelte index 7d7fa570..b07c136c 100644 --- a/src/components/Calendar.svelte +++ b/src/components/Calendar.svelte @@ -3,7 +3,8 @@ class="absolute bottom-0 left-0 -mb-0.5 transform translate-x-1/2 -translate-y-1/2 text-black peer-placeholder-shown:text-gray-300 h-6 w-6" fill="none" viewBox="0 0 24 24" - stroke="currentColor"> + stroke="currentColor" +> <path stroke-linecap="round" stroke-linejoin="round" diff --git a/src/components/Card.svelte b/src/components/Card.svelte index 60b7c818..864465c0 100644 --- a/src/components/Card.svelte +++ b/src/components/Card.svelte @@ -3,7 +3,8 @@ class="absolute bottom-0 left-0 -mb-0.5 transform translate-x-1/2 -translate-y-1/2 text-black peer-placeholder-shown:text-gray-300 h-6 w-6" fill="none" viewBox="0 0 24 24" - stroke="currentColor"> + stroke="currentColor" +> <path stroke-linecap="round" stroke-linejoin="round" diff --git a/src/components/Footer.svelte b/src/components/Footer.svelte index 378dce6d..d70c013c 100644 --- a/src/components/Footer.svelte +++ b/src/components/Footer.svelte @@ -26,7 +26,8 @@ <div> <a href="/register"> <button - class="bg-black text-white border rounded-full px-4 py-2 font-bold hover:opacity-80 text-lg"> + class="bg-black text-white border rounded-full px-4 py-2 font-bold hover:opacity-80 text-lg" + > {$t("nav.startInSeconds")} </button> </a> diff --git a/src/components/Heart.svelte b/src/components/Heart.svelte index 4304545f..9bae6500 100644 --- a/src/components/Heart.svelte +++ b/src/components/Heart.svelte @@ -4,7 +4,8 @@ class="mr-1" viewBox="0 0 24 24" fill="none" - xmlns="http://www.w3.org/2000/svg"> + xmlns="http://www.w3.org/2000/svg" +> <path d="M4.31802 6.31802C2.56066 8.07538 2.56066 10.9246 4.31802 12.682L12.0001 20.364L19.682 12.682C21.4393 10.9246 21.4393 8.07538 19.682 6.31802C17.9246 4.56066 15.0754 4.56066 13.318 6.31802L12.0001 7.63609L10.682 6.31802C8.92462 4.56066 6.07538 4.56066 4.31802 6.31802Z" stroke="currentColor" diff --git a/src/components/Invoice.svelte b/src/components/Invoice.svelte index ad537b7b..ba436649 100644 --- a/src/components/Invoice.svelte +++ b/src/components/Invoice.svelte @@ -29,7 +29,8 @@ <div class="mx-auto my-auto flex gap-2"> <a href={`/${invoice.user.username}/invoice/${$invoice.id}/tip`}> <button - class="rounded-full border py-2 px-4 font-bold hover:opacity-80 w-32"> + class="rounded-full border py-2 px-4 font-bold hover:opacity-80 w-32" + > {$t("payments.pay")} </button> </a> diff --git a/src/components/LandingHeader.svelte b/src/components/LandingHeader.svelte index 72dd8c71..d1094a1d 100644 --- a/src/components/LandingHeader.svelte +++ b/src/components/LandingHeader.svelte @@ -52,12 +52,11 @@ class="border rounded-full px-6 py-2 font-bold" on:click={() => goto(`/${user.username}`)} >Home - - </button> <button class="bg-black text-white border rounded-full px-6 py-2 font-bold" - on:click={() => goto("/logout")}> + on:click={() => goto("/logout")} + > {$t("nav.signOut")} </button> {:else} @@ -65,12 +64,11 @@ class="border rounded-full px-6 py-2 font-bold hover:opacity-80" on:click={() => goto("/register")} >{$t("nav.startInSeconds")} - - </button> <button class="bg-black text-white border rounded-full px-6 py-2 font-bold hover:opacity-80" - on:click={() => goto("/login")}> + on:click={() => goto("/login")} + > {$t("nav.signIn")} </button> {/if} @@ -81,8 +79,6 @@ class="block md:hidden absolute top-[34.5px] right-10 z" on:click={() => (showMobileMenu = !showMobileMenu)} ><Icon icon={!showMobileMenu ? "menu" : "close"} /> - - </button> <div @@ -105,12 +101,11 @@ class="border rounded-full px-6 py-2 font-bold block w-full" on:click={() => goto("/register")} >{$t("nav.startInSeconds")} - - </button> <button class="bg-black text-white border rounded-full px-6 py-2 font-bold block w-full" - on:click={() => goto("/login")}> + on:click={() => goto("/login")} + > {$t("nav.signIn")} </button> {:else} @@ -118,12 +113,11 @@ class="border rounded-full px-6 py-2 font-bold block" on:click={() => goto(`/${user.username}`)} >{$t("nav.account")} - - </button> <button class="bg-black text-white border rounded-full px-6 py-2 font-bold block" - on:click={() => goto("/logout")}> + on:click={() => goto("/logout")} + > {$t("nav.signOut")} </button> {/if} diff --git a/src/components/LandingHero.svelte b/src/components/LandingHero.svelte index 14488cdd..43223499 100644 --- a/src/components/LandingHero.svelte +++ b/src/components/LandingHero.svelte @@ -29,7 +29,8 @@ <div class="flex justify-center"> <a href="/register"> <button - class="bg-black text-white border rounded-full px-6 py-2 font-bold hover:opacity-80"> + class="bg-black text-white border rounded-full px-6 py-2 font-bold hover:opacity-80" + > {$t("nav.startInSeconds")} </button> </a> diff --git a/src/components/Left.svelte b/src/components/Left.svelte index dd27a698..1e236969 100644 --- a/src/components/Left.svelte +++ b/src/components/Left.svelte @@ -4,7 +4,8 @@ height="24" viewBox="0 0 24 24" fill="none" - xmlns="http://www.w3.org/2000/svg"> + xmlns="http://www.w3.org/2000/svg" +> <path d="M15 19L8 12L15 5" stroke="currentColor" diff --git a/src/components/Lnurlw.svelte b/src/components/Lnurlw.svelte index c0898c7c..b83e648f 100644 --- a/src/components/Lnurlw.svelte +++ b/src/components/Lnurlw.svelte @@ -53,7 +53,8 @@ <div class="flex w-full"> <button type="submit" - class="opacity-100 hover:opacity-80'} rounded-2xl border py-3 font-bold mx-auto mt-2 bg-black text-white px-4 w-24"> + class="opacity-100 hover:opacity-80'} rounded-2xl border py-3 font-bold mx-auto mt-2 bg-black text-white px-4 w-24" + > {#if loading} <Spinner /> {:else} diff --git a/src/components/LocationsMap.svelte b/src/components/LocationsMap.svelte index 1f44ae34..b41b1a73 100644 --- a/src/components/LocationsMap.svelte +++ b/src/components/LocationsMap.svelte @@ -225,7 +225,8 @@ <div class="flex absolute flex top-2 right-2 gap-2"> <button class="rounded-full border-2 border-black bg-white w-10 h-10" - on:click={toggle}> + on:click={toggle} + > {#if timeout} <Icon icon="pause" style="w-4 m-auto" /> {:else} @@ -234,7 +235,8 @@ </button> <button class="rounded-full border-2 border-black bg-white w-10 h-10" - on:click={full}> + on:click={full} + > <Icon icon="full" style="w-4 m-auto" /> </button> </div> diff --git a/src/components/Lock.svelte b/src/components/Lock.svelte index 23ab0699..fce994a2 100644 --- a/src/components/Lock.svelte +++ b/src/components/Lock.svelte @@ -3,7 +3,8 @@ class="absolute bottom-0 left-0 -mb-0.5 transform translate-x-1/2 -translate-y-1/2 text-black peer-placeholder-shown:text-gray-300 h-6 w-6" fill="none" viewBox="0 0 24 24" - stroke="currentColor"> + stroke="currentColor" +> <path stroke-linecap="round" stroke-linejoin="round" diff --git a/src/components/Password.svelte b/src/components/Password.svelte index ab8b9449..da65d718 100644 --- a/src/components/Password.svelte +++ b/src/components/Password.svelte @@ -57,7 +57,8 @@ <button type="button" on:click={() => (revealPassword = !revealPassword)} - class="absolute right-5 top-6"> + class="absolute right-5 top-6" + > <Icon icon={revealPassword ? "eye" : "eye-off"} /> </button> </div> @@ -66,12 +67,14 @@ type="button" class="border-2 border-black rounded-xl font-semibold mx-auto py-3 w-40 hover:opacity-80 mx-auto" on:click={cancel} - on:keydown={cancel}> + on:keydown={cancel} + > <div class="my-auto">Cancel</div> </button> <button type="submit" - class="border-2 border-black rounded-xl font-semibold mx-auto py-3 w-40 hover:opacity-80 mx-auto"> + class="border-2 border-black rounded-xl font-semibold mx-auto py-3 w-40 hover:opacity-80 mx-auto" + > <div class="my-auto">Submit</div> </button> </div> diff --git a/src/components/Pin.svelte b/src/components/Pin.svelte index 50b0e463..9938f9a1 100644 --- a/src/components/Pin.svelte +++ b/src/components/Pin.svelte @@ -53,7 +53,8 @@ <div class="w-full flex"> <button class="border-2 border-black rounded-xl font-semibold mx-auto py-3 w-40 hover:opacity-80 mx-auto" - on:click|preventDefault={cancel}> + on:click|preventDefault={cancel} + > <div class="my-auto">Cancel</div> </button> </div> diff --git a/src/components/Pinpad.svelte b/src/components/Pinpad.svelte index 1a549654..641ddb2b 100644 --- a/src/components/Pinpad.svelte +++ b/src/components/Pinpad.svelte @@ -60,7 +60,8 @@ <button type="button" on:click={() => (hide = !hide)} - class="absolute -right-5 top-5"> + class="absolute -right-5 top-5" + > <Icon icon={hide ? "eye-off" : "eye"} style="w-8" /> </button> </div> @@ -71,7 +72,8 @@ <button type="button" class="bg-primary rounded-xl py-4 px-8 font-semibold active:bg-black active:text-white flex justify-center items-center hover:opacity-80" - on:click={() => handleInput(value)}> + on:click={() => handleInput(value)} + > <Left /> </button> {:else} diff --git a/src/components/Request.svelte b/src/components/Request.svelte index 03364052..c085f9e2 100644 --- a/src/components/Request.svelte +++ b/src/components/Request.svelte @@ -28,7 +28,8 @@ <div class="mx-auto my-auto flex gap-2"> <a href={`/${user.username}/receive/${$request.id}`}> <button - class="rounded-full border py-2 px-4 font-bold hover:opacity-80 w-32"> + class="rounded-full border py-2 px-4 font-bold hover:opacity-80 w-32" + > {$t("payments.invoice")} </button> </a> diff --git a/src/components/Spinner.svelte b/src/components/Spinner.svelte index 2e9243b9..e9c3348f 100644 --- a/src/components/Spinner.svelte +++ b/src/components/Spinner.svelte @@ -2,7 +2,8 @@ class="mx-auto h-6 w-6 animate-spin text-white" xmlns="http://www.w3.org/2000/svg" fill="none" - viewBox="0 0 24 24"> + viewBox="0 0 24 24" +> <circle class="opacity-25" cx="12" diff --git a/src/lib/invoice.js b/src/lib/invoice.js index e8164408..06a9a94e 100644 --- a/src/lib/invoice.js +++ b/src/lib/invoice.js @@ -31,7 +31,6 @@ export default async ({ cookies, request, url }) => { redirect(307, `/${user.username}/request/${request_id}`); } - if (invoice.prompt) - redirect(307, `/${user.username}/invoice/${id}/tip`); + if (invoice.prompt) redirect(307, `/${user.username}/invoice/${id}/tip`); else redirect(307, `/${user.username}/invoice/${id}`); }; diff --git a/src/lib/utils.js b/src/lib/utils.js index 5303ec35..755d8daf 100644 --- a/src/lib/utils.js +++ b/src/lib/utils.js @@ -282,7 +282,7 @@ export function shuffleArray(array) { } } - export let closest = (a, n) => +export let closest = (a, n) => a.reduce((prev, curr) => Math.abs(curr - n) < Math.abs(prev - n) ? curr : prev ); diff --git a/src/locales/fr.json b/src/locales/fr.json index ae2871f7..041fec34 100644 --- a/src/locales/fr.json +++ b/src/locales/fr.json @@ -1,331 +1,331 @@ { - "404": { - "404": "404", - "pageNotFound": "Page non trouvée." - }, - "about": { - "header": "À Propos", - "locations": { - "header": "Établissements", - "description": "Il y a des entreprises qui acceptent bitcoin utilisant le point de vente coinos. Si vous utilisez notre appli, s'il vous plait <a href=\"mailto:[email protected]\" class=\"underline underline-offset-4\">fais-le-nous savoir!</a>" - }, - "team": { - "header": "L'Équipe", - "adam": { - "name": "Adam Soltys", - "position": "Officier Technique Principal", - "bio": "Adam est développeur web et passionné de bitcoin. Il croit que l'argent sûr est la clé pour augmenter la prospérité planétaire. Il habite en Vancouver de Nord avec sa femme Chelsea et deux enfants." - }, - "cole": { - "name": "Cole Goodwin", - "position": "Professionel de Bitcoin", - "bio": "Cole est un professionel de bitcoin diplômé et un homme motivé avec passion pour la liberté. Il a découvert bitcoin en 2016 et l'a etudié en détail. Maintenant, il veux introduire le réseau Lightning à autant d'utilisateurs que possible." - } - } - }, - "error": { - "header": "Erreur", - "message": "S'il vous plait réessayez ou contactez l'assistance.", - "signIn": "Vous devez connecter pour continuer.", - "unrecognizedInput": "Donnée non reconnu" - }, - "faq": { - "header": "FAQ", - "cost": { - "question": "Combien cela coûte-t-il?", - "answer": "Recevoir des paiements sur votre compte est gratuit. Les retraits vers des portefeuilles externes entraînent des frais minimes qui varient en fonction des conditions du réseau. Nous facturons 0,1% pour convertir entre le Bitcoin lightning et le Bitcoin on-chain. Envoyer à d'autres comptes Coinos est gratuit." - }, - "compatibility": { - "question": "Ai-je besoin d'un dispositif ou d'un logiciel spécial?", - "answer": "Non, Coinos est une application web qui fonctionne partout où il y a Internet. Les commerçants pourraient l'utiliser sur une tablette ou afficher un code QR pour que les clients puissent le scanner avec leur téléphone." - }, - "safety": { - "question": "Quand mes fonds sont-ils réglés?", - "answer": "Les paiements lightning sont réglés instantanément. Vous pouvez retirer votre solde vers un autre portefeuille en quelques secondes. Les dépôts on-chain prennent en moyenne 5-10 minutes pour être confirmés." - }, - "pos": { - "question": "Coinos peut-il s'intégrer à mon PoS existant?", - "answer": "Nous recommandons d'entrer les ventes dans votre PoS existant comme des transactions en espèces." - }, - "bitcoin": { - "question": "Que puis-je faire avec le Bitcoin?", - "answer": "Dépensez-le chez d'autres commerçants ou payez vos dépenses avec en incitant votre personnel, vos fournisseurs et votre propriétaire à l'accepter." - } - }, - "footer": { - "followUs": "Suivez-Nous", - "twitter": "Twitter", - "github": "GitHub", - "company": "Entreprise", - "telegram": "Telegram", - "support": "Assistance", - "jobs": "Jobs", - "linktree": "Linktree", - "documentation": "Documentation" - }, - "howItWorks": { - "header": "Comment cela Fonctionne", - "step1": { - "header": "1. Créez votre compte", - "description": "Un nom d'utilateur et mot de passe est tout ce dont vous avez besoin pour commencer." - }, - "step2": { - "header": "2. Demande pour des paiements", - "description": "Comme vous faisiez normalement, mais avec bitcoin." - }, - "step3": { - "header": "3. C'est tout!", - "description": "Vous pouvez convertir en monnaie local n'importe quand." - } - }, - "landing": { - "header_before_icon": "Le", - "header_with_icon": "façon", - "header_after_icon": "le plus façile d'accepter bitcoin dans votre magasin.", - "subheader": "Agrandir votre clientèle et chiffre d'affaires en acceptant bitcoin avec un point de vente façile à utiliser et géré. Logiciel et matériel informatique non obligatoire.", - "info1": { - "title": "Paiements instantanés avec Lightning", - "description": "Le moment où votre client envoie un paiment, c'est là. Vous ne devez pas attendre les décisions des banques ou vous inquiéter pour des rejets de débit. Décisions instantanées, en secondes. Dites au revoir aux frais de transactions de 3% des cartes de crédit." - }, - "info2": { - "title": "Simple à utiliser, en garde par défaut", - "description1": "Juste entrer une quantité, partager le code QR et c'est tout!", - "description2": "Tes comptes sont en garde par défaut, qui élimine le nécessité de comprendre comment bitcoin/lightning fonctionnent. Nous réalisons le plus gros du travail pour que vous puissiez vous concentrer sur votre entreprise.", - "description3": "Vous avez toujours l'option de <span class=\"underline undeline-offset-4\">gérer</span> vos clés." - }, - "info3": { - "title": "Personalisez-le comme vous voulez", - "description": "Personalisez votre point de vente, ou utilisez les réglages par défaut - c'est votre chois." - } - }, - "login": { - "username": "Nom d'utilisateur", - "password": "Mot de passe", - "email": "Courriel", - "passwordRecommendation": "Nous recommendons un mot de passe long et aléatoire, généré par un gestionnaire de mots de passe.", - "forgotUserOrPassword": "Oublié votre nom d'utilisateur ou mot de passe ?", - "haveAccount": "Avez-vous déjà un compte ?", - "noAccount": "Pas encore de compte ?", - "register": "Enregistrer", - "signIn": "Connexion", - "failed": "Echec de Connexion", - "optional": "Optionnel", - "token": "Jeton 2FA", - "forgot": "Mot de passe oublié?", - "reset": "Reinitialiser le mot de passe", - "submit": "Soumettre", - "newPassword": "Nouveau mot de passe" - }, - "nav": { - "startInSeconds": "Commence en Secondes", - "account": "Compte", - "signIn": "Connexion", - "signOut": "Déconnexion", - "dashboard": "Tableau de bord", - "settings": "Préférences", - "support": "Assistance", - "profile": "Profil", - "map": "Carte", - "merch": "Marchandise", - "about": "À Propos", - "docs": "Documents", - "messages": "Messages", - "funds": "Fonds" - }, - "invoice": { - "addTip": "Ajoutez un pourboire", - "addTipq": "Ajouter un pourboire?", - "done": "Fini", - "paymentSuccessful": "Paiement réussi!", - "invoice": "Facture", - "total": "Total", - "tip": "Pourboire" - }, - "jobs": { - "header": "Emplois", - "subheader": "Postes disponibles actuels", - "pitch1": "coinos recherche pour des développeurs pour joindre notre équipe croissant (temps plein ou partiel, télétravail OK)", - "pitch2": "Avez-vous hâte de travailler sur bitcoin open source? Regardez sur nos dépôts sur", - "github": "GitHub", - "pitch3": "Si vous pensez que vous pouvez exercer une influence positive, nous voulons que vous contribuez. Envoyer votre CV à" - }, - "user": { - "follow": "Suivre", - "remove": "Enlève", - "scanToPayBTC": "Scanner pour payer avec bitcoin", - "dashboard": { - "dashboard": "Tableau de bord", - "accountBalance": "Solde", - "conversionFeeWarning": "Il y a des frais de 1% pour convertir entre bitcoin, Liquid et Lightning.", - "fetchingRate": "cherchant taut de change...", - "send": "Envoie", - "withdraw": "Retire", - "go": "Allez", - "receive": "Reçois un Paiement", - "deposit": "Déposer", - "voucher": "Bon" - }, - "receive": { - "lessThan1BTCWarning": "S'il vous plaît utilisez moins d'un bitcoin.", - "showQR": "Voire le QR code" - }, - "settings": { - "header": "Préférences", - "ACCOUNT": "COMPTE", - "POINT_OF_SALE": "POINT DE VENTE", - "SECURITY": "SÉCURITÉ", - "locale": "Langue", - "username": "Nom d'Utilisateur", - "email": "Courriel", - "newPassword": "Nouveau Mot de Passe", - "emailNotifications": "Notifications par Courriel", - "emailNotificationsDescription": "Nous pouvons vous notifier par courriel quand votre compte change ou quand vous recevez des paiements", - "smsNotifications": "Notifications par SMS", - "smsNotificationsDescription": "Nous vous envoyons des notifications par texte quand c'est activé", - "theme": "Thème", - "themeDescription": "Sélectionnez des thèmes dèfauts.", - "localCurrency": "Monnaie Local", - "btcUnit": "Voire bitcoin en:", - "bitcoin": "bitcoin", - "satoshis": "Satoshis", - "securityPIN": "NIP de Sécurité", - "securityPINDescription": "Choisir un NIP de sécurité qui sera necessaire pour ouvrir tes préférences et pour envoyer des paiements sortants.", - "setPIN": "Choisir Votre NIP", - "autoLock": "Auto-Verouillage", - "autoLockDescription": "Ta conte activera une mode sécuritaire après une durée spécifiée:", - "twofa": "Authentification à 2 Facteurs", - "twofaDescription": "Ajoutez un autre niveau de sécurité par activez l'authentication à deux facteurs.", - "twofaSetup": "Activer A2F", - "bannerImage": "Image de Bandeau", - "profileImage": "Image de Profil", - "oneTimeCode": "Entrez mot de passe à usage unique", - "accountId": "Secret de conte", - "twofaDisable": "Désactivez A2F", - "about": "À Propos", - "aboutPlaceholder": "Un description court de vous ou votre entreprise (adresse, bio, etc.)", - "select": "Choisir", - "verifyPIN": "Verifiez votre NIP", - "enablePIN": "Activer NIP", - "disablePIN": "Désactiver NIP", - "saveSettings": "Sauvegarder Paramètres", - "tipPrompt": "Demande pour Pourboires", - "tipPromptDescription": "Demander les gens s'ils voulent ajouter un pourboire avant payer leurs factures", - "displayName": "Nom d'Utilisateur", - "minutes": "minutes", - "hour": "heure", - "hours": "heures", - "hideSeed": "Cache phrase mnémotechnique", - "revealSeed": "Montre phrase mnémotechnique", - "notifications": "Notifications de paiement", - "notificationsDesc": "Reçevez un courriel quand un paiement arrive à ta conte", - "seedPhrase": "Phrase mnémotechnique", - "nostrKeys": "Clé nostr", - "nostrDescription": "Votre clé nostr est utilisé pour signer et décrypter vos messages, gardez-le sauf ou quelqu'un peut se faire passer pour vous.", - "seedDescription": "Cette phrase mnémotechnique à 12 mots est utilisé pour générer votre clé privée et vos clés de portefeuille que vous controllez qui déterminez vos addresses de retrait automatique. Sauvegardez-le et jamais permettez à personne de le voir.", - "emailDescription": "Pour seulement reinitialisations de mot de passe et notifications de paiements seulement.", - "hideNsec": "Cache clé privée nostr", - "saved": "Paramètres sauvegardés!", - "verifying": "Courriel de verification envoyé.", - "verified": "Courriel verifié!", - "revealNsec": "Montre clé privée nostr", - "publishNip5": "Publie identité nostr", - "nip5a": "Utilise", - "nip5b": "comme votre addresse nostr verifié publiquement" - }, - "support": { - "header": "Assistance", - "email": "Courriel", - "accountName": "Nom d'utilisateur", - "message": "Message", - "send": "Envoie" - }, - "bitcoin": "Bitcoin", - "lightning": "Lightning", - "invoice": "Facture", - "unfollow": "Ne plus suivre", - "following": "Vous suivez", - "this": "Cette", - "lightningAddress": "Adresse de lightning", - "send": { - "contacts": "Contacts", - "scan": "Scannez", - "paste": "Collez", - "next": "Prochain", - "placeholder": "Collez une adresse de bitcoin, facture de lightning ou nom d'utilisateur coinos", - "makeQR": "QR" - }, - "requestPayment": "Demander un Paiement", - "welcome": "Bienvenue! Le solde de votre conte est vide. Vous pouvez commencer par déposer ou recevoir un paiement.", - "showBalance": "Montrer Solde", - "followers": "Abonnés", - "noNotes": "Pas de notes", - "message": "Envoyer", - "messages": "Messages", - "feed": "Flux", - "notes": "Notes", - "pay": "Payer", - "profilePage": "Page de profil", - "nostrPubkey": "Clé publique nostr" - }, - "news": { - "header": "Nouvelles", - "subheader": "Dernières Informations" - }, - "payments": { - "addFunds": "Ajouter d'argent", - "takeFunds": "Prendre d'argent", - "show": "Démontrer", - "hide": "Cacher", - "qr": "QR", - "copyLink": "Copier le Lien", - "copyText": "Copier le Texte", - "openLink": "Ouvrer le Portefeuille", - "moreOptions": "Plus d'options", - "total": "Total", - "gainLoss": "Hausse/Perte", - "presentValue": "Valuer au présent", - "amount": "Quantité", - "date": "Date", - "id": "ID de Transaction", - "details": "Détails de Transaction", - "header": "Paiements", - "preimage": "Preuve de paiement", - "type": "Type", - "time": "Heure", - "sent": "Envoyé", - "received": "Reçu", - "empty": "Vous n'avez pas de transactions.", - "send": "Envoyer", - "next": "Prochain", - "sendTo": "Envoyer à", - "to": "à", - "pay": "Payer", - "requesting": "demande", - "sentInvoiceTo": "Envoyé une facture à", - "sentRequestTo": "Demande envoyé!", - "pleasePay": "S'il vous plait payez", - "day": "Jour", - "week": "Semaine", - "month": "Mois", - "all": "Toutes", - "export": "Exporter", - "invoice": "Facture", - "readyToPay": "est prêt a payer", - "describeOrder": "Utiliser ce champ pour décrire votre commande", - "requestAnInvoice": "Demander une facture", - "submit": "Soumettre", - "isRequesting": "demande", - "invoiceFrom": "Facture de", - "awaiting": "Attendant", - "tapAnywhere": "Taper n'importe où pour continuer", - "from": "de", - "redeem": "Racheter", - "redeemed": "Racheté", - "redeemedBy": "Racheté par", - "sendMessage": "Écrire une message...", - "fundsClaimed": "Les fonds sont réclamés!", - "print": "Imprime", - "create": "Crée", - "fund": "Finance" - } + "404": { + "404": "404", + "pageNotFound": "Page non trouvée." + }, + "about": { + "header": "À Propos", + "locations": { + "header": "Établissements", + "description": "Il y a des entreprises qui acceptent bitcoin utilisant le point de vente coinos. Si vous utilisez notre appli, s'il vous plait <a href=\"mailto:[email protected]\" class=\"underline underline-offset-4\">fais-le-nous savoir!</a>" + }, + "team": { + "header": "L'Équipe", + "adam": { + "name": "Adam Soltys", + "position": "Officier Technique Principal", + "bio": "Adam est développeur web et passionné de bitcoin. Il croit que l'argent sûr est la clé pour augmenter la prospérité planétaire. Il habite en Vancouver de Nord avec sa femme Chelsea et deux enfants." + }, + "cole": { + "name": "Cole Goodwin", + "position": "Professionel de Bitcoin", + "bio": "Cole est un professionel de bitcoin diplômé et un homme motivé avec passion pour la liberté. Il a découvert bitcoin en 2016 et l'a etudié en détail. Maintenant, il veux introduire le réseau Lightning à autant d'utilisateurs que possible." + } + } + }, + "error": { + "header": "Erreur", + "message": "S'il vous plait réessayez ou contactez l'assistance.", + "signIn": "Vous devez connecter pour continuer.", + "unrecognizedInput": "Donnée non reconnu" + }, + "faq": { + "header": "FAQ", + "cost": { + "question": "Combien cela coûte-t-il?", + "answer": "Recevoir des paiements sur votre compte est gratuit. Les retraits vers des portefeuilles externes entraînent des frais minimes qui varient en fonction des conditions du réseau. Nous facturons 0,1% pour convertir entre le Bitcoin lightning et le Bitcoin on-chain. Envoyer à d'autres comptes Coinos est gratuit." + }, + "compatibility": { + "question": "Ai-je besoin d'un dispositif ou d'un logiciel spécial?", + "answer": "Non, Coinos est une application web qui fonctionne partout où il y a Internet. Les commerçants pourraient l'utiliser sur une tablette ou afficher un code QR pour que les clients puissent le scanner avec leur téléphone." + }, + "safety": { + "question": "Quand mes fonds sont-ils réglés?", + "answer": "Les paiements lightning sont réglés instantanément. Vous pouvez retirer votre solde vers un autre portefeuille en quelques secondes. Les dépôts on-chain prennent en moyenne 5-10 minutes pour être confirmés." + }, + "pos": { + "question": "Coinos peut-il s'intégrer à mon PoS existant?", + "answer": "Nous recommandons d'entrer les ventes dans votre PoS existant comme des transactions en espèces." + }, + "bitcoin": { + "question": "Que puis-je faire avec le Bitcoin?", + "answer": "Dépensez-le chez d'autres commerçants ou payez vos dépenses avec en incitant votre personnel, vos fournisseurs et votre propriétaire à l'accepter." + } + }, + "footer": { + "followUs": "Suivez-Nous", + "twitter": "Twitter", + "github": "GitHub", + "company": "Entreprise", + "telegram": "Telegram", + "support": "Assistance", + "jobs": "Jobs", + "linktree": "Linktree", + "documentation": "Documentation" + }, + "howItWorks": { + "header": "Comment cela Fonctionne", + "step1": { + "header": "1. Créez votre compte", + "description": "Un nom d'utilateur et mot de passe est tout ce dont vous avez besoin pour commencer." + }, + "step2": { + "header": "2. Demande pour des paiements", + "description": "Comme vous faisiez normalement, mais avec bitcoin." + }, + "step3": { + "header": "3. C'est tout!", + "description": "Vous pouvez convertir en monnaie local n'importe quand." + } + }, + "landing": { + "header_before_icon": "Le", + "header_with_icon": "façon", + "header_after_icon": "le plus façile d'accepter bitcoin dans votre magasin.", + "subheader": "Agrandir votre clientèle et chiffre d'affaires en acceptant bitcoin avec un point de vente façile à utiliser et géré. Logiciel et matériel informatique non obligatoire.", + "info1": { + "title": "Paiements instantanés avec Lightning", + "description": "Le moment où votre client envoie un paiment, c'est là. Vous ne devez pas attendre les décisions des banques ou vous inquiéter pour des rejets de débit. Décisions instantanées, en secondes. Dites au revoir aux frais de transactions de 3% des cartes de crédit." + }, + "info2": { + "title": "Simple à utiliser, en garde par défaut", + "description1": "Juste entrer une quantité, partager le code QR et c'est tout!", + "description2": "Tes comptes sont en garde par défaut, qui élimine le nécessité de comprendre comment bitcoin/lightning fonctionnent. Nous réalisons le plus gros du travail pour que vous puissiez vous concentrer sur votre entreprise.", + "description3": "Vous avez toujours l'option de <span class=\"underline undeline-offset-4\">gérer</span> vos clés." + }, + "info3": { + "title": "Personalisez-le comme vous voulez", + "description": "Personalisez votre point de vente, ou utilisez les réglages par défaut - c'est votre chois." + } + }, + "login": { + "username": "Nom d'utilisateur", + "password": "Mot de passe", + "email": "Courriel", + "passwordRecommendation": "Nous recommendons un mot de passe long et aléatoire, généré par un gestionnaire de mots de passe.", + "forgotUserOrPassword": "Oublié votre nom d'utilisateur ou mot de passe ?", + "haveAccount": "Avez-vous déjà un compte ?", + "noAccount": "Pas encore de compte ?", + "register": "Enregistrer", + "signIn": "Connexion", + "failed": "Echec de Connexion", + "optional": "Optionnel", + "token": "Jeton 2FA", + "forgot": "Mot de passe oublié?", + "reset": "Reinitialiser le mot de passe", + "submit": "Soumettre", + "newPassword": "Nouveau mot de passe" + }, + "nav": { + "startInSeconds": "Commence en Secondes", + "account": "Compte", + "signIn": "Connexion", + "signOut": "Déconnexion", + "dashboard": "Tableau de bord", + "settings": "Préférences", + "support": "Assistance", + "profile": "Profil", + "map": "Carte", + "merch": "Marchandise", + "about": "À Propos", + "docs": "Documents", + "messages": "Messages", + "funds": "Fonds" + }, + "invoice": { + "addTip": "Ajoutez un pourboire", + "addTipq": "Ajouter un pourboire?", + "done": "Fini", + "paymentSuccessful": "Paiement réussi!", + "invoice": "Facture", + "total": "Total", + "tip": "Pourboire" + }, + "jobs": { + "header": "Emplois", + "subheader": "Postes disponibles actuels", + "pitch1": "coinos recherche pour des développeurs pour joindre notre équipe croissant (temps plein ou partiel, télétravail OK)", + "pitch2": "Avez-vous hâte de travailler sur bitcoin open source? Regardez sur nos dépôts sur", + "github": "GitHub", + "pitch3": "Si vous pensez que vous pouvez exercer une influence positive, nous voulons que vous contribuez. Envoyer votre CV à" + }, + "user": { + "follow": "Suivre", + "remove": "Enlève", + "scanToPayBTC": "Scanner pour payer avec bitcoin", + "dashboard": { + "dashboard": "Tableau de bord", + "accountBalance": "Solde", + "conversionFeeWarning": "Il y a des frais de 1% pour convertir entre bitcoin, Liquid et Lightning.", + "fetchingRate": "cherchant taut de change...", + "send": "Envoie", + "withdraw": "Retire", + "go": "Allez", + "receive": "Reçois un Paiement", + "deposit": "Déposer", + "voucher": "Bon" + }, + "receive": { + "lessThan1BTCWarning": "S'il vous plaît utilisez moins d'un bitcoin.", + "showQR": "Voire le QR code" + }, + "settings": { + "header": "Préférences", + "ACCOUNT": "COMPTE", + "POINT_OF_SALE": "POINT DE VENTE", + "SECURITY": "SÉCURITÉ", + "locale": "Langue", + "username": "Nom d'Utilisateur", + "email": "Courriel", + "newPassword": "Nouveau Mot de Passe", + "emailNotifications": "Notifications par Courriel", + "emailNotificationsDescription": "Nous pouvons vous notifier par courriel quand votre compte change ou quand vous recevez des paiements", + "smsNotifications": "Notifications par SMS", + "smsNotificationsDescription": "Nous vous envoyons des notifications par texte quand c'est activé", + "theme": "Thème", + "themeDescription": "Sélectionnez des thèmes dèfauts.", + "localCurrency": "Monnaie Local", + "btcUnit": "Voire bitcoin en:", + "bitcoin": "bitcoin", + "satoshis": "Satoshis", + "securityPIN": "NIP de Sécurité", + "securityPINDescription": "Choisir un NIP de sécurité qui sera necessaire pour ouvrir tes préférences et pour envoyer des paiements sortants.", + "setPIN": "Choisir Votre NIP", + "autoLock": "Auto-Verouillage", + "autoLockDescription": "Ta conte activera une mode sécuritaire après une durée spécifiée:", + "twofa": "Authentification à 2 Facteurs", + "twofaDescription": "Ajoutez un autre niveau de sécurité par activez l'authentication à deux facteurs.", + "twofaSetup": "Activer A2F", + "bannerImage": "Image de Bandeau", + "profileImage": "Image de Profil", + "oneTimeCode": "Entrez mot de passe à usage unique", + "accountId": "Secret de conte", + "twofaDisable": "Désactivez A2F", + "about": "À Propos", + "aboutPlaceholder": "Un description court de vous ou votre entreprise (adresse, bio, etc.)", + "select": "Choisir", + "verifyPIN": "Verifiez votre NIP", + "enablePIN": "Activer NIP", + "disablePIN": "Désactiver NIP", + "saveSettings": "Sauvegarder Paramètres", + "tipPrompt": "Demande pour Pourboires", + "tipPromptDescription": "Demander les gens s'ils voulent ajouter un pourboire avant payer leurs factures", + "displayName": "Nom d'Utilisateur", + "minutes": "minutes", + "hour": "heure", + "hours": "heures", + "hideSeed": "Cache phrase mnémotechnique", + "revealSeed": "Montre phrase mnémotechnique", + "notifications": "Notifications de paiement", + "notificationsDesc": "Reçevez un courriel quand un paiement arrive à ta conte", + "seedPhrase": "Phrase mnémotechnique", + "nostrKeys": "Clé nostr", + "nostrDescription": "Votre clé nostr est utilisé pour signer et décrypter vos messages, gardez-le sauf ou quelqu'un peut se faire passer pour vous.", + "seedDescription": "Cette phrase mnémotechnique à 12 mots est utilisé pour générer votre clé privée et vos clés de portefeuille que vous controllez qui déterminez vos addresses de retrait automatique. Sauvegardez-le et jamais permettez à personne de le voir.", + "emailDescription": "Pour seulement reinitialisations de mot de passe et notifications de paiements seulement.", + "hideNsec": "Cache clé privée nostr", + "saved": "Paramètres sauvegardés!", + "verifying": "Courriel de verification envoyé.", + "verified": "Courriel verifié!", + "revealNsec": "Montre clé privée nostr", + "publishNip5": "Publie identité nostr", + "nip5a": "Utilise", + "nip5b": "comme votre addresse nostr verifié publiquement" + }, + "support": { + "header": "Assistance", + "email": "Courriel", + "accountName": "Nom d'utilisateur", + "message": "Message", + "send": "Envoie" + }, + "bitcoin": "Bitcoin", + "lightning": "Lightning", + "invoice": "Facture", + "unfollow": "Ne plus suivre", + "following": "Vous suivez", + "this": "Cette", + "lightningAddress": "Adresse de lightning", + "send": { + "contacts": "Contacts", + "scan": "Scannez", + "paste": "Collez", + "next": "Prochain", + "placeholder": "Collez une adresse de bitcoin, facture de lightning ou nom d'utilisateur coinos", + "makeQR": "QR" + }, + "requestPayment": "Demander un Paiement", + "welcome": "Bienvenue! Le solde de votre conte est vide. Vous pouvez commencer par déposer ou recevoir un paiement.", + "showBalance": "Montrer Solde", + "followers": "Abonnés", + "noNotes": "Pas de notes", + "message": "Envoyer", + "messages": "Messages", + "feed": "Flux", + "notes": "Notes", + "pay": "Payer", + "profilePage": "Page de profil", + "nostrPubkey": "Clé publique nostr" + }, + "news": { + "header": "Nouvelles", + "subheader": "Dernières Informations" + }, + "payments": { + "addFunds": "Ajouter d'argent", + "takeFunds": "Prendre d'argent", + "show": "Démontrer", + "hide": "Cacher", + "qr": "QR", + "copyLink": "Copier le Lien", + "copyText": "Copier le Texte", + "openLink": "Ouvrer le Portefeuille", + "moreOptions": "Plus d'options", + "total": "Total", + "gainLoss": "Hausse/Perte", + "presentValue": "Valuer au présent", + "amount": "Quantité", + "date": "Date", + "id": "ID de Transaction", + "details": "Détails de Transaction", + "header": "Paiements", + "preimage": "Preuve de paiement", + "type": "Type", + "time": "Heure", + "sent": "Envoyé", + "received": "Reçu", + "empty": "Vous n'avez pas de transactions.", + "send": "Envoyer", + "next": "Prochain", + "sendTo": "Envoyer à", + "to": "à", + "pay": "Payer", + "requesting": "demande", + "sentInvoiceTo": "Envoyé une facture à", + "sentRequestTo": "Demande envoyé!", + "pleasePay": "S'il vous plait payez", + "day": "Jour", + "week": "Semaine", + "month": "Mois", + "all": "Toutes", + "export": "Exporter", + "invoice": "Facture", + "readyToPay": "est prêt a payer", + "describeOrder": "Utiliser ce champ pour décrire votre commande", + "requestAnInvoice": "Demander une facture", + "submit": "Soumettre", + "isRequesting": "demande", + "invoiceFrom": "Facture de", + "awaiting": "Attendant", + "tapAnywhere": "Taper n'importe où pour continuer", + "from": "de", + "redeem": "Racheter", + "redeemed": "Racheté", + "redeemedBy": "Racheté par", + "sendMessage": "Écrire une message...", + "fundsClaimed": "Les fonds sont réclamés!", + "print": "Imprime", + "create": "Crée", + "fund": "Finance" + } } diff --git a/src/routes/(app)/+error.svelte b/src/routes/(app)/+error.svelte index b5a5e139..6ce7979c 100644 --- a/src/routes/(app)/+error.svelte +++ b/src/routes/(app)/+error.svelte @@ -27,7 +27,8 @@ <div class="flex justify-center py-24"> <a href={link}> <button - class="bg-black text-white border rounded-full px-8 py-4 font-bold hover:opacity-80 text-xl"> + class="bg-black text-white border rounded-full px-8 py-4 font-bold hover:opacity-80 text-xl" + > Back </button> </a> diff --git a/src/routes/(app)/[username]/(profile)/request/+page.svelte b/src/routes/(app)/[username]/(profile)/request/+page.svelte index 373a1302..a07ee914 100644 --- a/src/routes/(app)/[username]/(profile)/request/+page.svelte +++ b/src/routes/(app)/[username]/(profile)/request/+page.svelte @@ -26,7 +26,8 @@ <div class="w-full flex"> <button type="submit" - class="bg-black text-white border rounded-full px-6 py-2 font-bold mx-auto"> + class="bg-black text-white border rounded-full px-6 py-2 font-bold mx-auto" + > {$t("payments.submit")} </button> </div> diff --git a/src/routes/(app)/[username]/card/[serial]/+page.svelte b/src/routes/(app)/[username]/card/[serial]/+page.svelte index 1792b443..1d11ebee 100644 --- a/src/routes/(app)/[username]/card/[serial]/+page.svelte +++ b/src/routes/(app)/[username]/card/[serial]/+page.svelte @@ -13,13 +13,15 @@ <div class="flex justify-center"> <a href={`/send/pot/${serial}`}> <button - class="rounded-full border py-3 px-6 font-bold hover:opacity-80 flex w-60 bg-black text-white justify-center gap-2"> + class="rounded-full border py-3 px-6 font-bold hover:opacity-80 flex w-60 bg-black text-white justify-center gap-2" + > <svg xmlns="http://www.w3.org/2000/svg" class="invert text-black peer-placeholder-shown:text-gray-300 h-6 w-6 my-auto" fill="none" viewBox="0 0 24 24" - stroke="currentColor"> + stroke="currentColor" + > <path stroke-linecap="round" stroke-linejoin="round" diff --git a/src/routes/(app)/[username]/funds/+page.svelte b/src/routes/(app)/[username]/funds/+page.svelte index edbe22a5..25686e86 100644 --- a/src/routes/(app)/[username]/funds/+page.svelte +++ b/src/routes/(app)/[username]/funds/+page.svelte @@ -37,7 +37,8 @@ </div> <button - class="ml-auto rounded-full border py-2 px-4 w-36 hover:opacity-80 flex mx-auto"> + class="ml-auto rounded-full border py-2 px-4 w-36 hover:opacity-80 flex mx-auto" + > <Icon icon="plus" style="opacity-50 mr-2 my-auto" /> <div class="my-auto">{$t("payments.create")}</div> </button> diff --git a/src/routes/(app)/[username]/generate/+page.svelte b/src/routes/(app)/[username]/generate/+page.svelte index 0c83fad4..b9b077a3 100644 --- a/src/routes/(app)/[username]/generate/+page.svelte +++ b/src/routes/(app)/[username]/generate/+page.svelte @@ -62,7 +62,9 @@ {/if} <div class="container px-4 text-center mx-auto"> - <h1 class="text-3xl md:text-4xl font-bold mb-6">Generating new account keys</h1> + <h1 class="text-3xl md:text-4xl font-bold mb-6"> + Generating new account keys + </h1> <div class="flex w-full py-5 max-w-[200px] mx-auto bg-black rounded-2xl"> <Spinner /> </div> diff --git a/src/routes/(app)/[username]/invoice/[id]/+layout.server.js b/src/routes/(app)/[username]/invoice/[id]/+layout.server.js index b887d407..c69da78a 100644 --- a/src/routes/(app)/[username]/invoice/[id]/+layout.server.js +++ b/src/routes/(app)/[username]/invoice/[id]/+layout.server.js @@ -27,10 +27,10 @@ export async function load({ depends, params, url, parent }) { (amount > 0 && (pending >= amount || received >= amount)); if (paid && !url.pathname.endsWith("paid")) { redirect( - 307, - `/${params.username}/invoice/${id}/paid` + - (options ? "?options=true" : "") - ); + 307, + `/${params.username}/invoice/${id}/paid` + + (options ? "?options=true" : "") + ); } let sm = Qr.drawImg(invoice.text || "", { size: 300 }); diff --git a/src/routes/(app)/[username]/invoice/[id]/+page.svelte b/src/routes/(app)/[username]/invoice/[id]/+page.svelte index 13c75fca..0ff1c21c 100644 --- a/src/routes/(app)/[username]/invoice/[id]/+page.svelte +++ b/src/routes/(app)/[username]/invoice/[id]/+page.svelte @@ -130,13 +130,17 @@ class="rounded-full border py-2 px-4 font-bold hover:opacity-80 w-full" class:bg-black={type === types.lightning} class:text-white={type === types.lightning} - on:click={toggleType}> ⚡️ Lightning </button> + on:click={toggleType} + > + ⚡️ Lightning + </button> <button class="rounded-full border py-2 px-4 font-bold hover:opacity-80 w-full flex justify-center" class:bg-black={type === types.bitcoin} class:text-white={type === types.bitcoin} - on:click={toggleType}> + on:click={toggleType} + > <img src="/images/bitcoin.svg" class="my-auto w-8 border-4 border-transparent" @@ -151,7 +155,8 @@ <a href={invoice.type === "bitcoin" ? invoice.text - : "lightning:" + invoice.text}> + : "lightning:" + invoice.text} + > <div class="relative flex"> <div class="flex mx-auto w-[360px] h-[360px]"> <img @@ -203,7 +208,8 @@ <div class="w-full flex justify-center gap-2 flex-wrap"> <a href={link} class="w-full md:w-auto"> <button - class="w-full md:w-auto flex justify-center rounded-full border py-3 px-5 hover:opacity-80"> + class="w-full md:w-auto flex justify-center rounded-full border py-3 px-5 hover:opacity-80" + > <Icon icon="mobile" style="mr-1 w-6" /> <div class="text-secondary">{$t("payments.openLink")}</div> </button> @@ -211,18 +217,16 @@ <button class="flex rounded-full justify-center border py-3 px-5 hover:opacity-80 w-full md:w-auto" - on:click={() => copy(txt)}> - - + on:click={() => copy(txt)} + > <Icon icon="copy" style="mr-1" /> <div class="text-secondary">{$t("payments.copyText")}</div></button > <button class="w-full md:w-auto flex justify-center rounded-full border py-3 px-5 hover:opacity-80" - on:click={() => (showQr = !showQr)}> - - + on:click={() => (showQr = !showQr)} + > <Icon icon="qr" style="mr-1 invert" /> <div class="text-secondary"> {showQr ? $t("payments.hide") : $t("payments.show")} diff --git a/src/routes/(app)/[username]/invoice/[id]/paid/+page.svelte b/src/routes/(app)/[username]/invoice/[id]/paid/+page.svelte index bc974b9a..9740dc92 100644 --- a/src/routes/(app)/[username]/invoice/[id]/paid/+page.svelte +++ b/src/routes/(app)/[username]/invoice/[id]/paid/+page.svelte @@ -9,16 +9,8 @@ export let data; let amount, currency, rate, received, pending, tip, user, id; $: data && - ({ - amount, - currency, - rate, - received, - pending, - tip, - user, - id, - } = data.invoice); + ({ amount, currency, rate, received, pending, tip, user, id } = + data.invoice); toast.pop(0); </script> diff --git a/src/routes/(app)/[username]/receive/[...param]/+page.svelte b/src/routes/(app)/[username]/receive/[...param]/+page.svelte index 37ab57f0..6d8939a9 100644 --- a/src/routes/(app)/[username]/receive/[...param]/+page.svelte +++ b/src/routes/(app)/[username]/receive/[...param]/+page.svelte @@ -49,7 +49,8 @@ bind:this={submit} type="submit" class="bg-black text-white rounded-xl w-full h-[48px] flex justify-center items-center font-semibold - opacity-100 hover:opacity-80"> + opacity-100 hover:opacity-80" + > {$t("payments.next")} </button> </div> diff --git a/src/routes/(app)/[username]/settings/[...tab]/+page.svelte b/src/routes/(app)/[username]/settings/[...tab]/+page.svelte index 714ed8db..54a2d71c 100644 --- a/src/routes/(app)/[username]/settings/[...tab]/+page.svelte +++ b/src/routes/(app)/[username]/settings/[...tab]/+page.svelte @@ -223,7 +223,8 @@ bind:this={submit} type="submit" class="border-2 border-black rounded-xl font-semibold mx-auto py-3 w-40 hover:opacity-80" - class:bg-black={submitting}> + class:bg-black={submitting} + > {#if submitting} <Spinner /> {:else} diff --git a/src/routes/(app)/[username]/settings/[...tab]/_account.svelte b/src/routes/(app)/[username]/settings/[...tab]/_account.svelte index 773485f0..15ee7b0c 100644 --- a/src/routes/(app)/[username]/settings/[...tab]/_account.svelte +++ b/src/routes/(app)/[username]/settings/[...tab]/_account.svelte @@ -109,7 +109,6 @@ </div> </div> - <div> <span class="font-bold">{$t("user.settings.profileImage")}</span> diff --git a/src/routes/(app)/[username]/settings/[...tab]/_pos.svelte b/src/routes/(app)/[username]/settings/[...tab]/_pos.svelte index 0e4301c4..539cfd5e 100644 --- a/src/routes/(app)/[username]/settings/[...tab]/_pos.svelte +++ b/src/routes/(app)/[username]/settings/[...tab]/_pos.svelte @@ -25,7 +25,8 @@ <select name="currency" class="select-styles block py-3 w-full" - value={user.currency}> + value={user.currency} + > {#each fiats as fiat} <option value={fiat}>{fiat}</option> {/each} @@ -67,7 +68,8 @@ <a href="./shopify"> <button type="button" - class="flex rounded-full border py-2 px-4 font-bold hover:opacity-80 w-full gap-2 my-5 justify-center"> + class="flex rounded-full border py-2 px-4 font-bold hover:opacity-80 w-full gap-2 my-5 justify-center" + > <img src="/icons/shopify.svg" class="w-8" /> <div class="my-auto">Shopify Integration</div> </button> diff --git a/src/routes/(app)/[username]/settings/[...tab]/_security.svelte b/src/routes/(app)/[username]/settings/[...tab]/_security.svelte index 3aa7012e..38bf726c 100644 --- a/src/routes/(app)/[username]/settings/[...tab]/_security.svelte +++ b/src/routes/(app)/[username]/settings/[...tab]/_security.svelte @@ -167,7 +167,8 @@ type="button" on:click={togglePassword} on:keydown={togglePassword} - class="absolute right-5 top-11"> + class="absolute right-5 top-11" + > <Icon icon={revealPassword ? "eye" : "eye-off"} /> </button> </div> @@ -211,7 +212,8 @@ <select name="locktime" class="select-styles block py-3 w-full" - value={parseInt(user.locktime)}> + value={parseInt(user.locktime)} + > <option value={5 * 60}>5 {$t("user.settings.minutes")}</option> <option value={10 * 60}>10 {$t("user.settings.minutes")}</option> <option value={30 * 60}>30 {$t("user.settings.minutes")}</option> diff --git a/src/routes/(app)/[username]/settings/[...tab]/_shopify.svelte b/src/routes/(app)/[username]/settings/[...tab]/_shopify.svelte index 870803fb..0266fa9c 100644 --- a/src/routes/(app)/[username]/settings/[...tab]/_shopify.svelte +++ b/src/routes/(app)/[username]/settings/[...tab]/_shopify.svelte @@ -28,7 +28,9 @@ <div class="flex mb-2"> <div class="text-gray-600 p-4 my-auto bg-gray-100 border rounded-l-2xl border-r-0 pr-1" - >admin.shopify.com/store/</div> + > + admin.shopify.com/store/ + </div> <input type="text" name="shopifyStore" diff --git a/src/routes/(app)/buy/+page.svelte b/src/routes/(app)/buy/+page.svelte index affb77ee..2b81b7a8 100644 --- a/src/routes/(app)/buy/+page.svelte +++ b/src/routes/(app)/buy/+page.svelte @@ -60,8 +60,7 @@ /> <span class="absolute bottom-[9px] left-0 translate-x-1/2 w-6 text-black peer-placeholder-shown:text-gray-300 - " - >$</span + ">$</span > </label> @@ -94,9 +93,8 @@ CVC/CVV <span class="relative group"> <span - class="hidden group-hover:flex justify-center items-center px-2 py-1 text-xs absolute -right-2 transform translate-x-full -translate-y-1/2 w-max top-1/2 bg-black text-white"> - - + class="hidden group-hover:flex justify-center items-center px-2 py-1 text-xs absolute -right-2 transform translate-x-full -translate-y-1/2 w-max top-1/2 bg-black text-white" + > 3-digit number on the back of your card</span > </span> @@ -115,7 +113,8 @@ <button class="bg-black text-white border rounded-full px-8 py-4 font-bold hover:opacity-80 mx-auto text-xl" type="submit" - disabled={loading}> + disabled={loading} + > {#if loading} <Spinner /> {:else} diff --git a/src/routes/(app)/forgot/+page.svelte b/src/routes/(app)/forgot/+page.svelte index 9490d531..378262cc 100644 --- a/src/routes/(app)/forgot/+page.svelte +++ b/src/routes/(app)/forgot/+page.svelte @@ -32,13 +32,15 @@ {#if form?.success} <div class="text-secondary"> - A password reset link will be sent to your email if we have it on file. + A password reset link will be sent to your email if we have it on + file. </div> <div class="flex w-full"> <a href="/login" - class="bg-black text-white w-full rounded-2xl p-4 font-semibold hover:opacity-80 text-center"> + class="bg-black text-white w-full rounded-2xl p-4 font-semibold hover:opacity-80 text-center" + > Continue </a> </div> @@ -60,7 +62,8 @@ <button type="submit" class="bg-black text-white w-full rounded-2xl p-4 font-semibold hover:opacity-80" - disabled={loading}> + disabled={loading} + > {#if loading} <Spinner /> {:else} diff --git a/src/routes/(app)/fund/[id]/+page.svelte b/src/routes/(app)/fund/[id]/+page.svelte index ebb1a517..b81e2917 100644 --- a/src/routes/(app)/fund/[id]/+page.svelte +++ b/src/routes/(app)/fund/[id]/+page.svelte @@ -62,7 +62,8 @@ <div class="grow"> <a href={`/send/fund/${id}`}> <button - class="rounded-full border py-3 px-2 font-bold hover:opacity-80 flex gap-1 w-full justify-center"> + class="rounded-full border py-3 px-2 font-bold hover:opacity-80 flex gap-1 w-full justify-center" + > <Icon icon="plus" /> {$t("payments.addFunds")} </button> @@ -71,7 +72,8 @@ <div class="grow"> <a href={`/fund/${id}/withdraw`}> <button - class="rounded-full border py-3 px-2 font-bold hover:opacity-80 flex gap-1 w-full justify-center"> + class="rounded-full border py-3 px-2 font-bold hover:opacity-80 flex gap-1 w-full justify-center" + > <Icon icon="minus" style="rotate-180" /> {$t("payments.takeFunds")} </button> @@ -81,13 +83,15 @@ <div class="flex gap-2" data-sveltekit-prefetch="off"> <button class="rounded-full border py-3 px-2 font-bold hover:opacity-80 flex gap-1 w-full justify-center" - on:click={toggle}> + on:click={toggle} + > <Icon icon="qr" style="invert" /> {show ? $t("payments.hide") : $t("payments.show")} QR </button> <button class="rounded-full border py-3 px-2 font-bold hover:opacity-80 flex gap-1 w-full justify-center" - on:click={() => copy($page.url.host + $page.url.pathname)}> + on:click={() => copy($page.url.host + $page.url.pathname)} + > <Icon icon="copy" style="w-6" /> {$t("payments.copyLink")} </button> diff --git a/src/routes/(app)/fund/[id]/withdraw/+page.svelte b/src/routes/(app)/fund/[id]/withdraw/+page.svelte index e7c1d852..7af07e38 100644 --- a/src/routes/(app)/fund/[id]/withdraw/+page.svelte +++ b/src/routes/(app)/fund/[id]/withdraw/+page.svelte @@ -47,7 +47,8 @@ <div class="flex w-full"> <button type="submit" - class="opacity-100 hover:opacity-80'} rounded-2xl border py-3 font-bold mx-auto mt-2 bg-black text-white px-4 w-24"> + class="opacity-100 hover:opacity-80'} rounded-2xl border py-3 font-bold mx-auto mt-2 bg-black text-white px-4 w-24" + > {#if loading} <Spinner /> {:else} diff --git a/src/routes/(app)/launch/+page.svelte b/src/routes/(app)/launch/+page.svelte index cb43e63e..ef02ae0f 100644 --- a/src/routes/(app)/launch/+page.svelte +++ b/src/routes/(app)/launch/+page.svelte @@ -58,7 +58,9 @@ <div class="p-4 font-normal text-gray-800 md:w-3/4 space-y-5"> <h1 class="mb-4 text-4xl font-bold leading-none tracking-tight text-gray-800" - >Launch Party!</h1> + > + Launch Party! + </h1> <p class="leading-normal mb-2"> Come join us at our launch party celebrating our new design and 10 @@ -104,7 +106,8 @@ <div class="flex w-full my-8"> <a href={link} class="mx-auto"> <button - class="bg-white text-black border rounded-full px-8 py-4 font-bold hover:opacity-80 text-2xl"> + class="bg-white text-black border rounded-full px-8 py-4 font-bold hover:opacity-80 text-2xl" + > {text} </button> </a> diff --git a/src/routes/(app)/launch/purchase/+page.svelte b/src/routes/(app)/launch/purchase/+page.svelte index 3af3b186..49a51973 100644 --- a/src/routes/(app)/launch/purchase/+page.svelte +++ b/src/routes/(app)/launch/purchase/+page.svelte @@ -21,7 +21,9 @@ <div class="font-normal text-gray-800 mx-auto mb-8 space-y-8"> <h1 class="mb-4 text-4xl font-bold leading-none tracking-tight text-gray-800 text-center" - >Purchase Ticket</h1> + > + Purchase Ticket + </h1> <img src={`/tickets/${(ticket + 1).toString().padStart(2, "0")}.png`} @@ -35,7 +37,8 @@ <div class="w-full flex"> <button - class="bg-black text-white border rounded-full px-8 py-4 font-bold hover:opacity-80 mx-auto text-2xl"> + class="bg-black text-white border rounded-full px-8 py-4 font-bold hover:opacity-80 mx-auto text-2xl" + > Count me in </button> </div> @@ -43,21 +46,25 @@ {:else} <h1 class="mb-4 text-xl font-bold leading-none tracking-tight text-gray-800 text-center" - >Payment Options</h1> + > + Payment Options + </h1> <div class="flex justify-center gap-4"> <form action="?/lightning" method="POST"> <input type="hidden" name="currency" value={currency} /> <input type="hidden" name="username" value={username} /> <button - class="border rounded-full px-8 py-4 font-bold hover:opacity-80 mx-auto text-2xl"> + class="border rounded-full px-8 py-4 font-bold hover:opacity-80 mx-auto text-2xl" + > Lightning </button> </form> <a href={`purchase/card`}> <button - class="border rounded-full px-8 py-4 font-bold hover:opacity-80 mx-auto text-2xl"> + class="border rounded-full px-8 py-4 font-bold hover:opacity-80 mx-auto text-2xl" + > Credit Card </button> </a> diff --git a/src/routes/(app)/launch/purchase/card/+page.server.js b/src/routes/(app)/launch/purchase/card/+page.server.js index 416a66e4..9fb36b71 100644 --- a/src/routes/(app)/launch/purchase/card/+page.server.js +++ b/src/routes/(app)/launch/purchase/card/+page.server.js @@ -43,8 +43,7 @@ export const actions = { method, }).then((r) => r.json()); - if (status !== "succeeded") - error(500, { message: "Card payment failed" }); + if (status !== "succeeded") error(500, { message: "Card payment failed" }); let asset = await createTicket(cookies, form.get("username")); redirect(307, `/launch/thanks/${asset}`); diff --git a/src/routes/(app)/launch/purchase/card/+page.svelte b/src/routes/(app)/launch/purchase/card/+page.svelte index d7ef830d..6d33c87f 100644 --- a/src/routes/(app)/launch/purchase/card/+page.svelte +++ b/src/routes/(app)/launch/purchase/card/+page.svelte @@ -48,9 +48,8 @@ CVC/CVV <span class="relative group"> <span - class="hidden group-hover:flex justify-center items-center px-2 py-1 text-xs absolute -right-2 transform translate-x-full -translate-y-1/2 w-max top-1/2 bg-black text-white"> - - + class="hidden group-hover:flex justify-center items-center px-2 py-1 text-xs absolute -right-2 transform translate-x-full -translate-y-1/2 w-max top-1/2 bg-black text-white" + > 3-digit number on the back of your card</span > </span> @@ -68,7 +67,8 @@ <button class="bg-black text-white border rounded-full px-8 py-4 font-bold hover:opacity-80 mx-auto text-xl" type="submit" - disabled={loading}> + disabled={loading} + > {#if loading} <Spinner /> {:else} diff --git a/src/routes/(app)/launch/thanks/[asset]/+page.svelte b/src/routes/(app)/launch/thanks/[asset]/+page.svelte index 3d8fb844..9b37002b 100644 --- a/src/routes/(app)/launch/thanks/[asset]/+page.svelte +++ b/src/routes/(app)/launch/thanks/[asset]/+page.svelte @@ -12,7 +12,9 @@ <div class="font-normal text-gray-800 mx-auto mb-8 space-y-8"> <h1 class="mb-4 text-4xl font-bold leading-none tracking-tight text-gray-800 text-center" - >Thanks!</h1> + > + Thanks! + </h1> <p>We look forward to seeing you!</p> </div> @@ -20,7 +22,8 @@ <div class="w-full flex"> <a href="/launch/ticket" class="mx-auto"> <button - class="bg-black text-white border rounded-full px-8 py-4 font-bold hover:opacity-80 text-2xl"> + class="bg-black text-white border rounded-full px-8 py-4 font-bold hover:opacity-80 text-2xl" + > Done </button> </a> diff --git a/src/routes/(app)/launch/ticket/+page.svelte b/src/routes/(app)/launch/ticket/+page.svelte index a4888727..6b16e804 100644 --- a/src/routes/(app)/launch/ticket/+page.svelte +++ b/src/routes/(app)/launch/ticket/+page.svelte @@ -7,7 +7,9 @@ <div class="font-normal text-gray-800 mx-auto mb-8 space-y-8"> <h1 class="mb-4 text-4xl font-bold leading-none tracking-tight text-gray-800 text-center" - >Your Ticket</h1> + > + Your Ticket + </h1> <p> We've minted your ticket as an <a @@ -25,7 +27,8 @@ <div class="w-full flex"> <a href="/" class="mx-auto"> <button - class="bg-black text-white border rounded-full px-8 py-4 font-bold hover:opacity-80 text-2xl"> + class="bg-black text-white border rounded-full px-8 py-4 font-bold hover:opacity-80 text-2xl" + > Done </button> </a> diff --git a/src/routes/(app)/login/+page.svelte b/src/routes/(app)/login/+page.svelte index b729d70f..cebbf41c 100644 --- a/src/routes/(app)/login/+page.svelte +++ b/src/routes/(app)/login/+page.svelte @@ -145,15 +145,14 @@ <button type="button" on:click={() => (revealPassword = !revealPassword)} - class="absolute right-5 top-10"> + class="absolute right-5 top-10" + > <Icon icon={revealPassword ? "eye" : "eye-off"} /> </button> </div> <div class="flex justify-end items-center"> - <a - href="/forgot" - class="underline underline-offset-4 text-black" + <a href="/forgot" class="underline underline-offset-4 text-black" >{$t("login.forgotUserOrPassword")}</a > </div> @@ -162,7 +161,8 @@ type="submit" class="bg-black text-white w-full rounded-2xl p-4 font-semibold hover:opacity-80" disabled={loading} - bind:this={btn}> + bind:this={btn} + > {#if loading} <Spinner /> {:else} @@ -175,7 +175,8 @@ {$t("login.haveAccount")} <a href={"/register"} - class="block md:inline text-black underline underline-offset-4 hover:opacity-80"> + class="block md:inline text-black underline underline-offset-4 hover:opacity-80" + > {$t("login.register")} </a> </p> diff --git a/src/routes/(app)/register/+page.server.js b/src/routes/(app)/register/+page.server.js index cdb5736e..318f6b98 100644 --- a/src/routes/(app)/register/+page.server.js +++ b/src/routes/(app)/register/+page.server.js @@ -15,15 +15,8 @@ export const actions = { let ip = request.headers.get("cf-connecting-ip"); let form = await fd(request); - let { - profile, - username, - password, - cipher, - salt, - pubkey, - loginRedirect, - } = form; + let { profile, username, password, cipher, salt, pubkey, loginRedirect } = + form; let user = { profile, username, password, cipher, salt, pubkey }; let error; diff --git a/src/routes/(app)/register/+page.svelte b/src/routes/(app)/register/+page.svelte index ef057fcf..5783059a 100644 --- a/src/routes/(app)/register/+page.svelte +++ b/src/routes/(app)/register/+page.svelte @@ -175,12 +175,14 @@ <div class="relative"> <button class="absolute w-8 h-12 left-12 bg-white rounded top-12" - on:click={decr}> + on:click={decr} + > <Icon icon="chevron-left" style="w-8 " /> </button> <div class="relative w-32 mx-auto" on:click={selectAvatar}> <button - class="w-32 h-32 rounded-full border-4 border-white overflow-hidden flex mx-auto relative"> + class="w-32 h-32 rounded-full border-4 border-white overflow-hidden flex mx-auto relative" + > <img {src} class="w-full h-full object-cover object-center overflow-hidden" @@ -188,13 +190,15 @@ /> </button> <button - class="absolute bg-white rounded-full p-2 mx-auto right-0 bottom-0 z-10 bg-opacity-80"> + class="absolute bg-white rounded-full p-2 mx-auto right-0 bottom-0 z-10 bg-opacity-80" + > <Icon icon="upload" style="w-8" /> </button> </div> <button class="absolute w-8 h-12 right-12 bg-white rounded top-12" - on:click={incr}> + on:click={incr} + > <Icon icon="chevron-left" style="w-8 rotate-180" /> </button> </div> @@ -236,7 +240,8 @@ type="button" on:click={refresh} class="absolute right-0 top-4" - tabindex="5"> + tabindex="5" + > <Icon icon="random" style="w-10 m-4" /> </button> </div> @@ -271,7 +276,8 @@ type="button" tabindex="4" on:click={() => (revealPassword = !revealPassword)} - class="absolute right-0 top-4"> + class="absolute right-0 top-4" + > <Icon icon={revealPassword ? "eye" : "eye-off"} style="m-6" /> </button> </div> @@ -285,7 +291,8 @@ type="submit" class="bg-black text-white w-full rounded-2xl p-4 font-semibold hover:opacity-80" disabled={loading} - bind:this={btn}> + bind:this={btn} + > {#if loading} <Spinner /> {:else} @@ -298,7 +305,8 @@ {$t("login.haveAccount")} <a href={"/login"} - class="block md:inline text-black underline underline-offset-4 hover:opacity-80"> + class="block md:inline text-black underline underline-offset-4 hover:opacity-80" + > {$t("login.signIn")} </a> </p> diff --git a/src/routes/(app)/reset/[code]/+page.svelte b/src/routes/(app)/reset/[code]/+page.svelte index 83e860ae..d93e8bdf 100644 --- a/src/routes/(app)/reset/[code]/+page.svelte +++ b/src/routes/(app)/reset/[code]/+page.svelte @@ -57,17 +57,23 @@ <button type="button" on:click={() => (revealPassword = !revealPassword)} - class="absolute right-5 top-10"> + class="absolute right-5 top-10" + > <Icon icon={revealPassword ? "eye" : "eye-off"} /> </button> </div> - <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.</div> + <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. + </div> <button type="submit" class="bg-black text-white w-full rounded-2xl p-4 font-semibold hover:opacity-80" - disabled={loading}> + disabled={loading} + > {#if loading} <Spinner /> {:else} diff --git a/src/routes/(app)/scan/+page.svelte b/src/routes/(app)/scan/+page.svelte index c02fc1c2..e23b9bb8 100644 --- a/src/routes/(app)/scan/+page.svelte +++ b/src/routes/(app)/scan/+page.svelte @@ -37,7 +37,10 @@ <div class="flex w-full mb-4"> <button class="mx-auto border rounded-full px-6 py-2 font-bold hover:opacity-80" - on:click={back}> Cancel </button> + on:click={back} + > + Cancel + </button> </div> <style> diff --git a/src/routes/(app)/send/[...text]/+page.svelte b/src/routes/(app)/send/[...text]/+page.svelte index b76e067e..8548964c 100644 --- a/src/routes/(app)/send/[...text]/+page.svelte +++ b/src/routes/(app)/send/[...text]/+page.svelte @@ -63,7 +63,8 @@ <a href={`/qr/${encodeURIComponent(text)}`}> <button type="button" - class="flex border rounded-full px-6 py-2 font-bold hover:opacity-80 mr-1"> + class="flex border rounded-full px-6 py-2 font-bold hover:opacity-80 mr-1" + > <Icon icon="qr" style="mr-2 w-6 my-auto invert" /> <div class="my-auto">{$t("user.send.makeQR")}</div> </button> @@ -73,7 +74,8 @@ <a href="/scan"> <button type="button" - class="flex border rounded-full px-6 py-2 font-bold hover:opacity-80 mr-1"> + class="flex border rounded-full px-6 py-2 font-bold hover:opacity-80 mr-1" + > <Icon icon="camera" style="mr-2 w-6 my-auto" /> <div class="my-auto">{$t("user.send.scan")}</div> </button> @@ -82,7 +84,8 @@ <button type="button" class="flex border rounded-full px-6 py-2 font-bold hover:opacity-80 mr-1" - on:click={paste}> + on:click={paste} + > <Icon icon="paste" style="mr-2 w-6 my-auto" /> <div class="my-auto">{$t("user.send.paste")}</div> </button> @@ -92,7 +95,8 @@ type="submit" class="{!text ? 'opacity-50' - : 'opacity-100 hover:opacity-80'} bg-black text-white border rounded-full px-6 py-2 font-bold"> + : 'opacity-100 hover:opacity-80'} bg-black text-white border rounded-full px-6 py-2 font-bold" + > {$t("user.send.next")} </button> </div> diff --git a/src/routes/(app)/send/bitcoin/[address]/+page.svelte b/src/routes/(app)/send/bitcoin/[address]/+page.svelte index 93a5fe5a..2ed99823 100644 --- a/src/routes/(app)/send/bitcoin/[address]/+page.svelte +++ b/src/routes/(app)/send/bitcoin/[address]/+page.svelte @@ -24,7 +24,11 @@ }; </script> -<button type="button" class="ml-5 md:ml-20 mt-5 md:mt-10 hover:opacity-80" on:click={back}> +<button + type="button" + class="ml-5 md:ml-20 mt-5 md:mt-10 hover:opacity-80" + on:click={back} +> <Icon icon="arrow-left" style="w-10" /> </button> diff --git a/src/routes/(app)/send/bitcoin/[address]/[amount]/[...feeRate]/+page.server.js b/src/routes/(app)/send/bitcoin/[address]/[amount]/[...feeRate]/+page.server.js index 08741296..9af95188 100644 --- a/src/routes/(app)/send/bitcoin/[address]/[amount]/[...feeRate]/+page.server.js +++ b/src/routes/(app)/send/bitcoin/[address]/[amount]/[...feeRate]/+page.server.js @@ -20,7 +20,7 @@ export async function load({ params: { address, amount, feeRate }, cookies }) { return { amount, address, fee, fees, feeRate, ourfee, hex }; } catch (e) { throw redirect(307, `/send/bitcoin/${address}`); - } + } } export const actions = { 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 37ec4d14..263448de 100644 --- a/src/routes/(app)/send/bitcoin/[address]/[amount]/[...feeRate]/+page.svelte +++ b/src/routes/(app)/send/bitcoin/[address]/[amount]/[...feeRate]/+page.svelte @@ -42,10 +42,15 @@ }; let setFee = () => goto(`/send/bitcoin/${address}/${amount}/${feeRate}`); - let goBack = () => goto(`/send/bitcoin/${address}`) + let goBack = () => goto(`/send/bitcoin/${address}`); </script> -<button type="button" class="ml-5 md:ml-20 mt-5 md:mt-10 hover:opacity-80" on:click={goBack}> +<button + type="button" + class="ml-5 md:ml-20 mt-5 md:mt-10 hover:opacity-80" + data-sveltekit-preload-data="false" + on:click={goBack} +> <Icon icon="arrow-left" style="w-10" /> </button> diff --git a/src/routes/(app)/send/fund/[name]/[...amount]/+page.svelte b/src/routes/(app)/send/fund/[name]/[...amount]/+page.svelte index 240abc32..b6a4aa0c 100644 --- a/src/routes/(app)/send/fund/[name]/[...amount]/+page.svelte +++ b/src/routes/(app)/send/fund/[name]/[...amount]/+page.svelte @@ -47,7 +47,8 @@ <div class="flex w-full"> <button type="submit" - class="opacity-100 hover:opacity-80'} rounded-2xl border py-3 font-bold mx-auto mt-2 bg-black text-white px-4 w-24"> + class="opacity-100 hover:opacity-80'} rounded-2xl border py-3 font-bold mx-auto mt-2 bg-black text-white px-4 w-24" + > {#if loading} <Spinner /> {:else} diff --git a/src/routes/(app)/send/invoice/[id]/+page.svelte b/src/routes/(app)/send/invoice/[id]/+page.svelte index 1e26ece1..ae997bce 100644 --- a/src/routes/(app)/send/invoice/[id]/+page.svelte +++ b/src/routes/(app)/send/invoice/[id]/+page.svelte @@ -145,7 +145,8 @@ <button use:focus type="submit" - class="opacity-100 hover:opacity-80'} rounded-2xl border py-3 font-bold mx-auto mt-2 bg-black text-white px-4 w-24"> + class="opacity-100 hover:opacity-80'} rounded-2xl border py-3 font-bold mx-auto mt-2 bg-black text-white px-4 w-24" + > {#if loading} <Spinner /> {:else} @@ -156,7 +157,8 @@ <button type="button" class="opacity-100 hover:opacity-80'} rounded-2xl border py-3 font-bold mx-auto mt-2 bg-black text-white px-4 w-24" - on:click={setAmount}> + on:click={setAmount} + > {$t("payments.next")} </button> {/if} diff --git a/src/routes/(app)/send/lightning/[payreq]/+page.svelte b/src/routes/(app)/send/lightning/[payreq]/+page.svelte index ff64df23..a5b812cb 100644 --- a/src/routes/(app)/send/lightning/[payreq]/+page.svelte +++ b/src/routes/(app)/send/lightning/[payreq]/+page.svelte @@ -74,7 +74,8 @@ <button type="submit" class="opacity-100 hover:opacity-80'} rounded-2xl border py-3 font-bold mx-auto mt-2 bg-black text-white px-4 w-24" - disabled={loading}> + disabled={loading} + > {#if loading} <Spinner /> {:else} @@ -91,7 +92,9 @@ <div class="absolute right-[2px] top-[25px] text-gray-600 rounded-r-2xl p-4 h-[54px] my-auto border-l" - >⚡️</div> + > + ⚡️ + </div> </div> {:else} <div class="flex w-full mt-5"> @@ -110,7 +113,8 @@ <button type="submit" class="bg-black text-white rounded-xl h-[48px] flex w-full justify-center items-center font-semibold - opacity-100 hover:opacity-80"> + opacity-100 hover:opacity-80" + > Next </button> </form> diff --git a/src/routes/(app)/support/+page.svelte b/src/routes/(app)/support/+page.svelte index 17a6063e..ad31ad1a 100644 --- a/src/routes/(app)/support/+page.svelte +++ b/src/routes/(app)/support/+page.svelte @@ -48,7 +48,8 @@ <svelte:head ><script - src="https://www.google.com/recaptcha/api.js?render=6LfCd8YkAAAAANmVJgzN3SQY3n3fv1RhiS5PgMYM"></script></svelte:head + src="https://www.google.com/recaptcha/api.js?render=6LfCd8YkAAAAANmVJgzN3SQY3n3fv1RhiS5PgMYM" + ></script></svelte:head > {#if user} diff --git a/src/routes/(static)/docs/+page.svelte b/src/routes/(static)/docs/+page.svelte index a6b1bf08..119dca89 100644 --- a/src/routes/(static)/docs/+page.svelte +++ b/src/routes/(static)/docs/+page.svelte @@ -9,7 +9,6 @@ let { user, token } = data; - let api = PUBLIC_DOMAIN.includes("localhost") ? `${PUBLIC_COINOS_URL}` : `https://${PUBLIC_DOMAIN}/api`; diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte index 23aaacfa..3cffea21 100644 --- a/src/routes/+page.svelte +++ b/src/routes/+page.svelte @@ -1,4 +1,4 @@ - <script> +<script> import LandingHeader from "$comp/LandingHeader.svelte"; import LandingHero from "$comp/LandingHero.svelte"; import LandingInfoCard from "$comp/LandingInfoCard.svelte"; |
