From cf264a3649a9244c7bac8fbd353d6b07852f38ee Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Wed, 14 Dec 2022 12:28:24 -0800 Subject: prettier --- src/components/Footer.svelte | 11 ++++---- src/lib/socket.js | 1 - src/locales/de.json | 32 +++++++++++----------- src/locales/en.json | 32 +++++++++++----------- src/locales/es.json | 32 +++++++++++----------- src/locales/pt.json | 32 +++++++++++----------- src/routes/(app)/[username]/+page.svelte | 12 ++++---- src/routes/(app)/[username]/dashboard/+page.svelte | 2 +- .../[username]/receive/[...param]/+page.svelte | 2 +- src/routes/(app)/[username]/request/+page.svelte | 8 ++++-- .../[username]/transactions/[...page]/+page.svelte | 9 ++++-- src/routes/(app)/invoice/[id]/+page.svelte | 2 +- src/routes/(app)/ln/[lnurl]/+page.server.js | 1 + src/routes/(app)/send/[...text]/+page.svelte | 2 +- src/routes/(app)/send/[uuid=uuid]/+page.svelte | 4 +-- 15 files changed, 94 insertions(+), 88 deletions(-) (limited to 'src') diff --git a/src/components/Footer.svelte b/src/components/Footer.svelte index 82848c47..82282465 100644 --- a/src/components/Footer.svelte +++ b/src/components/Footer.svelte @@ -31,13 +31,14 @@ -
-
- +
+
+ +
-
-

{$t('footer.followUs')}

diff --git a/src/lib/socket.js b/src/lib/socket.js index 24d85833..95b4a512 100644 --- a/src/lib/socket.js +++ b/src/lib/socket.js @@ -64,7 +64,6 @@ export function connect(t) { if (socket) return auth(); - console.log("SOCK", PUBLIC_SOCKET) socket = new WebSocket(PUBLIC_SOCKET); socket.addEventListener('open', onWebsocketOpen); socket.addEventListener('close', onWebsocketClose); diff --git a/src/locales/de.json b/src/locales/de.json index 40439d32..58627b15 100644 --- a/src/locales/de.json +++ b/src/locales/de.json @@ -162,15 +162,15 @@ "user": { "bitcoin": "Bitcoin", "lightning": "Lightning", - "invoice": "Rechnung", + "invoice": "Rechnung", "unfollow": "Nicht mehr folgen", "following": "Folgen", "follow": "Folgen", "remove": "Entfernen", "scanToPayBTC": "Den QR-Code scannen um mit Bitcoin zu zahlen", - "this": "Das", - "lightningAddress": "Lightning Adresse", - "likeAnEmail": "ist wie eine E-Mail Adresse für Bitcoin. Sie können diese auf Ihrer Website oder auf Ihren Visitenkarten veröffentlichen und mehrfach verwenden.", + "this": "Das", + "lightningAddress": "Lightning Adresse", + "likeAnEmail": "ist wie eine E-Mail Adresse für Bitcoin. Sie können diese auf Ihrer Website oder auf Ihren Visitenkarten veröffentlichen und mehrfach verwenden.", "dashboard": { "go": "Los", "dashboard": "Übersicht", @@ -261,17 +261,17 @@ "sentInvoiceTo": "Rechnung senden an", "sentRequestTo": "Anfrage senden an", "pleasePay": "Bitte bezahlen Sie", - "day": "Tag", - "week": "Woche", - "month": "Monat", - "all": "Alles", - "export": "Exportieren", - "invoice": "Rechnung", - "readyToPay": "Steht zur Zahlung bereit", - "describeOrder": "Benutzen Sie dieses Feld um Ihre Bestellung zu beschreiben", - "requestAnInvoice": "Rechnung anfordern", - "submit": "Übermitteln", - "isRequesting": "Anfragen", - "awaiting": "Warten auf" + "day": "Tag", + "week": "Woche", + "month": "Monat", + "all": "Alles", + "export": "Exportieren", + "invoice": "Rechnung", + "readyToPay": "Steht zur Zahlung bereit", + "describeOrder": "Benutzen Sie dieses Feld um Ihre Bestellung zu beschreiben", + "requestAnInvoice": "Rechnung anfordern", + "submit": "Übermitteln", + "isRequesting": "Anfragen", + "awaiting": "Warten auf" } } diff --git a/src/locales/en.json b/src/locales/en.json index 49f65ee1..08256803 100644 --- a/src/locales/en.json +++ b/src/locales/en.json @@ -162,15 +162,15 @@ "user": { "bitcoin": "Bitcoin", "lightning": "Lightning", - "invoice": "Invoice", + "invoice": "Invoice", "unfollow": "Unfollow", "following": "Following", "follow": "Follow", "remove": "Remove", "scanToPayBTC": "Scan to pay with bitcoin", - "this": "This", - "lightningAddress": "lightning address", - "likeAnEmail": "is like an email for bitcoin. You can publish it on your website or business cards and use it multiple times.", + "this": "This", + "lightningAddress": "lightning address", + "likeAnEmail": "is like an email for bitcoin. You can publish it on your website or business cards and use it multiple times.", "dashboard": { "go": "Go", "dashboard": "Dashboard", @@ -261,17 +261,17 @@ "sentInvoiceTo": "Sent invoice to", "sentRequestTo": "Sent request to", "pleasePay": "Please pay", - "day": "Day", - "week": "Week", - "month": "Month", - "all": "All", - "export": "Export", - "invoice": "Invoice", - "readyToPay": "is ready to pay", - "describeOrder": "Use this field to describe your order", - "requestAnInvoice": "Request an invoice", - "submit": "Submit", - "isRequesting": "is requesting", - "awaiting": "Awaiting" + "day": "Day", + "week": "Week", + "month": "Month", + "all": "All", + "export": "Export", + "invoice": "Invoice", + "readyToPay": "is ready to pay", + "describeOrder": "Use this field to describe your order", + "requestAnInvoice": "Request an invoice", + "submit": "Submit", + "isRequesting": "is requesting", + "awaiting": "Awaiting" } } diff --git a/src/locales/es.json b/src/locales/es.json index d72d5d92..292569fe 100644 --- a/src/locales/es.json +++ b/src/locales/es.json @@ -144,7 +144,7 @@ "failed": "Inicio de sesión fallido" }, "nav": { - "profile": "Perfil", + "profile": "Perfil", "startInSeconds": "Comience de inmediato", "account": "Cuenta", "signIn": "Iniciar sesión", @@ -167,9 +167,9 @@ "follow": "Seguir", "remove": "Eliminar", "scanToPayBTC": "Escanea para pagar en bitcoin", - "this": "Esta", - "lightningAddress": "dirección relámpago", - "likeAnEmail": "es como un correo electrónico para bitcoin. Puede publicarlo en su sitio web o tarjetas de presentación y usarlo varias veces.", + "this": "Esta", + "lightningAddress": "dirección relámpago", + "likeAnEmail": "es como un correo electrónico para bitcoin. Puede publicarlo en su sitio web o tarjetas de presentación y usarlo varias veces.", "dashboard": { "dashboard": "Tablero", "accountBalance": "Saldo", @@ -259,17 +259,17 @@ "sentInvoiceTo": "Factura enviada a", "sentRequestTo": "Solicitud enviada a", "pleasePay": "Por favor pague", - "day": "Dia", - "week": "Semana", - "month": "Mes", - "all": "Todo", - "export": "Exportar", - "invoice": "Factura", - "readyToPay": "está listo para pagar", - "describeOrder": "Utilice este campo para describir su pedido", - "requestAnInvoice": "Solicitar una factura", - "submit": "Enviar", - "isRequesting": "está solicitando", - "awaiting": "Esperando" + "day": "Dia", + "week": "Semana", + "month": "Mes", + "all": "Todo", + "export": "Exportar", + "invoice": "Factura", + "readyToPay": "está listo para pagar", + "describeOrder": "Utilice este campo para describir su pedido", + "requestAnInvoice": "Solicitar una factura", + "submit": "Enviar", + "isRequesting": "está solicitando", + "awaiting": "Esperando" } } diff --git a/src/locales/pt.json b/src/locales/pt.json index 49f65ee1..08256803 100644 --- a/src/locales/pt.json +++ b/src/locales/pt.json @@ -162,15 +162,15 @@ "user": { "bitcoin": "Bitcoin", "lightning": "Lightning", - "invoice": "Invoice", + "invoice": "Invoice", "unfollow": "Unfollow", "following": "Following", "follow": "Follow", "remove": "Remove", "scanToPayBTC": "Scan to pay with bitcoin", - "this": "This", - "lightningAddress": "lightning address", - "likeAnEmail": "is like an email for bitcoin. You can publish it on your website or business cards and use it multiple times.", + "this": "This", + "lightningAddress": "lightning address", + "likeAnEmail": "is like an email for bitcoin. You can publish it on your website or business cards and use it multiple times.", "dashboard": { "go": "Go", "dashboard": "Dashboard", @@ -261,17 +261,17 @@ "sentInvoiceTo": "Sent invoice to", "sentRequestTo": "Sent request to", "pleasePay": "Please pay", - "day": "Day", - "week": "Week", - "month": "Month", - "all": "All", - "export": "Export", - "invoice": "Invoice", - "readyToPay": "is ready to pay", - "describeOrder": "Use this field to describe your order", - "requestAnInvoice": "Request an invoice", - "submit": "Submit", - "isRequesting": "is requesting", - "awaiting": "Awaiting" + "day": "Day", + "week": "Week", + "month": "Month", + "all": "All", + "export": "Export", + "invoice": "Invoice", + "readyToPay": "is ready to pay", + "describeOrder": "Use this field to describe your order", + "requestAnInvoice": "Request an invoice", + "submit": "Submit", + "isRequesting": "is requesting", + "awaiting": "Awaiting" } } diff --git a/src/routes/(app)/[username]/+page.svelte b/src/routes/(app)/[username]/+page.svelte index 932ec777..8795c916 100644 --- a/src/routes/(app)/[username]/+page.svelte +++ b/src/routes/(app)/[username]/+page.svelte @@ -71,13 +71,11 @@ {#if user?.username === subject.username}

- {$t("user.this")} {$t("user.lightningAddress")} {$t("user.likeAnEmail")} - + {$t('user.this')} + {$t('user.lightningAddress')} + {$t('user.likeAnEmail')}

{/if}
diff --git a/src/routes/(app)/[username]/dashboard/+page.svelte b/src/routes/(app)/[username]/dashboard/+page.svelte index 112162ad..1c8fdb1b 100644 --- a/src/routes/(app)/[username]/dashboard/+page.svelte +++ b/src/routes/(app)/[username]/dashboard/+page.svelte @@ -110,7 +110,7 @@
-

{$t("transactions.awaiting")}

+

{$t('transactions.awaiting')}

{requester.username}

diff --git a/src/routes/(app)/[username]/receive/[...param]/+page.svelte b/src/routes/(app)/[username]/receive/[...param]/+page.svelte index 9e9f4f66..71bed53e 100644 --- a/src/routes/(app)/[username]/receive/[...param]/+page.svelte +++ b/src/routes/(app)/[username]/receive/[...param]/+page.svelte @@ -43,7 +43,7 @@ class="bg-black text-white rounded-xl w-full h-[48px] flex justify-center items-center font-semibold opacity-100 hover:opacity-80" > - {amount ? $t("transactions.next") : $t("transactions.sendersChoice")} + {amount ? $t('transactions.next') : $t('transactions.sendersChoice')} diff --git a/src/routes/(app)/[username]/request/+page.svelte b/src/routes/(app)/[username]/request/+page.svelte index bbbb514c..fb3d0599 100644 --- a/src/routes/(app)/[username]/request/+page.svelte +++ b/src/routes/(app)/[username]/request/+page.svelte @@ -15,7 +15,9 @@
-

{$t("transactions.requestAnInvoice")}

+

+ {$t('transactions.requestAnInvoice')} +

@@ -23,7 +25,7 @@