From a68b009f3e0e47a17628ef1384eeb858d36244f6 Mon Sep 17 00:00:00 2001 From: "plebeius.eth" Date: Wed, 27 Dec 2023 20:35:44 +0100 Subject: [PATCH 01/12] fix(header): correct height on mobile submit page --- src/components/header/header.module.css | 4 ++++ src/components/header/header.tsx | 10 ++-------- src/components/reply/reply.tsx | 1 - 3 files changed, 6 insertions(+), 9 deletions(-) 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..c98442c1 100644 --- a/src/components/header/header.tsx +++ b/src/components/header/header.tsx @@ -35,18 +35,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')}
  • diff --git a/src/components/reply/reply.tsx b/src/components/reply/reply.tsx index 45750bda..b18b7817 100644 --- a/src/components/reply/reply.tsx +++ b/src/components/reply/reply.tsx @@ -139,7 +139,6 @@ const InboxParentLink = ({ commentCid }: ParentLinkProps) => { const { postCid, parentCid } = inboxComment || {}; const parent = useComment({ commentCid: inboxComment?.postCid }); const { cid, content, title, subplebbitAddress } = parent || {}; - // const { t } = useTranslation(); const postTitle = (title?.length > 300 ? title?.slice(0, 300) + '...' : title) || (content?.length > 300 ? content?.slice(0, 300) + '...' : content); const isInboxCommentReply = postCid !== parentCid; From 85e3930a84752af7d46284b3a7ad1efa1b4c3b21 Mon Sep 17 00:00:00 2001 From: "plebeius.eth" Date: Thu, 28 Dec 2023 13:51:47 +0100 Subject: [PATCH 02/12] fix(author sidebar): undefined --- src/components/author-sidebar/author-sidebar.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/author-sidebar/author-sidebar.tsx b/src/components/author-sidebar/author-sidebar.tsx index a3fcb85c..760b6c0c 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 : ''; From b01e295ab56d1716b95ca6d600fc6cbda350f3fa Mon Sep 17 00:00:00 2001 From: "plebeius.eth" Date: Thu, 28 Dec 2023 14:18:48 +0100 Subject: [PATCH 03/12] chore(translations): no posts, media url --- 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 +++-- src/components/account-bar/account-bar.tsx | 2 +- src/components/author-sidebar/author-sidebar.tsx | 2 +- src/components/reply-form/reply-form.tsx | 2 +- src/views/profile/profile.tsx | 3 ++- 39 files changed, 110 insertions(+), 74 deletions(-) diff --git a/public/translations/ar/default.json b/public/translations/ar/default.json index 32fa25d4..28affa47 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": "تم الإرسال", @@ -169,5 +168,7 @@ "mark_all_read": "وضع علامة على الجميع كمقروءة", "comment_reply": "رد على التعليق", "post_reply": "رد على المنشور", - "show_parent": "أظهر المشاركة المشار إليها" + "show_parent": "أظهر المشاركة المشار إليها", + "no_posts": "لا توجد مشاركات", + "media_url": "عنوان وسائط" } \ No newline at end of file diff --git a/public/translations/bn/default.json b/public/translations/bn/default.json index 786bc840..fcafeb44 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": "জমা দেওয়া হয়েছে", @@ -169,5 +168,7 @@ "mark_all_read": "সবগুলি পঠিত হিসেবে চিহ্নিত করুন", "comment_reply": "মন্তব্য প্রতিক্রিয়া", "post_reply": "পোস্ট উত্তর", - "show_parent": "সূচিত পোস্ট দেখুন" + "show_parent": "সূচিত পোস্ট দেখুন", + "no_posts": "কোন পোস্ট নেই", + "media_url": "মিডিয়া ইউআরএল" } \ No newline at end of file diff --git a/public/translations/cs/default.json b/public/translations/cs/default.json index efe32652..f135b0d4 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", @@ -169,5 +168,7 @@ "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í" } \ No newline at end of file diff --git a/public/translations/da/default.json b/public/translations/da/default.json index 99031922..7920c78b 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", @@ -169,5 +168,7 @@ "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" } \ No newline at end of file diff --git a/public/translations/de/default.json b/public/translations/de/default.json index fd785122..71f1ccef 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", @@ -169,5 +168,7 @@ "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" } \ No newline at end of file diff --git a/public/translations/el/default.json b/public/translations/el/default.json index 374dc069..258d22ff 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": "Υποβλήθηκε", @@ -169,5 +168,7 @@ "mark_all_read": "επισήμανση όλων ως διαβασμένα", "comment_reply": "απάντηση σε σχόλιο", "post_reply": "απάντηση στην ανάρτηση", - "show_parent": "εμφάνιση της αναφερόμενης δημοσίευσης" + "show_parent": "εμφάνιση της αναφερόμενης δημοσίευσης", + "no_posts": "κανένα άρθρο", + "media_url": "URL πολυμέσων" } \ No newline at end of file diff --git a/public/translations/en/default.json b/public/translations/en/default.json index d3a3570d..cb0f1454 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", @@ -169,5 +168,7 @@ "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" } \ No newline at end of file diff --git a/public/translations/es/default.json b/public/translations/es/default.json index e3e27a87..bdc79579 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", @@ -169,5 +168,7 @@ "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" } \ No newline at end of file diff --git a/public/translations/fa/default.json b/public/translations/fa/default.json index 9e5ef723..42f1d43a 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,7 @@ "mark_all_read": "نشان دادن همه به عنوان خوانده شده", "comment_reply": "پاسخ به نظر", "post_reply": "پاسخ به پست", - "show_parent": "نمایش پست مرجع داده شده" + "show_parent": "نمایش پست مرجع داده شده", + "no_posts": "بدون پست", + "media_url": "آدرس رسانه" } \ No newline at end of file diff --git a/public/translations/fi/default.json b/public/translations/fi/default.json index d3ba723b..1af9656c 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", @@ -169,5 +168,7 @@ "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" } \ No newline at end of file diff --git a/public/translations/fil/default.json b/public/translations/fil/default.json index efc5913a..a5d25d18 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", @@ -169,5 +168,7 @@ "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" } \ No newline at end of file diff --git a/public/translations/fr/default.json b/public/translations/fr/default.json index c442a89e..e5bfa26a 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", @@ -169,5 +168,7 @@ "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" } \ No newline at end of file diff --git a/public/translations/he/default.json b/public/translations/he/default.json index c1c3864b..e480c2ba 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": "נשלח", @@ -169,5 +168,7 @@ "mark_all_read": "סמן הכל כנקרא", "comment_reply": "הגב לתגובה", "post_reply": "הגב לפוסט", - "show_parent": "הצג את הפוסט המתייחס אליו" + "show_parent": "הצג את הפוסט המתייחס אליו", + "no_posts": "אין פוסטים", + "media_url": "כתובת מדיה" } \ No newline at end of file diff --git a/public/translations/hi/default.json b/public/translations/hi/default.json index 18ff1068..3900561c 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,7 @@ "mark_all_read": "सभी को पढ़ा हुआ चिह्नित करें", "comment_reply": "कमेंट का जवाब दें", "post_reply": "पोस्ट का जवाब दें", - "show_parent": "संदर्भित पोस्ट दिखाएं" + "show_parent": "संदर्भित पोस्ट दिखाएं", + "no_posts": "कोई पोस्ट नहीं", + "media_url": "मीडिया यूआरएल" } \ No newline at end of file diff --git a/public/translations/hu/default.json b/public/translations/hu/default.json index 64931dc4..e304f8a8 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", @@ -169,5 +168,7 @@ "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" } \ No newline at end of file diff --git a/public/translations/id/default.json b/public/translations/id/default.json index 2d7503b7..223f50f0 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", @@ -169,5 +168,7 @@ "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" } \ No newline at end of file diff --git a/public/translations/it/default.json b/public/translations/it/default.json index efe26f64..b32c2f8b 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", @@ -169,5 +168,7 @@ "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" } \ No newline at end of file diff --git a/public/translations/ja/default.json b/public/translations/ja/default.json index d0a030a1..3d0695f8 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": "送信済み", @@ -169,5 +168,7 @@ "mark_all_read": "すべてを既読にする", "comment_reply": "コメントに返信", "post_reply": "投稿に返信", - "show_parent": "参照されている投稿を表示" + "show_parent": "参照されている投稿を表示", + "no_posts": "投稿はありません", + "media_url": "メディア URL" } \ No newline at end of file diff --git a/public/translations/ko/default.json b/public/translations/ko/default.json index 4edbcae4..7e3823d4 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": "제출됨", @@ -169,5 +168,7 @@ "mark_all_read": "모두 읽은 상태로 표시", "comment_reply": "댓글 답글", "post_reply": "게시물 답글", - "show_parent": "참조된 게시물 표시" + "show_parent": "참조된 게시물 표시", + "no_posts": "게시물이 없습니다", + "media_url": "미디어 URL" } \ No newline at end of file diff --git a/public/translations/mr/default.json b/public/translations/mr/default.json index a32b0591..f6563fe8 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": "सबमिट केले", @@ -169,5 +168,7 @@ "mark_all_read": "सर्व कोणत्याही वाचल्याचं दर्जा", "comment_reply": "कॉमेंटचा उत्तर", "post_reply": "पोस्टचा उत्तर", - "show_parent": "संदर्भित पोस्ट दाखवा" + "show_parent": "संदर्भित पोस्ट दाखवा", + "no_posts": "कोणतेही पोस्ट नाहीत", + "media_url": "मिडिया URL" } \ No newline at end of file diff --git a/public/translations/nl/default.json b/public/translations/nl/default.json index e4b4377f..fe57edb6 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", @@ -169,5 +168,7 @@ "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" } \ No newline at end of file diff --git a/public/translations/no/default.json b/public/translations/no/default.json index d6d8fc92..91dab27b 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", @@ -169,5 +168,7 @@ "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" } \ No newline at end of file diff --git a/public/translations/pl/default.json b/public/translations/pl/default.json index 82b5ee28..c71db015 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", @@ -169,5 +168,7 @@ "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" } \ No newline at end of file diff --git a/public/translations/pt/default.json b/public/translations/pt/default.json index 84bb3cec..a22933d4 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", @@ -169,5 +168,7 @@ "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" } \ No newline at end of file diff --git a/public/translations/ro/default.json b/public/translations/ro/default.json index a46c2b41..01ddf167 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", @@ -169,5 +168,7 @@ "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" } \ No newline at end of file diff --git a/public/translations/ru/default.json b/public/translations/ru/default.json index 829ad1c0..b5f8ec4a 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": "Отправлено", @@ -169,5 +168,7 @@ "mark_all_read": "пометить все как прочитанные", "comment_reply": "ответить на комментарий", "post_reply": "ответить на пост", - "show_parent": "показать упомянутый пост" + "show_parent": "показать упомянутый пост", + "no_posts": "нет записей", + "media_url": "URL медиа" } \ No newline at end of file diff --git a/public/translations/sq/default.json b/public/translations/sq/default.json index 611182b3..9b07a077 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", @@ -169,5 +168,7 @@ "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" } \ No newline at end of file diff --git a/public/translations/sv/default.json b/public/translations/sv/default.json index 13e2388f..6a8ad034 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", @@ -169,5 +168,7 @@ "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" } \ No newline at end of file diff --git a/public/translations/te/default.json b/public/translations/te/default.json index 3db8d9ab..b723960f 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,7 @@ "mark_all_read": "అన్నిను చదవండి", "comment_reply": "కమెంట్ స్పందించండి", "post_reply": "పోస్టు స్పందించండి", - "show_parent": "సూచించబడిన పోస్ట్ చూపించు" + "show_parent": "సూచించబడిన పోస్ట్ చూపించు", + "no_posts": "పోస్టులు లేవు", + "media_url": "మీడియా URL" } \ No newline at end of file diff --git a/public/translations/th/default.json b/public/translations/th/default.json index 2bb57deb..9ab8ffdd 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,7 @@ "mark_all_read": "ทำเครื่องหมายทั้งหมดว่าอ่านแล้ว", "comment_reply": "ตอบกลับความคิดเห็น", "post_reply": "ตอบกลับโพสต์", - "show_parent": "แสดงโพสต์ที่ถูกอ้างอิง" + "show_parent": "แสดงโพสต์ที่ถูกอ้างอิง", + "no_posts": "ไม่มีโพสต์", + "media_url": "URL สื่อ" } \ No newline at end of file diff --git a/public/translations/tr/default.json b/public/translations/tr/default.json index 6d0d4bc0..b799e8aa 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", @@ -169,5 +168,7 @@ "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" } \ No newline at end of file diff --git a/public/translations/uk/default.json b/public/translations/uk/default.json index 3bd4c195..76872cb0 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": "Надіслано", @@ -169,5 +168,7 @@ "mark_all_read": "позначити всі як прочитані", "comment_reply": "відповісти на коментар", "post_reply": "відповісти на пост", - "show_parent": "показати зазначений допис" + "show_parent": "показати зазначений допис", + "no_posts": "немає повідомлень", + "media_url": "URL медіа" } \ No newline at end of file diff --git a/public/translations/ur/default.json b/public/translations/ur/default.json index 230bea5e..5a659f01 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,7 @@ "mark_all_read": "سب کو پڑھا ہوا مارک کریں", "comment_reply": "تبادلہ کریں جواب", "post_reply": "پوسٹ کا جواب دیں", - "show_parent": "ذکر کردہ پوسٹ دکھائیں" + "show_parent": "ذکر کردہ پوسٹ دکھائیں", + "no_posts": "کوئی پوسٹ نہیں", + "media_url": "میڈیا یو آر ایل" } \ No newline at end of file diff --git a/public/translations/vi/default.json b/public/translations/vi/default.json index d0040917..51630e98 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", @@ -169,5 +168,7 @@ "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" } \ No newline at end of file diff --git a/public/translations/zh/default.json b/public/translations/zh/default.json index 4b14070d..74f94494 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,7 @@ "mark_all_read": "全部标记为已读", "comment_reply": "回复评论", "post_reply": "回复帖子", - "show_parent": "显示被引用的帖子" + "show_parent": "显示被引用的帖子", + "no_posts": "没有帖子", + "media_url": "媒体链接" } \ No newline at end of file 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 760b6c0c..bb301c5a 100644 --- a/src/components/author-sidebar/author-sidebar.tsx +++ b/src/components/author-sidebar/author-sidebar.tsx @@ -116,7 +116,7 @@ const AuthorSidebar = () => { {' '} ( - edit + {t('edit')} ) 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)} />
    {account && !accountComments.length ? ( - 'no posts' + t('no_posts') ) : ( Date: Thu, 28 Dec 2023 14:19:01 +0100 Subject: [PATCH 04/12] fix(submit): set min height/width of input elements --- src/views/submit/submit.module.css | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/views/submit/submit.module.css b/src/views/submit/submit.module.css index 4f0c8e16..102da9fb 100644 --- a/src/views/submit/submit.module.css +++ b/src/views/submit/submit.module.css @@ -56,7 +56,7 @@ h1 { .input { font-size: 100%; - width: 492px; + min-width: 492px; padding: 3px; margin: 0; color: var(--text); @@ -64,12 +64,12 @@ h1 { } .inputTitle { - height: 60px; + min-height: 60px; font-size: 18px; } .inputText { - height: 100px; + min-height: 100px; font-size: 14px; } From 0eb4fefc75ceb54ef802b31f1b7736a3627b4367 Mon Sep 17 00:00:00 2001 From: "plebeius.eth" Date: Thu, 28 Dec 2023 17:18:47 +0100 Subject: [PATCH 05/12] chore(translations): edit --- 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 28affa47..b39773c4 100644 --- a/public/translations/ar/default.json +++ b/public/translations/ar/default.json @@ -170,5 +170,6 @@ "post_reply": "رد على المنشور", "show_parent": "أظهر المشاركة المشار إليها", "no_posts": "لا توجد مشاركات", - "media_url": "عنوان وسائط" + "media_url": "عنوان وسائط", + "edit": "تحرير" } \ No newline at end of file diff --git a/public/translations/bn/default.json b/public/translations/bn/default.json index fcafeb44..eb504a59 100644 --- a/public/translations/bn/default.json +++ b/public/translations/bn/default.json @@ -170,5 +170,6 @@ "post_reply": "পোস্ট উত্তর", "show_parent": "সূচিত পোস্ট দেখুন", "no_posts": "কোন পোস্ট নেই", - "media_url": "মিডিয়া ইউআরএল" + "media_url": "মিডিয়া ইউআরএল", + "edit": "সম্পাদনা" } \ No newline at end of file diff --git a/public/translations/cs/default.json b/public/translations/cs/default.json index f135b0d4..11f34530 100644 --- a/public/translations/cs/default.json +++ b/public/translations/cs/default.json @@ -170,5 +170,6 @@ "post_reply": "odpovědět na příspěvek", "show_parent": "zobrazit příspěvek, na který se odkazuje", "no_posts": "žádné příspěvky", - "media_url": "URL médií" + "media_url": "URL médií", + "edit": "upravit" } \ No newline at end of file diff --git a/public/translations/da/default.json b/public/translations/da/default.json index 7920c78b..e86c2a58 100644 --- a/public/translations/da/default.json +++ b/public/translations/da/default.json @@ -170,5 +170,6 @@ "post_reply": "svar på indlæg", "show_parent": "vis den henviste post", "no_posts": "ingen indlæg", - "media_url": "medie-URL" + "media_url": "medie-URL", + "edit": "redigere" } \ No newline at end of file diff --git a/public/translations/de/default.json b/public/translations/de/default.json index 71f1ccef..0e6d9491 100644 --- a/public/translations/de/default.json +++ b/public/translations/de/default.json @@ -170,5 +170,6 @@ "post_reply": "Beitrag antworten", "show_parent": "zeige den verlinkten Beitrag", "no_posts": "keine Beiträge", - "media_url": "Medien-URL" + "media_url": "Medien-URL", + "edit": "bearbeiten" } \ No newline at end of file diff --git a/public/translations/el/default.json b/public/translations/el/default.json index 258d22ff..d5039f9a 100644 --- a/public/translations/el/default.json +++ b/public/translations/el/default.json @@ -170,5 +170,6 @@ "post_reply": "απάντηση στην ανάρτηση", "show_parent": "εμφάνιση της αναφερόμενης δημοσίευσης", "no_posts": "κανένα άρθρο", - "media_url": "URL πολυμέσων" + "media_url": "URL πολυμέσων", + "edit": "επεξεργασία" } \ No newline at end of file diff --git a/public/translations/en/default.json b/public/translations/en/default.json index cb0f1454..ea4e7344 100644 --- a/public/translations/en/default.json +++ b/public/translations/en/default.json @@ -170,5 +170,6 @@ "post_reply": "post reply", "show_parent": "show parent", "no_posts": "no posts", - "media_url": "media url" + "media_url": "media url", + "edit": "edit" } \ No newline at end of file diff --git a/public/translations/es/default.json b/public/translations/es/default.json index bdc79579..3159d209 100644 --- a/public/translations/es/default.json +++ b/public/translations/es/default.json @@ -170,5 +170,6 @@ "post_reply": "responder al post", "show_parent": "mostrar el post al que se hace referencia", "no_posts": "sin publicaciones", - "media_url": "URL de medios" + "media_url": "URL de medios", + "edit": "editar" } \ No newline at end of file diff --git a/public/translations/fa/default.json b/public/translations/fa/default.json index 42f1d43a..0d08abac 100644 --- a/public/translations/fa/default.json +++ b/public/translations/fa/default.json @@ -170,5 +170,6 @@ "post_reply": "پاسخ به پست", "show_parent": "نمایش پست مرجع داده شده", "no_posts": "بدون پست", - "media_url": "آدرس رسانه" + "media_url": "آدرس رسانه", + "edit": "ویرایش" } \ No newline at end of file diff --git a/public/translations/fi/default.json b/public/translations/fi/default.json index 1af9656c..8825e9e1 100644 --- a/public/translations/fi/default.json +++ b/public/translations/fi/default.json @@ -170,5 +170,6 @@ "post_reply": "vastaa viestiin", "show_parent": "näytä viitattu viesti", "no_posts": "ei viestejä", - "media_url": "medialinkki" + "media_url": "medialinkki", + "edit": "muokkaa" } \ No newline at end of file diff --git a/public/translations/fil/default.json b/public/translations/fil/default.json index a5d25d18..5d31ca58 100644 --- a/public/translations/fil/default.json +++ b/public/translations/fil/default.json @@ -170,5 +170,6 @@ "post_reply": "sagot sa post", "show_parent": "ipakita ang tinutukoy na post", "no_posts": "walang post", - "media_url": "media url" + "media_url": "media url", + "edit": "i-edit" } \ No newline at end of file diff --git a/public/translations/fr/default.json b/public/translations/fr/default.json index e5bfa26a..032fc012 100644 --- a/public/translations/fr/default.json +++ b/public/translations/fr/default.json @@ -170,5 +170,6 @@ "post_reply": "répondre au post", "show_parent": "afficher le post référencé", "no_posts": "pas de publications", - "media_url": "URL multimédia" + "media_url": "URL multimédia", + "edit": "éditer" } \ No newline at end of file diff --git a/public/translations/he/default.json b/public/translations/he/default.json index e480c2ba..a0c8968a 100644 --- a/public/translations/he/default.json +++ b/public/translations/he/default.json @@ -170,5 +170,6 @@ "post_reply": "הגב לפוסט", "show_parent": "הצג את הפוסט המתייחס אליו", "no_posts": "אין פוסטים", - "media_url": "כתובת מדיה" + "media_url": "כתובת מדיה", + "edit": "ערוך" } \ No newline at end of file diff --git a/public/translations/hi/default.json b/public/translations/hi/default.json index 3900561c..d2ffa2f5 100644 --- a/public/translations/hi/default.json +++ b/public/translations/hi/default.json @@ -170,5 +170,6 @@ "post_reply": "पोस्ट का जवाब दें", "show_parent": "संदर्भित पोस्ट दिखाएं", "no_posts": "कोई पोस्ट नहीं", - "media_url": "मीडिया यूआरएल" + "media_url": "मीडिया यूआरएल", + "edit": "संपादित करें" } \ No newline at end of file diff --git a/public/translations/hu/default.json b/public/translations/hu/default.json index e304f8a8..206697b3 100644 --- a/public/translations/hu/default.json +++ b/public/translations/hu/default.json @@ -170,5 +170,6 @@ "post_reply": "válasz a posztra", "show_parent": "mutassa a hivatkozott bejegyzést", "no_posts": "nincsenek hozzászólások", - "media_url": "média URL" + "media_url": "média URL", + "edit": "szerkesztés" } \ No newline at end of file diff --git a/public/translations/id/default.json b/public/translations/id/default.json index 223f50f0..6fcaba06 100644 --- a/public/translations/id/default.json +++ b/public/translations/id/default.json @@ -170,5 +170,6 @@ "post_reply": "balas postingan", "show_parent": "tampilkan posting yang dirujuk", "no_posts": "tidak ada posting", - "media_url": "URL media" + "media_url": "URL media", + "edit": "sunting" } \ No newline at end of file diff --git a/public/translations/it/default.json b/public/translations/it/default.json index b32c2f8b..b882c1e5 100644 --- a/public/translations/it/default.json +++ b/public/translations/it/default.json @@ -170,5 +170,6 @@ "post_reply": "rispondi al post", "show_parent": "mostra il post a cui è riferito", "no_posts": "nessun post", - "media_url": "URL media" + "media_url": "URL media", + "edit": "modifica" } \ No newline at end of file diff --git a/public/translations/ja/default.json b/public/translations/ja/default.json index 3d0695f8..f7f17b26 100644 --- a/public/translations/ja/default.json +++ b/public/translations/ja/default.json @@ -170,5 +170,6 @@ "post_reply": "投稿に返信", "show_parent": "参照されている投稿を表示", "no_posts": "投稿はありません", - "media_url": "メディア URL" + "media_url": "メディア URL", + "edit": "編集" } \ No newline at end of file diff --git a/public/translations/ko/default.json b/public/translations/ko/default.json index 7e3823d4..ccd64cc3 100644 --- a/public/translations/ko/default.json +++ b/public/translations/ko/default.json @@ -170,5 +170,6 @@ "post_reply": "게시물 답글", "show_parent": "참조된 게시물 표시", "no_posts": "게시물이 없습니다", - "media_url": "미디어 URL" + "media_url": "미디어 URL", + "edit": "편집" } \ No newline at end of file diff --git a/public/translations/mr/default.json b/public/translations/mr/default.json index f6563fe8..f69d467d 100644 --- a/public/translations/mr/default.json +++ b/public/translations/mr/default.json @@ -170,5 +170,6 @@ "post_reply": "पोस्टचा उत्तर", "show_parent": "संदर्भित पोस्ट दाखवा", "no_posts": "कोणतेही पोस्ट नाहीत", - "media_url": "मिडिया URL" + "media_url": "मिडिया URL", + "edit": "संपादन" } \ No newline at end of file diff --git a/public/translations/nl/default.json b/public/translations/nl/default.json index fe57edb6..bbd0b812 100644 --- a/public/translations/nl/default.json +++ b/public/translations/nl/default.json @@ -170,5 +170,6 @@ "post_reply": "reageren op bericht", "show_parent": "toon de verwezen post", "no_posts": "geen berichten", - "media_url": "media-url" + "media_url": "media-url", + "edit": "bewerken" } \ No newline at end of file diff --git a/public/translations/no/default.json b/public/translations/no/default.json index 91dab27b..4d5740b6 100644 --- a/public/translations/no/default.json +++ b/public/translations/no/default.json @@ -170,5 +170,6 @@ "post_reply": "svar på innlegg", "show_parent": "vis den refererte posten", "no_posts": "ingen innlegg", - "media_url": "medie-URL" + "media_url": "medie-URL", + "edit": "redigere" } \ No newline at end of file diff --git a/public/translations/pl/default.json b/public/translations/pl/default.json index c71db015..8b9c40c1 100644 --- a/public/translations/pl/default.json +++ b/public/translations/pl/default.json @@ -170,5 +170,6 @@ "post_reply": "odpowiedź na post", "show_parent": "pokaż post, do którego jest odwołanie", "no_posts": "brak postów", - "media_url": "URL mediów" + "media_url": "URL mediów", + "edit": "edytuj" } \ No newline at end of file diff --git a/public/translations/pt/default.json b/public/translations/pt/default.json index a22933d4..de5259f9 100644 --- a/public/translations/pt/default.json +++ b/public/translations/pt/default.json @@ -170,5 +170,6 @@ "post_reply": "responder ao post", "show_parent": "mostrar a postagem referenciada", "no_posts": "sem publicações", - "media_url": "URL de mídia" + "media_url": "URL de mídia", + "edit": "editar" } \ No newline at end of file diff --git a/public/translations/ro/default.json b/public/translations/ro/default.json index 01ddf167..1079ae9c 100644 --- a/public/translations/ro/default.json +++ b/public/translations/ro/default.json @@ -170,5 +170,6 @@ "post_reply": "răspunde la postare", "show_parent": "afișează postarea referită", "no_posts": "niciun post", - "media_url": "URL media" + "media_url": "URL media", + "edit": "editare" } \ No newline at end of file diff --git a/public/translations/ru/default.json b/public/translations/ru/default.json index b5f8ec4a..a6929960 100644 --- a/public/translations/ru/default.json +++ b/public/translations/ru/default.json @@ -170,5 +170,6 @@ "post_reply": "ответить на пост", "show_parent": "показать упомянутый пост", "no_posts": "нет записей", - "media_url": "URL медиа" + "media_url": "URL медиа", + "edit": "редактировать" } \ No newline at end of file diff --git a/public/translations/sq/default.json b/public/translations/sq/default.json index 9b07a077..264ed6d0 100644 --- a/public/translations/sq/default.json +++ b/public/translations/sq/default.json @@ -170,5 +170,6 @@ "post_reply": "përgjigju postës", "show_parent": "shfaq postën e referuar", "no_posts": "asnjë postim", - "media_url": "media url" + "media_url": "media url", + "edit": "redakto" } \ No newline at end of file diff --git a/public/translations/sv/default.json b/public/translations/sv/default.json index 6a8ad034..f251dcb5 100644 --- a/public/translations/sv/default.json +++ b/public/translations/sv/default.json @@ -170,5 +170,6 @@ "post_reply": "svara på inlägg", "show_parent": "visa den refererade posten", "no_posts": "inga inlägg", - "media_url": "media-url" + "media_url": "media-url", + "edit": "redigera" } \ No newline at end of file diff --git a/public/translations/te/default.json b/public/translations/te/default.json index b723960f..5d36d9cb 100644 --- a/public/translations/te/default.json +++ b/public/translations/te/default.json @@ -170,5 +170,6 @@ "post_reply": "పోస్టు స్పందించండి", "show_parent": "సూచించబడిన పోస్ట్ చూపించు", "no_posts": "పోస్టులు లేవు", - "media_url": "మీడియా URL" + "media_url": "మీడియా URL", + "edit": "సవరించండి" } \ No newline at end of file diff --git a/public/translations/th/default.json b/public/translations/th/default.json index 9ab8ffdd..e94f7ed8 100644 --- a/public/translations/th/default.json +++ b/public/translations/th/default.json @@ -170,5 +170,6 @@ "post_reply": "ตอบกลับโพสต์", "show_parent": "แสดงโพสต์ที่ถูกอ้างอิง", "no_posts": "ไม่มีโพสต์", - "media_url": "URL สื่อ" + "media_url": "URL สื่อ", + "edit": "แก้ไข" } \ No newline at end of file diff --git a/public/translations/tr/default.json b/public/translations/tr/default.json index b799e8aa..d0f2e1af 100644 --- a/public/translations/tr/default.json +++ b/public/translations/tr/default.json @@ -170,5 +170,6 @@ "post_reply": "gönderiye yanıtla", "show_parent": "atıfta bulunulan gönderiyi göster", "no_posts": "gönderi yok", - "media_url": "medya URL'si" + "media_url": "medya URL'si", + "edit": "düzenle" } \ No newline at end of file diff --git a/public/translations/uk/default.json b/public/translations/uk/default.json index 76872cb0..ce923a90 100644 --- a/public/translations/uk/default.json +++ b/public/translations/uk/default.json @@ -170,5 +170,6 @@ "post_reply": "відповісти на пост", "show_parent": "показати зазначений допис", "no_posts": "немає повідомлень", - "media_url": "URL медіа" + "media_url": "URL медіа", + "edit": "редагувати" } \ No newline at end of file diff --git a/public/translations/ur/default.json b/public/translations/ur/default.json index 5a659f01..f8ef9f1c 100644 --- a/public/translations/ur/default.json +++ b/public/translations/ur/default.json @@ -170,5 +170,6 @@ "post_reply": "پوسٹ کا جواب دیں", "show_parent": "ذکر کردہ پوسٹ دکھائیں", "no_posts": "کوئی پوسٹ نہیں", - "media_url": "میڈیا یو آر ایل" + "media_url": "میڈیا یو آر ایل", + "edit": "ترتیب دیں" } \ No newline at end of file diff --git a/public/translations/vi/default.json b/public/translations/vi/default.json index 51630e98..2670bf47 100644 --- a/public/translations/vi/default.json +++ b/public/translations/vi/default.json @@ -170,5 +170,6 @@ "post_reply": "trả lời bài đăng", "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" + "media_url": "URL phương tiện", + "edit": "chỉnh sửa" } \ No newline at end of file diff --git a/public/translations/zh/default.json b/public/translations/zh/default.json index 74f94494..6bc73956 100644 --- a/public/translations/zh/default.json +++ b/public/translations/zh/default.json @@ -170,5 +170,6 @@ "post_reply": "回复帖子", "show_parent": "显示被引用的帖子", "no_posts": "没有帖子", - "media_url": "媒体链接" + "media_url": "媒体链接", + "edit": "编辑" } \ No newline at end of file From d5a94723c8714f435eff5f0665606b582e1d7c0d Mon Sep 17 00:00:00 2001 From: "plebeius.eth" Date: Thu, 28 Dec 2023 18:16:24 +0100 Subject: [PATCH 06/12] feat(post): add locked post info banner --- public/assets/locked-icon.png | Bin 0 -> 1427 bytes src/themes.css | 6 +++++ src/views/post/post.module.css | 42 +++++++++++++++++++++++++++++++++ src/views/post/post.tsx | 5 ++++ 4 files changed, 53 insertions(+) create mode 100644 public/assets/locked-icon.png diff --git a/public/assets/locked-icon.png b/public/assets/locked-icon.png new file mode 100644 index 0000000000000000000000000000000000000000..6496e95f4537e6740d11024fdba1f6b616ab417f GIT binary patch literal 1427 zcmeAS@N?(olHy`uVBq!ia0vp^8bEBs!3HGtHqV>@q$EpRBT9nv(@M${i&7aJQ}UBi z6+Ckj(^G>|6H_V+Po~;1FfeOmhD4M^`1)8S=jZArg4F0$^BXQ!4Z zB&DWj=GiK}-@RW+Av48RDcsc8z_-9TH6zobswg$M$}c3jDm&RSMakYy!KT6rXh3di zNuokUZcbjYRfVk**jy_h8zii+qySb@l5ML5aa4qFfP!;=QL2Keo|$g4fuV_lxuu?= zshPQ@xsHMnkgsoGp>JfMYhY<*YHVd-qyPmhm3bwJ6}oxF$}kgLQj3#|G7CyF^YauyCMG83 zmzLNn0bL65LT&-v*t}wBFaZNhzap_f-%!s0*lEl2^R8JRMC7?NanVBh87M7MK2FB)=CZ-0ahK8=Dj>gVz7EXo+ zPHv{=<_0d#FugAM$)&lec_lEtDG0reIQ4=OL~a4lW|!2W%(B!Jx1#)91+d4hGI6`b z9H)6uy(zfeVu4eyKF~4xpy)-4ZkP}-4S|^O#0%uWlYeR+FwGYM6Ze9pv+Wrem>4}> z978H@y_s>)i^);q_-s?2k89>ysVr*ajI;g1Wl6J?y$59WH)o z^$MZhwk9)KG}u<*VhJ)7B;2y-(izX0YEXm@(gd>ipf3J2k$%`Os|N z;$&>&^l9egLqfT(cNwnb^29G_;@;nMX5pfDS9JJ%ITy2QY&`IN&V-$xowi7pCxvXD zDQ6_trI&0Rd-V;E&Wni#8k#eo7W|vO_Tv`k~Uh69-{{8!}{+7(cy9Yu( zJghAJ^!B1c+{wTOPodv(iz_qoGc@nLU)8sd;Y|k54MFW!xp#O>SbHLGxZHoZY^`EU^ajJ7Uws}I@vhBg zGH>0)@Fwz;#-eub(8U*5do8n<{=snNO2TD538v3}l1 { upvoteCount={upvoteCount} />
    + {post?.locked && ( +
    +
    This post is locked. You won't be able to comment.
    +
    + )} {!isPendingPage && (
    From fc2aca58e6e7d85a69b549f72e53d31af0e733ed Mon Sep 17 00:00:00 2001 From: "plebeius.eth" Date: Thu, 28 Dec 2023 18:20:48 +0100 Subject: [PATCH 07/12] chore(translations): post locked info --- 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/post/post.tsx | 2 +- 36 files changed, 36 insertions(+), 36 deletions(-) diff --git a/public/translations/ar/default.json b/public/translations/ar/default.json index b39773c4..4df3a3ef 100644 --- a/public/translations/ar/default.json +++ b/public/translations/ar/default.json @@ -171,5 +171,5 @@ "show_parent": "أظهر المشاركة المشار إليها", "no_posts": "لا توجد مشاركات", "media_url": "عنوان وسائط", - "edit": "تحرير" + "post_locked_info": "هذا المنشور مغلق. لن تتمكن من التعليق." } \ No newline at end of file diff --git a/public/translations/bn/default.json b/public/translations/bn/default.json index eb504a59..370c3a76 100644 --- a/public/translations/bn/default.json +++ b/public/translations/bn/default.json @@ -171,5 +171,5 @@ "show_parent": "সূচিত পোস্ট দেখুন", "no_posts": "কোন পোস্ট নেই", "media_url": "মিডিয়া ইউআরএল", - "edit": "সম্পাদনা" + "post_locked_info": "এই পোস্টটি লক হয়েছে। আপনি মন্তব্য করতে পারবেন না।" } \ No newline at end of file diff --git a/public/translations/cs/default.json b/public/translations/cs/default.json index 11f34530..7c1da515 100644 --- a/public/translations/cs/default.json +++ b/public/translations/cs/default.json @@ -171,5 +171,5 @@ "show_parent": "zobrazit příspěvek, na který se odkazuje", "no_posts": "žádné příspěvky", "media_url": "URL médií", - "edit": "upravit" + "post_locked_info": "Tento příspěvek je uzamčen. Nebudete moci komentovat." } \ No newline at end of file diff --git a/public/translations/da/default.json b/public/translations/da/default.json index e86c2a58..e677ef32 100644 --- a/public/translations/da/default.json +++ b/public/translations/da/default.json @@ -171,5 +171,5 @@ "show_parent": "vis den henviste post", "no_posts": "ingen indlæg", "media_url": "medie-URL", - "edit": "redigere" + "post_locked_info": "Dette indlæg er låst. Du kan ikke kommentere." } \ No newline at end of file diff --git a/public/translations/de/default.json b/public/translations/de/default.json index 0e6d9491..5b77a78b 100644 --- a/public/translations/de/default.json +++ b/public/translations/de/default.json @@ -171,5 +171,5 @@ "show_parent": "zeige den verlinkten Beitrag", "no_posts": "keine Beiträge", "media_url": "Medien-URL", - "edit": "bearbeiten" + "post_locked_info": "Dieser Beitrag ist gesperrt. Sie können keine Kommentare abgeben." } \ No newline at end of file diff --git a/public/translations/el/default.json b/public/translations/el/default.json index d5039f9a..e19e17b3 100644 --- a/public/translations/el/default.json +++ b/public/translations/el/default.json @@ -171,5 +171,5 @@ "show_parent": "εμφάνιση της αναφερόμενης δημοσίευσης", "no_posts": "κανένα άρθρο", "media_url": "URL πολυμέσων", - "edit": "επεξεργασία" + "post_locked_info": "Αυτή η ανάρτηση είναι κλειδωμένη. Δεν θα μπορείτε να σχολιάσετε." } \ No newline at end of file diff --git a/public/translations/en/default.json b/public/translations/en/default.json index ea4e7344..49546ce1 100644 --- a/public/translations/en/default.json +++ b/public/translations/en/default.json @@ -171,5 +171,5 @@ "show_parent": "show parent", "no_posts": "no posts", "media_url": "media url", - "edit": "edit" + "post_locked_info": "This post is locked. You won't be able to comment." } \ No newline at end of file diff --git a/public/translations/es/default.json b/public/translations/es/default.json index 3159d209..86d14f7b 100644 --- a/public/translations/es/default.json +++ b/public/translations/es/default.json @@ -171,5 +171,5 @@ "show_parent": "mostrar el post al que se hace referencia", "no_posts": "sin publicaciones", "media_url": "URL de medios", - "edit": "editar" + "post_locked_info": "Esta publicación está bloqueada. No podrás comentar." } \ No newline at end of file diff --git a/public/translations/fa/default.json b/public/translations/fa/default.json index 0d08abac..fa7c53e7 100644 --- a/public/translations/fa/default.json +++ b/public/translations/fa/default.json @@ -171,5 +171,5 @@ "show_parent": "نمایش پست مرجع داده شده", "no_posts": "بدون پست", "media_url": "آدرس رسانه", - "edit": "ویرایش" + "post_locked_info": "این پست قفل شده است. نمی‌توانید نظر دهید." } \ No newline at end of file diff --git a/public/translations/fi/default.json b/public/translations/fi/default.json index 8825e9e1..c4654a8b 100644 --- a/public/translations/fi/default.json +++ b/public/translations/fi/default.json @@ -171,5 +171,5 @@ "show_parent": "näytä viitattu viesti", "no_posts": "ei viestejä", "media_url": "medialinkki", - "edit": "muokkaa" + "post_locked_info": "Tämä viesti on lukittu. Et voi kommentoida sitä." } \ No newline at end of file diff --git a/public/translations/fil/default.json b/public/translations/fil/default.json index 5d31ca58..9ec9e549 100644 --- a/public/translations/fil/default.json +++ b/public/translations/fil/default.json @@ -171,5 +171,5 @@ "show_parent": "ipakita ang tinutukoy na post", "no_posts": "walang post", "media_url": "media url", - "edit": "i-edit" + "post_locked_info": "Ang post na ito ay naka-lock. Hindi ka makakapagkomento." } \ No newline at end of file diff --git a/public/translations/fr/default.json b/public/translations/fr/default.json index 032fc012..9bdf3e0c 100644 --- a/public/translations/fr/default.json +++ b/public/translations/fr/default.json @@ -171,5 +171,5 @@ "show_parent": "afficher le post référencé", "no_posts": "pas de publications", "media_url": "URL multimédia", - "edit": "éditer" + "post_locked_info": "Ce post est verrouillé. Vous ne pourrez pas commenter." } \ No newline at end of file diff --git a/public/translations/he/default.json b/public/translations/he/default.json index a0c8968a..a8b77ca7 100644 --- a/public/translations/he/default.json +++ b/public/translations/he/default.json @@ -171,5 +171,5 @@ "show_parent": "הצג את הפוסט המתייחס אליו", "no_posts": "אין פוסטים", "media_url": "כתובת מדיה", - "edit": "ערוך" + "post_locked_info": "הפוסט הזה נעול. אינך יכול להגיב." } \ No newline at end of file diff --git a/public/translations/hi/default.json b/public/translations/hi/default.json index d2ffa2f5..1a162d3e 100644 --- a/public/translations/hi/default.json +++ b/public/translations/hi/default.json @@ -171,5 +171,5 @@ "show_parent": "संदर्भित पोस्ट दिखाएं", "no_posts": "कोई पोस्ट नहीं", "media_url": "मीडिया यूआरएल", - "edit": "संपादित करें" + "post_locked_info": "यह पोस्ट बंद है। आप टिप्पणी नहीं कर सकेंगे।" } \ No newline at end of file diff --git a/public/translations/hu/default.json b/public/translations/hu/default.json index 206697b3..354744a9 100644 --- a/public/translations/hu/default.json +++ b/public/translations/hu/default.json @@ -171,5 +171,5 @@ "show_parent": "mutassa a hivatkozott bejegyzést", "no_posts": "nincsenek hozzászólások", "media_url": "média URL", - "edit": "szerkesztés" + "post_locked_info": "Ez a bejegyzés zárolva van. Nem fogsz tudni hozzászólni." } \ No newline at end of file diff --git a/public/translations/id/default.json b/public/translations/id/default.json index 6fcaba06..c63640bd 100644 --- a/public/translations/id/default.json +++ b/public/translations/id/default.json @@ -171,5 +171,5 @@ "show_parent": "tampilkan posting yang dirujuk", "no_posts": "tidak ada posting", "media_url": "URL media", - "edit": "sunting" + "post_locked_info": "Pos ini terkunci. Anda tidak akan dapat mengomentari." } \ No newline at end of file diff --git a/public/translations/it/default.json b/public/translations/it/default.json index b882c1e5..10f0c108 100644 --- a/public/translations/it/default.json +++ b/public/translations/it/default.json @@ -171,5 +171,5 @@ "show_parent": "mostra il post a cui è riferito", "no_posts": "nessun post", "media_url": "URL media", - "edit": "modifica" + "post_locked_info": "Questo post è stato bloccato. Non potrai commentarlo." } \ No newline at end of file diff --git a/public/translations/ja/default.json b/public/translations/ja/default.json index f7f17b26..9331bc3c 100644 --- a/public/translations/ja/default.json +++ b/public/translations/ja/default.json @@ -171,5 +171,5 @@ "show_parent": "参照されている投稿を表示", "no_posts": "投稿はありません", "media_url": "メディア URL", - "edit": "編集" + "post_locked_info": "この投稿はロックされています。コメントできません。" } \ No newline at end of file diff --git a/public/translations/ko/default.json b/public/translations/ko/default.json index ccd64cc3..aec81401 100644 --- a/public/translations/ko/default.json +++ b/public/translations/ko/default.json @@ -171,5 +171,5 @@ "show_parent": "참조된 게시물 표시", "no_posts": "게시물이 없습니다", "media_url": "미디어 URL", - "edit": "편집" + "post_locked_info": "이 게시물은 잠겨 있습니다. 댓글을 남길 수 없습니다." } \ No newline at end of file diff --git a/public/translations/mr/default.json b/public/translations/mr/default.json index f69d467d..158971f0 100644 --- a/public/translations/mr/default.json +++ b/public/translations/mr/default.json @@ -171,5 +171,5 @@ "show_parent": "संदर्भित पोस्ट दाखवा", "no_posts": "कोणतेही पोस्ट नाहीत", "media_url": "मिडिया URL", - "edit": "संपादन" + "post_locked_info": "हा पोस्ट लॉक झाला आहे. आपण टिप्पणी करू शकणार नाहीत." } \ No newline at end of file diff --git a/public/translations/nl/default.json b/public/translations/nl/default.json index bbd0b812..678af641 100644 --- a/public/translations/nl/default.json +++ b/public/translations/nl/default.json @@ -171,5 +171,5 @@ "show_parent": "toon de verwezen post", "no_posts": "geen berichten", "media_url": "media-url", - "edit": "bewerken" + "post_locked_info": "Dit bericht is vergrendeld. Je kunt geen opmerkingen plaatsen." } \ No newline at end of file diff --git a/public/translations/no/default.json b/public/translations/no/default.json index 4d5740b6..3a202a54 100644 --- a/public/translations/no/default.json +++ b/public/translations/no/default.json @@ -171,5 +171,5 @@ "show_parent": "vis den refererte posten", "no_posts": "ingen innlegg", "media_url": "medie-URL", - "edit": "redigere" + "post_locked_info": "Dette innlegget er låst. Du kan ikke kommentere." } \ No newline at end of file diff --git a/public/translations/pl/default.json b/public/translations/pl/default.json index 8b9c40c1..d8a52c0f 100644 --- a/public/translations/pl/default.json +++ b/public/translations/pl/default.json @@ -171,5 +171,5 @@ "show_parent": "pokaż post, do którego jest odwołanie", "no_posts": "brak postów", "media_url": "URL mediów", - "edit": "edytuj" + "post_locked_info": "Ten post jest zablokowany. Nie będziesz mógł komentować." } \ No newline at end of file diff --git a/public/translations/pt/default.json b/public/translations/pt/default.json index de5259f9..954460a7 100644 --- a/public/translations/pt/default.json +++ b/public/translations/pt/default.json @@ -171,5 +171,5 @@ "show_parent": "mostrar a postagem referenciada", "no_posts": "sem publicações", "media_url": "URL de mídia", - "edit": "editar" + "post_locked_info": "Esta postagem está bloqueada. Você não poderá comentar." } \ No newline at end of file diff --git a/public/translations/ro/default.json b/public/translations/ro/default.json index 1079ae9c..7589a0d5 100644 --- a/public/translations/ro/default.json +++ b/public/translations/ro/default.json @@ -171,5 +171,5 @@ "show_parent": "afișează postarea referită", "no_posts": "niciun post", "media_url": "URL media", - "edit": "editare" + "post_locked_info": "Acest post este blocat. Nu vei putea comenta." } \ No newline at end of file diff --git a/public/translations/ru/default.json b/public/translations/ru/default.json index a6929960..e1f87968 100644 --- a/public/translations/ru/default.json +++ b/public/translations/ru/default.json @@ -171,5 +171,5 @@ "show_parent": "показать упомянутый пост", "no_posts": "нет записей", "media_url": "URL медиа", - "edit": "редактировать" + "post_locked_info": "Этот пост заблокирован. Вы не сможете оставить комментарий." } \ No newline at end of file diff --git a/public/translations/sq/default.json b/public/translations/sq/default.json index 264ed6d0..cda5a2f2 100644 --- a/public/translations/sq/default.json +++ b/public/translations/sq/default.json @@ -171,5 +171,5 @@ "show_parent": "shfaq postën e referuar", "no_posts": "asnjë postim", "media_url": "media url", - "edit": "redakto" + "post_locked_info": "Ky post është bllokuar. Nuk do të jeni në gjendje të komentoni." } \ No newline at end of file diff --git a/public/translations/sv/default.json b/public/translations/sv/default.json index f251dcb5..e05df2f7 100644 --- a/public/translations/sv/default.json +++ b/public/translations/sv/default.json @@ -171,5 +171,5 @@ "show_parent": "visa den refererade posten", "no_posts": "inga inlägg", "media_url": "media-url", - "edit": "redigera" + "post_locked_info": "Detta inlägg är låst. Du kommer inte att kunna kommentera." } \ No newline at end of file diff --git a/public/translations/te/default.json b/public/translations/te/default.json index 5d36d9cb..7c216111 100644 --- a/public/translations/te/default.json +++ b/public/translations/te/default.json @@ -171,5 +171,5 @@ "show_parent": "సూచించబడిన పోస్ట్ చూపించు", "no_posts": "పోస్టులు లేవు", "media_url": "మీడియా URL", - "edit": "సవరించండి" + "post_locked_info": "ఈ పోస్టు లాక్ చేయబడింది. మీరు వ్యాఖ్యానించలేరు." } \ No newline at end of file diff --git a/public/translations/th/default.json b/public/translations/th/default.json index e94f7ed8..eff272ac 100644 --- a/public/translations/th/default.json +++ b/public/translations/th/default.json @@ -171,5 +171,5 @@ "show_parent": "แสดงโพสต์ที่ถูกอ้างอิง", "no_posts": "ไม่มีโพสต์", "media_url": "URL สื่อ", - "edit": "แก้ไข" + "post_locked_info": "โพสต์นี้ถูกล็อก คุณจะไม่สามารถแสดงความคิดเห็นได้" } \ No newline at end of file diff --git a/public/translations/tr/default.json b/public/translations/tr/default.json index d0f2e1af..b54faaff 100644 --- a/public/translations/tr/default.json +++ b/public/translations/tr/default.json @@ -171,5 +171,5 @@ "show_parent": "atıfta bulunulan gönderiyi göster", "no_posts": "gönderi yok", "media_url": "medya URL'si", - "edit": "düzenle" + "post_locked_info": "Bu gönderi kilitlendi. Yorum yapamayacaksınız." } \ No newline at end of file diff --git a/public/translations/uk/default.json b/public/translations/uk/default.json index ce923a90..d1894857 100644 --- a/public/translations/uk/default.json +++ b/public/translations/uk/default.json @@ -171,5 +171,5 @@ "show_parent": "показати зазначений допис", "no_posts": "немає повідомлень", "media_url": "URL медіа", - "edit": "редагувати" + "post_locked_info": "Цей пост заблокований. Ви не зможете залишити коментар." } \ No newline at end of file diff --git a/public/translations/ur/default.json b/public/translations/ur/default.json index f8ef9f1c..2f810853 100644 --- a/public/translations/ur/default.json +++ b/public/translations/ur/default.json @@ -171,5 +171,5 @@ "show_parent": "ذکر کردہ پوسٹ دکھائیں", "no_posts": "کوئی پوسٹ نہیں", "media_url": "میڈیا یو آر ایل", - "edit": "ترتیب دیں" + "post_locked_info": "یہ پوسٹ بند ہے۔ آپ تبصرہ نہیں کر سکیں گے۔" } \ No newline at end of file diff --git a/public/translations/vi/default.json b/public/translations/vi/default.json index 2670bf47..b37073e0 100644 --- a/public/translations/vi/default.json +++ b/public/translations/vi/default.json @@ -171,5 +171,5 @@ "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", - "edit": "chỉnh sửa" + "post_locked_info": "Bài viết này đã bị khóa. Bạn sẽ không thể bình luận." } \ No newline at end of file diff --git a/public/translations/zh/default.json b/public/translations/zh/default.json index 6bc73956..2dd577b9 100644 --- a/public/translations/zh/default.json +++ b/public/translations/zh/default.json @@ -171,5 +171,5 @@ "show_parent": "显示被引用的帖子", "no_posts": "没有帖子", "media_url": "媒体链接", - "edit": "编辑" + "post_locked_info": "此帖已锁定。您将无法评论。" } \ No newline at end of file diff --git a/src/views/post/post.tsx b/src/views/post/post.tsx index 1f96f9b3..496c8a4c 100644 --- a/src/views/post/post.tsx +++ b/src/views/post/post.tsx @@ -68,7 +68,7 @@ const Post = () => {
    {post?.locked && (
    -
    This post is locked. You won't be able to comment.
    +
    {t('post_locked_info')}
    )} From b794ea74da9445ac750e8c24f307f0fe008733d1 Mon Sep 17 00:00:00 2001 From: "plebeius.eth" Date: Fri, 29 Dec 2023 21:32:06 +0100 Subject: [PATCH 08/12] fix(submit): limit input resizing to fit in UI --- src/views/submit/submit.module.css | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/views/submit/submit.module.css b/src/views/submit/submit.module.css index 102da9fb..5d9200ad 100644 --- a/src/views/submit/submit.module.css +++ b/src/views/submit/submit.module.css @@ -57,6 +57,7 @@ h1 { .input { font-size: 100%; min-width: 492px; + max-width: 492px; padding: 3px; margin: 0; color: var(--text); @@ -113,6 +114,11 @@ h1 { box-sizing: border-box; } + .input { + min-width: calc(100% - 6px); + max-width: calc(100% - 6px); + } + h1 { font-size: 16px; } From 30e733cb85ce191c0ca5e63a5e65aa2523b4d2a3 Mon Sep 17 00:00:00 2001 From: "plebeius.eth" Date: Sat, 30 Dec 2023 12:20:05 +0100 Subject: [PATCH 09/12] chore(translations): join, no subscriptions notice --- 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 | 3 ++- 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 | 3 ++- 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 | 3 ++- public/translations/th/default.json | 3 ++- public/translations/tr/default.json | 5 +++-- public/translations/uk/default.json | 5 +++-- public/translations/ur/default.json | 3 ++- public/translations/vi/default.json | 5 +++-- public/translations/zh/default.json | 3 ++- src/components/subscribe-button/subscribe-button.module.css | 1 + src/components/topbar/topbar.tsx | 2 +- 37 files changed, 101 insertions(+), 65 deletions(-) diff --git a/public/translations/ar/default.json b/public/translations/ar/default.json index 4df3a3ef..cd09cb46 100644 --- a/public/translations/ar/default.json +++ b/public/translations/ar/default.json @@ -92,7 +92,7 @@ "create_community": "أنشئ مجتمعك الخاص", "moderators": "المشرفون", "about_moderation": "عن الإشراف", - "join": "انضمام", + "join": "انضم", "leave": "غادر", "created_by": "تم إنشاؤها بواسطة {{creatorAddress}}", "community_for": "مجتمع لمدة {{date}}", @@ -171,5 +171,6 @@ "show_parent": "أظهر المشاركة المشار إليها", "no_posts": "لا توجد مشاركات", "media_url": "عنوان وسائط", - "post_locked_info": "هذا المنشور مغلق. لن تتمكن من التعليق." + "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 370c3a76..5e2d0a97 100644 --- a/public/translations/bn/default.json +++ b/public/translations/bn/default.json @@ -92,7 +92,7 @@ "create_community": "আপনার নিজস্ব সম্প্রদায় তৈরি করুন", "moderators": "মডারেটর", "about_moderation": "মডারেশন টিম সম্পর্কে", - "join": "যোগদান", + "join": "যোগদান করুন", "leave": "ছাড়া", "created_by": "দ্বারা তৈরি {{creatorAddress}}", "community_for": "মেয়াদ শেষে একটি সম্প্রদায়", @@ -171,5 +171,6 @@ "show_parent": "সূচিত পোস্ট দেখুন", "no_posts": "কোন পোস্ট নেই", "media_url": "মিডিয়া ইউআরএল", - "post_locked_info": "এই পোস্টটি লক হয়েছে। আপনি মন্তব্য করতে পারবেন না।" + "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 7c1da515..e9c54d5d 100644 --- a/public/translations/cs/default.json +++ b/public/translations/cs/default.json @@ -92,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}}", @@ -171,5 +171,6 @@ "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." + "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 e677ef32..3f864352 100644 --- a/public/translations/da/default.json +++ b/public/translations/da/default.json @@ -92,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}}", @@ -171,5 +171,6 @@ "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." + "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 5b77a78b..9709e359 100644 --- a/public/translations/de/default.json +++ b/public/translations/de/default.json @@ -92,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}}", @@ -171,5 +171,6 @@ "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." + "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 e19e17b3..e34051fc 100644 --- a/public/translations/el/default.json +++ b/public/translations/el/default.json @@ -92,7 +92,7 @@ "create_community": "Δημιουργήστε τη δική σας κοινότητα", "moderators": "διαχειριστές", "about_moderation": "σχετικά με τη διαμεσολάβηση ομάδα", - "join": "συμμετοχή", + "join": "Συμμετοχή", "leave": "φύγετε", "created_by": "δημιουργήθηκε από {{creatorAddress}}", "community_for": "κοινότητα για {{date}}", @@ -171,5 +171,6 @@ "show_parent": "εμφάνιση της αναφερόμενης δημοσίευσης", "no_posts": "κανένα άρθρο", "media_url": "URL πολυμέσων", - "post_locked_info": "Αυτή η ανάρτηση είναι κλειδωμένη. Δεν θα μπορείτε να σχολιάσετε." + "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 49546ce1..420d7e0b 100644 --- a/public/translations/en/default.json +++ b/public/translations/en/default.json @@ -92,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}}", @@ -171,5 +171,6 @@ "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." + "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 86d14f7b..dbd1185f 100644 --- a/public/translations/es/default.json +++ b/public/translations/es/default.json @@ -92,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}}", @@ -171,5 +171,6 @@ "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." + "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 fa7c53e7..b41743c0 100644 --- a/public/translations/fa/default.json +++ b/public/translations/fa/default.json @@ -171,5 +171,6 @@ "show_parent": "نمایش پست مرجع داده شده", "no_posts": "بدون پست", "media_url": "آدرس رسانه", - "post_locked_info": "این پست قفل شده است. نمی‌توانید نظر دهید." + "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 c4654a8b..b4069620 100644 --- a/public/translations/fi/default.json +++ b/public/translations/fi/default.json @@ -92,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}}", @@ -171,5 +171,6 @@ "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ä." + "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 9ec9e549..e1a13ca8 100644 --- a/public/translations/fil/default.json +++ b/public/translations/fil/default.json @@ -92,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}}", @@ -171,5 +171,6 @@ "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." + "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 9bdf3e0c..04199993 100644 --- a/public/translations/fr/default.json +++ b/public/translations/fr/default.json @@ -92,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}}", @@ -171,5 +171,6 @@ "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." + "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 a8b77ca7..b6b91560 100644 --- a/public/translations/he/default.json +++ b/public/translations/he/default.json @@ -92,7 +92,7 @@ "create_community": "צור את הקהילה שלך", "moderators": "מנהלים", "about_moderation": "אודות צוות ההנהלה", - "join": "הצטרפות", + "join": "הצטרף", "leave": "לצאת", "created_by": "נוצר על ידי {{creatorAddress}}", "community_for": "קהילה למשך {{date}}", @@ -171,5 +171,6 @@ "show_parent": "הצג את הפוסט המתייחס אליו", "no_posts": "אין פוסטים", "media_url": "כתובת מדיה", - "post_locked_info": "הפוסט הזה נעול. אינך יכול להגיב." + "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 1a162d3e..98d30c48 100644 --- a/public/translations/hi/default.json +++ b/public/translations/hi/default.json @@ -171,5 +171,6 @@ "show_parent": "संदर्भित पोस्ट दिखाएं", "no_posts": "कोई पोस्ट नहीं", "media_url": "मीडिया यूआरएल", - "post_locked_info": "यह पोस्ट बंद है। आप टिप्पणी नहीं कर सकेंगे।" + "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 354744a9..07f981bf 100644 --- a/public/translations/hu/default.json +++ b/public/translations/hu/default.json @@ -92,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}}", @@ -171,5 +171,6 @@ "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." + "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 c63640bd..fb95c30b 100644 --- a/public/translations/id/default.json +++ b/public/translations/id/default.json @@ -92,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}}", @@ -171,5 +171,6 @@ "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." + "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 10f0c108..d0d0ae60 100644 --- a/public/translations/it/default.json +++ b/public/translations/it/default.json @@ -92,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}}", @@ -171,5 +171,6 @@ "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." + "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 9331bc3c..95e5cce1 100644 --- a/public/translations/ja/default.json +++ b/public/translations/ja/default.json @@ -92,7 +92,7 @@ "create_community": "独自のコミュニティを作成", "moderators": "モデレーター", "about_moderation": "モデレーションチームについて", - "join": "参加する", + "join": "参加", "leave": "退出", "created_by": "作成者:{{creatorAddress}}", "community_for": "{{date}} のコミュニティ", @@ -171,5 +171,6 @@ "show_parent": "参照されている投稿を表示", "no_posts": "投稿はありません", "media_url": "メディア URL", - "post_locked_info": "この投稿はロックされています。コメントできません。" + "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 aec81401..6f653fb6 100644 --- a/public/translations/ko/default.json +++ b/public/translations/ko/default.json @@ -92,7 +92,7 @@ "create_community": "나만의 커뮤니티 만들기", "moderators": "모더레이터", "about_moderation": "모더레이션 팀 정보", - "join": "가입하기", + "join": "가입", "leave": "나가기", "created_by": "만든 사람: {{creatorAddress}}", "community_for": "{{date}}에 대한 커뮤니티", @@ -171,5 +171,6 @@ "show_parent": "참조된 게시물 표시", "no_posts": "게시물이 없습니다", "media_url": "미디어 URL", - "post_locked_info": "이 게시물은 잠겨 있습니다. 댓글을 남길 수 없습니다." + "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 158971f0..19078b60 100644 --- a/public/translations/mr/default.json +++ b/public/translations/mr/default.json @@ -92,7 +92,7 @@ "create_community": "तुमचं स्वत: संघ तयार करा", "moderators": "मॉडरेटर्स", "about_moderation": "मॉडरेशन टीमविषयी", - "join": "सामील व्हा", + "join": "सामील होऊ", "leave": "सोडा", "created_by": "द्वारे तयार केले {{creatorAddress}}", "community_for": "{{date}}साठी एक समुदाय", @@ -171,5 +171,6 @@ "show_parent": "संदर्भित पोस्ट दाखवा", "no_posts": "कोणतेही पोस्ट नाहीत", "media_url": "मिडिया URL", - "post_locked_info": "हा पोस्ट लॉक झाला आहे. आपण टिप्पणी करू शकणार नाहीत." + "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 678af641..31114f33 100644 --- a/public/translations/nl/default.json +++ b/public/translations/nl/default.json @@ -92,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}}", @@ -171,5 +171,6 @@ "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." + "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 3a202a54..717d89e1 100644 --- a/public/translations/no/default.json +++ b/public/translations/no/default.json @@ -92,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}}", @@ -171,5 +171,6 @@ "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." + "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 d8a52c0f..7c00a049 100644 --- a/public/translations/pl/default.json +++ b/public/translations/pl/default.json @@ -92,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}}", @@ -171,5 +171,6 @@ "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ć." + "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 954460a7..069b0640 100644 --- a/public/translations/pt/default.json +++ b/public/translations/pt/default.json @@ -92,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}}", @@ -171,5 +171,6 @@ "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." + "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 7589a0d5..dabc6fe6 100644 --- a/public/translations/ro/default.json +++ b/public/translations/ro/default.json @@ -92,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}}", @@ -171,5 +171,6 @@ "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." + "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 e1f87968..0f5493c0 100644 --- a/public/translations/ru/default.json +++ b/public/translations/ru/default.json @@ -92,7 +92,7 @@ "create_community": "Создайте своё сообщество", "moderators": "модераторы", "about_moderation": "о модераторах", - "join": "присоединиться", + "join": "Присоединиться", "leave": "покинуть", "created_by": "создано {{creatorAddress}}", "community_for": "сообщество на {{date}}", @@ -171,5 +171,6 @@ "show_parent": "показать упомянутый пост", "no_posts": "нет записей", "media_url": "URL медиа", - "post_locked_info": "Этот пост заблокирован. Вы не сможете оставить комментарий." + "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 cda5a2f2..4efacf4b 100644 --- a/public/translations/sq/default.json +++ b/public/translations/sq/default.json @@ -92,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}}", @@ -171,5 +171,6 @@ "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." + "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 e05df2f7..7d6d51b6 100644 --- a/public/translations/sv/default.json +++ b/public/translations/sv/default.json @@ -92,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}}", @@ -171,5 +171,6 @@ "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." + "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 7c216111..77202d0d 100644 --- a/public/translations/te/default.json +++ b/public/translations/te/default.json @@ -171,5 +171,6 @@ "show_parent": "సూచించబడిన పోస్ట్ చూపించు", "no_posts": "పోస్టులు లేవు", "media_url": "మీడియా URL", - "post_locked_info": "ఈ పోస్టు లాక్ చేయబడింది. మీరు వ్యాఖ్యానించలేరు." + "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 eff272ac..3e0b63b8 100644 --- a/public/translations/th/default.json +++ b/public/translations/th/default.json @@ -171,5 +171,6 @@ "show_parent": "แสดงโพสต์ที่ถูกอ้างอิง", "no_posts": "ไม่มีโพสต์", "media_url": "URL สื่อ", - "post_locked_info": "โพสต์นี้ถูกล็อก คุณจะไม่สามารถแสดงความคิดเห็นได้" + "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 b54faaff..0732a36d 100644 --- a/public/translations/tr/default.json +++ b/public/translations/tr/default.json @@ -92,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", @@ -171,5 +171,6 @@ "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." + "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 d1894857..f7e48001 100644 --- a/public/translations/uk/default.json +++ b/public/translations/uk/default.json @@ -92,7 +92,7 @@ "create_community": "Створіть своє співтовариство", "moderators": "модератори", "about_moderation": "про модерацію", - "join": "приєднатися", + "join": "Приєднатися", "leave": "покинути", "created_by": "створено {{creatorAddress}}", "community_for": "спільнота на {{date}}", @@ -171,5 +171,6 @@ "show_parent": "показати зазначений допис", "no_posts": "немає повідомлень", "media_url": "URL медіа", - "post_locked_info": "Цей пост заблокований. Ви не зможете залишити коментар." + "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 2f810853..3cf7826e 100644 --- a/public/translations/ur/default.json +++ b/public/translations/ur/default.json @@ -171,5 +171,6 @@ "show_parent": "ذکر کردہ پوسٹ دکھائیں", "no_posts": "کوئی پوسٹ نہیں", "media_url": "میڈیا یو آر ایل", - "post_locked_info": "یہ پوسٹ بند ہے۔ آپ تبصرہ نہیں کر سکیں گے۔" + "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 b37073e0..ee4c636b 100644 --- a/public/translations/vi/default.json +++ b/public/translations/vi/default.json @@ -92,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}}", @@ -171,5 +171,6 @@ "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." + "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 2dd577b9..0029b253 100644 --- a/public/translations/zh/default.json +++ b/public/translations/zh/default.json @@ -171,5 +171,6 @@ "show_parent": "显示被引用的帖子", "no_posts": "没有帖子", "media_url": "媒体链接", - "post_locked_info": "此帖已锁定。您将无法评论。" + "post_locked_info": "此帖已锁定。您将无法评论。", + "no_subscriptions_notice": "您尚未加入任何社区。" } \ No newline at end of file diff --git a/src/components/subscribe-button/subscribe-button.module.css b/src/components/subscribe-button/subscribe-button.module.css index edc38241..fa34b6b4 100644 --- a/src/components/subscribe-button/subscribe-button.module.css +++ b/src/components/subscribe-button/subscribe-button.module.css @@ -9,6 +9,7 @@ font-weight: bold; border-radius: 3px; cursor: pointer; + text-transform: lowercase; } .joinButton { diff --git a/src/components/topbar/topbar.tsx b/src/components/topbar/topbar.tsx index 2bd8059c..acfb6b61 100644 --- a/src/components/topbar/topbar.tsx +++ b/src/components/topbar/topbar.tsx @@ -113,7 +113,7 @@ const TopBar = () => { {getShortAddress(subscription)} ))} - {subscriptions?.length === 0 &&
    you haven't joined any community
    } + {subscriptions?.length === 0 &&
    {t('no_subscriptions_notice')}
    }
    From 69f3d2019f43a6ca7ed74946d99ebf164a282973 Mon Sep 17 00:00:00 2001 From: "plebeius.eth" Date: Sat, 30 Dec 2023 14:58:03 +0100 Subject: [PATCH 10/12] feat: add subplebbits component and header --- src/app.tsx | 3 ++ src/components/header/header.tsx | 35 ++++++++++++++++++-- src/components/topbar/topbar.tsx | 2 +- src/lib/utils/view-utils.ts | 4 +++ src/views/subplebbits/index.ts | 1 + src/views/subplebbits/subplebbits.module.css | 0 src/views/subplebbits/subplebbits.tsx | 5 +++ 7 files changed, 46 insertions(+), 4 deletions(-) create mode 100644 src/views/subplebbits/index.ts create mode 100644 src/views/subplebbits/subplebbits.module.css create mode 100644 src/views/subplebbits/subplebbits.tsx 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/header/header.tsx b/src/components/header/header.tsx index c98442c1..e0ebead2 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'; @@ -192,6 +193,28 @@ const InboxHeaderTabs = () => { ); }; +const SubplebbitsHeaderTabs = () => { + return ( + <> +
  • + + homepage + +
  • +
  • + + proposed + +
  • +
  • + + my communities + +
  • + + ); +}; + const HeaderTabs = () => { const params = useParams(); const location = useLocation(); @@ -204,6 +227,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 ; @@ -215,6 +239,8 @@ const HeaderTabs = () => { return pending; } else if (isInboxPage) { return ; + } else if (isSubplebbitsPage) { + return ; } return null; }; @@ -228,10 +254,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')}; @@ -256,6 +283,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/topbar/topbar.tsx b/src/components/topbar/topbar.tsx index acfb6b61..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/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/views/subplebbits/index.ts b/src/views/subplebbits/index.ts new file mode 100644 index 00000000..682a6c5d --- /dev/null +++ b/src/views/subplebbits/index.ts @@ -0,0 +1 @@ +export { default } from './subplebbits'; diff --git a/src/views/subplebbits/subplebbits.module.css b/src/views/subplebbits/subplebbits.module.css new file mode 100644 index 00000000..e69de29b diff --git a/src/views/subplebbits/subplebbits.tsx b/src/views/subplebbits/subplebbits.tsx new file mode 100644 index 00000000..3fe6258c --- /dev/null +++ b/src/views/subplebbits/subplebbits.tsx @@ -0,0 +1,5 @@ +const Subplebbits = () => { + return
    subplebbits
    ; +}; + +export default Subplebbits; From 12306a68164b3fd50fe58532ce6e7340812a4c34 Mon Sep 17 00:00:00 2001 From: "plebeius.eth" Date: Sat, 30 Dec 2023 18:59:47 +0100 Subject: [PATCH 11/12] feat(subplebbits): add initial UI --- src/components/header/header.tsx | 6 +- .../post/expando/expando.module.css | 2 +- src/components/sidebar/sidebar.tsx | 5 +- src/themes.css | 6 +- src/views/subplebbits/subplebbits.module.css | 86 +++++++++++++++++++ src/views/subplebbits/subplebbits.tsx | 57 +++++++++++- 6 files changed, 155 insertions(+), 7 deletions(-) diff --git a/src/components/header/header.tsx b/src/components/header/header.tsx index e0ebead2..d7d2bdf4 100644 --- a/src/components/header/header.tsx +++ b/src/components/header/header.tsx @@ -194,11 +194,13 @@ const InboxHeaderTabs = () => { }; const SubplebbitsHeaderTabs = () => { + const { t } = useTranslation(); + return ( <>
  • - homepage + {t('home')}
  • @@ -208,7 +210,7 @@ const SubplebbitsHeaderTabs = () => {
  • - my communities + {t('my_communities')}
  • 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/sidebar/sidebar.tsx b/src/components/sidebar/sidebar.tsx index c9c2aa77..0a350f7d 100644 --- a/src/components/sidebar/sidebar.tsx +++ b/src/components/sidebar/sidebar.tsx @@ -5,7 +5,7 @@ import { useBlock, Role, useSubplebbitStats, useAccountComment } from '@plebbit/ import styles from './sidebar.module.css'; import { getFormattedDate, getFormattedDuration, getFormattedTimeAgo } from '../../lib/utils/time-utils'; import { findSubplebbitCreator } from '../../lib/utils/user-utils'; -import { isAboutView, isAllView, isHomeView, isPendingView, isPostView } from '../../lib/utils/view-utils'; +import { isAboutView, isAllView, isHomeView, isPendingView, isPostView, isSubplebbitsView } from '../../lib/utils/view-utils'; import SearchBar from '../search-bar'; import SubscribeButton from '../subscribe-button'; @@ -88,6 +88,7 @@ const Sidebar = ({ address, cid, createdAt, description, downvoteCount = 0, role const isHomePage = isHomeView(location.pathname, params); const isPendingPage = isPendingView(location.pathname, params); const isPostPage = isPostView(location.pathname, params); + const isSubplebbitsPage = isSubplebbitsView(location.pathname); const pendingPost = useAccountComment({ commentIndex: params?.accountCommentIndex as any }); @@ -130,7 +131,7 @@ const Sidebar = ({ address, cid, createdAt, description, downvoteCount = 0, role
    - {!isHomePage && !isAllPage && !isPendingPage && ( + {!isHomePage && !isAllPage && !isPendingPage && !isSubplebbitsPage && (
    {address} diff --git a/src/themes.css b/src/themes.css index e50a9f05..89b0732f 100644 --- a/src/themes.css +++ b/src/themes.css @@ -5,12 +5,14 @@ --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%); @@ -56,6 +58,8 @@ --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/subplebbits/subplebbits.module.css b/src/views/subplebbits/subplebbits.module.css index e69de29b..993538d3 100644 --- a/src/views/subplebbits/subplebbits.module.css +++ b/src/views/subplebbits/subplebbits.module.css @@ -0,0 +1,86 @@ +@media (max-width: 768px) { + .content { + padding: 7px 0px 0px 0px; + } + + .sidebar { + display: none; + } +} + +@media (min-width: 768px) { + .content { + padding: 7px 5px 0px 5px; + } + + .stateString { + max-width: calc(100% - 305px); + } +} + +.infobar { + background-color: var(--background-orange); + border-color: var(--border-orange); + border-style: solid; + border-width: 1px; + font-size: small; + margin: 0 305px 5px 0px; + padding: 6px 10px; + color: var(--text); + word-wrap: break-word; + font-size: 14px; + text-transform: lowercase; +} + +.infobar code { + padding: 0 4px; + margin: 0 2px; + background-color: var(--code-background); + border: 1px solid var(--code-border); +} + +.subplebbit { + margin-bottom: 10px; +} + +.midcol { + margin-right: 5px; + margin-top: 5px; + text-align: right; + width: 12em; + float: left; + margin-left: 7px; +} + +.entry { + overflow: hidden; + opacity: 1; +} + +.title { + margin-bottom: 1px; + font-size: medium; + margin-right: 5px; + overflow: hidden; + unicode-bidi: isolate; +} + +.title a { + color: var(--link); +} + +/* .title a:visited { + color: var(--link-visited); +} */ + +.description { + font-size: small; + max-width: 60em; + unicode-bidi: isolate; + background-color: var(--background-markdown); + border: 1px solid var(--gray-light); + color: var(--text-markdown); + padding: 2px 5px; + border-radius: 7px; + margin: 5px 0px; +} \ No newline at end of file diff --git a/src/views/subplebbits/subplebbits.tsx b/src/views/subplebbits/subplebbits.tsx index 3fe6258c..ed735cb2 100644 --- a/src/views/subplebbits/subplebbits.tsx +++ b/src/views/subplebbits/subplebbits.tsx @@ -1,5 +1,60 @@ +import { useMemo } from 'react'; +import { Subplebbit as SubplebbitType, useAccountSubplebbits, useSubplebbitStats } from '@plebbit/plebbit-react-hooks'; +import { useTranslation } from 'react-i18next'; +import styles from './subplebbits.module.css'; +import Sidebar from '../../components/sidebar'; +import SubscribeButton from '../../components/subscribe-button'; +import { Link } from 'react-router-dom'; +import { getFormattedDuration } from '../../lib/utils/time-utils'; + +interface SubplebbitProps { + subplebbit: SubplebbitType; +} + +const Subplebbit = ({ subplebbit }: SubplebbitProps) => { + 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 = () => { - return
    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; From b094523cd5351669e4693d685a64bf00b8f47a17 Mon Sep 17 00:00:00 2001 From: "plebeius.eth" Date: Sat, 30 Dec 2023 22:23:50 +0100 Subject: [PATCH 12/12] fix(header): add missing translation --- src/components/header/header.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/header/header.tsx b/src/components/header/header.tsx index d7d2bdf4..8ad782e8 100644 --- a/src/components/header/header.tsx +++ b/src/components/header/header.tsx @@ -218,6 +218,7 @@ const SubplebbitsHeaderTabs = () => { }; const HeaderTabs = () => { + const { t } = useTranslation(); const params = useParams(); const location = useLocation(); const isAllPage = isAllView(location.pathname); @@ -238,7 +239,7 @@ const HeaderTabs = () => { } else if ((isProfilePage || isAuthorPage) && !isPendingPage) { return ; } else if (isPendingPage) { - return pending; + return {t('pending')}; } else if (isInboxPage) { return ; } else if (isSubplebbitsPage) {