diff --git a/public/assets/locked-icon.png b/public/assets/locked-icon.png new file mode 100644 index 00000000..6496e95f Binary files /dev/null and b/public/assets/locked-icon.png differ diff --git a/public/translations/ar/default.json b/public/translations/ar/default.json index 32fa25d4..cd09cb46 100644 --- a/public/translations/ar/default.json +++ b/public/translations/ar/default.json @@ -12,7 +12,6 @@ "dark": "داكن", "light": "فاتح", "my_communities": "مجتمعاتي", - "edit": "تعديل", "home": "الرئيسية", "all": "الكل", "submitted": "تم الإرسال", @@ -93,7 +92,7 @@ "create_community": "أنشئ مجتمعك الخاص", "moderators": "المشرفون", "about_moderation": "عن الإشراف", - "join": "انضمام", + "join": "انضم", "leave": "غادر", "created_by": "تم إنشاؤها بواسطة {{creatorAddress}}", "community_for": "مجتمع لمدة {{date}}", @@ -169,5 +168,9 @@ "mark_all_read": "وضع علامة على الجميع كمقروءة", "comment_reply": "رد على التعليق", "post_reply": "رد على المنشور", - "show_parent": "أظهر المشاركة المشار إليها" + "show_parent": "أظهر المشاركة المشار إليها", + "no_posts": "لا توجد مشاركات", + "media_url": "عنوان وسائط", + "post_locked_info": "هذا المنشور مغلق. لن تتمكن من التعليق.", + "no_subscriptions_notice": "لم تنضم إلى أي مجتمع بعد." } \ No newline at end of file diff --git a/public/translations/bn/default.json b/public/translations/bn/default.json index 786bc840..5e2d0a97 100644 --- a/public/translations/bn/default.json +++ b/public/translations/bn/default.json @@ -12,7 +12,6 @@ "dark": "অন্ধকার", "light": "আলো", "my_communities": "আমার সম্প্রদায়", - "edit": "সম্পাদনা", "home": "হোম", "all": "সব", "submitted": "জমা দেওয়া হয়েছে", @@ -93,7 +92,7 @@ "create_community": "আপনার নিজস্ব সম্প্রদায় তৈরি করুন", "moderators": "মডারেটর", "about_moderation": "মডারেশন টিম সম্পর্কে", - "join": "যোগদান", + "join": "যোগদান করুন", "leave": "ছাড়া", "created_by": "দ্বারা তৈরি {{creatorAddress}}", "community_for": "মেয়াদ শেষে একটি সম্প্রদায়", @@ -169,5 +168,9 @@ "mark_all_read": "সবগুলি পঠিত হিসেবে চিহ্নিত করুন", "comment_reply": "মন্তব্য প্রতিক্রিয়া", "post_reply": "পোস্ট উত্তর", - "show_parent": "সূচিত পোস্ট দেখুন" + "show_parent": "সূচিত পোস্ট দেখুন", + "no_posts": "কোন পোস্ট নেই", + "media_url": "মিডিয়া ইউআরএল", + "post_locked_info": "এই পোস্টটি লক হয়েছে। আপনি মন্তব্য করতে পারবেন না।", + "no_subscriptions_notice": "আপনি এখনো কোনও সম্প্রদানে যোগ দিননি।" } \ No newline at end of file diff --git a/public/translations/cs/default.json b/public/translations/cs/default.json index efe32652..e9c54d5d 100644 --- a/public/translations/cs/default.json +++ b/public/translations/cs/default.json @@ -12,7 +12,6 @@ "dark": "Tmavý", "light": "Světlá", "my_communities": "Mé komunity", - "edit": "Upravit", "home": "Domů", "all": "Vše", "submitted": "Odesláno", @@ -93,7 +92,7 @@ "create_community": "Vytvořte si vlastní komunitu", "moderators": "moderátoři", "about_moderation": "o moderaci týmu", - "join": "připojit se", + "join": "Připojit se", "leave": "odejít", "created_by": "vytvořeno uživatelem {{creatorAddress}}", "community_for": "komunita po dobu {{date}}", @@ -169,5 +168,9 @@ "mark_all_read": "označit vše jako přečtené", "comment_reply": "odpovědět na komentář", "post_reply": "odpovědět na příspěvek", - "show_parent": "zobrazit příspěvek, na který se odkazuje" + "show_parent": "zobrazit příspěvek, na který se odkazuje", + "no_posts": "žádné příspěvky", + "media_url": "URL médií", + "post_locked_info": "Tento příspěvek je uzamčen. Nebudete moci komentovat.", + "no_subscriptions_notice": "Dosud jste se nepřipojili k žádné komunitě." } \ No newline at end of file diff --git a/public/translations/da/default.json b/public/translations/da/default.json index 99031922..3f864352 100644 --- a/public/translations/da/default.json +++ b/public/translations/da/default.json @@ -12,7 +12,6 @@ "dark": "Mørk", "light": "Lys", "my_communities": "Mine samfund", - "edit": "Rediger", "home": "Hjem", "all": "Alle", "submitted": "Indsendt", @@ -93,7 +92,7 @@ "create_community": "Opret din egen fællesskab", "moderators": "moderatorer", "about_moderation": "om moderationsholdet", - "join": "bliv medlem", + "join": "Deltag", "leave": "forlad", "created_by": "oprettet af {{creatorAddress}}", "community_for": "fællesskab i {{date}}", @@ -169,5 +168,9 @@ "mark_all_read": "markér alle som læst", "comment_reply": "svar på kommentar", "post_reply": "svar på indlæg", - "show_parent": "vis den henviste post" + "show_parent": "vis den henviste post", + "no_posts": "ingen indlæg", + "media_url": "medie-URL", + "post_locked_info": "Dette indlæg er låst. Du kan ikke kommentere.", + "no_subscriptions_notice": "Du har endnu ikke tilsluttet dig nogen fællesskab." } \ No newline at end of file diff --git a/public/translations/de/default.json b/public/translations/de/default.json index fd785122..9709e359 100644 --- a/public/translations/de/default.json +++ b/public/translations/de/default.json @@ -12,7 +12,6 @@ "dark": "Dunkel", "light": "hell", "my_communities": "meine Communities", - "edit": "ändern", "home": "hauptseite", "all": "alle", "submitted": "eingereicht", @@ -93,7 +92,7 @@ "create_community": "Erstelle deine eigene Community", "moderators": "Moderatoren", "about_moderation": "über das Moderationsteam", - "join": "beitreten", + "join": "Beitreten", "leave": "verlassen", "created_by": "erstellt von {{creatorAddress}}", "community_for": "eine Gemeinschaft seit {{date}}", @@ -169,5 +168,9 @@ "mark_all_read": "alle als gelesen markieren", "comment_reply": "Kommentar antworten", "post_reply": "Beitrag antworten", - "show_parent": "zeige den verlinkten Beitrag" + "show_parent": "zeige den verlinkten Beitrag", + "no_posts": "keine Beiträge", + "media_url": "Medien-URL", + "post_locked_info": "Dieser Beitrag ist gesperrt. Sie können keine Kommentare abgeben.", + "no_subscriptions_notice": "Du hast dich noch keiner Community angeschlossen." } \ No newline at end of file diff --git a/public/translations/el/default.json b/public/translations/el/default.json index 374dc069..e34051fc 100644 --- a/public/translations/el/default.json +++ b/public/translations/el/default.json @@ -12,7 +12,6 @@ "dark": "Σκοτεινός", "light": "Φωτεινό", "my_communities": "Οι κοινότητές μου", - "edit": "Επεξεργασία", "home": "Αρχική", "all": "Όλα", "submitted": "Υποβλήθηκε", @@ -93,7 +92,7 @@ "create_community": "Δημιουργήστε τη δική σας κοινότητα", "moderators": "διαχειριστές", "about_moderation": "σχετικά με τη διαμεσολάβηση ομάδα", - "join": "συμμετοχή", + "join": "Συμμετοχή", "leave": "φύγετε", "created_by": "δημιουργήθηκε από {{creatorAddress}}", "community_for": "κοινότητα για {{date}}", @@ -169,5 +168,9 @@ "mark_all_read": "επισήμανση όλων ως διαβασμένα", "comment_reply": "απάντηση σε σχόλιο", "post_reply": "απάντηση στην ανάρτηση", - "show_parent": "εμφάνιση της αναφερόμενης δημοσίευσης" + "show_parent": "εμφάνιση της αναφερόμενης δημοσίευσης", + "no_posts": "κανένα άρθρο", + "media_url": "URL πολυμέσων", + "post_locked_info": "Αυτή η ανάρτηση είναι κλειδωμένη. Δεν θα μπορείτε να σχολιάσετε.", + "no_subscriptions_notice": "Δεν έχετε εγγραφεί ακόμη σε κοινότητα." } \ No newline at end of file diff --git a/public/translations/en/default.json b/public/translations/en/default.json index d3a3570d..420d7e0b 100644 --- a/public/translations/en/default.json +++ b/public/translations/en/default.json @@ -12,7 +12,6 @@ "dark": "dark", "light": "light", "my_communities": "my communities", - "edit": "edit", "home": "home", "all": "all", "submitted": "submitted", @@ -93,7 +92,7 @@ "create_community": "Create your own community", "moderators": "moderators", "about_moderation": "about moderation team", - "join": "join", + "join": "Join", "leave": "leave", "created_by": "created by {{creatorAddress}}", "community_for": "a community for {{date}}", @@ -169,5 +168,9 @@ "mark_all_read": "mark all as read", "comment_reply": "comment reply", "post_reply": "post reply", - "show_parent": "show parent" + "show_parent": "show parent", + "no_posts": "no posts", + "media_url": "media url", + "post_locked_info": "This post is locked. You won't be able to comment.", + "no_subscriptions_notice": "You haven't joined any community." } \ No newline at end of file diff --git a/public/translations/es/default.json b/public/translations/es/default.json index e3e27a87..dbd1185f 100644 --- a/public/translations/es/default.json +++ b/public/translations/es/default.json @@ -12,7 +12,6 @@ "dark": "oscuro", "light": "claro", "my_communities": "mis comunidades", - "edit": "editar", "home": "inicio", "all": "todos", "submitted": "enviado", @@ -93,7 +92,7 @@ "create_community": "Crea tu propia comunidad", "moderators": "moderadores", "about_moderation": "sobre el equipo de moderación", - "join": "unirse", + "join": "Unirse", "leave": "salir", "created_by": "creado por {{creatorAddress}}", "community_for": "una comunidad por {{date}}", @@ -169,5 +168,9 @@ "mark_all_read": "marcar todos como leídos", "comment_reply": "responder al comentario", "post_reply": "responder al post", - "show_parent": "mostrar el post al que se hace referencia" + "show_parent": "mostrar el post al que se hace referencia", + "no_posts": "sin publicaciones", + "media_url": "URL de medios", + "post_locked_info": "Esta publicación está bloqueada. No podrás comentar.", + "no_subscriptions_notice": "Todavía no te has unido a ninguna comunidad." } \ No newline at end of file diff --git a/public/translations/fa/default.json b/public/translations/fa/default.json index 9e5ef723..b41743c0 100644 --- a/public/translations/fa/default.json +++ b/public/translations/fa/default.json @@ -12,7 +12,6 @@ "dark": "تاریک", "light": "روشن", "my_communities": "جوامع من", - "edit": "ویرایش", "home": "خانه", "all": "همه", "submitted": "ارسال شده", @@ -169,5 +168,9 @@ "mark_all_read": "نشان دادن همه به عنوان خوانده شده", "comment_reply": "پاسخ به نظر", "post_reply": "پاسخ به پست", - "show_parent": "نمایش پست مرجع داده شده" + "show_parent": "نمایش پست مرجع داده شده", + "no_posts": "بدون پست", + "media_url": "آدرس رسانه", + "post_locked_info": "این پست قفل شده است. نمی‌توانید نظر دهید.", + "no_subscriptions_notice": "هنوز به هیچ انجمنی پیوسته نشده‌اید." } \ No newline at end of file diff --git a/public/translations/fi/default.json b/public/translations/fi/default.json index d3ba723b..b4069620 100644 --- a/public/translations/fi/default.json +++ b/public/translations/fi/default.json @@ -12,7 +12,6 @@ "dark": "Tumma", "light": "Vaalea", "my_communities": "Omat yhteisöt", - "edit": "Muokkaa", "home": "Etusivu", "all": "Kaikki", "submitted": "Lähetetty", @@ -93,7 +92,7 @@ "create_community": "Luo oma yhteisösi", "moderators": "moderaattorit", "about_moderation": "tietoa moderaatiotiimistä", - "join": "liity", + "join": "Liity", "leave": "poistu", "created_by": "luonut {{creatorAddress}}", "community_for": "yhteisössä {{date}}", @@ -169,5 +168,9 @@ "mark_all_read": "merkitse kaikki luetuiksi", "comment_reply": "vastaa kommenttiin", "post_reply": "vastaa viestiin", - "show_parent": "näytä viitattu viesti" + "show_parent": "näytä viitattu viesti", + "no_posts": "ei viestejä", + "media_url": "medialinkki", + "post_locked_info": "Tämä viesti on lukittu. Et voi kommentoida sitä.", + "no_subscriptions_notice": "Et ole vielä liittynyt mihinkään yhteisöön." } \ No newline at end of file diff --git a/public/translations/fil/default.json b/public/translations/fil/default.json index efc5913a..e1a13ca8 100644 --- a/public/translations/fil/default.json +++ b/public/translations/fil/default.json @@ -12,7 +12,6 @@ "dark": "Madilim", "light": "Maliwanag", "my_communities": "Aking mga Komunidad", - "edit": "I-edit", "home": "Bahay", "all": "Lahat", "submitted": "Naipadala", @@ -93,7 +92,7 @@ "create_community": "Lumikha ng sariling komunidad", "moderators": "moderators", "about_moderation": "tungkol sa koponan ng moderation", - "join": "sumali", + "join": "Sumali", "leave": "iwanan", "created_by": "likha ni {{creatorAddress}}", "community_for": "isang komunidad para sa {{date}}", @@ -169,5 +168,9 @@ "mark_all_read": "tandaan ang lahat bilang nabasa", "comment_reply": "sagot sa komento", "post_reply": "sagot sa post", - "show_parent": "ipakita ang tinutukoy na post" + "show_parent": "ipakita ang tinutukoy na post", + "no_posts": "walang post", + "media_url": "media url", + "post_locked_info": "Ang post na ito ay naka-lock. Hindi ka makakapagkomento.", + "no_subscriptions_notice": "Hindi ka pa sumali sa anumang komunidad." } \ No newline at end of file diff --git a/public/translations/fr/default.json b/public/translations/fr/default.json index c442a89e..04199993 100644 --- a/public/translations/fr/default.json +++ b/public/translations/fr/default.json @@ -12,7 +12,6 @@ "dark": "sombre", "light": "clair", "my_communities": "mes communautés", - "edit": "modifier", "home": "accueil", "all": "tous", "submitted": "soumis", @@ -93,7 +92,7 @@ "create_community": "Créez votre propre communauté", "moderators": "modérateurs", "about_moderation": "à propos de l'équipe de modération", - "join": "rejoindre", + "join": "Rejoindre", "leave": "quitter", "created_by": "créé par {{creatorAddress}}", "community_for": "une communauté depuis {{date}}", @@ -169,5 +168,9 @@ "mark_all_read": "marquer tout comme lu", "comment_reply": "répondre au commentaire", "post_reply": "répondre au post", - "show_parent": "afficher le post référencé" + "show_parent": "afficher le post référencé", + "no_posts": "pas de publications", + "media_url": "URL multimédia", + "post_locked_info": "Ce post est verrouillé. Vous ne pourrez pas commenter.", + "no_subscriptions_notice": "Vous n'avez rejoint aucune communauté." } \ No newline at end of file diff --git a/public/translations/he/default.json b/public/translations/he/default.json index c1c3864b..b6b91560 100644 --- a/public/translations/he/default.json +++ b/public/translations/he/default.json @@ -12,7 +12,6 @@ "dark": "כהה", "light": "בהיר", "my_communities": "הקהילות שלי", - "edit": "ערוך", "home": "בית", "all": "הכל", "submitted": "נשלח", @@ -93,7 +92,7 @@ "create_community": "צור את הקהילה שלך", "moderators": "מנהלים", "about_moderation": "אודות צוות ההנהלה", - "join": "הצטרפות", + "join": "הצטרף", "leave": "לצאת", "created_by": "נוצר על ידי {{creatorAddress}}", "community_for": "קהילה למשך {{date}}", @@ -169,5 +168,9 @@ "mark_all_read": "סמן הכל כנקרא", "comment_reply": "הגב לתגובה", "post_reply": "הגב לפוסט", - "show_parent": "הצג את הפוסט המתייחס אליו" + "show_parent": "הצג את הפוסט המתייחס אליו", + "no_posts": "אין פוסטים", + "media_url": "כתובת מדיה", + "post_locked_info": "הפוסט הזה נעול. אינך יכול להגיב.", + "no_subscriptions_notice": "עדיין לא הצטרפת לאף קהילה." } \ No newline at end of file diff --git a/public/translations/hi/default.json b/public/translations/hi/default.json index 18ff1068..98d30c48 100644 --- a/public/translations/hi/default.json +++ b/public/translations/hi/default.json @@ -12,7 +12,6 @@ "dark": "अंधेरा", "light": "हल्का", "my_communities": "मेरे समुदाय", - "edit": "संपादित करें", "home": "होम", "all": "सब", "submitted": "भेजा गया", @@ -169,5 +168,9 @@ "mark_all_read": "सभी को पढ़ा हुआ चिह्नित करें", "comment_reply": "कमेंट का जवाब दें", "post_reply": "पोस्ट का जवाब दें", - "show_parent": "संदर्भित पोस्ट दिखाएं" + "show_parent": "संदर्भित पोस्ट दिखाएं", + "no_posts": "कोई पोस्ट नहीं", + "media_url": "मीडिया यूआरएल", + "post_locked_info": "यह पोस्ट बंद है। आप टिप्पणी नहीं कर सकेंगे।", + "no_subscriptions_notice": "आपने अब तक किसी समुदाय में शामिल नहीं हुए हैं।" } \ No newline at end of file diff --git a/public/translations/hu/default.json b/public/translations/hu/default.json index 64931dc4..07f981bf 100644 --- a/public/translations/hu/default.json +++ b/public/translations/hu/default.json @@ -12,7 +12,6 @@ "dark": "Sötét", "light": "Világos", "my_communities": "Saját közösségeim", - "edit": "Szerkesztés", "home": "Főoldal", "all": "Összes", "submitted": "Beküldve", @@ -93,7 +92,7 @@ "create_community": "Hozd létre saját közösséged", "moderators": "moderátorok", "about_moderation": "a moderációs csapatról", - "join": "csatlakozás", + "join": "Csatlakozás", "leave": "elhagy", "created_by": "készítette {{creatorAddress}}", "community_for": "egy közösség {{date}}", @@ -169,5 +168,9 @@ "mark_all_read": "összes megjelölése olvasottként", "comment_reply": "válasz a hozzászólásra", "post_reply": "válasz a posztra", - "show_parent": "mutassa a hivatkozott bejegyzést" + "show_parent": "mutassa a hivatkozott bejegyzést", + "no_posts": "nincsenek hozzászólások", + "media_url": "média URL", + "post_locked_info": "Ez a bejegyzés zárolva van. Nem fogsz tudni hozzászólni.", + "no_subscriptions_notice": "Még nem csatlakoztál egyetlen közösséghez sem." } \ No newline at end of file diff --git a/public/translations/id/default.json b/public/translations/id/default.json index 2d7503b7..fb95c30b 100644 --- a/public/translations/id/default.json +++ b/public/translations/id/default.json @@ -12,7 +12,6 @@ "dark": "Gelap", "light": "Terang", "my_communities": "Komunitas Saya", - "edit": "Edit", "home": "Beranda", "all": "Semua", "submitted": "Dikirim", @@ -93,7 +92,7 @@ "create_community": "Buat komunitas sendiri", "moderators": "moderator", "about_moderation": "tentang tim moderasi", - "join": "bergabung", + "join": "Gabung", "leave": "tinggalkan", "created_by": "dibuat oleh {{creatorAddress}}", "community_for": "sebuah komunitas selama {{date}}", @@ -169,5 +168,9 @@ "mark_all_read": "tandai semua sebagai telah dibaca", "comment_reply": "balas komentar", "post_reply": "balas postingan", - "show_parent": "tampilkan posting yang dirujuk" + "show_parent": "tampilkan posting yang dirujuk", + "no_posts": "tidak ada posting", + "media_url": "URL media", + "post_locked_info": "Pos ini terkunci. Anda tidak akan dapat mengomentari.", + "no_subscriptions_notice": "Anda belum bergabung dengan komunitas mana pun." } \ No newline at end of file diff --git a/public/translations/it/default.json b/public/translations/it/default.json index efe26f64..d0d0ae60 100644 --- a/public/translations/it/default.json +++ b/public/translations/it/default.json @@ -12,7 +12,6 @@ "dark": "scuro", "light": "chiaro", "my_communities": "le mie comunità", - "edit": "modifica", "home": "home", "all": "tutti", "submitted": "inviato", @@ -93,7 +92,7 @@ "create_community": "Crea la tua comunità", "moderators": "moderatori", "about_moderation": "info sul team dei moderatori", - "join": "iscriviti", + "join": "Unisciti", "leave": "lascia", "created_by": "creata da {{creatorAddress}}", "community_for": "una comunità da {{date}}", @@ -169,5 +168,9 @@ "mark_all_read": "segna tutti come letti", "comment_reply": "rispondi al commento", "post_reply": "rispondi al post", - "show_parent": "mostra il post a cui è riferito" + "show_parent": "mostra il post a cui è riferito", + "no_posts": "nessun post", + "media_url": "URL media", + "post_locked_info": "Questo post è stato bloccato. Non potrai commentarlo.", + "no_subscriptions_notice": "Non ti sei ancora unito a nessuna comunità." } \ No newline at end of file diff --git a/public/translations/ja/default.json b/public/translations/ja/default.json index d0a030a1..95e5cce1 100644 --- a/public/translations/ja/default.json +++ b/public/translations/ja/default.json @@ -12,7 +12,6 @@ "dark": "暗い", "light": "明るい", "my_communities": "マイコミュニティ", - "edit": "編集", "home": "ホーム", "all": "すべて", "submitted": "送信済み", @@ -93,7 +92,7 @@ "create_community": "独自のコミュニティを作成", "moderators": "モデレーター", "about_moderation": "モデレーションチームについて", - "join": "参加する", + "join": "参加", "leave": "退出", "created_by": "作成者:{{creatorAddress}}", "community_for": "{{date}} のコミュニティ", @@ -169,5 +168,9 @@ "mark_all_read": "すべてを既読にする", "comment_reply": "コメントに返信", "post_reply": "投稿に返信", - "show_parent": "参照されている投稿を表示" + "show_parent": "参照されている投稿を表示", + "no_posts": "投稿はありません", + "media_url": "メディア URL", + "post_locked_info": "この投稿はロックされています。コメントできません。", + "no_subscriptions_notice": "まだどのコミュニティにも参加していません。" } \ No newline at end of file diff --git a/public/translations/ko/default.json b/public/translations/ko/default.json index 4edbcae4..6f653fb6 100644 --- a/public/translations/ko/default.json +++ b/public/translations/ko/default.json @@ -12,7 +12,6 @@ "dark": "어두운", "light": "밝은", "my_communities": "내 커뮤니티", - "edit": "편집", "home": "홈", "all": "모두", "submitted": "제출됨", @@ -93,7 +92,7 @@ "create_community": "나만의 커뮤니티 만들기", "moderators": "모더레이터", "about_moderation": "모더레이션 팀 정보", - "join": "가입하기", + "join": "가입", "leave": "나가기", "created_by": "만든 사람: {{creatorAddress}}", "community_for": "{{date}}에 대한 커뮤니티", @@ -169,5 +168,9 @@ "mark_all_read": "모두 읽은 상태로 표시", "comment_reply": "댓글 답글", "post_reply": "게시물 답글", - "show_parent": "참조된 게시물 표시" + "show_parent": "참조된 게시물 표시", + "no_posts": "게시물이 없습니다", + "media_url": "미디어 URL", + "post_locked_info": "이 게시물은 잠겨 있습니다. 댓글을 남길 수 없습니다.", + "no_subscriptions_notice": "아직 어떤 커뮤니티에도 가입하지 않았습니다." } \ No newline at end of file diff --git a/public/translations/mr/default.json b/public/translations/mr/default.json index a32b0591..19078b60 100644 --- a/public/translations/mr/default.json +++ b/public/translations/mr/default.json @@ -12,7 +12,6 @@ "dark": "गडद", "light": "पांढरा", "my_communities": "माझ्या समुदायांतील", - "edit": "संपादित करा", "home": "मुख्यपृष्ठ", "all": "सर्व", "submitted": "सबमिट केले", @@ -93,7 +92,7 @@ "create_community": "तुमचं स्वत: संघ तयार करा", "moderators": "मॉडरेटर्स", "about_moderation": "मॉडरेशन टीमविषयी", - "join": "सामील व्हा", + "join": "सामील होऊ", "leave": "सोडा", "created_by": "द्वारे तयार केले {{creatorAddress}}", "community_for": "{{date}}साठी एक समुदाय", @@ -169,5 +168,9 @@ "mark_all_read": "सर्व कोणत्याही वाचल्याचं दर्जा", "comment_reply": "कॉमेंटचा उत्तर", "post_reply": "पोस्टचा उत्तर", - "show_parent": "संदर्भित पोस्ट दाखवा" + "show_parent": "संदर्भित पोस्ट दाखवा", + "no_posts": "कोणतेही पोस्ट नाहीत", + "media_url": "मिडिया URL", + "post_locked_info": "हा पोस्ट लॉक झाला आहे. आपण टिप्पणी करू शकणार नाहीत.", + "no_subscriptions_notice": "तुम्ही अद्याप कोणत्याही संघात सामील झालं नाही." } \ No newline at end of file diff --git a/public/translations/nl/default.json b/public/translations/nl/default.json index e4b4377f..31114f33 100644 --- a/public/translations/nl/default.json +++ b/public/translations/nl/default.json @@ -12,7 +12,6 @@ "dark": "Donker", "light": "Licht", "my_communities": "Mijn gemeenschappen", - "edit": "Bewerken", "home": "Thuis", "all": "Alle", "submitted": "Ingediend", @@ -93,7 +92,7 @@ "create_community": "Maak je eigen gemeenschap", "moderators": "moderators", "about_moderation": "over het moderatieteam", - "join": "meedoen", + "join": "Lid worden", "leave": "vertrekken", "created_by": "gemaakt door {{creatorAddress}}", "community_for": "een gemeenschap voor {{date}}", @@ -169,5 +168,9 @@ "mark_all_read": "markeer alles als gelezen", "comment_reply": "reageren op reactie", "post_reply": "reageren op bericht", - "show_parent": "toon de verwezen post" + "show_parent": "toon de verwezen post", + "no_posts": "geen berichten", + "media_url": "media-url", + "post_locked_info": "Dit bericht is vergrendeld. Je kunt geen opmerkingen plaatsen.", + "no_subscriptions_notice": "Je hebt je nog niet bij een community aangesloten." } \ No newline at end of file diff --git a/public/translations/no/default.json b/public/translations/no/default.json index d6d8fc92..717d89e1 100644 --- a/public/translations/no/default.json +++ b/public/translations/no/default.json @@ -12,7 +12,6 @@ "dark": "Mørk", "light": "Lys", "my_communities": "Mine samfunn", - "edit": "Rediger", "home": "Hjem", "all": "Alle", "submitted": "Innsendt", @@ -93,7 +92,7 @@ "create_community": "Opprett din egen fellesskap", "moderators": "moderatorer", "about_moderation": "om moderasjonsteamet", - "join": "bli med", + "join": "Bli med", "leave": "forlat", "created_by": "opprettet av {{creatorAddress}}", "community_for": "et fellesskap for {{date}}", @@ -169,5 +168,9 @@ "mark_all_read": "merk alle som lest", "comment_reply": "svar på kommentar", "post_reply": "svar på innlegg", - "show_parent": "vis den refererte posten" + "show_parent": "vis den refererte posten", + "no_posts": "ingen innlegg", + "media_url": "medie-URL", + "post_locked_info": "Dette innlegget er låst. Du kan ikke kommentere.", + "no_subscriptions_notice": "Du har ikke blitt med i noen fellesskap ennå." } \ No newline at end of file diff --git a/public/translations/pl/default.json b/public/translations/pl/default.json index 82b5ee28..7c00a049 100644 --- a/public/translations/pl/default.json +++ b/public/translations/pl/default.json @@ -12,7 +12,6 @@ "dark": "Ciemny", "light": "Jasne", "my_communities": "Moje społeczności", - "edit": "Edytuj", "home": "Strona główna", "all": "Wszystko", "submitted": "Wysłane", @@ -93,7 +92,7 @@ "create_community": "Utwórz własną społeczność", "moderators": "moderatorzy", "about_moderation": "o zespole moderacji", - "join": "dołącz", + "join": "Dołącz", "leave": "opuść", "created_by": "utworzone przez {{creatorAddress}}", "community_for": "społeczność przez {{date}}", @@ -169,5 +168,9 @@ "mark_all_read": "oznacz wszystko jako przeczytane", "comment_reply": "odpowiedź na komentarz", "post_reply": "odpowiedź na post", - "show_parent": "pokaż post, do którego jest odwołanie" + "show_parent": "pokaż post, do którego jest odwołanie", + "no_posts": "brak postów", + "media_url": "URL mediów", + "post_locked_info": "Ten post jest zablokowany. Nie będziesz mógł komentować.", + "no_subscriptions_notice": "Nie dołączyłeś jeszcze do żadnej społeczności." } \ No newline at end of file diff --git a/public/translations/pt/default.json b/public/translations/pt/default.json index 84bb3cec..069b0640 100644 --- a/public/translations/pt/default.json +++ b/public/translations/pt/default.json @@ -12,7 +12,6 @@ "dark": "escuro", "light": "claro", "my_communities": "minhas comunidades", - "edit": "editar", "home": "início", "all": "todos", "submitted": "enviado", @@ -93,7 +92,7 @@ "create_community": "Crie sua própria comunidade", "moderators": "moderadores", "about_moderation": "sobre a equipe de moderação", - "join": "aderir", + "join": "Junte-se", "leave": "sair", "created_by": "criado por {{creatorAddress}}", "community_for": "uma comunidade por {{date}}", @@ -169,5 +168,9 @@ "mark_all_read": "marcar todos como lidos", "comment_reply": "responder ao comentário", "post_reply": "responder ao post", - "show_parent": "mostrar a postagem referenciada" + "show_parent": "mostrar a postagem referenciada", + "no_posts": "sem publicações", + "media_url": "URL de mídia", + "post_locked_info": "Esta postagem está bloqueada. Você não poderá comentar.", + "no_subscriptions_notice": "Ainda não se juntou a nenhuma comunidade." } \ No newline at end of file diff --git a/public/translations/ro/default.json b/public/translations/ro/default.json index a46c2b41..dabc6fe6 100644 --- a/public/translations/ro/default.json +++ b/public/translations/ro/default.json @@ -12,7 +12,6 @@ "dark": "Întunecat", "light": "Luminos", "my_communities": "Comunitățile mele", - "edit": "Editează", "home": "Acasă", "all": "Toate", "submitted": "Trimis", @@ -93,7 +92,7 @@ "create_community": "Creează-ți propria comunitate", "moderators": "moderatori", "about_moderation": "despre echipa de moderare", - "join": "alătură-te", + "join": "Alătură-te", "leave": "plecați", "created_by": "creat de {{creatorAddress}}", "community_for": "o comunitate pentru {{date}}", @@ -169,5 +168,9 @@ "mark_all_read": "marcați toate ca citite", "comment_reply": "răspunde la comentariu", "post_reply": "răspunde la postare", - "show_parent": "afișează postarea referită" + "show_parent": "afișează postarea referită", + "no_posts": "niciun post", + "media_url": "URL media", + "post_locked_info": "Acest post este blocat. Nu vei putea comenta.", + "no_subscriptions_notice": "Nu te-ai alăturat încă niciunei comunități." } \ No newline at end of file diff --git a/public/translations/ru/default.json b/public/translations/ru/default.json index 829ad1c0..0f5493c0 100644 --- a/public/translations/ru/default.json +++ b/public/translations/ru/default.json @@ -12,7 +12,6 @@ "dark": "Темный", "light": "Светлый", "my_communities": "Мои сообщества", - "edit": "Редактировать", "home": "Главная", "all": "Все", "submitted": "Отправлено", @@ -93,7 +92,7 @@ "create_community": "Создайте своё сообщество", "moderators": "модераторы", "about_moderation": "о модераторах", - "join": "присоединиться", + "join": "Присоединиться", "leave": "покинуть", "created_by": "создано {{creatorAddress}}", "community_for": "сообщество на {{date}}", @@ -169,5 +168,9 @@ "mark_all_read": "пометить все как прочитанные", "comment_reply": "ответить на комментарий", "post_reply": "ответить на пост", - "show_parent": "показать упомянутый пост" + "show_parent": "показать упомянутый пост", + "no_posts": "нет записей", + "media_url": "URL медиа", + "post_locked_info": "Этот пост заблокирован. Вы не сможете оставить комментарий.", + "no_subscriptions_notice": "Вы еще не присоединились ни к одному сообществу." } \ No newline at end of file diff --git a/public/translations/sq/default.json b/public/translations/sq/default.json index 611182b3..4efacf4b 100644 --- a/public/translations/sq/default.json +++ b/public/translations/sq/default.json @@ -12,7 +12,6 @@ "dark": "Errët", "light": "I ndritur", "my_communities": "Komunitetet e mia", - "edit": "Redakto", "home": "Kryefaqja", "all": "Të gjithë", "submitted": "I dërguar", @@ -93,7 +92,7 @@ "create_community": "Krijo komunitetin tënd të vet", "moderators": "moderatorët", "about_moderation": "rreth ekipit të moderimit", - "join": "bashkohu", + "join": "Bashkohu", "leave": "ndale", "created_by": "krijuar nga {{creatorAddress}}", "community_for": "një komunitet për {{date}}", @@ -169,5 +168,9 @@ "mark_all_read": "shëno të gjitha si të lexuara", "comment_reply": "përgjigju komentit", "post_reply": "përgjigju postës", - "show_parent": "shfaq postën e referuar" + "show_parent": "shfaq postën e referuar", + "no_posts": "asnjë postim", + "media_url": "media url", + "post_locked_info": "Ky post është bllokuar. Nuk do të jeni në gjendje të komentoni.", + "no_subscriptions_notice": "Nuk keni bashkuar akoma ndonjë komunitet." } \ No newline at end of file diff --git a/public/translations/sv/default.json b/public/translations/sv/default.json index 13e2388f..7d6d51b6 100644 --- a/public/translations/sv/default.json +++ b/public/translations/sv/default.json @@ -12,7 +12,6 @@ "dark": "Mörk", "light": "Ljus", "my_communities": "Mina gemenskaper", - "edit": "Redigera", "home": "Hem", "all": "Alla", "submitted": "Inskickad", @@ -93,7 +92,7 @@ "create_community": "Skapa din egen community", "moderators": "moderatorer", "about_moderation": "om modereringsteamet", - "join": "gå med", + "join": "Gå med", "leave": "lämna", "created_by": "skapat av {{creatorAddress}}", "community_for": "en gemenskap för {{date}}", @@ -169,5 +168,9 @@ "mark_all_read": "markera alla som läst", "comment_reply": "svara på kommentar", "post_reply": "svara på inlägg", - "show_parent": "visa den refererade posten" + "show_parent": "visa den refererade posten", + "no_posts": "inga inlägg", + "media_url": "media-url", + "post_locked_info": "Detta inlägg är låst. Du kommer inte att kunna kommentera.", + "no_subscriptions_notice": "Du har ännu inte gått med i någon gemenskap." } \ No newline at end of file diff --git a/public/translations/te/default.json b/public/translations/te/default.json index 3db8d9ab..77202d0d 100644 --- a/public/translations/te/default.json +++ b/public/translations/te/default.json @@ -12,7 +12,6 @@ "dark": "ముదురు", "light": "తెలుపు", "my_communities": "నా సముదాయాలు", - "edit": "సవరించు", "home": "హోమ్", "all": "అన్ని", "submitted": "సబ్మిట్ చేసినది", @@ -169,5 +168,9 @@ "mark_all_read": "అన్నిను చదవండి", "comment_reply": "కమెంట్ స్పందించండి", "post_reply": "పోస్టు స్పందించండి", - "show_parent": "సూచించబడిన పోస్ట్ చూపించు" + "show_parent": "సూచించబడిన పోస్ట్ చూపించు", + "no_posts": "పోస్టులు లేవు", + "media_url": "మీడియా URL", + "post_locked_info": "ఈ పోస్టు లాక్ చేయబడింది. మీరు వ్యాఖ్యానించలేరు.", + "no_subscriptions_notice": "మీరు ఇంకా ఏ కమ్యూనిటీలో చేరలేదు." } \ No newline at end of file diff --git a/public/translations/th/default.json b/public/translations/th/default.json index 2bb57deb..3e0b63b8 100644 --- a/public/translations/th/default.json +++ b/public/translations/th/default.json @@ -12,7 +12,6 @@ "dark": "มืด", "light": "สีขาว", "my_communities": "ชุมชนของฉัน", - "edit": "แก้ไข", "home": "หน้าแรก", "all": "ทั้งหมด", "submitted": "ส่งแล้ว", @@ -169,5 +168,9 @@ "mark_all_read": "ทำเครื่องหมายทั้งหมดว่าอ่านแล้ว", "comment_reply": "ตอบกลับความคิดเห็น", "post_reply": "ตอบกลับโพสต์", - "show_parent": "แสดงโพสต์ที่ถูกอ้างอิง" + "show_parent": "แสดงโพสต์ที่ถูกอ้างอิง", + "no_posts": "ไม่มีโพสต์", + "media_url": "URL สื่อ", + "post_locked_info": "โพสต์นี้ถูกล็อก คุณจะไม่สามารถแสดงความคิดเห็นได้", + "no_subscriptions_notice": "คุณยังไม่ได้เข้าร่วมชุมชนใด ๆ" } \ No newline at end of file diff --git a/public/translations/tr/default.json b/public/translations/tr/default.json index 6d0d4bc0..0732a36d 100644 --- a/public/translations/tr/default.json +++ b/public/translations/tr/default.json @@ -12,7 +12,6 @@ "dark": "Karanlık", "light": "Açık", "my_communities": "Topluluklarım", - "edit": "Düzenle", "home": "Ana Sayfa", "all": "Tümü", "submitted": "Gönderildi", @@ -93,7 +92,7 @@ "create_community": "Kendi topluluğunu oluştur", "moderators": "moderatorler", "about_moderation": "moderasyon ekibi hakkında", - "join": "katıl", + "join": "Katıl", "leave": "ayrıl", "created_by": "tarafından oluşturuldu {{creatorAddress}}", "community_for": "{{date}} için bir topluluk", @@ -169,5 +168,9 @@ "mark_all_read": "tümünü okundu olarak işaretle", "comment_reply": "yorumu yanıtla", "post_reply": "gönderiye yanıtla", - "show_parent": "atıfta bulunulan gönderiyi göster" + "show_parent": "atıfta bulunulan gönderiyi göster", + "no_posts": "gönderi yok", + "media_url": "medya URL'si", + "post_locked_info": "Bu gönderi kilitlendi. Yorum yapamayacaksınız.", + "no_subscriptions_notice": "Henüz herhangi bir topluluğa katılmadınız." } \ No newline at end of file diff --git a/public/translations/uk/default.json b/public/translations/uk/default.json index 3bd4c195..f7e48001 100644 --- a/public/translations/uk/default.json +++ b/public/translations/uk/default.json @@ -12,7 +12,6 @@ "dark": "Темний", "light": "Світлий", "my_communities": "Мої спільноти", - "edit": "Редагувати", "home": "Головна", "all": "Всі", "submitted": "Надіслано", @@ -93,7 +92,7 @@ "create_community": "Створіть своє співтовариство", "moderators": "модератори", "about_moderation": "про модерацію", - "join": "приєднатися", + "join": "Приєднатися", "leave": "покинути", "created_by": "створено {{creatorAddress}}", "community_for": "спільнота на {{date}}", @@ -169,5 +168,9 @@ "mark_all_read": "позначити всі як прочитані", "comment_reply": "відповісти на коментар", "post_reply": "відповісти на пост", - "show_parent": "показати зазначений допис" + "show_parent": "показати зазначений допис", + "no_posts": "немає повідомлень", + "media_url": "URL медіа", + "post_locked_info": "Цей пост заблокований. Ви не зможете залишити коментар.", + "no_subscriptions_notice": "Ви ще не приєдналися до жодної спільноти." } \ No newline at end of file diff --git a/public/translations/ur/default.json b/public/translations/ur/default.json index 230bea5e..3cf7826e 100644 --- a/public/translations/ur/default.json +++ b/public/translations/ur/default.json @@ -12,7 +12,6 @@ "dark": "تاریک", "light": "ہلکا", "my_communities": "میری کمیونٹیاں", - "edit": "تدوین کریں", "home": "ہوم", "all": "تمام", "submitted": "جمع کروائی گئی", @@ -169,5 +168,9 @@ "mark_all_read": "سب کو پڑھا ہوا مارک کریں", "comment_reply": "تبادلہ کریں جواب", "post_reply": "پوسٹ کا جواب دیں", - "show_parent": "ذکر کردہ پوسٹ دکھائیں" + "show_parent": "ذکر کردہ پوسٹ دکھائیں", + "no_posts": "کوئی پوسٹ نہیں", + "media_url": "میڈیا یو آر ایل", + "post_locked_info": "یہ پوسٹ بند ہے۔ آپ تبصرہ نہیں کر سکیں گے۔", + "no_subscriptions_notice": "آپ نے ابھی تک کسی بھی کمیونٹی میں شامل نہیں ہوئے۔" } \ No newline at end of file diff --git a/public/translations/vi/default.json b/public/translations/vi/default.json index d0040917..ee4c636b 100644 --- a/public/translations/vi/default.json +++ b/public/translations/vi/default.json @@ -12,7 +12,6 @@ "dark": "Tối", "light": "Sáng", "my_communities": "Cộng đồng của tôi", - "edit": "Chỉnh sửa", "home": "Trang chủ", "all": "Tất cả", "submitted": "Đã gửi", @@ -93,7 +92,7 @@ "create_community": "Tạo cộng đồng riêng của bạn", "moderators": "quản trị viên", "about_moderation": "về đội ngũ quản lý", - "join": "tham gia", + "join": "Tham gia", "leave": "rời", "created_by": "tạo bởi {{creatorAddress}}", "community_for": "một cộng đồng cho {{date}}", @@ -169,5 +168,9 @@ "mark_all_read": "đánh dấu tất cả là đã đọc", "comment_reply": "trả lời bình luận", "post_reply": "trả lời bài đăng", - "show_parent": "hiển thị bài viết được tham khảo" + "show_parent": "hiển thị bài viết được tham khảo", + "no_posts": "không có bài viết", + "media_url": "URL phương tiện", + "post_locked_info": "Bài viết này đã bị khóa. Bạn sẽ không thể bình luận.", + "no_subscriptions_notice": "Bạn chưa tham gia vào bất kỳ cộng đồng nào." } \ No newline at end of file diff --git a/public/translations/zh/default.json b/public/translations/zh/default.json index 4b14070d..0029b253 100644 --- a/public/translations/zh/default.json +++ b/public/translations/zh/default.json @@ -12,7 +12,6 @@ "dark": "暗", "light": "浅色", "my_communities": "我的社群", - "edit": "编辑", "home": "首页", "all": "全部", "submitted": "已提交", @@ -169,5 +168,9 @@ "mark_all_read": "全部标记为已读", "comment_reply": "回复评论", "post_reply": "回复帖子", - "show_parent": "显示被引用的帖子" + "show_parent": "显示被引用的帖子", + "no_posts": "没有帖子", + "media_url": "媒体链接", + "post_locked_info": "此帖已锁定。您将无法评论。", + "no_subscriptions_notice": "您尚未加入任何社区。" } \ No newline at end of file diff --git a/src/app.tsx b/src/app.tsx index 98437a39..9c35224f 100644 --- a/src/app.tsx +++ b/src/app.tsx @@ -13,6 +13,7 @@ import Profile from './views/profile'; import Settings from './views/settings'; import Submit from './views/submit'; import Subplebbit from './views/subplebbit'; +import Subplebbits from './views/subplebbits'; import AccountBar from './components/account-bar/'; import ChallengeModal from './components/challenge-modal'; import Header from './components/header'; @@ -96,6 +97,8 @@ function App() { } /> } /> } /> + + } /> diff --git a/src/components/account-bar/account-bar.tsx b/src/components/account-bar/account-bar.tsx index f1a13d37..ac7d4e95 100644 --- a/src/components/account-bar/account-bar.tsx +++ b/src/components/account-bar/account-bar.tsx @@ -83,7 +83,7 @@ const AccountBar = () => { accountDropdownOptions.push( createAccount()}> - +create + +{t('create')} , ); diff --git a/src/components/author-sidebar/author-sidebar.tsx b/src/components/author-sidebar/author-sidebar.tsx index a3fcb85c..bb301c5a 100644 --- a/src/components/author-sidebar/author-sidebar.tsx +++ b/src/components/author-sidebar/author-sidebar.tsx @@ -83,7 +83,7 @@ const AuthorSidebar = () => { const address = isAuthorPage ? params?.authorAddress : isProfilePage ? profileAccount?.author?.shortAddress : ''; const karma = isAuthorPage ? estimatedAuthorKarma : isProfilePage ? profileAccount?.karma : ''; - const { postScore, replyScore } = karma; + const { postScore, replyScore } = karma || { postScore: 0, replyScore: 0 }; const oldestCommentTimestamp = isAuthorPage ? authorOldestCommentTimestamp : isProfilePage ? profileOldestAccountTimestamp : Date.now(); const displayName = isAuthorPage ? authorAccount?.author?.displayName : isProfilePage ? profileAccount?.author?.displayName : ''; @@ -116,7 +116,7 @@ const AuthorSidebar = () => { {' '} ( - edit + {t('edit')} ) diff --git a/src/components/header/header.module.css b/src/components/header/header.module.css index d4462c9a..11235e9c 100644 --- a/src/components/header/header.module.css +++ b/src/components/header/header.module.css @@ -176,4 +176,8 @@ order: 3; margin-bottom: -4px; } +} + +.singleAboutButton { + margin-bottom: 1px; } \ No newline at end of file diff --git a/src/components/header/header.tsx b/src/components/header/header.tsx index 35b81707..8ad782e8 100644 --- a/src/components/header/header.tsx +++ b/src/components/header/header.tsx @@ -22,6 +22,7 @@ import { isProfileView, isProfileCommentsView, isProfileSubmittedView, + isSubplebbitsView, isUpvotedView, } from '../../lib/utils/view-utils'; import useTheme from '../../hooks/use-theme'; @@ -35,18 +36,12 @@ const AboutButton = () => { const params = useParams(); const location = useLocation(); const aboutLink = getAboutLink(location.pathname, params); - const isHomePage = isHomeView(location.pathname, params); const isAboutPage = isAboutView(location.pathname); + const isSubplebbitSubmitPage = isSubplebbitSubmitView(location.pathname, params); return (
  • - { - isHomePage && event.preventDefault(); - }} - > + {t('about')}
  • @@ -198,7 +193,32 @@ const InboxHeaderTabs = () => { ); }; +const SubplebbitsHeaderTabs = () => { + const { t } = useTranslation(); + + return ( + <> +
  • + + {t('home')} + +
  • +
  • + + proposed + +
  • +
  • + + {t('my_communities')} + +
  • + + ); +}; + const HeaderTabs = () => { + const { t } = useTranslation(); const params = useParams(); const location = useLocation(); const isAllPage = isAllView(location.pathname); @@ -210,6 +230,7 @@ const HeaderTabs = () => { const isProfilePage = isProfileView(location.pathname); const isSubplebbitPage = isSubplebbitView(location.pathname, params); const isSubplebbitSubmitPage = isSubplebbitSubmitView(location.pathname, params); + const isSubplebbitsPage = isSubplebbitsView(location.pathname); if (isPostPage) { return ; @@ -218,9 +239,11 @@ const HeaderTabs = () => { } else if ((isProfilePage || isAuthorPage) && !isPendingPage) { return ; } else if (isPendingPage) { - return pending; + return {t('pending')}; } else if (isInboxPage) { return ; + } else if (isSubplebbitsPage) { + return ; } return null; }; @@ -234,10 +257,11 @@ const HeaderTitle = ({ title, shortAddress }: { title: string; shortAddress: str const isInboxPage = isInboxView(location.pathname); const isPostPage = isPostView(location.pathname, params); const isProfilePage = isProfileView(location.pathname); - const isSubplebbitPage = isSubplebbitView(location.pathname, params); - const isSubmitPage = isSubmitView(location.pathname); - const isSubplebbitSubmitPage = isSubplebbitSubmitView(location.pathname, params); const isSettingsPage = isSettingsView(location.pathname); + const isSubmitPage = isSubmitView(location.pathname); + const isSubplebbitPage = isSubplebbitView(location.pathname, params); + const isSubplebbitSubmitPage = isSubplebbitSubmitView(location.pathname, params); + const isSubplebbitsPage = isSubplebbitsView(location.pathname); const subplebbitTitle = {title || shortAddress}; const submitTitle = {t('submit')}; @@ -262,6 +286,8 @@ const HeaderTitle = ({ title, shortAddress }: { title: string; shortAddress: str return authorTitle; } else if (isInboxPage) { return t('messages'); + } else if (isSubplebbitsPage) { + return 'communities'; } return null; }; diff --git a/src/components/post/expando/expando.module.css b/src/components/post/expando/expando.module.css index 48a06fea..2cf23899 100644 --- a/src/components/post/expando/expando.module.css +++ b/src/components/post/expando/expando.module.css @@ -17,7 +17,7 @@ .markdown { background-color: var(--background-markdown); - border: 1px solid var(--text-primary); + border: 1px solid var(--grey-light); border-radius: 7px; padding: 5px 10px; font-weight: 400; diff --git a/src/components/reply-form/reply-form.tsx b/src/components/reply-form/reply-form.tsx index 75528659..435706ac 100644 --- a/src/components/reply-form/reply-form.tsx +++ b/src/components/reply-form/reply-form.tsx @@ -76,7 +76,7 @@ const ReplyForm = ({ cid, isReplyingToReply, hideReplyForm }: ReplyFormProps) =>
    - media url: setContent.link(e.target.value)} /> + {t('media_url')}: setContent.link(e.target.value)} />
    @@ -160,7 +160,7 @@ const TopBar = () => { ))}
    - + {t('edit')} »
    diff --git a/src/lib/utils/view-utils.ts b/src/lib/utils/view-utils.ts index 4f7b8e52..40bd1005 100644 --- a/src/lib/utils/view-utils.ts +++ b/src/lib/utils/view-utils.ts @@ -106,6 +106,10 @@ export const isSubplebbitSubmitView = (pathname: string, params: ParamsType): bo return params.subplebbitAddress ? pathname === `/p/${params.subplebbitAddress}/submit` : false; }; +export const isSubplebbitsView = (pathname: string): boolean => { + return pathname.startsWith('/communities'); +}; + export const isUpvotedView = (pathname: string): boolean => { return pathname === '/profile/upvoted'; }; diff --git a/src/themes.css b/src/themes.css index 62b809bd..89b0732f 100644 --- a/src/themes.css +++ b/src/themes.css @@ -2,12 +2,17 @@ --orange: #FF7500; --green: #228822; --yellow: goldenrod; + --box-yellow-contrast: #ffd634; + --box-yellow-background: #fff7d7; + --box-yellow-icon: #ffd634; + --code-background: #fcfcfb; + --code-border: #e6e6de; --red: red; --gray-contrast: #888; --gray-overlay: #F7F7F7; --gray-overlay-border: #E9E9E9; --gray-border: #ddd; - --gray-light: #CCCCCA; + --gray-light: #ccc; --box-shadow-modal: 4px 4px 4px #ccc; --box-shadow-input: inset 0px 1px 1px rgba(0,0,0,0.3),0px 1px 0px rgba(255,255,255,0.6); --filter80: brightness(100%); @@ -50,6 +55,11 @@ --orange: #FF7500; --green: #228822; --yellow: rgb(200, 171, 0); + --box-yellow-contrast: rgb(163, 130, 0); + --box-yellow-background: rgb(56, 45, 0); + --box-yellow-icon: rgb(130, 103, 0); + --code-background: rgb(19, 19, 13); + --code-border: rgb(52, 58, 60); --red: rgb(200, 0, 0); --gray-contrast: #c7c7c7; --gray-overlay: #1f1f1f; diff --git a/src/views/post/post.module.css b/src/views/post/post.module.css index 14dfe246..ca3547ec 100644 --- a/src/views/post/post.module.css +++ b/src/views/post/post.module.css @@ -80,4 +80,46 @@ .repliesTitle { max-width: 100vw; } +} + +.lockedInfobar::before { + content: ''; + display: block; + width: 45px; + height: 100%; + background-color: var(--box-yellow-icon); + position: absolute; + left: 0; + top: 0; + background-position: center; + background-image: url('/public/assets/locked-icon.png'); + background-size: 20px 25px; + background-repeat: no-repeat; +} + +.lockedInfobar { + min-height: 45px; + padding-left: 55px; + box-sizing: border-box; + -webkit-box-sizing: border-box; + -moz-box-sizing: border-box; + background-color: var(--box-yellow-background); + border-color: var(--box-yellow-contrast); + border-style: solid; + border-width: 1px; + margin-bottom: 10px; + overflow: auto; + padding: 10px; + position: relative; +} + +.lockedInfobarText { + font-size: 12px; + color: var(--text-markdown); + unicode-bidi: isolate; + max-width: 60em; + word-wrap: break-word; + line-height: 1.25em; + margin: 5px 0; + padding-left: 45px; } \ No newline at end of file diff --git a/src/views/post/post.tsx b/src/views/post/post.tsx index 4d729f89..496c8a4c 100644 --- a/src/views/post/post.tsx +++ b/src/views/post/post.tsx @@ -66,6 +66,11 @@ const Post = () => { upvoteCount={upvoteCount} /> + {post?.locked && ( +
    +
    {t('post_locked_info')}
    +
    + )} {!isPendingPage && (
    diff --git a/src/views/profile/profile.tsx b/src/views/profile/profile.tsx index ee3ce605..94a5d75a 100644 --- a/src/views/profile/profile.tsx +++ b/src/views/profile/profile.tsx @@ -67,6 +67,7 @@ const SortDropdown: React.FC = ({ onSortChange }) => { }; const Profile = () => { + const { t } = useTranslation(); const account = useAccount(); const location = useLocation(); const params = useParams(); @@ -137,7 +138,7 @@ const Profile = () => {
    {account && !accountComments.length ? ( - 'no posts' + t('no_posts') ) : ( { + const { t } = useTranslation(); + const { address, createdAt, description, shortAddress, title } = subplebbit || {}; + const { allActiveUserCount } = useSubplebbitStats({ subplebbitAddress: address }); + + return ( +
    +
    + +
    +
    +
    + + p/{address.includes('.') ? address : shortAddress} + {title && `: ${title}`} + +
    + {description &&
    {description}
    } +
    + + {t('readers_count', { count: allActiveUserCount })}, {t('community_for', { date: getFormattedDuration(createdAt) })} + +
    +
    +
    + ); +}; + +const Subplebbits = () => { + const { t } = useTranslation(); + const { accountSubplebbits } = useAccountSubplebbits(); + const accountSubplebbitsArray = useMemo(() => Object.values(accountSubplebbits), [accountSubplebbits]); + + return ( +
    +
    + +
    +
    + click the {t('join')} or {t('leave')} buttons to choose which communities appear on the home feed. +
    + {accountSubplebbitsArray?.map((subplebbit) => )} +
    + ); +}; + +export default Subplebbits;