From 712779d30e01d4ead71166d7544992cce6db8619 Mon Sep 17 00:00:00 2001 From: "plebeius.eth" Date: Wed, 14 Feb 2024 21:55:54 +0100 Subject: [PATCH 01/11] fix(post): display title as dash if it's empty --- src/components/post/post.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/post/post.tsx b/src/components/post/post.tsx index ea3a2c9d..7d5efc11 100644 --- a/src/components/post/post.tsx +++ b/src/components/post/post.tsx @@ -194,11 +194,11 @@ const Post = ({ index, post = {} }: PostProps) => {

{isInPostView && link ? ( - {postTitle} + {postTitle ?? '-'} ) : ( - {postTitle} + {postTitle ?? '-'} )} {flair && ( From 486710c9e29d90b06e81a03003a1f35358657084 Mon Sep 17 00:00:00 2001 From: "plebeius.eth" Date: Thu, 15 Feb 2024 11:05:14 +0100 Subject: [PATCH 02/11] feat(communities): add markdown to each sub expandable description --- src/views/subplebbits/subplebbits.tsx | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/src/views/subplebbits/subplebbits.tsx b/src/views/subplebbits/subplebbits.tsx index 144441bd..e46dcc8b 100644 --- a/src/views/subplebbits/subplebbits.tsx +++ b/src/views/subplebbits/subplebbits.tsx @@ -3,9 +3,6 @@ import { Link, useLocation } from 'react-router-dom'; import { Trans, useTranslation } from 'react-i18next'; import { Subplebbit as SubplebbitType, useAccount, useAccountSubplebbits, useSubplebbits, useSubplebbitStats } from '@plebbit/plebbit-react-hooks'; import styles from './subplebbits.module.css'; -import Label from '../../components/post/label'; -import Sidebar from '../../components/sidebar'; -import SubscribeButton from '../../components/subscribe-button'; import { getFormattedTimeDuration } from '../../lib/utils/time-utils'; import { isSubplebbitsView, @@ -18,6 +15,10 @@ import { isSubplebbitsVoteRejectingView, } from '../../lib/utils/view-utils'; import { useDefaultSubplebbitAddresses } from '../../lib/utils/addresses-utils'; +import Markdown from '../../components/markdown'; +import Label from '../../components/post/label'; +import Sidebar from '../../components/sidebar'; +import SubscribeButton from '../../components/subscribe-button'; interface SubplebbitProps { index?: number; @@ -181,7 +182,11 @@ const Subplebbit = ({ subplebbit }: SubplebbitProps) => { - {description && showDescription &&

{description}
} + {description && showDescription && ( +
+ +
+ )} ); From 3241003b7506707cc2009ba51ad3edf21f9991bb Mon Sep 17 00:00:00 2001 From: "plebeius.eth" Date: Thu, 15 Feb 2024 19:12:09 +0100 Subject: [PATCH 03/11] chore(translations): view spoiler --- 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 222c9ed7..43adf4dd 100644 --- a/public/translations/ar/default.json +++ b/public/translations/ar/default.json @@ -264,5 +264,6 @@ "submit_to_string": "إرسال إلى {{string}}", "page_not_found": "الصفحة غير موجودة", "not_found_description": "الصفحة التي طلبتها غير موجودة", - "last_edited": "آخر تعديل {{timestamp}}" + "last_edited": "آخر تعديل {{timestamp}}", + "view_spoiler": "عرض الحاضر" } \ No newline at end of file diff --git a/public/translations/bn/default.json b/public/translations/bn/default.json index a4a32bce..2e950298 100644 --- a/public/translations/bn/default.json +++ b/public/translations/bn/default.json @@ -264,5 +264,6 @@ "submit_to_string": "{{string}} এ জমা দিন", "page_not_found": "পৃষ্ঠাটি খুঁজে পাওয়া যায়নি", "not_found_description": "আপনি যে পৃষ্ঠাটি অনুরোধ করেছেন সেটি অস্তিত্বে নেই", - "last_edited": "শেষ সম্পাদনা {{timestamp}}" + "last_edited": "শেষ সম্পাদনা {{timestamp}}", + "view_spoiler": "স্পোয়ালার দেখুন" } \ No newline at end of file diff --git a/public/translations/cs/default.json b/public/translations/cs/default.json index b4e6218c..d4652344 100644 --- a/public/translations/cs/default.json +++ b/public/translations/cs/default.json @@ -264,5 +264,6 @@ "submit_to_string": "Odeslat do {{string}}", "page_not_found": "Stránka nenalezena", "not_found_description": "Požadovaná stránka neexistuje", - "last_edited": "Poslední úprava {{timestamp}}" + "last_edited": "Poslední úprava {{timestamp}}", + "view_spoiler": "zobrazit spoiler" } \ No newline at end of file diff --git a/public/translations/da/default.json b/public/translations/da/default.json index 970d321c..f897d23f 100644 --- a/public/translations/da/default.json +++ b/public/translations/da/default.json @@ -264,5 +264,6 @@ "submit_to_string": "Indsend til {{string}}", "page_not_found": "Side ikke fundet", "not_found_description": "Den side, du har anmodet om, findes ikke", - "last_edited": "Sidst redigeret {{timestamp}}" + "last_edited": "Sidst redigeret {{timestamp}}", + "view_spoiler": "vis spoiler" } \ No newline at end of file diff --git a/public/translations/de/default.json b/public/translations/de/default.json index a5d8bc70..eb07401c 100644 --- a/public/translations/de/default.json +++ b/public/translations/de/default.json @@ -264,5 +264,6 @@ "submit_to_string": "Einreichen bei {{string}}", "page_not_found": "Seite nicht gefunden", "not_found_description": "Die von Ihnen angeforderte Seite existiert nicht", - "last_edited": "Zuletzt bearbeitet am {{timestamp}}" + "last_edited": "Zuletzt bearbeitet am {{timestamp}}", + "view_spoiler": "Spoiler anzeigen" } \ No newline at end of file diff --git a/public/translations/el/default.json b/public/translations/el/default.json index bca96700..11303c64 100644 --- a/public/translations/el/default.json +++ b/public/translations/el/default.json @@ -264,5 +264,6 @@ "submit_to_string": "Υποβολή στο {{string}}", "page_not_found": "Η σελίδα δεν βρέθηκε", "not_found_description": "Η σελίδα που ζητήσατε δεν υπάρχει", - "last_edited": "Τελευταία επεξεργασία {{timestamp}}" + "last_edited": "Τελευταία επεξεργασία {{timestamp}}", + "view_spoiler": "προβολή spoiler" } \ No newline at end of file diff --git a/public/translations/en/default.json b/public/translations/en/default.json index 4bbe583e..23aad8a7 100644 --- a/public/translations/en/default.json +++ b/public/translations/en/default.json @@ -264,5 +264,6 @@ "submit_to_string": "Submit to {{string}}", "page_not_found": "Page not found", "not_found_description": "The page you requested does not exist", - "last_edited": "last edited {{timestamp}}" + "last_edited": "last edited {{timestamp}}", + "view_spoiler": "view spoiler" } \ No newline at end of file diff --git a/public/translations/es/default.json b/public/translations/es/default.json index 0755bf3b..3a65ac91 100644 --- a/public/translations/es/default.json +++ b/public/translations/es/default.json @@ -264,5 +264,6 @@ "submit_to_string": "Enviar a {{string}}", "page_not_found": "Página no encontrada", "not_found_description": "La página que solicitaste no existe", - "last_edited": "última edición {{timestamp}}" + "last_edited": "última edición {{timestamp}}", + "view_spoiler": "ver spoiler" } \ No newline at end of file diff --git a/public/translations/fa/default.json b/public/translations/fa/default.json index cbc276d1..0a2a6f40 100644 --- a/public/translations/fa/default.json +++ b/public/translations/fa/default.json @@ -264,5 +264,6 @@ "submit_to_string": "ارسال به {{string}}", "page_not_found": "صفحه یافت نشد", "not_found_description": "صفحه‌ای که درخواست کرده‌اید وجود ندارد", - "last_edited": "آخرین ویرایش {{timestamp}}" + "last_edited": "آخرین ویرایش {{timestamp}}", + "view_spoiler": "نمایش اسپویلر" } \ No newline at end of file diff --git a/public/translations/fi/default.json b/public/translations/fi/default.json index e0ba520c..ebd7f9ff 100644 --- a/public/translations/fi/default.json +++ b/public/translations/fi/default.json @@ -264,5 +264,6 @@ "submit_to_string": "Lähetä kohteeseen {{string}}", "page_not_found": "Sivua ei löytynyt", "not_found_description": "Pyytämääsi sivua ei löydy", - "last_edited": "Viimeksi muokattu {{timestamp}}" + "last_edited": "Viimeksi muokattu {{timestamp}}", + "view_spoiler": "näytä spoiler" } \ No newline at end of file diff --git a/public/translations/fil/default.json b/public/translations/fil/default.json index 13dbcef8..90a53878 100644 --- a/public/translations/fil/default.json +++ b/public/translations/fil/default.json @@ -264,5 +264,6 @@ "submit_to_string": "Isusumite sa {{string}}", "page_not_found": "Hindi makita ang pahina", "not_found_description": "Ang pahinang hiniling mo ay hindi umiiral", - "last_edited": "huling inedit {{timestamp}}" + "last_edited": "huling inedit {{timestamp}}", + "view_spoiler": "tingnan ang spoiler" } \ No newline at end of file diff --git a/public/translations/fr/default.json b/public/translations/fr/default.json index 4b10f733..54fb8d78 100644 --- a/public/translations/fr/default.json +++ b/public/translations/fr/default.json @@ -264,5 +264,6 @@ "submit_to_string": "Soumettre à {{string}}", "page_not_found": "Page non trouvée", "not_found_description": "La page que vous avez demandée n'existe pas", - "last_edited": "dernière édition {{timestamp}}" + "last_edited": "dernière édition {{timestamp}}", + "view_spoiler": "voir le spoiler" } \ No newline at end of file diff --git a/public/translations/he/default.json b/public/translations/he/default.json index 333c14fe..5cf4ae90 100644 --- a/public/translations/he/default.json +++ b/public/translations/he/default.json @@ -264,5 +264,6 @@ "submit_to_string": "שליחה אל {{string}}", "page_not_found": "הדף לא נמצא", "not_found_description": "הדף שביקשת אינו קיים", - "last_edited": "עריכה אחרונה {{timestamp}}" + "last_edited": "עריכה אחרונה {{timestamp}}", + "view_spoiler": "הצג ספוילר" } \ No newline at end of file diff --git a/public/translations/hi/default.json b/public/translations/hi/default.json index 3ae05e84..debe4592 100644 --- a/public/translations/hi/default.json +++ b/public/translations/hi/default.json @@ -264,5 +264,6 @@ "submit_to_string": "{{string}} को सबमिट करें", "page_not_found": "पृष्ठ नहीं मिला", "not_found_description": "आपके द्वारा अनुरोधित पृष्ठ मौजूद नहीं है", - "last_edited": "अंतिम संशोधन {{timestamp}}" + "last_edited": "अंतिम संशोधन {{timestamp}}", + "view_spoiler": "स्पॉइलर देखें" } \ No newline at end of file diff --git a/public/translations/hu/default.json b/public/translations/hu/default.json index be775379..9f12bd36 100644 --- a/public/translations/hu/default.json +++ b/public/translations/hu/default.json @@ -264,5 +264,6 @@ "submit_to_string": "Beküldés ide: {{string}}", "page_not_found": "Az oldal nem található", "not_found_description": "Az általad kért oldal nem létezik", - "last_edited": "utoljára szerkesztve: {{timestamp}}" + "last_edited": "utoljára szerkesztve: {{timestamp}}", + "view_spoiler": "spoiler megtekintése" } \ No newline at end of file diff --git a/public/translations/id/default.json b/public/translations/id/default.json index 017b2340..95a9bfee 100644 --- a/public/translations/id/default.json +++ b/public/translations/id/default.json @@ -264,5 +264,6 @@ "submit_to_string": "Kirim ke {{string}}", "page_not_found": "Halaman tidak ditemukan", "not_found_description": "Halaman yang Anda minta tidak ada", - "last_edited": "terakhir diubah {{timestamp}}" + "last_edited": "terakhir diubah {{timestamp}}", + "view_spoiler": "lihat spoiler" } \ No newline at end of file diff --git a/public/translations/it/default.json b/public/translations/it/default.json index 1f61568e..40515928 100644 --- a/public/translations/it/default.json +++ b/public/translations/it/default.json @@ -264,5 +264,6 @@ "submit_to_string": "Invia a {{string}}", "page_not_found": "Pagina non trovata", "not_found_description": "La pagina che hai richiesto non esiste", - "last_edited": "ultima modifica {{timestamp}}" + "last_edited": "ultima modifica {{timestamp}}", + "view_spoiler": "mostra spoiler" } \ No newline at end of file diff --git a/public/translations/ja/default.json b/public/translations/ja/default.json index 3b385cd0..008adb29 100644 --- a/public/translations/ja/default.json +++ b/public/translations/ja/default.json @@ -264,5 +264,6 @@ "submit_to_string": "{{string}} に提出", "page_not_found": "ページが見つかりません", "not_found_description": "要求されたページは存在しません", - "last_edited": "最終編集 {{timestamp}}" + "last_edited": "最終編集 {{timestamp}}", + "view_spoiler": "スポイラーを表示" } \ No newline at end of file diff --git a/public/translations/ko/default.json b/public/translations/ko/default.json index eb01ee63..607d3896 100644 --- a/public/translations/ko/default.json +++ b/public/translations/ko/default.json @@ -264,5 +264,6 @@ "submit_to_string": "{{string}} 로 제출", "page_not_found": "페이지를 찾을 수 없음", "not_found_description": "요청하신 페이지가 존재하지 않습니다", - "last_edited": "마지막으로 편집한 날짜: {{timestamp}}" + "last_edited": "마지막으로 편집한 날짜: {{timestamp}}", + "view_spoiler": "스포일러 보기" } \ No newline at end of file diff --git a/public/translations/mr/default.json b/public/translations/mr/default.json index c7315544..0f8727e8 100644 --- a/public/translations/mr/default.json +++ b/public/translations/mr/default.json @@ -264,5 +264,6 @@ "submit_to_string": "{{string}} वर सबमिट करा", "page_not_found": "पृष्ठ सापडला नाही", "not_found_description": "आपण विनंती केलेला पृष्ठ अस्तित्वात नाही", - "last_edited": "शेवटचा संपादन {{timestamp}}" + "last_edited": "शेवटचा संपादन {{timestamp}}", + "view_spoiler": "स्पॉईलर पहा" } \ No newline at end of file diff --git a/public/translations/nl/default.json b/public/translations/nl/default.json index e7f42cbf..9d644a11 100644 --- a/public/translations/nl/default.json +++ b/public/translations/nl/default.json @@ -264,5 +264,6 @@ "submit_to_string": "Indienen bij {{string}}", "page_not_found": "Pagina niet gevonden", "not_found_description": "De pagina die je hebt opgevraagd, bestaat niet", - "last_edited": "laatst bewerkt {{timestamp}}" + "last_edited": "laatst bewerkt {{timestamp}}", + "view_spoiler": "bekijk spoiler" } \ No newline at end of file diff --git a/public/translations/no/default.json b/public/translations/no/default.json index 2679a415..2130bc18 100644 --- a/public/translations/no/default.json +++ b/public/translations/no/default.json @@ -264,5 +264,6 @@ "submit_to_string": "Send til {{string}}", "page_not_found": "Siden ble ikke funnet", "not_found_description": "Siden du ba om, finnes ikke", - "last_edited": "sist endret {{timestamp}}" + "last_edited": "sist endret {{timestamp}}", + "view_spoiler": "se spoiler" } \ No newline at end of file diff --git a/public/translations/pl/default.json b/public/translations/pl/default.json index 2d870df8..9fc2856d 100644 --- a/public/translations/pl/default.json +++ b/public/translations/pl/default.json @@ -264,5 +264,6 @@ "submit_to_string": "Prześlij do {{string}}", "page_not_found": "Strona nie znaleziona", "not_found_description": "Strona, którą żądasz, nie istnieje", - "last_edited": "ostatnio edytowano {{timestamp}}" + "last_edited": "ostatnio edytowano {{timestamp}}", + "view_spoiler": "pokaż spoiler" } \ No newline at end of file diff --git a/public/translations/pt/default.json b/public/translations/pt/default.json index 5e4266af..1926eac0 100644 --- a/public/translations/pt/default.json +++ b/public/translations/pt/default.json @@ -264,5 +264,6 @@ "submit_to_string": "Enviar para {{string}}", "page_not_found": "Página não encontrada", "not_found_description": "A página que você solicitou não existe", - "last_edited": "última edição {{timestamp}}" + "last_edited": "última edição {{timestamp}}", + "view_spoiler": "ver spoiler" } \ No newline at end of file diff --git a/public/translations/ro/default.json b/public/translations/ro/default.json index 356ea579..1c36b872 100644 --- a/public/translations/ro/default.json +++ b/public/translations/ro/default.json @@ -264,5 +264,6 @@ "submit_to_string": "Trimite la {{string}}", "page_not_found": "Pagina nu a fost găsită", "not_found_description": "Pagina pe care ai solicitat-o nu există", - "last_edited": "ultima editare {{timestamp}}" + "last_edited": "ultima editare {{timestamp}}", + "view_spoiler": "vezi spoilerul" } \ No newline at end of file diff --git a/public/translations/ru/default.json b/public/translations/ru/default.json index a05d9f0b..4f036308 100644 --- a/public/translations/ru/default.json +++ b/public/translations/ru/default.json @@ -264,5 +264,6 @@ "submit_to_string": "Отправить на {{string}}", "page_not_found": "Страница не найдена", "not_found_description": "Запрошенная вами страница не существует", - "last_edited": "последнее редактирование {{timestamp}}" + "last_edited": "последнее редактирование {{timestamp}}", + "view_spoiler": "посмотреть спойлер" } \ No newline at end of file diff --git a/public/translations/sq/default.json b/public/translations/sq/default.json index 9a11dbdb..a4dcd2e1 100644 --- a/public/translations/sq/default.json +++ b/public/translations/sq/default.json @@ -264,5 +264,6 @@ "submit_to_string": "Dërgo në {{string}}", "page_not_found": "Faqja nuk u gjet", "not_found_description": "Faqja që keni kërkuar nuk ekziston", - "last_edited": "i fundit i ndryshuar {{timestamp}}" + "last_edited": "i fundit i ndryshuar {{timestamp}}", + "view_spoiler": "shikoni spoiler" } \ No newline at end of file diff --git a/public/translations/sv/default.json b/public/translations/sv/default.json index 6288de0c..619ae70a 100644 --- a/public/translations/sv/default.json +++ b/public/translations/sv/default.json @@ -264,5 +264,6 @@ "submit_to_string": "Skicka till {{string}}", "page_not_found": "Sidan kunde inte hittas", "not_found_description": "Sidan du begärde finns inte", - "last_edited": "senast redigerad {{timestamp}}" + "last_edited": "senast redigerad {{timestamp}}", + "view_spoiler": "visa spoiler" } \ No newline at end of file diff --git a/public/translations/te/default.json b/public/translations/te/default.json index d172782b..72092b83 100644 --- a/public/translations/te/default.json +++ b/public/translations/te/default.json @@ -264,5 +264,6 @@ "submit_to_string": "{{string}} కు సబ్‌మిట్ చేయండి", "page_not_found": "పేజీ కనబడలేదు", "not_found_description": "మీ అభ్యర్థించిన పేజీ లేదు", - "last_edited": "చివరి సవరించబడినది {{timestamp}}" + "last_edited": "చివరి సవరించబడినది {{timestamp}}", + "view_spoiler": "స్పోయ్లర్ వీక్షించండి" } \ No newline at end of file diff --git a/public/translations/th/default.json b/public/translations/th/default.json index 20b994f3..6eda0f61 100644 --- a/public/translations/th/default.json +++ b/public/translations/th/default.json @@ -264,5 +264,6 @@ "submit_to_string": "ส่งไปยัง {{string}}", "page_not_found": "ไม่พบหน้า", "not_found_description": "หน้าที่คุณขอไม่มีอยู่จริง", - "last_edited": "แก้ไขล่าสุด {{timestamp}}" + "last_edited": "แก้ไขล่าสุด {{timestamp}}", + "view_spoiler": "ดูสปอยล์เลอร์" } \ No newline at end of file diff --git a/public/translations/tr/default.json b/public/translations/tr/default.json index ae51f332..04dd7cf7 100644 --- a/public/translations/tr/default.json +++ b/public/translations/tr/default.json @@ -264,5 +264,6 @@ "submit_to_string": "{{string}} e gönder", "page_not_found": "Sayfa bulunamadı", "not_found_description": "İstediğiniz sayfa mevcut değil", - "last_edited": "son düzenleme {{timestamp}}" + "last_edited": "son düzenleme {{timestamp}}", + "view_spoiler": "spoileri görüntüle" } \ No newline at end of file diff --git a/public/translations/uk/default.json b/public/translations/uk/default.json index 000a7306..d5bcd8ed 100644 --- a/public/translations/uk/default.json +++ b/public/translations/uk/default.json @@ -264,5 +264,6 @@ "submit_to_string": "Надіслати до {{string}}", "page_not_found": "Сторінка не знайдена", "not_found_description": "Сторінка, яку ви запросили, не існує", - "last_edited": "остання редакція {{timestamp}}" + "last_edited": "остання редакція {{timestamp}}", + "view_spoiler": "переглянути спойлер" } \ No newline at end of file diff --git a/public/translations/ur/default.json b/public/translations/ur/default.json index a6fb37e5..2bc259c7 100644 --- a/public/translations/ur/default.json +++ b/public/translations/ur/default.json @@ -264,5 +264,6 @@ "submit_to_string": "{{string}} کو جمع کرائیں", "page_not_found": "صفحہ نہیں ملا", "not_found_description": "آپ نے جو صفحہ درخواست کیا ہے وہ موجود نہیں ہے", - "last_edited": "آخری ترمیم {{timestamp}}" + "last_edited": "آخری ترمیم {{timestamp}}", + "view_spoiler": "اسپوائلر دیکھیں" } \ No newline at end of file diff --git a/public/translations/vi/default.json b/public/translations/vi/default.json index 3961ee14..d7137c54 100644 --- a/public/translations/vi/default.json +++ b/public/translations/vi/default.json @@ -264,5 +264,6 @@ "submit_to_string": "Gửi đến {{string}}", "page_not_found": "Không tìm thấy trang", "not_found_description": "Trang bạn yêu cầu không tồn tại", - "last_edited": "sửa lần cuối {{timestamp}}" + "last_edited": "sửa lần cuối {{timestamp}}", + "view_spoiler": "xem spoiler" } \ No newline at end of file diff --git a/public/translations/zh/default.json b/public/translations/zh/default.json index 0fb098e2..3bbfa0c6 100644 --- a/public/translations/zh/default.json +++ b/public/translations/zh/default.json @@ -264,5 +264,6 @@ "submit_to_string": "提交到{{string}}", "page_not_found": "页面未找到", "not_found_description": "您请求的页面不存在", - "last_edited": "上次编辑时间:{{timestamp}}" + "last_edited": "上次编辑时间:{{timestamp}}", + "view_spoiler": "查看剧透" } \ No newline at end of file From d9e508602ec5e75d1eaf71171168a9d692cd0f41 Mon Sep 17 00:00:00 2001 From: "plebeius.eth" Date: Thu, 15 Feb 2024 19:12:42 +0100 Subject: [PATCH 04/11] feat: add spoiler styling as black overlay above post or reply content --- .../post/expando/expando.module.css | 35 +++++++++++++++---- src/components/post/expando/expando.tsx | 17 +++++++-- src/components/post/post.module.css | 6 +--- src/components/post/post.tsx | 15 ++++++-- src/components/reply/reply.module.css | 20 +++++++++++ src/components/reply/reply.tsx | 13 +++++-- src/views/submit/submit.module.css | 1 + 7 files changed, 87 insertions(+), 20 deletions(-) diff --git a/src/components/post/expando/expando.module.css b/src/components/post/expando/expando.module.css index 48a06fea..f05a91ce 100644 --- a/src/components/post/expando/expando.module.css +++ b/src/components/post/expando/expando.module.css @@ -45,6 +45,34 @@ background-color: var(--background-thumbnail); } +.mediaPreview iframe { + width: 100%; + height: 100%; + border: none; + background-color: var(--background-thumbnail); +} + +.hideSpoiler { + width: calc(100% - 7px); + height: calc(100% - 12px); + border-radius: 7px; + position: absolute; + border: 1px solid var(--text-primary); + background-color: black; + color: black; + cursor: pointer; +} + +.showSpoilerButton { + color: white; + text-transform: lowercase; + position: absolute; + top: 50%; + left: 50%; + transform: translate(-50%, -50%); + cursor: pointer; +} + @media (max-width: 768px) { .mediaPreview img { max-width: 100%; @@ -60,10 +88,3 @@ padding-right: 5px; } } - -.mediaPreview iframe { - width: 100%; - height: 100%; - border: none; - background-color: var(--background-thumbnail); -} \ No newline at end of file diff --git a/src/components/post/expando/expando.tsx b/src/components/post/expando/expando.tsx index bd9a21e6..54728243 100644 --- a/src/components/post/expando/expando.tsx +++ b/src/components/post/expando/expando.tsx @@ -1,3 +1,4 @@ +import { useState } from 'react'; import { Link } from 'react-router-dom'; import styles from './expando.module.css'; import Embed from '../embed'; @@ -13,12 +14,15 @@ interface ExpandoProps { reason?: string; removed?: boolean; showContent: boolean; + spoiler?: boolean; toggleExpanded?: () => void; } -const Expando = ({ commentMediaInfo, content, expanded, link, reason, removed, showContent, toggleExpanded }: ExpandoProps) => { +const Expando = ({ commentMediaInfo, content, expanded, link, reason, removed, showContent, spoiler = false, toggleExpanded }: ExpandoProps) => { const { t } = useTranslation(); + const [showSpoiler, setShowSpoiler] = useState(false); + let mediaComponent = null; let noExpandButton = false; @@ -37,8 +41,13 @@ const Expando = ({ commentMediaInfo, content, expanded, link, reason, removed, s } return ( -
- {link && !removed && ( +
{ + spoiler && !showSpoiler && setShowSpoiler(true); + }} + > + {link && !removed && !(spoiler && !showSpoiler) && (
+
+ {spoiler && !showSpoiler &&
{t('view_spoiler')}
} {reason && (
diff --git a/src/components/post/post.module.css b/src/components/post/post.module.css index ad7a2e1e..e9fb3d8f 100644 --- a/src/components/post/post.module.css +++ b/src/components/post/post.module.css @@ -68,11 +68,7 @@ font-weight: normal; } -.removedTitle { - filter: blur(4px); -} - -.removedThumbnail { +.blur { filter: blur(4px); } diff --git a/src/components/post/post.tsx b/src/components/post/post.tsx index 7d5efc11..938dedf6 100644 --- a/src/components/post/post.tsx +++ b/src/components/post/post.tsx @@ -176,7 +176,7 @@ const Post = ({ index, post = {} }: PostProps) => {
{hasThumbnail && !isInPostView && ( - + {
diff --git a/src/components/reply/reply.module.css b/src/components/reply/reply.module.css index b0a5039e..eaced4ca 100644 --- a/src/components/reply/reply.module.css +++ b/src/components/reply/reply.module.css @@ -104,6 +104,7 @@ font-size: small; unicode-bidi: isolate; margin-top: 5px; + position: relative; } .highlightMedia { @@ -128,6 +129,25 @@ color: var(--markdown-link) !important; } +.hideSpoiler { + width: 100%; + height: 100%; + position: absolute; + background-color: black; + color: black; + cursor: pointer; +} + +.showSpoilerButton { + color: white; + text-transform: lowercase; + position: absolute; + cursor: pointer; + top: 50%; + left: 50%; + transform: translate(-50%, -50%); +} + .highlightContent { background-color: var(--yellow-highlight); padding: 2px 5px; diff --git a/src/components/reply/reply.tsx b/src/components/reply/reply.tsx index 46cc6433..759cd7bd 100644 --- a/src/components/reply/reply.tsx +++ b/src/components/reply/reply.tsx @@ -230,6 +230,8 @@ const Reply = ({ cidOfReplyWithContext, depth = 0, isSingleComment, isSingleRepl } = reply || {}; const subplebbit = useSubplebbit({ subplebbitAddress }); + const [showSpoiler, setShowSpoiler] = useState(false); + const { blocked, unblock } = useBlock({ address: cid }); const [collapsed, setCollapsed] = useState(blocked); useEffect(() => { @@ -348,8 +350,14 @@ const Reply = ({ cidOfReplyWithContext, depth = 0, isSingleComment, isSingleRepl /> )} {!collapsed && ( -
- {commentMediaInfo && (!removed || !deleted) && ( +
{ + spoiler && !showSpoiler && setShowSpoiler(true); + }} + > +
+ {commentMediaInfo && !(removed || deleted || (spoiler && !showSpoiler)) && ( ) : (
+ {spoiler && !showSpoiler &&
{t('view_spoiler')}
} {content && (removed ? (
[{t('removed')}]
diff --git a/src/views/submit/submit.module.css b/src/views/submit/submit.module.css index 1064c758..737b9bc1 100644 --- a/src/views/submit/submit.module.css +++ b/src/views/submit/submit.module.css @@ -76,6 +76,7 @@ h1 { .contentPreviewMarkdown { font-size: 14px; + word-wrap: break-word; } .contentPreviewTitle { From 34a9e85348085cc748e2e5b1798cff6d2038acf3 Mon Sep 17 00:00:00 2001 From: "plebeius.eth" Date: Fri, 16 Feb 2024 09:32:46 +0100 Subject: [PATCH 05/11] style(post): adjust padding to be identical to reddit --- src/components/post/post.module.css | 2 +- src/components/post/post.tsx | 232 +++++++++--------- .../post/thumbnail/thumbnail.module.css | 1 + 3 files changed, 119 insertions(+), 116 deletions(-) diff --git a/src/components/post/post.module.css b/src/components/post/post.module.css index e9fb3d8f..63d651c8 100644 --- a/src/components/post/post.module.css +++ b/src/components/post/post.module.css @@ -1,7 +1,7 @@ .content { display: flex; flex-direction: column; - padding: 4px 0; + padding-bottom: 8px; } .row { diff --git a/src/components/post/post.tsx b/src/components/post/post.tsx index 938dedf6..a8eeb3f9 100644 --- a/src/components/post/post.tsx +++ b/src/components/post/post.tsx @@ -156,131 +156,133 @@ const Post = ({ index, post = {} }: PostProps) => { }; return ( -
-
-
{t('post_hidden').charAt(0).toUpperCase() + t('post_hidden').slice(1)}
-
- {t('undo')} +
+
+
+
{t('post_hidden').charAt(0).toUpperCase() + t('post_hidden').slice(1)}
+
+ {t('undo')} +
-
-
-
-
-
-
-
cid && upvote()} /> -
-
{postScore}
-
-
cid && downvote()} /> +
+
+
+
+
+
cid && upvote()} /> +
+
{postScore}
+
+
cid && downvote()} /> +
+ {hasThumbnail && !isInPostView && ( + + + + )}
- {hasThumbnail && !isInPostView && ( - - +
+

+ {isInPostView && link ? ( + + {postTitle ?? '-'} + + ) : ( + + {postTitle ?? '-'} + + )} + {flair && ( + <> + {' '} + + + )}{' '} + {linkUrl && ( + + ( + + {linkUrl} + + ) + + )} +

+ {!isInPostView && ( + + )} +
+ {t('submitted')} {getFormattedTimeAgo(timestamp)} {edit && *}{' '} + {t('post_by')}{' '} + + {!isInSubplebbitView && ( + <> +  {t('post_to')}{' '} + + p/{subplebbit?.shortAddress || subplebbitAddress} + + + )} + {pinned && - {t('announcement')}} +
+ {state === 'pending' &&

{loadingString}

} + - - )} -
-
-
-

- {isInPostView && link ? ( - - {postTitle ?? '-'} - - ) : ( - - {postTitle ?? '-'} - - )} - {flair && ( - <> - {' '} - - - )}{' '} - {linkUrl && ( - - ( - - {linkUrl} - - ) - - )} -

- {!isInPostView && ( - - )} -
- {t('submitted')} {getFormattedTimeAgo(timestamp)} {edit && *}{' '} - {t('post_by')}{' '} - - {!isInSubplebbitView && ( - <> -  {t('post_to')}{' '} - - p/{subplebbit?.shortAddress || subplebbitAddress} - - - )} - {pinned && - {t('announcement')}}
- {state === 'pending' &&

{loadingString}

} -
+ {isEditing ? ( + + ) : ( + + )}
- {isEditing ? ( - - ) : ( - - )}
); diff --git a/src/components/post/thumbnail/thumbnail.module.css b/src/components/post/thumbnail/thumbnail.module.css index eb97e4bf..5fc7ab2c 100644 --- a/src/components/post/thumbnail/thumbnail.module.css +++ b/src/components/post/thumbnail/thumbnail.module.css @@ -2,6 +2,7 @@ position: relative; float: left; padding-right: 5px; + padding-bottom: 2px; width: var(--width, 70px); /* Fallback to 70px if variable not set */ height: var(--height, 70px); /* Fallback to 70px if variable not set */ } From 61e6e83d023470dda6c4970869c6789abb1ce77c Mon Sep 17 00:00:00 2001 From: "plebeius.eth" Date: Fri, 16 Feb 2024 11:00:54 +0100 Subject: [PATCH 06/11] chore(translations): more, default communities --- public/translations/ar/default.json | 4 +++- public/translations/bn/default.json | 4 +++- public/translations/cs/default.json | 4 +++- public/translations/da/default.json | 4 +++- public/translations/de/default.json | 4 +++- public/translations/el/default.json | 4 +++- public/translations/en/default.json | 4 +++- public/translations/es/default.json | 4 +++- public/translations/fa/default.json | 4 +++- public/translations/fi/default.json | 4 +++- public/translations/fil/default.json | 4 +++- public/translations/fr/default.json | 4 +++- public/translations/he/default.json | 4 +++- public/translations/hi/default.json | 4 +++- public/translations/hu/default.json | 4 +++- public/translations/id/default.json | 4 +++- public/translations/it/default.json | 4 +++- public/translations/ja/default.json | 4 +++- public/translations/ko/default.json | 4 +++- public/translations/mr/default.json | 4 +++- public/translations/nl/default.json | 4 +++- public/translations/no/default.json | 4 +++- public/translations/pl/default.json | 4 +++- public/translations/pt/default.json | 4 +++- public/translations/ro/default.json | 4 +++- public/translations/ru/default.json | 4 +++- public/translations/sq/default.json | 4 +++- public/translations/sv/default.json | 4 +++- public/translations/te/default.json | 4 +++- public/translations/th/default.json | 4 +++- public/translations/tr/default.json | 4 +++- public/translations/uk/default.json | 4 +++- public/translations/ur/default.json | 4 +++- public/translations/vi/default.json | 4 +++- public/translations/zh/default.json | 4 +++- 35 files changed, 105 insertions(+), 35 deletions(-) diff --git a/public/translations/ar/default.json b/public/translations/ar/default.json index 43adf4dd..ec2fe034 100644 --- a/public/translations/ar/default.json +++ b/public/translations/ar/default.json @@ -265,5 +265,7 @@ "page_not_found": "الصفحة غير موجودة", "not_found_description": "الصفحة التي طلبتها غير موجودة", "last_edited": "آخر تعديل {{timestamp}}", - "view_spoiler": "عرض الحاضر" + "view_spoiler": "عرض الحاضر", + "more": "المزيد", + "default_communities": "المجتمعات الافتراضية" } \ No newline at end of file diff --git a/public/translations/bn/default.json b/public/translations/bn/default.json index 2e950298..0a15a020 100644 --- a/public/translations/bn/default.json +++ b/public/translations/bn/default.json @@ -265,5 +265,7 @@ "page_not_found": "পৃষ্ঠাটি খুঁজে পাওয়া যায়নি", "not_found_description": "আপনি যে পৃষ্ঠাটি অনুরোধ করেছেন সেটি অস্তিত্বে নেই", "last_edited": "শেষ সম্পাদনা {{timestamp}}", - "view_spoiler": "স্পোয়ালার দেখুন" + "view_spoiler": "স্পোয়ালার দেখুন", + "more": "আরও", + "default_communities": "ডিফল্ট কমিউনিটিস" } \ No newline at end of file diff --git a/public/translations/cs/default.json b/public/translations/cs/default.json index d4652344..5c853810 100644 --- a/public/translations/cs/default.json +++ b/public/translations/cs/default.json @@ -265,5 +265,7 @@ "page_not_found": "Stránka nenalezena", "not_found_description": "Požadovaná stránka neexistuje", "last_edited": "Poslední úprava {{timestamp}}", - "view_spoiler": "zobrazit spoiler" + "view_spoiler": "zobrazit spoiler", + "more": "více", + "default_communities": "výchozí komunity" } \ No newline at end of file diff --git a/public/translations/da/default.json b/public/translations/da/default.json index f897d23f..d89c2cc0 100644 --- a/public/translations/da/default.json +++ b/public/translations/da/default.json @@ -265,5 +265,7 @@ "page_not_found": "Side ikke fundet", "not_found_description": "Den side, du har anmodet om, findes ikke", "last_edited": "Sidst redigeret {{timestamp}}", - "view_spoiler": "vis spoiler" + "view_spoiler": "vis spoiler", + "more": "mere", + "default_communities": "standardfællesskaber" } \ No newline at end of file diff --git a/public/translations/de/default.json b/public/translations/de/default.json index eb07401c..7bec61a9 100644 --- a/public/translations/de/default.json +++ b/public/translations/de/default.json @@ -265,5 +265,7 @@ "page_not_found": "Seite nicht gefunden", "not_found_description": "Die von Ihnen angeforderte Seite existiert nicht", "last_edited": "Zuletzt bearbeitet am {{timestamp}}", - "view_spoiler": "Spoiler anzeigen" + "view_spoiler": "Spoiler anzeigen", + "more": "mehr", + "default_communities": "Standard-Communities" } \ No newline at end of file diff --git a/public/translations/el/default.json b/public/translations/el/default.json index 11303c64..002891dc 100644 --- a/public/translations/el/default.json +++ b/public/translations/el/default.json @@ -265,5 +265,7 @@ "page_not_found": "Η σελίδα δεν βρέθηκε", "not_found_description": "Η σελίδα που ζητήσατε δεν υπάρχει", "last_edited": "Τελευταία επεξεργασία {{timestamp}}", - "view_spoiler": "προβολή spoiler" + "view_spoiler": "προβολή spoiler", + "more": "περισσότερα", + "default_communities": "προεπιλεγμένες κοινότητες" } \ No newline at end of file diff --git a/public/translations/en/default.json b/public/translations/en/default.json index 23aad8a7..39b78ffd 100644 --- a/public/translations/en/default.json +++ b/public/translations/en/default.json @@ -265,5 +265,7 @@ "page_not_found": "Page not found", "not_found_description": "The page you requested does not exist", "last_edited": "last edited {{timestamp}}", - "view_spoiler": "view spoiler" + "view_spoiler": "view spoiler", + "more": "more", + "default_communities": "default communities" } \ No newline at end of file diff --git a/public/translations/es/default.json b/public/translations/es/default.json index 3a65ac91..31b43406 100644 --- a/public/translations/es/default.json +++ b/public/translations/es/default.json @@ -265,5 +265,7 @@ "page_not_found": "Página no encontrada", "not_found_description": "La página que solicitaste no existe", "last_edited": "última edición {{timestamp}}", - "view_spoiler": "ver spoiler" + "view_spoiler": "ver spoiler", + "more": "más", + "default_communities": "comunidades predeterminadas" } \ No newline at end of file diff --git a/public/translations/fa/default.json b/public/translations/fa/default.json index 0a2a6f40..9342eb34 100644 --- a/public/translations/fa/default.json +++ b/public/translations/fa/default.json @@ -265,5 +265,7 @@ "page_not_found": "صفحه یافت نشد", "not_found_description": "صفحه‌ای که درخواست کرده‌اید وجود ندارد", "last_edited": "آخرین ویرایش {{timestamp}}", - "view_spoiler": "نمایش اسپویلر" + "view_spoiler": "نمایش اسپویلر", + "more": "بیشتر", + "default_communities": "جوامع پیش‌فرض" } \ No newline at end of file diff --git a/public/translations/fi/default.json b/public/translations/fi/default.json index ebd7f9ff..a3dcdf6d 100644 --- a/public/translations/fi/default.json +++ b/public/translations/fi/default.json @@ -265,5 +265,7 @@ "page_not_found": "Sivua ei löytynyt", "not_found_description": "Pyytämääsi sivua ei löydy", "last_edited": "Viimeksi muokattu {{timestamp}}", - "view_spoiler": "näytä spoiler" + "view_spoiler": "näytä spoiler", + "more": "lisää", + "default_communities": "oletusyhteisöt" } \ No newline at end of file diff --git a/public/translations/fil/default.json b/public/translations/fil/default.json index 90a53878..546cd831 100644 --- a/public/translations/fil/default.json +++ b/public/translations/fil/default.json @@ -265,5 +265,7 @@ "page_not_found": "Hindi makita ang pahina", "not_found_description": "Ang pahinang hiniling mo ay hindi umiiral", "last_edited": "huling inedit {{timestamp}}", - "view_spoiler": "tingnan ang spoiler" + "view_spoiler": "tingnan ang spoiler", + "more": "higit pa", + "default_communities": "default na mga komunidad" } \ No newline at end of file diff --git a/public/translations/fr/default.json b/public/translations/fr/default.json index 54fb8d78..ece5791a 100644 --- a/public/translations/fr/default.json +++ b/public/translations/fr/default.json @@ -265,5 +265,7 @@ "page_not_found": "Page non trouvée", "not_found_description": "La page que vous avez demandée n'existe pas", "last_edited": "dernière édition {{timestamp}}", - "view_spoiler": "voir le spoiler" + "view_spoiler": "voir le spoiler", + "more": "plus", + "default_communities": "communautés par défaut" } \ No newline at end of file diff --git a/public/translations/he/default.json b/public/translations/he/default.json index 5cf4ae90..bc36868a 100644 --- a/public/translations/he/default.json +++ b/public/translations/he/default.json @@ -265,5 +265,7 @@ "page_not_found": "הדף לא נמצא", "not_found_description": "הדף שביקשת אינו קיים", "last_edited": "עריכה אחרונה {{timestamp}}", - "view_spoiler": "הצג ספוילר" + "view_spoiler": "הצג ספוילר", + "more": "יותר", + "default_communities": "קהילות ברירת מחדל" } \ No newline at end of file diff --git a/public/translations/hi/default.json b/public/translations/hi/default.json index debe4592..75a27d4c 100644 --- a/public/translations/hi/default.json +++ b/public/translations/hi/default.json @@ -265,5 +265,7 @@ "page_not_found": "पृष्ठ नहीं मिला", "not_found_description": "आपके द्वारा अनुरोधित पृष्ठ मौजूद नहीं है", "last_edited": "अंतिम संशोधन {{timestamp}}", - "view_spoiler": "स्पॉइलर देखें" + "view_spoiler": "स्पॉइलर देखें", + "more": "अधिक", + "default_communities": "डिफ़ॉल्ट समुदाय" } \ No newline at end of file diff --git a/public/translations/hu/default.json b/public/translations/hu/default.json index 9f12bd36..8911a8c8 100644 --- a/public/translations/hu/default.json +++ b/public/translations/hu/default.json @@ -265,5 +265,7 @@ "page_not_found": "Az oldal nem található", "not_found_description": "Az általad kért oldal nem létezik", "last_edited": "utoljára szerkesztve: {{timestamp}}", - "view_spoiler": "spoiler megtekintése" + "view_spoiler": "spoiler megtekintése", + "more": "több", + "default_communities": "alapértelmezett közösségek" } \ No newline at end of file diff --git a/public/translations/id/default.json b/public/translations/id/default.json index 95a9bfee..e6e451b1 100644 --- a/public/translations/id/default.json +++ b/public/translations/id/default.json @@ -265,5 +265,7 @@ "page_not_found": "Halaman tidak ditemukan", "not_found_description": "Halaman yang Anda minta tidak ada", "last_edited": "terakhir diubah {{timestamp}}", - "view_spoiler": "lihat spoiler" + "view_spoiler": "lihat spoiler", + "more": "lebih", + "default_communities": "komunitas default" } \ No newline at end of file diff --git a/public/translations/it/default.json b/public/translations/it/default.json index 40515928..fec94abb 100644 --- a/public/translations/it/default.json +++ b/public/translations/it/default.json @@ -265,5 +265,7 @@ "page_not_found": "Pagina non trovata", "not_found_description": "La pagina che hai richiesto non esiste", "last_edited": "ultima modifica {{timestamp}}", - "view_spoiler": "mostra spoiler" + "view_spoiler": "mostra spoiler", + "more": "altri", + "default_communities": "comunità predefinite" } \ No newline at end of file diff --git a/public/translations/ja/default.json b/public/translations/ja/default.json index 008adb29..c75539dd 100644 --- a/public/translations/ja/default.json +++ b/public/translations/ja/default.json @@ -265,5 +265,7 @@ "page_not_found": "ページが見つかりません", "not_found_description": "要求されたページは存在しません", "last_edited": "最終編集 {{timestamp}}", - "view_spoiler": "スポイラーを表示" + "view_spoiler": "スポイラーを表示", + "more": "もっと", + "default_communities": "デフォルトコミュニティ" } \ No newline at end of file diff --git a/public/translations/ko/default.json b/public/translations/ko/default.json index 607d3896..7aa19a83 100644 --- a/public/translations/ko/default.json +++ b/public/translations/ko/default.json @@ -265,5 +265,7 @@ "page_not_found": "페이지를 찾을 수 없음", "not_found_description": "요청하신 페이지가 존재하지 않습니다", "last_edited": "마지막으로 편집한 날짜: {{timestamp}}", - "view_spoiler": "스포일러 보기" + "view_spoiler": "스포일러 보기", + "more": "더 보기", + "default_communities": "기본 커뮤니티" } \ No newline at end of file diff --git a/public/translations/mr/default.json b/public/translations/mr/default.json index 0f8727e8..c372b730 100644 --- a/public/translations/mr/default.json +++ b/public/translations/mr/default.json @@ -265,5 +265,7 @@ "page_not_found": "पृष्ठ सापडला नाही", "not_found_description": "आपण विनंती केलेला पृष्ठ अस्तित्वात नाही", "last_edited": "शेवटचा संपादन {{timestamp}}", - "view_spoiler": "स्पॉईलर पहा" + "view_spoiler": "स्पॉईलर पहा", + "more": "अधिक", + "default_communities": "डिफॉल्ट समुदाय" } \ No newline at end of file diff --git a/public/translations/nl/default.json b/public/translations/nl/default.json index 9d644a11..46372c5d 100644 --- a/public/translations/nl/default.json +++ b/public/translations/nl/default.json @@ -265,5 +265,7 @@ "page_not_found": "Pagina niet gevonden", "not_found_description": "De pagina die je hebt opgevraagd, bestaat niet", "last_edited": "laatst bewerkt {{timestamp}}", - "view_spoiler": "bekijk spoiler" + "view_spoiler": "bekijk spoiler", + "more": "meer", + "default_communities": "standaardgemeenschappen" } \ No newline at end of file diff --git a/public/translations/no/default.json b/public/translations/no/default.json index 2130bc18..06c64c9e 100644 --- a/public/translations/no/default.json +++ b/public/translations/no/default.json @@ -265,5 +265,7 @@ "page_not_found": "Siden ble ikke funnet", "not_found_description": "Siden du ba om, finnes ikke", "last_edited": "sist endret {{timestamp}}", - "view_spoiler": "se spoiler" + "view_spoiler": "se spoiler", + "more": "mer", + "default_communities": "standardfellesskap" } \ No newline at end of file diff --git a/public/translations/pl/default.json b/public/translations/pl/default.json index 9fc2856d..60421d2f 100644 --- a/public/translations/pl/default.json +++ b/public/translations/pl/default.json @@ -265,5 +265,7 @@ "page_not_found": "Strona nie znaleziona", "not_found_description": "Strona, którą żądasz, nie istnieje", "last_edited": "ostatnio edytowano {{timestamp}}", - "view_spoiler": "pokaż spoiler" + "view_spoiler": "pokaż spoiler", + "more": "więcej", + "default_communities": "domyślne społeczności" } \ No newline at end of file diff --git a/public/translations/pt/default.json b/public/translations/pt/default.json index 1926eac0..4b652bce 100644 --- a/public/translations/pt/default.json +++ b/public/translations/pt/default.json @@ -265,5 +265,7 @@ "page_not_found": "Página não encontrada", "not_found_description": "A página que você solicitou não existe", "last_edited": "última edição {{timestamp}}", - "view_spoiler": "ver spoiler" + "view_spoiler": "ver spoiler", + "more": "mais", + "default_communities": "comunidades padrão" } \ No newline at end of file diff --git a/public/translations/ro/default.json b/public/translations/ro/default.json index 1c36b872..2f8780e4 100644 --- a/public/translations/ro/default.json +++ b/public/translations/ro/default.json @@ -265,5 +265,7 @@ "page_not_found": "Pagina nu a fost găsită", "not_found_description": "Pagina pe care ai solicitat-o nu există", "last_edited": "ultima editare {{timestamp}}", - "view_spoiler": "vezi spoilerul" + "view_spoiler": "vezi spoilerul", + "more": "mai multe", + "default_communities": "comunități implicite" } \ No newline at end of file diff --git a/public/translations/ru/default.json b/public/translations/ru/default.json index 4f036308..8958dce9 100644 --- a/public/translations/ru/default.json +++ b/public/translations/ru/default.json @@ -265,5 +265,7 @@ "page_not_found": "Страница не найдена", "not_found_description": "Запрошенная вами страница не существует", "last_edited": "последнее редактирование {{timestamp}}", - "view_spoiler": "посмотреть спойлер" + "view_spoiler": "посмотреть спойлер", + "more": "больше", + "default_communities": "стандартные сообщества" } \ No newline at end of file diff --git a/public/translations/sq/default.json b/public/translations/sq/default.json index a4dcd2e1..f52f5d04 100644 --- a/public/translations/sq/default.json +++ b/public/translations/sq/default.json @@ -265,5 +265,7 @@ "page_not_found": "Faqja nuk u gjet", "not_found_description": "Faqja që keni kërkuar nuk ekziston", "last_edited": "i fundit i ndryshuar {{timestamp}}", - "view_spoiler": "shikoni spoiler" + "view_spoiler": "shikoni spoiler", + "more": "më shumë", + "default_communities": "komunitete parazgjedhur" } \ No newline at end of file diff --git a/public/translations/sv/default.json b/public/translations/sv/default.json index 619ae70a..e5b7f5a9 100644 --- a/public/translations/sv/default.json +++ b/public/translations/sv/default.json @@ -265,5 +265,7 @@ "page_not_found": "Sidan kunde inte hittas", "not_found_description": "Sidan du begärde finns inte", "last_edited": "senast redigerad {{timestamp}}", - "view_spoiler": "visa spoiler" + "view_spoiler": "visa spoiler", + "more": "mer", + "default_communities": "standardgemenskaper" } \ No newline at end of file diff --git a/public/translations/te/default.json b/public/translations/te/default.json index 72092b83..3431db0f 100644 --- a/public/translations/te/default.json +++ b/public/translations/te/default.json @@ -265,5 +265,7 @@ "page_not_found": "పేజీ కనబడలేదు", "not_found_description": "మీ అభ్యర్థించిన పేజీ లేదు", "last_edited": "చివరి సవరించబడినది {{timestamp}}", - "view_spoiler": "స్పోయ్లర్ వీక్షించండి" + "view_spoiler": "స్పోయ్లర్ వీక్షించండి", + "more": "మరింత", + "default_communities": "డిఫాల్ట్ సముదాయాలు" } \ No newline at end of file diff --git a/public/translations/th/default.json b/public/translations/th/default.json index 6eda0f61..5a44e789 100644 --- a/public/translations/th/default.json +++ b/public/translations/th/default.json @@ -265,5 +265,7 @@ "page_not_found": "ไม่พบหน้า", "not_found_description": "หน้าที่คุณขอไม่มีอยู่จริง", "last_edited": "แก้ไขล่าสุด {{timestamp}}", - "view_spoiler": "ดูสปอยล์เลอร์" + "view_spoiler": "ดูสปอยล์เลอร์", + "more": "มากกว่า", + "default_communities": "ชุมชนเริ่มต้น" } \ No newline at end of file diff --git a/public/translations/tr/default.json b/public/translations/tr/default.json index 04dd7cf7..86c95ada 100644 --- a/public/translations/tr/default.json +++ b/public/translations/tr/default.json @@ -265,5 +265,7 @@ "page_not_found": "Sayfa bulunamadı", "not_found_description": "İstediğiniz sayfa mevcut değil", "last_edited": "son düzenleme {{timestamp}}", - "view_spoiler": "spoileri görüntüle" + "view_spoiler": "spoileri görüntüle", + "more": "daha fazla", + "default_communities": "varsayılan topluluklar" } \ No newline at end of file diff --git a/public/translations/uk/default.json b/public/translations/uk/default.json index d5bcd8ed..832f1abb 100644 --- a/public/translations/uk/default.json +++ b/public/translations/uk/default.json @@ -265,5 +265,7 @@ "page_not_found": "Сторінка не знайдена", "not_found_description": "Сторінка, яку ви запросили, не існує", "last_edited": "остання редакція {{timestamp}}", - "view_spoiler": "переглянути спойлер" + "view_spoiler": "переглянути спойлер", + "more": "більше", + "default_communities": "типові спільноти" } \ No newline at end of file diff --git a/public/translations/ur/default.json b/public/translations/ur/default.json index 2bc259c7..e88645b8 100644 --- a/public/translations/ur/default.json +++ b/public/translations/ur/default.json @@ -265,5 +265,7 @@ "page_not_found": "صفحہ نہیں ملا", "not_found_description": "آپ نے جو صفحہ درخواست کیا ہے وہ موجود نہیں ہے", "last_edited": "آخری ترمیم {{timestamp}}", - "view_spoiler": "اسپوائلر دیکھیں" + "view_spoiler": "اسپوائلر دیکھیں", + "more": "مزید", + "default_communities": "ڈیفالٹ کمیونٹیز" } \ No newline at end of file diff --git a/public/translations/vi/default.json b/public/translations/vi/default.json index d7137c54..a65443f4 100644 --- a/public/translations/vi/default.json +++ b/public/translations/vi/default.json @@ -265,5 +265,7 @@ "page_not_found": "Không tìm thấy trang", "not_found_description": "Trang bạn yêu cầu không tồn tại", "last_edited": "sửa lần cuối {{timestamp}}", - "view_spoiler": "xem spoiler" + "view_spoiler": "xem spoiler", + "more": "thêm", + "default_communities": "các cộng đồng mặc định" } \ No newline at end of file diff --git a/public/translations/zh/default.json b/public/translations/zh/default.json index 3bbfa0c6..36cda7c0 100644 --- a/public/translations/zh/default.json +++ b/public/translations/zh/default.json @@ -265,5 +265,7 @@ "page_not_found": "页面未找到", "not_found_description": "您请求的页面不存在", "last_edited": "上次编辑时间:{{timestamp}}", - "view_spoiler": "查看剧透" + "view_spoiler": "查看剧透", + "more": "更多", + "default_communities": "默认社区" } \ No newline at end of file From 09a7e63dc48b1b172582a64a64e8723cfc1c793b Mon Sep 17 00:00:00 2001 From: "plebeius.eth" Date: Fri, 16 Feb 2024 11:02:52 +0100 Subject: [PATCH 07/11] feat(topbar): add link to default communities in "my communities" dropdown, rename "edit" link to "more" --- src/components/topbar/topbar.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/components/topbar/topbar.tsx b/src/components/topbar/topbar.tsx index 0983cadf..40e0445a 100644 --- a/src/components/topbar/topbar.tsx +++ b/src/components/topbar/topbar.tsx @@ -126,6 +126,9 @@ const TopBar = () => { {t('edit_subscriptions')} + + {t('default_communities')} +
@@ -179,7 +182,7 @@ const TopBar = () => {
- {t('edit')} » + {t('more')} »
From ffce17c94ed3d0b5ea871d8779f571119e3d177c Mon Sep 17 00:00:00 2001 From: "plebeius.eth" Date: Fri, 16 Feb 2024 11:07:14 +0100 Subject: [PATCH 08/11] chore(translations): avatar --- 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 ec2fe034..6c659a52 100644 --- a/public/translations/ar/default.json +++ b/public/translations/ar/default.json @@ -267,5 +267,6 @@ "last_edited": "آخر تعديل {{timestamp}}", "view_spoiler": "عرض الحاضر", "more": "المزيد", - "default_communities": "المجتمعات الافتراضية" + "default_communities": "المجتمعات الافتراضية", + "avatar": "الصورة الرمزية" } \ No newline at end of file diff --git a/public/translations/bn/default.json b/public/translations/bn/default.json index 0a15a020..0a74695e 100644 --- a/public/translations/bn/default.json +++ b/public/translations/bn/default.json @@ -267,5 +267,6 @@ "last_edited": "শেষ সম্পাদনা {{timestamp}}", "view_spoiler": "স্পোয়ালার দেখুন", "more": "আরও", - "default_communities": "ডিফল্ট কমিউনিটিস" + "default_communities": "ডিফল্ট কমিউনিটিস", + "avatar": "অবতার" } \ No newline at end of file diff --git a/public/translations/cs/default.json b/public/translations/cs/default.json index 5c853810..96d1f981 100644 --- a/public/translations/cs/default.json +++ b/public/translations/cs/default.json @@ -267,5 +267,6 @@ "last_edited": "Poslední úprava {{timestamp}}", "view_spoiler": "zobrazit spoiler", "more": "více", - "default_communities": "výchozí komunity" + "default_communities": "výchozí komunity", + "avatar": "avatar" } \ No newline at end of file diff --git a/public/translations/da/default.json b/public/translations/da/default.json index d89c2cc0..bb255f42 100644 --- a/public/translations/da/default.json +++ b/public/translations/da/default.json @@ -267,5 +267,6 @@ "last_edited": "Sidst redigeret {{timestamp}}", "view_spoiler": "vis spoiler", "more": "mere", - "default_communities": "standardfællesskaber" + "default_communities": "standardfællesskaber", + "avatar": "avatar" } \ No newline at end of file diff --git a/public/translations/de/default.json b/public/translations/de/default.json index 7bec61a9..497cfff7 100644 --- a/public/translations/de/default.json +++ b/public/translations/de/default.json @@ -267,5 +267,6 @@ "last_edited": "Zuletzt bearbeitet am {{timestamp}}", "view_spoiler": "Spoiler anzeigen", "more": "mehr", - "default_communities": "Standard-Communities" + "default_communities": "Standard-Communities", + "avatar": "Avatar" } \ No newline at end of file diff --git a/public/translations/el/default.json b/public/translations/el/default.json index 002891dc..f7f6f9c9 100644 --- a/public/translations/el/default.json +++ b/public/translations/el/default.json @@ -267,5 +267,6 @@ "last_edited": "Τελευταία επεξεργασία {{timestamp}}", "view_spoiler": "προβολή spoiler", "more": "περισσότερα", - "default_communities": "προεπιλεγμένες κοινότητες" + "default_communities": "προεπιλεγμένες κοινότητες", + "avatar": "εικόνα προφίλ" } \ No newline at end of file diff --git a/public/translations/en/default.json b/public/translations/en/default.json index 39b78ffd..d9ca22ed 100644 --- a/public/translations/en/default.json +++ b/public/translations/en/default.json @@ -267,5 +267,6 @@ "last_edited": "last edited {{timestamp}}", "view_spoiler": "view spoiler", "more": "more", - "default_communities": "default communities" + "default_communities": "default communities", + "avatar": "avatar" } \ No newline at end of file diff --git a/public/translations/es/default.json b/public/translations/es/default.json index 31b43406..14d0ae3e 100644 --- a/public/translations/es/default.json +++ b/public/translations/es/default.json @@ -267,5 +267,6 @@ "last_edited": "última edición {{timestamp}}", "view_spoiler": "ver spoiler", "more": "más", - "default_communities": "comunidades predeterminadas" + "default_communities": "comunidades predeterminadas", + "avatar": "avatar" } \ No newline at end of file diff --git a/public/translations/fa/default.json b/public/translations/fa/default.json index 9342eb34..f089c144 100644 --- a/public/translations/fa/default.json +++ b/public/translations/fa/default.json @@ -267,5 +267,6 @@ "last_edited": "آخرین ویرایش {{timestamp}}", "view_spoiler": "نمایش اسپویلر", "more": "بیشتر", - "default_communities": "جوامع پیش‌فرض" + "default_communities": "جوامع پیش‌فرض", + "avatar": "آواتار" } \ No newline at end of file diff --git a/public/translations/fi/default.json b/public/translations/fi/default.json index a3dcdf6d..096a69b1 100644 --- a/public/translations/fi/default.json +++ b/public/translations/fi/default.json @@ -267,5 +267,6 @@ "last_edited": "Viimeksi muokattu {{timestamp}}", "view_spoiler": "näytä spoiler", "more": "lisää", - "default_communities": "oletusyhteisöt" + "default_communities": "oletusyhteisöt", + "avatar": "avatar" } \ No newline at end of file diff --git a/public/translations/fil/default.json b/public/translations/fil/default.json index 546cd831..2d5acf94 100644 --- a/public/translations/fil/default.json +++ b/public/translations/fil/default.json @@ -267,5 +267,6 @@ "last_edited": "huling inedit {{timestamp}}", "view_spoiler": "tingnan ang spoiler", "more": "higit pa", - "default_communities": "default na mga komunidad" + "default_communities": "default na mga komunidad", + "avatar": "avatar" } \ No newline at end of file diff --git a/public/translations/fr/default.json b/public/translations/fr/default.json index ece5791a..8936d3f3 100644 --- a/public/translations/fr/default.json +++ b/public/translations/fr/default.json @@ -267,5 +267,6 @@ "last_edited": "dernière édition {{timestamp}}", "view_spoiler": "voir le spoiler", "more": "plus", - "default_communities": "communautés par défaut" + "default_communities": "communautés par défaut", + "avatar": "avatar" } \ No newline at end of file diff --git a/public/translations/he/default.json b/public/translations/he/default.json index bc36868a..a866b251 100644 --- a/public/translations/he/default.json +++ b/public/translations/he/default.json @@ -267,5 +267,6 @@ "last_edited": "עריכה אחרונה {{timestamp}}", "view_spoiler": "הצג ספוילר", "more": "יותר", - "default_communities": "קהילות ברירת מחדל" + "default_communities": "קהילות ברירת מחדל", + "avatar": "אוואטר" } \ No newline at end of file diff --git a/public/translations/hi/default.json b/public/translations/hi/default.json index 75a27d4c..6d9e052b 100644 --- a/public/translations/hi/default.json +++ b/public/translations/hi/default.json @@ -267,5 +267,6 @@ "last_edited": "अंतिम संशोधन {{timestamp}}", "view_spoiler": "स्पॉइलर देखें", "more": "अधिक", - "default_communities": "डिफ़ॉल्ट समुदाय" + "default_communities": "डिफ़ॉल्ट समुदाय", + "avatar": "अवतार" } \ No newline at end of file diff --git a/public/translations/hu/default.json b/public/translations/hu/default.json index 8911a8c8..dd1cf73b 100644 --- a/public/translations/hu/default.json +++ b/public/translations/hu/default.json @@ -267,5 +267,6 @@ "last_edited": "utoljára szerkesztve: {{timestamp}}", "view_spoiler": "spoiler megtekintése", "more": "több", - "default_communities": "alapértelmezett közösségek" + "default_communities": "alapértelmezett közösségek", + "avatar": "avatár" } \ No newline at end of file diff --git a/public/translations/id/default.json b/public/translations/id/default.json index e6e451b1..ed370885 100644 --- a/public/translations/id/default.json +++ b/public/translations/id/default.json @@ -267,5 +267,6 @@ "last_edited": "terakhir diubah {{timestamp}}", "view_spoiler": "lihat spoiler", "more": "lebih", - "default_communities": "komunitas default" + "default_communities": "komunitas default", + "avatar": "avatar" } \ No newline at end of file diff --git a/public/translations/it/default.json b/public/translations/it/default.json index fec94abb..ec5d3564 100644 --- a/public/translations/it/default.json +++ b/public/translations/it/default.json @@ -267,5 +267,6 @@ "last_edited": "ultima modifica {{timestamp}}", "view_spoiler": "mostra spoiler", "more": "altri", - "default_communities": "comunità predefinite" + "default_communities": "comunità predefinite", + "avatar": "avatar" } \ No newline at end of file diff --git a/public/translations/ja/default.json b/public/translations/ja/default.json index c75539dd..bde64499 100644 --- a/public/translations/ja/default.json +++ b/public/translations/ja/default.json @@ -267,5 +267,6 @@ "last_edited": "最終編集 {{timestamp}}", "view_spoiler": "スポイラーを表示", "more": "もっと", - "default_communities": "デフォルトコミュニティ" + "default_communities": "デフォルトコミュニティ", + "avatar": "アバター" } \ No newline at end of file diff --git a/public/translations/ko/default.json b/public/translations/ko/default.json index 7aa19a83..f605e8fd 100644 --- a/public/translations/ko/default.json +++ b/public/translations/ko/default.json @@ -267,5 +267,6 @@ "last_edited": "마지막으로 편집한 날짜: {{timestamp}}", "view_spoiler": "스포일러 보기", "more": "더 보기", - "default_communities": "기본 커뮤니티" + "default_communities": "기본 커뮤니티", + "avatar": "아바타" } \ No newline at end of file diff --git a/public/translations/mr/default.json b/public/translations/mr/default.json index c372b730..171eebef 100644 --- a/public/translations/mr/default.json +++ b/public/translations/mr/default.json @@ -267,5 +267,6 @@ "last_edited": "शेवटचा संपादन {{timestamp}}", "view_spoiler": "स्पॉईलर पहा", "more": "अधिक", - "default_communities": "डिफॉल्ट समुदाय" + "default_communities": "डिफॉल्ट समुदाय", + "avatar": "अवतार" } \ No newline at end of file diff --git a/public/translations/nl/default.json b/public/translations/nl/default.json index 46372c5d..fa0fa85e 100644 --- a/public/translations/nl/default.json +++ b/public/translations/nl/default.json @@ -267,5 +267,6 @@ "last_edited": "laatst bewerkt {{timestamp}}", "view_spoiler": "bekijk spoiler", "more": "meer", - "default_communities": "standaardgemeenschappen" + "default_communities": "standaardgemeenschappen", + "avatar": "avatar" } \ No newline at end of file diff --git a/public/translations/no/default.json b/public/translations/no/default.json index 06c64c9e..1ceda3cd 100644 --- a/public/translations/no/default.json +++ b/public/translations/no/default.json @@ -267,5 +267,6 @@ "last_edited": "sist endret {{timestamp}}", "view_spoiler": "se spoiler", "more": "mer", - "default_communities": "standardfellesskap" + "default_communities": "standardfellesskap", + "avatar": "avatar" } \ No newline at end of file diff --git a/public/translations/pl/default.json b/public/translations/pl/default.json index 60421d2f..b4d3fd00 100644 --- a/public/translations/pl/default.json +++ b/public/translations/pl/default.json @@ -267,5 +267,6 @@ "last_edited": "ostatnio edytowano {{timestamp}}", "view_spoiler": "pokaż spoiler", "more": "więcej", - "default_communities": "domyślne społeczności" + "default_communities": "domyślne społeczności", + "avatar": "avatar" } \ No newline at end of file diff --git a/public/translations/pt/default.json b/public/translations/pt/default.json index 4b652bce..9d8bfeed 100644 --- a/public/translations/pt/default.json +++ b/public/translations/pt/default.json @@ -267,5 +267,6 @@ "last_edited": "última edição {{timestamp}}", "view_spoiler": "ver spoiler", "more": "mais", - "default_communities": "comunidades padrão" + "default_communities": "comunidades padrão", + "avatar": "avatar" } \ No newline at end of file diff --git a/public/translations/ro/default.json b/public/translations/ro/default.json index 2f8780e4..ef8be18c 100644 --- a/public/translations/ro/default.json +++ b/public/translations/ro/default.json @@ -267,5 +267,6 @@ "last_edited": "ultima editare {{timestamp}}", "view_spoiler": "vezi spoilerul", "more": "mai multe", - "default_communities": "comunități implicite" + "default_communities": "comunități implicite", + "avatar": "avatar" } \ No newline at end of file diff --git a/public/translations/ru/default.json b/public/translations/ru/default.json index 8958dce9..54a695f4 100644 --- a/public/translations/ru/default.json +++ b/public/translations/ru/default.json @@ -267,5 +267,6 @@ "last_edited": "последнее редактирование {{timestamp}}", "view_spoiler": "посмотреть спойлер", "more": "больше", - "default_communities": "стандартные сообщества" + "default_communities": "стандартные сообщества", + "avatar": "аватар" } \ No newline at end of file diff --git a/public/translations/sq/default.json b/public/translations/sq/default.json index f52f5d04..dcd36686 100644 --- a/public/translations/sq/default.json +++ b/public/translations/sq/default.json @@ -267,5 +267,6 @@ "last_edited": "i fundit i ndryshuar {{timestamp}}", "view_spoiler": "shikoni spoiler", "more": "më shumë", - "default_communities": "komunitete parazgjedhur" + "default_communities": "komunitete parazgjedhur", + "avatar": "avatar" } \ No newline at end of file diff --git a/public/translations/sv/default.json b/public/translations/sv/default.json index e5b7f5a9..18a1333c 100644 --- a/public/translations/sv/default.json +++ b/public/translations/sv/default.json @@ -267,5 +267,6 @@ "last_edited": "senast redigerad {{timestamp}}", "view_spoiler": "visa spoiler", "more": "mer", - "default_communities": "standardgemenskaper" + "default_communities": "standardgemenskaper", + "avatar": "avatar" } \ No newline at end of file diff --git a/public/translations/te/default.json b/public/translations/te/default.json index 3431db0f..9e68c5bd 100644 --- a/public/translations/te/default.json +++ b/public/translations/te/default.json @@ -267,5 +267,6 @@ "last_edited": "చివరి సవరించబడినది {{timestamp}}", "view_spoiler": "స్పోయ్లర్ వీక్షించండి", "more": "మరింత", - "default_communities": "డిఫాల్ట్ సముదాయాలు" + "default_communities": "డిఫాల్ట్ సముదాయాలు", + "avatar": "అవతార్" } \ No newline at end of file diff --git a/public/translations/th/default.json b/public/translations/th/default.json index 5a44e789..946a878d 100644 --- a/public/translations/th/default.json +++ b/public/translations/th/default.json @@ -267,5 +267,6 @@ "last_edited": "แก้ไขล่าสุด {{timestamp}}", "view_spoiler": "ดูสปอยล์เลอร์", "more": "มากกว่า", - "default_communities": "ชุมชนเริ่มต้น" + "default_communities": "ชุมชนเริ่มต้น", + "avatar": "อวตาร์" } \ No newline at end of file diff --git a/public/translations/tr/default.json b/public/translations/tr/default.json index 86c95ada..f065f06b 100644 --- a/public/translations/tr/default.json +++ b/public/translations/tr/default.json @@ -267,5 +267,6 @@ "last_edited": "son düzenleme {{timestamp}}", "view_spoiler": "spoileri görüntüle", "more": "daha fazla", - "default_communities": "varsayılan topluluklar" + "default_communities": "varsayılan topluluklar", + "avatar": "avatar" } \ No newline at end of file diff --git a/public/translations/uk/default.json b/public/translations/uk/default.json index 832f1abb..d98aeea0 100644 --- a/public/translations/uk/default.json +++ b/public/translations/uk/default.json @@ -267,5 +267,6 @@ "last_edited": "остання редакція {{timestamp}}", "view_spoiler": "переглянути спойлер", "more": "більше", - "default_communities": "типові спільноти" + "default_communities": "типові спільноти", + "avatar": "аватар" } \ No newline at end of file diff --git a/public/translations/ur/default.json b/public/translations/ur/default.json index e88645b8..7664fbf5 100644 --- a/public/translations/ur/default.json +++ b/public/translations/ur/default.json @@ -267,5 +267,6 @@ "last_edited": "آخری ترمیم {{timestamp}}", "view_spoiler": "اسپوائلر دیکھیں", "more": "مزید", - "default_communities": "ڈیفالٹ کمیونٹیز" + "default_communities": "ڈیفالٹ کمیونٹیز", + "avatar": "اوتار" } \ No newline at end of file diff --git a/public/translations/vi/default.json b/public/translations/vi/default.json index a65443f4..cd46f26c 100644 --- a/public/translations/vi/default.json +++ b/public/translations/vi/default.json @@ -267,5 +267,6 @@ "last_edited": "sửa lần cuối {{timestamp}}", "view_spoiler": "xem spoiler", "more": "thêm", - "default_communities": "các cộng đồng mặc định" + "default_communities": "các cộng đồng mặc định", + "avatar": "avatar" } \ No newline at end of file diff --git a/public/translations/zh/default.json b/public/translations/zh/default.json index 36cda7c0..7ea220f4 100644 --- a/public/translations/zh/default.json +++ b/public/translations/zh/default.json @@ -267,5 +267,6 @@ "last_edited": "上次编辑时间:{{timestamp}}", "view_spoiler": "查看剧透", "more": "更多", - "default_communities": "默认社区" + "default_communities": "默认社区", + "avatar": "头像" } \ No newline at end of file From 306919ca3ba2d58591728b844f7ab4e88635c3a3 Mon Sep 17 00:00:00 2001 From: "plebeius.eth" Date: Fri, 16 Feb 2024 11:35:18 +0100 Subject: [PATCH 09/11] feat(settings): add button to copy full account address --- .../address-settings.module.css | 8 +++++ .../address-settings/address-settings.tsx | 3 ++ src/views/settings/settings.module.css | 1 - src/views/settings/settings.tsx | 29 ++++++++++++++----- 4 files changed, 33 insertions(+), 8 deletions(-) diff --git a/src/views/settings/address-settings/address-settings.module.css b/src/views/settings/address-settings/address-settings.module.css index 104a75da..cbc49742 100644 --- a/src/views/settings/address-settings/address-settings.module.css +++ b/src/views/settings/address-settings/address-settings.module.css @@ -44,4 +44,12 @@ position: relative; bottom: 2px; margin-bottom: -2px; +} + +.copyAddressSetting { + padding-bottom: 10px; +} + +.copyAddressSetting button { + margin-left: 0; } \ No newline at end of file diff --git a/src/views/settings/address-settings/address-settings.tsx b/src/views/settings/address-settings/address-settings.tsx index fe9e6b26..f2fec941 100644 --- a/src/views/settings/address-settings/address-settings.tsx +++ b/src/views/settings/address-settings/address-settings.tsx @@ -131,6 +131,9 @@ const AddressSettings = () => { return (
+
+ full address +
{t('crypto_address')}
- {t('profile')} + {t('avatar')} - + + +
+
+ {t('display_name')} + +
From 283ec38424137f7884b7485b63b4d79865c74298 Mon Sep 17 00:00:00 2001 From: "plebeius.eth" Date: Fri, 16 Feb 2024 11:51:58 +0100 Subject: [PATCH 10/11] chore(translations): pending edit, failed edit --- public/translations/ar/default.json | 4 +++- public/translations/bn/default.json | 4 +++- public/translations/cs/default.json | 4 +++- public/translations/da/default.json | 4 +++- public/translations/de/default.json | 4 +++- public/translations/el/default.json | 4 +++- public/translations/en/default.json | 4 +++- public/translations/es/default.json | 4 +++- public/translations/fa/default.json | 4 +++- public/translations/fi/default.json | 4 +++- public/translations/fil/default.json | 4 +++- public/translations/fr/default.json | 4 +++- public/translations/he/default.json | 4 +++- public/translations/hi/default.json | 4 +++- public/translations/hu/default.json | 4 +++- public/translations/id/default.json | 4 +++- public/translations/it/default.json | 4 +++- public/translations/ja/default.json | 4 +++- public/translations/ko/default.json | 4 +++- public/translations/mr/default.json | 4 +++- public/translations/nl/default.json | 4 +++- public/translations/no/default.json | 4 +++- public/translations/pl/default.json | 4 +++- public/translations/pt/default.json | 4 +++- public/translations/ro/default.json | 4 +++- public/translations/ru/default.json | 4 +++- public/translations/sq/default.json | 4 +++- public/translations/sv/default.json | 4 +++- public/translations/te/default.json | 4 +++- public/translations/th/default.json | 4 +++- public/translations/tr/default.json | 4 +++- public/translations/uk/default.json | 4 +++- public/translations/ur/default.json | 4 +++- public/translations/vi/default.json | 4 +++- public/translations/zh/default.json | 4 +++- 35 files changed, 105 insertions(+), 35 deletions(-) diff --git a/public/translations/ar/default.json b/public/translations/ar/default.json index 6c659a52..5aa22f41 100644 --- a/public/translations/ar/default.json +++ b/public/translations/ar/default.json @@ -268,5 +268,7 @@ "view_spoiler": "عرض الحاضر", "more": "المزيد", "default_communities": "المجتمعات الافتراضية", - "avatar": "الصورة الرمزية" + "avatar": "الصورة الرمزية", + "pending_edit": "تحرير معلق", + "failed_edit": "فشل التعديل" } \ No newline at end of file diff --git a/public/translations/bn/default.json b/public/translations/bn/default.json index 0a74695e..21da93d9 100644 --- a/public/translations/bn/default.json +++ b/public/translations/bn/default.json @@ -268,5 +268,7 @@ "view_spoiler": "স্পোয়ালার দেখুন", "more": "আরও", "default_communities": "ডিফল্ট কমিউনিটিস", - "avatar": "অবতার" + "avatar": "অবতার", + "pending_edit": "মুলতুবি সম্পাদনা", + "failed_edit": "ব্যর্থ সম্পাদনা" } \ No newline at end of file diff --git a/public/translations/cs/default.json b/public/translations/cs/default.json index 96d1f981..92d237a0 100644 --- a/public/translations/cs/default.json +++ b/public/translations/cs/default.json @@ -268,5 +268,7 @@ "view_spoiler": "zobrazit spoiler", "more": "více", "default_communities": "výchozí komunity", - "avatar": "avatar" + "avatar": "avatar", + "pending_edit": "čekající úprava", + "failed_edit": "neúspěšná úprava" } \ No newline at end of file diff --git a/public/translations/da/default.json b/public/translations/da/default.json index bb255f42..14f43bdb 100644 --- a/public/translations/da/default.json +++ b/public/translations/da/default.json @@ -268,5 +268,7 @@ "view_spoiler": "vis spoiler", "more": "mere", "default_communities": "standardfællesskaber", - "avatar": "avatar" + "avatar": "avatar", + "pending_edit": "ventende redigering", + "failed_edit": "mislykket redigering" } \ No newline at end of file diff --git a/public/translations/de/default.json b/public/translations/de/default.json index 497cfff7..18162b2c 100644 --- a/public/translations/de/default.json +++ b/public/translations/de/default.json @@ -268,5 +268,7 @@ "view_spoiler": "Spoiler anzeigen", "more": "mehr", "default_communities": "Standard-Communities", - "avatar": "Avatar" + "avatar": "Avatar", + "pending_edit": "ausstehende Bearbeitung", + "failed_edit": "fehlgeschlagene Bearbeitung" } \ No newline at end of file diff --git a/public/translations/el/default.json b/public/translations/el/default.json index f7f6f9c9..1368526a 100644 --- a/public/translations/el/default.json +++ b/public/translations/el/default.json @@ -268,5 +268,7 @@ "view_spoiler": "προβολή spoiler", "more": "περισσότερα", "default_communities": "προεπιλεγμένες κοινότητες", - "avatar": "εικόνα προφίλ" + "avatar": "εικόνα προφίλ", + "pending_edit": "εκκρεμής επεξεργασία", + "failed_edit": "αποτυχημένη επεξεργασία" } \ No newline at end of file diff --git a/public/translations/en/default.json b/public/translations/en/default.json index d9ca22ed..9ea755fa 100644 --- a/public/translations/en/default.json +++ b/public/translations/en/default.json @@ -268,5 +268,7 @@ "view_spoiler": "view spoiler", "more": "more", "default_communities": "default communities", - "avatar": "avatar" + "avatar": "avatar", + "pending_edit": "pending edit", + "failed_edit": "failed edit" } \ No newline at end of file diff --git a/public/translations/es/default.json b/public/translations/es/default.json index 14d0ae3e..2143483e 100644 --- a/public/translations/es/default.json +++ b/public/translations/es/default.json @@ -268,5 +268,7 @@ "view_spoiler": "ver spoiler", "more": "más", "default_communities": "comunidades predeterminadas", - "avatar": "avatar" + "avatar": "avatar", + "pending_edit": "edición pendiente", + "failed_edit": "edición fallida" } \ No newline at end of file diff --git a/public/translations/fa/default.json b/public/translations/fa/default.json index f089c144..3223eae0 100644 --- a/public/translations/fa/default.json +++ b/public/translations/fa/default.json @@ -268,5 +268,7 @@ "view_spoiler": "نمایش اسپویلر", "more": "بیشتر", "default_communities": "جوامع پیش‌فرض", - "avatar": "آواتار" + "avatar": "آواتار", + "pending_edit": "ویرایش در انتظار", + "failed_edit": "ویرایش ناموفق" } \ No newline at end of file diff --git a/public/translations/fi/default.json b/public/translations/fi/default.json index 096a69b1..027b3952 100644 --- a/public/translations/fi/default.json +++ b/public/translations/fi/default.json @@ -268,5 +268,7 @@ "view_spoiler": "näytä spoiler", "more": "lisää", "default_communities": "oletusyhteisöt", - "avatar": "avatar" + "avatar": "avatar", + "pending_edit": "odottava muokkaus", + "failed_edit": "epäonnistunut muokkaus" } \ No newline at end of file diff --git a/public/translations/fil/default.json b/public/translations/fil/default.json index 2d5acf94..6b8402fe 100644 --- a/public/translations/fil/default.json +++ b/public/translations/fil/default.json @@ -268,5 +268,7 @@ "view_spoiler": "tingnan ang spoiler", "more": "higit pa", "default_communities": "default na mga komunidad", - "avatar": "avatar" + "avatar": "avatar", + "pending_edit": "naka-pending na edit", + "failed_edit": "nakabigong edit" } \ No newline at end of file diff --git a/public/translations/fr/default.json b/public/translations/fr/default.json index 8936d3f3..e95c0082 100644 --- a/public/translations/fr/default.json +++ b/public/translations/fr/default.json @@ -268,5 +268,7 @@ "view_spoiler": "voir le spoiler", "more": "plus", "default_communities": "communautés par défaut", - "avatar": "avatar" + "avatar": "avatar", + "pending_edit": "modification en attente", + "failed_edit": "modification échouée" } \ No newline at end of file diff --git a/public/translations/he/default.json b/public/translations/he/default.json index a866b251..d86250f7 100644 --- a/public/translations/he/default.json +++ b/public/translations/he/default.json @@ -268,5 +268,7 @@ "view_spoiler": "הצג ספוילר", "more": "יותר", "default_communities": "קהילות ברירת מחדל", - "avatar": "אוואטר" + "avatar": "אוואטר", + "pending_edit": "עריכה ממתינה", + "failed_edit": "עריכה נכשלה" } \ No newline at end of file diff --git a/public/translations/hi/default.json b/public/translations/hi/default.json index 6d9e052b..0333fbde 100644 --- a/public/translations/hi/default.json +++ b/public/translations/hi/default.json @@ -268,5 +268,7 @@ "view_spoiler": "स्पॉइलर देखें", "more": "अधिक", "default_communities": "डिफ़ॉल्ट समुदाय", - "avatar": "अवतार" + "avatar": "अवतार", + "pending_edit": "अपूर्ण संपादन", + "failed_edit": "विफल संपादन" } \ No newline at end of file diff --git a/public/translations/hu/default.json b/public/translations/hu/default.json index dd1cf73b..ba78e9cd 100644 --- a/public/translations/hu/default.json +++ b/public/translations/hu/default.json @@ -268,5 +268,7 @@ "view_spoiler": "spoiler megtekintése", "more": "több", "default_communities": "alapértelmezett közösségek", - "avatar": "avatár" + "avatar": "avatár", + "pending_edit": "folyamatban lévő szerkesztés", + "failed_edit": "sikertelen szerkesztés" } \ No newline at end of file diff --git a/public/translations/id/default.json b/public/translations/id/default.json index ed370885..4df3d2ba 100644 --- a/public/translations/id/default.json +++ b/public/translations/id/default.json @@ -268,5 +268,7 @@ "view_spoiler": "lihat spoiler", "more": "lebih", "default_communities": "komunitas default", - "avatar": "avatar" + "avatar": "avatar", + "pending_edit": "pengeditan tertunda", + "failed_edit": "edit gagal" } \ No newline at end of file diff --git a/public/translations/it/default.json b/public/translations/it/default.json index ec5d3564..06a9dc1c 100644 --- a/public/translations/it/default.json +++ b/public/translations/it/default.json @@ -268,5 +268,7 @@ "view_spoiler": "mostra spoiler", "more": "altri", "default_communities": "comunità predefinite", - "avatar": "avatar" + "avatar": "avatar", + "pending_edit": "modifica in attesa", + "failed_edit": "modifica fallita" } \ No newline at end of file diff --git a/public/translations/ja/default.json b/public/translations/ja/default.json index bde64499..1967ecaa 100644 --- a/public/translations/ja/default.json +++ b/public/translations/ja/default.json @@ -268,5 +268,7 @@ "view_spoiler": "スポイラーを表示", "more": "もっと", "default_communities": "デフォルトコミュニティ", - "avatar": "アバター" + "avatar": "アバター", + "pending_edit": "保留中の編集", + "failed_edit": "失敗した編集" } \ No newline at end of file diff --git a/public/translations/ko/default.json b/public/translations/ko/default.json index f605e8fd..f32f732a 100644 --- a/public/translations/ko/default.json +++ b/public/translations/ko/default.json @@ -268,5 +268,7 @@ "view_spoiler": "스포일러 보기", "more": "더 보기", "default_communities": "기본 커뮤니티", - "avatar": "아바타" + "avatar": "아바타", + "pending_edit": "대기 중인 편집", + "failed_edit": "실패한 편집" } \ No newline at end of file diff --git a/public/translations/mr/default.json b/public/translations/mr/default.json index 171eebef..0acc5a59 100644 --- a/public/translations/mr/default.json +++ b/public/translations/mr/default.json @@ -268,5 +268,7 @@ "view_spoiler": "स्पॉईलर पहा", "more": "अधिक", "default_communities": "डिफॉल्ट समुदाय", - "avatar": "अवतार" + "avatar": "अवतार", + "pending_edit": "प्रलंबित संपादन", + "failed_edit": "अयशस्वी संपादन" } \ No newline at end of file diff --git a/public/translations/nl/default.json b/public/translations/nl/default.json index fa0fa85e..d94816f6 100644 --- a/public/translations/nl/default.json +++ b/public/translations/nl/default.json @@ -268,5 +268,7 @@ "view_spoiler": "bekijk spoiler", "more": "meer", "default_communities": "standaardgemeenschappen", - "avatar": "avatar" + "avatar": "avatar", + "pending_edit": "in afwachting van bewerking", + "failed_edit": "mislukte bewerking" } \ No newline at end of file diff --git a/public/translations/no/default.json b/public/translations/no/default.json index 1ceda3cd..8c4768db 100644 --- a/public/translations/no/default.json +++ b/public/translations/no/default.json @@ -268,5 +268,7 @@ "view_spoiler": "se spoiler", "more": "mer", "default_communities": "standardfellesskap", - "avatar": "avatar" + "avatar": "avatar", + "pending_edit": "ventende redigering", + "failed_edit": "mislykket redigering" } \ No newline at end of file diff --git a/public/translations/pl/default.json b/public/translations/pl/default.json index b4d3fd00..08cd41cf 100644 --- a/public/translations/pl/default.json +++ b/public/translations/pl/default.json @@ -268,5 +268,7 @@ "view_spoiler": "pokaż spoiler", "more": "więcej", "default_communities": "domyślne społeczności", - "avatar": "avatar" + "avatar": "avatar", + "pending_edit": "edycja oczekująca", + "failed_edit": "nieudana edycja" } \ No newline at end of file diff --git a/public/translations/pt/default.json b/public/translations/pt/default.json index 9d8bfeed..f9fb089f 100644 --- a/public/translations/pt/default.json +++ b/public/translations/pt/default.json @@ -268,5 +268,7 @@ "view_spoiler": "ver spoiler", "more": "mais", "default_communities": "comunidades padrão", - "avatar": "avatar" + "avatar": "avatar", + "pending_edit": "edição pendente", + "failed_edit": "edição falhada" } \ No newline at end of file diff --git a/public/translations/ro/default.json b/public/translations/ro/default.json index ef8be18c..d00795a5 100644 --- a/public/translations/ro/default.json +++ b/public/translations/ro/default.json @@ -268,5 +268,7 @@ "view_spoiler": "vezi spoilerul", "more": "mai multe", "default_communities": "comunități implicite", - "avatar": "avatar" + "avatar": "avatar", + "pending_edit": "editare în așteptare", + "failed_edit": "editare eșuată" } \ No newline at end of file diff --git a/public/translations/ru/default.json b/public/translations/ru/default.json index 54a695f4..5f8c94fd 100644 --- a/public/translations/ru/default.json +++ b/public/translations/ru/default.json @@ -268,5 +268,7 @@ "view_spoiler": "посмотреть спойлер", "more": "больше", "default_communities": "стандартные сообщества", - "avatar": "аватар" + "avatar": "аватар", + "pending_edit": "редактирование ожидается", + "failed_edit": "не удалось отредактировать" } \ No newline at end of file diff --git a/public/translations/sq/default.json b/public/translations/sq/default.json index dcd36686..8def8e8a 100644 --- a/public/translations/sq/default.json +++ b/public/translations/sq/default.json @@ -268,5 +268,7 @@ "view_spoiler": "shikoni spoiler", "more": "më shumë", "default_communities": "komunitete parazgjedhur", - "avatar": "avatar" + "avatar": "avatar", + "pending_edit": "ndryshimi në pritje", + "failed_edit": "ndryshimi i dështuar" } \ No newline at end of file diff --git a/public/translations/sv/default.json b/public/translations/sv/default.json index 18a1333c..19262709 100644 --- a/public/translations/sv/default.json +++ b/public/translations/sv/default.json @@ -268,5 +268,7 @@ "view_spoiler": "visa spoiler", "more": "mer", "default_communities": "standardgemenskaper", - "avatar": "avatar" + "avatar": "avatar", + "pending_edit": "avvaktande redigering", + "failed_edit": "misslyckad redigering" } \ No newline at end of file diff --git a/public/translations/te/default.json b/public/translations/te/default.json index 9e68c5bd..59774c22 100644 --- a/public/translations/te/default.json +++ b/public/translations/te/default.json @@ -268,5 +268,7 @@ "view_spoiler": "స్పోయ్లర్ వీక్షించండి", "more": "మరింత", "default_communities": "డిఫాల్ట్ సముదాయాలు", - "avatar": "అవతార్" + "avatar": "అవతార్", + "pending_edit": "పెండింగ్ సవరించడం", + "failed_edit": "విఫలమైన సవరించడం" } \ No newline at end of file diff --git a/public/translations/th/default.json b/public/translations/th/default.json index 946a878d..1787c82a 100644 --- a/public/translations/th/default.json +++ b/public/translations/th/default.json @@ -268,5 +268,7 @@ "view_spoiler": "ดูสปอยล์เลอร์", "more": "มากกว่า", "default_communities": "ชุมชนเริ่มต้น", - "avatar": "อวตาร์" + "avatar": "อวตาร์", + "pending_edit": "การแก้ไขที่รอดำเนินการ", + "failed_edit": "การแก้ไขล้มเหลว" } \ No newline at end of file diff --git a/public/translations/tr/default.json b/public/translations/tr/default.json index f065f06b..ba659df6 100644 --- a/public/translations/tr/default.json +++ b/public/translations/tr/default.json @@ -268,5 +268,7 @@ "view_spoiler": "spoileri görüntüle", "more": "daha fazla", "default_communities": "varsayılan topluluklar", - "avatar": "avatar" + "avatar": "avatar", + "pending_edit": "bekleyen düzenleme", + "failed_edit": "başarısız düzenleme" } \ No newline at end of file diff --git a/public/translations/uk/default.json b/public/translations/uk/default.json index d98aeea0..1b16c68d 100644 --- a/public/translations/uk/default.json +++ b/public/translations/uk/default.json @@ -268,5 +268,7 @@ "view_spoiler": "переглянути спойлер", "more": "більше", "default_communities": "типові спільноти", - "avatar": "аватар" + "avatar": "аватар", + "pending_edit": "очікуване редагування", + "failed_edit": "невдале редагування" } \ No newline at end of file diff --git a/public/translations/ur/default.json b/public/translations/ur/default.json index 7664fbf5..2e29bbd1 100644 --- a/public/translations/ur/default.json +++ b/public/translations/ur/default.json @@ -268,5 +268,7 @@ "view_spoiler": "اسپوائلر دیکھیں", "more": "مزید", "default_communities": "ڈیفالٹ کمیونٹیز", - "avatar": "اوتار" + "avatar": "اوتار", + "pending_edit": "زیر التواء ترتیبات", + "failed_edit": "ناکام ترتیبات" } \ No newline at end of file diff --git a/public/translations/vi/default.json b/public/translations/vi/default.json index cd46f26c..acb1c24d 100644 --- a/public/translations/vi/default.json +++ b/public/translations/vi/default.json @@ -268,5 +268,7 @@ "view_spoiler": "xem spoiler", "more": "thêm", "default_communities": "các cộng đồng mặc định", - "avatar": "avatar" + "avatar": "avatar", + "pending_edit": "chỉnh sửa đang chờ", + "failed_edit": "chỉnh sửa thất bại" } \ No newline at end of file diff --git a/public/translations/zh/default.json b/public/translations/zh/default.json index 7ea220f4..db0689dc 100644 --- a/public/translations/zh/default.json +++ b/public/translations/zh/default.json @@ -268,5 +268,7 @@ "view_spoiler": "查看剧透", "more": "更多", "default_communities": "默认社区", - "avatar": "头像" + "avatar": "头像", + "pending_edit": "待处理的编辑", + "failed_edit": "编辑失败" } \ No newline at end of file From 3bf9ead33ecaf5cf11907b88dad4aad9d01c534c Mon Sep 17 00:00:00 2001 From: "plebeius.eth" Date: Fri, 16 Feb 2024 11:52:52 +0100 Subject: [PATCH 11/11] feat: add 'pending edit' and 'failed edit' labels for mod and author edits --- .../post/comment-tools/comment-tools.tsx | 19 +++++++++++++++++-- src/components/post/post.tsx | 7 ++++--- src/components/reply/reply.tsx | 8 +++++--- 3 files changed, 26 insertions(+), 8 deletions(-) diff --git a/src/components/post/comment-tools/comment-tools.tsx b/src/components/post/comment-tools/comment-tools.tsx index fff1ae54..dba9578c 100644 --- a/src/components/post/comment-tools/comment-tools.tsx +++ b/src/components/post/comment-tools/comment-tools.tsx @@ -14,6 +14,7 @@ interface CommentToolsProps { cid: string; deleted?: boolean; failed?: boolean; + editState?: string; hasLabel?: boolean; index?: number; isAuthor?: boolean; @@ -137,9 +138,11 @@ const SingleReplyTools = ({ author, cid, hasLabel, index, isAuthor, isMod, paren ); }; -const CommentToolsLabel = ({ cid, deleted, failed, isReply, removed, spoiler }: CommentToolsProps) => { +const CommentToolsLabel = ({ cid, deleted, failed, editState, isReply, removed, spoiler }: CommentToolsProps) => { const { t } = useTranslation(); const pending = cid === undefined && !isReply && !failed; + const failedEdit = editState === 'failed'; + const pendingEdit = editState === 'pending'; return ( <> @@ -148,6 +151,8 @@ const CommentToolsLabel = ({ cid, deleted, failed, isReply, removed, spoiler }: {failed &&