From 59f1f1b572fb1f53d70458800c8497fd4bbc9f09 Mon Sep 17 00:00:00 2001 From: "Tom (plebeius.eth)" Date: Thu, 19 Dec 2024 15:57:04 +0100 Subject: [PATCH] feat(reply): add colored "submitter" "[S]" next to user name if reply author is also the post author --- public/translations/ar/default.json | 3 +- public/translations/bn/default.json | 3 +- public/translations/cs/default.json | 3 +- public/translations/da/default.json | 3 +- public/translations/de/default.json | 3 +- public/translations/el/default.json | 3 +- public/translations/en/default.json | 3 +- public/translations/es/default.json | 3 +- public/translations/fa/default.json | 3 +- public/translations/fi/default.json | 3 +- public/translations/fil/default.json | 3 +- public/translations/fr/default.json | 3 +- public/translations/he/default.json | 3 +- public/translations/hi/default.json | 3 +- public/translations/hu/default.json | 3 +- public/translations/id/default.json | 3 +- public/translations/it/default.json | 3 +- public/translations/ja/default.json | 3 +- public/translations/ko/default.json | 3 +- public/translations/mr/default.json | 3 +- public/translations/nl/default.json | 3 +- public/translations/no/default.json | 3 +- public/translations/pl/default.json | 3 +- public/translations/pt/default.json | 3 +- public/translations/ro/default.json | 3 +- public/translations/ru/default.json | 3 +- public/translations/sq/default.json | 3 +- public/translations/sv/default.json | 3 +- public/translations/te/default.json | 3 +- public/translations/th/default.json | 3 +- public/translations/tr/default.json | 3 +- public/translations/uk/default.json | 3 +- public/translations/ur/default.json | 3 +- public/translations/vi/default.json | 3 +- public/translations/zh/default.json | 3 +- src/components/reply/reply.module.css | 8 +++++ src/components/reply/reply.tsx | 45 ++++++++++++++++++++++----- src/themes.css | 2 ++ 38 files changed, 118 insertions(+), 42 deletions(-) diff --git a/public/translations/ar/default.json b/public/translations/ar/default.json index 20083328..129753f1 100644 --- a/public/translations/ar/default.json +++ b/public/translations/ar/default.json @@ -350,5 +350,6 @@ "must_be_over_18_explanation": "يجب أن تكون في سن 18 عامًا على الأقل لعرض هذا المحتوى. هل أنت فوق 18 عامًا ومستعد لرؤية المحتوى البالغ؟", "no_thank_you": "لا، شكرًا", "continue": "استمر", - "download_latest_android": "تحميل أحدث إصدار من أندرويد؟" + "download_latest_android": "تحميل أحدث إصدار من أندرويد؟", + "submitter": "مقدّم" } \ No newline at end of file diff --git a/public/translations/bn/default.json b/public/translations/bn/default.json index 2f6b1346..cf7e9133 100644 --- a/public/translations/bn/default.json +++ b/public/translations/bn/default.json @@ -350,5 +350,6 @@ "must_be_over_18_explanation": "এই কন্টেন্ট দেখতে আপনাকে অন্তত ১৮ বছর বয়সী হতে হবে। আপনি কি ১৮ বছরের উপরে এবং প্রাপ্তবয়স্ক কন্টেন্ট দেখতে ইচ্ছুক?", "no_thank_you": "না, ধন্যবাদ", "continue": "অবস্থান করুন", - "download_latest_android": "সর্বশেষ অ্যান্ড্রয়েড সংস্করণ ডাউনলোড করুন?" + "download_latest_android": "সর্বশেষ অ্যান্ড্রয়েড সংস্করণ ডাউনলোড করুন?", + "submitter": "জমাদাতা" } \ No newline at end of file diff --git a/public/translations/cs/default.json b/public/translations/cs/default.json index 7838f289..1b91e1bb 100644 --- a/public/translations/cs/default.json +++ b/public/translations/cs/default.json @@ -350,5 +350,6 @@ "must_be_over_18_explanation": "Musíte být alespoň 18 let starý/á, abyste si mohli prohlédnout tento obsah. Jste starší 18 let a ochotni vidět obsah pro dospělé?", "no_thank_you": "Ne, děkuji", "continue": "Pokračovat", - "download_latest_android": "Stáhněte si nejnovější verzi Androidu?" + "download_latest_android": "Stáhněte si nejnovější verzi Androidu?", + "submitter": "Odesílatel" } \ No newline at end of file diff --git a/public/translations/da/default.json b/public/translations/da/default.json index 9d999514..1dc48c07 100644 --- a/public/translations/da/default.json +++ b/public/translations/da/default.json @@ -350,5 +350,6 @@ "must_be_over_18_explanation": "Du skal være mindst 18 år gammel for at se dette indhold. Er du over 18 og villig til at se voksenindhold?", "no_thank_you": "Nej, tak tak", "continue": "Fortsæt", - "download_latest_android": "Download den nyeste Android-version?" + "download_latest_android": "Download den nyeste Android-version?", + "submitter": "Indsender" } \ No newline at end of file diff --git a/public/translations/de/default.json b/public/translations/de/default.json index 7c0e2cf8..a0fcc4d3 100644 --- a/public/translations/de/default.json +++ b/public/translations/de/default.json @@ -350,5 +350,6 @@ "must_be_over_18_explanation": "Sie müssen mindestens 18 Jahre alt sein, um diesen Inhalt zu sehen. Sind Sie über 18 Jahre alt und bereit, Erwachsenen-Inhalte zu sehen?", "no_thank_you": "Nein, danke", "continue": "Weiter", - "download_latest_android": "Laden Sie die neueste Android-Version herunter?" + "download_latest_android": "Laden Sie die neueste Android-Version herunter?", + "submitter": "Einreicher" } \ No newline at end of file diff --git a/public/translations/el/default.json b/public/translations/el/default.json index 3072f3ed..cfceed2c 100644 --- a/public/translations/el/default.json +++ b/public/translations/el/default.json @@ -350,5 +350,6 @@ "must_be_over_18_explanation": "Πρέπει να είστε τουλάχιστον 18 ετών για να δείτε αυτό το περιεχόμενο. Είστε άνω των 18 και πρόθυμοι να δείτε περιεχόμενο για ενήλικες;", "no_thank_you": "Όχι, ευχαριστώ", "continue": "Συνέχεια", - "download_latest_android": "Κατεβάστε την τελευταία έκδοση Android;" + "download_latest_android": "Κατεβάστε την τελευταία έκδοση Android;", + "submitter": "Υποβολέας" } \ No newline at end of file diff --git a/public/translations/en/default.json b/public/translations/en/default.json index ffe5dc26..80e2bc38 100644 --- a/public/translations/en/default.json +++ b/public/translations/en/default.json @@ -350,5 +350,6 @@ "must_be_over_18_explanation": "You must be at least eighteen years old to view this content. Are you over eighteen and willing to see adult content?", "no_thank_you": "No thank you", "continue": "Continue", - "download_latest_android": "Download the latest android version?" + "download_latest_android": "Download the latest android version?", + "submitter": "Submitter" } \ No newline at end of file diff --git a/public/translations/es/default.json b/public/translations/es/default.json index 560789ef..b40077a0 100644 --- a/public/translations/es/default.json +++ b/public/translations/es/default.json @@ -350,5 +350,6 @@ "must_be_over_18_explanation": "Debe tener al menos dieciocho años para ver este contenido. ¿Tienes más de dieciocho años y estás dispuesto a ver contenido para adultos?", "no_thank_you": "No gracias", "continue": "Continuar", - "download_latest_android": "¿Descargar la última versión de Android?" + "download_latest_android": "¿Descargar la última versión de Android?", + "submitter": "Remitente" } \ No newline at end of file diff --git a/public/translations/fa/default.json b/public/translations/fa/default.json index 382efa2e..9d1dd4d3 100644 --- a/public/translations/fa/default.json +++ b/public/translations/fa/default.json @@ -350,5 +350,6 @@ "must_be_over_18_explanation": "برای مشاهده این محتوا باید حداقل هجده سال داشته باشید. آیا شما بالای هجده سال دارید و آماده مشاهده محتوای بزرگسالان هستید؟", "no_thank_you": "نه، ممنون", "continue": "ادامه بده", - "download_latest_android": "دانلود آخرین نسخه اندروید؟" + "download_latest_android": "دانلود آخرین نسخه اندروید؟", + "submitter": "ارسال‌کننده" } \ No newline at end of file diff --git a/public/translations/fi/default.json b/public/translations/fi/default.json index 994e925f..7975991d 100644 --- a/public/translations/fi/default.json +++ b/public/translations/fi/default.json @@ -350,5 +350,6 @@ "must_be_over_18_explanation": "Sinun täytyy olla vähintään kahdeksantoista vuotta vanha nähdäksesi tämän sisällön. Oletko yli 18-vuotias ja halukas katsomaan aikuisille tarkoitettua sisältöä?", "no_thank_you": "Ei kiitos", "continue": "Jatka", - "download_latest_android": "Lataa uusin Android-versio?" + "download_latest_android": "Lataa uusin Android-versio?", + "submitter": "Lähettäjä" } \ No newline at end of file diff --git a/public/translations/fil/default.json b/public/translations/fil/default.json index 54e45419..d5bd197d 100644 --- a/public/translations/fil/default.json +++ b/public/translations/fil/default.json @@ -350,5 +350,6 @@ "must_be_over_18_explanation": "Dapat kang hindi bababa sa labing walong taon upang makita ang nilalamang ito. Ikaw ba ay higit sa labing walong taon at handang makita ang nilalamang pang-adulto?", "no_thank_you": "Hindi, salamat", "continue": "Magpatuloy", - "download_latest_android": "I-download ang pinakabagong bersyon ng Android?" + "download_latest_android": "I-download ang pinakabagong bersyon ng Android?", + "submitter": "Nagpadala" } \ No newline at end of file diff --git a/public/translations/fr/default.json b/public/translations/fr/default.json index 0e8de0aa..bd972d4f 100644 --- a/public/translations/fr/default.json +++ b/public/translations/fr/default.json @@ -350,5 +350,6 @@ "must_be_over_18_explanation": "Vous devez avoir au moins dix-huit ans pour voir ce contenu. Avez-vous plus de dix-huit ans et êtes-vous prêt à voir du contenu pour adultes ?", "no_thank_you": "Non merci", "continue": "Continuer", - "download_latest_android": "Télécharger la dernière version d'Android ?" + "download_latest_android": "Télécharger la dernière version d'Android ?", + "submitter": "Soumetteur" } \ No newline at end of file diff --git a/public/translations/he/default.json b/public/translations/he/default.json index 83549b6f..57ab1920 100644 --- a/public/translations/he/default.json +++ b/public/translations/he/default.json @@ -350,5 +350,6 @@ "must_be_over_18_explanation": "עליך להיות לפחות בן 18 על מנת לצפות בתוכן הזה. האם אתה מעל גיל 18 ומוכן לראות תוכן למבוגרים?", "no_thank_you": "לא תודה", "continue": "המשך", - "download_latest_android": "להוריד את הגרסה האחרונה של אנדרואיד?" + "download_latest_android": "להוריד את הגרסה האחרונה של אנדרואיד?", + "submitter": "שולח" } \ No newline at end of file diff --git a/public/translations/hi/default.json b/public/translations/hi/default.json index f46d8a6a..d6111a24 100644 --- a/public/translations/hi/default.json +++ b/public/translations/hi/default.json @@ -350,5 +350,6 @@ "must_be_over_18_explanation": "इस सामग्री को देखने के लिए आपको कम से कम अठारह साल का होना चाहिए। क्या आप अठारह साल से ऊपर हैं और वयस्क सामग्री देखने के इच्छुक हैं?", "no_thank_you": "नहीं, धन्यवाद", "continue": "जारी रखें", - "download_latest_android": "नवीनतम एंड्रॉइड संस्करण डाउनलोड करें?" + "download_latest_android": "नवीनतम एंड्रॉइड संस्करण डाउनलोड करें?", + "submitter": "प्रस्तावक" } \ No newline at end of file diff --git a/public/translations/hu/default.json b/public/translations/hu/default.json index 596d376b..18245fc4 100644 --- a/public/translations/hu/default.json +++ b/public/translations/hu/default.json @@ -350,5 +350,6 @@ "must_be_over_18_explanation": "Legalább tizennyolc évesnek kell lenned ahhoz, hogy megtekinthesd ezt a tartalmat. Több mint tizennyolc éves vagy, és hajlandó vagy felnőtteknek szóló tartalmat nézni?", "no_thank_you": "Nem, köszönöm", "continue": "Folytatás", - "download_latest_android": "Töltse le a legújabb Android verziót?" + "download_latest_android": "Töltse le a legújabb Android verziót?", + "submitter": "Beküldő" } \ No newline at end of file diff --git a/public/translations/id/default.json b/public/translations/id/default.json index ce214e19..8f238e4c 100644 --- a/public/translations/id/default.json +++ b/public/translations/id/default.json @@ -350,5 +350,6 @@ "must_be_over_18_explanation": "Anda harus berusia minimal delapan belas tahun untuk melihat konten ini. Apakah Anda berusia lebih dari delapan belas tahun dan bersedia melihat konten dewasa?", "no_thank_you": "Tidak, terima kasih", "continue": "Lanjutkan", - "download_latest_android": "Unduh versi Android terbaru?" + "download_latest_android": "Unduh versi Android terbaru?", + "submitter": "Pengirim" } \ No newline at end of file diff --git a/public/translations/it/default.json b/public/translations/it/default.json index 72e26db5..8ebd2630 100644 --- a/public/translations/it/default.json +++ b/public/translations/it/default.json @@ -350,5 +350,6 @@ "must_be_over_18_explanation": "Devi avere almeno diciotto anni per visualizzare questo contenuto. Hai più di diciotto anni e sei disposto a vedere contenuti per adulti?", "no_thank_you": "No, grazie", "continue": "Continua", - "download_latest_android": "Scarica l'ultima versione di Android?" + "download_latest_android": "Scarica l'ultima versione di Android?", + "submitter": "Inviatore" } \ No newline at end of file diff --git a/public/translations/ja/default.json b/public/translations/ja/default.json index 0d5f63bb..f1ef5573 100644 --- a/public/translations/ja/default.json +++ b/public/translations/ja/default.json @@ -350,5 +350,6 @@ "must_be_over_18_explanation": "このコンテンツを見るには少なくとも18歳でなければなりません。あなたは18歳以上で、成人向けコンテンツを見る準備ができていますか?", "no_thank_you": "いいえ、ありがとう", "continue": "続ける", - "download_latest_android": "最新のAndroidバージョンをダウンロードしますか?" + "download_latest_android": "最新のAndroidバージョンをダウンロードしますか?", + "submitter": "提出者" } \ No newline at end of file diff --git a/public/translations/ko/default.json b/public/translations/ko/default.json index df77475b..d91cb002 100644 --- a/public/translations/ko/default.json +++ b/public/translations/ko/default.json @@ -350,5 +350,6 @@ "must_be_over_18_explanation": "이 콘텐츠를 보려면 최소한 18세 이상이어야 합니다. 당신은 18세 이상이며 성인 콘텐츠를 볼 준비가 되셨나요?", "no_thank_you": "아니요, 감사합니다", "continue": "계속", - "download_latest_android": "최신 Android 버전을 다운로드하시겠습니까?" + "download_latest_android": "최신 Android 버전을 다운로드하시겠습니까?", + "submitter": "제출자" } \ No newline at end of file diff --git a/public/translations/mr/default.json b/public/translations/mr/default.json index 909296ff..ee5df363 100644 --- a/public/translations/mr/default.json +++ b/public/translations/mr/default.json @@ -350,5 +350,6 @@ "must_be_over_18_explanation": "या सामग्रीला पाहण्यासाठी तुम्हाला किमान अठरा वर्षे वयाचे असावे लागेल. तुम्ही अठरा वर्षे वयाच्या वरील आहात का आणि प्रौढ सामग्री पाहण्यास तयार आहात?", "no_thank_you": "नाही, धन्यवाद", "continue": "सुरू ठेवा", - "download_latest_android": "ताज्या Android आवृत्तीचे डाउनलोड करा?" + "download_latest_android": "ताज्या Android आवृत्तीचे डाउनलोड करा?", + "submitter": "समीक्षक" } \ No newline at end of file diff --git a/public/translations/nl/default.json b/public/translations/nl/default.json index 20fae1a3..f5cc8ced 100644 --- a/public/translations/nl/default.json +++ b/public/translations/nl/default.json @@ -350,5 +350,6 @@ "must_be_over_18_explanation": "Je moet minstens achttien jaar oud zijn om deze inhoud te bekijken. Ben je ouder dan achttien en bereid om volwassen inhoud te bekijken?", "no_thank_you": "Nee, bedankt", "continue": "Doorgaan", - "download_latest_android": "Download de nieuwste Android-versie?" + "download_latest_android": "Download de nieuwste Android-versie?", + "submitter": "Indiener" } \ No newline at end of file diff --git a/public/translations/no/default.json b/public/translations/no/default.json index a2f21300..49705fc5 100644 --- a/public/translations/no/default.json +++ b/public/translations/no/default.json @@ -350,5 +350,6 @@ "must_be_over_18_explanation": "Du må være minst 18 år gammel for å se dette innholdet. Er du over 18 og villig til å se vokseninnhold?", "no_thank_you": "Nei, takk", "continue": "Fortsett", - "download_latest_android": "Last ned den nyeste Android-versjonen?" + "download_latest_android": "Last ned den nyeste Android-versjonen?", + "submitter": "Innsender" } \ No newline at end of file diff --git a/public/translations/pl/default.json b/public/translations/pl/default.json index 625accb9..9a3bdc6d 100644 --- a/public/translations/pl/default.json +++ b/public/translations/pl/default.json @@ -350,5 +350,6 @@ "must_be_over_18_explanation": "Musisz mieć co najmniej osiemnaście lat, aby oglądać tę treść. Masz ponad osiemnaście lat i chcesz oglądać treści dla dorosłych?", "no_thank_you": "Nie, dziękuję", "continue": "Kontynuować", - "download_latest_android": "Pobierz najnowszą wersję Androida?" + "download_latest_android": "Pobierz najnowszą wersję Androida?", + "submitter": "Nadawca" } \ No newline at end of file diff --git a/public/translations/pt/default.json b/public/translations/pt/default.json index faec01be..0d17b79f 100644 --- a/public/translations/pt/default.json +++ b/public/translations/pt/default.json @@ -350,5 +350,6 @@ "must_be_over_18_explanation": "Você deve ter pelo menos dezoito anos para ver este conteúdo. Você tem mais de dezoito anos e está disposto a ver conteúdo para adultos?", "no_thank_you": "Não, obrigado", "continue": "Continuar", - "download_latest_android": "Baixar a versão mais recente do Android?" + "download_latest_android": "Baixar a versão mais recente do Android?", + "submitter": "Submissor" } \ No newline at end of file diff --git a/public/translations/ro/default.json b/public/translations/ro/default.json index 6ae4f7c0..8dbf385d 100644 --- a/public/translations/ro/default.json +++ b/public/translations/ro/default.json @@ -350,5 +350,6 @@ "must_be_over_18_explanation": "Trebuie să ai cel puțin optsprezece ani pentru a vizualiza acest conținut. Ai peste optsprezece ani și ești dispus să vizionezi conținut pentru adulți?", "no_thank_you": "Nu, mulțumesc", "continue": "Continuă", - "download_latest_android": "Descărcați cea mai recentă versiune Android?" + "download_latest_android": "Descărcați cea mai recentă versiune Android?", + "submitter": "Trimis" } \ No newline at end of file diff --git a/public/translations/ru/default.json b/public/translations/ru/default.json index 1af9221a..39d7b97e 100644 --- a/public/translations/ru/default.json +++ b/public/translations/ru/default.json @@ -350,5 +350,6 @@ "must_be_over_18_explanation": "Вы должны быть как минимум восемнадцати лет, чтобы просматривать этот контент. Вам больше восемнадцати лет, и вы готовы просматривать контент для взрослых?", "no_thank_you": "Нет, спасибо", "continue": "Продолжить", - "download_latest_android": "Скачать последнюю версию Android?" + "download_latest_android": "Скачать последнюю версию Android?", + "submitter": "Отправитель" } \ No newline at end of file diff --git a/public/translations/sq/default.json b/public/translations/sq/default.json index 8b97bf14..59b52b1d 100644 --- a/public/translations/sq/default.json +++ b/public/translations/sq/default.json @@ -350,5 +350,6 @@ "must_be_over_18_explanation": "Duhet të jeni të paktën tetëmbëdhjetë vjeç për të parë këtë përmbajtje. A jeni mbi tetëmbëdhjetë vjeç dhe jeni të gatshëm të shihni përmbajtje për të rritur?", "no_thank_you": "Jo, faleminderit", "continue": "Vazhdoni", - "download_latest_android": "Shkarkoni versionin më të fundit të Android?" + "download_latest_android": "Shkarkoni versionin më të fundit të Android?", + "submitter": "Dërguesi" } \ No newline at end of file diff --git a/public/translations/sv/default.json b/public/translations/sv/default.json index c49da174..5cda9c8c 100644 --- a/public/translations/sv/default.json +++ b/public/translations/sv/default.json @@ -350,5 +350,6 @@ "must_be_over_18_explanation": "Du måste vara minst arton år gammal för att se detta innehåll. Är du över arton och villig att se vuxeninnehåll?", "no_thank_you": "Nej, tack", "continue": "Fortsätt", - "download_latest_android": "Ladda ner den senaste Android-versionen?" + "download_latest_android": "Ladda ner den senaste Android-versionen?", + "submitter": "Inlämnare" } \ No newline at end of file diff --git a/public/translations/te/default.json b/public/translations/te/default.json index fc5ae3d9..d8de3124 100644 --- a/public/translations/te/default.json +++ b/public/translations/te/default.json @@ -350,5 +350,6 @@ "must_be_over_18_explanation": "ఈ కంటెంట్‌ను చూడడానికి మీరు కనీసం పద్దెనిమిది సంవత్సరాలు వయస్సు ఉన్నట్లయితే కావాలి. మీరు పద్దెనిమిది సంవత్సరాలు పైగా ఉన్నారా మరియు వయస్సు ఆధారిత కంటెంట్ చూడడానికి సిద్ధంగా ఉన్నారా?", "no_thank_you": "లేదు, ధన్యవాదాలు", "continue": "కొనసాగించండి", - "download_latest_android": "తాజా Android వెర్షన్ డౌన్‌లోడ్ చేసుకోండి?" + "download_latest_android": "తాజా Android వెర్షన్ డౌన్‌లోడ్ చేసుకోండి?", + "submitter": "సమర్పకుడు" } \ No newline at end of file diff --git a/public/translations/th/default.json b/public/translations/th/default.json index 9af3fa06..514eeecd 100644 --- a/public/translations/th/default.json +++ b/public/translations/th/default.json @@ -350,5 +350,6 @@ "must_be_over_18_explanation": "คุณต้องมีอายุอย่างน้อย 18 ปีเพื่อดูเนื้อหานี้ คุณอายุเกิน 18 ปีและพร้อมที่จะดูเนื้อหาผู้ใหญ่หรือไม่?", "no_thank_you": "ไม่ ขอบคุณ", "continue": "ดำเนินการต่อ", - "download_latest_android": "ดาวน์โหลดเวอร์ชันล่าสุดของ Android?" + "download_latest_android": "ดาวน์โหลดเวอร์ชันล่าสุดของ Android?", + "submitter": "ผู้ส่ง" } \ No newline at end of file diff --git a/public/translations/tr/default.json b/public/translations/tr/default.json index ad745a7b..c630ff80 100644 --- a/public/translations/tr/default.json +++ b/public/translations/tr/default.json @@ -350,5 +350,6 @@ "must_be_over_18_explanation": "Bu içeriği görmek için en az on sekiz yaşında olmanız gerekir. On sekiz yaşından büyük müsünüz ve yetişkin içeriği görmeye istekli misiniz?", "no_thank_you": "Hayır, teşekkür ederim", "continue": "Devam et", - "download_latest_android": "Son Android sürümünü indir?" + "download_latest_android": "Son Android sürümünü indir?", + "submitter": "Gönderen" } \ No newline at end of file diff --git a/public/translations/uk/default.json b/public/translations/uk/default.json index 9d2b65cf..e2eee812 100644 --- a/public/translations/uk/default.json +++ b/public/translations/uk/default.json @@ -350,5 +350,6 @@ "must_be_over_18_explanation": "Ви повинні бути принаймні вісімнадцяти років, щоб переглядати цей контент. Вам більше вісімнадцяти років, і ви готові переглядати контент для дорослих?", "no_thank_you": "Ні, дякую", "continue": "Продовжити", - "download_latest_android": "Завантажити останню версію Android?" + "download_latest_android": "Завантажити останню версію Android?", + "submitter": "Відправник" } \ No newline at end of file diff --git a/public/translations/ur/default.json b/public/translations/ur/default.json index 4c2b3151..d773b3c3 100644 --- a/public/translations/ur/default.json +++ b/public/translations/ur/default.json @@ -350,5 +350,6 @@ "must_be_over_18_explanation": "اس مواد کو دیکھنے کے لیے آپ کو کم از کم اٹھارہ سال کا ہونا ضروری ہے۔ کیا آپ اٹھارہ سال سے اوپر ہیں اور بالغ مواد دیکھنے کے لیے تیار ہیں؟", "no_thank_you": "نہیں، شکریہ", "continue": "جاری رکھیں", - "download_latest_android": "آخری Android ورژن ڈاؤن لوڈ کریں؟" + "download_latest_android": "آخری Android ورژن ڈاؤن لوڈ کریں؟", + "submitter": "جمع کرانے والا" } \ No newline at end of file diff --git a/public/translations/vi/default.json b/public/translations/vi/default.json index c8d0880c..9f499b57 100644 --- a/public/translations/vi/default.json +++ b/public/translations/vi/default.json @@ -350,5 +350,6 @@ "must_be_over_18_explanation": "Bạn phải ít nhất mười tám tuổi để xem nội dung này. Bạn có trên mười tám tuổi và sẵn sàng xem nội dung người lớn không?", "no_thank_you": "Không, cảm ơn", "continue": "Tiếp tục", - "download_latest_android": "Tải phiên bản Android mới nhất?" + "download_latest_android": "Tải phiên bản Android mới nhất?", + "submitter": "Người gửi" } \ No newline at end of file diff --git a/public/translations/zh/default.json b/public/translations/zh/default.json index 40046e6a..48aa2436 100644 --- a/public/translations/zh/default.json +++ b/public/translations/zh/default.json @@ -350,5 +350,6 @@ "must_be_over_18_explanation": "您必须至少年满18岁才能查看此内容。您是否已超过18岁并愿意查看成人内容?", "no_thank_you": "不,谢谢", "continue": "继续", - "download_latest_android": "下载最新的安卓版本?" + "download_latest_android": "下载最新的安卓版本?", + "submitter": "提交者" } \ No newline at end of file diff --git a/src/components/reply/reply.module.css b/src/components/reply/reply.module.css index 6ab77624..09a0527b 100644 --- a/src/components/reply/reply.module.css +++ b/src/components/reply/reply.module.css @@ -369,4 +369,12 @@ font-size: x-small; line-height: normal; vertical-align: middle; +} + +.submitter { + color: var(--submitter-color); +} + +.submitter:hover { + text-decoration: underline; } \ No newline at end of file diff --git a/src/components/reply/reply.tsx b/src/components/reply/reply.tsx index 0caa8945..d1d4cbf8 100644 --- a/src/components/reply/reply.tsx +++ b/src/components/reply/reply.tsx @@ -37,9 +37,25 @@ interface ReplyAuthorProps { isAvatarDefined: boolean; removed: boolean; shortAuthorAddress: string | undefined; + submitterAddress: string; + subplebbitAddress: string; + postCid: string; } -const ReplyAuthor = ({ address, authorRole, cid, deleted, displayName, imageUrl, isAvatarDefined, removed, shortAuthorAddress }: ReplyAuthorProps) => { +const ReplyAuthor = ({ + address, + authorRole, + cid, + deleted, + displayName, + imageUrl, + isAvatarDefined, + removed, + shortAuthorAddress, + submitterAddress, + subplebbitAddress, + postCid, +}: ReplyAuthorProps) => { const { t } = useTranslation(); const { hideAvatars } = useAvatarVisibilityStore(); const isAuthorAdmin = authorRole === 'admin'; @@ -48,6 +64,8 @@ const ReplyAuthor = ({ address, authorRole, cid, deleted, displayName, imageUrl, const authorRoleInitial = (isAuthorOwner && 'O') || (isAuthorAdmin && 'A') || (isAuthorModerator && 'M') || ''; const moderatorClass = `${isAuthorOwner ? styles.owner : isAuthorAdmin ? styles.admin : isAuthorModerator ? styles.moderator : ''}`; const shortDisplayName = displayName?.length > 20 ? displayName?.slice(0, 20) + '...' : displayName; + const isAuthorSubmitter = address === submitterAddress; + return ( <> {removed || deleted ? ( @@ -60,20 +78,28 @@ const ReplyAuthor = ({ address, authorRole, cid, deleted, displayName, imageUrl, )} {displayName && ( - + {shortDisplayName}{' '} )} - + {displayName ? `u/${shortAuthorAddress}` : shortAuthorAddress} - {authorRole && ( + {(authorRole || isAuthorSubmitter) && ( {' '} [ - - {authorRoleInitial} - + {isAuthorSubmitter && ( + + S + + )} + {isAuthorSubmitter && authorRole && ','} + {authorRole && ( + + {authorRoleInitial} + + )} ] )} @@ -348,6 +374,8 @@ const Reply = ({ cidOfReplyWithContext, depth = 0, isSingleComment, isSingleRepl ); + const post = useComment({ commentCid: postCid }); + return (
{isSingleReply && !isInInboxView && } @@ -376,6 +404,9 @@ const Reply = ({ cidOfReplyWithContext, depth = 0, isSingleComment, isSingleRepl isAvatarDefined={!!author?.avatar} removed={removed} shortAuthorAddress={shortAuthorAddress} + submitterAddress={post?.author?.address} + subplebbitAddress={subplebbitAddress} + postCid={postCid} /> {scoreString}{' '} diff --git a/src/themes.css b/src/themes.css index 1500e995..e27eb621 100644 --- a/src/themes.css +++ b/src/themes.css @@ -58,6 +58,7 @@ --red: rgb(255, 21, 21); --red-nsfw: rgb(255, 55, 89); --removed-reply-backgrouhd-color: rgb(27, 30, 32); + --submitter-color: rgb(67, 166, 255); --text: #bfbfbf; --text-button: url("/public/assets/buttons/text-button-dark.png"); --text-button-hover: url("/public/assets/buttons/text-button-hover.png"); @@ -137,6 +138,7 @@ --red: red; --red-nsfw: #d10023; --removed-reply-backgrouhd-color: #f0f0f0; + --submitter-color: #0055df; --text: black; --text-button: url("/public/assets/buttons/text-button.png"); --text-button-hover: url("/public/assets/buttons/text-button-hover.png");