From d858b5398d7c4bd4810662bf42d4fc4d87c433b1 Mon Sep 17 00:00:00 2001 From: "Tom (plebeius.eth)" Date: Wed, 5 Feb 2025 12:46:37 +0100 Subject: [PATCH] feat(boards list): add PPH column --- public/translations/ar/default.json | 5 ++- public/translations/bn/default.json | 5 ++- public/translations/cs/default.json | 5 ++- public/translations/da/default.json | 5 ++- public/translations/de/default.json | 5 ++- public/translations/el/default.json | 5 ++- public/translations/en/default.json | 5 ++- public/translations/es/default.json | 5 ++- public/translations/fa/default.json | 5 ++- public/translations/fi/default.json | 5 ++- public/translations/fil/default.json | 5 ++- public/translations/fr/default.json | 5 ++- public/translations/he/default.json | 5 ++- public/translations/hi/default.json | 5 ++- public/translations/hu/default.json | 5 ++- public/translations/id/default.json | 5 ++- public/translations/it/default.json | 5 ++- public/translations/ja/default.json | 5 ++- public/translations/ko/default.json | 5 ++- public/translations/mr/default.json | 5 ++- public/translations/nl/default.json | 5 ++- public/translations/no/default.json | 5 ++- public/translations/pl/default.json | 5 ++- public/translations/pt/default.json | 5 ++- public/translations/ro/default.json | 5 ++- public/translations/ru/default.json | 5 ++- public/translations/sq/default.json | 5 ++- public/translations/sv/default.json | 5 ++- public/translations/te/default.json | 5 ++- public/translations/th/default.json | 5 ++- public/translations/tr/default.json | 5 ++- public/translations/uk/default.json | 5 ++- public/translations/ur/default.json | 5 ++- public/translations/vi/default.json | 5 ++- public/translations/zh/default.json | 5 ++- src/views/home/boards-list/boards-list.tsx | 44 +++++++++++++++------- src/views/home/home.module.css | 6 +++ 37 files changed, 177 insertions(+), 48 deletions(-) diff --git a/public/translations/ar/default.json b/public/translations/ar/default.json index 1dd90e18..eb330f87 100644 --- a/public/translations/ar/default.json +++ b/public/translations/ar/default.json @@ -267,5 +267,8 @@ "field_too_long": "الحقل طويل جدًا.", "title": "عنوان", "tags": "علامات", - "load_more": "تحميل المزيد" + "load_more": "تحميل المزيد", + "displaying_boards": "عرض {{filteredBoardsCount}} من {{totalBoardCount}} المجالس", + "displaying_boards_with_tag": "عرض {{filteredBoardsCount}} من {{totalBoardCount}} المجالس الموسومة بـ {{currentTag}}", + "pph": "Posts Per Hour (منشورات في الساعة)" } \ No newline at end of file diff --git a/public/translations/bn/default.json b/public/translations/bn/default.json index f89de9c7..a50e4200 100644 --- a/public/translations/bn/default.json +++ b/public/translations/bn/default.json @@ -267,5 +267,8 @@ "field_too_long": "ফিল্ডটি খুব লম্বা।", "title": "শিরোনাম", "tags": "ট্যাগ", - "load_more": "আরো লোড করুন" + "load_more": "আরো লোড করুন", + "displaying_boards": "প্রদর্শন করা হচ্ছে {{filteredBoardsCount}} এর মধ্যে {{totalBoardCount}} বোর্ড", + "displaying_boards_with_tag": "প্রদর্শন করা হচ্ছে {{filteredBoardsCount}} এর মধ্যে {{totalBoardCount}} বোর্ড যা {{currentTag}} ট্যাগযুক্ত", + "pph": "Posts Per Hour (পোস্ট প্রতি ঘণ্টা)" } \ No newline at end of file diff --git a/public/translations/cs/default.json b/public/translations/cs/default.json index 6ae38eb8..5e3fd738 100644 --- a/public/translations/cs/default.json +++ b/public/translations/cs/default.json @@ -267,5 +267,8 @@ "field_too_long": "Pole je příliš dlouhé.", "title": "Název", "tags": "Štítky", - "load_more": "Načíst více" + "load_more": "Načíst více", + "displaying_boards": "Zobrazuji {{filteredBoardsCount}} z {{totalBoardCount}} fór", + "displaying_boards_with_tag": "Zobrazuji {{filteredBoardsCount}} z {{totalBoardCount}} fór označených {{currentTag}}", + "pph": "Posts Per Hour (Příspěvky za hodinu)" } \ No newline at end of file diff --git a/public/translations/da/default.json b/public/translations/da/default.json index 3fcc827d..47e870af 100644 --- a/public/translations/da/default.json +++ b/public/translations/da/default.json @@ -267,5 +267,8 @@ "field_too_long": "Feltene er for lange.", "title": "Titel", "tags": "Tags", - "load_more": "Indlæs mere" + "load_more": "Indlæs mere", + "displaying_boards": "Viser {{filteredBoardsCount}} af {{totalBoardCount}} boards", + "displaying_boards_with_tag": "Viser {{filteredBoardsCount}} af {{totalBoardCount}} boards mærket {{currentTag}}", + "pph": "Posts Per Hour (Indlæg Per Time)" } \ No newline at end of file diff --git a/public/translations/de/default.json b/public/translations/de/default.json index 6f02e02e..82dbbd91 100644 --- a/public/translations/de/default.json +++ b/public/translations/de/default.json @@ -267,5 +267,8 @@ "field_too_long": "Das Feld ist zu lang.", "title": "Titel", "tags": "Tags", - "load_more": "Mehr laden" + "load_more": "Mehr laden", + "displaying_boards": "Zeige {{filteredBoardsCount}} von {{totalBoardCount}} Boards", + "displaying_boards_with_tag": "Zeige {{filteredBoardsCount}} von {{totalBoardCount}} Boards mit dem Tag {{currentTag}}", + "pph": "Posts Per Hour (Beiträge pro Stunde)" } \ No newline at end of file diff --git a/public/translations/el/default.json b/public/translations/el/default.json index 56975f93..1df5cb8e 100644 --- a/public/translations/el/default.json +++ b/public/translations/el/default.json @@ -267,5 +267,8 @@ "field_too_long": "Το πεδίο είναι πολύ μεγάλο.", "title": "Τίτλος", "tags": "Ετικέτες", - "load_more": "Φορτώστε περισσότερα" + "load_more": "Φορτώστε περισσότερα", + "displaying_boards": "Εμφάνιση {{filteredBoardsCount}} από τα {{totalBoardCount}} boards", + "displaying_boards_with_tag": "Εμφάνιση {{filteredBoardsCount}} από τα {{totalBoardCount}} boards με την ετικέτα {{currentTag}}", + "pph": "Posts Per Hour (Αναρτήσεις ανά ώρα)" } \ No newline at end of file diff --git a/public/translations/en/default.json b/public/translations/en/default.json index 90ec0027..0c70fabf 100644 --- a/public/translations/en/default.json +++ b/public/translations/en/default.json @@ -267,5 +267,8 @@ "field_too_long": "Field too long.", "title": "Title", "tags": "Tags", - "load_more": "Load More" + "load_more": "Load More", + "displaying_boards": "Displaying {{filteredBoardsCount}} of {{totalBoardCount}} boards", + "displaying_boards_with_tag": "Displaying {{filteredBoardsCount}} of {{totalBoardCount}} boards tagged {{currentTag}}", + "pph": "Posts Per Hour" } \ No newline at end of file diff --git a/public/translations/es/default.json b/public/translations/es/default.json index dca54242..12524c94 100644 --- a/public/translations/es/default.json +++ b/public/translations/es/default.json @@ -267,5 +267,8 @@ "field_too_long": "Campo demasiado largo.", "title": "Título", "tags": "Etiquetas", - "load_more": "Cargar más" + "load_more": "Cargar más", + "displaying_boards": "Mostrando {{filteredBoardsCount}} de {{totalBoardCount}} foros", + "displaying_boards_with_tag": "Mostrando {{filteredBoardsCount}} de {{totalBoardCount}} foros etiquetados con {{currentTag}}", + "pph": "Posts Per Hour (Publicaciones Por Hora)" } \ No newline at end of file diff --git a/public/translations/fa/default.json b/public/translations/fa/default.json index 48033508..b6b528a1 100644 --- a/public/translations/fa/default.json +++ b/public/translations/fa/default.json @@ -267,5 +267,8 @@ "field_too_long": "فیلد خیلی طولانی است.", "title": "عنوان", "tags": "برچسب‌ها", - "load_more": "بارگذاری بیشتر" + "load_more": "بارگذاری بیشتر", + "displaying_boards": "نمایش {{filteredBoardsCount}} از {{totalBoardCount}} انجمن", + "displaying_boards_with_tag": "نمایش {{filteredBoardsCount}} از {{totalBoardCount}} انجمن با برچسب {{currentTag}}", + "pph": "Posts Per Hour (پست در ساعت)" } \ No newline at end of file diff --git a/public/translations/fi/default.json b/public/translations/fi/default.json index 2592c132..12826e73 100644 --- a/public/translations/fi/default.json +++ b/public/translations/fi/default.json @@ -267,5 +267,8 @@ "field_too_long": "Kenttä liian pitkä.", "title": "Otsikko", "tags": "Tunnisteet", - "load_more": "Lataa lisää" + "load_more": "Lataa lisää", + "displaying_boards": "Näytetään {{filteredBoardsCount}} {{totalBoardCount}} foorumista", + "displaying_boards_with_tag": "Näytetään {{filteredBoardsCount}} {{totalBoardCount}} foorumista, joissa on tagi {{currentTag}}", + "pph": "Posts Per Hour (Viestit tunnissa)" } \ No newline at end of file diff --git a/public/translations/fil/default.json b/public/translations/fil/default.json index df0913f1..786a9e20 100644 --- a/public/translations/fil/default.json +++ b/public/translations/fil/default.json @@ -267,5 +267,8 @@ "field_too_long": "Ang field ay masyadong mahaba.", "title": "Pamagat", "tags": "Mga tag", - "load_more": "Mag-load ng higit pa" + "load_more": "Mag-load ng higit pa", + "displaying_boards": "Ipinapakita {{filteredBoardsCount}} mula sa {{totalBoardCount}} na mga board", + "displaying_boards_with_tag": "Ipinapakita {{filteredBoardsCount}} mula sa {{totalBoardCount}} na mga board na may tag na {{currentTag}}", + "pph": "Posts Per Hour (Mga Post Bawat Oras)" } \ No newline at end of file diff --git a/public/translations/fr/default.json b/public/translations/fr/default.json index 30f02e65..5a1e5c2c 100644 --- a/public/translations/fr/default.json +++ b/public/translations/fr/default.json @@ -267,5 +267,8 @@ "field_too_long": "Champ trop long.", "title": "Titre", "tags": "Tags", - "load_more": "Charger plus" + "load_more": "Charger plus", + "displaying_boards": "Affichage de {{filteredBoardsCount}} sur {{totalBoardCount}} forums", + "displaying_boards_with_tag": "Affichage de {{filteredBoardsCount}} sur {{totalBoardCount}} forums étiquetés {{currentTag}}", + "pph": "Posts Per Hour (Publications Par Heure)" } \ No newline at end of file diff --git a/public/translations/he/default.json b/public/translations/he/default.json index d78796d2..3019233c 100644 --- a/public/translations/he/default.json +++ b/public/translations/he/default.json @@ -267,5 +267,8 @@ "field_too_long": "המשדה ארוך מדי.", "title": "כותרת", "tags": "תגיות", - "load_more": "טען עוד" + "load_more": "טען עוד", + "displaying_boards": "מציג {{filteredBoardsCount}} מתוך {{totalBoardCount}} פורומים", + "displaying_boards_with_tag": "מציג {{filteredBoardsCount}} מתוך {{totalBoardCount}} פורומים עם התג {{currentTag}}", + "pph": "Posts Per Hour (פוסטים לשעה)" } \ No newline at end of file diff --git a/public/translations/hi/default.json b/public/translations/hi/default.json index 48e5d155..75dfc562 100644 --- a/public/translations/hi/default.json +++ b/public/translations/hi/default.json @@ -267,5 +267,8 @@ "field_too_long": "क्षेत्र बहुत लंबा है।", "title": "शीर्षक", "tags": "टैग", - "load_more": "अधिक लोड करें" + "load_more": "अधिक लोड करें", + "displaying_boards": "प्रदर्शित {{filteredBoardsCount}} में से {{totalBoardCount}} बोर्ड", + "displaying_boards_with_tag": "प्रदर्शित {{filteredBoardsCount}} में से {{totalBoardCount}} बोर्ड जो {{currentTag}} टैग से जुड़े हैं", + "pph": "Posts Per Hour (पोस्ट प्रति घंटे)" } \ No newline at end of file diff --git a/public/translations/hu/default.json b/public/translations/hu/default.json index db5f8653..59469981 100644 --- a/public/translations/hu/default.json +++ b/public/translations/hu/default.json @@ -267,5 +267,8 @@ "field_too_long": "A mező túl hosszú.", "title": "Cím", "tags": "Címkék", - "load_more": "Töltsön be többet" + "load_more": "Töltsön be többet", + "displaying_boards": "Képernyőn {{filteredBoardsCount}} a(z) {{totalBoardCount}} fórumokból", + "displaying_boards_with_tag": "Képernyőn {{filteredBoardsCount}} a(z) {{totalBoardCount}} fórumok közül, amelyek tartalmazzák a(z) {{currentTag}} címkét", + "pph": "Posts Per Hour (Bejegyzések óránként)" } \ No newline at end of file diff --git a/public/translations/id/default.json b/public/translations/id/default.json index 6f845c76..7f76c6cc 100644 --- a/public/translations/id/default.json +++ b/public/translations/id/default.json @@ -267,5 +267,8 @@ "field_too_long": "Kolom terlalu panjang.", "title": "Judul", "tags": "Tag", - "load_more": "Muat lebih banyak" + "load_more": "Muat lebih banyak", + "displaying_boards": "Menampilkan {{filteredBoardsCount}} dari {{totalBoardCount}} boards", + "displaying_boards_with_tag": "Menampilkan {{filteredBoardsCount}} dari {{totalBoardCount}} boards dengan tag {{currentTag}}", + "pph": "Posts Per Hour (Posting Per Jam)" } \ No newline at end of file diff --git a/public/translations/it/default.json b/public/translations/it/default.json index 59020f1f..86da4c1e 100644 --- a/public/translations/it/default.json +++ b/public/translations/it/default.json @@ -267,5 +267,8 @@ "field_too_long": "Campo troppo lungo.", "title": "Titolo", "tags": "Tag", - "load_more": "Carica altro" + "load_more": "Carica altro", + "displaying_boards": "Visualizzazione di {{filteredBoardsCount}} su {{totalBoardCount}} board", + "displaying_boards_with_tag": "Visualizzazione di {{filteredBoardsCount}} su {{totalBoardCount}} board con tag {{currentTag}}", + "pph": "Posts Per Hour (Post Per Ora)" } \ No newline at end of file diff --git a/public/translations/ja/default.json b/public/translations/ja/default.json index 4e6e1788..00fc5647 100644 --- a/public/translations/ja/default.json +++ b/public/translations/ja/default.json @@ -267,5 +267,8 @@ "field_too_long": "フィールドが長すぎます。", "title": "タイトル", "tags": "タグ", - "load_more": "もっと読み込む" + "load_more": "もっと読み込む", + "displaying_boards": "表示中 {{filteredBoardsCount}} 件のうち {{totalBoardCount}} 件の掲示板", + "displaying_boards_with_tag": "表示中 {{filteredBoardsCount}} 件のうち {{totalBoardCount}} 件の掲示板、タグ {{currentTag}}", + "pph": "Posts Per Hour (時間あたりの投稿)" } \ No newline at end of file diff --git a/public/translations/ko/default.json b/public/translations/ko/default.json index 80a37e71..69c3e80c 100644 --- a/public/translations/ko/default.json +++ b/public/translations/ko/default.json @@ -267,5 +267,8 @@ "field_too_long": "필드가 너무 깁니다.", "title": "제목", "tags": "태그", - "load_more": "더 보기" + "load_more": "더 보기", + "displaying_boards": "총 {{totalBoardCount}}개의 게시판 중 {{filteredBoardsCount}}개 게시판 표시", + "displaying_boards_with_tag": "총 {{totalBoardCount}}개의 게시판 중 {{filteredBoardsCount}}개 게시판, 태그 {{currentTag}}", + "pph": "Posts Per Hour (시간당 게시물)" } \ No newline at end of file diff --git a/public/translations/mr/default.json b/public/translations/mr/default.json index 43be6db5..4f34eca3 100644 --- a/public/translations/mr/default.json +++ b/public/translations/mr/default.json @@ -267,5 +267,8 @@ "field_too_long": "फील्ड खूप लांब आहे.", "title": "सिरसक", "tags": "टॅग", - "load_more": "अधिक लोड करा" + "load_more": "अधिक लोड करा", + "displaying_boards": "प्रदर्शित करणे {{filteredBoardsCount}} मध्ये {{totalBoardCount}} बोर्ड", + "displaying_boards_with_tag": "प्रदर्शित करणे {{filteredBoardsCount}} मध्ये {{totalBoardCount}} बोर्ड्स ज्यात {{currentTag}} टॅग आहे", + "pph": "Posts Per Hour (पोस्ट प्रति तास)" } \ No newline at end of file diff --git a/public/translations/nl/default.json b/public/translations/nl/default.json index c508b355..8894a50f 100644 --- a/public/translations/nl/default.json +++ b/public/translations/nl/default.json @@ -267,5 +267,8 @@ "field_too_long": "Veld te lang.", "title": "Titel", "tags": "Tags", - "load_more": "Laad meer" + "load_more": "Laad meer", + "displaying_boards": "Weergave {{filteredBoardsCount}} van {{totalBoardCount}} boards", + "displaying_boards_with_tag": "Weergave {{filteredBoardsCount}} van {{totalBoardCount}} boards met de tag {{currentTag}}", + "pph": "Posts Per Hour (Berichten Per Uur)" } \ No newline at end of file diff --git a/public/translations/no/default.json b/public/translations/no/default.json index f692f281..d34b96d1 100644 --- a/public/translations/no/default.json +++ b/public/translations/no/default.json @@ -267,5 +267,8 @@ "field_too_long": "Feltet er for langt.", "title": "Tittel", "tags": "Tags", - "load_more": "Last inn mer" + "load_more": "Last inn mer", + "displaying_boards": "Viser {{filteredBoardsCount}} av {{totalBoardCount}} boards", + "displaying_boards_with_tag": "Viser {{filteredBoardsCount}} av {{totalBoardCount}} boards merket med {{currentTag}}", + "pph": "Posts Per Hour (Innhold Per Time)" } \ No newline at end of file diff --git a/public/translations/pl/default.json b/public/translations/pl/default.json index a48b3c17..a6054085 100644 --- a/public/translations/pl/default.json +++ b/public/translations/pl/default.json @@ -267,5 +267,8 @@ "field_too_long": "Pole jest za długie.", "title": "Tytuł", "tags": "Tagi", - "load_more": "Załaduj więcej" + "load_more": "Załaduj więcej", + "displaying_boards": "Wyświetlanie {{filteredBoardsCount}} z {{totalBoardCount}} forów", + "displaying_boards_with_tag": "Wyświetlanie {{filteredBoardsCount}} z {{totalBoardCount}} forów oznaczonych tagiem {{currentTag}}", + "pph": "Posts Per Hour (Posty na Godzinę)" } \ No newline at end of file diff --git a/public/translations/pt/default.json b/public/translations/pt/default.json index 8afd86c3..008aa342 100644 --- a/public/translations/pt/default.json +++ b/public/translations/pt/default.json @@ -267,5 +267,8 @@ "field_too_long": "Campo muito longo.", "title": "Título", "tags": "Tags", - "load_more": "Carregar mais" + "load_more": "Carregar mais", + "displaying_boards": "Exibindo {{filteredBoardsCount}} de {{totalBoardCount}} boards", + "displaying_boards_with_tag": "Exibindo {{filteredBoardsCount}} de {{totalBoardCount}} boards com a tag {{currentTag}}", + "pph": "Posts Per Hour (Postagens Por Hora)" } \ No newline at end of file diff --git a/public/translations/ro/default.json b/public/translations/ro/default.json index 9d5eb054..9be2d374 100644 --- a/public/translations/ro/default.json +++ b/public/translations/ro/default.json @@ -267,5 +267,8 @@ "field_too_long": "Câmp prea lung.", "title": "Titlu", "tags": "Etichete", - "load_more": "Încarcă mai mult" + "load_more": "Încarcă mai mult", + "displaying_boards": "Afișare {{filteredBoardsCount}} din {{totalBoardCount}} forumuri", + "displaying_boards_with_tag": "Afișare {{filteredBoardsCount}} din {{totalBoardCount}} forumuri etichetate cu {{currentTag}}", + "pph": "Posts Per Hour (Postări Pe Oră)" } \ No newline at end of file diff --git a/public/translations/ru/default.json b/public/translations/ru/default.json index b4d4ac8c..626bf4f9 100644 --- a/public/translations/ru/default.json +++ b/public/translations/ru/default.json @@ -267,5 +267,8 @@ "field_too_long": "Поле слишком длинное.", "title": "Заголовок", "tags": "Теги", - "load_more": "Загрузить больше" + "load_more": "Загрузить больше", + "displaying_boards": "Отображение {{filteredBoardsCount}} из {{totalBoardCount}} форумов", + "displaying_boards_with_tag": "Отображение {{filteredBoardsCount}} из {{totalBoardCount}} форумов с тегом {{currentTag}}", + "pph": "Posts Per Hour (Посты в Час)" } \ No newline at end of file diff --git a/public/translations/sq/default.json b/public/translations/sq/default.json index 26af86df..d3f68646 100644 --- a/public/translations/sq/default.json +++ b/public/translations/sq/default.json @@ -267,5 +267,8 @@ "field_too_long": "Fusha është shumë e gjatë.", "title": "Titulli", "tags": "Etiketa", - "load_more": "Ngarko më shumë" + "load_more": "Ngarko më shumë", + "displaying_boards": "Po shfaq {{filteredBoardsCount}} nga {{totalBoardCount}} forume", + "displaying_boards_with_tag": "Po shfaq {{filteredBoardsCount}} nga {{totalBoardCount}} forume me etiketën {{currentTag}}", + "pph": "Posts Per Hour (Postime Në Orë)" } \ No newline at end of file diff --git a/public/translations/sv/default.json b/public/translations/sv/default.json index 1ca799b9..d59f9920 100644 --- a/public/translations/sv/default.json +++ b/public/translations/sv/default.json @@ -267,5 +267,8 @@ "field_too_long": "Fältet är för långt.", "title": "Titel", "tags": "Taggar", - "load_more": "Läs mer" + "load_more": "Läs mer", + "displaying_boards": "Visar {{filteredBoardsCount}} av {{totalBoardCount}} boards", + "displaying_boards_with_tag": "Visar {{filteredBoardsCount}} av {{totalBoardCount}} boards taggade med {{currentTag}}", + "pph": "Posts Per Hour (Inlägg Per Timme)" } \ No newline at end of file diff --git a/public/translations/te/default.json b/public/translations/te/default.json index 3a6fdbdf..de0fca2d 100644 --- a/public/translations/te/default.json +++ b/public/translations/te/default.json @@ -267,5 +267,8 @@ "field_too_long": "ఫీల్డ్ చాలా పొడుగ్గా ఉంది.", "title": "శీర్షిక", "tags": "ట్యాగ్స్", - "load_more": "మరింత లోడ్ చేయండి" + "load_more": "మరింత లోడ్ చేయండి", + "displaying_boards": "ప్రదర్శన {{filteredBoardsCount}} నుండి {{totalBoardCount}} బోర్డ్స్", + "displaying_boards_with_tag": "ప్రదర్శన {{filteredBoardsCount}} నుండి {{totalBoardCount}} బోర్డ్స్ ట్యాగ్ {{currentTag}}", + "pph": "Posts Per Hour (ప్రతి గంటలో పోస్ట్‌లు)" } \ No newline at end of file diff --git a/public/translations/th/default.json b/public/translations/th/default.json index 1bea76a4..381de6d0 100644 --- a/public/translations/th/default.json +++ b/public/translations/th/default.json @@ -267,5 +267,8 @@ "field_too_long": "ฟิลด์ยาวเกินไป", "title": "ชื่อเรื่อง", "tags": "แท็ก", - "load_more": "โหลดเพิ่มเติม" + "load_more": "โหลดเพิ่มเติม", + "displaying_boards": "แสดง {{filteredBoardsCount}} จาก {{totalBoardCount}} บอร์ด", + "displaying_boards_with_tag": "แสดง {{filteredBoardsCount}} จาก {{totalBoardCount}} บอร์ดที่มีแท็ก {{currentTag}}", + "pph": "Posts Per Hour (โพสต์ต่อชั่วโมง)" } \ No newline at end of file diff --git a/public/translations/tr/default.json b/public/translations/tr/default.json index dcd9275e..bff16062 100644 --- a/public/translations/tr/default.json +++ b/public/translations/tr/default.json @@ -267,5 +267,8 @@ "field_too_long": "Alan çok uzun.", "title": "Başlık", "tags": "Etiketler", - "load_more": "Daha fazla yükle" + "load_more": "Daha fazla yükle", + "displaying_boards": "{{filteredBoardsCount}}/{{totalBoardCount}} boardları görüntüleme", + "displaying_boards_with_tag": "{{currentTag}} etiketiyle işaretlenen {{totalBoardCount}} boardtan {{filteredBoardsCount}} görüntüleniyor", + "pph": "Posts Per Hour (Saat Başına Paylaşımlar)" } \ No newline at end of file diff --git a/public/translations/uk/default.json b/public/translations/uk/default.json index 81fd5365..7989f5f2 100644 --- a/public/translations/uk/default.json +++ b/public/translations/uk/default.json @@ -267,5 +267,8 @@ "field_too_long": "Поле занадто довге.", "title": "Заголовок", "tags": "Теги", - "load_more": "Завантажити більше" + "load_more": "Завантажити більше", + "displaying_boards": "Відображення {{filteredBoardsCount}} з {{totalBoardCount}} форумів", + "displaying_boards_with_tag": "Відображення {{filteredBoardsCount}} з {{totalBoardCount}} форумів, помічених тегом {{currentTag}}", + "pph": "Posts Per Hour (Пости за Годину)" } \ No newline at end of file diff --git a/public/translations/ur/default.json b/public/translations/ur/default.json index 4dca8bbf..e3268aeb 100644 --- a/public/translations/ur/default.json +++ b/public/translations/ur/default.json @@ -267,5 +267,8 @@ "field_too_long": "فیلڈ بہت طویل ہے۔", "title": "عنوان", "tags": "ٹٰیگ", - "load_more": "مزید لوڈ کریں" + "load_more": "مزید لوڈ کریں", + "displaying_boards": "ظاہر ہو رہے ہیں {{filteredBoardsCount}} میں سے {{totalBoardCount}} بورڈز", + "displaying_boards_with_tag": "ظاہر ہو رہے ہیں {{filteredBoardsCount}} میں سے {{totalBoardCount}} بورڈز جو {{currentTag}} ٹیگ کے ساتھ ہیں", + "pph": "Posts Per Hour (ہر گھنٹے میں پوسٹس)" } \ No newline at end of file diff --git a/public/translations/vi/default.json b/public/translations/vi/default.json index a73c3dd2..04ca7d36 100644 --- a/public/translations/vi/default.json +++ b/public/translations/vi/default.json @@ -267,5 +267,8 @@ "field_too_long": "Trường quá dài.", "title": "Tiêu đề", "tags": "Thẻ", - "load_more": "Tải thêm" + "load_more": "Tải thêm", + "displaying_boards": "Hiển thị {{filteredBoardsCount}} trong {{totalBoardCount}} diễn đàn", + "displaying_boards_with_tag": "Hiển thị {{filteredBoardsCount}} trong {{totalBoardCount}} diễn đàn có thẻ {{currentTag}}", + "pph": "Posts Per Hour (Bài Viết Mỗi Giờ)" } \ No newline at end of file diff --git a/public/translations/zh/default.json b/public/translations/zh/default.json index 41222afd..a1c270f4 100644 --- a/public/translations/zh/default.json +++ b/public/translations/zh/default.json @@ -267,5 +267,8 @@ "field_too_long": "字段太长。", "title": "标题", "tags": "标签", - "load_more": "加载更多" + "load_more": "加载更多", + "displaying_boards": "显示 {{filteredBoardsCount}} 个板块,共 {{totalBoardCount}} 个板块", + "displaying_boards_with_tag": "显示 {{filteredBoardsCount}} 个板块,共 {{totalBoardCount}} 个板块,标签为 {{currentTag}}", + "pph": "Posts Per Hour (每小时帖子)" } \ No newline at end of file diff --git a/src/views/home/boards-list/boards-list.tsx b/src/views/home/boards-list/boards-list.tsx index 870fc0e5..b52372ab 100644 --- a/src/views/home/boards-list/boards-list.tsx +++ b/src/views/home/boards-list/boards-list.tsx @@ -2,7 +2,7 @@ import { useState, useEffect } from 'react'; import { Link, useLocation } from 'react-router-dom'; import { useTranslation } from 'react-i18next'; import Plebbit from '@plebbit/plebbit-js/dist/browser/index.js'; -import { Subplebbit, useSubplebbit } from '@plebbit/plebbit-react-hooks'; +import { Subplebbit, useSubplebbit, useSubplebbitStats } from '@plebbit/plebbit-react-hooks'; import { useDefaultSubplebbitTags } from '../../../hooks/use-default-subplebbits-tags'; import useIsMobile from '../../../hooks/use-is-mobile'; import useIsSubplebbitOffline from '../../../hooks/use-is-subplebbit-offline'; @@ -14,6 +14,8 @@ const Board = ({ subplebbit, isMobile }: { subplebbit: Subplebbit; isMobile: boo const { address, title, tags } = subplebbit || {}; const nsfwTag = tags?.find((tag: string) => nsfwTags.includes(tag)); + let stats = useSubplebbitStats({ subplebbitAddress: address }); + const subplebbitData = useSubplebbit({ subplebbitAddress: address }); const { isOffline, isOnlineStatusLoading, offlineIconClass, offlineTitle } = useIsSubplebbitOffline(subplebbitData); @@ -33,16 +35,21 @@ const Board = ({ subplebbit, isMobile }: { subplebbit: Subplebbit; isMobile: boo

{title || displayAddress}

{!isMobile && ( - -

- {tags.map((tag: string, index: number) => ( - - {tag} - {index < tags.length - 1 && ', '} - - ))} -

- + <> + +

{stats.hourPostCount ?? '?'}

+ + +

+ {tags.map((tag: string, index: number) => ( + + {tag} + {index < tags.length - 1 && ', '} + + ))} +

+ + )} ); @@ -79,6 +86,11 @@ const BoardsList = ({ multisub }: { multisub: Subplebbit[] }) => { {t('board')} {t('title')} + {!isMobile && ( + + PPH + + )} {!isMobile && {t('tags')}} @@ -89,8 +101,14 @@ const BoardsList = ({ multisub }: { multisub: Subplebbit[] }) => {
- displaying {filteredBoards.length} of {totalBoardCount} boards - {currentTag && tags.includes(currentTag) && ` tagged "${currentTag}"`} + {currentTag && tags.includes(currentTag) + ? t('displaying_boards_with_tag', { + filteredBoardsCount: filteredBoards.length, + totalBoardCount: totalBoardCount, + currentTag: `"${currentTag}"`, + interpolation: { escapeValue: false }, + }) + : t('displaying_boards', { filteredBoardsCount: filteredBoards.length, totalBoardCount: totalBoardCount, interpolation: { escapeValue: false } })}
{hasMoreBoards && (
diff --git a/src/views/home/home.module.css b/src/views/home/home.module.css index d124fc51..1bf84941 100644 --- a/src/views/home/home.module.css +++ b/src/views/home/home.module.css @@ -63,6 +63,7 @@ padding: 4px 15px 5px 5px; text-align: left; white-space: nowrap; + text-transform: capitalize; } .boardsBox table tbody td { @@ -99,6 +100,7 @@ font-size: 12px; text-align: center; margin-bottom: 10px; + text-transform: lowercase; } .loadMoreButton span { @@ -328,6 +330,10 @@ text-transform: capitalize; } +.boardPPH { + width: 33px; +} + @media (max-width: 640px) { .content { min-width: 0;