From a485bc98e38b791f45455a2da862898fa3278fa8 Mon Sep 17 00:00:00 2001 From: "plebeius.eth" Date: Thu, 11 Jan 2024 23:04:32 +0100 Subject: [PATCH 01/14] feat(subplebbits): link to communities, show empty subscriptions view to user, empty moderating subs page --- src/components/topbar/topbar.tsx | 2 +- src/views/subplebbits/subplebbits.tsx | 10 +++++++--- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/src/components/topbar/topbar.tsx b/src/components/topbar/topbar.tsx index 7b502e43..657e3624 100644 --- a/src/components/topbar/topbar.tsx +++ b/src/components/topbar/topbar.tsx @@ -160,7 +160,7 @@ const TopBar = () => { ))} - + {t('edit')} » diff --git a/src/views/subplebbits/subplebbits.tsx b/src/views/subplebbits/subplebbits.tsx index 8d4b01ee..fdd6133e 100644 --- a/src/views/subplebbits/subplebbits.tsx +++ b/src/views/subplebbits/subplebbits.tsx @@ -49,6 +49,10 @@ const Tabs = () => { }; const Infobar = () => { + const account = useAccount(); + const { accountSubplebbits } = useAccountSubplebbits(); + console.log(accountSubplebbits); + const subscriptions = account?.subscriptions || []; const { t } = useTranslation(); const location = useLocation(); const isInSubplebbitsMineSubscriberView = isSubplebbitsMineSubscriberView(location.pathname); @@ -57,11 +61,11 @@ const Infobar = () => { const infobarText = useMemo(() => { if (isInSubplebbitsMineSubscriberView) { - return 'below are communities you have subscribed to.'; + return subscriptions.length === 0 ? 'you are not subscribed to any community.' : 'below are communities you have subscribed to.'; } else if (isInSubplebbitsMineContributorView) { return 'below are the communities that you are an approved user on.'; } else if (isInSubplebbitsMineModeratorView) { - return 'below are the communities that you have moderator access to.'; + return Object.keys(accountSubplebbits).length > 0 ? 'below are the communities that you have moderator access to.' : 'you are not a moderator on any community.'; } else { return ( <> @@ -69,7 +73,7 @@ const Infobar = () => { ); } - }, [isInSubplebbitsMineSubscriberView, isInSubplebbitsMineContributorView, isInSubplebbitsMineModeratorView, t]); + }, [isInSubplebbitsMineSubscriberView, isInSubplebbitsMineContributorView, isInSubplebbitsMineModeratorView, t, subscriptions.length, accountSubplebbits]); return
{infobarText}
; }; From 36afb3bcbd0d6321946ed25807c2a9342242c2b7 Mon Sep 17 00:00:00 2001 From: "plebeius.eth" Date: Fri, 12 Jan 2024 13:29:42 +0100 Subject: [PATCH 02/14] chore(translations): community settings --- public/translations/ar/default.json | 3 ++- public/translations/bn/default.json | 3 ++- public/translations/cs/default.json | 3 ++- public/translations/da/default.json | 3 ++- public/translations/de/default.json | 3 ++- public/translations/el/default.json | 3 ++- public/translations/en/default.json | 3 ++- public/translations/es/default.json | 3 ++- public/translations/fa/default.json | 3 ++- public/translations/fi/default.json | 3 ++- public/translations/fil/default.json | 3 ++- public/translations/fr/default.json | 3 ++- public/translations/he/default.json | 3 ++- public/translations/hi/default.json | 3 ++- public/translations/hu/default.json | 3 ++- public/translations/id/default.json | 3 ++- public/translations/it/default.json | 3 ++- public/translations/ja/default.json | 3 ++- public/translations/ko/default.json | 3 ++- public/translations/mr/default.json | 3 ++- public/translations/nl/default.json | 3 ++- public/translations/no/default.json | 3 ++- public/translations/pl/default.json | 3 ++- public/translations/pt/default.json | 3 ++- public/translations/ro/default.json | 3 ++- public/translations/ru/default.json | 3 ++- public/translations/sq/default.json | 3 ++- public/translations/sv/default.json | 3 ++- public/translations/te/default.json | 3 ++- public/translations/th/default.json | 3 ++- public/translations/tr/default.json | 3 ++- public/translations/uk/default.json | 3 ++- public/translations/ur/default.json | 3 ++- public/translations/vi/default.json | 3 ++- public/translations/zh/default.json | 3 ++- 35 files changed, 70 insertions(+), 35 deletions(-) diff --git a/public/translations/ar/default.json b/public/translations/ar/default.json index 686f6043..6a4251dc 100644 --- a/public/translations/ar/default.json +++ b/public/translations/ar/default.json @@ -185,5 +185,6 @@ "address": "عنوان", "nothing_found": "لا يبدو أن هناك شيء هنا", "stickied_comment": "التعليق المثبت", - "posts_last_synced": "آخر مرة تمت مزامنة المشاركات {{dateAgo}}" + "posts_last_synced": "آخر مرة تمت مزامنة المشاركات {{dateAgo}}", + "community_settings": "إعدادات المجتمع" } \ No newline at end of file diff --git a/public/translations/bn/default.json b/public/translations/bn/default.json index ba1958e7..3efa708b 100644 --- a/public/translations/bn/default.json +++ b/public/translations/bn/default.json @@ -185,5 +185,6 @@ "address": "ঠিকানা", "nothing_found": "এখানে কিছুই নেই মনে হয় না", "stickied_comment": "পিন করা মন্তব্য", - "posts_last_synced": "পোস্টগুলি সর্বশেষ সিঙ্ক হয়েছে {{dateAgo}}" + "posts_last_synced": "পোস্টগুলি সর্বশেষ সিঙ্ক হয়েছে {{dateAgo}}", + "community_settings": "সম্প্রদায় সেটিংস" } \ No newline at end of file diff --git a/public/translations/cs/default.json b/public/translations/cs/default.json index 81e5d662..54ee20c0 100644 --- a/public/translations/cs/default.json +++ b/public/translations/cs/default.json @@ -185,5 +185,6 @@ "address": "Adresa", "nothing_found": "Zdá se, že zde nic není", "stickied_comment": "Připnutý komentář", - "posts_last_synced": "Poslední synchronizace příspěvků {{dateAgo}}" + "posts_last_synced": "Poslední synchronizace příspěvků {{dateAgo}}", + "community_settings": "Nastavení komunity" } \ No newline at end of file diff --git a/public/translations/da/default.json b/public/translations/da/default.json index 02a4ad57..c5fb016c 100644 --- a/public/translations/da/default.json +++ b/public/translations/da/default.json @@ -185,5 +185,6 @@ "address": "Adresse", "nothing_found": "Der ser ikke ud til at være noget her", "stickied_comment": "Fastgjort kommentar", - "posts_last_synced": "Seneste opdatering af indlæg {{dateAgo}}" + "posts_last_synced": "Seneste opdatering af indlæg {{dateAgo}}", + "community_settings": "Fællesskabsindstillinger" } \ No newline at end of file diff --git a/public/translations/de/default.json b/public/translations/de/default.json index 8304ad17..ae275f24 100644 --- a/public/translations/de/default.json +++ b/public/translations/de/default.json @@ -185,5 +185,6 @@ "address": "Adresse", "nothing_found": "Hier scheint nichts zu sein", "stickied_comment": "Angehängter Kommentar", - "posts_last_synced": "Zuletzt synchronisierte Beiträge {{dateAgo}}" + "posts_last_synced": "Zuletzt synchronisierte Beiträge {{dateAgo}}", + "community_settings": "Community-Einstellungen" } \ No newline at end of file diff --git a/public/translations/el/default.json b/public/translations/el/default.json index aca9906b..67fc14fa 100644 --- a/public/translations/el/default.json +++ b/public/translations/el/default.json @@ -185,5 +185,6 @@ "address": "Διεύθυνση", "nothing_found": "Δεν φαίνεται να υπάρχει τίποτα εδώ", "stickied_comment": "Καρφωμένο σχόλιο", - "posts_last_synced": "Τελευταία συγχρονισμένες δημοσιεύσεις {{dateAgo}}" + "posts_last_synced": "Τελευταία συγχρονισμένες δημοσιεύσεις {{dateAgo}}", + "community_settings": "Ρυθμίσεις κοινότητας" } \ No newline at end of file diff --git a/public/translations/en/default.json b/public/translations/en/default.json index baa06eb7..699ffb21 100644 --- a/public/translations/en/default.json +++ b/public/translations/en/default.json @@ -185,5 +185,6 @@ "address": "Address", "nothing_found": "There doesn't seem to be anything here", "stickied_comment": "Stickied Comment", - "posts_last_synced": "Posts last synced {{dateAgo}}" + "posts_last_synced": "Posts last synced {{dateAgo}}", + "community_settings": "Community Settings" } \ No newline at end of file diff --git a/public/translations/es/default.json b/public/translations/es/default.json index 167a8d7a..4584ee4c 100644 --- a/public/translations/es/default.json +++ b/public/translations/es/default.json @@ -185,5 +185,6 @@ "address": "Dirección", "nothing_found": "No parece haber nada aquí", "stickied_comment": "Comentario fijado", - "posts_last_synced": "Últimas publicaciones sincronizadas {{dateAgo}}" + "posts_last_synced": "Últimas publicaciones sincronizadas {{dateAgo}}", + "community_settings": "Configuración de la comunidad" } \ No newline at end of file diff --git a/public/translations/fa/default.json b/public/translations/fa/default.json index 2b9e08bd..7b7050b2 100644 --- a/public/translations/fa/default.json +++ b/public/translations/fa/default.json @@ -185,5 +185,6 @@ "address": "آدرس", "nothing_found": "به نظر نمی رسد که چیزی وجود داشته باشد", "stickied_comment": "نظر ثابت", - "posts_last_synced": "آخرین باری که پست‌ها همگام‌سازی شدند {{dateAgo}}" + "posts_last_synced": "آخرین باری که پست‌ها همگام‌سازی شدند {{dateAgo}}", + "community_settings": "تنظیمات اجتماعی" } \ No newline at end of file diff --git a/public/translations/fi/default.json b/public/translations/fi/default.json index a48856e4..ab416c8e 100644 --- a/public/translations/fi/default.json +++ b/public/translations/fi/default.json @@ -185,5 +185,6 @@ "address": "Osoite", "nothing_found": "Täällä ei näytä olevan mitään", "stickied_comment": "Kiinnitetty kommentti", - "posts_last_synced": "Viimeksi synkronoidut viestit {{dateAgo}}" + "posts_last_synced": "Viimeksi synkronoidut viestit {{dateAgo}}", + "community_settings": "Yhteisön asetukset" } \ No newline at end of file diff --git a/public/translations/fil/default.json b/public/translations/fil/default.json index 5c699b12..ffcba071 100644 --- a/public/translations/fil/default.json +++ b/public/translations/fil/default.json @@ -185,5 +185,6 @@ "address": "Address", "nothing_found": "Wala yatang nandito", "stickied_comment": "Naka-pinned na Komento", - "posts_last_synced": "Mga huling na-synchronize na mga post {{dateAgo}}" + "posts_last_synced": "Mga huling na-synchronize na mga post {{dateAgo}}", + "community_settings": "Mga Setting ng Komunidad" } \ No newline at end of file diff --git a/public/translations/fr/default.json b/public/translations/fr/default.json index d372caf4..6245627c 100644 --- a/public/translations/fr/default.json +++ b/public/translations/fr/default.json @@ -185,5 +185,6 @@ "address": "Adresse", "nothing_found": "Il ne semble pas y avoir de contenu ici", "stickied_comment": "Commentaire épinglé", - "posts_last_synced": "Dernières publications synchronisées {{dateAgo}}" + "posts_last_synced": "Dernières publications synchronisées {{dateAgo}}", + "community_settings": "Paramètres de la communauté" } \ No newline at end of file diff --git a/public/translations/he/default.json b/public/translations/he/default.json index 9acce5f0..96995698 100644 --- a/public/translations/he/default.json +++ b/public/translations/he/default.json @@ -185,5 +185,6 @@ "address": "כתובת", "nothing_found": "נראה שאין כאן שום דבר", "stickied_comment": "תגובה מוצבת", - "posts_last_synced": "פוסטים אחרונים שנסנכרנו {{dateAgo}}" + "posts_last_synced": "פוסטים אחרונים שנסנכרנו {{dateAgo}}", + "community_settings": "הגדרות הקהילה" } \ No newline at end of file diff --git a/public/translations/hi/default.json b/public/translations/hi/default.json index 79ffc1d4..21a38ad6 100644 --- a/public/translations/hi/default.json +++ b/public/translations/hi/default.json @@ -185,5 +185,6 @@ "address": "पता", "nothing_found": "ऐसा कुछ नहीं दिखता है कि यहां कुछ है", "stickied_comment": "पिन किया गया टिप्पणी", - "posts_last_synced": "पोस्ट्स अंतिम बार {{dateAgo}} को सिंक की गईं" + "posts_last_synced": "पोस्ट्स अंतिम बार {{dateAgo}} को सिंक की गईं", + "community_settings": "समुदाय सेटिंग्स" } \ No newline at end of file diff --git a/public/translations/hu/default.json b/public/translations/hu/default.json index 0ada786b..b60e3b24 100644 --- a/public/translations/hu/default.json +++ b/public/translations/hu/default.json @@ -185,5 +185,6 @@ "address": "Cím", "nothing_found": "Úgy tűnik, nincs itt semmi", "stickied_comment": "Kitűzött hozzászólás", - "posts_last_synced": "Legutóbb szinkronizált bejegyzések {{dateAgo}}" + "posts_last_synced": "Legutóbb szinkronizált bejegyzések {{dateAgo}}", + "community_settings": "Közösségi beállítások" } \ No newline at end of file diff --git a/public/translations/id/default.json b/public/translations/id/default.json index 35713933..2be646cc 100644 --- a/public/translations/id/default.json +++ b/public/translations/id/default.json @@ -185,5 +185,6 @@ "address": "Alamat", "nothing_found": "Tidak ada yang tampaknya di sini", "stickied_comment": "Komentar yang Dipasang", - "posts_last_synced": "Postingan yang terakhir disinkronkan {{dateAgo}}" + "posts_last_synced": "Postingan yang terakhir disinkronkan {{dateAgo}}", + "community_settings": "Pengaturan Komunitas" } \ No newline at end of file diff --git a/public/translations/it/default.json b/public/translations/it/default.json index 57ae8385..f9cb90d9 100644 --- a/public/translations/it/default.json +++ b/public/translations/it/default.json @@ -185,5 +185,6 @@ "address": "Indirizzo", "nothing_found": "Sembra che qui non ci sia nulla", "stickied_comment": "Commento fissato", - "posts_last_synced": "Post sincronizzati l'ultima volta {{dateAgo}}" + "posts_last_synced": "Post sincronizzati l'ultima volta {{dateAgo}}", + "community_settings": "Impostazioni della comunità" } \ No newline at end of file diff --git a/public/translations/ja/default.json b/public/translations/ja/default.json index 579b14d7..a593d54f 100644 --- a/public/translations/ja/default.json +++ b/public/translations/ja/default.json @@ -185,5 +185,6 @@ "address": "住所", "nothing_found": "ここには何もないようです", "stickied_comment": "固定されたコメント", - "posts_last_synced": "最後に同期された投稿 {{dateAgo}}" + "posts_last_synced": "最後に同期された投稿 {{dateAgo}}", + "community_settings": "コミュニティの設定" } \ No newline at end of file diff --git a/public/translations/ko/default.json b/public/translations/ko/default.json index 6cca5cdf..08a021d3 100644 --- a/public/translations/ko/default.json +++ b/public/translations/ko/default.json @@ -185,5 +185,6 @@ "address": "주소", "nothing_found": "여기에는 아무것도 없는 것 같습니다", "stickied_comment": "고정된 댓글", - "posts_last_synced": "마지막 동기화된 게시물 {{dateAgo}}" + "posts_last_synced": "마지막 동기화된 게시물 {{dateAgo}}", + "community_settings": "커뮤니티 설정" } \ No newline at end of file diff --git a/public/translations/mr/default.json b/public/translations/mr/default.json index 0bad07c9..31a62956 100644 --- a/public/translations/mr/default.json +++ b/public/translations/mr/default.json @@ -185,5 +185,6 @@ "address": "पत्ता", "nothing_found": "काहीतरी दिसत नाही आहे", "stickied_comment": "टाळलेला टिप्पणी", - "posts_last_synced": "शेवटी सिंक केलेले पोस्ट्स {{dateAgo}}" + "posts_last_synced": "शेवटी सिंक केलेले पोस्ट्स {{dateAgo}}", + "community_settings": "समुदाय सेटिंग्स" } \ No newline at end of file diff --git a/public/translations/nl/default.json b/public/translations/nl/default.json index c1627c89..60a127a1 100644 --- a/public/translations/nl/default.json +++ b/public/translations/nl/default.json @@ -185,5 +185,6 @@ "address": "Adres", "nothing_found": "Het lijkt erop dat hier niets is", "stickied_comment": "Vastgezette opmerking", - "posts_last_synced": "Laatst gesynchroniseerde berichten {{dateAgo}}" + "posts_last_synced": "Laatst gesynchroniseerde berichten {{dateAgo}}", + "community_settings": "Community-instellingen" } \ No newline at end of file diff --git a/public/translations/no/default.json b/public/translations/no/default.json index 9821a1ca..a69954c6 100644 --- a/public/translations/no/default.json +++ b/public/translations/no/default.json @@ -185,5 +185,6 @@ "address": "Adresse", "nothing_found": "Det ser ikke ut til å være noe her", "stickied_comment": "Festet kommentar", - "posts_last_synced": "Innlegg sist synkronisert {{dateAgo}}" + "posts_last_synced": "Innlegg sist synkronisert {{dateAgo}}", + "community_settings": "Fellesskapsinnstillinger" } \ No newline at end of file diff --git a/public/translations/pl/default.json b/public/translations/pl/default.json index 53e6e77c..70372ac2 100644 --- a/public/translations/pl/default.json +++ b/public/translations/pl/default.json @@ -185,5 +185,6 @@ "address": "Adres", "nothing_found": "Nie wydaje się, że jest tu cokolwiek", "stickied_comment": "Przypięty komentarz", - "posts_last_synced": "Ostatnio zsynchronizowane posty {{dateAgo}}" + "posts_last_synced": "Ostatnio zsynchronizowane posty {{dateAgo}}", + "community_settings": "Ustawienia społeczności" } \ No newline at end of file diff --git a/public/translations/pt/default.json b/public/translations/pt/default.json index e0c3d362..23b04b65 100644 --- a/public/translations/pt/default.json +++ b/public/translations/pt/default.json @@ -185,5 +185,6 @@ "address": "Endereço", "nothing_found": "Não parece haver nada aqui", "stickied_comment": "Comentário fixado", - "posts_last_synced": "Últimas postagens sincronizadas {{dateAgo}}" + "posts_last_synced": "Últimas postagens sincronizadas {{dateAgo}}", + "community_settings": "Configurações da comunidade" } \ No newline at end of file diff --git a/public/translations/ro/default.json b/public/translations/ro/default.json index 74bd59df..67ac9541 100644 --- a/public/translations/ro/default.json +++ b/public/translations/ro/default.json @@ -185,5 +185,6 @@ "address": "Adresă", "nothing_found": "Nu pare să fie nimic aici", "stickied_comment": "Comentariu fixat", - "posts_last_synced": "Ultimele postări sincronizate {{dateAgo}}" + "posts_last_synced": "Ultimele postări sincronizate {{dateAgo}}", + "community_settings": "Setări ale comunității" } \ No newline at end of file diff --git a/public/translations/ru/default.json b/public/translations/ru/default.json index 357070e2..7a1e2f46 100644 --- a/public/translations/ru/default.json +++ b/public/translations/ru/default.json @@ -185,5 +185,6 @@ "address": "Адрес", "nothing_found": "Здесь, кажется, ничего нет", "stickied_comment": "Закрепленный комментарий", - "posts_last_synced": "Последние синхронизированные посты {{dateAgo}}" + "posts_last_synced": "Последние синхронизированные посты {{dateAgo}}", + "community_settings": "Настройки сообщества" } \ No newline at end of file diff --git a/public/translations/sq/default.json b/public/translations/sq/default.json index 400ae849..40caceeb 100644 --- a/public/translations/sq/default.json +++ b/public/translations/sq/default.json @@ -185,5 +185,6 @@ "address": "Adresë", "nothing_found": "Nuk duket të ketë asgjë këtu", "stickied_comment": "Komenti i fiksuar", - "posts_last_synced": "Postimet e fundit të sinkronizuara {{dateAgo}}" + "posts_last_synced": "Postimet e fundit të sinkronizuara {{dateAgo}}", + "community_settings": "Cilësimet e komunitetit" } \ No newline at end of file diff --git a/public/translations/sv/default.json b/public/translations/sv/default.json index f833f642..0b1489c6 100644 --- a/public/translations/sv/default.json +++ b/public/translations/sv/default.json @@ -185,5 +185,6 @@ "address": "Adress", "nothing_found": "Det verkar inte finnas något här", "stickied_comment": "Fast kommentar", - "posts_last_synced": "Senast synkroniserade inlägg {{dateAgo}}" + "posts_last_synced": "Senast synkroniserade inlägg {{dateAgo}}", + "community_settings": "Samhällsinställningar" } \ No newline at end of file diff --git a/public/translations/te/default.json b/public/translations/te/default.json index 90bb888b..811d810b 100644 --- a/public/translations/te/default.json +++ b/public/translations/te/default.json @@ -185,5 +185,6 @@ "address": "చిరునామా", "nothing_found": "ఇక్కడ ఏమి ఉందని లేదని అనుకున్నట్లయిదేమీ లేదు", "stickied_comment": "పిన్ చేసిన వ్యాఖ్య", - "posts_last_synced": "పోస్టులు చివరిలో సింక్ అయ్యాయి {{dateAgo}}" + "posts_last_synced": "పోస్టులు చివరిలో సింక్ అయ్యాయి {{dateAgo}}", + "community_settings": "కమ్యూనిటీ సెట్టింగులు" } \ No newline at end of file diff --git a/public/translations/th/default.json b/public/translations/th/default.json index b5b3932a..4edac5bc 100644 --- a/public/translations/th/default.json +++ b/public/translations/th/default.json @@ -185,5 +185,6 @@ "address": "ที่อยู่", "nothing_found": "ดูเหมือนว่าจะไม่มีอะไรที่นี่", "stickied_comment": "ความคิดเห็นที่ตรึง", - "posts_last_synced": "โพสต์ล่าสุดที่ซิงค์ {{dateAgo}}" + "posts_last_synced": "โพสต์ล่าสุดที่ซิงค์ {{dateAgo}}", + "community_settings": "การตั้งค่าชุมชน" } \ No newline at end of file diff --git a/public/translations/tr/default.json b/public/translations/tr/default.json index a3c54b28..03e174ba 100644 --- a/public/translations/tr/default.json +++ b/public/translations/tr/default.json @@ -185,5 +185,6 @@ "address": "Adres", "nothing_found": "Burada hiçbir şey görünmüyor gibi", "stickied_comment": "Sabitleyici Yorum", - "posts_last_synced": "Son senkronize edilen gönderiler {{dateAgo}}" + "posts_last_synced": "Son senkronize edilen gönderiler {{dateAgo}}", + "community_settings": "Topluluk Ayarları" } \ No newline at end of file diff --git a/public/translations/uk/default.json b/public/translations/uk/default.json index 8178214b..b4669d24 100644 --- a/public/translations/uk/default.json +++ b/public/translations/uk/default.json @@ -185,5 +185,6 @@ "address": "Адреса", "nothing_found": "Тут, здається, нічого немає", "stickied_comment": "Закріплений коментар", - "posts_last_synced": "Останні синхронізовані пости {{dateAgo}}" + "posts_last_synced": "Останні синхронізовані пости {{dateAgo}}", + "community_settings": "Налаштування спільноти" } \ No newline at end of file diff --git a/public/translations/ur/default.json b/public/translations/ur/default.json index 3ac21ddc..27ee8635 100644 --- a/public/translations/ur/default.json +++ b/public/translations/ur/default.json @@ -185,5 +185,6 @@ "address": "پتہ", "nothing_found": "یہاں کچھ بھی نظر نہیں آرہا", "stickied_comment": "پن کردہ تبصرہ", - "posts_last_synced": "آخری مرتب سبقت کردہ پوسٹس {{dateAgo}}" + "posts_last_synced": "آخری مرتب سبقت کردہ پوسٹس {{dateAgo}}", + "community_settings": "کمیونٹی کی ترتیبات" } \ No newline at end of file diff --git a/public/translations/vi/default.json b/public/translations/vi/default.json index b8384132..61e28900 100644 --- a/public/translations/vi/default.json +++ b/public/translations/vi/default.json @@ -185,5 +185,6 @@ "address": "Địa chỉ", "nothing_found": "Dường như không có gì ở đây", "stickied_comment": "Bình luận ghim", - "posts_last_synced": "Bài viết gần nhất đã đồng bộ {{dateAgo}}" + "posts_last_synced": "Bài viết gần nhất đã đồng bộ {{dateAgo}}", + "community_settings": "Cài đặt cộng đồng" } \ No newline at end of file diff --git a/public/translations/zh/default.json b/public/translations/zh/default.json index 8bd2944c..cc335cc2 100644 --- a/public/translations/zh/default.json +++ b/public/translations/zh/default.json @@ -185,5 +185,6 @@ "address": "地址", "nothing_found": "这里似乎什么都没有", "stickied_comment": "置顶评论", - "posts_last_synced": "最后同步的帖子 {{dateAgo}}" + "posts_last_synced": "最后同步的帖子 {{dateAgo}}", + "community_settings": "社区设置" } \ No newline at end of file From 7b1ebf7eecafff97d2cdf88dd318233b07109b18 Mon Sep 17 00:00:00 2001 From: "plebeius.eth" Date: Fri, 12 Jan 2024 13:40:09 +0100 Subject: [PATCH 03/14] feat(sidebar): add moderation tools and community settings link --- public/assets/community_settings.png | Bin 0 -> 1146 bytes src/components/sidebar/sidebar.module.css | 25 ++++++++++++++ src/components/sidebar/sidebar.tsx | 31 +++++++++++++++--- .../subplebbit-settings.module.css | 17 +++++++++- .../subplebbit-settings.tsx | 6 +++- src/views/subplebbit/subplebbit.module.css | 1 + src/views/subplebbits/subplebbits.tsx | 1 - 7 files changed, 73 insertions(+), 8 deletions(-) create mode 100644 public/assets/community_settings.png diff --git a/public/assets/community_settings.png b/public/assets/community_settings.png new file mode 100644 index 0000000000000000000000000000000000000000..3472a1c0131e6c3090ce7dd23bb65ca66d863e92 GIT binary patch literal 1146 zcmeAS@N?(olHy`uVBq!ia0vp^{2CS5^;dDAA(5FO z5hW46K32*3xq68y`AMmI6}bf<1q?P7RzPNMYDuC(MQ%=Bu~mhw5?F;5kPQ;nS5g2g zDap1~itr6kaLzAERWQ>t&@)i7<5EyiuqjGOvkG!?gK7uzY?U%fN(!v>^~=l4^~#O) z@{7{-4J|D#^$m>ljf`}GDs+o0^GXscbn}XpA%?)raY-#sF3Kz@$;{7F0GXSZlwVq6 ztE2?72o50bEXhnm*pycc^%l^B`XCv7Lp=k1xY|DM$yRxSGPh`0m%>Py3O0z&qfS|2PV8W%*=qX_LK+;rIni2{8O~>$ZG4op8D*@Ip%d@9QtCF`-Cd1 z_+u8D^|;L4vF#!6&VLJD&GFII`s|kXJbng$nZm>OhohcHuIQ8P=np;cf74e!b?(Vu z&37&Mxc-z*$vvBfjVmP$yN|>>9yKUBoh2y!^`KkOiBozG&vq$Iov3^9i*aVc|8Gtu zRcikwPI!EEUMRnCnoN^iPV-s654jimkH}n(?g;bti8MK%rN;BE`}tSaiI*kKr^Me4 z@a}h*oy8cqY+*{8V)L;NDSOze^=-L5QamHC^Q!O)FH2K+^17k+o$eLg;|qQ5T9!z7 zsG2F?F>d+FK3m{Yh@!&B(kM3Jw##-MKg!KNt?E+}t?Dt6Zk?y$wxpaP<-YBjlj~Eg zcf9c1BsQ&PGpBHEZiY>cQmUBJi`+I=-r|kD9Q(g>DxEwbZuKU#bx}&xweY&fwIxE! zz1TObeW!Fuy-F~nJo$qwPvdoG4XZ+N)u+)9HDb1$E=!(Oe538+H{;&BPje!COD*P1 z{`EzsFH1a4DX^!C>BXsCJsy|Y)3(mvTI`xFrgHZ9$$H(Sz1r$KH> { + const { t } = useTranslation(); + const location = useLocation(); + const params = useParams(); + const isInSubplebbitSettingsView = isSubplebbitSettingsView(location.pathname, params); + + return ( +
+
moderation tools
+
    +
  • + + {t('community_settings')} + +
  • +
+
+ ); +}; + const Sidebar = ({ address, cid, createdAt, description, downvoteCount = 0, roles, rules, timestamp = 0, title, updatedAt, upvoteCount = 0 }: sidebarProps) => { const { t } = useTranslation(); const { allActiveUserCount, hourActiveUserCount } = useSubplebbitStats({ subplebbitAddress: address }); @@ -114,6 +134,9 @@ const Sidebar = ({ address, cid, createdAt, description, downvoteCount = 0, role alert('Not available in this version. You can create a community with the CLI: https://github.com/plebbit/plebbit-cli'); }; + const account = useAccount(); + const isModerator = roles?.[account.author?.address]?.role; + return (
@@ -163,13 +186,11 @@ const Sidebar = ({ address, cid, createdAt, description, downvoteCount = 0, role {blocked ? t('unblock_community') : t('block_community')} - - {t('settings')} -
)} + {isModerator && } {roles && } ); diff --git a/src/views/subplebbit/subplebbit-settings/subplebbit-settings.module.css b/src/views/subplebbit/subplebbit-settings/subplebbit-settings.module.css index 02a10fc6..7353a02c 100644 --- a/src/views/subplebbit/subplebbit-settings/subplebbit-settings.module.css +++ b/src/views/subplebbit/subplebbit-settings/subplebbit-settings.module.css @@ -1,5 +1,20 @@ +@media (max-width: 768px) { + .content { + padding: 7px 0px 0px 0px; + } + + .sidebar { + display: none; + } +} + +@media (min-width: 768px) { + .content { + padding: 7px 5px 0px 5px; + } +} + .content { - padding: 7px 5px 50px 5px; color: var(--text); } diff --git a/src/views/subplebbit/subplebbit-settings/subplebbit-settings.tsx b/src/views/subplebbit/subplebbit-settings/subplebbit-settings.tsx index 04f57fd5..a6e74cc3 100644 --- a/src/views/subplebbit/subplebbit-settings/subplebbit-settings.tsx +++ b/src/views/subplebbit/subplebbit-settings/subplebbit-settings.tsx @@ -5,6 +5,7 @@ import { RolesCollection } from '../../../lib/utils/user-utils'; import { useTranslation } from 'react-i18next'; import stringify from 'json-stringify-pretty-compact'; import styles from './subplebbit-settings.module.css'; +import Sidebar from '../../../components/sidebar'; const isElectron = window.electron && window.electron.isElectron; @@ -200,7 +201,7 @@ const SubplebbitSettings = () => { const subplebbit = useSubplebbit({ subplebbitAddress }); const userRole = subplebbit?.roles?.[account.author?.address]?.role; const isAdmin = userRole === 'admin' || userRole === 'owner'; - const { address, description, rules, suggested, roles, title } = subplebbit || {}; + const { address, createdAt, description, rules, suggested, roles, title, updatedAt } = subplebbit || {}; const [text, setText] = useState(''); let usePublishSubplebbitEditOptions; @@ -263,6 +264,9 @@ const SubplebbitSettings = () => { return (
+
+ +
{!isAdmin &&
only the admins and the owner of a community can edit its settings
} {!isElectron && isAdmin &&
you must be using the desktop app to edit community settings
} diff --git a/src/views/subplebbit/subplebbit.module.css b/src/views/subplebbit/subplebbit.module.css index fb2654ac..90e3706a 100644 --- a/src/views/subplebbit/subplebbit.module.css +++ b/src/views/subplebbit/subplebbit.module.css @@ -2,6 +2,7 @@ padding-left: 5px; } +/* position virtuoso window content relatively to sidebar */ div[data-viewport-type="window"] { position: relative !important; } diff --git a/src/views/subplebbits/subplebbits.tsx b/src/views/subplebbits/subplebbits.tsx index fdd6133e..80f7fdac 100644 --- a/src/views/subplebbits/subplebbits.tsx +++ b/src/views/subplebbits/subplebbits.tsx @@ -51,7 +51,6 @@ const Tabs = () => { const Infobar = () => { const account = useAccount(); const { accountSubplebbits } = useAccountSubplebbits(); - console.log(accountSubplebbits); const subscriptions = account?.subscriptions || []; const { t } = useTranslation(); const location = useLocation(); From 89a230a4d7d22788407bf65268430c9365a0eebc Mon Sep 17 00:00:00 2001 From: "plebeius.eth" <mottoes_recap0u@icloud.com> Date: Fri, 12 Jan 2024 14:48:32 +0100 Subject: [PATCH 04/14] chore(translations): moderation tools, community settings --- public/translations/ar/default.json | 3 ++- public/translations/bn/default.json | 3 ++- public/translations/cs/default.json | 3 ++- public/translations/da/default.json | 3 ++- public/translations/de/default.json | 3 ++- public/translations/el/default.json | 3 ++- public/translations/en/default.json | 3 ++- public/translations/es/default.json | 3 ++- public/translations/fa/default.json | 3 ++- public/translations/fi/default.json | 3 ++- public/translations/fil/default.json | 3 ++- public/translations/fr/default.json | 3 ++- public/translations/he/default.json | 3 ++- public/translations/hi/default.json | 3 ++- public/translations/hu/default.json | 3 ++- public/translations/id/default.json | 3 ++- public/translations/it/default.json | 3 ++- public/translations/ja/default.json | 3 ++- public/translations/ko/default.json | 3 ++- public/translations/mr/default.json | 3 ++- public/translations/nl/default.json | 3 ++- public/translations/no/default.json | 3 ++- public/translations/pl/default.json | 3 ++- public/translations/pt/default.json | 3 ++- public/translations/ro/default.json | 3 ++- public/translations/ru/default.json | 3 ++- public/translations/sq/default.json | 3 ++- public/translations/sv/default.json | 3 ++- public/translations/te/default.json | 3 ++- public/translations/th/default.json | 3 ++- public/translations/tr/default.json | 3 ++- public/translations/uk/default.json | 3 ++- public/translations/ur/default.json | 3 ++- public/translations/vi/default.json | 3 ++- public/translations/zh/default.json | 3 ++- src/components/header/header.tsx | 2 +- src/components/sidebar/sidebar.tsx | 2 +- 37 files changed, 72 insertions(+), 37 deletions(-) diff --git a/public/translations/ar/default.json b/public/translations/ar/default.json index 6a4251dc..1a030ef9 100644 --- a/public/translations/ar/default.json +++ b/public/translations/ar/default.json @@ -186,5 +186,6 @@ "nothing_found": "لا يبدو أن هناك شيء هنا", "stickied_comment": "التعليق المثبت", "posts_last_synced": "آخر مرة تمت مزامنة المشاركات {{dateAgo}}", - "community_settings": "إعدادات المجتمع" + "community_settings": "إعدادات المجتمع", + "moderation_tools": "أدوات الإشراف" } \ No newline at end of file diff --git a/public/translations/bn/default.json b/public/translations/bn/default.json index 3efa708b..4d971dd4 100644 --- a/public/translations/bn/default.json +++ b/public/translations/bn/default.json @@ -186,5 +186,6 @@ "nothing_found": "এখানে কিছুই নেই মনে হয় না", "stickied_comment": "পিন করা মন্তব্য", "posts_last_synced": "পোস্টগুলি সর্বশেষ সিঙ্ক হয়েছে {{dateAgo}}", - "community_settings": "সম্প্রদায় সেটিংস" + "community_settings": "সম্প্রদায় সেটিংস", + "moderation_tools": "মধ্যস্থতা সরঞ্জাম" } \ No newline at end of file diff --git a/public/translations/cs/default.json b/public/translations/cs/default.json index 54ee20c0..a88aefd4 100644 --- a/public/translations/cs/default.json +++ b/public/translations/cs/default.json @@ -186,5 +186,6 @@ "nothing_found": "Zdá se, že zde nic není", "stickied_comment": "Připnutý komentář", "posts_last_synced": "Poslední synchronizace příspěvků {{dateAgo}}", - "community_settings": "Nastavení komunity" + "community_settings": "Nastavení komunity", + "moderation_tools": "Nástroje pro moderaci" } \ No newline at end of file diff --git a/public/translations/da/default.json b/public/translations/da/default.json index c5fb016c..6f211256 100644 --- a/public/translations/da/default.json +++ b/public/translations/da/default.json @@ -186,5 +186,6 @@ "nothing_found": "Der ser ikke ud til at være noget her", "stickied_comment": "Fastgjort kommentar", "posts_last_synced": "Seneste opdatering af indlæg {{dateAgo}}", - "community_settings": "Fællesskabsindstillinger" + "community_settings": "Fællesskabsindstillinger", + "moderation_tools": "Moderationsværktøjer" } \ No newline at end of file diff --git a/public/translations/de/default.json b/public/translations/de/default.json index ae275f24..242de964 100644 --- a/public/translations/de/default.json +++ b/public/translations/de/default.json @@ -186,5 +186,6 @@ "nothing_found": "Hier scheint nichts zu sein", "stickied_comment": "Angehängter Kommentar", "posts_last_synced": "Zuletzt synchronisierte Beiträge {{dateAgo}}", - "community_settings": "Community-Einstellungen" + "community_settings": "Community-Einstellungen", + "moderation_tools": "Moderationstools" } \ No newline at end of file diff --git a/public/translations/el/default.json b/public/translations/el/default.json index 67fc14fa..be877ab3 100644 --- a/public/translations/el/default.json +++ b/public/translations/el/default.json @@ -186,5 +186,6 @@ "nothing_found": "Δεν φαίνεται να υπάρχει τίποτα εδώ", "stickied_comment": "Καρφωμένο σχόλιο", "posts_last_synced": "Τελευταία συγχρονισμένες δημοσιεύσεις {{dateAgo}}", - "community_settings": "Ρυθμίσεις κοινότητας" + "community_settings": "Ρυθμίσεις κοινότητας", + "moderation_tools": "Εργαλεία διαμεσολάβησης" } \ No newline at end of file diff --git a/public/translations/en/default.json b/public/translations/en/default.json index 699ffb21..c76f98e5 100644 --- a/public/translations/en/default.json +++ b/public/translations/en/default.json @@ -186,5 +186,6 @@ "nothing_found": "There doesn't seem to be anything here", "stickied_comment": "Stickied Comment", "posts_last_synced": "Posts last synced {{dateAgo}}", - "community_settings": "Community Settings" + "community_settings": "Community Settings", + "moderation_tools": "Moderation Tools" } \ No newline at end of file diff --git a/public/translations/es/default.json b/public/translations/es/default.json index 4584ee4c..db4e30a6 100644 --- a/public/translations/es/default.json +++ b/public/translations/es/default.json @@ -186,5 +186,6 @@ "nothing_found": "No parece haber nada aquí", "stickied_comment": "Comentario fijado", "posts_last_synced": "Últimas publicaciones sincronizadas {{dateAgo}}", - "community_settings": "Configuración de la comunidad" + "community_settings": "Configuración de la comunidad", + "moderation_tools": "Herramientas de moderación" } \ No newline at end of file diff --git a/public/translations/fa/default.json b/public/translations/fa/default.json index 7b7050b2..416d4d7e 100644 --- a/public/translations/fa/default.json +++ b/public/translations/fa/default.json @@ -186,5 +186,6 @@ "nothing_found": "به نظر نمی رسد که چیزی وجود داشته باشد", "stickied_comment": "نظر ثابت", "posts_last_synced": "آخرین باری که پست‌ها همگام‌سازی شدند {{dateAgo}}", - "community_settings": "تنظیمات اجتماعی" + "community_settings": "تنظیمات اجتماعی", + "moderation_tools": "ابزارهای نظارت" } \ No newline at end of file diff --git a/public/translations/fi/default.json b/public/translations/fi/default.json index ab416c8e..9cf50198 100644 --- a/public/translations/fi/default.json +++ b/public/translations/fi/default.json @@ -186,5 +186,6 @@ "nothing_found": "Täällä ei näytä olevan mitään", "stickied_comment": "Kiinnitetty kommentti", "posts_last_synced": "Viimeksi synkronoidut viestit {{dateAgo}}", - "community_settings": "Yhteisön asetukset" + "community_settings": "Yhteisön asetukset", + "moderation_tools": "Moderointityökalut" } \ No newline at end of file diff --git a/public/translations/fil/default.json b/public/translations/fil/default.json index ffcba071..65932c69 100644 --- a/public/translations/fil/default.json +++ b/public/translations/fil/default.json @@ -186,5 +186,6 @@ "nothing_found": "Wala yatang nandito", "stickied_comment": "Naka-pinned na Komento", "posts_last_synced": "Mga huling na-synchronize na mga post {{dateAgo}}", - "community_settings": "Mga Setting ng Komunidad" + "community_settings": "Mga Setting ng Komunidad", + "moderation_tools": "Mga Kasangkapan sa Moderasyon" } \ No newline at end of file diff --git a/public/translations/fr/default.json b/public/translations/fr/default.json index 6245627c..34b3ab06 100644 --- a/public/translations/fr/default.json +++ b/public/translations/fr/default.json @@ -186,5 +186,6 @@ "nothing_found": "Il ne semble pas y avoir de contenu ici", "stickied_comment": "Commentaire épinglé", "posts_last_synced": "Dernières publications synchronisées {{dateAgo}}", - "community_settings": "Paramètres de la communauté" + "community_settings": "Paramètres de la communauté", + "moderation_tools": "Outils de modération" } \ No newline at end of file diff --git a/public/translations/he/default.json b/public/translations/he/default.json index 96995698..6a2648c8 100644 --- a/public/translations/he/default.json +++ b/public/translations/he/default.json @@ -186,5 +186,6 @@ "nothing_found": "נראה שאין כאן שום דבר", "stickied_comment": "תגובה מוצבת", "posts_last_synced": "פוסטים אחרונים שנסנכרנו {{dateAgo}}", - "community_settings": "הגדרות הקהילה" + "community_settings": "הגדרות הקהילה", + "moderation_tools": "כלי ניטור" } \ No newline at end of file diff --git a/public/translations/hi/default.json b/public/translations/hi/default.json index 21a38ad6..4b4db00c 100644 --- a/public/translations/hi/default.json +++ b/public/translations/hi/default.json @@ -186,5 +186,6 @@ "nothing_found": "ऐसा कुछ नहीं दिखता है कि यहां कुछ है", "stickied_comment": "पिन किया गया टिप्पणी", "posts_last_synced": "पोस्ट्स अंतिम बार {{dateAgo}} को सिंक की गईं", - "community_settings": "समुदाय सेटिंग्स" + "community_settings": "समुदाय सेटिंग्स", + "moderation_tools": "मॉडरेशन टूल्स" } \ No newline at end of file diff --git a/public/translations/hu/default.json b/public/translations/hu/default.json index b60e3b24..56b917ad 100644 --- a/public/translations/hu/default.json +++ b/public/translations/hu/default.json @@ -186,5 +186,6 @@ "nothing_found": "Úgy tűnik, nincs itt semmi", "stickied_comment": "Kitűzött hozzászólás", "posts_last_synced": "Legutóbb szinkronizált bejegyzések {{dateAgo}}", - "community_settings": "Közösségi beállítások" + "community_settings": "Közösségi beállítások", + "moderation_tools": "Moderációs eszközök" } \ No newline at end of file diff --git a/public/translations/id/default.json b/public/translations/id/default.json index 2be646cc..6d178fb9 100644 --- a/public/translations/id/default.json +++ b/public/translations/id/default.json @@ -186,5 +186,6 @@ "nothing_found": "Tidak ada yang tampaknya di sini", "stickied_comment": "Komentar yang Dipasang", "posts_last_synced": "Postingan yang terakhir disinkronkan {{dateAgo}}", - "community_settings": "Pengaturan Komunitas" + "community_settings": "Pengaturan Komunitas", + "moderation_tools": "Alat Moderasi" } \ No newline at end of file diff --git a/public/translations/it/default.json b/public/translations/it/default.json index f9cb90d9..9f80c44b 100644 --- a/public/translations/it/default.json +++ b/public/translations/it/default.json @@ -186,5 +186,6 @@ "nothing_found": "Sembra che qui non ci sia nulla", "stickied_comment": "Commento fissato", "posts_last_synced": "Post sincronizzati l'ultima volta {{dateAgo}}", - "community_settings": "Impostazioni della comunità" + "community_settings": "Impostazioni della comunità", + "moderation_tools": "Strumenti di moderazione" } \ No newline at end of file diff --git a/public/translations/ja/default.json b/public/translations/ja/default.json index a593d54f..2faab651 100644 --- a/public/translations/ja/default.json +++ b/public/translations/ja/default.json @@ -186,5 +186,6 @@ "nothing_found": "ここには何もないようです", "stickied_comment": "固定されたコメント", "posts_last_synced": "最後に同期された投稿 {{dateAgo}}", - "community_settings": "コミュニティの設定" + "community_settings": "コミュニティの設定", + "moderation_tools": "モデレーションツール" } \ No newline at end of file diff --git a/public/translations/ko/default.json b/public/translations/ko/default.json index 08a021d3..770c25ff 100644 --- a/public/translations/ko/default.json +++ b/public/translations/ko/default.json @@ -186,5 +186,6 @@ "nothing_found": "여기에는 아무것도 없는 것 같습니다", "stickied_comment": "고정된 댓글", "posts_last_synced": "마지막 동기화된 게시물 {{dateAgo}}", - "community_settings": "커뮤니티 설정" + "community_settings": "커뮤니티 설정", + "moderation_tools": "모더레이션 도구" } \ No newline at end of file diff --git a/public/translations/mr/default.json b/public/translations/mr/default.json index 31a62956..8b9f258b 100644 --- a/public/translations/mr/default.json +++ b/public/translations/mr/default.json @@ -186,5 +186,6 @@ "nothing_found": "काहीतरी दिसत नाही आहे", "stickied_comment": "टाळलेला टिप्पणी", "posts_last_synced": "शेवटी सिंक केलेले पोस्ट्स {{dateAgo}}", - "community_settings": "समुदाय सेटिंग्स" + "community_settings": "समुदाय सेटिंग्स", + "moderation_tools": "निरीक्षण साधने" } \ No newline at end of file diff --git a/public/translations/nl/default.json b/public/translations/nl/default.json index 60a127a1..6df4b6a0 100644 --- a/public/translations/nl/default.json +++ b/public/translations/nl/default.json @@ -186,5 +186,6 @@ "nothing_found": "Het lijkt erop dat hier niets is", "stickied_comment": "Vastgezette opmerking", "posts_last_synced": "Laatst gesynchroniseerde berichten {{dateAgo}}", - "community_settings": "Community-instellingen" + "community_settings": "Community-instellingen", + "moderation_tools": "Moderatiehulpmiddelen" } \ No newline at end of file diff --git a/public/translations/no/default.json b/public/translations/no/default.json index a69954c6..bb881306 100644 --- a/public/translations/no/default.json +++ b/public/translations/no/default.json @@ -186,5 +186,6 @@ "nothing_found": "Det ser ikke ut til å være noe her", "stickied_comment": "Festet kommentar", "posts_last_synced": "Innlegg sist synkronisert {{dateAgo}}", - "community_settings": "Fellesskapsinnstillinger" + "community_settings": "Fellesskapsinnstillinger", + "moderation_tools": "Moderasjonsverktøy" } \ No newline at end of file diff --git a/public/translations/pl/default.json b/public/translations/pl/default.json index 70372ac2..7c9a2b27 100644 --- a/public/translations/pl/default.json +++ b/public/translations/pl/default.json @@ -186,5 +186,6 @@ "nothing_found": "Nie wydaje się, że jest tu cokolwiek", "stickied_comment": "Przypięty komentarz", "posts_last_synced": "Ostatnio zsynchronizowane posty {{dateAgo}}", - "community_settings": "Ustawienia społeczności" + "community_settings": "Ustawienia społeczności", + "moderation_tools": "Narzędzia moderacji" } \ No newline at end of file diff --git a/public/translations/pt/default.json b/public/translations/pt/default.json index 23b04b65..b4dac936 100644 --- a/public/translations/pt/default.json +++ b/public/translations/pt/default.json @@ -186,5 +186,6 @@ "nothing_found": "Não parece haver nada aqui", "stickied_comment": "Comentário fixado", "posts_last_synced": "Últimas postagens sincronizadas {{dateAgo}}", - "community_settings": "Configurações da comunidade" + "community_settings": "Configurações da comunidade", + "moderation_tools": "Ferramentas de moderação" } \ No newline at end of file diff --git a/public/translations/ro/default.json b/public/translations/ro/default.json index 67ac9541..b780aaef 100644 --- a/public/translations/ro/default.json +++ b/public/translations/ro/default.json @@ -186,5 +186,6 @@ "nothing_found": "Nu pare să fie nimic aici", "stickied_comment": "Comentariu fixat", "posts_last_synced": "Ultimele postări sincronizate {{dateAgo}}", - "community_settings": "Setări ale comunității" + "community_settings": "Setări ale comunității", + "moderation_tools": "Instrumente de moderare" } \ No newline at end of file diff --git a/public/translations/ru/default.json b/public/translations/ru/default.json index 7a1e2f46..4548183f 100644 --- a/public/translations/ru/default.json +++ b/public/translations/ru/default.json @@ -186,5 +186,6 @@ "nothing_found": "Здесь, кажется, ничего нет", "stickied_comment": "Закрепленный комментарий", "posts_last_synced": "Последние синхронизированные посты {{dateAgo}}", - "community_settings": "Настройки сообщества" + "community_settings": "Настройки сообщества", + "moderation_tools": "Инструменты модерации" } \ No newline at end of file diff --git a/public/translations/sq/default.json b/public/translations/sq/default.json index 40caceeb..2e09f0d7 100644 --- a/public/translations/sq/default.json +++ b/public/translations/sq/default.json @@ -186,5 +186,6 @@ "nothing_found": "Nuk duket të ketë asgjë këtu", "stickied_comment": "Komenti i fiksuar", "posts_last_synced": "Postimet e fundit të sinkronizuara {{dateAgo}}", - "community_settings": "Cilësimet e komunitetit" + "community_settings": "Cilësimet e komunitetit", + "moderation_tools": "Mjete moderimi" } \ No newline at end of file diff --git a/public/translations/sv/default.json b/public/translations/sv/default.json index 0b1489c6..347b4157 100644 --- a/public/translations/sv/default.json +++ b/public/translations/sv/default.json @@ -186,5 +186,6 @@ "nothing_found": "Det verkar inte finnas något här", "stickied_comment": "Fast kommentar", "posts_last_synced": "Senast synkroniserade inlägg {{dateAgo}}", - "community_settings": "Samhällsinställningar" + "community_settings": "Samhällsinställningar", + "moderation_tools": "Modereringsverktyg" } \ No newline at end of file diff --git a/public/translations/te/default.json b/public/translations/te/default.json index 811d810b..7e291458 100644 --- a/public/translations/te/default.json +++ b/public/translations/te/default.json @@ -186,5 +186,6 @@ "nothing_found": "ఇక్కడ ఏమి ఉందని లేదని అనుకున్నట్లయిదేమీ లేదు", "stickied_comment": "పిన్ చేసిన వ్యాఖ్య", "posts_last_synced": "పోస్టులు చివరిలో సింక్ అయ్యాయి {{dateAgo}}", - "community_settings": "కమ్యూనిటీ సెట్టింగులు" + "community_settings": "కమ్యూనిటీ సెట్టింగులు", + "moderation_tools": "మాడరేషన్ సాధనాలు" } \ No newline at end of file diff --git a/public/translations/th/default.json b/public/translations/th/default.json index 4edac5bc..7e3ca212 100644 --- a/public/translations/th/default.json +++ b/public/translations/th/default.json @@ -186,5 +186,6 @@ "nothing_found": "ดูเหมือนว่าจะไม่มีอะไรที่นี่", "stickied_comment": "ความคิดเห็นที่ตรึง", "posts_last_synced": "โพสต์ล่าสุดที่ซิงค์ {{dateAgo}}", - "community_settings": "การตั้งค่าชุมชน" + "community_settings": "การตั้งค่าชุมชน", + "moderation_tools": "เครื่องมือการตรวจสอบ" } \ No newline at end of file diff --git a/public/translations/tr/default.json b/public/translations/tr/default.json index 03e174ba..f5cd1be9 100644 --- a/public/translations/tr/default.json +++ b/public/translations/tr/default.json @@ -186,5 +186,6 @@ "nothing_found": "Burada hiçbir şey görünmüyor gibi", "stickied_comment": "Sabitleyici Yorum", "posts_last_synced": "Son senkronize edilen gönderiler {{dateAgo}}", - "community_settings": "Topluluk Ayarları" + "community_settings": "Topluluk Ayarları", + "moderation_tools": "Moderasyon Araçları" } \ No newline at end of file diff --git a/public/translations/uk/default.json b/public/translations/uk/default.json index b4669d24..0411aafb 100644 --- a/public/translations/uk/default.json +++ b/public/translations/uk/default.json @@ -186,5 +186,6 @@ "nothing_found": "Тут, здається, нічого немає", "stickied_comment": "Закріплений коментар", "posts_last_synced": "Останні синхронізовані пости {{dateAgo}}", - "community_settings": "Налаштування спільноти" + "community_settings": "Налаштування спільноти", + "moderation_tools": "Інструменти модерації" } \ No newline at end of file diff --git a/public/translations/ur/default.json b/public/translations/ur/default.json index 27ee8635..ceeda717 100644 --- a/public/translations/ur/default.json +++ b/public/translations/ur/default.json @@ -186,5 +186,6 @@ "nothing_found": "یہاں کچھ بھی نظر نہیں آرہا", "stickied_comment": "پن کردہ تبصرہ", "posts_last_synced": "آخری مرتب سبقت کردہ پوسٹس {{dateAgo}}", - "community_settings": "کمیونٹی کی ترتیبات" + "community_settings": "کمیونٹی کی ترتیبات", + "moderation_tools": "موڈریشن ٹولز" } \ No newline at end of file diff --git a/public/translations/vi/default.json b/public/translations/vi/default.json index 61e28900..aefff4ab 100644 --- a/public/translations/vi/default.json +++ b/public/translations/vi/default.json @@ -186,5 +186,6 @@ "nothing_found": "Dường như không có gì ở đây", "stickied_comment": "Bình luận ghim", "posts_last_synced": "Bài viết gần nhất đã đồng bộ {{dateAgo}}", - "community_settings": "Cài đặt cộng đồng" + "community_settings": "Cài đặt cộng đồng", + "moderation_tools": "Công cụ kiểm duyệt" } \ No newline at end of file diff --git a/public/translations/zh/default.json b/public/translations/zh/default.json index cc335cc2..2984e0cd 100644 --- a/public/translations/zh/default.json +++ b/public/translations/zh/default.json @@ -186,5 +186,6 @@ "nothing_found": "这里似乎什么都没有", "stickied_comment": "置顶评论", "posts_last_synced": "最后同步的帖子 {{dateAgo}}", - "community_settings": "社区设置" + "community_settings": "社区设置", + "moderation_tools": "管理工具" } \ No newline at end of file diff --git a/src/components/header/header.tsx b/src/components/header/header.tsx index 74e555b6..1bf589a6 100644 --- a/src/components/header/header.tsx +++ b/src/components/header/header.tsx @@ -293,7 +293,7 @@ const HeaderTitle = ({ title, shortAddress }: { title: string; shortAddress: str } else if (isInSubplebbitSettingsView) { return ( <> - {subplebbitTitle}: <span className={styles.lowercase}>{t('settings')}</span> + {subplebbitTitle}: <span className={styles.lowercase}>{t('community_settings')}</span> </> ); } else if (isInSubmitView) { diff --git a/src/components/sidebar/sidebar.tsx b/src/components/sidebar/sidebar.tsx index 4ea1d18b..9493ea89 100644 --- a/src/components/sidebar/sidebar.tsx +++ b/src/components/sidebar/sidebar.tsx @@ -81,7 +81,7 @@ const ModerationTools = ({ address }: sidebarProps) => { return ( <div className={styles.list}> - <div className={styles.listTitle}>moderation tools</div> + <div className={styles.listTitle}>{t('moderation_tools')}</div> <ul className={`${styles.listContent} ${styles.modsList}`}> <li className={`${styles.moderationTool} ${isInSubplebbitSettingsView ? styles.selectedTool : ''}`}> <Link className={styles.communitySettingsTool} to={`/p/${address}/settings`}> From 14fde3833a1be67b4db232e682848c172e40ea3f Mon Sep 17 00:00:00 2001 From: "plebeius.eth" <mottoes_recap0u@icloud.com> Date: Fri, 12 Jan 2024 21:36:47 +0100 Subject: [PATCH 05/14] fix(account settings): prevent deleting last account, reload page when changing active account --- src/views/settings/account-settings/account-settings.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/views/settings/account-settings/account-settings.tsx b/src/views/settings/account-settings/account-settings.tsx index 126b21fc..b398c02b 100644 --- a/src/views/settings/account-settings/account-settings.tsx +++ b/src/views/settings/account-settings/account-settings.tsx @@ -31,6 +31,7 @@ const AccountSettings = () => { const lastAccount = accounts[accounts.length - 1]; setActiveAccount(lastAccount.name); setSwitchToLastAccount(false); + window.location.reload(); } }, [accounts, switchToLastAccount]); @@ -49,7 +50,10 @@ const AccountSettings = () => { }; const _deleteAccount = (accountName: string) => { - if (!accountName) { + if (accounts.length === 1) { + alert('You cannot delete your last account. Please create a new one.'); + return; + } else if (!accountName) { return; } else if (window.confirm(`Are you sure you want to delete ${accountName}?`)) { deleteAccount(accountName); From bccc3e17678f94cd795507714de55546e7330334 Mon Sep 17 00:00:00 2001 From: "plebeius.eth" <mottoes_recap0u@icloud.com> Date: Sat, 13 Jan 2024 11:48:26 +0100 Subject: [PATCH 06/14] style(subplebbits): adjust mobile word wrap, margin --- src/components/header/header.module.css | 2 +- .../subscribe-button.module.css | 2 - src/views/subplebbits/subplebbits.module.css | 72 +++++++++---------- src/views/subplebbits/subplebbits.tsx | 20 +++--- 4 files changed, 46 insertions(+), 50 deletions(-) diff --git a/src/components/header/header.module.css b/src/components/header/header.module.css index d1c6a300..4a5b0a55 100644 --- a/src/components/header/header.module.css +++ b/src/components/header/header.module.css @@ -174,7 +174,7 @@ .joinButton { order: 3; - margin-bottom: -4px; + margin-bottom: 3px; } } diff --git a/src/components/subscribe-button/subscribe-button.module.css b/src/components/subscribe-button/subscribe-button.module.css index fa34b6b4..d221f6b7 100644 --- a/src/components/subscribe-button/subscribe-button.module.css +++ b/src/components/subscribe-button/subscribe-button.module.css @@ -1,6 +1,4 @@ .subscribeButton { - display: inline-block; - margin: 0 5px 5px 0; background-repeat: repeat; border: 1px solid #444; padding: 1px 6px; diff --git a/src/views/subplebbits/subplebbits.module.css b/src/views/subplebbits/subplebbits.module.css index ec9edf99..52645b40 100644 --- a/src/views/subplebbits/subplebbits.module.css +++ b/src/views/subplebbits/subplebbits.module.css @@ -1,39 +1,12 @@ -@media (max-width: 768px) { - .content { - padding: 7px 0px 20px 0px; - } - - .sidebar { - display: none; - } - - .infobar { - margin: 0px 5px; - } - - .subplebbit { - padding-right: 5px; - } -} - -@media (min-width: 768px) { - .content { - padding: 7px 5px 0px 5px; - } - - .stateString, .infobar { - max-width: calc(100% - 327px); - } -} - .infobar { background-color: var(--background-orange); border-color: var(--border-orange); border-style: solid; border-width: 1px; font-size: small; - margin: 3px 0px; - padding: 6px 10px; + margin: 5px 0px; + padding: 5px 10px; + margin-top: 0px; color: var(--text); word-wrap: break-word; font-size: 14px; @@ -106,7 +79,7 @@ display: inline-flex; height: 13px; width: 13px; - margin: 3px 5px -2px 2px; + margin: 0 5px -3px 0; } .online { @@ -119,10 +92,7 @@ .title { display: inline-flex; - flex-wrap: wrap; - align-items: center; font-size: medium; - overflow: hidden; unicode-bidi: isolate; margin-bottom: -2px; } @@ -138,10 +108,6 @@ color: var(--link-visited); } */ -.subscribeButton { - margin-top: 2px; -} - .description { max-width: 60em; unicode-bidi: isolate; @@ -205,4 +171,32 @@ .selected { color: var(--green) !important; font-weight: bold; -} \ No newline at end of file +} + +@media (max-width: 768px) { + .content { + padding: 7px 0px 20px 0px; + } + + .sidebar { + display: none; + } + + .infobar { + margin: 5px 5px; + } + + .subplebbit { + padding-right: 5px; + } +} + +@media (min-width: 768px) { + .content { + padding: 7px 5px 0px 5px; + } + + .stateString, .infobar { + max-width: calc(100% - 327px); + } +} diff --git a/src/views/subplebbits/subplebbits.tsx b/src/views/subplebbits/subplebbits.tsx index 80f7fdac..5ca356a3 100644 --- a/src/views/subplebbits/subplebbits.tsx +++ b/src/views/subplebbits/subplebbits.tsx @@ -111,14 +111,18 @@ const Subplebbit = ({ subplebbit }: SubplebbitProps) => { </div> <div className={styles.entry}> <div className={styles.title}> - <span className={`${styles.onlineIndicator} ${isOnline ? styles.online : styles.offline}`} /> - <Link to={`/p/${address}`}> - p/{address?.includes('.') ? address : shortAddress} - {title && `: ${title}`} - </Link> - <span className={styles.subscribeButton}> - <SubscribeButton address={address} /> - </span> + <div className={styles.onlineIndicatorWrapper}> + <span className={`${styles.onlineIndicator} ${isOnline ? styles.online : styles.offline}`} /> + </div> + <div className={styles.titleWrapper}> + <Link to={`/p/${address}`}> + p/{address?.includes('.') ? address : shortAddress} + {title && `: ${title}`} + </Link> + <span className={styles.subscribeButton}> + <SubscribeButton address={address} /> + </span> + </div> </div> {description && <div className={styles.description}>{description}</div>} <div className={styles.tagline}> From 9ed7c420883eb52add96c6ee2387a9d0f59e9621 Mon Sep 17 00:00:00 2001 From: "plebeius.eth" <mottoes_recap0u@icloud.com> Date: Sat, 13 Jan 2024 12:06:25 +0100 Subject: [PATCH 07/14] feat(submit): suggest random communities when subscriptions are zero --- src/lib/utils/addresses-utils.ts | 5 +++++ src/views/submit/submit.tsx | 5 +++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/lib/utils/addresses-utils.ts b/src/lib/utils/addresses-utils.ts index 1de74caf..eb8176f8 100644 --- a/src/lib/utils/addresses-utils.ts +++ b/src/lib/utils/addresses-utils.ts @@ -15,6 +15,11 @@ export interface SubplebbitWithDisplay extends Subplebbit { displayAddress: string; } +export const getRandomSubplebbits = (addresses: string[], count: number) => { + let shuffled = addresses.sort(() => 0.5 - Math.random()); + return shuffled.slice(0, count); +}; + export const useDefaultSubplebbitAddresses = () => { const defaultSubplebbits = useDefaultSubplebbits(); return useMemo(() => defaultSubplebbits.map((subplebbit: Subplebbit) => subplebbit.address), [defaultSubplebbits]); diff --git a/src/views/submit/submit.tsx b/src/views/submit/submit.tsx index d763cb97..db7e222c 100644 --- a/src/views/submit/submit.tsx +++ b/src/views/submit/submit.tsx @@ -8,7 +8,7 @@ import { alertChallengeVerificationFailed } from '../../lib/utils/challenge-util import { isValidURL } from '../../lib/utils/url-utils'; import styles from './submit.module.css'; import challengesStore from '../../hooks/use-challenges'; -import { useDefaultSubplebbitAddresses } from '../../lib/utils/addresses-utils'; +import { getRandomSubplebbits, useDefaultSubplebbitAddresses } from '../../lib/utils/addresses-utils'; type SubmitState = { subplebbitAddress: string | undefined; @@ -117,9 +117,10 @@ const Submit = () => { const subsDescription = <div className={styles.subsDescription}>{subscriptions?.length > 0 ? t('submit_subscriptions') : t('submit_subscriptions_notice')}</div>; + const listSource = subscriptions?.length > 0 ? subscriptions : getRandomSubplebbits(defaultSubplebbitAddresses, 10); const subscriptionsList = ( <div className={styles.subs}> - {subscriptions?.map((sub: string) => ( + {listSource.map((sub: string) => ( <span key={sub} className={styles.sub} From 11a521896943bff7531999f776b0ff83a93b797f Mon Sep 17 00:00:00 2001 From: "plebeius.eth" <mottoes_recap0u@icloud.com> Date: Sat, 13 Jan 2024 12:12:45 +0100 Subject: [PATCH 08/14] style(sidebar): update join button positioning --- src/components/sidebar/sidebar.module.css | 6 +++++- src/components/sidebar/sidebar.tsx | 4 +++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/components/sidebar/sidebar.module.css b/src/components/sidebar/sidebar.module.css index 91f9bafe..0dc0f40b 100644 --- a/src/components/sidebar/sidebar.module.css +++ b/src/components/sidebar/sidebar.module.css @@ -32,12 +32,16 @@ a { margin-top: 5px; } +.subscribeButton { + margin-right: 5px; +} + .onlineIndicator { background-repeat: no-repeat; display: inline-block; height: 13px; width: 13px; - margin: 0 7px -2px 2px; + margin: 7px 7px -2px 2px; } .online { diff --git a/src/components/sidebar/sidebar.tsx b/src/components/sidebar/sidebar.tsx index 9493ea89..3e360d38 100644 --- a/src/components/sidebar/sidebar.tsx +++ b/src/components/sidebar/sidebar.tsx @@ -160,7 +160,9 @@ const Sidebar = ({ address, cid, createdAt, description, downvoteCount = 0, role {address} </Link> <div className={styles.subscribeContainer}> - <SubscribeButton address={address} /> + <span className={styles.subscribeButton}> + <SubscribeButton address={address} /> + </span> <span className={styles.subscribers}>{t('members_count', { count: allActiveUserCount })}</span> </div> <div className={styles.onlineLine}> From 2449b5b2eadf288959fdb058e928d4a3b53d1d38 Mon Sep 17 00:00:00 2001 From: "plebeius.eth" <mottoes_recap0u@icloud.com> Date: Sat, 13 Jan 2024 14:46:29 +0100 Subject: [PATCH 09/14] style: adjust margin on mobile --- .../subplebbit-settings.module.css | 29 +++++++++---------- src/views/subplebbits/subplebbits.module.css | 19 +++++++----- 2 files changed, 24 insertions(+), 24 deletions(-) diff --git a/src/views/subplebbit/subplebbit-settings/subplebbit-settings.module.css b/src/views/subplebbit/subplebbit-settings/subplebbit-settings.module.css index 7353a02c..2d491eae 100644 --- a/src/views/subplebbit/subplebbit-settings/subplebbit-settings.module.css +++ b/src/views/subplebbit/subplebbit-settings/subplebbit-settings.module.css @@ -1,19 +1,3 @@ -@media (max-width: 768px) { - .content { - padding: 7px 0px 0px 0px; - } - - .sidebar { - display: none; - } -} - -@media (min-width: 768px) { - .content { - padding: 7px 5px 0px 5px; - } -} - .content { color: var(--text); } @@ -173,6 +157,13 @@ } @media (max-width: 768px) { + .content { + padding: 7px 0px 0px 0px; + } + + .sidebar { + display: none; + } .box { width: 100%; box-sizing: border-box; @@ -182,4 +173,10 @@ width: calc(100% - 104px); box-sizing: border-box; } +} + +@media (min-width: 768px) { + .content { + padding: 7px 5px 0px 5px; + } } \ No newline at end of file diff --git a/src/views/subplebbits/subplebbits.module.css b/src/views/subplebbits/subplebbits.module.css index 52645b40..61874305 100644 --- a/src/views/subplebbits/subplebbits.module.css +++ b/src/views/subplebbits/subplebbits.module.css @@ -4,9 +4,8 @@ border-style: solid; border-width: 1px; font-size: small; - margin: 5px 0px; - padding: 5px 10px; - margin-top: 0px; + margin: 0px 5px 5px 0px; + padding: 6px 10px 6px 10px; color: var(--text); word-wrap: break-word; font-size: 14px; @@ -145,9 +144,9 @@ border-bottom: 1px dotted gray; padding: 5px 10px; margin-left: 5px; + margin-bottom: 5px; overflow: hidden; font-size: larger; - display: inline-block; margin-right: 15px; text-transform: lowercase; } @@ -182,13 +181,17 @@ display: none; } - .infobar { - margin: 5px 5px; - } - .subplebbit { padding-right: 5px; } + + .infobar { + margin-left: 5px; + } + + .subplebbitsTabs { + margin-right: 5px; + } } @media (min-width: 768px) { From ae9918c340ef3440b987ac0121f51214e6fb2aa3 Mon Sep 17 00:00:00 2001 From: "plebeius.eth" <mottoes_recap0u@icloud.com> Date: Sat, 13 Jan 2024 15:57:55 +0100 Subject: [PATCH 10/14] style(subplebbits): adjust margin --- .../subplebbit-settings/subplebbit-settings.module.css | 8 ++++++-- src/views/subplebbits/subplebbits.tsx | 3 +-- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/src/views/subplebbit/subplebbit-settings/subplebbit-settings.module.css b/src/views/subplebbit/subplebbit-settings/subplebbit-settings.module.css index 2d491eae..157c4508 100644 --- a/src/views/subplebbit/subplebbit-settings/subplebbit-settings.module.css +++ b/src/views/subplebbit/subplebbit-settings/subplebbit-settings.module.css @@ -74,8 +74,8 @@ border-style: solid; border-width: 1px; font-size: small; - margin-bottom: 5px; - padding: 6px 10px; + margin: 0px 5px 5px 0px; + padding: 6px 10px 6px 10px; color: var(--text); word-wrap: break-word; font-size: 14px; @@ -179,4 +179,8 @@ .content { padding: 7px 5px 0px 5px; } + + .infobar { + max-width: calc(100% - 327px); + } } \ No newline at end of file diff --git a/src/views/subplebbits/subplebbits.tsx b/src/views/subplebbits/subplebbits.tsx index 5ca356a3..4a5e6e83 100644 --- a/src/views/subplebbits/subplebbits.tsx +++ b/src/views/subplebbits/subplebbits.tsx @@ -173,10 +173,9 @@ const Subplebbits = () => { return ( <div className={styles.content}> - <div className={`${styles.sidebar}`}> + <div className={styles.sidebar}> <Sidebar /> </div> - {(isInSubplebbitsMineView || isInSubplebbitsMineModeratorView || isInSubplebbitsMineSubscriberView) && <Tabs />} <Infobar /> {isInSubplebbitsView && <ApprovedSubplebbits />} From c56b944e99b55941f1d4bd4785c80dde03b37f48 Mon Sep 17 00:00:00 2001 From: "plebeius.eth" <mottoes_recap0u@icloud.com> Date: Sat, 13 Jan 2024 16:14:40 +0100 Subject: [PATCH 11/14] fix(submit): show suggested communities if subs are less than 5, update translation, fix state --- public/translations/ar/default.json | 2 +- public/translations/bn/default.json | 2 +- public/translations/cs/default.json | 2 +- public/translations/da/default.json | 2 +- public/translations/de/default.json | 2 +- public/translations/el/default.json | 2 +- public/translations/en/default.json | 2 +- public/translations/es/default.json | 2 +- public/translations/fa/default.json | 2 +- public/translations/fi/default.json | 2 +- public/translations/fil/default.json | 2 +- public/translations/fr/default.json | 2 +- public/translations/he/default.json | 2 +- public/translations/hi/default.json | 2 +- public/translations/hu/default.json | 2 +- public/translations/id/default.json | 2 +- public/translations/it/default.json | 2 +- public/translations/ja/default.json | 2 +- public/translations/ko/default.json | 2 +- public/translations/mr/default.json | 2 +- public/translations/nl/default.json | 2 +- public/translations/no/default.json | 2 +- public/translations/pl/default.json | 2 +- public/translations/pt/default.json | 2 +- public/translations/ro/default.json | 2 +- public/translations/ru/default.json | 2 +- public/translations/sq/default.json | 2 +- public/translations/sv/default.json | 2 +- public/translations/te/default.json | 2 +- public/translations/th/default.json | 2 +- public/translations/tr/default.json | 2 +- public/translations/uk/default.json | 2 +- public/translations/ur/default.json | 2 +- public/translations/vi/default.json | 2 +- public/translations/zh/default.json | 2 +- src/views/submit/submit.tsx | 10 ++++++++-- 36 files changed, 43 insertions(+), 37 deletions(-) diff --git a/public/translations/ar/default.json b/public/translations/ar/default.json index 1a030ef9..4b4ef5b8 100644 --- a/public/translations/ar/default.json +++ b/public/translations/ar/default.json @@ -69,7 +69,7 @@ "loading": "تحميل", "pending": "قيد الانتظار", "or": "أو", - "submit_subscriptions_notice": "اشترك في مجتمع للوصول إليه بسرعة", + "submit_subscriptions_notice": "المجتمعات المقترحة", "submit_subscriptions": "مجتمعاتك المشتركة", "rules_for": "قواعد لـ", "no_communities_found": "لا توجد مجتمعات على <1>https://github.com/plebbit/temporary-default-subplebbits</1>", diff --git a/public/translations/bn/default.json b/public/translations/bn/default.json index 4d971dd4..3c76fc8a 100644 --- a/public/translations/bn/default.json +++ b/public/translations/bn/default.json @@ -69,7 +69,7 @@ "loading": "লোড হচ্ছে", "pending": "মুলতুবি", "or": "অথবা", - "submit_subscriptions_notice": "দ্রুত অ্যাক্সেসের জন্য কোনো কমিউনিটিতে সাবস্ক্রাইব করুন", + "submit_subscriptions_notice": "প্রস্তাবিত কমিউনিটিগুলি", "submit_subscriptions": "আপনার সাবস্ক্রাইব করা কমিউনিটিগুলি", "rules_for": "এর নিয়মাবলী", "no_communities_found": "<1>https://github.com/plebbit/temporary-default-subplebbits</1> এ কোনো সম্প্রদায় পাওয়া যায়নি", diff --git a/public/translations/cs/default.json b/public/translations/cs/default.json index a88aefd4..fdcaf2f9 100644 --- a/public/translations/cs/default.json +++ b/public/translations/cs/default.json @@ -69,7 +69,7 @@ "loading": "Načítání", "pending": "Čeká na schválení", "or": "nebo", - "submit_subscriptions_notice": "Přihlaste se k odběru komunity pro rychlý přístup", + "submit_subscriptions_notice": "Navrhované komunity", "submit_subscriptions": "vaše odběratelské komunity", "rules_for": "pravidla pro", "no_communities_found": "Na <1>https://github.com/plebbit/temporary-default-subplebbits</1> nebyly nalezeny žádné komunity", diff --git a/public/translations/da/default.json b/public/translations/da/default.json index 6f211256..ea6748b8 100644 --- a/public/translations/da/default.json +++ b/public/translations/da/default.json @@ -69,7 +69,7 @@ "loading": "Indlæser", "pending": "Afventer", "or": "eller", - "submit_subscriptions_notice": "Abonner på et fællesskab for hurtigt at få adgang", + "submit_subscriptions_notice": "Foreslåede fællesskaber", "submit_subscriptions": "dine abonnerede fællesskaber", "rules_for": "regler for", "no_communities_found": "Ingen samfund fundet på <1>https://github.com/plebbit/temporary-default-subplebbits</1>", diff --git a/public/translations/de/default.json b/public/translations/de/default.json index 242de964..6fdbe811 100644 --- a/public/translations/de/default.json +++ b/public/translations/de/default.json @@ -69,7 +69,7 @@ "loading": "Laden", "pending": "Ausstehend", "or": "oder", - "submit_subscriptions_notice": "Abonnieren Sie eine Gemeinschaft, um schnell darauf zuzugreifen", + "submit_subscriptions_notice": "Vorgeschlagene Communitys", "submit_subscriptions": "Ihre abonnierten Gemeinschaften", "rules_for": "Regeln für", "no_communities_found": "Keine Gemeinschaften gefunden auf <1>https://github.com/plebbit/temporary-default-subplebbits</1>", diff --git a/public/translations/el/default.json b/public/translations/el/default.json index be877ab3..0d77c21d 100644 --- a/public/translations/el/default.json +++ b/public/translations/el/default.json @@ -69,7 +69,7 @@ "loading": "Φόρτωση", "pending": "Εκκρεμεί", "or": "ή", - "submit_subscriptions_notice": "Εγγραφείτε σε μια κοινότητα για γρήγορη πρόσβαση", + "submit_subscriptions_notice": "Προτεινόμενες κοινότητες", "submit_subscriptions": "οι κοινότητες στις οποίες έχετε συνδρομή", "rules_for": "κανόνες για", "no_communities_found": "Δεν βρέθηκαν κοινότητες στο <1>https://github.com/plebbit/temporary-default-subplebbits</1>", diff --git a/public/translations/en/default.json b/public/translations/en/default.json index c76f98e5..28436345 100644 --- a/public/translations/en/default.json +++ b/public/translations/en/default.json @@ -69,7 +69,7 @@ "loading": "Loading", "pending": "Pending", "or": "or", - "submit_subscriptions_notice": "Subscribe to a community to quickly access it", + "submit_subscriptions_notice": "Suggested Communities", "submit_subscriptions": "your subscribed communities", "rules_for": "rules for", "no_communities_found": "No communities found on <1>https://github.com/plebbit/temporary-default-subplebbits</1>", diff --git a/public/translations/es/default.json b/public/translations/es/default.json index db4e30a6..1ec628fe 100644 --- a/public/translations/es/default.json +++ b/public/translations/es/default.json @@ -69,7 +69,7 @@ "loading": "Cargando", "pending": "Pendiente", "or": "o", - "submit_subscriptions_notice": "Suscríbete a una comunidad para acceder rápidamente", + "submit_subscriptions_notice": "Comunidades sugeridas", "submit_subscriptions": "tus comunidades suscritas", "rules_for": "reglas para", "no_communities_found": "No se encontraron comunidades en <1>https://github.com/plebbit/temporary-default-subplebbits</1>", diff --git a/public/translations/fa/default.json b/public/translations/fa/default.json index 416d4d7e..63058650 100644 --- a/public/translations/fa/default.json +++ b/public/translations/fa/default.json @@ -69,7 +69,7 @@ "loading": "بارگذاری", "pending": "در انتظار تایید", "or": "یا", - "submit_subscriptions_notice": "برای دسترسی سریع به یک جامعه مشترک شوید", + "submit_subscriptions_notice": "جوامع پیشنهادی", "submit_subscriptions": "جوامع مشترک شده شما", "rules_for": "قوانین برای", "no_communities_found": "هیچ انجمنی در <1>https://github.com/plebbit/temporary-default-subplebbits</1> یافت نشد", diff --git a/public/translations/fi/default.json b/public/translations/fi/default.json index 9cf50198..79709e13 100644 --- a/public/translations/fi/default.json +++ b/public/translations/fi/default.json @@ -69,7 +69,7 @@ "loading": "Ladataan", "pending": "Odottaa hyväksyntää", "or": "tai", - "submit_subscriptions_notice": "Tilaa yhteisö nopeaan pääsyyn", + "submit_subscriptions_notice": "Ehdotetut yhteisöt", "submit_subscriptions": "tilaamasi yhteisöt", "rules_for": "säännöt", "no_communities_found": "Yhteisöjä ei löytynyt osoitteesta <1>https://github.com/plebbit/temporary-default-subplebbits</1>", diff --git a/public/translations/fil/default.json b/public/translations/fil/default.json index 65932c69..90ba49c3 100644 --- a/public/translations/fil/default.json +++ b/public/translations/fil/default.json @@ -69,7 +69,7 @@ "loading": "Naglo-load", "pending": "Nakabinbin", "or": "o", - "submit_subscriptions_notice": "Mag-subscribe sa isang komunidad para mabilis na ma-access ito", + "submit_subscriptions_notice": "Mga Inirerekomendang Komunidad", "submit_subscriptions": "iyong mga sinubskribang komunidad", "rules_for": "mga patakaran para sa", "no_communities_found": "Walang natagpuang mga komunidad sa <1>https://github.com/plebbit/temporary-default-subplebbits</1>", diff --git a/public/translations/fr/default.json b/public/translations/fr/default.json index 34b3ab06..9ed38b67 100644 --- a/public/translations/fr/default.json +++ b/public/translations/fr/default.json @@ -69,7 +69,7 @@ "loading": "Chargement", "pending": "En attente", "or": "ou", - "submit_subscriptions_notice": "Abonnez-vous à une communauté pour y accéder rapidement", + "submit_subscriptions_notice": "Communautés suggérées", "submit_subscriptions": "vos communautés abonnées", "rules_for": "règles pour", "no_communities_found": "Aucune communauté trouvée sur <1>https://github.com/plebbit/temporary-default-subplebbits</1>", diff --git a/public/translations/he/default.json b/public/translations/he/default.json index 6a2648c8..4b0bc2b4 100644 --- a/public/translations/he/default.json +++ b/public/translations/he/default.json @@ -69,7 +69,7 @@ "loading": "טוען", "pending": "ממתין לאישור", "or": "או", - "submit_subscriptions_notice": "הירשם לקהילה כדי לגשת אליה במהירות", + "submit_subscriptions_notice": "קהילות מומלצות", "submit_subscriptions": "הקהילות שאתה מנוי עליהן", "rules_for": "כללים עבור", "no_communities_found": "לא נמצאו קהילות ב-<1>https://github.com/plebbit/temporary-default-subplebbits</1>", diff --git a/public/translations/hi/default.json b/public/translations/hi/default.json index 4b4db00c..ed84f8a4 100644 --- a/public/translations/hi/default.json +++ b/public/translations/hi/default.json @@ -69,7 +69,7 @@ "loading": "लोड हो रहा है", "pending": "लंबित", "or": "या", - "submit_subscriptions_notice": "इसे जल्दी से एक्सेस करने के लिए किसी समुदाय की सदस्यता लें", + "submit_subscriptions_notice": "सुझाई गई कम्युनिटीज़", "submit_subscriptions": "आपके सब्सक्राइब किए गए समुदाय", "rules_for": "के लिए नियम", "no_communities_found": "<1>https://github.com/plebbit/temporary-default-subplebbits</1> पर कोई समुदाय नहीं मिला", diff --git a/public/translations/hu/default.json b/public/translations/hu/default.json index 56b917ad..c58dc9df 100644 --- a/public/translations/hu/default.json +++ b/public/translations/hu/default.json @@ -69,7 +69,7 @@ "loading": "Betöltés", "pending": "Függőben", "or": "vagy", - "submit_subscriptions_notice": "Iratkozzon fel egy közösségre a gyors hozzáférés érdekében", + "submit_subscriptions_notice": "Ajánlott közösségek", "submit_subscriptions": "az Ön által feliratkozott közösségek", "rules_for": "szabályok a", "no_communities_found": "Nem található közösségek a <1>https://github.com/plebbit/temporary-default-subplebbits</1>-en", diff --git a/public/translations/id/default.json b/public/translations/id/default.json index 6d178fb9..9f541687 100644 --- a/public/translations/id/default.json +++ b/public/translations/id/default.json @@ -69,7 +69,7 @@ "loading": "Memuat", "pending": "Tertunda", "or": "atau", - "submit_subscriptions_notice": "Berlangganan komunitas untuk mengaksesnya dengan cepat", + "submit_subscriptions_notice": "Komunitas yang Disarankan", "submit_subscriptions": "komunitas yang Anda langgani", "rules_for": "aturan untuk", "no_communities_found": "Tidak ada komunitas yang ditemukan di <1>https://github.com/plebbit/temporary-default-subplebbits</1>", diff --git a/public/translations/it/default.json b/public/translations/it/default.json index 9f80c44b..d7ef01c8 100644 --- a/public/translations/it/default.json +++ b/public/translations/it/default.json @@ -69,7 +69,7 @@ "loading": "Caricamento", "pending": "In attesa", "or": "o", - "submit_subscriptions_notice": "Iscriviti a una comunità per accedervi rapidamente", + "submit_subscriptions_notice": "Comunità consigliate", "submit_subscriptions": "le tue comunità sottoscritte", "rules_for": "regole per", "no_communities_found": "nessuna comunità trovata su <1>https://github.com/plebbit/temporary-default-subplebbits</1>", diff --git a/public/translations/ja/default.json b/public/translations/ja/default.json index 2faab651..8b8d8594 100644 --- a/public/translations/ja/default.json +++ b/public/translations/ja/default.json @@ -69,7 +69,7 @@ "loading": "読み込み中", "pending": "保留中", "or": "または", - "submit_subscriptions_notice": "コミュニティにサブスクライブしてすばやくアクセス", + "submit_subscriptions_notice": "おすすめコミュニティ", "submit_subscriptions": "購読しているコミュニティ", "rules_for": "のルール", "no_communities_found": "<1>https://github.com/plebbit/temporary-default-subplebbits</1>にコミュニティは見つかりませんでした", diff --git a/public/translations/ko/default.json b/public/translations/ko/default.json index 770c25ff..82a114b3 100644 --- a/public/translations/ko/default.json +++ b/public/translations/ko/default.json @@ -69,7 +69,7 @@ "loading": "로딩 중", "pending": "승인 대기 중", "or": "또는", - "submit_subscriptions_notice": "빠르게 접근하기 위해 커뮤니티에 구독하세요", + "submit_subscriptions_notice": "추천 커뮤니티", "submit_subscriptions": "구독한 커뮤니티", "rules_for": "규칙", "no_communities_found": "<1>https://github.com/plebbit/temporary-default-subplebbits</1>에 커뮤니티를 찾을 수 없습니다", diff --git a/public/translations/mr/default.json b/public/translations/mr/default.json index 8b9f258b..5d6c654d 100644 --- a/public/translations/mr/default.json +++ b/public/translations/mr/default.json @@ -69,7 +69,7 @@ "loading": "लोड करीत आहे", "pending": "प्रलंबित", "or": "किंवा", - "submit_subscriptions_notice": "लवकर प्रवेश करण्यासाठी समुदायाला सदस्यता घ्या", + "submit_subscriptions_notice": "सुचविलेले संघटने", "submit_subscriptions": "आपण सदस्यता घेतलेली समुदाय", "rules_for": "साठीचे नियम", "no_communities_found": "<1>https://github.com/plebbit/temporary-default-subplebbits</1> वर कोणत्याही समुदायाचा शोध लागलेला नाही", diff --git a/public/translations/nl/default.json b/public/translations/nl/default.json index 6df4b6a0..42cf76fe 100644 --- a/public/translations/nl/default.json +++ b/public/translations/nl/default.json @@ -69,7 +69,7 @@ "loading": "Laden", "pending": "In afwachting", "or": "of", - "submit_subscriptions_notice": "Abonneer op een gemeenschap voor snelle toegang", + "submit_subscriptions_notice": "Aanbevolen gemeenschappen", "submit_subscriptions": "uw geabonneerde gemeenschappen", "rules_for": "regels voor", "no_communities_found": "Geen gemeenschappen gevonden op <1>https://github.com/plebbit/temporary-default-subplebbits</1>", diff --git a/public/translations/no/default.json b/public/translations/no/default.json index bb881306..0bb61712 100644 --- a/public/translations/no/default.json +++ b/public/translations/no/default.json @@ -69,7 +69,7 @@ "loading": "Laster", "pending": "Venter på godkjenning", "or": "eller", - "submit_subscriptions_notice": "Abonner på et samfunn for rask tilgang", + "submit_subscriptions_notice": "Anbefalte fellesskap", "submit_subscriptions": "dine abonnerte samfunn", "rules_for": "regler for", "no_communities_found": "Ingen samfunn funnet på <1>https://github.com/plebbit/temporary-default-subplebbits</1>", diff --git a/public/translations/pl/default.json b/public/translations/pl/default.json index 7c9a2b27..798c55e0 100644 --- a/public/translations/pl/default.json +++ b/public/translations/pl/default.json @@ -69,7 +69,7 @@ "loading": "Ładowanie", "pending": "Oczekujące", "or": "lub", - "submit_subscriptions_notice": "Zasubskrybuj społeczność, aby szybko uzyskać dostęp", + "submit_subscriptions_notice": "Polecane społeczności", "submit_subscriptions": "twoje subskrybowane społeczności", "rules_for": "zasady dla", "no_communities_found": "Nie znaleziono społeczności na <1>https://github.com/plebbit/temporary-default-subplebbits</1>", diff --git a/public/translations/pt/default.json b/public/translations/pt/default.json index b4dac936..0063530c 100644 --- a/public/translations/pt/default.json +++ b/public/translations/pt/default.json @@ -69,7 +69,7 @@ "loading": "Carregando", "pending": "Pendente", "or": "ou", - "submit_subscriptions_notice": "Inscreva-se em uma comunidade para acessá-la rapidamente", + "submit_subscriptions_notice": "Comunidades sugeridas", "submit_subscriptions": "suas comunidades inscritas", "rules_for": "regras para", "no_communities_found": "Nenhuma comunidade encontrada em <1>https://github.com/plebbit/temporary-default-subplebbits</1>", diff --git a/public/translations/ro/default.json b/public/translations/ro/default.json index b780aaef..2cbf253a 100644 --- a/public/translations/ro/default.json +++ b/public/translations/ro/default.json @@ -69,7 +69,7 @@ "loading": "Se încarcă", "pending": "În așteptare", "or": "sau", - "submit_subscriptions_notice": "Abonează-te la o comunitate pentru acces rapid", + "submit_subscriptions_notice": "Comunități recomandate", "submit_subscriptions": "comunitățile dvs. abonate", "rules_for": "reguli pentru", "no_communities_found": "Nicio comunitate găsită pe <1>https://github.com/plebbit/temporary-default-subplebbits</1>", diff --git a/public/translations/ru/default.json b/public/translations/ru/default.json index 4548183f..e52b0bdc 100644 --- a/public/translations/ru/default.json +++ b/public/translations/ru/default.json @@ -69,7 +69,7 @@ "loading": "Загрузка", "pending": "В ожидании", "or": "или", - "submit_subscriptions_notice": "Подпишитесь на сообщество для быстрого доступа", + "submit_subscriptions_notice": "Рекомендуемые сообщества", "submit_subscriptions": "ваши подписанные сообщества", "rules_for": "правила для", "no_communities_found": "Сообщества не найдены на <1>https://github.com/plebbit/temporary-default-subplebbits</1>", diff --git a/public/translations/sq/default.json b/public/translations/sq/default.json index 2e09f0d7..a7a4a6ce 100644 --- a/public/translations/sq/default.json +++ b/public/translations/sq/default.json @@ -69,7 +69,7 @@ "loading": "Po ngarkohet", "pending": "Në pritje", "or": "ose", - "submit_subscriptions_notice": "Abonohuni në një komunitet për të hyrë shpejt", + "submit_subscriptions_notice": "Komunitete të propozuara", "submit_subscriptions": "komunitetet tuaja të abonuara", "rules_for": "rregullat për", "no_communities_found": "Nuk u gjetën komunitete në <1>https://github.com/plebbit/temporary-default-subplebbits</1>", diff --git a/public/translations/sv/default.json b/public/translations/sv/default.json index 347b4157..56a51778 100644 --- a/public/translations/sv/default.json +++ b/public/translations/sv/default.json @@ -69,7 +69,7 @@ "loading": "Laddar", "pending": "Avvaktar", "or": "eller", - "submit_subscriptions_notice": "Prenumerera på ett samhälle för att snabbt få tillgång", + "submit_subscriptions_notice": "Föreslagna samhällen", "submit_subscriptions": "dina prenumererade samhällen", "rules_for": "regler för", "no_communities_found": "Inga samhällen hittades på <1>https://github.com/plebbit/temporary-default-subplebbits</1>", diff --git a/public/translations/te/default.json b/public/translations/te/default.json index 7e291458..277815fe 100644 --- a/public/translations/te/default.json +++ b/public/translations/te/default.json @@ -69,7 +69,7 @@ "loading": "లోడ్ అవుతోంది", "pending": "అనుమతి కోసం వేచి ఉంది", "or": "లేదా", - "submit_subscriptions_notice": "దీనిని త్వరగా యాక్సెస్ చేయడానికి ఒక సముదాయానికి చందా చేసుకోండి", + "submit_subscriptions_notice": "సూచింపబడిన సంఘటనలు", "submit_subscriptions": "మీరు చందా చేసుకున్న సముదాయాలు", "rules_for": "కోసం నియమాలు", "no_communities_found": "<1>https://github.com/plebbit/temporary-default-subplebbits</1>లో సమూహాలు కనిపించలేదు", diff --git a/public/translations/th/default.json b/public/translations/th/default.json index 7e3ca212..de82365b 100644 --- a/public/translations/th/default.json +++ b/public/translations/th/default.json @@ -69,7 +69,7 @@ "loading": "กำลังโหลด", "pending": "รอดำเนินการ", "or": "หรือ", - "submit_subscriptions_notice": "สมัครสมาชิกชุมชนเพื่อเข้าถึงได้เร็ว", + "submit_subscriptions_notice": "ชุมชนแนะนำ", "submit_subscriptions": "ชุมชนที่คุณติดตาม", "rules_for": "กฎสำหรับ", "no_communities_found": "ไม่พบชุมชนใด ๆ บน <1>https://github.com/plebbit/temporary-default-subplebbits</1>", diff --git a/public/translations/tr/default.json b/public/translations/tr/default.json index f5cd1be9..a306524c 100644 --- a/public/translations/tr/default.json +++ b/public/translations/tr/default.json @@ -69,7 +69,7 @@ "loading": "Yükleniyor", "pending": "Beklemede", "or": "veya", - "submit_subscriptions_notice": "Hızlı erişim için bir topluluğa abone olun", + "submit_subscriptions_notice": "Önerilen Topluluklar", "submit_subscriptions": "abone olduğunuz topluluklar", "rules_for": "için kurallar", "no_communities_found": "<1>https://github.com/plebbit/temporary-default-subplebbits</1> üzerinde hiçbir topluluk bulunamadı", diff --git a/public/translations/uk/default.json b/public/translations/uk/default.json index 0411aafb..fb58ff62 100644 --- a/public/translations/uk/default.json +++ b/public/translations/uk/default.json @@ -69,7 +69,7 @@ "loading": "Завантаження", "pending": "Очікується", "or": "або", - "submit_subscriptions_notice": "Підпишіться на спільноту, щоб швидко отримати доступ", + "submit_subscriptions_notice": "Рекомендовані спільноти", "submit_subscriptions": "ваші підписані спільноти", "rules_for": "правила для", "no_communities_found": "Спільноти не знайдені на <1>https://github.com/plebbit/temporary-default-subplebbits</1>", diff --git a/public/translations/ur/default.json b/public/translations/ur/default.json index ceeda717..e6c755ec 100644 --- a/public/translations/ur/default.json +++ b/public/translations/ur/default.json @@ -69,7 +69,7 @@ "loading": "لوڈ ہو رہا ہے", "pending": "منتظر", "or": "یا", - "submit_subscriptions_notice": "اسے جلدی سے ایکسس کرنے کے لیے کسی کمیونٹی کو سبسکرائب کریں", + "submit_subscriptions_notice": "موصولہ کمیونٹیز", "submit_subscriptions": "آپ کی سبسکرائب شدہ کمیونٹیز", "rules_for": "کے قواعد", "no_communities_found": "<1>https://github.com/plebbit/temporary-default-subplebbits</1> پر کوئی کمیونٹیز نہیں ملی", diff --git a/public/translations/vi/default.json b/public/translations/vi/default.json index aefff4ab..57bc4b20 100644 --- a/public/translations/vi/default.json +++ b/public/translations/vi/default.json @@ -69,7 +69,7 @@ "loading": "Đang tải", "pending": "Đang chờ duyệt", "or": "hoặc", - "submit_subscriptions_notice": "Đăng ký vào một cộng đồng để nhanh chóng truy cập", + "submit_subscriptions_notice": "Cộng đồng được đề xuất", "submit_subscriptions": "các cộng đồng bạn đã đăng ký", "rules_for": "quy tắc cho", "no_communities_found": "Không tìm thấy cộng đồng nào trên <1>https://github.com/plebbit/temporary-default-subplebbits</1>", diff --git a/public/translations/zh/default.json b/public/translations/zh/default.json index 2984e0cd..bf20f0d0 100644 --- a/public/translations/zh/default.json +++ b/public/translations/zh/default.json @@ -69,7 +69,7 @@ "loading": "加载中", "pending": "待审批", "or": "或", - "submit_subscriptions_notice": "订阅社区以快速访问", + "submit_subscriptions_notice": "建议的社区", "submit_subscriptions": "您订阅的社区", "rules_for": "规则适用于", "no_communities_found": "在<1>https://github.com/plebbit/temporary-default-subplebbits</1>上未找到任何社区", diff --git a/src/views/submit/submit.tsx b/src/views/submit/submit.tsx index db7e222c..90a12415 100644 --- a/src/views/submit/submit.tsx +++ b/src/views/submit/submit.tsx @@ -115,9 +115,15 @@ const Submit = () => { } }, [index, resetSubmitStore, navigate]); - const subsDescription = <div className={styles.subsDescription}>{subscriptions?.length > 0 ? t('submit_subscriptions') : t('submit_subscriptions_notice')}</div>; + const subsDescription = <div className={styles.subsDescription}>{subscriptions?.length > 5 ? t('submit_subscriptions') : t('submit_subscriptions_notice')}</div>; - const listSource = subscriptions?.length > 0 ? subscriptions : getRandomSubplebbits(defaultSubplebbitAddresses, 10); + const [randomSubplebbits, setRandomSubplebbits] = useState<string[]>([]); + useEffect(() => { + // Generate random subplebbits only once when the component mounts + const generatedSubplebbits = getRandomSubplebbits(defaultSubplebbitAddresses, 10); + setRandomSubplebbits(generatedSubplebbits); + }, [defaultSubplebbitAddresses]); + const listSource = subscriptions?.length > 5 ? subscriptions : randomSubplebbits; const subscriptionsList = ( <div className={styles.subs}> {listSource.map((sub: string) => ( From 8fd70b67134181081abe48c746becd8535b35301 Mon Sep 17 00:00:00 2001 From: "plebeius.eth" <mottoes_recap0u@icloud.com> Date: Sat, 13 Jan 2024 16:37:40 +0100 Subject: [PATCH 12/14] feat(submit): 'submit to' page title links to subplebbit, passing link element to translation --- src/views/submit/submit.tsx | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/src/views/submit/submit.tsx b/src/views/submit/submit.tsx index 90a12415..5ab7c483 100644 --- a/src/views/submit/submit.tsx +++ b/src/views/submit/submit.tsx @@ -1,14 +1,15 @@ import { ChangeEvent, useEffect, useRef, useState } from 'react'; -import { Link, useNavigate, useParams } from 'react-router-dom'; +import { Link, useLocation, useNavigate, useParams } from 'react-router-dom'; import { PublishCommentOptions, useAccount, usePublishComment, useSubplebbit } from '@plebbit/plebbit-react-hooks'; import { getShortAddress } from '@plebbit/plebbit-js'; -import { useTranslation } from 'react-i18next'; +import { Trans, useTranslation } from 'react-i18next'; import { create } from 'zustand'; import { alertChallengeVerificationFailed } from '../../lib/utils/challenge-utils'; import { isValidURL } from '../../lib/utils/url-utils'; import styles from './submit.module.css'; import challengesStore from '../../hooks/use-challenges'; import { getRandomSubplebbits, useDefaultSubplebbitAddresses } from '../../lib/utils/addresses-utils'; +import { isSubmitView } from '../../lib/utils/view-utils'; type SubmitState = { subplebbitAddress: string | undefined; @@ -66,6 +67,9 @@ const Submit = () => { const subplebbit = useSubplebbit({ subplebbitAddress: selectedSubplebbit }); const navigate = useNavigate(); + const location = useLocation(); + const isInSubmitView = isSubmitView(location.pathname); + const titleRef = useRef<HTMLTextAreaElement>(null); const linkRef = useRef<HTMLInputElement>(null); const contentRef = useRef<HTMLTextAreaElement>(null); @@ -101,12 +105,6 @@ const Submit = () => { publishComment(); }; - const subplebbitHeaderLink = ( - <Link to={`/p/${subplebbitAddress}`} className={styles.location} onClick={(e) => e.preventDefault()}> - {subplebbit?.title || subplebbit?.shortAddress || 'seedit'} - </Link> - ); - // redirect to pending page when pending comment is created useEffect(() => { if (typeof index === 'number') { @@ -187,9 +185,11 @@ const Submit = () => { return ( <div className={styles.content}> <h1> - {t('submit_to_before')} - {selectedSubplebbit ? subplebbitHeaderLink : 'seedit'} - {t('submit_to_after')} + <Trans + i18nKey='submit_to' + values={{ link: subplebbit?.title || subplebbit?.shortAddress || 'seedit' }} + components={{ 1: isInSubmitView ? <></> : <Link to={`/p/${subplebbitAddress}`} className={styles.location} /> }} + /> </h1> <div className={styles.form}> <div className={styles.formContent}> From a603d6bca52c717f1d459c48406366de30c7d2b0 Mon Sep 17 00:00:00 2001 From: "plebeius.eth" <mottoes_recap0u@icloud.com> Date: Sat, 13 Jan 2024 16:38:10 +0100 Subject: [PATCH 13/14] chore(translations): submit to --- public/translations/ar/default.json | 5 ++--- public/translations/bn/default.json | 5 ++--- public/translations/cs/default.json | 5 ++--- public/translations/da/default.json | 5 ++--- public/translations/de/default.json | 5 ++--- public/translations/el/default.json | 5 ++--- public/translations/en/default.json | 5 ++--- public/translations/es/default.json | 5 ++--- public/translations/fa/default.json | 5 ++--- public/translations/fi/default.json | 5 ++--- public/translations/fil/default.json | 5 ++--- public/translations/fr/default.json | 5 ++--- public/translations/he/default.json | 5 ++--- public/translations/hi/default.json | 5 ++--- public/translations/hu/default.json | 5 ++--- public/translations/id/default.json | 5 ++--- public/translations/it/default.json | 5 ++--- public/translations/ja/default.json | 5 ++--- public/translations/ko/default.json | 5 ++--- public/translations/mr/default.json | 5 ++--- public/translations/nl/default.json | 5 ++--- public/translations/no/default.json | 5 ++--- public/translations/pl/default.json | 5 ++--- public/translations/pt/default.json | 5 ++--- public/translations/ro/default.json | 5 ++--- public/translations/ru/default.json | 5 ++--- public/translations/sq/default.json | 5 ++--- public/translations/sv/default.json | 5 ++--- public/translations/te/default.json | 5 ++--- public/translations/th/default.json | 5 ++--- public/translations/tr/default.json | 5 ++--- public/translations/uk/default.json | 5 ++--- public/translations/ur/default.json | 5 ++--- public/translations/vi/default.json | 5 ++--- public/translations/zh/default.json | 5 ++--- 35 files changed, 70 insertions(+), 105 deletions(-) diff --git a/public/translations/ar/default.json b/public/translations/ar/default.json index 4b4ef5b8..45f1a1f6 100644 --- a/public/translations/ar/default.json +++ b/public/translations/ar/default.json @@ -49,8 +49,6 @@ "reply_score_plural": "{{count}} نقاط", "removed": "تمت الإزالة", "one_comment": "1 تعليق", - "submit_to_before": "أرسل إلى ", - "submit_to_after": "", "submit_url_description": "قم بتضمين الوسائط عن طريق نشر الرابط المباشر (الذي ينتهي بـ .jpg، .gif، .mp4، إلخ)", "title": "عنوان", "text": "نص", @@ -187,5 +185,6 @@ "stickied_comment": "التعليق المثبت", "posts_last_synced": "آخر مرة تمت مزامنة المشاركات {{dateAgo}}", "community_settings": "إعدادات المجتمع", - "moderation_tools": "أدوات الإشراف" + "moderation_tools": "أدوات الإشراف", + "submit_to": "إرسال إلى <1>{{link}}</1>" } \ No newline at end of file diff --git a/public/translations/bn/default.json b/public/translations/bn/default.json index 3c76fc8a..c62de5d8 100644 --- a/public/translations/bn/default.json +++ b/public/translations/bn/default.json @@ -49,8 +49,6 @@ "reply_score_plural": "{{count}} পয়েন্ট", "removed": "অপসারণ করা হয়েছে", "one_comment": "1 মন্তব্য", - "submit_to_before": "", - "submit_to_after": " প্রেরণ করুন", "submit_url_description": ".jpg, .gif, .mp4 ইত্যাদি দ্বারা সরাসরি লিঙ্ক পোস্ট করে মিডিয়া এম্বেড করুন", "title": "শিরোনাম", "text": "পাঠ", @@ -187,5 +185,6 @@ "stickied_comment": "পিন করা মন্তব্য", "posts_last_synced": "পোস্টগুলি সর্বশেষ সিঙ্ক হয়েছে {{dateAgo}}", "community_settings": "সম্প্রদায় সেটিংস", - "moderation_tools": "মধ্যস্থতা সরঞ্জাম" + "moderation_tools": "মধ্যস্থতা সরঞ্জাম", + "submit_to": "জমা দিন <1>{{link}}</1>" } \ No newline at end of file diff --git a/public/translations/cs/default.json b/public/translations/cs/default.json index fdcaf2f9..ff925c18 100644 --- a/public/translations/cs/default.json +++ b/public/translations/cs/default.json @@ -49,8 +49,6 @@ "reply_score_plural": "{{count}} body", "removed": "Odstraněno", "one_comment": "1 komentář", - "submit_to_before": "odeslat do ", - "submit_to_after": "", "submit_url_description": "vložte média zveřejněním přímého odkazu (končícího na .jpg, .gif, .mp4 atd.)", "title": "název", "text": "text", @@ -187,5 +185,6 @@ "stickied_comment": "Připnutý komentář", "posts_last_synced": "Poslední synchronizace příspěvků {{dateAgo}}", "community_settings": "Nastavení komunity", - "moderation_tools": "Nástroje pro moderaci" + "moderation_tools": "Nástroje pro moderaci", + "submit_to": "Odeslat na <1>{{link}}</1>" } \ No newline at end of file diff --git a/public/translations/da/default.json b/public/translations/da/default.json index ea6748b8..31786303 100644 --- a/public/translations/da/default.json +++ b/public/translations/da/default.json @@ -49,8 +49,6 @@ "reply_score_plural": "{{count}} point", "removed": "Fjernet", "one_comment": "1 kommentar", - "submit_to_before": "send til ", - "submit_to_after": "", "submit_url_description": "integrer medier ved at poste dens direkte link (slutter med .jpg, .gif, .mp4 osv.)", "title": "titel", "text": "tekst", @@ -187,5 +185,6 @@ "stickied_comment": "Fastgjort kommentar", "posts_last_synced": "Seneste opdatering af indlæg {{dateAgo}}", "community_settings": "Fællesskabsindstillinger", - "moderation_tools": "Moderationsværktøjer" + "moderation_tools": "Moderationsværktøjer", + "submit_to": "Indsend til <1>{{link}}</1>" } \ No newline at end of file diff --git a/public/translations/de/default.json b/public/translations/de/default.json index 6fdbe811..3c6a2a37 100644 --- a/public/translations/de/default.json +++ b/public/translations/de/default.json @@ -49,8 +49,6 @@ "reply_score_plural": "{{count}} Punkte", "removed": "Entfernt", "one_comment": "1 Kommentar", - "submit_to_before": "senden an ", - "submit_to_after": "", "submit_url_description": "medien einbetten, indem Sie den direkten Link posten (endet auf .jpg, .gif, .mp4 usw.)", "title": "Titel", "text": "Text", @@ -187,5 +185,6 @@ "stickied_comment": "Angehängter Kommentar", "posts_last_synced": "Zuletzt synchronisierte Beiträge {{dateAgo}}", "community_settings": "Community-Einstellungen", - "moderation_tools": "Moderationstools" + "moderation_tools": "Moderationstools", + "submit_to": "Einreichen an <1>{{link}}</1>" } \ No newline at end of file diff --git a/public/translations/el/default.json b/public/translations/el/default.json index 0d77c21d..79f42753 100644 --- a/public/translations/el/default.json +++ b/public/translations/el/default.json @@ -49,8 +49,6 @@ "reply_score_plural": "{{count}} βαθμοί", "removed": "Αφαιρέθηκε", "one_comment": "1 σχόλιο", - "submit_to_before": "υποβάλλω σε ", - "submit_to_after": "", "submit_url_description": "ενσωματώστε πολυμέσα αναρτώντας τον άμεσο σύνδεσμό τους (τελειώνει σε .jpg, .gif, .mp4 κ.λπ.)", "title": "τίτλος", "text": "κείμενο", @@ -187,5 +185,6 @@ "stickied_comment": "Καρφωμένο σχόλιο", "posts_last_synced": "Τελευταία συγχρονισμένες δημοσιεύσεις {{dateAgo}}", "community_settings": "Ρυθμίσεις κοινότητας", - "moderation_tools": "Εργαλεία διαμεσολάβησης" + "moderation_tools": "Εργαλεία διαμεσολάβησης", + "submit_to": "Υποβολή σε <1>{{link}}</1>" } \ No newline at end of file diff --git a/public/translations/en/default.json b/public/translations/en/default.json index 28436345..64e1b1dd 100644 --- a/public/translations/en/default.json +++ b/public/translations/en/default.json @@ -49,8 +49,6 @@ "reply_score_plural": "{{count}} points", "removed": "Removed", "one_comment": "1 comment", - "submit_to_before": "submit to ", - "submit_to_after": "", "submit_url_description": "embed media by posting its direct link (ending in .jpg, .gif, .mp4, etc)", "title": "title", "text": "text", @@ -187,5 +185,6 @@ "stickied_comment": "Stickied Comment", "posts_last_synced": "Posts last synced {{dateAgo}}", "community_settings": "Community Settings", - "moderation_tools": "Moderation Tools" + "moderation_tools": "Moderation Tools", + "submit_to": "Submit to <1>{{link}}</1>" } \ No newline at end of file diff --git a/public/translations/es/default.json b/public/translations/es/default.json index 1ec628fe..da07e735 100644 --- a/public/translations/es/default.json +++ b/public/translations/es/default.json @@ -49,8 +49,6 @@ "reply_score_plural": "{{count}} puntos", "removed": "Eliminado", "one_comment": "1 comentario", - "submit_to_before": "enviar a ", - "submit_to_after": "", "submit_url_description": "inserta medios publicando su enlace directo (terminando en .jpg, .gif, .mp4, etc.)", "title": "título", "text": "texto", @@ -187,5 +185,6 @@ "stickied_comment": "Comentario fijado", "posts_last_synced": "Últimas publicaciones sincronizadas {{dateAgo}}", "community_settings": "Configuración de la comunidad", - "moderation_tools": "Herramientas de moderación" + "moderation_tools": "Herramientas de moderación", + "submit_to": "Enviar a <1>{{link}}</1>" } \ No newline at end of file diff --git a/public/translations/fa/default.json b/public/translations/fa/default.json index 63058650..282e44bb 100644 --- a/public/translations/fa/default.json +++ b/public/translations/fa/default.json @@ -49,8 +49,6 @@ "reply_score_plural": "{{count}} امتیاز", "removed": "حذف شد", "one_comment": "1 نظر", - "submit_to_before": "ارسال به ", - "submit_to_after": "", "submit_url_description": "رسانه را با ارسال پیوند مستقیم آن جاسازی کنید (پایان یافته در .jpg، .gif، .mp4، و غیره)", "title": "عنوان", "text": "متن", @@ -187,5 +185,6 @@ "stickied_comment": "نظر ثابت", "posts_last_synced": "آخرین باری که پست‌ها همگام‌سازی شدند {{dateAgo}}", "community_settings": "تنظیمات اجتماعی", - "moderation_tools": "ابزارهای نظارت" + "moderation_tools": "ابزارهای نظارت", + "submit_to": "ارسال به <1>{{link}}</1>" } \ No newline at end of file diff --git a/public/translations/fi/default.json b/public/translations/fi/default.json index 79709e13..ef13d9ed 100644 --- a/public/translations/fi/default.json +++ b/public/translations/fi/default.json @@ -49,8 +49,6 @@ "reply_score_plural": "{{count}} pistettä", "removed": "Poistettu", "one_comment": "1 kommentti", - "submit_to_before": "lähetä kohteeseen ", - "submit_to_after": "", "submit_url_description": "upota mediaa lähettämällä sen suora linkki (päättyy .jpg, .gif, .mp4, jne.)", "title": "otsikko", "text": "teksti", @@ -187,5 +185,6 @@ "stickied_comment": "Kiinnitetty kommentti", "posts_last_synced": "Viimeksi synkronoidut viestit {{dateAgo}}", "community_settings": "Yhteisön asetukset", - "moderation_tools": "Moderointityökalut" + "moderation_tools": "Moderointityökalut", + "submit_to": "Lähetä osoitteeseen <1>{{link}}</1>" } \ No newline at end of file diff --git a/public/translations/fil/default.json b/public/translations/fil/default.json index 90ba49c3..d10254e3 100644 --- a/public/translations/fil/default.json +++ b/public/translations/fil/default.json @@ -49,8 +49,6 @@ "reply_score_plural": "{{count}} punto", "removed": "Tinanggal", "one_comment": "1 komento", - "submit_to_before": "ipasa sa ", - "submit_to_after": "", "submit_url_description": "i-embed ang media sa pamamagitan ng pag-post ng direktang link nito (nagtatapos sa .jpg, .gif, .mp4, atbp.)", "title": "pamagat", "text": "teksto", @@ -187,5 +185,6 @@ "stickied_comment": "Naka-pinned na Komento", "posts_last_synced": "Mga huling na-synchronize na mga post {{dateAgo}}", "community_settings": "Mga Setting ng Komunidad", - "moderation_tools": "Mga Kasangkapan sa Moderasyon" + "moderation_tools": "Mga Kasangkapan sa Moderasyon", + "submit_to": "Isumite sa <1>{{link}}</1>" } \ No newline at end of file diff --git a/public/translations/fr/default.json b/public/translations/fr/default.json index 9ed38b67..f1d943ea 100644 --- a/public/translations/fr/default.json +++ b/public/translations/fr/default.json @@ -49,8 +49,6 @@ "reply_score_plural": "{{count}} points", "removed": "Supprimé", "one_comment": "1 commentaire", - "submit_to_before": "soumettre à ", - "submit_to_after": "", "submit_url_description": "intégrez des médias en postant son lien direct (se terminant par .jpg, .gif, .mp4, etc.)", "title": "titre", "text": "texte", @@ -187,5 +185,6 @@ "stickied_comment": "Commentaire épinglé", "posts_last_synced": "Dernières publications synchronisées {{dateAgo}}", "community_settings": "Paramètres de la communauté", - "moderation_tools": "Outils de modération" + "moderation_tools": "Outils de modération", + "submit_to": "Soumettre à <1>{{link}}</1>" } \ No newline at end of file diff --git a/public/translations/he/default.json b/public/translations/he/default.json index 4b0bc2b4..a11494b2 100644 --- a/public/translations/he/default.json +++ b/public/translations/he/default.json @@ -49,8 +49,6 @@ "reply_score_plural": "{{count}} נקודות", "removed": "הוסר", "one_comment": "1 הערה", - "submit_to_before": "שלח אל ", - "submit_to_after": "", "submit_url_description": "הטמע מדיה על ידי פרסום הקישור הישיר שלה (מסתיים ב-.jpg, .gif, .mp4, וכו')", "title": "כותרת", "text": "טקסט", @@ -187,5 +185,6 @@ "stickied_comment": "תגובה מוצבת", "posts_last_synced": "פוסטים אחרונים שנסנכרנו {{dateAgo}}", "community_settings": "הגדרות הקהילה", - "moderation_tools": "כלי ניטור" + "moderation_tools": "כלי ניטור", + "submit_to": "שלח אל <1>{{link}}</1>" } \ No newline at end of file diff --git a/public/translations/hi/default.json b/public/translations/hi/default.json index ed84f8a4..24ef9272 100644 --- a/public/translations/hi/default.json +++ b/public/translations/hi/default.json @@ -49,8 +49,6 @@ "reply_score_plural": "{{count}} अंक", "removed": "हटा दिया गया", "one_comment": "1 टिप्पणी", - "submit_to_before": "", - "submit_to_after": " को जमा करें", "submit_url_description": ".jpg, .gif, .mp4 आदि में समाप्त होने वाले सीधे लिंक को पोस्ट करके मीडिया एम्बेड करें", "title": "शीर्षक", "text": "पाठ", @@ -187,5 +185,6 @@ "stickied_comment": "पिन किया गया टिप्पणी", "posts_last_synced": "पोस्ट्स अंतिम बार {{dateAgo}} को सिंक की गईं", "community_settings": "समुदाय सेटिंग्स", - "moderation_tools": "मॉडरेशन टूल्स" + "moderation_tools": "मॉडरेशन टूल्स", + "submit_to": "जमा करें <1>{{link}}</1>" } \ No newline at end of file diff --git a/public/translations/hu/default.json b/public/translations/hu/default.json index c58dc9df..2628ba82 100644 --- a/public/translations/hu/default.json +++ b/public/translations/hu/default.json @@ -49,8 +49,6 @@ "reply_score_plural": "{{count}} pont", "removed": "Eltávolítva", "one_comment": "1 megjegyzés", - "submit_to_before": "küldés ide: ", - "submit_to_after": "", "submit_url_description": "ágyazza be a médiát a közvetlen linkjének közzétételével (vége .jpg, .gif, .mp4 stb.)", "title": "cím", "text": "szöveg", @@ -187,5 +185,6 @@ "stickied_comment": "Kitűzött hozzászólás", "posts_last_synced": "Legutóbb szinkronizált bejegyzések {{dateAgo}}", "community_settings": "Közösségi beállítások", - "moderation_tools": "Moderációs eszközök" + "moderation_tools": "Moderációs eszközök", + "submit_to": "Küldés ide: <1>{{link}}</1>" } \ No newline at end of file diff --git a/public/translations/id/default.json b/public/translations/id/default.json index 9f541687..8c7e94d1 100644 --- a/public/translations/id/default.json +++ b/public/translations/id/default.json @@ -49,8 +49,6 @@ "reply_score_plural": "{{count}} poin", "removed": "Dihapus", "one_comment": "1 komentar", - "submit_to_before": "kirim ke ", - "submit_to_after": "", "submit_url_description": "tanamkan media dengan memposting tautan langsungnya (berakhir dengan .jpg, .gif, .mp4, dll.)", "title": "judul", "text": "teks", @@ -187,5 +185,6 @@ "stickied_comment": "Komentar yang Dipasang", "posts_last_synced": "Postingan yang terakhir disinkronkan {{dateAgo}}", "community_settings": "Pengaturan Komunitas", - "moderation_tools": "Alat Moderasi" + "moderation_tools": "Alat Moderasi", + "submit_to": "Kirim ke <1>{{link}}</1>" } \ No newline at end of file diff --git a/public/translations/it/default.json b/public/translations/it/default.json index d7ef01c8..7cb7c448 100644 --- a/public/translations/it/default.json +++ b/public/translations/it/default.json @@ -49,8 +49,6 @@ "reply_score_plural": "{{count}} punti", "removed": "Rimosso", "one_comment": "1 commento", - "submit_to_before": "invia a ", - "submit_to_after": "", "submit_url_description": "incorpora i media postando il suo link diretto (che termina in .jpg, .gif, .mp4, ecc.)", "title": "titolo", "text": "testo", @@ -187,5 +185,6 @@ "stickied_comment": "Commento fissato", "posts_last_synced": "Post sincronizzati l'ultima volta {{dateAgo}}", "community_settings": "Impostazioni della comunità", - "moderation_tools": "Strumenti di moderazione" + "moderation_tools": "Strumenti di moderazione", + "submit_to": "Invia a <1>{{link}}</1>" } \ No newline at end of file diff --git a/public/translations/ja/default.json b/public/translations/ja/default.json index 8b8d8594..c425f127 100644 --- a/public/translations/ja/default.json +++ b/public/translations/ja/default.json @@ -49,8 +49,6 @@ "reply_score_plural": "{{count}} ポイント", "removed": "削除されました", "one_comment": "1つのコメント", - "submit_to_before": "", - "submit_to_after": " に提出", "submit_url_description": "直接のリンク(.jpg、.gif、.mp4などで終わる)を投稿してメディアを埋め込む", "title": "タイトル", "text": "テキスト", @@ -187,5 +185,6 @@ "stickied_comment": "固定されたコメント", "posts_last_synced": "最後に同期された投稿 {{dateAgo}}", "community_settings": "コミュニティの設定", - "moderation_tools": "モデレーションツール" + "moderation_tools": "モデレーションツール", + "submit_to": "<1>{{link}}</1>に提出する" } \ No newline at end of file diff --git a/public/translations/ko/default.json b/public/translations/ko/default.json index 82a114b3..c13ac703 100644 --- a/public/translations/ko/default.json +++ b/public/translations/ko/default.json @@ -49,8 +49,6 @@ "reply_score_plural": "{{count}} 점", "removed": "제거됨", "one_comment": "1 댓글", - "submit_to_before": "", - "submit_to_after": "에 제출", "submit_url_description": "직접 링크를 게시하여 미디어 포함 (.jpg, .gif, .mp4 등으로 끝남)", "title": "제목", "text": "텍스트", @@ -187,5 +185,6 @@ "stickied_comment": "고정된 댓글", "posts_last_synced": "마지막 동기화된 게시물 {{dateAgo}}", "community_settings": "커뮤니티 설정", - "moderation_tools": "모더레이션 도구" + "moderation_tools": "모더레이션 도구", + "submit_to": "<1>{{link}}</1>(으)로 제출하기" } \ No newline at end of file diff --git a/public/translations/mr/default.json b/public/translations/mr/default.json index 5d6c654d..ded37d99 100644 --- a/public/translations/mr/default.json +++ b/public/translations/mr/default.json @@ -49,8 +49,6 @@ "reply_score_plural": "{{count}} गुण", "removed": "काढून टाकला", "one_comment": "1 टिप्पणी", - "submit_to_before": "", - "submit_to_after": " किंवा प्रेषित करा", "submit_url_description": ".jpg, .gif, .mp4 इत्यादीत समाप्त होणार्या थेट लिंकच्या माध्यमातून माध्यमाची एम्बेड करा", "title": "शीर्षक", "text": "मजकूर", @@ -187,5 +185,6 @@ "stickied_comment": "टाळलेला टिप्पणी", "posts_last_synced": "शेवटी सिंक केलेले पोस्ट्स {{dateAgo}}", "community_settings": "समुदाय सेटिंग्स", - "moderation_tools": "निरीक्षण साधने" + "moderation_tools": "निरीक्षण साधने", + "submit_to": "<1>{{link}}</1> कडे पाठवा" } \ No newline at end of file diff --git a/public/translations/nl/default.json b/public/translations/nl/default.json index 42cf76fe..80ca2008 100644 --- a/public/translations/nl/default.json +++ b/public/translations/nl/default.json @@ -49,8 +49,6 @@ "reply_score_plural": "{{count}} punten", "removed": "Verwijderd", "one_comment": "1 opmerking", - "submit_to_before": "inzenden naar ", - "submit_to_after": "", "submit_url_description": "media insluiten door de directe link te posten (eindigend op .jpg, .gif, .mp4, etc.)", "title": "titel", "text": "tekst", @@ -187,5 +185,6 @@ "stickied_comment": "Vastgezette opmerking", "posts_last_synced": "Laatst gesynchroniseerde berichten {{dateAgo}}", "community_settings": "Community-instellingen", - "moderation_tools": "Moderatiehulpmiddelen" + "moderation_tools": "Moderatiehulpmiddelen", + "submit_to": "Verzenden naar <1>{{link}}</1>" } \ No newline at end of file diff --git a/public/translations/no/default.json b/public/translations/no/default.json index 0bb61712..73ceaa46 100644 --- a/public/translations/no/default.json +++ b/public/translations/no/default.json @@ -49,8 +49,6 @@ "reply_score_plural": "{{count}} poeng", "removed": "Fjernet", "one_comment": "1 kommentar", - "submit_to_before": "send inn til ", - "submit_to_after": "", "submit_url_description": "bygg inn medier ved å poste dens direkte lenke (slutter med .jpg, .gif, .mp4 osv.)", "title": "tittel", "text": "tekst", @@ -187,5 +185,6 @@ "stickied_comment": "Festet kommentar", "posts_last_synced": "Innlegg sist synkronisert {{dateAgo}}", "community_settings": "Fellesskapsinnstillinger", - "moderation_tools": "Moderasjonsverktøy" + "moderation_tools": "Moderasjonsverktøy", + "submit_to": "Send til <1>{{link}}</1>" } \ No newline at end of file diff --git a/public/translations/pl/default.json b/public/translations/pl/default.json index 798c55e0..fa7fa03f 100644 --- a/public/translations/pl/default.json +++ b/public/translations/pl/default.json @@ -49,8 +49,6 @@ "reply_score_plural": "{{count}} punkty", "removed": "Usunięto", "one_comment": "1 komentarz", - "submit_to_before": "prześlij do ", - "submit_to_after": "", "submit_url_description": "osadź media, publikując jego bezpośredni link (kończący się na .jpg, .gif, .mp4 itp.)", "title": "tytuł", "text": "tekst", @@ -187,5 +185,6 @@ "stickied_comment": "Przypięty komentarz", "posts_last_synced": "Ostatnio zsynchronizowane posty {{dateAgo}}", "community_settings": "Ustawienia społeczności", - "moderation_tools": "Narzędzia moderacji" + "moderation_tools": "Narzędzia moderacji", + "submit_to": "Prześlij do <1>{{link}}</1>" } \ No newline at end of file diff --git a/public/translations/pt/default.json b/public/translations/pt/default.json index 0063530c..a3b0766c 100644 --- a/public/translations/pt/default.json +++ b/public/translations/pt/default.json @@ -49,8 +49,6 @@ "reply_score_plural": "{{count}} pontos", "removed": "Removido", "one_comment": "1 comentário", - "submit_to_before": "enviar para ", - "submit_to_after": "", "submit_url_description": "incorpore mídias postando seu link direto (terminando em .jpg, .gif, .mp4, etc.)", "title": "título", "text": "texto", @@ -187,5 +185,6 @@ "stickied_comment": "Comentário fixado", "posts_last_synced": "Últimas postagens sincronizadas {{dateAgo}}", "community_settings": "Configurações da comunidade", - "moderation_tools": "Ferramentas de moderação" + "moderation_tools": "Ferramentas de moderação", + "submit_to": "Enviar para <1>{{link}}</1>" } \ No newline at end of file diff --git a/public/translations/ro/default.json b/public/translations/ro/default.json index 2cbf253a..c00496f8 100644 --- a/public/translations/ro/default.json +++ b/public/translations/ro/default.json @@ -49,8 +49,6 @@ "reply_score_plural": "{{count}} puncte", "removed": "Eliminat", "one_comment": "1 comentariu", - "submit_to_before": "trimite la ", - "submit_to_after": "", "submit_url_description": "încorporați media postând linkul său direct (terminând în .jpg, .gif, .mp4, etc.)", "title": "titlu", "text": "text", @@ -187,5 +185,6 @@ "stickied_comment": "Comentariu fixat", "posts_last_synced": "Ultimele postări sincronizate {{dateAgo}}", "community_settings": "Setări ale comunității", - "moderation_tools": "Instrumente de moderare" + "moderation_tools": "Instrumente de moderare", + "submit_to": "Trimite la <1>{{link}}</1>" } \ No newline at end of file diff --git a/public/translations/ru/default.json b/public/translations/ru/default.json index e52b0bdc..77c5b49e 100644 --- a/public/translations/ru/default.json +++ b/public/translations/ru/default.json @@ -49,8 +49,6 @@ "reply_score_plural": "{{count}} очков", "removed": "Удалено", "one_comment": "1 комментарий", - "submit_to_before": "отправить в ", - "submit_to_after": "", "submit_url_description": "вставьте медиа, разместив его прямую ссылку (заканчивается на .jpg, .gif, .mp4 и т. д.)", "title": "заголовок", "text": "текст", @@ -187,5 +185,6 @@ "stickied_comment": "Закрепленный комментарий", "posts_last_synced": "Последние синхронизированные посты {{dateAgo}}", "community_settings": "Настройки сообщества", - "moderation_tools": "Инструменты модерации" + "moderation_tools": "Инструменты модерации", + "submit_to": "Отправить на <1>{{link}}</1>" } \ No newline at end of file diff --git a/public/translations/sq/default.json b/public/translations/sq/default.json index a7a4a6ce..73e019ed 100644 --- a/public/translations/sq/default.json +++ b/public/translations/sq/default.json @@ -49,8 +49,6 @@ "reply_score_plural": "{{count}} pikë", "removed": "U hoq", "one_comment": "1 koment", - "submit_to_before": "dërgo te ", - "submit_to_after": "", "submit_url_description": "ngulit media duke postuar lidhjen e saj të drejtpërdrejtë (që përfundon në .jpg, .gif, .mp4, etj.)", "title": "titull", "text": "tekst", @@ -187,5 +185,6 @@ "stickied_comment": "Komenti i fiksuar", "posts_last_synced": "Postimet e fundit të sinkronizuara {{dateAgo}}", "community_settings": "Cilësimet e komunitetit", - "moderation_tools": "Mjete moderimi" + "moderation_tools": "Mjete moderimi", + "submit_to": "Dërgo te <1>{{link}}</1>" } \ No newline at end of file diff --git a/public/translations/sv/default.json b/public/translations/sv/default.json index 56a51778..8734a59d 100644 --- a/public/translations/sv/default.json +++ b/public/translations/sv/default.json @@ -49,8 +49,6 @@ "reply_score_plural": "{{count}} poäng", "removed": "Borttagen", "one_comment": "1 kommentar", - "submit_to_before": "skicka till ", - "submit_to_after": "", "submit_url_description": "bädda in media genom att posta dess direkta länk (slutar i .jpg, .gif, .mp4, etc)", "title": "titel", "text": "text", @@ -187,5 +185,6 @@ "stickied_comment": "Fast kommentar", "posts_last_synced": "Senast synkroniserade inlägg {{dateAgo}}", "community_settings": "Samhällsinställningar", - "moderation_tools": "Modereringsverktyg" + "moderation_tools": "Modereringsverktyg", + "submit_to": "Skicka till <1>{{link}}</1>" } \ No newline at end of file diff --git a/public/translations/te/default.json b/public/translations/te/default.json index 277815fe..e454c8c9 100644 --- a/public/translations/te/default.json +++ b/public/translations/te/default.json @@ -49,8 +49,6 @@ "reply_score_plural": "{{count}} పాయింట్లు", "removed": "తొలగించబడింది", "one_comment": "1 వ్యాఖ్య", - "submit_to_before": "", - "submit_to_after": "కి సమర్పించు", "submit_url_description": ".jpg, .gif, .mp4 వంటివిలో ముగిసే ప్రత్యక్ష లింకును పోస్ట్ చేసి మీడియాను ఎంబెడ్ చేయండి", "title": "శీర్షిక", "text": "టెక్స్ట్", @@ -187,5 +185,6 @@ "stickied_comment": "పిన్ చేసిన వ్యాఖ్య", "posts_last_synced": "పోస్టులు చివరిలో సింక్ అయ్యాయి {{dateAgo}}", "community_settings": "కమ్యూనిటీ సెట్టింగులు", - "moderation_tools": "మాడరేషన్ సాధనాలు" + "moderation_tools": "మాడరేషన్ సాధనాలు", + "submit_to": "<1>{{link}}</1> కు పంపండి" } \ No newline at end of file diff --git a/public/translations/th/default.json b/public/translations/th/default.json index de82365b..5ef2b87b 100644 --- a/public/translations/th/default.json +++ b/public/translations/th/default.json @@ -49,8 +49,6 @@ "reply_score_plural": "{{count}} แต้ม", "removed": "ถูกนำออก", "one_comment": "1 ความคิดเห็น", - "submit_to_before": "ส่งไปยัง ", - "submit_to_after": "", "submit_url_description": "ฝังสื่อโดยการโพสต์ลิงก์ตรง (ลงท้ายด้วย .jpg, .gif, .mp4 ฯลฯ)", "title": "หัวข้อ", "text": "ข้อความ", @@ -187,5 +185,6 @@ "stickied_comment": "ความคิดเห็นที่ตรึง", "posts_last_synced": "โพสต์ล่าสุดที่ซิงค์ {{dateAgo}}", "community_settings": "การตั้งค่าชุมชน", - "moderation_tools": "เครื่องมือการตรวจสอบ" + "moderation_tools": "เครื่องมือการตรวจสอบ", + "submit_to": "ส่งไปที่ <1>{{link}}</1>" } \ No newline at end of file diff --git a/public/translations/tr/default.json b/public/translations/tr/default.json index a306524c..7b439dbc 100644 --- a/public/translations/tr/default.json +++ b/public/translations/tr/default.json @@ -49,8 +49,6 @@ "reply_score_plural": "{{count}} puan", "removed": "Kaldırıldı", "one_comment": "1 yorum", - "submit_to_before": "", - "submit_to_after": " gönder", "submit_url_description": "medya ekleyin doğrudan bağlantısını göndererek (.jpg, .gif, .mp4 vb. ile biten)", "title": "başlık", "text": "metin", @@ -187,5 +185,6 @@ "stickied_comment": "Sabitleyici Yorum", "posts_last_synced": "Son senkronize edilen gönderiler {{dateAgo}}", "community_settings": "Topluluk Ayarları", - "moderation_tools": "Moderasyon Araçları" + "moderation_tools": "Moderasyon Araçları", + "submit_to": "<1>{{link}}</1> adresine gönder" } \ No newline at end of file diff --git a/public/translations/uk/default.json b/public/translations/uk/default.json index fb58ff62..982e2c92 100644 --- a/public/translations/uk/default.json +++ b/public/translations/uk/default.json @@ -49,8 +49,6 @@ "reply_score_plural": "{{count}} бали", "removed": "Видалено", "one_comment": "1 коментар", - "submit_to_before": "надіслати до ", - "submit_to_after": "", "submit_url_description": "вставте медіа, розмістивши його пряме посилання (закінчується на .jpg, .gif, .mp4 тощо)", "title": "заголовок", "text": "текст", @@ -187,5 +185,6 @@ "stickied_comment": "Закріплений коментар", "posts_last_synced": "Останні синхронізовані пости {{dateAgo}}", "community_settings": "Налаштування спільноти", - "moderation_tools": "Інструменти модерації" + "moderation_tools": "Інструменти модерації", + "submit_to": "Надіслати до <1>{{link}}</1>" } \ No newline at end of file diff --git a/public/translations/ur/default.json b/public/translations/ur/default.json index e6c755ec..78901fc5 100644 --- a/public/translations/ur/default.json +++ b/public/translations/ur/default.json @@ -49,8 +49,6 @@ "reply_score_plural": "{{count}} پوائنٹس", "removed": "ہٹا دیا گیا", "one_comment": "1 تبصرہ", - "submit_to_before": "", - "submit_to_after": " کو جمع کروائیں", "submit_url_description": ".jpg، .gif، .mp4 وغیرہ میں ختم ہونے والے براہ راست لنک کو پوسٹ کرکے میڈیا انکارپوریٹ کریں", "title": "عنوان", "text": "مواد", @@ -187,5 +185,6 @@ "stickied_comment": "پن کردہ تبصرہ", "posts_last_synced": "آخری مرتب سبقت کردہ پوسٹس {{dateAgo}}", "community_settings": "کمیونٹی کی ترتیبات", - "moderation_tools": "موڈریشن ٹولز" + "moderation_tools": "موڈریشن ٹولز", + "submit_to": "جمع کرائیں <1>{{link}}</1>" } \ No newline at end of file diff --git a/public/translations/vi/default.json b/public/translations/vi/default.json index 57bc4b20..be69fa1c 100644 --- a/public/translations/vi/default.json +++ b/public/translations/vi/default.json @@ -49,8 +49,6 @@ "reply_score_plural": "{{count}} điểm", "removed": "Đã xóa", "one_comment": "1 bình luận", - "submit_to_before": "gửi đến ", - "submit_to_after": "", "submit_url_description": "nhúng phương tiện bằng cách đăng liên kết trực tiếp của nó (kết thúc bằng .jpg, .gif, .mp4, v.v.)", "title": "tiêu đề", "text": "văn bản", @@ -187,5 +185,6 @@ "stickied_comment": "Bình luận ghim", "posts_last_synced": "Bài viết gần nhất đã đồng bộ {{dateAgo}}", "community_settings": "Cài đặt cộng đồng", - "moderation_tools": "Công cụ kiểm duyệt" + "moderation_tools": "Công cụ kiểm duyệt", + "submit_to": "Gửi đến <1>{{link}}</1>" } \ No newline at end of file diff --git a/public/translations/zh/default.json b/public/translations/zh/default.json index bf20f0d0..6526fc23 100644 --- a/public/translations/zh/default.json +++ b/public/translations/zh/default.json @@ -49,8 +49,6 @@ "reply_score_plural": "{{count}} 分", "removed": "已删除", "one_comment": "1 条评论", - "submit_to_before": "提交至", - "submit_to_after": "", "submit_url_description": "通过发布其直接链接(以.jpg、.gif、.mp4等结尾)嵌入媒体", "title": "标题", "text": "文本", @@ -187,5 +185,6 @@ "stickied_comment": "置顶评论", "posts_last_synced": "最后同步的帖子 {{dateAgo}}", "community_settings": "社区设置", - "moderation_tools": "管理工具" + "moderation_tools": "管理工具", + "submit_to": "提交至 <1>{{link}}</1>" } \ No newline at end of file From e14fe49b9cd99f532de13e0b3fa6911d4dbd1ca3 Mon Sep 17 00:00:00 2001 From: "plebeius.eth" <mottoes_recap0u@icloud.com> Date: Sat, 13 Jan 2024 19:41:11 +0100 Subject: [PATCH 14/14] feat(topbar): add 'edit subscriptions' button --- public/translations/ar/default.json | 3 ++- public/translations/bn/default.json | 3 ++- public/translations/cs/default.json | 3 ++- public/translations/da/default.json | 3 ++- public/translations/de/default.json | 3 ++- public/translations/el/default.json | 3 ++- public/translations/en/default.json | 3 ++- public/translations/es/default.json | 3 ++- public/translations/fa/default.json | 3 ++- public/translations/fi/default.json | 3 ++- public/translations/fil/default.json | 3 ++- public/translations/fr/default.json | 3 ++- public/translations/he/default.json | 3 ++- public/translations/hi/default.json | 3 ++- public/translations/hu/default.json | 3 ++- public/translations/id/default.json | 3 ++- public/translations/it/default.json | 3 ++- public/translations/ja/default.json | 3 ++- public/translations/ko/default.json | 3 ++- public/translations/mr/default.json | 3 ++- public/translations/nl/default.json | 3 ++- public/translations/no/default.json | 3 ++- public/translations/pl/default.json | 3 ++- public/translations/pt/default.json | 3 ++- public/translations/ro/default.json | 3 ++- public/translations/ru/default.json | 3 ++- public/translations/sq/default.json | 3 ++- public/translations/sv/default.json | 3 ++- public/translations/te/default.json | 3 ++- public/translations/th/default.json | 3 ++- public/translations/tr/default.json | 3 ++- public/translations/uk/default.json | 3 ++- public/translations/ur/default.json | 3 ++- public/translations/vi/default.json | 3 ++- public/translations/zh/default.json | 3 ++- src/components/topbar/topbar.module.css | 6 ++++++ src/components/topbar/topbar.tsx | 5 +++++ 37 files changed, 81 insertions(+), 35 deletions(-) diff --git a/public/translations/ar/default.json b/public/translations/ar/default.json index 45f1a1f6..efde445d 100644 --- a/public/translations/ar/default.json +++ b/public/translations/ar/default.json @@ -186,5 +186,6 @@ "posts_last_synced": "آخر مرة تمت مزامنة المشاركات {{dateAgo}}", "community_settings": "إعدادات المجتمع", "moderation_tools": "أدوات الإشراف", - "submit_to": "إرسال إلى <1>{{link}}</1>" + "submit_to": "إرسال إلى <1>{{link}}</1>", + "edit_subscriptions": "تحرير الاشتراكات" } \ No newline at end of file diff --git a/public/translations/bn/default.json b/public/translations/bn/default.json index c62de5d8..68600f9b 100644 --- a/public/translations/bn/default.json +++ b/public/translations/bn/default.json @@ -186,5 +186,6 @@ "posts_last_synced": "পোস্টগুলি সর্বশেষ সিঙ্ক হয়েছে {{dateAgo}}", "community_settings": "সম্প্রদায় সেটিংস", "moderation_tools": "মধ্যস্থতা সরঞ্জাম", - "submit_to": "জমা দিন <1>{{link}}</1>" + "submit_to": "জমা দিন <1>{{link}}</1>", + "edit_subscriptions": "সাবস্ক্রিপশন সম্পাদনা" } \ No newline at end of file diff --git a/public/translations/cs/default.json b/public/translations/cs/default.json index ff925c18..fbb06d9e 100644 --- a/public/translations/cs/default.json +++ b/public/translations/cs/default.json @@ -186,5 +186,6 @@ "posts_last_synced": "Poslední synchronizace příspěvků {{dateAgo}}", "community_settings": "Nastavení komunity", "moderation_tools": "Nástroje pro moderaci", - "submit_to": "Odeslat na <1>{{link}}</1>" + "submit_to": "Odeslat na <1>{{link}}</1>", + "edit_subscriptions": "Upravit předplatné" } \ No newline at end of file diff --git a/public/translations/da/default.json b/public/translations/da/default.json index 31786303..5ed41c9e 100644 --- a/public/translations/da/default.json +++ b/public/translations/da/default.json @@ -186,5 +186,6 @@ "posts_last_synced": "Seneste opdatering af indlæg {{dateAgo}}", "community_settings": "Fællesskabsindstillinger", "moderation_tools": "Moderationsværktøjer", - "submit_to": "Indsend til <1>{{link}}</1>" + "submit_to": "Indsend til <1>{{link}}</1>", + "edit_subscriptions": "Rediger abonnementer" } \ No newline at end of file diff --git a/public/translations/de/default.json b/public/translations/de/default.json index 3c6a2a37..a59d971b 100644 --- a/public/translations/de/default.json +++ b/public/translations/de/default.json @@ -186,5 +186,6 @@ "posts_last_synced": "Zuletzt synchronisierte Beiträge {{dateAgo}}", "community_settings": "Community-Einstellungen", "moderation_tools": "Moderationstools", - "submit_to": "Einreichen an <1>{{link}}</1>" + "submit_to": "Einreichen an <1>{{link}}</1>", + "edit_subscriptions": "Abonnements bearbeiten" } \ No newline at end of file diff --git a/public/translations/el/default.json b/public/translations/el/default.json index 79f42753..5ec28fac 100644 --- a/public/translations/el/default.json +++ b/public/translations/el/default.json @@ -186,5 +186,6 @@ "posts_last_synced": "Τελευταία συγχρονισμένες δημοσιεύσεις {{dateAgo}}", "community_settings": "Ρυθμίσεις κοινότητας", "moderation_tools": "Εργαλεία διαμεσολάβησης", - "submit_to": "Υποβολή σε <1>{{link}}</1>" + "submit_to": "Υποβολή σε <1>{{link}}</1>", + "edit_subscriptions": "Επεξεργασία συνδρομών" } \ No newline at end of file diff --git a/public/translations/en/default.json b/public/translations/en/default.json index 64e1b1dd..7b7ec11c 100644 --- a/public/translations/en/default.json +++ b/public/translations/en/default.json @@ -186,5 +186,6 @@ "posts_last_synced": "Posts last synced {{dateAgo}}", "community_settings": "Community Settings", "moderation_tools": "Moderation Tools", - "submit_to": "Submit to <1>{{link}}</1>" + "submit_to": "Submit to <1>{{link}}</1>", + "edit_subscriptions": "Edit Subscriptions" } \ No newline at end of file diff --git a/public/translations/es/default.json b/public/translations/es/default.json index da07e735..74c56699 100644 --- a/public/translations/es/default.json +++ b/public/translations/es/default.json @@ -186,5 +186,6 @@ "posts_last_synced": "Últimas publicaciones sincronizadas {{dateAgo}}", "community_settings": "Configuración de la comunidad", "moderation_tools": "Herramientas de moderación", - "submit_to": "Enviar a <1>{{link}}</1>" + "submit_to": "Enviar a <1>{{link}}</1>", + "edit_subscriptions": "Editar suscripciones" } \ No newline at end of file diff --git a/public/translations/fa/default.json b/public/translations/fa/default.json index 282e44bb..207b0bc9 100644 --- a/public/translations/fa/default.json +++ b/public/translations/fa/default.json @@ -186,5 +186,6 @@ "posts_last_synced": "آخرین باری که پست‌ها همگام‌سازی شدند {{dateAgo}}", "community_settings": "تنظیمات اجتماعی", "moderation_tools": "ابزارهای نظارت", - "submit_to": "ارسال به <1>{{link}}</1>" + "submit_to": "ارسال به <1>{{link}}</1>", + "edit_subscriptions": "ویرایش اشتراک‌ها" } \ No newline at end of file diff --git a/public/translations/fi/default.json b/public/translations/fi/default.json index ef13d9ed..a6058439 100644 --- a/public/translations/fi/default.json +++ b/public/translations/fi/default.json @@ -186,5 +186,6 @@ "posts_last_synced": "Viimeksi synkronoidut viestit {{dateAgo}}", "community_settings": "Yhteisön asetukset", "moderation_tools": "Moderointityökalut", - "submit_to": "Lähetä osoitteeseen <1>{{link}}</1>" + "submit_to": "Lähetä osoitteeseen <1>{{link}}</1>", + "edit_subscriptions": "Muokkaa tilauksia" } \ No newline at end of file diff --git a/public/translations/fil/default.json b/public/translations/fil/default.json index d10254e3..b43471a5 100644 --- a/public/translations/fil/default.json +++ b/public/translations/fil/default.json @@ -186,5 +186,6 @@ "posts_last_synced": "Mga huling na-synchronize na mga post {{dateAgo}}", "community_settings": "Mga Setting ng Komunidad", "moderation_tools": "Mga Kasangkapan sa Moderasyon", - "submit_to": "Isumite sa <1>{{link}}</1>" + "submit_to": "Isumite sa <1>{{link}}</1>", + "edit_subscriptions": "I-edit ang mga Subskripsyon" } \ No newline at end of file diff --git a/public/translations/fr/default.json b/public/translations/fr/default.json index f1d943ea..bfe8fda7 100644 --- a/public/translations/fr/default.json +++ b/public/translations/fr/default.json @@ -186,5 +186,6 @@ "posts_last_synced": "Dernières publications synchronisées {{dateAgo}}", "community_settings": "Paramètres de la communauté", "moderation_tools": "Outils de modération", - "submit_to": "Soumettre à <1>{{link}}</1>" + "submit_to": "Soumettre à <1>{{link}}</1>", + "edit_subscriptions": "Modifier les abonnements" } \ No newline at end of file diff --git a/public/translations/he/default.json b/public/translations/he/default.json index a11494b2..cb7a4e07 100644 --- a/public/translations/he/default.json +++ b/public/translations/he/default.json @@ -186,5 +186,6 @@ "posts_last_synced": "פוסטים אחרונים שנסנכרנו {{dateAgo}}", "community_settings": "הגדרות הקהילה", "moderation_tools": "כלי ניטור", - "submit_to": "שלח אל <1>{{link}}</1>" + "submit_to": "שלח אל <1>{{link}}</1>", + "edit_subscriptions": "ערוך מנויים" } \ No newline at end of file diff --git a/public/translations/hi/default.json b/public/translations/hi/default.json index 24ef9272..961465b2 100644 --- a/public/translations/hi/default.json +++ b/public/translations/hi/default.json @@ -186,5 +186,6 @@ "posts_last_synced": "पोस्ट्स अंतिम बार {{dateAgo}} को सिंक की गईं", "community_settings": "समुदाय सेटिंग्स", "moderation_tools": "मॉडरेशन टूल्स", - "submit_to": "जमा करें <1>{{link}}</1>" + "submit_to": "जमा करें <1>{{link}}</1>", + "edit_subscriptions": "सदस्यता संपादित करें" } \ No newline at end of file diff --git a/public/translations/hu/default.json b/public/translations/hu/default.json index 2628ba82..11d36863 100644 --- a/public/translations/hu/default.json +++ b/public/translations/hu/default.json @@ -186,5 +186,6 @@ "posts_last_synced": "Legutóbb szinkronizált bejegyzések {{dateAgo}}", "community_settings": "Közösségi beállítások", "moderation_tools": "Moderációs eszközök", - "submit_to": "Küldés ide: <1>{{link}}</1>" + "submit_to": "Küldés ide: <1>{{link}}</1>", + "edit_subscriptions": "Előfizetések szerkesztése" } \ No newline at end of file diff --git a/public/translations/id/default.json b/public/translations/id/default.json index 8c7e94d1..38fcf044 100644 --- a/public/translations/id/default.json +++ b/public/translations/id/default.json @@ -186,5 +186,6 @@ "posts_last_synced": "Postingan yang terakhir disinkronkan {{dateAgo}}", "community_settings": "Pengaturan Komunitas", "moderation_tools": "Alat Moderasi", - "submit_to": "Kirim ke <1>{{link}}</1>" + "submit_to": "Kirim ke <1>{{link}}</1>", + "edit_subscriptions": "Edit Langganan" } \ No newline at end of file diff --git a/public/translations/it/default.json b/public/translations/it/default.json index 7cb7c448..372fe707 100644 --- a/public/translations/it/default.json +++ b/public/translations/it/default.json @@ -186,5 +186,6 @@ "posts_last_synced": "Post sincronizzati l'ultima volta {{dateAgo}}", "community_settings": "Impostazioni della comunità", "moderation_tools": "Strumenti di moderazione", - "submit_to": "Invia a <1>{{link}}</1>" + "submit_to": "Invia a <1>{{link}}</1>", + "edit_subscriptions": "Modifica sottoscrizioni" } \ No newline at end of file diff --git a/public/translations/ja/default.json b/public/translations/ja/default.json index c425f127..b217722a 100644 --- a/public/translations/ja/default.json +++ b/public/translations/ja/default.json @@ -186,5 +186,6 @@ "posts_last_synced": "最後に同期された投稿 {{dateAgo}}", "community_settings": "コミュニティの設定", "moderation_tools": "モデレーションツール", - "submit_to": "<1>{{link}}</1>に提出する" + "submit_to": "<1>{{link}}</1>に提出する", + "edit_subscriptions": "購読の編集" } \ No newline at end of file diff --git a/public/translations/ko/default.json b/public/translations/ko/default.json index c13ac703..b7114917 100644 --- a/public/translations/ko/default.json +++ b/public/translations/ko/default.json @@ -186,5 +186,6 @@ "posts_last_synced": "마지막 동기화된 게시물 {{dateAgo}}", "community_settings": "커뮤니티 설정", "moderation_tools": "모더레이션 도구", - "submit_to": "<1>{{link}}</1>(으)로 제출하기" + "submit_to": "<1>{{link}}</1>(으)로 제출하기", + "edit_subscriptions": "구독 편집" } \ No newline at end of file diff --git a/public/translations/mr/default.json b/public/translations/mr/default.json index ded37d99..aabcfe55 100644 --- a/public/translations/mr/default.json +++ b/public/translations/mr/default.json @@ -186,5 +186,6 @@ "posts_last_synced": "शेवटी सिंक केलेले पोस्ट्स {{dateAgo}}", "community_settings": "समुदाय सेटिंग्स", "moderation_tools": "निरीक्षण साधने", - "submit_to": "<1>{{link}}</1> कडे पाठवा" + "submit_to": "<1>{{link}}</1> कडे पाठवा", + "edit_subscriptions": "सदस्यता संपादने" } \ No newline at end of file diff --git a/public/translations/nl/default.json b/public/translations/nl/default.json index 80ca2008..195b234f 100644 --- a/public/translations/nl/default.json +++ b/public/translations/nl/default.json @@ -186,5 +186,6 @@ "posts_last_synced": "Laatst gesynchroniseerde berichten {{dateAgo}}", "community_settings": "Community-instellingen", "moderation_tools": "Moderatiehulpmiddelen", - "submit_to": "Verzenden naar <1>{{link}}</1>" + "submit_to": "Verzenden naar <1>{{link}}</1>", + "edit_subscriptions": "Abonnementen bewerken" } \ No newline at end of file diff --git a/public/translations/no/default.json b/public/translations/no/default.json index 73ceaa46..45672817 100644 --- a/public/translations/no/default.json +++ b/public/translations/no/default.json @@ -186,5 +186,6 @@ "posts_last_synced": "Innlegg sist synkronisert {{dateAgo}}", "community_settings": "Fellesskapsinnstillinger", "moderation_tools": "Moderasjonsverktøy", - "submit_to": "Send til <1>{{link}}</1>" + "submit_to": "Send til <1>{{link}}</1>", + "edit_subscriptions": "Rediger abonnementer" } \ No newline at end of file diff --git a/public/translations/pl/default.json b/public/translations/pl/default.json index fa7fa03f..2de3c93f 100644 --- a/public/translations/pl/default.json +++ b/public/translations/pl/default.json @@ -186,5 +186,6 @@ "posts_last_synced": "Ostatnio zsynchronizowane posty {{dateAgo}}", "community_settings": "Ustawienia społeczności", "moderation_tools": "Narzędzia moderacji", - "submit_to": "Prześlij do <1>{{link}}</1>" + "submit_to": "Prześlij do <1>{{link}}</1>", + "edit_subscriptions": "Edytuj subskrypcje" } \ No newline at end of file diff --git a/public/translations/pt/default.json b/public/translations/pt/default.json index a3b0766c..bc8c79e4 100644 --- a/public/translations/pt/default.json +++ b/public/translations/pt/default.json @@ -186,5 +186,6 @@ "posts_last_synced": "Últimas postagens sincronizadas {{dateAgo}}", "community_settings": "Configurações da comunidade", "moderation_tools": "Ferramentas de moderação", - "submit_to": "Enviar para <1>{{link}}</1>" + "submit_to": "Enviar para <1>{{link}}</1>", + "edit_subscriptions": "Editar assinaturas" } \ No newline at end of file diff --git a/public/translations/ro/default.json b/public/translations/ro/default.json index c00496f8..83181c09 100644 --- a/public/translations/ro/default.json +++ b/public/translations/ro/default.json @@ -186,5 +186,6 @@ "posts_last_synced": "Ultimele postări sincronizate {{dateAgo}}", "community_settings": "Setări ale comunității", "moderation_tools": "Instrumente de moderare", - "submit_to": "Trimite la <1>{{link}}</1>" + "submit_to": "Trimite la <1>{{link}}</1>", + "edit_subscriptions": "Editează abonamente" } \ No newline at end of file diff --git a/public/translations/ru/default.json b/public/translations/ru/default.json index 77c5b49e..add53a79 100644 --- a/public/translations/ru/default.json +++ b/public/translations/ru/default.json @@ -186,5 +186,6 @@ "posts_last_synced": "Последние синхронизированные посты {{dateAgo}}", "community_settings": "Настройки сообщества", "moderation_tools": "Инструменты модерации", - "submit_to": "Отправить на <1>{{link}}</1>" + "submit_to": "Отправить на <1>{{link}}</1>", + "edit_subscriptions": "Редактировать подписки" } \ No newline at end of file diff --git a/public/translations/sq/default.json b/public/translations/sq/default.json index 73e019ed..2b38be70 100644 --- a/public/translations/sq/default.json +++ b/public/translations/sq/default.json @@ -186,5 +186,6 @@ "posts_last_synced": "Postimet e fundit të sinkronizuara {{dateAgo}}", "community_settings": "Cilësimet e komunitetit", "moderation_tools": "Mjete moderimi", - "submit_to": "Dërgo te <1>{{link}}</1>" + "submit_to": "Dërgo te <1>{{link}}</1>", + "edit_subscriptions": "Ndrysho abonimet" } \ No newline at end of file diff --git a/public/translations/sv/default.json b/public/translations/sv/default.json index 8734a59d..4a0420a1 100644 --- a/public/translations/sv/default.json +++ b/public/translations/sv/default.json @@ -186,5 +186,6 @@ "posts_last_synced": "Senast synkroniserade inlägg {{dateAgo}}", "community_settings": "Samhällsinställningar", "moderation_tools": "Modereringsverktyg", - "submit_to": "Skicka till <1>{{link}}</1>" + "submit_to": "Skicka till <1>{{link}}</1>", + "edit_subscriptions": "Redigera prenumerationer" } \ No newline at end of file diff --git a/public/translations/te/default.json b/public/translations/te/default.json index e454c8c9..7226b739 100644 --- a/public/translations/te/default.json +++ b/public/translations/te/default.json @@ -186,5 +186,6 @@ "posts_last_synced": "పోస్టులు చివరిలో సింక్ అయ్యాయి {{dateAgo}}", "community_settings": "కమ్యూనిటీ సెట్టింగులు", "moderation_tools": "మాడరేషన్ సాధనాలు", - "submit_to": "<1>{{link}}</1> కు పంపండి" + "submit_to": "<1>{{link}}</1> కు పంపండి", + "edit_subscriptions": "సబ్‌స్క్రిప్షన్స్ సవరించండి" } \ No newline at end of file diff --git a/public/translations/th/default.json b/public/translations/th/default.json index 5ef2b87b..fde0fc3a 100644 --- a/public/translations/th/default.json +++ b/public/translations/th/default.json @@ -186,5 +186,6 @@ "posts_last_synced": "โพสต์ล่าสุดที่ซิงค์ {{dateAgo}}", "community_settings": "การตั้งค่าชุมชน", "moderation_tools": "เครื่องมือการตรวจสอบ", - "submit_to": "ส่งไปที่ <1>{{link}}</1>" + "submit_to": "ส่งไปที่ <1>{{link}}</1>", + "edit_subscriptions": "แก้ไขการสมัครสมาชิก" } \ No newline at end of file diff --git a/public/translations/tr/default.json b/public/translations/tr/default.json index 7b439dbc..d0bf6e41 100644 --- a/public/translations/tr/default.json +++ b/public/translations/tr/default.json @@ -186,5 +186,6 @@ "posts_last_synced": "Son senkronize edilen gönderiler {{dateAgo}}", "community_settings": "Topluluk Ayarları", "moderation_tools": "Moderasyon Araçları", - "submit_to": "<1>{{link}}</1> adresine gönder" + "submit_to": "<1>{{link}}</1> adresine gönder", + "edit_subscriptions": "Abonelikleri Düzenle" } \ No newline at end of file diff --git a/public/translations/uk/default.json b/public/translations/uk/default.json index 982e2c92..731a4fdb 100644 --- a/public/translations/uk/default.json +++ b/public/translations/uk/default.json @@ -186,5 +186,6 @@ "posts_last_synced": "Останні синхронізовані пости {{dateAgo}}", "community_settings": "Налаштування спільноти", "moderation_tools": "Інструменти модерації", - "submit_to": "Надіслати до <1>{{link}}</1>" + "submit_to": "Надіслати до <1>{{link}}</1>", + "edit_subscriptions": "Редагувати підписки" } \ No newline at end of file diff --git a/public/translations/ur/default.json b/public/translations/ur/default.json index 78901fc5..eb3f4c68 100644 --- a/public/translations/ur/default.json +++ b/public/translations/ur/default.json @@ -186,5 +186,6 @@ "posts_last_synced": "آخری مرتب سبقت کردہ پوسٹس {{dateAgo}}", "community_settings": "کمیونٹی کی ترتیبات", "moderation_tools": "موڈریشن ٹولز", - "submit_to": "جمع کرائیں <1>{{link}}</1>" + "submit_to": "جمع کرائیں <1>{{link}}</1>", + "edit_subscriptions": "سبسکرائب کو ترتیب دیں" } \ No newline at end of file diff --git a/public/translations/vi/default.json b/public/translations/vi/default.json index be69fa1c..9c6dd07e 100644 --- a/public/translations/vi/default.json +++ b/public/translations/vi/default.json @@ -186,5 +186,6 @@ "posts_last_synced": "Bài viết gần nhất đã đồng bộ {{dateAgo}}", "community_settings": "Cài đặt cộng đồng", "moderation_tools": "Công cụ kiểm duyệt", - "submit_to": "Gửi đến <1>{{link}}</1>" + "submit_to": "Gửi đến <1>{{link}}</1>", + "edit_subscriptions": "Chỉnh sửa đăng ký" } \ No newline at end of file diff --git a/public/translations/zh/default.json b/public/translations/zh/default.json index 6526fc23..4d58d479 100644 --- a/public/translations/zh/default.json +++ b/public/translations/zh/default.json @@ -186,5 +186,6 @@ "posts_last_synced": "最后同步的帖子 {{dateAgo}}", "community_settings": "社区设置", "moderation_tools": "管理工具", - "submit_to": "提交至 <1>{{link}}</1>" + "submit_to": "提交至 <1>{{link}}</1>", + "edit_subscriptions": "编辑订阅" } \ No newline at end of file diff --git a/src/components/topbar/topbar.module.css b/src/components/topbar/topbar.module.css index 9026c20f..1648211a 100644 --- a/src/components/topbar/topbar.module.css +++ b/src/components/topbar/topbar.module.css @@ -52,6 +52,12 @@ background-color: var(--background-primary); } +.editSubscriptions { + font-style: italic; + text-transform: uppercase; + border-top: 1px dotted var(--text-primary); +} + .dropChoices a { text-decoration: none; color: var(--text-primary); diff --git a/src/components/topbar/topbar.tsx b/src/components/topbar/topbar.tsx index 657e3624..dbcc7ed4 100644 --- a/src/components/topbar/topbar.tsx +++ b/src/components/topbar/topbar.tsx @@ -113,6 +113,11 @@ const TopBar = () => { {getShortAddress(subscription)} </Link> ))} + {subscriptions?.length > 0 && ( + <Link to='/communities' className={`${styles.dropdownChoice} ${styles.editSubscriptions}`}> + {t('edit_subscriptions')} + </Link> + )} {subscriptions?.length === 0 && <div className={`${styles.dropdownChoice} ${styles.noSubs}`}>{t('no_subscriptions_notice')}</div>} </div> </div>