From 85d2cb67a97efd3d32ab9bcfd5ad7a052e0d14ba Mon Sep 17 00:00:00 2001 From: "Tom (plebeius.eth)" Date: Wed, 5 Feb 2025 15:20:07 +0100 Subject: [PATCH] feat(settings): add subscriptions setting --- public/translations/ar/default.json | 4 +- public/translations/bn/default.json | 4 +- public/translations/cs/default.json | 4 +- public/translations/da/default.json | 4 +- public/translations/de/default.json | 4 +- public/translations/el/default.json | 4 +- public/translations/en/default.json | 6 +- public/translations/es/default.json | 4 +- public/translations/fa/default.json | 4 +- public/translations/fi/default.json | 4 +- public/translations/fil/default.json | 4 +- public/translations/fr/default.json | 4 +- public/translations/he/default.json | 4 +- public/translations/hi/default.json | 4 +- public/translations/hu/default.json | 4 +- public/translations/id/default.json | 4 +- public/translations/it/default.json | 4 +- public/translations/ja/default.json | 4 +- public/translations/ko/default.json | 4 +- public/translations/mr/default.json | 4 +- public/translations/nl/default.json | 4 +- public/translations/no/default.json | 4 +- public/translations/pl/default.json | 4 +- public/translations/pt/default.json | 4 +- public/translations/ro/default.json | 4 +- public/translations/ru/default.json | 4 +- public/translations/sq/default.json | 4 +- public/translations/sv/default.json | 4 +- public/translations/te/default.json | 4 +- public/translations/th/default.json | 4 +- public/translations/tr/default.json | 4 +- public/translations/uk/default.json | 4 +- public/translations/ur/default.json | 4 +- public/translations/vi/default.json | 4 +- public/translations/zh/default.json | 4 +- .../settings-modal/settings-modal.tsx | 13 ++++ .../subscriptions-setting/index.ts | 1 + .../subscriptions-setting.module.css | 24 +++++++ .../subscriptions-setting.tsx | 68 +++++++++++++++++++ 39 files changed, 212 insertions(+), 36 deletions(-) create mode 100644 src/components/settings-modal/subscriptions-setting/index.ts create mode 100644 src/components/settings-modal/subscriptions-setting/subscriptions-setting.module.css create mode 100644 src/components/settings-modal/subscriptions-setting/subscriptions-setting.tsx diff --git a/public/translations/ar/default.json b/public/translations/ar/default.json index eb330f87..fc3a8171 100644 --- a/public/translations/ar/default.json +++ b/public/translations/ar/default.json @@ -270,5 +270,7 @@ "load_more": "تحميل المزيد", "displaying_boards": "عرض {{filteredBoardsCount}} من {{totalBoardCount}} المجالس", "displaying_boards_with_tag": "عرض {{filteredBoardsCount}} من {{totalBoardCount}} المجالس الموسومة بـ {{currentTag}}", - "pph": "Posts Per Hour (منشورات في الساعة)" + "pph": "Posts Per Hour (منشورات في الساعة)", + "unsubscribe_all": "إلغاء الاشتراك من الكل", + "unsubscribe_all_confirm": "هل أنت متأكد أنك تريد إلغاء الاشتراك من جميع المجالس؟" } \ No newline at end of file diff --git a/public/translations/bn/default.json b/public/translations/bn/default.json index a50e4200..8750bde1 100644 --- a/public/translations/bn/default.json +++ b/public/translations/bn/default.json @@ -270,5 +270,7 @@ "load_more": "আরো লোড করুন", "displaying_boards": "প্রদর্শন করা হচ্ছে {{filteredBoardsCount}} এর মধ্যে {{totalBoardCount}} বোর্ড", "displaying_boards_with_tag": "প্রদর্শন করা হচ্ছে {{filteredBoardsCount}} এর মধ্যে {{totalBoardCount}} বোর্ড যা {{currentTag}} ট্যাগযুক্ত", - "pph": "Posts Per Hour (পোস্ট প্রতি ঘণ্টা)" + "pph": "Posts Per Hour (পোস্ট প্রতি ঘণ্টা)", + "unsubscribe_all": "সব থেকে আনসাবস্ক্রাইব করুন", + "unsubscribe_all_confirm": "আপনি কি নিশ্চিত যে আপনি সমস্ত বোর্ড থেকে আনসাবস্ক্রাইব করতে চান?" } \ No newline at end of file diff --git a/public/translations/cs/default.json b/public/translations/cs/default.json index 5e3fd738..2051940e 100644 --- a/public/translations/cs/default.json +++ b/public/translations/cs/default.json @@ -270,5 +270,7 @@ "load_more": "Načíst více", "displaying_boards": "Zobrazuji {{filteredBoardsCount}} z {{totalBoardCount}} fór", "displaying_boards_with_tag": "Zobrazuji {{filteredBoardsCount}} z {{totalBoardCount}} fór označených {{currentTag}}", - "pph": "Posts Per Hour (Příspěvky za hodinu)" + "pph": "Posts Per Hour (Příspěvky za hodinu)", + "unsubscribe_all": "Odhlásit se ze všeho", + "unsubscribe_all_confirm": "Jste si jisti, že chcete zrušit odběr ze všech fór?" } \ No newline at end of file diff --git a/public/translations/da/default.json b/public/translations/da/default.json index 47e870af..10772a82 100644 --- a/public/translations/da/default.json +++ b/public/translations/da/default.json @@ -270,5 +270,7 @@ "load_more": "Indlæs mere", "displaying_boards": "Viser {{filteredBoardsCount}} af {{totalBoardCount}} boards", "displaying_boards_with_tag": "Viser {{filteredBoardsCount}} af {{totalBoardCount}} boards mærket {{currentTag}}", - "pph": "Posts Per Hour (Indlæg Per Time)" + "pph": "Posts Per Hour (Indlæg Per Time)", + "unsubscribe_all": "Afmeld fra alt", + "unsubscribe_all_confirm": "Er du sikker på, at du vil afmelde dig fra alle boards?" } \ No newline at end of file diff --git a/public/translations/de/default.json b/public/translations/de/default.json index 82dbbd91..fa0ad6ea 100644 --- a/public/translations/de/default.json +++ b/public/translations/de/default.json @@ -270,5 +270,7 @@ "load_more": "Mehr laden", "displaying_boards": "Zeige {{filteredBoardsCount}} von {{totalBoardCount}} Boards", "displaying_boards_with_tag": "Zeige {{filteredBoardsCount}} von {{totalBoardCount}} Boards mit dem Tag {{currentTag}}", - "pph": "Posts Per Hour (Beiträge pro Stunde)" + "pph": "Posts Per Hour (Beiträge pro Stunde)", + "unsubscribe_all": "Von allem abmelden", + "unsubscribe_all_confirm": "Sind Sie sicher, dass Sie sich von allen Boards abmelden möchten?" } \ No newline at end of file diff --git a/public/translations/el/default.json b/public/translations/el/default.json index 1df5cb8e..a78b45f4 100644 --- a/public/translations/el/default.json +++ b/public/translations/el/default.json @@ -270,5 +270,7 @@ "load_more": "Φορτώστε περισσότερα", "displaying_boards": "Εμφάνιση {{filteredBoardsCount}} από τα {{totalBoardCount}} boards", "displaying_boards_with_tag": "Εμφάνιση {{filteredBoardsCount}} από τα {{totalBoardCount}} boards με την ετικέτα {{currentTag}}", - "pph": "Posts Per Hour (Αναρτήσεις ανά ώρα)" + "pph": "Posts Per Hour (Αναρτήσεις ανά ώρα)", + "unsubscribe_all": "Ακύρωση εγγραφής από όλα", + "unsubscribe_all_confirm": "Είστε σίγουροι ότι θέλετε να ακυρώσετε την εγγραφή από όλα τα boards;" } \ No newline at end of file diff --git a/public/translations/en/default.json b/public/translations/en/default.json index 0c70fabf..08ff1ce5 100644 --- a/public/translations/en/default.json +++ b/public/translations/en/default.json @@ -137,7 +137,7 @@ "refresh": "Refresh", "no_board_selected": "no board selected", "none": "none", - "not_subscribed_to_any_board": "You have not subscribed to any boards yet.", + "not_subscribed_to_any_board": "You have not subscribed to any board yet.", "board_mods": "Board Mods", "this_post_was_removed": "this post was removed", "user_deleted_this_post": "User deleted this post.", @@ -270,5 +270,7 @@ "load_more": "Load More", "displaying_boards": "Displaying {{filteredBoardsCount}} of {{totalBoardCount}} boards", "displaying_boards_with_tag": "Displaying {{filteredBoardsCount}} of {{totalBoardCount}} boards tagged {{currentTag}}", - "pph": "Posts Per Hour" + "pph": "Posts Per Hour", + "unsubscribe_all": "Unsubscribe From All", + "unsubscribe_all_confirm": "Are you sure you want to unsubscribe from all boards?" } \ No newline at end of file diff --git a/public/translations/es/default.json b/public/translations/es/default.json index 12524c94..0b1ac37b 100644 --- a/public/translations/es/default.json +++ b/public/translations/es/default.json @@ -270,5 +270,7 @@ "load_more": "Cargar más", "displaying_boards": "Mostrando {{filteredBoardsCount}} de {{totalBoardCount}} foros", "displaying_boards_with_tag": "Mostrando {{filteredBoardsCount}} de {{totalBoardCount}} foros etiquetados con {{currentTag}}", - "pph": "Posts Per Hour (Publicaciones Por Hora)" + "pph": "Posts Per Hour (Publicaciones Por Hora)", + "unsubscribe_all": "Cancelar suscripción a todo", + "unsubscribe_all_confirm": "¿Está seguro de que desea cancelar la suscripción a todos los foros?" } \ No newline at end of file diff --git a/public/translations/fa/default.json b/public/translations/fa/default.json index b6b528a1..8dea7719 100644 --- a/public/translations/fa/default.json +++ b/public/translations/fa/default.json @@ -270,5 +270,7 @@ "load_more": "بارگذاری بیشتر", "displaying_boards": "نمایش {{filteredBoardsCount}} از {{totalBoardCount}} انجمن", "displaying_boards_with_tag": "نمایش {{filteredBoardsCount}} از {{totalBoardCount}} انجمن با برچسب {{currentTag}}", - "pph": "Posts Per Hour (پست در ساعت)" + "pph": "Posts Per Hour (پست در ساعت)", + "unsubscribe_all": "لغو اشتراک از همه", + "unsubscribe_all_confirm": "آیا مطمئن هستید که می‌خواهید از همه انجمن‌ها لغو اشتراک کنید؟" } \ No newline at end of file diff --git a/public/translations/fi/default.json b/public/translations/fi/default.json index 12826e73..0a7d8d7b 100644 --- a/public/translations/fi/default.json +++ b/public/translations/fi/default.json @@ -270,5 +270,7 @@ "load_more": "Lataa lisää", "displaying_boards": "Näytetään {{filteredBoardsCount}} {{totalBoardCount}} foorumista", "displaying_boards_with_tag": "Näytetään {{filteredBoardsCount}} {{totalBoardCount}} foorumista, joissa on tagi {{currentTag}}", - "pph": "Posts Per Hour (Viestit tunnissa)" + "pph": "Posts Per Hour (Viestit tunnissa)", + "unsubscribe_all": "Peruuta tilaus kaikilta", + "unsubscribe_all_confirm": "Oletko varma, että haluat peruuttaa tilauksen kaikilta foorumeilta?" } \ No newline at end of file diff --git a/public/translations/fil/default.json b/public/translations/fil/default.json index 786a9e20..c2cde750 100644 --- a/public/translations/fil/default.json +++ b/public/translations/fil/default.json @@ -270,5 +270,7 @@ "load_more": "Mag-load ng higit pa", "displaying_boards": "Ipinapakita {{filteredBoardsCount}} mula sa {{totalBoardCount}} na mga board", "displaying_boards_with_tag": "Ipinapakita {{filteredBoardsCount}} mula sa {{totalBoardCount}} na mga board na may tag na {{currentTag}}", - "pph": "Posts Per Hour (Mga Post Bawat Oras)" + "pph": "Posts Per Hour (Mga Post Bawat Oras)", + "unsubscribe_all": "I-unsubscribe mula sa Lahat", + "unsubscribe_all_confirm": "Sigurado ka bang gusto mong mag-unsubscribe mula sa lahat ng boards?" } \ No newline at end of file diff --git a/public/translations/fr/default.json b/public/translations/fr/default.json index 5a1e5c2c..f92b5558 100644 --- a/public/translations/fr/default.json +++ b/public/translations/fr/default.json @@ -270,5 +270,7 @@ "load_more": "Charger plus", "displaying_boards": "Affichage de {{filteredBoardsCount}} sur {{totalBoardCount}} forums", "displaying_boards_with_tag": "Affichage de {{filteredBoardsCount}} sur {{totalBoardCount}} forums étiquetés {{currentTag}}", - "pph": "Posts Per Hour (Publications Par Heure)" + "pph": "Posts Per Hour (Publications Par Heure)", + "unsubscribe_all": "Se désabonner de tout", + "unsubscribe_all_confirm": "Êtes-vous sûr de vouloir vous désabonner de tous les forums?" } \ No newline at end of file diff --git a/public/translations/he/default.json b/public/translations/he/default.json index 3019233c..d9813366 100644 --- a/public/translations/he/default.json +++ b/public/translations/he/default.json @@ -270,5 +270,7 @@ "load_more": "טען עוד", "displaying_boards": "מציג {{filteredBoardsCount}} מתוך {{totalBoardCount}} פורומים", "displaying_boards_with_tag": "מציג {{filteredBoardsCount}} מתוך {{totalBoardCount}} פורומים עם התג {{currentTag}}", - "pph": "Posts Per Hour (פוסטים לשעה)" + "pph": "Posts Per Hour (פוסטים לשעה)", + "unsubscribe_all": "הסרה מכולם", + "unsubscribe_all_confirm": "האם אתה בטוח שברצונך לבטל את ההרשמה מכל הפורומים?" } \ No newline at end of file diff --git a/public/translations/hi/default.json b/public/translations/hi/default.json index 75dfc562..196d4842 100644 --- a/public/translations/hi/default.json +++ b/public/translations/hi/default.json @@ -270,5 +270,7 @@ "load_more": "अधिक लोड करें", "displaying_boards": "प्रदर्शित {{filteredBoardsCount}} में से {{totalBoardCount}} बोर्ड", "displaying_boards_with_tag": "प्रदर्शित {{filteredBoardsCount}} में से {{totalBoardCount}} बोर्ड जो {{currentTag}} टैग से जुड़े हैं", - "pph": "Posts Per Hour (पोस्ट प्रति घंटे)" + "pph": "Posts Per Hour (पोस्ट प्रति घंटे)", + "unsubscribe_all": "सभी से अनसब्सक्राइब करें", + "unsubscribe_all_confirm": "क्या आप सभी बोर्डों से अनसब्सक्राइब करना चाहते हैं, क्या आप सुनिश्चित हैं?" } \ No newline at end of file diff --git a/public/translations/hu/default.json b/public/translations/hu/default.json index 59469981..6dbc7065 100644 --- a/public/translations/hu/default.json +++ b/public/translations/hu/default.json @@ -270,5 +270,7 @@ "load_more": "Töltsön be többet", "displaying_boards": "Képernyőn {{filteredBoardsCount}} a(z) {{totalBoardCount}} fórumokból", "displaying_boards_with_tag": "Képernyőn {{filteredBoardsCount}} a(z) {{totalBoardCount}} fórumok közül, amelyek tartalmazzák a(z) {{currentTag}} címkét", - "pph": "Posts Per Hour (Bejegyzések óránként)" + "pph": "Posts Per Hour (Bejegyzések óránként)", + "unsubscribe_all": "Leiratkozás mindentől", + "unsubscribe_all_confirm": "Biztos, hogy le szeretnél iratkozni az összes fórumból?" } \ No newline at end of file diff --git a/public/translations/id/default.json b/public/translations/id/default.json index 7f76c6cc..4cbc7929 100644 --- a/public/translations/id/default.json +++ b/public/translations/id/default.json @@ -270,5 +270,7 @@ "load_more": "Muat lebih banyak", "displaying_boards": "Menampilkan {{filteredBoardsCount}} dari {{totalBoardCount}} boards", "displaying_boards_with_tag": "Menampilkan {{filteredBoardsCount}} dari {{totalBoardCount}} boards dengan tag {{currentTag}}", - "pph": "Posts Per Hour (Posting Per Jam)" + "pph": "Posts Per Hour (Posting Per Jam)", + "unsubscribe_all": "Berhenti berlangganan dari semua", + "unsubscribe_all_confirm": "Apakah Anda yakin ingin berhenti berlangganan dari semua board?" } \ No newline at end of file diff --git a/public/translations/it/default.json b/public/translations/it/default.json index 86da4c1e..78b91d5d 100644 --- a/public/translations/it/default.json +++ b/public/translations/it/default.json @@ -270,5 +270,7 @@ "load_more": "Carica altro", "displaying_boards": "Visualizzazione di {{filteredBoardsCount}} su {{totalBoardCount}} board", "displaying_boards_with_tag": "Visualizzazione di {{filteredBoardsCount}} su {{totalBoardCount}} board con tag {{currentTag}}", - "pph": "Posts Per Hour (Post Per Ora)" + "pph": "Posts Per Hour (Post Per Ora)", + "unsubscribe_all": "Annulla iscrizione da tutto", + "unsubscribe_all_confirm": "Sei sicuro di voler annullare l'iscrizione da tutti i forum?" } \ No newline at end of file diff --git a/public/translations/ja/default.json b/public/translations/ja/default.json index 00fc5647..f47297e9 100644 --- a/public/translations/ja/default.json +++ b/public/translations/ja/default.json @@ -270,5 +270,7 @@ "load_more": "もっと読み込む", "displaying_boards": "表示中 {{filteredBoardsCount}} 件のうち {{totalBoardCount}} 件の掲示板", "displaying_boards_with_tag": "表示中 {{filteredBoardsCount}} 件のうち {{totalBoardCount}} 件の掲示板、タグ {{currentTag}}", - "pph": "Posts Per Hour (時間あたりの投稿)" + "pph": "Posts Per Hour (時間あたりの投稿)", + "unsubscribe_all": "すべての登録を解除する", + "unsubscribe_all_confirm": "すべての掲示板から解除してもよろしいですか?" } \ No newline at end of file diff --git a/public/translations/ko/default.json b/public/translations/ko/default.json index 69c3e80c..cc49007a 100644 --- a/public/translations/ko/default.json +++ b/public/translations/ko/default.json @@ -270,5 +270,7 @@ "load_more": "더 보기", "displaying_boards": "총 {{totalBoardCount}}개의 게시판 중 {{filteredBoardsCount}}개 게시판 표시", "displaying_boards_with_tag": "총 {{totalBoardCount}}개의 게시판 중 {{filteredBoardsCount}}개 게시판, 태그 {{currentTag}}", - "pph": "Posts Per Hour (시간당 게시물)" + "pph": "Posts Per Hour (시간당 게시물)", + "unsubscribe_all": "모두 구독 취소", + "unsubscribe_all_confirm": "모든 게시판에서 구독을 취소하시겠습니까?" } \ No newline at end of file diff --git a/public/translations/mr/default.json b/public/translations/mr/default.json index 4f34eca3..60e6789f 100644 --- a/public/translations/mr/default.json +++ b/public/translations/mr/default.json @@ -270,5 +270,7 @@ "load_more": "अधिक लोड करा", "displaying_boards": "प्रदर्शित करणे {{filteredBoardsCount}} मध्ये {{totalBoardCount}} बोर्ड", "displaying_boards_with_tag": "प्रदर्शित करणे {{filteredBoardsCount}} मध्ये {{totalBoardCount}} बोर्ड्स ज्यात {{currentTag}} टॅग आहे", - "pph": "Posts Per Hour (पोस्ट प्रति तास)" + "pph": "Posts Per Hour (पोस्ट प्रति तास)", + "unsubscribe_all": "सर्वांकडून अनसब्सक्राइब करा", + "unsubscribe_all_confirm": "तुम्हाला सर्व बोर्डमधून अनसब्सक्राइब करायचं आहे का?" } \ No newline at end of file diff --git a/public/translations/nl/default.json b/public/translations/nl/default.json index 8894a50f..365e391b 100644 --- a/public/translations/nl/default.json +++ b/public/translations/nl/default.json @@ -270,5 +270,7 @@ "load_more": "Laad meer", "displaying_boards": "Weergave {{filteredBoardsCount}} van {{totalBoardCount}} boards", "displaying_boards_with_tag": "Weergave {{filteredBoardsCount}} van {{totalBoardCount}} boards met de tag {{currentTag}}", - "pph": "Posts Per Hour (Berichten Per Uur)" + "pph": "Posts Per Hour (Berichten Per Uur)", + "unsubscribe_all": "Afmelden voor alles", + "unsubscribe_all_confirm": "Weet je zeker dat je je wilt afmelden voor alle boards?" } \ No newline at end of file diff --git a/public/translations/no/default.json b/public/translations/no/default.json index d34b96d1..e2a85254 100644 --- a/public/translations/no/default.json +++ b/public/translations/no/default.json @@ -270,5 +270,7 @@ "load_more": "Last inn mer", "displaying_boards": "Viser {{filteredBoardsCount}} av {{totalBoardCount}} boards", "displaying_boards_with_tag": "Viser {{filteredBoardsCount}} av {{totalBoardCount}} boards merket med {{currentTag}}", - "pph": "Posts Per Hour (Innhold Per Time)" + "pph": "Posts Per Hour (Innhold Per Time)", + "unsubscribe_all": "Avslutt abonnement fra alt", + "unsubscribe_all_confirm": "Er du sikker på at du vil melde deg av alle boards?" } \ No newline at end of file diff --git a/public/translations/pl/default.json b/public/translations/pl/default.json index a6054085..b8259175 100644 --- a/public/translations/pl/default.json +++ b/public/translations/pl/default.json @@ -270,5 +270,7 @@ "load_more": "Załaduj więcej", "displaying_boards": "Wyświetlanie {{filteredBoardsCount}} z {{totalBoardCount}} forów", "displaying_boards_with_tag": "Wyświetlanie {{filteredBoardsCount}} z {{totalBoardCount}} forów oznaczonych tagiem {{currentTag}}", - "pph": "Posts Per Hour (Posty na Godzinę)" + "pph": "Posts Per Hour (Posty na Godzinę)", + "unsubscribe_all": "Wypisz się ze wszystkiego", + "unsubscribe_all_confirm": "Czy na pewno chcesz wypisać się ze wszystkich forów?" } \ No newline at end of file diff --git a/public/translations/pt/default.json b/public/translations/pt/default.json index 008aa342..2d6547ed 100644 --- a/public/translations/pt/default.json +++ b/public/translations/pt/default.json @@ -270,5 +270,7 @@ "load_more": "Carregar mais", "displaying_boards": "Exibindo {{filteredBoardsCount}} de {{totalBoardCount}} boards", "displaying_boards_with_tag": "Exibindo {{filteredBoardsCount}} de {{totalBoardCount}} boards com a tag {{currentTag}}", - "pph": "Posts Per Hour (Postagens Por Hora)" + "pph": "Posts Per Hour (Postagens Por Hora)", + "unsubscribe_all": "Cancelar inscrição em tudo", + "unsubscribe_all_confirm": "Tem certeza de que deseja cancelar a inscrição em todos os boards?" } \ No newline at end of file diff --git a/public/translations/ro/default.json b/public/translations/ro/default.json index 9be2d374..13ce819b 100644 --- a/public/translations/ro/default.json +++ b/public/translations/ro/default.json @@ -270,5 +270,7 @@ "load_more": "Încarcă mai mult", "displaying_boards": "Afișare {{filteredBoardsCount}} din {{totalBoardCount}} forumuri", "displaying_boards_with_tag": "Afișare {{filteredBoardsCount}} din {{totalBoardCount}} forumuri etichetate cu {{currentTag}}", - "pph": "Posts Per Hour (Postări Pe Oră)" + "pph": "Posts Per Hour (Postări Pe Oră)", + "unsubscribe_all": "Dezabonare de la toate", + "unsubscribe_all_confirm": "Ești sigur că vrei să te dezabonezi de la toate forumurile?" } \ No newline at end of file diff --git a/public/translations/ru/default.json b/public/translations/ru/default.json index 626bf4f9..9b4468a2 100644 --- a/public/translations/ru/default.json +++ b/public/translations/ru/default.json @@ -270,5 +270,7 @@ "load_more": "Загрузить больше", "displaying_boards": "Отображение {{filteredBoardsCount}} из {{totalBoardCount}} форумов", "displaying_boards_with_tag": "Отображение {{filteredBoardsCount}} из {{totalBoardCount}} форумов с тегом {{currentTag}}", - "pph": "Posts Per Hour (Посты в Час)" + "pph": "Posts Per Hour (Посты в Час)", + "unsubscribe_all": "Отписаться от всего", + "unsubscribe_all_confirm": "Вы уверены, что хотите отписаться от всех форумов?" } \ No newline at end of file diff --git a/public/translations/sq/default.json b/public/translations/sq/default.json index d3f68646..1e8f000d 100644 --- a/public/translations/sq/default.json +++ b/public/translations/sq/default.json @@ -270,5 +270,7 @@ "load_more": "Ngarko më shumë", "displaying_boards": "Po shfaq {{filteredBoardsCount}} nga {{totalBoardCount}} forume", "displaying_boards_with_tag": "Po shfaq {{filteredBoardsCount}} nga {{totalBoardCount}} forume me etiketën {{currentTag}}", - "pph": "Posts Per Hour (Postime Në Orë)" + "pph": "Posts Per Hour (Postime Në Orë)", + "unsubscribe_all": "Çunsubscribe nga të gjitha", + "unsubscribe_all_confirm": "A jeni të sigurt se doni të hiqni bllokimin nga të gjitha forume?" } \ No newline at end of file diff --git a/public/translations/sv/default.json b/public/translations/sv/default.json index d59f9920..48cfbfba 100644 --- a/public/translations/sv/default.json +++ b/public/translations/sv/default.json @@ -270,5 +270,7 @@ "load_more": "Läs mer", "displaying_boards": "Visar {{filteredBoardsCount}} av {{totalBoardCount}} boards", "displaying_boards_with_tag": "Visar {{filteredBoardsCount}} av {{totalBoardCount}} boards taggade med {{currentTag}}", - "pph": "Posts Per Hour (Inlägg Per Timme)" + "pph": "Posts Per Hour (Inlägg Per Timme)", + "unsubscribe_all": "Avsluta prenumeration från allt", + "unsubscribe_all_confirm": "Är du säker på att du vill avsluta prenumerationen från alla boards?" } \ No newline at end of file diff --git a/public/translations/te/default.json b/public/translations/te/default.json index de0fca2d..22d6488f 100644 --- a/public/translations/te/default.json +++ b/public/translations/te/default.json @@ -270,5 +270,7 @@ "load_more": "మరింత లోడ్ చేయండి", "displaying_boards": "ప్రదర్శన {{filteredBoardsCount}} నుండి {{totalBoardCount}} బోర్డ్స్", "displaying_boards_with_tag": "ప్రదర్శన {{filteredBoardsCount}} నుండి {{totalBoardCount}} బోర్డ్స్ ట్యాగ్ {{currentTag}}", - "pph": "Posts Per Hour (ప్రతి గంటలో పోస్ట్‌లు)" + "pph": "Posts Per Hour (ప్రతి గంటలో పోస్ట్‌లు)", + "unsubscribe_all": "అన్ని నుండి అన్‌సబ్స్క్రైబ్ చేయండి", + "unsubscribe_all_confirm": "మీరు అన్ని బోర్డ్స్ నుండి అన్‌సబ్స్క్రైబ్ చేయాలని ఖచ్చితంగా భావిస్తున్నారా?" } \ No newline at end of file diff --git a/public/translations/th/default.json b/public/translations/th/default.json index 381de6d0..5e2f24e6 100644 --- a/public/translations/th/default.json +++ b/public/translations/th/default.json @@ -270,5 +270,7 @@ "load_more": "โหลดเพิ่มเติม", "displaying_boards": "แสดง {{filteredBoardsCount}} จาก {{totalBoardCount}} บอร์ด", "displaying_boards_with_tag": "แสดง {{filteredBoardsCount}} จาก {{totalBoardCount}} บอร์ดที่มีแท็ก {{currentTag}}", - "pph": "Posts Per Hour (โพสต์ต่อชั่วโมง)" + "pph": "Posts Per Hour (โพสต์ต่อชั่วโมง)", + "unsubscribe_all": "ยกเลิกการสมัครทั้งหมด", + "unsubscribe_all_confirm": "คุณแน่ใจหรือไม่ว่าต้องการยกเลิกการสมัครสมาชิกจากทุกบอร์ด?" } \ No newline at end of file diff --git a/public/translations/tr/default.json b/public/translations/tr/default.json index bff16062..2dd83248 100644 --- a/public/translations/tr/default.json +++ b/public/translations/tr/default.json @@ -270,5 +270,7 @@ "load_more": "Daha fazla yükle", "displaying_boards": "{{filteredBoardsCount}}/{{totalBoardCount}} boardları görüntüleme", "displaying_boards_with_tag": "{{currentTag}} etiketiyle işaretlenen {{totalBoardCount}} boardtan {{filteredBoardsCount}} görüntüleniyor", - "pph": "Posts Per Hour (Saat Başına Paylaşımlar)" + "pph": "Posts Per Hour (Saat Başına Paylaşımlar)", + "unsubscribe_all": "Hepsinden aboneliği iptal et", + "unsubscribe_all_confirm": "Tüm forumlardan aboneliği iptal etmek istediğinizden emin misiniz?" } \ No newline at end of file diff --git a/public/translations/uk/default.json b/public/translations/uk/default.json index 7989f5f2..713fcb3b 100644 --- a/public/translations/uk/default.json +++ b/public/translations/uk/default.json @@ -270,5 +270,7 @@ "load_more": "Завантажити більше", "displaying_boards": "Відображення {{filteredBoardsCount}} з {{totalBoardCount}} форумів", "displaying_boards_with_tag": "Відображення {{filteredBoardsCount}} з {{totalBoardCount}} форумів, помічених тегом {{currentTag}}", - "pph": "Posts Per Hour (Пости за Годину)" + "pph": "Posts Per Hour (Пости за Годину)", + "unsubscribe_all": "Відписатися від всього", + "unsubscribe_all_confirm": "Ви впевнені, що хочете скасувати підписку з усіх форумів?" } \ No newline at end of file diff --git a/public/translations/ur/default.json b/public/translations/ur/default.json index e3268aeb..aae8042e 100644 --- a/public/translations/ur/default.json +++ b/public/translations/ur/default.json @@ -270,5 +270,7 @@ "load_more": "مزید لوڈ کریں", "displaying_boards": "ظاہر ہو رہے ہیں {{filteredBoardsCount}} میں سے {{totalBoardCount}} بورڈز", "displaying_boards_with_tag": "ظاہر ہو رہے ہیں {{filteredBoardsCount}} میں سے {{totalBoardCount}} بورڈز جو {{currentTag}} ٹیگ کے ساتھ ہیں", - "pph": "Posts Per Hour (ہر گھنٹے میں پوسٹس)" + "pph": "Posts Per Hour (ہر گھنٹے میں پوسٹس)", + "unsubscribe_all": "سب سے ان سبسکرائب کریں", + "unsubscribe_all_confirm": "کیا آپ کو یقین ہے کہ آپ تمام بورڈز سے ان سبسکرائب کرنا چاہتے ہیں؟" } \ No newline at end of file diff --git a/public/translations/vi/default.json b/public/translations/vi/default.json index 04ca7d36..7857b96d 100644 --- a/public/translations/vi/default.json +++ b/public/translations/vi/default.json @@ -270,5 +270,7 @@ "load_more": "Tải thêm", "displaying_boards": "Hiển thị {{filteredBoardsCount}} trong {{totalBoardCount}} diễn đàn", "displaying_boards_with_tag": "Hiển thị {{filteredBoardsCount}} trong {{totalBoardCount}} diễn đàn có thẻ {{currentTag}}", - "pph": "Posts Per Hour (Bài Viết Mỗi Giờ)" + "pph": "Posts Per Hour (Bài Viết Mỗi Giờ)", + "unsubscribe_all": "Hủy đăng ký tất cả", + "unsubscribe_all_confirm": "Bạn có chắc chắn muốn hủy đăng ký tất cả các diễn đàn không?" } \ No newline at end of file diff --git a/public/translations/zh/default.json b/public/translations/zh/default.json index a1c270f4..ad82d850 100644 --- a/public/translations/zh/default.json +++ b/public/translations/zh/default.json @@ -270,5 +270,7 @@ "load_more": "加载更多", "displaying_boards": "显示 {{filteredBoardsCount}} 个板块,共 {{totalBoardCount}} 个板块", "displaying_boards_with_tag": "显示 {{filteredBoardsCount}} 个板块,共 {{totalBoardCount}} 个板块,标签为 {{currentTag}}", - "pph": "Posts Per Hour (每小时帖子)" + "pph": "Posts Per Hour (每小时帖子)", + "unsubscribe_all": "取消所有订阅", + "unsubscribe_all_confirm": "您确定要取消对所有板块的订阅吗?" } \ No newline at end of file diff --git a/src/components/settings-modal/settings-modal.tsx b/src/components/settings-modal/settings-modal.tsx index cff58c33..7e95a77c 100644 --- a/src/components/settings-modal/settings-modal.tsx +++ b/src/components/settings-modal/settings-modal.tsx @@ -9,6 +9,7 @@ import CryptoAddressSetting from './crypto-address-setting'; import CryptoWalletsSetting from './crypto-wallets-setting'; import InterfaceSettings from './interface-settings'; import PlebbitOptions from './plebbit-options'; +import SubscriptionsSetting from './subscriptions-setting'; const SettingsModal = () => { const { t } = useTranslation(); @@ -39,6 +40,7 @@ const SettingsModal = () => { const [showAvatarSettings, setShowAvatarSettings] = useState(false); const [showCryptoAddressSetting, setShowCryptoAddressSetting] = useState(false); const [showCryptoWalletSettings, setShowCryptoWalletSettings] = useState(false); + const [showSubscriptionsSettings, setShowSubscriptionsSettings] = useState(false); const [showBlockedAddressesSetting, setShowBlockedAddressesSetting] = useState(false); const [showPlebbitOptionsSettings, setShowPlebbitOptionsSettings] = useState(false); const [expandAll, setExpandAll] = useState(false); @@ -50,6 +52,7 @@ const SettingsModal = () => { Number(showAvatarSettings) + Number(showCryptoAddressSetting) + Number(showCryptoWalletSettings) + + Number(showSubscriptionsSettings) + Number(showBlockedAddressesSetting) + Number(showPlebbitOptionsSettings) ); @@ -61,6 +64,7 @@ const SettingsModal = () => { if (showAvatarSettings && 'avatar-settings' !== excludeCategoryId) return 'avatar-settings'; if (showCryptoAddressSetting && 'crypto-address-settings' !== excludeCategoryId) return 'crypto-address-settings'; if (showCryptoWalletSettings && 'crypto-wallet-settings' !== excludeCategoryId) return 'crypto-wallet-settings'; + if (showSubscriptionsSettings && 'subscriptions-settings' !== excludeCategoryId) return 'subscriptions-settings'; if (showBlockedAddressesSetting && 'blocked-addresses-settings' !== excludeCategoryId) return 'blocked-addresses-settings'; if (showPlebbitOptionsSettings && 'plebbit-options-settings' !== excludeCategoryId) return 'plebbit-options-settings'; return null; @@ -100,6 +104,7 @@ const SettingsModal = () => { setShowAvatarSettings(hash === 'avatar-settings'); setShowCryptoAddressSetting(hash === 'crypto-address-settings'); setShowCryptoWalletSettings(hash === 'crypto-wallet-settings'); + setShowSubscriptionsSettings(hash === 'subscriptions-settings'); setShowBlockedAddressesSetting(hash === 'blocked-addresses-settings'); setShowPlebbitOptionsSettings(hash === 'plebbit-options-settings'); } @@ -113,6 +118,7 @@ const SettingsModal = () => { setShowAvatarSettings(newExpandState); setShowCryptoAddressSetting(newExpandState); setShowCryptoWalletSettings(newExpandState); + setShowSubscriptionsSettings(newExpandState); setShowBlockedAddressesSetting(newExpandState); setShowPlebbitOptionsSettings(newExpandState); @@ -166,6 +172,13 @@ const SettingsModal = () => { {showCryptoWalletSettings && } +
+ +
+ {showSubscriptionsSettings && }