aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2025-03-12 15:19:52 -0700
committerAdam Soltys <[email protected]>2025-03-12 15:19:52 -0700
commitd6d36b52f16d02bd112483ae9fe69876623935b6 (patch)
tree859d89b06e9b40059546efe5eb496d46a731e5e7 /src
parent692217a3c8f3982e3b8357856d7c59335ad1316b (diff)
downloadcoinos-ui-d6d36b52f16d02bd112483ae9fe69876623935b6.tar.gz
coinos-ui-d6d36b52f16d02bd112483ae9fe69876623935b6.zip
opt in to nwc notifications
Diffstat (limited to 'src')
-rw-r--r--src/components/AmountField.svelte12
-rw-r--r--src/components/AppForm.svelte14
-rw-r--r--src/locales/ar.json5
-rw-r--r--src/locales/bn.json5
-rw-r--r--src/locales/de.json5
-rw-r--r--src/locales/el.json5
-rw-r--r--src/locales/en.json7
-rw-r--r--src/locales/es.json5
-rw-r--r--src/locales/fa.json5
-rw-r--r--src/locales/fr.json5
-rw-r--r--src/locales/hi.json5
-rw-r--r--src/locales/it.json5
-rw-r--r--src/locales/ja.json5
-rw-r--r--src/locales/ko.json5
-rw-r--r--src/locales/nl.json5
-rw-r--r--src/locales/pl.json5
-rw-r--r--src/locales/pt.json5
-rw-r--r--src/locales/ru.json5
-rw-r--r--src/locales/th.json5
-rw-r--r--src/locales/tr.json5
-rw-r--r--src/locales/zh.json5
21 files changed, 100 insertions, 23 deletions
diff --git a/src/components/AmountField.svelte b/src/components/AmountField.svelte
index abfc4d1e..cbe55e49 100644
--- a/src/components/AmountField.svelte
+++ b/src/components/AmountField.svelte
@@ -3,7 +3,15 @@
import { tick } from "svelte";
import Numpad from "$comp/Numpad.svelte";
- let { amount = $bindable(), desc, currency, rate, label, name } = $props();
+ let {
+ amount = $bindable(),
+ none = $t("accounts.none"),
+ desc,
+ currency,
+ rate,
+ label,
+ name,
+ } = $props();
let setting = $state();
let set = () => {
@@ -34,7 +42,7 @@
<div
class="border-l-0 rounded-l-none pl-2 w-full p-4 border rounded-2xl text-left"
>
- {amount || $t("accounts.none")}
+ {amount || none}
</div>
<input type="hidden" {name} bind:value={amount} />
</button>
diff --git a/src/components/AppForm.svelte b/src/components/AppForm.svelte
index 0642e1b1..76f703f1 100644
--- a/src/components/AppForm.svelte
+++ b/src/components/AppForm.svelte
@@ -4,6 +4,7 @@
import { page } from "$app/stores";
import AmountField from "$comp/AmountField.svelte";
import Numpad from "$comp/Numpad.svelte";
+ import Toggle from "$comp/Toggle.svelte";
import { getPublicKey } from "nostr-tools";
import { onMount, tick } from "svelte";
import { bytesToHex, randomBytes } from "@noble/hashes/utils";
@@ -25,6 +26,7 @@
budget_renewal,
pubkey,
secret,
+ notify,
} = $props();
let { currency } = $derived(user);
@@ -84,7 +86,7 @@
/>
<AmountField
- desc={$t("accounts.maxfeeDesc")}
+ none="1%"
{currency}
{rate}
bind:amount={max_fee}
@@ -106,6 +108,16 @@
</div>
<div>
+ <label for="notify" class="font-bold mb-1 block"
+ >{$t("accounts.notifications")}</label
+ >
+ <select name="notify" bind:value={notify}>
+ <option value={false} selected>{$t("accounts.off")}</option>
+ <option value={true}>{$t("accounts.on")}</option>
+ </select>
+ </div>
+
+ <div>
<label for="pubkey" class="font-bold mb-1 block"
>{$t("accounts.pubkey")}</label
>
diff --git a/src/locales/ar.json b/src/locales/ar.json
index 49b7c356..a8cac586 100644
--- a/src/locales/ar.json
+++ b/src/locales/ar.json
@@ -44,7 +44,10 @@
"delete": "تحذف",
"renewal": "فترة التجديد",
"maxfee": "رسوم ماكس",
- "maxfeeDesc": "تقاضي رسوم إلى كمية ثابتة من الجلسات إن لم يتم تحديدها، سنحصل على 1% من مبلغ الدفع."
+ "maxfeeDesc": "تقاضي رسوم إلى كمية ثابتة من الجلسات إن لم يتم تحديدها، سنحصل على 1% من مبلغ الدفع.",
+ "notifications": "الإخطارات",
+ "on": "على",
+ "off": "قبالة"
},
"404": {
"404": "404",
diff --git a/src/locales/bn.json b/src/locales/bn.json
index 26aeee07..b1c8c82a 100644
--- a/src/locales/bn.json
+++ b/src/locales/bn.json
@@ -44,7 +44,10 @@
"delete": "মুছে ফেলুন",
"renewal": "নতুন নিয়ম",
"maxfee": "সর্বাধিক মজুরি",
- "maxfeeDesc": "একটা নির্দিষ্ট পরিমাণে স্যাটান্টের ফি। যদি না নির্ধারণ করা হয়, আমরা টাকা ১% করে দেই।."
+ "maxfeeDesc": "একটা নির্দিষ্ট পরিমাণে স্যাটান্টের ফি। যদি না নির্ধারণ করা হয়, আমরা টাকা ১% করে দেই।.",
+ "notifications": "সূচনাবার্তা",
+ "on": "চালু করুন",
+ "off": "বন্ধ"
},
"404": {
"404": "৪০৪",
diff --git a/src/locales/de.json b/src/locales/de.json
index 0017ef6d..2910b993 100644
--- a/src/locales/de.json
+++ b/src/locales/de.json
@@ -519,7 +519,10 @@
"delete": "Löschen",
"renewal": "Verlängerungszeitraum",
"maxfee": "Maximale Gebühr",
- "maxfeeDesc": "Caps Routing-Gebühren zu einem festen Betrag von Sats. Wenn nicht gesetzt, werden wir 1% des Zahlungsbetrages übersteigen."
+ "maxfeeDesc": "Caps Routing-Gebühren zu einem festen Betrag von Sats. Wenn nicht gesetzt, werden wir 1% des Zahlungsbetrages übersteigen.",
+ "notifications": "Mitteilungen",
+ "on": "Auf",
+ "off": "Aus"
},
"notes": {
"contents": "Inhalt",
diff --git a/src/locales/el.json b/src/locales/el.json
index c7590b59..9773e3fa 100644
--- a/src/locales/el.json
+++ b/src/locales/el.json
@@ -510,7 +510,10 @@
"delete": "Διαγραφή",
"renewal": "Περίοδος ανανέωσης",
"maxfee": "Μέγιστο τέλος",
- "maxfeeDesc": "Τα καψούλια δρομολογούν τέλη σε ένα σταθερό ποσό των κορμών. Εάν δεν ορίσουμε, ανεβάζουμε στο 1% του ποσού της πληρωμής."
+ "maxfeeDesc": "Τα καψούλια δρομολογούν τέλη σε ένα σταθερό ποσό των κορμών. Εάν δεν ορίσουμε, ανεβάζουμε στο 1% του ποσού της πληρωμής.",
+ "notifications": "Κοινοποιήσεις",
+ "on": "Εμπρός",
+ "off": "Κλείσιμο"
},
"notes": {
"contents": "Περιεχόμενα σημείωσης",
diff --git a/src/locales/en.json b/src/locales/en.json
index d78f8160..237e5023 100644
--- a/src/locales/en.json
+++ b/src/locales/en.json
@@ -4,8 +4,11 @@
"notFound": "No notes found"
},
"accounts": {
- "maxfee": "Max fee",
- "maxfeeDesc": "Caps routing fees to a fixed amount of sats. If not set, we cap at 1% of the payment amount.",
+ "notifications": "Notifications",
+ "on": "On",
+ "off": "Off",
+ "maxfee": "Max routing fee",
+ "maxfeeDesc": "The default is 1% of the payment value if this is not set",
"per": "per",
"none": "None",
"day": "day",
diff --git a/src/locales/es.json b/src/locales/es.json
index 4c3fc054..fce08082 100644
--- a/src/locales/es.json
+++ b/src/locales/es.json
@@ -492,7 +492,10 @@
"delete": "Suprimir",
"renewal": "Período de renovación",
"maxfee": "Tasa máxima",
- "maxfeeDesc": "Cápsulas de pago a una cantidad fija de sats. Si no se establece, caemos al 1% de la cantidad de pago."
+ "maxfeeDesc": "Cápsulas de pago a una cantidad fija de sats. Si no se establece, caemos al 1% de la cantidad de pago.",
+ "notifications": "Notificaciones",
+ "on": "On",
+ "off": "Fuera"
},
"notes": {
"contents": "Contenido de la nota",
diff --git a/src/locales/fa.json b/src/locales/fa.json
index ee8f54d8..fb8ed950 100644
--- a/src/locales/fa.json
+++ b/src/locales/fa.json
@@ -492,7 +492,10 @@
"delete": "حذف",
"renewal": "دوره بازسازی",
"maxfee": "هزینه Max",
- "maxfeeDesc": "هزینه های مسیریابی Caps به مقدار ثابت نشستن. اگر نه، ما 1 درصد از مبلغ پرداخت را به دست می آوریم."
+ "maxfeeDesc": "هزینه های مسیریابی Caps به مقدار ثابت نشستن. اگر نه، ما 1 درصد از مبلغ پرداخت را به دست می آوریم.",
+ "notifications": "اعلان ها",
+ "on": "On",
+ "off": "Off"
},
"notes": {
"contents": "مطالب توجه",
diff --git a/src/locales/fr.json b/src/locales/fr.json
index c1a995fb..37eaad0d 100644
--- a/src/locales/fr.json
+++ b/src/locales/fr.json
@@ -492,7 +492,10 @@
"delete": "Supprimer",
"renewal": "Période de renouvellement",
"maxfee": "Taxe maximale",
- "maxfeeDesc": "Limite les frais de routage à un montant fixe de sats. Si ce n'est pas fixé, nous plafonnons à 1 % du montant du paiement."
+ "maxfeeDesc": "Limite les frais de routage à un montant fixe de sats. Si ce n'est pas fixé, nous plafonnons à 1 % du montant du paiement.",
+ "notifications": "Notifications",
+ "on": "À",
+ "off": "Arrêt"
},
"notes": {
"contents": "Table des matières",
diff --git a/src/locales/hi.json b/src/locales/hi.json
index c1631011..ee680233 100644
--- a/src/locales/hi.json
+++ b/src/locales/hi.json
@@ -44,7 +44,10 @@
"delete": "डिलीट",
"renewal": "नवीकरण अवधि",
"maxfee": "अधिकतम शुल्क",
- "maxfeeDesc": "एक निश्चित राशि के लिए कैप्स रूटिंग शुल्क। यदि निर्धारित नहीं है, तो हम भुगतान राशि के 1% पर बैठते हैं।."
+ "maxfeeDesc": "एक निश्चित राशि के लिए कैप्स रूटिंग शुल्क। यदि निर्धारित नहीं है, तो हम भुगतान राशि के 1% पर बैठते हैं।.",
+ "notifications": "अधिसूचनाएं",
+ "on": "पर",
+ "off": "बंद"
},
"404": {
"404": "404",
diff --git a/src/locales/it.json b/src/locales/it.json
index 0c2d1f47..318c038a 100644
--- a/src/locales/it.json
+++ b/src/locales/it.json
@@ -44,7 +44,10 @@
"delete": "Cancella",
"renewal": "Periodo di rinnovo",
"maxfee": "Tassa massima",
- "maxfeeDesc": "Caps routing tasse a una quantità fissa di sati. Se non impostato, copriamo all'1% dell'importo del pagamento."
+ "maxfeeDesc": "Caps routing tasse a una quantità fissa di sati. Se non impostato, copriamo all'1% dell'importo del pagamento.",
+ "notifications": "Notifica",
+ "on": "Su",
+ "off": "Fuori"
},
"404": {
"404": " Errore: 404",
diff --git a/src/locales/ja.json b/src/locales/ja.json
index 044c62ca..a68dd32b 100644
--- a/src/locales/ja.json
+++ b/src/locales/ja.json
@@ -492,7 +492,10 @@
"delete": "削除",
"renewal": "更新期間",
"maxfee": "最高料金",
- "maxfeeDesc": "シートの固定量へのキャップルーティング手数料。 設定されていない場合、お支払い金額の1%を上限とします."
+ "maxfeeDesc": "シートの固定量へのキャップルーティング手数料。 設定されていない場合、お支払い金額の1%を上限とします.",
+ "notifications": "お知らせ",
+ "on": "お問い合わせ",
+ "off": "オフ"
},
"notes": {
"contents": "コンテンツ",
diff --git a/src/locales/ko.json b/src/locales/ko.json
index f6555558..a5850e5a 100644
--- a/src/locales/ko.json
+++ b/src/locales/ko.json
@@ -44,7 +44,10 @@
"delete": "기타 제품",
"renewal": "갱신 기간",
"maxfee": "최대 요금",
- "maxfeeDesc": "캡 라우팅 수수료 고정 금액. 놓치지 않는 경우에, 우리는 지불 총계의 1%에 모자를 씌웁니다."
+ "maxfeeDesc": "캡 라우팅 수수료 고정 금액. 놓치지 않는 경우에, 우리는 지불 총계의 1%에 모자를 씌웁니다.",
+ "notifications": "공지사항",
+ "on": "으로",
+ "off": "내 계정"
},
"404": {
"404": "404명",
diff --git a/src/locales/nl.json b/src/locales/nl.json
index 12997a6e..8211e516 100644
--- a/src/locales/nl.json
+++ b/src/locales/nl.json
@@ -44,7 +44,10 @@
"delete": "Verwijderen",
"renewal": "Verlengingsperiode",
"maxfee": "Max. vergoeding",
- "maxfeeDesc": "Caps routing kosten naar een vast bedrag van sats. Indien niet ingesteld, beperken we ons tot 1% van het betalingsbedrag."
+ "maxfeeDesc": "Caps routing kosten naar een vast bedrag van sats. Indien niet ingesteld, beperken we ons tot 1% van het betalingsbedrag.",
+ "notifications": "Kennisgevingen",
+ "on": "Aan",
+ "off": "Uit"
},
"404": {
"404": "404",
diff --git a/src/locales/pl.json b/src/locales/pl.json
index 55183ba1..0ff3c3b7 100644
--- a/src/locales/pl.json
+++ b/src/locales/pl.json
@@ -44,7 +44,10 @@
"delete": "Usuń",
"renewal": "Okres przedłużenia",
"maxfee": "Maksymalna opłata",
- "maxfeeDesc": "Kapsułki opłat routingu do stałej ilości sat. Jeśli nie jest ustawiony, ograniczamy do 1% kwoty płatności."
+ "maxfeeDesc": "Kapsułki opłat routingu do stałej ilości sat. Jeśli nie jest ustawiony, ograniczamy do 1% kwoty płatności.",
+ "notifications": "Powiadomienia",
+ "on": "On",
+ "off": "Wyłącz"
},
"404": {
"404": "404",
diff --git a/src/locales/pt.json b/src/locales/pt.json
index f05f25f4..43e6c0df 100644
--- a/src/locales/pt.json
+++ b/src/locales/pt.json
@@ -514,7 +514,10 @@
"delete": "Excluir",
"renewal": "Período de renovação",
"maxfee": "Taxa máxima",
- "maxfeeDesc": "Caps taxas de roteamento para uma quantidade fixa de sats. Se não estiver definido, nós captamos 1% do valor do pagamento."
+ "maxfeeDesc": "Caps taxas de roteamento para uma quantidade fixa de sats. Se não estiver definido, nós captamos 1% do valor do pagamento.",
+ "notifications": "Notificações",
+ "on": "Em",
+ "off": "Fora"
},
"notes": {
"contents": "Conteúdo de nota",
diff --git a/src/locales/ru.json b/src/locales/ru.json
index 76f3cfe3..15c9012f 100644
--- a/src/locales/ru.json
+++ b/src/locales/ru.json
@@ -492,7 +492,10 @@
"delete": "Исключить",
"renewal": "Период обновления",
"maxfee": "Макс платный",
- "maxfeeDesc": "Комиссионные за маршрутизацию к фиксированной сумме сат. Если не установлен, мы ограничиваем 1% от суммы платежа."
+ "maxfeeDesc": "Комиссионные за маршрутизацию к фиксированной сумме сат. Если не установлен, мы ограничиваем 1% от суммы платежа.",
+ "notifications": "Уведомления",
+ "on": "На",
+ "off": "Оставить"
},
"notes": {
"contents": "Содержание заметок",
diff --git a/src/locales/th.json b/src/locales/th.json
index 67ed9e10..47442664 100644
--- a/src/locales/th.json
+++ b/src/locales/th.json
@@ -44,7 +44,10 @@
"delete": "ลบ",
"renewal": "ยุคเรเนวาล",
"maxfee": "ค่าสูงสุด",
- "maxfeeDesc": "ค่าธรรมเนียมค่าปรับ ค่าที่นั่งคงที่ ถ้าไม่ได้ตั้งค่าเราติดที่ 1% ของจํานวนเงินที่จ่าย."
+ "maxfeeDesc": "ค่าธรรมเนียมค่าปรับ ค่าที่นั่งคงที่ ถ้าไม่ได้ตั้งค่าเราติดที่ 1% ของจํานวนเงินที่จ่าย.",
+ "notifications": "การแจ้งให้ทราบComment",
+ "on": "บน",
+ "off": "ปิด"
},
"404": {
"404": "404",
diff --git a/src/locales/tr.json b/src/locales/tr.json
index 06d443ad..f633c5eb 100644
--- a/src/locales/tr.json
+++ b/src/locales/tr.json
@@ -44,7 +44,10 @@
"delete": "Delete",
"renewal": "Yenileme dönemi",
"maxfee": "Max ücret",
- "maxfeeDesc": "Caps, sabit bir miktarda oturma ücretine gider. Eğer ayarlanmamışsa, ödeme miktarının% 1'inde kapıyoruz."
+ "maxfeeDesc": "Caps, sabit bir miktarda oturma ücretine gider. Eğer ayarlanmamışsa, ödeme miktarının% 1'inde kapıyoruz.",
+ "notifications": "Bildirimler",
+ "on": "Onda",
+ "off": "Off"
},
"404": {
"404": "404",
diff --git a/src/locales/zh.json b/src/locales/zh.json
index 527e10bc..782f5bcb 100644
--- a/src/locales/zh.json
+++ b/src/locales/zh.json
@@ -492,7 +492,10 @@
"delete": "删除",
"renewal": "延长期",
"maxfee": "最大费用",
- "maxfeeDesc": "盖子路由费为固定的座标. 如果不设定, 我们上限为支付金额的1% ."
+ "maxfeeDesc": "盖子路由费为固定的座标. 如果不设定, 我们上限为支付金额的1% .",
+ "notifications": "通知",
+ "on": "打开",
+ "off": "关闭"
},
"notes": {
"contents": "说明内容",