From 929514ffde1ace70bb50cbddd15470797423c690 Mon Sep 17 00:00:00 2001 From: "plebeius.eth" Date: Thu, 8 Feb 2024 21:23:52 +0100 Subject: [PATCH 1/8] fix(mod menu): close modal when saving, instead of waiting for publishing --- .../post/comment-tools/mod-menu/mod-menu.tsx | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/src/components/post/comment-tools/mod-menu/mod-menu.tsx b/src/components/post/comment-tools/mod-menu/mod-menu.tsx index 7ffbad84..c86b8555 100644 --- a/src/components/post/comment-tools/mod-menu/mod-menu.tsx +++ b/src/components/post/comment-tools/mod-menu/mod-menu.tsx @@ -42,14 +42,7 @@ const ModMenu = ({ cid }: ModMenuProps) => { }; const [publishCommentEditOptions, setPublishCommentEditOptions] = useState(defaultPublishOptions); - const { state, publishCommentEdit } = usePublishCommentEdit(publishCommentEditOptions); - - // close the modal after publishing - useEffect(() => { - if (state && state !== 'failed' && state !== 'initializing' && state !== 'ready') { - setIsModMenuOpen(false); - } - }, [state, setIsModMenuOpen]); + const { publishCommentEdit } = usePublishCommentEdit(publishCommentEditOptions); const onCheckbox = (e: React.ChangeEvent) => setPublishCommentEditOptions((state) => ({ ...state, [e.target.id]: e.target.checked })); @@ -72,6 +65,11 @@ const ModMenu = ({ cid }: ModMenuProps) => { const headingId = useId(); + const handleSaveClick = async () => { + await publishCommentEdit(); + setIsModMenuOpen(false); + }; + return ( <>
  • @@ -112,7 +110,7 @@ const ModMenu = ({ cid }: ModMenuProps) => {
    - +
    From d7e71356e6dbaf38aef25b61ffd2bd05814c0aee Mon Sep 17 00:00:00 2001 From: "plebeius.eth" Date: Thu, 8 Feb 2024 21:29:22 +0100 Subject: [PATCH 2/8] chore(translations): refresh to update, owner, admin --- public/translations/ar/default.json | 6 ++++-- public/translations/bn/default.json | 6 ++++-- public/translations/cs/default.json | 6 ++++-- public/translations/da/default.json | 6 ++++-- public/translations/de/default.json | 6 ++++-- public/translations/el/default.json | 6 ++++-- public/translations/en/default.json | 6 ++++-- public/translations/es/default.json | 6 ++++-- public/translations/fa/default.json | 6 ++++-- public/translations/fi/default.json | 6 ++++-- public/translations/fil/default.json | 6 ++++-- public/translations/fr/default.json | 6 ++++-- public/translations/he/default.json | 6 ++++-- public/translations/hi/default.json | 6 ++++-- public/translations/hu/default.json | 6 ++++-- public/translations/id/default.json | 6 ++++-- public/translations/it/default.json | 6 ++++-- public/translations/ja/default.json | 6 ++++-- public/translations/ko/default.json | 6 ++++-- public/translations/mr/default.json | 6 ++++-- public/translations/nl/default.json | 6 ++++-- public/translations/no/default.json | 6 ++++-- public/translations/pl/default.json | 6 ++++-- public/translations/pt/default.json | 6 ++++-- public/translations/ro/default.json | 6 ++++-- public/translations/ru/default.json | 6 ++++-- public/translations/sq/default.json | 6 ++++-- public/translations/sv/default.json | 6 ++++-- public/translations/te/default.json | 6 ++++-- public/translations/th/default.json | 6 ++++-- public/translations/tr/default.json | 6 ++++-- public/translations/uk/default.json | 6 ++++-- public/translations/ur/default.json | 6 ++++-- public/translations/vi/default.json | 6 ++++-- public/translations/zh/default.json | 6 ++++-- src/components/post/comment-tools/mod-menu/mod-menu.tsx | 2 +- 36 files changed, 141 insertions(+), 71 deletions(-) diff --git a/public/translations/ar/default.json b/public/translations/ar/default.json index f0d8526b..359c06d6 100644 --- a/public/translations/ar/default.json +++ b/public/translations/ar/default.json @@ -229,7 +229,7 @@ "enter_crypto_address": "الرجاء إدخال عنوان كريبتو صالح.", "check_for_updates": "تحقق من وجود تحديثات", "general_settings": "إعدادات عامة", - "refresh_to_update": "تحديث للتحديث.", + "refresh_to_update": "قم بتحديث الصفحة للتحديث", "latest_development_version": "أنت على أحدث إصدار تطوير، النسخة {{commit}}. لاستخدام النسخة الثابتة، انتقل إلى {{link}}.", "latest_stable_version": "أنت على أحدث نسخة ثابتة، seedit v{{version}}.", "new_development_version": "إصدار تطوير جديد متاح، كوميت {{newCommit}}. أنت تستخدم كوميت {{oldCommit}}.", @@ -250,5 +250,7 @@ "item": "العنصر", "delete_community": "حذف المجتمع", "delete_community_description": "احذف هذه المجتمع نهائيًا. قد تظل المحتويات موجودة ومشتتة بواسطة الأقران", - "add": "إضافة" + "add": "إضافة", + "owner": "المالك", + "admin": "مسؤول" } \ No newline at end of file diff --git a/public/translations/bn/default.json b/public/translations/bn/default.json index 6c9aa5f7..0ab345bd 100644 --- a/public/translations/bn/default.json +++ b/public/translations/bn/default.json @@ -229,7 +229,7 @@ "enter_crypto_address": "দয়া করে একটি বৈধ ক্রিপ্টো ঠিকানা দিন।", "check_for_updates": "আপডেট চেক করুন", "general_settings": "সাধারণ সেটিংস", - "refresh_to_update": "আপডেট করতে রিফ্রেশ করুন।", + "refresh_to_update": "আপডেট করতে পৃষ্ঠাটি রিফ্রেশ করুন", "latest_development_version": "আপনি সর্বশেষ ডেভেলপমেন্ট সংস্করণে আছেন, কমিট {{commit}}। স্থিতিশীল সংস্করণ ব্যবহার করতে, {{link}} যান।", "latest_stable_version": "আপনি সর্বশেষ স্থিতিশীল সংস্করণে আছেন, seedit v{{version}}।", "new_development_version": "নতুন ডেভেলপমেন্ট সংস্করণ উপলব্ধ, কমিট {{newCommit}}। আপনি কমিট {{oldCommit}} ব্যবহার করছেন।", @@ -250,5 +250,7 @@ "item": "আইটেম", "delete_community": "সম্প্রদায় মোছো", "delete_community_description": "এই সম্প্রদায়টি চিরকুটিভাবে মুছে ফেলুন। এর বিষয়বস্তু এখনও সহপ্রের দ্বারা বীজ করা হতে পারে", - "add": "যোগ করুন" + "add": "যোগ করুন", + "owner": "মালিক", + "admin": "অ্যাডমিন" } \ No newline at end of file diff --git a/public/translations/cs/default.json b/public/translations/cs/default.json index 143218fa..3496f04d 100644 --- a/public/translations/cs/default.json +++ b/public/translations/cs/default.json @@ -229,7 +229,7 @@ "enter_crypto_address": "Zadejte prosím platnou kryptoadresu.", "check_for_updates": "Zkontrolovat aktualizace", "general_settings": "Obecné nastavení", - "refresh_to_update": "Obnovte pro aktualizaci.", + "refresh_to_update": "Obnovte stránku pro aktualizaci", "latest_development_version": "Jste na nejnovější vývojové verzi, commit {{commit}}. Chcete-li použít stabilní verzi, přejděte na {{link}}.", "latest_stable_version": "Jste na nejnovější stabilní verzi, seedit v{{version}}.", "new_development_version": "Nová vývojová verze k dispozici, commit {{newCommit}}. Používáte commit {{oldCommit}}.", @@ -250,5 +250,7 @@ "item": "položka", "delete_community": "smazat komunitu", "delete_community_description": "Trvale smazat tuto komunitu. Jeho obsah by stále mohl být zasevován ostatními uzly", - "add": "přidat" + "add": "přidat", + "owner": "vlastník", + "admin": "správce" } \ No newline at end of file diff --git a/public/translations/da/default.json b/public/translations/da/default.json index fd716d73..6d36274c 100644 --- a/public/translations/da/default.json +++ b/public/translations/da/default.json @@ -229,7 +229,7 @@ "enter_crypto_address": "Indtast venligst en gyldig krypto adresse.", "check_for_updates": "Tjek for opdateringer", "general_settings": "Generelle indstillinger", - "refresh_to_update": "Opdater for at opdatere.", + "refresh_to_update": "Opdater siden for at opdatere", "latest_development_version": "Du er på den nyeste udviklingsversion, commit {{commit}}. For at bruge den stabile version, gå til {{link}}.", "latest_stable_version": "Du er på den seneste stabile version, seedit v{{version}}.", "new_development_version": "Ny udviklingsversion tilgængelig, commit {{newCommit}}. Du bruger commit {{oldCommit}}.", @@ -250,5 +250,7 @@ "item": "vare", "delete_community": "slet fællesskab", "delete_community_description": "Slet denne fællesskab permanent. Dets indhold kan stadig være sået af ligemænd", - "add": "tilføje" + "add": "tilføje", + "owner": "ejeren", + "admin": "administrator" } \ No newline at end of file diff --git a/public/translations/de/default.json b/public/translations/de/default.json index f3f25e5c..33e71206 100644 --- a/public/translations/de/default.json +++ b/public/translations/de/default.json @@ -229,7 +229,7 @@ "enter_crypto_address": "Bitte geben Sie eine gültige Krypto-Adresse ein.", "check_for_updates": "Nach Updates suchen", "general_settings": "Allgemeine Einstellungen", - "refresh_to_update": "Aktualisieren, um zu aktualisieren.", + "refresh_to_update": "Aktualisieren Sie die Seite, um zu aktualisieren", "latest_development_version": "Du befindest dich auf der neuesten Entwicklungsversion, Commit {{commit}}. Um die stabile Version zu verwenden, gehe zu {{link}}.", "latest_stable_version": "Du befindest dich auf der neuesten stabilen Version, seedit v{{version}}.", "new_development_version": "Neue Entwicklungsversion verfügbar, Commit {{newCommit}}. Du verwendest Commit {{oldCommit}}.", @@ -250,5 +250,7 @@ "item": "Artikel", "delete_community": "Gemeinschaft löschen", "delete_community_description": "Diese Gemeinschaft endgültig löschen. Ihr Inhalt kann immer noch von Peers geerntet werden", - "add": "hinzufügen" + "add": "hinzufügen", + "owner": "Besitzer", + "admin": "Administrator" } \ No newline at end of file diff --git a/public/translations/el/default.json b/public/translations/el/default.json index babf74c5..e0a43c99 100644 --- a/public/translations/el/default.json +++ b/public/translations/el/default.json @@ -229,7 +229,7 @@ "enter_crypto_address": "Παρακαλώ εισαγάγετε μια έγκυρη διεύθυνση κρυπτονομίσματος.", "check_for_updates": "Έλεγχος για ενημερώσεις", "general_settings": "Γενικές ρυθμίσεις", - "refresh_to_update": "Ανανεώστε για να ενημερώσετε.", + "refresh_to_update": "Ανανεώστε τη σελίδα για να ενημερωθεί", "latest_development_version": "Βρίσκεστε στην πιο πρόσφατη έκδοση ανάπτυξης, commit {{commit}}. Για να χρησιμοποιήσετε την σταθερή έκδοση, πηγαίνετε στη διεύθυνση {{link}}.", "latest_stable_version": "Βρίσκεστε στην πιο πρόσφατη σταθερή έκδοση, seedit v{{version}}.", "new_development_version": "Νέα έκδοση ανάπτυξης διαθέσιμη, commit {{newCommit}}. Χρησιμοποιείτε commit {{oldCommit}}.", @@ -250,5 +250,7 @@ "item": "στοιχείο", "delete_community": "διαγραφή κοινότητας", "delete_community_description": "Διαγράψτε μόνιμα αυτήν την κοινότητα. Το περιεχόμενό του ενδέχεται ακόμη να είναι επισπευδόμενο από ομότιμους", - "add": "προσθήκη" + "add": "προσθήκη", + "owner": "κάτοχος", + "admin": "διαχειριστής" } \ No newline at end of file diff --git a/public/translations/en/default.json b/public/translations/en/default.json index 158de5a6..96be9ae1 100644 --- a/public/translations/en/default.json +++ b/public/translations/en/default.json @@ -229,7 +229,7 @@ "enter_crypto_address": "Please enter a valid crypto address.", "check_for_updates": "check for updates", "general_settings": "general settings", - "refresh_to_update": "Refresh to update.", + "refresh_to_update": "Refresh the page to update", "latest_development_version": "You're on the latest development version, commit {{commit}}. To use the stable version, go to {{link}}.", "latest_stable_version": "You are on the latest stable version, seedit v{{version}}.", "new_development_version": "New development version available, commit {{newCommit}}. You are using commit {{oldCommit}}.", @@ -250,5 +250,7 @@ "item": "item", "delete_community": "delete community", "delete_community_description": "Permanently delete this community. its content might still be seeded by peers", - "add": "add" + "add": "add", + "owner": "owner", + "admin": "admin" } \ No newline at end of file diff --git a/public/translations/es/default.json b/public/translations/es/default.json index 6594ba35..1196ecf2 100644 --- a/public/translations/es/default.json +++ b/public/translations/es/default.json @@ -229,7 +229,7 @@ "enter_crypto_address": "Por favor, introduzca una dirección de cripto válida.", "check_for_updates": "Comprobar actualizaciones", "general_settings": "Configuración general", - "refresh_to_update": "Actualiza para actualizar.", + "refresh_to_update": "Actualiza la página para actualizar", "latest_development_version": "Estás en la última versión de desarrollo, commit {{commit}}. Para usar la versión estable, ve a {{link}}.", "latest_stable_version": "Estás en la última versión estable, seedit v{{version}}.", "new_development_version": "Nueva versión de desarrollo disponible, commit {{newCommit}}. Estás usando commit {{oldCommit}}.", @@ -250,5 +250,7 @@ "item": "elemento", "delete_community": "eliminar comunidad", "delete_community_description": "Eliminar permanentemente esta comunidad. Su contenido aún podría ser sembrado por pares", - "add": "añadir" + "add": "añadir", + "owner": "propietario", + "admin": "administrador" } \ No newline at end of file diff --git a/public/translations/fa/default.json b/public/translations/fa/default.json index 00690cce..7768794c 100644 --- a/public/translations/fa/default.json +++ b/public/translations/fa/default.json @@ -229,7 +229,7 @@ "enter_crypto_address": "لطفاً یک آدرس کریپتو صحیح وارد کنید.", "check_for_updates": "بررسی برای بروزرسانی‌ها", "general_settings": "تنظیمات عمومی", - "refresh_to_update": "برای به روز رسانی راه اندازی مجدد کنید.", + "refresh_to_update": "برای به‌روزرسانی صفحه را رفرش کنید", "latest_development_version": "شما در نسخه توسعه‌ی جدیدتر هستید، کامیت {{commit}}. برای استفاده از نسخه پایدار، به {{link}} بروید.", "latest_stable_version": "شما در آخرین نسخه پایدار، seedit v{{version}} هستید.", "new_development_version": "نسخه توسعه جدید موجود است، کامیت {{newCommit}}. شما کامیت {{oldCommit}} را استفاده می‌کنید.", @@ -250,5 +250,7 @@ "item": "مورد", "delete_community": "حذف جامعه", "delete_community_description": "این جامعه را بطور دائمی حذف کنید. ممکن است محتوای آن هنوز توسط همتایان تکثیر شود", - "add": "افزودن" + "add": "افزودن", + "owner": "صاحب", + "admin": "مدیر" } \ No newline at end of file diff --git a/public/translations/fi/default.json b/public/translations/fi/default.json index cc996deb..6e6cc706 100644 --- a/public/translations/fi/default.json +++ b/public/translations/fi/default.json @@ -229,7 +229,7 @@ "enter_crypto_address": "Syötä voimassa oleva krypto-osoite.", "check_for_updates": "Tarkista päivitykset", "general_settings": "Yleiset asetukset", - "refresh_to_update": "Päivitä päivittääksesi.", + "refresh_to_update": "Päivitä sivu päivittääksesi", "latest_development_version": "Olet uusimmassa kehitysversion, commit {{commit}}. Käyttääksesi vakaa versio, siirry osoitteeseen {{link}}.", "latest_stable_version": "Olet viimeisimmässä vakaa versio, seedit v{{version}}.", "new_development_version": "Uusi kehitysversion saatavilla, commit {{newCommit}}. Käytät commit {{oldCommit}}.", @@ -250,5 +250,7 @@ "item": "kohde", "delete_community": "poista yhteisö", "delete_community_description": "Poista tämä yhteisö pysyvästi. Sen sisältö voi silti olla siemenenä vertaisverkossa", - "add": "lisää" + "add": "lisää", + "owner": "omistaja", + "admin": "ylläpitäjä" } \ No newline at end of file diff --git a/public/translations/fil/default.json b/public/translations/fil/default.json index 38e91e93..138c77c1 100644 --- a/public/translations/fil/default.json +++ b/public/translations/fil/default.json @@ -229,7 +229,7 @@ "enter_crypto_address": "Mangyaring magpasok ng wastong crypto address.", "check_for_updates": "Tingnan ang mga update", "general_settings": "Pangkalahatang mga setting", - "refresh_to_update": "I-refresh para i-update.", + "refresh_to_update": "I-refresh ang pahina upang i-update", "latest_development_version": "Nasa pinakabagong bersyon ng pag-unlad, commit {{commit}}. Upang gamitin ang stable na bersyon, pumunta sa {{link}}.", "latest_stable_version": "Nasa pinakabagong stable na bersyon, seedit v{{version}}.", "new_development_version": "Bagong development version na magagamit, commit {{newCommit}}. Ginagamit mo ang commit {{oldCommit}}.", @@ -250,5 +250,7 @@ "item": "item", "delete_community": "alisin ang komunidad", "delete_community_description": "Permanenteng burahin ang komunidad na ito. Maaaring ang nilalaman nito ay patuloy na iniisip ng mga kapwa", - "add": "magdagdag" + "add": "magdagdag", + "owner": "may-ari", + "admin": "admin" } \ No newline at end of file diff --git a/public/translations/fr/default.json b/public/translations/fr/default.json index bd6be568..76a7f89b 100644 --- a/public/translations/fr/default.json +++ b/public/translations/fr/default.json @@ -229,7 +229,7 @@ "enter_crypto_address": "Veuillez entrer une adresse crypto valide.", "check_for_updates": "Vérifier les mises à jour", "general_settings": "Paramètres généraux", - "refresh_to_update": "Actualisez pour mettre à jour.", + "refresh_to_update": "Actualisez la page pour mettre à jour", "latest_development_version": "Vous êtes sur la dernière version de développement, commit {{commit}}. Pour utiliser la version stable, allez sur {{link}}.", "latest_stable_version": "Vous êtes sur la dernière version stable, seedit v{{version}}.", "new_development_version": "Nouvelle version de développement disponible, commit {{newCommit}}. Vous utilisez commit {{oldCommit}}.", @@ -250,5 +250,7 @@ "item": "article", "delete_community": "supprimer la communauté", "delete_community_description": "Supprimer définitivement cette communauté. Son contenu pourrait encore être semé par des pairs", - "add": "ajouter" + "add": "ajouter", + "owner": "propriétaire", + "admin": "administrateur" } \ No newline at end of file diff --git a/public/translations/he/default.json b/public/translations/he/default.json index 8e6b1bb5..4ef79f0d 100644 --- a/public/translations/he/default.json +++ b/public/translations/he/default.json @@ -229,7 +229,7 @@ "enter_crypto_address": "אנא הזן כתובת קריפטו תקף.", "check_for_updates": "בדוק עדכונים", "general_settings": "הגדרות כלליות", - "refresh_to_update": "רענן כדי לעדכן.", + "refresh_to_update": "רענן את העמוד כדי לעדכן", "latest_development_version": "אתה נמצא בגרסת הפיתוח האחרונה, קומיט {{commit}}. כדי להשתמש בגרסה יציבה, עבור אל {{link}}.", "latest_stable_version": "אתה נמצא בגרסה היציבה האחרונה, seedit v{{version}}.", "new_development_version": "גרסת פיתוח חדשה זמינה, קומיט {{newCommit}}. אתה משתמש בקומיט {{oldCommit}}.", @@ -250,5 +250,7 @@ "item": "פריט", "delete_community": "מחק את הקהילה", "delete_community_description": "מחק את הקהילה הזו לצמיתות. התוכן שלו עדיין עשוי להיות מזורע על ידי עמיתים", - "add": "הוסף" + "add": "הוסף", + "owner": "בעלים", + "admin": "מנהל" } \ No newline at end of file diff --git a/public/translations/hi/default.json b/public/translations/hi/default.json index 0a2f3d51..e877da0c 100644 --- a/public/translations/hi/default.json +++ b/public/translations/hi/default.json @@ -229,7 +229,7 @@ "enter_crypto_address": "कृपया एक मान्य क्रिप्टो पता दर्ज करें।", "check_for_updates": "अपडेट्स की जाँच करें", "general_settings": "सामान्य सेटिंग्स", - "refresh_to_update": "अपडेट के लिए रिफ्रेश करें।", + "refresh_to_update": "अपडेट करने के लिए पृष्ठ को रिफ्रेश करें", "latest_development_version": "आप नवीनतम विकास संस्करण पर हैं, कमिट {{commit}}। स्थिर संस्करण का उपयोग करने के लिए, {{link}} पर जाएं।", "latest_stable_version": "आप नवीनतम स्थिर संस्करण पर हैं, seedit v{{version}}।", "new_development_version": "नई डेवलपमेंट संस्करण उपलब्ध है, कमिट {{newCommit}}। आप कमिट {{oldCommit}} का उपयोग कर रहे हैं।", @@ -250,5 +250,7 @@ "item": "आइटम", "delete_community": "समुदाय को हटाएं", "delete_community_description": "इस समुदाय को स्थायी रूप से हटा दें। इसकी सामग्री अभी भी सहपीर्स द्वारा बीजित हो सकती है", - "add": "जोड़ें" + "add": "जोड़ें", + "owner": "मालिक", + "admin": "व्यवस्थापक" } \ No newline at end of file diff --git a/public/translations/hu/default.json b/public/translations/hu/default.json index fb08f400..b360e644 100644 --- a/public/translations/hu/default.json +++ b/public/translations/hu/default.json @@ -229,7 +229,7 @@ "enter_crypto_address": "Kérjük, adjon meg egy érvényes kripto címet.", "check_for_updates": "Frissítések keresése", "general_settings": "Általános beállítások", - "refresh_to_update": "Frissítéshez frissítés.", + "refresh_to_update": "Frissítse az oldalt az frissítéshez", "latest_development_version": "A legújabb fejlesztői verziót használod, commit {{commit}}. A stabil verzió használatához látogass el ide: {{link}}.", "latest_stable_version": "A legújabb stabil verziót használod, seedit v{{version}}.", "new_development_version": "Új fejlesztési verzió elérhető, commit {{newCommit}}. A commit {{oldCommit}}-t használod.", @@ -250,5 +250,7 @@ "item": "tétel", "delete_community": "közösség törlése", "delete_community_description": "Véglegesen törölje ezt a közösséget. A tartalma továbbra is terjedhet a peer-ek által", - "add": "hozzáad" + "add": "hozzáad", + "owner": "tulajdonos", + "admin": "adminisztrátor" } \ No newline at end of file diff --git a/public/translations/id/default.json b/public/translations/id/default.json index fbcb4b8c..74b7d503 100644 --- a/public/translations/id/default.json +++ b/public/translations/id/default.json @@ -229,7 +229,7 @@ "enter_crypto_address": "Harap masukkan alamat kripto yang valid.", "check_for_updates": "Periksa pembaruan", "general_settings": "Pengaturan umum", - "refresh_to_update": "Segarkan untuk memperbarui.", + "refresh_to_update": "Segarkan halaman untuk memperbarui", "latest_development_version": "Anda menggunakan versi pengembangan terbaru, commit {{commit}}. Untuk menggunakan versi stabil, pergi ke {{link}}.", "latest_stable_version": "Anda menggunakan versi stabil terbaru, seedit v{{version}}.", "new_development_version": "Versi pengembangan baru tersedia, commit {{newCommit}}. Anda menggunakan commit {{oldCommit}}.", @@ -250,5 +250,7 @@ "item": "item", "delete_community": "hapus komunitas", "delete_community_description": "Hapus komunitas ini secara permanen. Isinya masih mungkin disebarkan oleh rekan sebaya", - "add": "tambahkan" + "add": "tambahkan", + "owner": "pemilik", + "admin": "admin" } \ No newline at end of file diff --git a/public/translations/it/default.json b/public/translations/it/default.json index 5096c9bd..e55be7cc 100644 --- a/public/translations/it/default.json +++ b/public/translations/it/default.json @@ -229,7 +229,7 @@ "enter_crypto_address": "Inserisci un indirizzo cripto valido.", "check_for_updates": "Controlla aggiornamenti", "general_settings": "Impostazioni generali", - "refresh_to_update": "Aggiorna per aggiornare.", + "refresh_to_update": "Ricarica la pagina per aggiornare", "latest_development_version": "Stai utilizzando la versione per sviluppatori più recente, commit {{commit}}. Per utilizzare la versione stabile, vai su {{link}}.", "latest_stable_version": "Stai utilizzando l'ultima versione stabile, seedit v{{version}}.", "new_development_version": "Nuova versione di sviluppo disponibile, commit {{newCommit}}. Stai utilizzando commit {{oldCommit}}.", @@ -250,5 +250,7 @@ "item": "oggetto", "delete_community": "elimina comunità", "delete_community_description": "Elimina definitivamente questa comunità. Il suo contenuto potrebbe ancora essere diffuso dai peer", - "add": "aggiungi" + "add": "aggiungi", + "owner": "proprietario", + "admin": "amministratore" } \ No newline at end of file diff --git a/public/translations/ja/default.json b/public/translations/ja/default.json index d9e23b37..68a996b2 100644 --- a/public/translations/ja/default.json +++ b/public/translations/ja/default.json @@ -229,7 +229,7 @@ "enter_crypto_address": "有効な暗号通貨アドレスを入力してください。", "check_for_updates": "更新をチェック", "general_settings": "一般設定", - "refresh_to_update": "更新のために更新してください。", + "refresh_to_update": "更新するにはページを更新してください", "latest_development_version": "最新の開発バージョン、コミット{{commit}}を使用しています。安定版を使用するには、{{link}}に移動してください。", "latest_stable_version": "最新の安定版、seedit v{{version}}を使用しています。", "new_development_version": "新しい開発バージョンが利用可能です、コミット {{newCommit}}。あなたはコミット {{oldCommit}} を使用しています。", @@ -250,5 +250,7 @@ "item": "アイテム", "delete_community": "コミュニティを削除", "delete_community_description": "このコミュニティを永久に削除します。そのコンテンツは依然としてピアによってシードされている可能性があります", - "add": "追加" + "add": "追加", + "owner": "オーナー", + "admin": "管理者" } \ No newline at end of file diff --git a/public/translations/ko/default.json b/public/translations/ko/default.json index 3f623da0..9276d772 100644 --- a/public/translations/ko/default.json +++ b/public/translations/ko/default.json @@ -229,7 +229,7 @@ "enter_crypto_address": "유효한 암호 주소를 입력하세요.", "check_for_updates": "업데이트 확인", "general_settings": "일반 설정", - "refresh_to_update": "업데이트하려면 새로 고침하세요.", + "refresh_to_update": "업데이트를 위해 페이지를 새로 고칩니다", "latest_development_version": "최신 개발 버전, 커밋 {{commit}}을 사용 중입니다. 안정 버전을 사용하려면 {{link}}로 이동하세요.", "latest_stable_version": "최신 안정 버전, seedit v{{version}}을 사용 중입니다.", "new_development_version": "새로운 개발 버전이 사용 가능합니다, 커밋 {{newCommit}}. 커밋 {{oldCommit}}을(를) 사용 중입니다.", @@ -250,5 +250,7 @@ "item": "항목", "delete_community": "커뮤니티 삭제", "delete_community_description": "이 커뮤니티를 영구적으로 삭제하십시오. 해당 콘텐츠는 여전히 동료에 의해 씨앗이 될 수 있습니다", - "add": "추가" + "add": "추가", + "owner": "소유자", + "admin": "관리자" } \ No newline at end of file diff --git a/public/translations/mr/default.json b/public/translations/mr/default.json index e07295e2..44657633 100644 --- a/public/translations/mr/default.json +++ b/public/translations/mr/default.json @@ -229,7 +229,7 @@ "enter_crypto_address": "कृपया मान्य क्रिप्टो पत्ता प्रविष्ट करा.", "check_for_updates": "अद्यतन साठी तपासा", "general_settings": "सामान्य सेटिंग्ज", - "refresh_to_update": "अद्यतनसाठी रीफ्रेश करा.", + "refresh_to_update": "अपडेट करण्यासाठी पृष्ठ पुन्हा लोड करा", "latest_development_version": "तुम्ही आधुनिक विकास संस्करणावर आहात, कमिट {{commit}}. स्थिर संस्करण वापरण्यासाठी, {{link}} जा.", "latest_stable_version": "तुम्ही आधुनिक स्थिर संस्करणावर आहात, seedit v{{version}}.", "new_development_version": "नवीन विकास संस्करण उपलब्ध आहे, कमिट {{newCommit}}. आपण कमिट {{oldCommit}} वापरत आहात.", @@ -250,5 +250,7 @@ "item": "आयटम", "delete_community": "समुदाय मिटवा", "delete_community_description": "हे समुदाय कायमपणे हटवा. त्याची सामग्री हल्लामध्ये असू शकते", - "add": "जोडा" + "add": "जोडा", + "owner": "मालक", + "admin": "व्यवस्थापक" } \ No newline at end of file diff --git a/public/translations/nl/default.json b/public/translations/nl/default.json index f89177ec..9faca54d 100644 --- a/public/translations/nl/default.json +++ b/public/translations/nl/default.json @@ -229,7 +229,7 @@ "enter_crypto_address": "Voer alstublieft een geldig crypto-adres in.", "check_for_updates": "Controleren op updates", "general_settings": "Algemene instellingen", - "refresh_to_update": "Vernieuwen om bij te werken.", + "refresh_to_update": "Vernieuw de pagina om bij te werken", "latest_development_version": "Je gebruikt de nieuwste ontwikkelingsversie, commit {{commit}}. Ga naar {{link}} om de stabiele versie te gebruiken.", "latest_stable_version": "Je gebruikt de nieuwste stabiele versie, seedit v{{version}}.", "new_development_version": "Nieuwe ontwikkelingsversie beschikbaar, commit {{newCommit}}. Je gebruikt commit {{oldCommit}}.", @@ -250,5 +250,7 @@ "item": "item", "delete_community": "gemeenschap verwijderen", "delete_community_description": "Verwijder deze community permanent. De inhoud kan nog steeds door peers worden gezaaid", - "add": "toevoegen" + "add": "toevoegen", + "owner": "eigenaar", + "admin": "beheerder" } \ No newline at end of file diff --git a/public/translations/no/default.json b/public/translations/no/default.json index aa0dba95..a6d88f4b 100644 --- a/public/translations/no/default.json +++ b/public/translations/no/default.json @@ -229,7 +229,7 @@ "enter_crypto_address": "Vennligst skriv inn en gyldig kryptoadresse.", "check_for_updates": "Sjekk for oppdateringer", "general_settings": "Generelle innstillinger", - "refresh_to_update": "Oppdater for å oppdatere.", + "refresh_to_update": "Oppdater siden for å oppdatere", "latest_development_version": "Du bruker den nyeste utviklingsversjonen, commit {{commit}}. For å bruke den stabile versjonen, gå til {{link}}.", "latest_stable_version": "Du bruker den nyeste stabile versjonen, seedit v{{version}}.", "new_development_version": "Ny utviklingsversjon tilgjengelig, commit {{newCommit}}. Du bruker commit {{oldCommit}}.", @@ -250,5 +250,7 @@ "item": "element", "delete_community": "slett fellesskap", "delete_community_description": "Slett denne fellesskapet permanent. Dets innhold kan fortsatt sås av jevnaldrende", - "add": "legg til" + "add": "legg til", + "owner": "eier", + "admin": "administrator" } \ No newline at end of file diff --git a/public/translations/pl/default.json b/public/translations/pl/default.json index 9e86b411..a9f7bf04 100644 --- a/public/translations/pl/default.json +++ b/public/translations/pl/default.json @@ -229,7 +229,7 @@ "enter_crypto_address": "Proszę podać prawidłowy adres kryptowalutowy.", "check_for_updates": "Sprawdź aktualizacje", "general_settings": "Ustawienia ogólne", - "refresh_to_update": "Odśwież, aby zaktualizować.", + "refresh_to_update": "Odśwież stronę, aby zaktualizować", "latest_development_version": "Korzystasz z najnowszej wersji rozwojowej, commit {{commit}}. Aby użyć wersji stabilnej, przejdź pod {{link}}.", "latest_stable_version": "Korzystasz z najnowszej wersji stabilnej, seedit v{{version}}.", "new_development_version": "Nowa wersja rozwojowa dostępna, commit {{newCommit}}. Używasz commit {{oldCommit}}.", @@ -250,5 +250,7 @@ "item": "pozycja", "delete_community": "usuń społeczność", "delete_community_description": "Trwale usuń tę społeczność. Jej zawartość nadal może być zasiewana przez rówieśników", - "add": "dodać" + "add": "dodać", + "owner": "właściciel", + "admin": "administrator" } \ No newline at end of file diff --git a/public/translations/pt/default.json b/public/translations/pt/default.json index c4b2e61c..fc4edca4 100644 --- a/public/translations/pt/default.json +++ b/public/translations/pt/default.json @@ -229,7 +229,7 @@ "enter_crypto_address": "Por favor, insira um endereço de cripto válido.", "check_for_updates": "Verificar atualizações", "general_settings": "Configurações gerais", - "refresh_to_update": "Atualize para atualizar.", + "refresh_to_update": "Atualize a página para atualizar", "latest_development_version": "Você está na última versão de desenvolvimento, commit {{commit}}. Para usar a versão estável, vá para {{link}}.", "latest_stable_version": "Você está na versão estável mais recente, seedit v{{version}}.", "new_development_version": "Nova versão de desenvolvimento disponível, commit {{newCommit}}. Você está usando o commit {{oldCommit}}.", @@ -250,5 +250,7 @@ "item": "item", "delete_community": "apagar comunidade", "delete_community_description": "Excluir permanentemente esta comunidade. Seu conteúdo ainda pode ser semeado por pares", - "add": "adicionar" + "add": "adicionar", + "owner": "dono", + "admin": "administrador" } \ No newline at end of file diff --git a/public/translations/ro/default.json b/public/translations/ro/default.json index f3936f3b..cc58eb39 100644 --- a/public/translations/ro/default.json +++ b/public/translations/ro/default.json @@ -229,7 +229,7 @@ "enter_crypto_address": "Vă rugăm să introduceți o adresă crypto validă.", "check_for_updates": "Verifică actualizările", "general_settings": "Setări generale", - "refresh_to_update": "Reîmprospătați pentru a actualiza.", + "refresh_to_update": "Actualizați pagina pentru a actualiza", "latest_development_version": "Ești pe cea mai recentă versiune de dezvoltare, commit {{commit}}. Pentru a folosi versiunea stabilă, mergi la {{link}}.", "latest_stable_version": "Ești pe cea mai recentă versiune stabilă, seedit v{{version}}.", "new_development_version": "Noua versiune de dezvoltare disponibilă, commit {{newCommit}}. Folosiți commit {{oldCommit}}.", @@ -250,5 +250,7 @@ "item": "articol", "delete_community": "ștergeți comunitatea", "delete_community_description": "Ștergeți permanent această comunitate. Conținutul său ar putea fi încă semănat de pereți", - "add": "adăuga" + "add": "adăuga", + "owner": "proprietar", + "admin": "administrator" } \ No newline at end of file diff --git a/public/translations/ru/default.json b/public/translations/ru/default.json index 74285838..050efa4e 100644 --- a/public/translations/ru/default.json +++ b/public/translations/ru/default.json @@ -229,7 +229,7 @@ "enter_crypto_address": "Пожалуйста, введите действительный криптовалютный адрес.", "check_for_updates": "Проверить наличие обновлений", "general_settings": "Общие настройки", - "refresh_to_update": "Обновите, чтобы обновить.", + "refresh_to_update": "Обновите страницу, чтобы обновить", "latest_development_version": "Вы используете последнюю версию разработки, коммит {{commit}}. Чтобы использовать стабильную версию, перейдите по ссылке {{link}}.", "latest_stable_version": "Вы используете последнюю стабильную версию, seedit v{{version}}.", "new_development_version": "Доступна новая версия разработки, коммит {{newCommit}}. Вы используете коммит {{oldCommit}}.", @@ -250,5 +250,7 @@ "item": "пункт", "delete_community": "удалить сообщество", "delete_community_description": "Постоянно удалить это сообщество. Его содержимое все еще может быть засеяно сверстниками", - "add": "добавить" + "add": "добавить", + "owner": "владелец", + "admin": "администратор" } \ No newline at end of file diff --git a/public/translations/sq/default.json b/public/translations/sq/default.json index f242d14a..a4604916 100644 --- a/public/translations/sq/default.json +++ b/public/translations/sq/default.json @@ -229,7 +229,7 @@ "enter_crypto_address": "Ju lutemi vendosni një adresë kripto të vlefshme.", "check_for_updates": "Kontrollo për përditësime", "general_settings": "Cilësimet e përgjithshme", - "refresh_to_update": "Rifresko për të përditësuar.", + "refresh_to_update": "Rifresko faqen për të rifreskuar", "latest_development_version": "Jeni në versionin më të fundit të zhvillimit, komitimi {{commit}}. Për të përdorur versionin e qëndrueshëm, shkoni te {{link}}.", "latest_stable_version": "Jeni në versionin më të fundit të qëndrueshëm, seedit v{{version}}.", "new_development_version": "Versioni i ri i zhvillimit është në dispozicion, komiti {{newCommit}}. Ju po përdorni komitin {{oldCommit}}.", @@ -250,5 +250,7 @@ "item": "artikull", "delete_community": "fshij komunitetin", "delete_community_description": "Fshini këtë komunitet përherë. Përmbajtja e tij ende mund të jetë mbjellë nga bashkëmoshatarët", - "add": "shto" + "add": "shto", + "owner": "pronar", + "admin": "administrator" } \ No newline at end of file diff --git a/public/translations/sv/default.json b/public/translations/sv/default.json index abaeca30..aebd02bf 100644 --- a/public/translations/sv/default.json +++ b/public/translations/sv/default.json @@ -229,7 +229,7 @@ "enter_crypto_address": "Ange en giltig kryptoadress.", "check_for_updates": "Kontrollera efter uppdateringar", "general_settings": "Allmänna inställningar", - "refresh_to_update": "Uppdatera för att uppdatera.", + "refresh_to_update": "Uppdatera sidan för att uppdatera", "latest_development_version": "Du är på den senaste utvecklingsversionen, commit {{commit}}. För att använda den stabila versionen, gå till {{link}}.", "latest_stable_version": "Du är på den senaste stabila versionen, seedit v{{version}}.", "new_development_version": "Ny utvecklingsversion tillgänglig, commit {{newCommit}}. Du använder commit {{oldCommit}}.", @@ -250,5 +250,7 @@ "item": "föremål", "delete_community": "ta bort gemenskap", "delete_community_description": "Radera permanent den här gemenskapen. Dess innehåll kan fortfarande vara fröat av kamrater", - "add": "lägg till" + "add": "lägg till", + "owner": "ägare", + "admin": "administratör" } \ No newline at end of file diff --git a/public/translations/te/default.json b/public/translations/te/default.json index d37889be..ab28ea07 100644 --- a/public/translations/te/default.json +++ b/public/translations/te/default.json @@ -229,7 +229,7 @@ "enter_crypto_address": "దయచేసి చేసిన క్రిప్టో చిరునామాను నమోదు చేయండి.", "check_for_updates": "నవీకరణలను తనిఖీ చేయండి", "general_settings": "సాధారణ సెట్టింగులు", - "refresh_to_update": "నవీకరించడానికి రిఫ్రెష్ చేయండి.", + "refresh_to_update": "అప్డేట్ చేయడానికి పేజీను రిఫ్రెష్ చేయండి", "latest_development_version": "మీరు తొలగించే త్వరిత అప్డేటు, కమిట్ {{commit}} పరిపాలన ముగింది స్థిర అప్డేటు కోసం {{link}}.", "latest_stable_version": "మీరు తొలగించిన తొలగిన సంస్కరణం, seedit v{{version}} నందు.", "new_development_version": "కొత్త డెవలప్మెంట్ వెర్షన్ అందుబాటులో ఉంది, కమిట్ {{newCommit}}. మీరు కమిట్ {{oldCommit}} ను ఉపయోగిస్తున్నారు.", @@ -250,5 +250,7 @@ "item": "అంశం", "delete_community": "సముదాయాన్ని తొలగించండి", "delete_community_description": "ఈ సముదాయాన్ని స్థాయిగా తొలగించండి. అది సామాన్య పీర్ల ద్వారా ఇప్పుడు సీడ్ చేయబడవచ్చు", - "add": "జోడించండి" + "add": "జోడించండి", + "owner": "యజమాని", + "admin": "అంచనా" } \ No newline at end of file diff --git a/public/translations/th/default.json b/public/translations/th/default.json index 1f5a50dc..461097ec 100644 --- a/public/translations/th/default.json +++ b/public/translations/th/default.json @@ -229,7 +229,7 @@ "enter_crypto_address": "โปรดป้อนที่อยู่คริปโตที่ถูกต้อง", "check_for_updates": "ตรวจสอบการอัปเดต", "general_settings": "การตั้งค่าทั่วไป", - "refresh_to_update": "รีเฟรชเพื่ออัปเดต", + "refresh_to_update": "รีเฟรชหน้าเพื่ออัปเดต", "latest_development_version": "คุณกำลังใช้รุ่นการพัฒนาล่าสุด, คอมมิต {{commit}} ในการใช้รุ่นเสถียร ไปที่ {{link}}.", "latest_stable_version": "คุณกำลังใช้รุ่นเสถียรล่าสุด, seedit v{{version}}.", "new_development_version": "มีเวอร์ชันการพัฒนาใหม่ที่ใช้ได้, คอมมิต {{newCommit}} คุณกำลังใช้คอมมิต {{oldCommit}}", @@ -250,5 +250,7 @@ "item": "สิ่งของ", "delete_community": "ลบชุมชน", "delete_community_description": "ลบชุมชนนี้อย่างถาวร การเผยแพร่ของเนื้อหาอาจยังถูกซีดโดยพีร์", - "add": "เพิ่ม" + "add": "เพิ่ม", + "owner": "เจ้าของ", + "admin": "ผู้ดูแลระบบ" } \ No newline at end of file diff --git a/public/translations/tr/default.json b/public/translations/tr/default.json index 363fdf24..4a2c421c 100644 --- a/public/translations/tr/default.json +++ b/public/translations/tr/default.json @@ -229,7 +229,7 @@ "enter_crypto_address": "Lütfen geçerli bir kripto adresi girin.", "check_for_updates": "Güncellemeleri kontrol et", "general_settings": "Genel ayarlar", - "refresh_to_update": "Güncellemek için yeniden yükleyin.", + "refresh_to_update": "Güncellemek için sayfayı yenileyin", "latest_development_version": "En son geliştirme sürümündesiniz, commit {{commit}}. Kararlı sürümü kullanmak için {{link}} gidin.", "latest_stable_version": "En son kararlı sürümünde, seedit v{{version}}s.", "new_development_version": "Yeni geliştirme sürümü kullanılabilir, commit {{newCommit}}. Commit {{oldCommit}} kullanıyorsunuz.", @@ -250,5 +250,7 @@ "item": "öğe", "delete_community": "topluluğu sil", "delete_community_description": "Bu topluluğu kalıcı olarak sil. İçeriği hala eşler tarafından ekmeklenebilir", - "add": "ekle" + "add": "ekle", + "owner": "sahip", + "admin": "yönetici" } \ No newline at end of file diff --git a/public/translations/uk/default.json b/public/translations/uk/default.json index 8ad6d99b..9f82a4d7 100644 --- a/public/translations/uk/default.json +++ b/public/translations/uk/default.json @@ -229,7 +229,7 @@ "enter_crypto_address": "Будь ласка, введіть дійсну криптовалютну адресу.", "check_for_updates": "Перевірте оновлення", "general_settings": "Загальні налаштування", - "refresh_to_update": "Оновіть для оновлення.", + "refresh_to_update": "Оновіть сторінку, щоб оновити", "latest_development_version": "Ви використовуєте останню версію розробки, коміт {{commit}}. Щоб використовувати стабільну версію, перейдіть за посиланням {{link}}.", "latest_stable_version": "Ви використовуєте останню стабільну версію, seedit v{{version}}.", "new_development_version": "Нова версія розробки доступна, коміт {{newCommit}}. Ви використовуєте коміт {{oldCommit}}.", @@ -250,5 +250,7 @@ "item": "елемент", "delete_community": "видалити спільноту", "delete_community_description": "Видалити цю спільноту назавжди. Його вміст все ще може бути засіяно ровесниками", - "add": "додати" + "add": "додати", + "owner": "власник", + "admin": "адміністратор" } \ No newline at end of file diff --git a/public/translations/ur/default.json b/public/translations/ur/default.json index 9eecd423..1b0f7188 100644 --- a/public/translations/ur/default.json +++ b/public/translations/ur/default.json @@ -229,7 +229,7 @@ "enter_crypto_address": "براہ کرم ایک معتبر کرپٹو پتہ داخل کریں۔", "check_for_updates": "اپ ڈیٹس کی جانچ پڑتال کریں", "general_settings": "عام امور", - "refresh_to_update": "تازہ کرنے کے لئے تازہ کریں۔", + "refresh_to_update": "اپ ڈیٹ کرنے کے لئے صفحہ تازہ کریں", "latest_development_version": "آپ تازہ ترین ڈویلپمنٹ ورژن پر ہیں, کمیٹ {{commit}}۔ مستحکم ورژن استعمال کرنے کے لئے, {{link}} پر جائیں۔", "latest_stable_version": "آپ تازہ ترین مستحکم ورژن پر ہیں, seedit v{{version}}۔", "new_development_version": "نیو ڈویلپمنٹ ورژن دستیاب ہے, کمیٹ {{newCommit}}۔ آپ کمیٹ {{oldCommit}} استعمال کر رہے ہیں۔", @@ -250,5 +250,7 @@ "item": "اشیاء", "delete_community": "کمیونٹی کو حذف کریں", "delete_community_description": "اس کمیونٹی کو مستقل طور پر حذف کریں۔ اس کا مواد ابھی بھی سمندر کے ذریعہ کیا جا سکتا ہے", - "add": "شامل کریں" + "add": "شامل کریں", + "owner": "مالک", + "admin": "ایڈمن" } \ No newline at end of file diff --git a/public/translations/vi/default.json b/public/translations/vi/default.json index c3786c83..8c7bb5b3 100644 --- a/public/translations/vi/default.json +++ b/public/translations/vi/default.json @@ -229,7 +229,7 @@ "enter_crypto_address": "Vui lòng nhập địa chỉ tiền điện tử hợp lệ.", "check_for_updates": "Kiểm tra cập nhật", "general_settings": "Cài đặt chung", - "refresh_to_update": "Làm mới để cập nhật.", + "refresh_to_update": "Làm mới trang để cập nhật", "latest_development_version": "Bạn đang sử dụng phiên bản phát triển mới nhất, commit {{commit}}. Để sử dụng phiên bản ổn định, hãy truy cập {{link}}.", "latest_stable_version": "Bạn đang sử dụng phiên bản ổn định mới nhất, seedit v{{version}}.", "new_development_version": "Phiên bản phát triển mới có sẵn, commit {{newCommit}}. Bạn đang sử dụng commit {{oldCommit}}.", @@ -250,5 +250,7 @@ "item": "mục", "delete_community": "xóa cộng đồng", "delete_community_description": "Xóa cộng đồng này một cách vĩnh viễn. Nội dung của nó vẫn có thể được trồng bởi các người đồng nghiệp", - "add": "thêm" + "add": "thêm", + "owner": "chủ sở hữu", + "admin": "quản trị viên" } \ No newline at end of file diff --git a/public/translations/zh/default.json b/public/translations/zh/default.json index 07ec704c..d5debd05 100644 --- a/public/translations/zh/default.json +++ b/public/translations/zh/default.json @@ -229,7 +229,7 @@ "enter_crypto_address": "请输入有效的加密货币地址。", "check_for_updates": "检查更新", "general_settings": "一般设置", - "refresh_to_update": "刷新以更新。", + "refresh_to_update": "刷新页面以更新", "latest_development_version": "您正在使用最新的开发版本,提交 {{commit}}。要使用稳定版本,请前往 {{link}}。", "latest_stable_version": "您正在使用最新的稳定版本,seedit v{{version}}。", "new_development_version": "新的开发版本可用,commit {{newCommit}}。您正在使用commit {{oldCommit}}。", @@ -250,5 +250,7 @@ "item": "项目", "delete_community": "删除社区", "delete_community_description": "永久删除此社区。 其内容可能仍然由对等节点播种", - "add": "添加" + "add": "添加", + "owner": "所有者", + "admin": "管理员" } \ No newline at end of file diff --git a/src/components/post/comment-tools/mod-menu/mod-menu.tsx b/src/components/post/comment-tools/mod-menu/mod-menu.tsx index c86b8555..0dfa84d9 100644 --- a/src/components/post/comment-tools/mod-menu/mod-menu.tsx +++ b/src/components/post/comment-tools/mod-menu/mod-menu.tsx @@ -1,4 +1,4 @@ -import { useEffect, useState } from 'react'; +import { useState } from 'react'; import { autoUpdate, flip, FloatingFocusManager, offset, shift, useClick, useDismiss, useFloating, useId, useInteractions, useRole } from '@floating-ui/react'; import { useTranslation } from 'react-i18next'; import { PublishCommentEditOptions, useComment, useEditedComment, usePublishCommentEdit } from '@plebbit/plebbit-react-hooks'; From 3b40538b84089714352613b53aa973a39096da6a Mon Sep 17 00:00:00 2001 From: "plebeius.eth" Date: Fri, 9 Feb 2024 12:49:30 +0100 Subject: [PATCH 3/8] perf(reply form): faster replying by passing cid and sub address without having to load the post; fix no sub address error --- src/components/reply-form/reply-form.tsx | 6 +++--- src/hooks/use-reply.ts | 6 ++---- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/src/components/reply-form/reply-form.tsx b/src/components/reply-form/reply-form.tsx index ef891489..7e930b19 100644 --- a/src/components/reply-form/reply-form.tsx +++ b/src/components/reply-form/reply-form.tsx @@ -1,6 +1,6 @@ import { useEffect, useRef, useState } from 'react'; import { useTranslation } from 'react-i18next'; -import { useComment } from '@plebbit/plebbit-react-hooks'; +import { useParams } from 'react-router-dom'; import styles from './reply-form.module.css'; import { isValidURL } from '../../lib/utils/url-utils'; import useReply from '../../hooks/use-reply'; @@ -16,8 +16,8 @@ const ReplyForm = ({ cid, isReplyingToReply, hideReplyForm }: ReplyFormProps) => const { t } = useTranslation(); const [showOptions, setShowOptions] = useState(false); const [showFormattingHelp, setShowFormattingHelp] = useState(false); - const reply = useComment({ commentCid: cid }); - const { setContent, resetContent, replyIndex, publishReply } = useReply(reply); + const subplebbitAddress = useParams().subplebbitAddress as string; + const { setContent, resetContent, replyIndex, publishReply } = useReply({ cid, subplebbitAddress }); const mdContainerClass = isReplyingToReply ? `${styles.mdContainer} ${styles.mdContainerReplying}` : styles.mdContainer; const urlClass = showOptions ? styles.urlVisible : styles.urlHidden; diff --git a/src/hooks/use-reply.ts b/src/hooks/use-reply.ts index 322ede73..ef752022 100644 --- a/src/hooks/use-reply.ts +++ b/src/hooks/use-reply.ts @@ -69,10 +69,8 @@ const useReplyStore = create((set) => ({ })), })); -const useReply = (comment: Comment) => { - const subplebbitAddress = comment?.subplebbitAddress; - const parentCid = comment?.cid; - +const useReply = ({ cid, subplebbitAddress }: { cid: string; subplebbitAddress: string }) => { + const parentCid = cid; const { content, link, spoiler, publishCommentOptions } = useReplyStore((state) => ({ content: state.content[parentCid], link: state.link[parentCid], From ea207f3b0f5f0c11d3c7c933b673ad097a03b9a5 Mon Sep 17 00:00:00 2001 From: "plebeius.eth" Date: Fri, 9 Feb 2024 14:29:39 +0100 Subject: [PATCH 4/8] Update subplebbit-settings.tsx --- .../subplebbit/subplebbit-settings/subplebbit-settings.tsx | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/views/subplebbit/subplebbit-settings/subplebbit-settings.tsx b/src/views/subplebbit/subplebbit-settings/subplebbit-settings.tsx index 565d68ff..1d8b358f 100644 --- a/src/views/subplebbit/subplebbit-settings/subplebbit-settings.tsx +++ b/src/views/subplebbit/subplebbit-settings/subplebbit-settings.tsx @@ -367,10 +367,6 @@ const ChallengeSettings = ({ challenge, index, isReadOnly, setSubplebbitSettings setShowExcludeSettings((prev) => [...prev, false]); }; - useEffect(() => { - setShowExcludeSettings(challenge.exclude?.map(() => false) || []); - }, [challenge.exclude]); - const deleteExcludeGroup = (excludeIndex: number) => { const updatedChallenges = [...settings.challenges]; const currentChallenge = updatedChallenges[index]; @@ -809,7 +805,7 @@ const SubplebbitSettings = () => { setShowSaving(true); await publishSubplebbitEdit(); setShowSaving(false); - alert(`saved`); + alert(`settings saved for p/${shortAddress}`); } catch (e) { if (e instanceof Error) { console.warn(e); From a8c3a15f25270ebf97e610c6ab55645e46207f6f Mon Sep 17 00:00:00 2001 From: "plebeius.eth" Date: Fri, 9 Feb 2024 14:44:57 +0100 Subject: [PATCH 5/8] chore(translations): settings saved, mod edit, continue thread --- 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 ++++- 35 files changed, 140 insertions(+), 35 deletions(-) diff --git a/public/translations/ar/default.json b/public/translations/ar/default.json index 359c06d6..02abdf9d 100644 --- a/public/translations/ar/default.json +++ b/public/translations/ar/default.json @@ -252,5 +252,8 @@ "delete_community_description": "احذف هذه المجتمع نهائيًا. قد تظل المحتويات موجودة ومشتتة بواسطة الأقران", "add": "إضافة", "owner": "المالك", - "admin": "مسؤول" + "admin": "مسؤول", + "settings_saved": "تم حفظ الإعدادات لـ p/{{subplebbitAddress}}", + "mod_edit": "تحرير المشرف", + "continue_thread": "تابع هذا الموضوع" } \ No newline at end of file diff --git a/public/translations/bn/default.json b/public/translations/bn/default.json index 0ab345bd..a29da582 100644 --- a/public/translations/bn/default.json +++ b/public/translations/bn/default.json @@ -252,5 +252,8 @@ "delete_community_description": "এই সম্প্রদায়টি চিরকুটিভাবে মুছে ফেলুন। এর বিষয়বস্তু এখনও সহপ্রের দ্বারা বীজ করা হতে পারে", "add": "যোগ করুন", "owner": "মালিক", - "admin": "অ্যাডমিন" + "admin": "অ্যাডমিন", + "settings_saved": "p/{{subplebbitAddress}} এর জন্য সেটিংস সংরক্ষিত হয়েছে", + "mod_edit": "মড সম্পাদনা", + "continue_thread": "এই থ্রেড চালিয়ে যান" } \ No newline at end of file diff --git a/public/translations/cs/default.json b/public/translations/cs/default.json index 3496f04d..0eb0a9e6 100644 --- a/public/translations/cs/default.json +++ b/public/translations/cs/default.json @@ -252,5 +252,8 @@ "delete_community_description": "Trvale smazat tuto komunitu. Jeho obsah by stále mohl být zasevován ostatními uzly", "add": "přidat", "owner": "vlastník", - "admin": "správce" + "admin": "správce", + "settings_saved": "Nastavení uloženo pro p/{{subplebbitAddress}}", + "mod_edit": "úprava moderátora", + "continue_thread": "pokračovat v tématu" } \ No newline at end of file diff --git a/public/translations/da/default.json b/public/translations/da/default.json index 6d36274c..1424f35b 100644 --- a/public/translations/da/default.json +++ b/public/translations/da/default.json @@ -252,5 +252,8 @@ "delete_community_description": "Slet denne fællesskab permanent. Dets indhold kan stadig være sået af ligemænd", "add": "tilføje", "owner": "ejeren", - "admin": "administrator" + "admin": "administrator", + "settings_saved": "Indstillinger gemt for p/{{subplebbitAddress}}", + "mod_edit": "moderatorredigering", + "continue_thread": "fortsæt denne tråd" } \ No newline at end of file diff --git a/public/translations/de/default.json b/public/translations/de/default.json index 33e71206..8eeb9f23 100644 --- a/public/translations/de/default.json +++ b/public/translations/de/default.json @@ -252,5 +252,8 @@ "delete_community_description": "Diese Gemeinschaft endgültig löschen. Ihr Inhalt kann immer noch von Peers geerntet werden", "add": "hinzufügen", "owner": "Besitzer", - "admin": "Administrator" + "admin": "Administrator", + "settings_saved": "Einstellungen für p/{{subplebbitAddress}} gespeichert", + "mod_edit": "Moderator bearbeiten", + "continue_thread": "diesen Thread fortsetzen" } \ No newline at end of file diff --git a/public/translations/el/default.json b/public/translations/el/default.json index e0a43c99..a12cfe77 100644 --- a/public/translations/el/default.json +++ b/public/translations/el/default.json @@ -252,5 +252,8 @@ "delete_community_description": "Διαγράψτε μόνιμα αυτήν την κοινότητα. Το περιεχόμενό του ενδέχεται ακόμη να είναι επισπευδόμενο από ομότιμους", "add": "προσθήκη", "owner": "κάτοχος", - "admin": "διαχειριστής" + "admin": "διαχειριστής", + "settings_saved": "Οι ρυθμίσεις αποθηκεύτηκαν για το p/{{subplebbitAddress}}", + "mod_edit": "επεξεργασία του διαχειριστή", + "continue_thread": "συνεχίστε αυτό το θέμα" } \ No newline at end of file diff --git a/public/translations/en/default.json b/public/translations/en/default.json index 96be9ae1..f4e838f5 100644 --- a/public/translations/en/default.json +++ b/public/translations/en/default.json @@ -252,5 +252,8 @@ "delete_community_description": "Permanently delete this community. its content might still be seeded by peers", "add": "add", "owner": "owner", - "admin": "admin" + "admin": "admin", + "settings_saved": "Settings saved for p/{{subplebbitAddress}}", + "mod_edit": "mod edit", + "continue_thread": "continue this thread" } \ No newline at end of file diff --git a/public/translations/es/default.json b/public/translations/es/default.json index 1196ecf2..70234620 100644 --- a/public/translations/es/default.json +++ b/public/translations/es/default.json @@ -252,5 +252,8 @@ "delete_community_description": "Eliminar permanentemente esta comunidad. Su contenido aún podría ser sembrado por pares", "add": "añadir", "owner": "propietario", - "admin": "administrador" + "admin": "administrador", + "settings_saved": "Ajustes guardados para p/{{subplebbitAddress}}", + "mod_edit": "edición de moderador", + "continue_thread": "continuar este hilo" } \ No newline at end of file diff --git a/public/translations/fa/default.json b/public/translations/fa/default.json index 7768794c..08afd000 100644 --- a/public/translations/fa/default.json +++ b/public/translations/fa/default.json @@ -252,5 +252,8 @@ "delete_community_description": "این جامعه را بطور دائمی حذف کنید. ممکن است محتوای آن هنوز توسط همتایان تکثیر شود", "add": "افزودن", "owner": "صاحب", - "admin": "مدیر" + "admin": "مدیر", + "settings_saved": "تنظیمات برای p/{{subplebbitAddress}} ذخیره شد", + "mod_edit": "ویرایش مدیر", + "continue_thread": "ادامه این موضوع" } \ No newline at end of file diff --git a/public/translations/fi/default.json b/public/translations/fi/default.json index 6e6cc706..15e5a6c1 100644 --- a/public/translations/fi/default.json +++ b/public/translations/fi/default.json @@ -252,5 +252,8 @@ "delete_community_description": "Poista tämä yhteisö pysyvästi. Sen sisältö voi silti olla siemenenä vertaisverkossa", "add": "lisää", "owner": "omistaja", - "admin": "ylläpitäjä" + "admin": "ylläpitäjä", + "settings_saved": "Asetukset tallennettu p/{{subplebbitAddress}} varten", + "mod_edit": "moderoinnin muokkaus", + "continue_thread": "jatka tätä säiettä" } \ No newline at end of file diff --git a/public/translations/fil/default.json b/public/translations/fil/default.json index 138c77c1..1efef315 100644 --- a/public/translations/fil/default.json +++ b/public/translations/fil/default.json @@ -252,5 +252,8 @@ "delete_community_description": "Permanenteng burahin ang komunidad na ito. Maaaring ang nilalaman nito ay patuloy na iniisip ng mga kapwa", "add": "magdagdag", "owner": "may-ari", - "admin": "admin" + "admin": "admin", + "settings_saved": "Naisilbi ang mga setting para sa p/{{subplebbitAddress}}", + "mod_edit": "pag-edit ng mod", + "continue_thread": "ituloy ang thread na ito" } \ No newline at end of file diff --git a/public/translations/fr/default.json b/public/translations/fr/default.json index 76a7f89b..36246367 100644 --- a/public/translations/fr/default.json +++ b/public/translations/fr/default.json @@ -252,5 +252,8 @@ "delete_community_description": "Supprimer définitivement cette communauté. Son contenu pourrait encore être semé par des pairs", "add": "ajouter", "owner": "propriétaire", - "admin": "administrateur" + "admin": "administrateur", + "settings_saved": "Paramètres enregistrés pour p/{{subplebbitAddress}}", + "mod_edit": "mod edit", + "continue_thread": "continuer ce fil de discussion" } \ No newline at end of file diff --git a/public/translations/he/default.json b/public/translations/he/default.json index 4ef79f0d..aed85837 100644 --- a/public/translations/he/default.json +++ b/public/translations/he/default.json @@ -252,5 +252,8 @@ "delete_community_description": "מחק את הקהילה הזו לצמיתות. התוכן שלו עדיין עשוי להיות מזורע על ידי עמיתים", "add": "הוסף", "owner": "בעלים", - "admin": "מנהל" + "admin": "מנהל", + "settings_saved": "הגדרות נשמרו עבור p/{{subplebbitAddress}}", + "mod_edit": "עריכת מנהל", + "continue_thread": "המשך את השרשור הזה" } \ No newline at end of file diff --git a/public/translations/hi/default.json b/public/translations/hi/default.json index e877da0c..6884d507 100644 --- a/public/translations/hi/default.json +++ b/public/translations/hi/default.json @@ -252,5 +252,8 @@ "delete_community_description": "इस समुदाय को स्थायी रूप से हटा दें। इसकी सामग्री अभी भी सहपीर्स द्वारा बीजित हो सकती है", "add": "जोड़ें", "owner": "मालिक", - "admin": "व्यवस्थापक" + "admin": "व्यवस्थापक", + "settings_saved": "प/{{subplebbitAddress}} के लिए सेटिंग्स सहेजी गईं", + "mod_edit": "मॉड संपादन", + "continue_thread": "इस धागे को जारी रखें" } \ No newline at end of file diff --git a/public/translations/hu/default.json b/public/translations/hu/default.json index b360e644..29a19b03 100644 --- a/public/translations/hu/default.json +++ b/public/translations/hu/default.json @@ -252,5 +252,8 @@ "delete_community_description": "Véglegesen törölje ezt a közösséget. A tartalma továbbra is terjedhet a peer-ek által", "add": "hozzáad", "owner": "tulajdonos", - "admin": "adminisztrátor" + "admin": "adminisztrátor", + "settings_saved": "Beállítások mentve p/{{subplebbitAddress}} esetén", + "mod_edit": "moderátor szerkesztése", + "continue_thread": "folytassa ezt a témát" } \ No newline at end of file diff --git a/public/translations/id/default.json b/public/translations/id/default.json index 74b7d503..ba6360a5 100644 --- a/public/translations/id/default.json +++ b/public/translations/id/default.json @@ -252,5 +252,8 @@ "delete_community_description": "Hapus komunitas ini secara permanen. Isinya masih mungkin disebarkan oleh rekan sebaya", "add": "tambahkan", "owner": "pemilik", - "admin": "admin" + "admin": "admin", + "settings_saved": "Pengaturan disimpan untuk p/{{subplebbitAddress}}", + "mod_edit": "edit mod", + "continue_thread": "lanjutkan utas ini" } \ No newline at end of file diff --git a/public/translations/it/default.json b/public/translations/it/default.json index e55be7cc..1853775b 100644 --- a/public/translations/it/default.json +++ b/public/translations/it/default.json @@ -252,5 +252,8 @@ "delete_community_description": "Elimina definitivamente questa comunità. Il suo contenuto potrebbe ancora essere diffuso dai peer", "add": "aggiungi", "owner": "proprietario", - "admin": "amministratore" + "admin": "amministratore", + "settings_saved": "Impostazioni salvate per p/{{subplebbitAddress}}", + "mod_edit": "modifica dei moderatori", + "continue_thread": "continua questa discussione" } \ No newline at end of file diff --git a/public/translations/ja/default.json b/public/translations/ja/default.json index 68a996b2..2c48a61e 100644 --- a/public/translations/ja/default.json +++ b/public/translations/ja/default.json @@ -252,5 +252,8 @@ "delete_community_description": "このコミュニティを永久に削除します。そのコンテンツは依然としてピアによってシードされている可能性があります", "add": "追加", "owner": "オーナー", - "admin": "管理者" + "admin": "管理者", + "settings_saved": "p/{{subplebbitAddress}} の設定が保存されました", + "mod_edit": "モデレーター編集", + "continue_thread": "このスレッドを続ける" } \ No newline at end of file diff --git a/public/translations/ko/default.json b/public/translations/ko/default.json index 9276d772..a1f8c82a 100644 --- a/public/translations/ko/default.json +++ b/public/translations/ko/default.json @@ -252,5 +252,8 @@ "delete_community_description": "이 커뮤니티를 영구적으로 삭제하십시오. 해당 콘텐츠는 여전히 동료에 의해 씨앗이 될 수 있습니다", "add": "추가", "owner": "소유자", - "admin": "관리자" + "admin": "관리자", + "settings_saved": "p/{{subplebbitAddress}}의 설정이 저장되었습니다", + "mod_edit": "모드 편집", + "continue_thread": "이 스레드 계속하기" } \ No newline at end of file diff --git a/public/translations/mr/default.json b/public/translations/mr/default.json index 44657633..3764a23d 100644 --- a/public/translations/mr/default.json +++ b/public/translations/mr/default.json @@ -252,5 +252,8 @@ "delete_community_description": "हे समुदाय कायमपणे हटवा. त्याची सामग्री हल्लामध्ये असू शकते", "add": "जोडा", "owner": "मालक", - "admin": "व्यवस्थापक" + "admin": "व्यवस्थापक", + "settings_saved": "p/{{subplebbitAddress}} साठी सेटिंग्ज सेव्ह केल्या", + "mod_edit": "मॉड संपादन", + "continue_thread": "हा थ्रेड सुरू ठेवा" } \ No newline at end of file diff --git a/public/translations/nl/default.json b/public/translations/nl/default.json index 9faca54d..2a27b8dc 100644 --- a/public/translations/nl/default.json +++ b/public/translations/nl/default.json @@ -252,5 +252,8 @@ "delete_community_description": "Verwijder deze community permanent. De inhoud kan nog steeds door peers worden gezaaid", "add": "toevoegen", "owner": "eigenaar", - "admin": "beheerder" + "admin": "beheerder", + "settings_saved": "Instellingen opgeslagen voor p/{{subplebbitAddress}}", + "mod_edit": "mod-bewerking", + "continue_thread": "ga verder in deze thread" } \ No newline at end of file diff --git a/public/translations/no/default.json b/public/translations/no/default.json index a6d88f4b..ecfbd067 100644 --- a/public/translations/no/default.json +++ b/public/translations/no/default.json @@ -252,5 +252,8 @@ "delete_community_description": "Slett denne fellesskapet permanent. Dets innhold kan fortsatt sås av jevnaldrende", "add": "legg til", "owner": "eier", - "admin": "administrator" + "admin": "administrator", + "settings_saved": "Innstillinger lagret for p/{{subplebbitAddress}}", + "mod_edit": "moderatorendring", + "continue_thread": "fortsett denne tråden" } \ No newline at end of file diff --git a/public/translations/pl/default.json b/public/translations/pl/default.json index a9f7bf04..55f24660 100644 --- a/public/translations/pl/default.json +++ b/public/translations/pl/default.json @@ -252,5 +252,8 @@ "delete_community_description": "Trwale usuń tę społeczność. Jej zawartość nadal może być zasiewana przez rówieśników", "add": "dodać", "owner": "właściciel", - "admin": "administrator" + "admin": "administrator", + "settings_saved": "Ustawienia zapisane dla p/{{subplebbitAddress}}", + "mod_edit": "edycja mod", + "continue_thread": "kontynuuj ten wątek" } \ No newline at end of file diff --git a/public/translations/pt/default.json b/public/translations/pt/default.json index fc4edca4..828146d9 100644 --- a/public/translations/pt/default.json +++ b/public/translations/pt/default.json @@ -252,5 +252,8 @@ "delete_community_description": "Excluir permanentemente esta comunidade. Seu conteúdo ainda pode ser semeado por pares", "add": "adicionar", "owner": "dono", - "admin": "administrador" + "admin": "administrador", + "settings_saved": "Configurações salvas para p/{{subplebbitAddress}}", + "mod_edit": "edição de mod", + "continue_thread": "continue este tópico" } \ No newline at end of file diff --git a/public/translations/ro/default.json b/public/translations/ro/default.json index cc58eb39..e06bee83 100644 --- a/public/translations/ro/default.json +++ b/public/translations/ro/default.json @@ -252,5 +252,8 @@ "delete_community_description": "Ștergeți permanent această comunitate. Conținutul său ar putea fi încă semănat de pereți", "add": "adăuga", "owner": "proprietar", - "admin": "administrator" + "admin": "administrator", + "settings_saved": "Setările au fost salvate pentru p/{{subplebbitAddress}}", + "mod_edit": "editare mod", + "continue_thread": "continuați acest fir de discuție" } \ No newline at end of file diff --git a/public/translations/ru/default.json b/public/translations/ru/default.json index 050efa4e..5f395191 100644 --- a/public/translations/ru/default.json +++ b/public/translations/ru/default.json @@ -252,5 +252,8 @@ "delete_community_description": "Постоянно удалить это сообщество. Его содержимое все еще может быть засеяно сверстниками", "add": "добавить", "owner": "владелец", - "admin": "администратор" + "admin": "администратор", + "settings_saved": "Настройки сохранены для p/{{subplebbitAddress}}", + "mod_edit": "редактирование модератора", + "continue_thread": "продолжить эту тему" } \ No newline at end of file diff --git a/public/translations/sq/default.json b/public/translations/sq/default.json index a4604916..5f78369d 100644 --- a/public/translations/sq/default.json +++ b/public/translations/sq/default.json @@ -252,5 +252,8 @@ "delete_community_description": "Fshini këtë komunitet përherë. Përmbajtja e tij ende mund të jetë mbjellë nga bashkëmoshatarët", "add": "shto", "owner": "pronar", - "admin": "administrator" + "admin": "administrator", + "settings_saved": "Cilësimet u ruajtën për p/{{subplebbitAddress}}", + "mod_edit": "mod edit", + "continue_thread": "vazhdoni këtë temë" } \ No newline at end of file diff --git a/public/translations/sv/default.json b/public/translations/sv/default.json index aebd02bf..19bf1dbf 100644 --- a/public/translations/sv/default.json +++ b/public/translations/sv/default.json @@ -252,5 +252,8 @@ "delete_community_description": "Radera permanent den här gemenskapen. Dess innehåll kan fortfarande vara fröat av kamrater", "add": "lägg till", "owner": "ägare", - "admin": "administratör" + "admin": "administratör", + "settings_saved": "Inställningar sparade för p/{{subplebbitAddress}}", + "mod_edit": "moderatoredigering", + "continue_thread": "fortsätt den här tråden" } \ No newline at end of file diff --git a/public/translations/te/default.json b/public/translations/te/default.json index ab28ea07..f9780f22 100644 --- a/public/translations/te/default.json +++ b/public/translations/te/default.json @@ -252,5 +252,8 @@ "delete_community_description": "ఈ సముదాయాన్ని స్థాయిగా తొలగించండి. అది సామాన్య పీర్ల ద్వారా ఇప్పుడు సీడ్ చేయబడవచ్చు", "add": "జోడించండి", "owner": "యజమాని", - "admin": "అంచనా" + "admin": "అంచనా", + "settings_saved": "p/{{subplebbitAddress}} కోసం సెట్టింగులు సేవ్ చేయబడ్డాయి", + "mod_edit": "మోడ్ సవరించినప్పుడు", + "continue_thread": "ఈ థ్రెడ్‌ను కొనసాగండి" } \ No newline at end of file diff --git a/public/translations/th/default.json b/public/translations/th/default.json index 461097ec..e035bd08 100644 --- a/public/translations/th/default.json +++ b/public/translations/th/default.json @@ -252,5 +252,8 @@ "delete_community_description": "ลบชุมชนนี้อย่างถาวร การเผยแพร่ของเนื้อหาอาจยังถูกซีดโดยพีร์", "add": "เพิ่ม", "owner": "เจ้าของ", - "admin": "ผู้ดูแลระบบ" + "admin": "ผู้ดูแลระบบ", + "settings_saved": "บันทึกการตั้งค่าสำหรับ p/{{subplebbitAddress}}", + "mod_edit": "mod edit", + "continue_thread": "ดำเนินการเรื่องนี้ต่อ" } \ No newline at end of file diff --git a/public/translations/tr/default.json b/public/translations/tr/default.json index 4a2c421c..fc85bf94 100644 --- a/public/translations/tr/default.json +++ b/public/translations/tr/default.json @@ -252,5 +252,8 @@ "delete_community_description": "Bu topluluğu kalıcı olarak sil. İçeriği hala eşler tarafından ekmeklenebilir", "add": "ekle", "owner": "sahip", - "admin": "yönetici" + "admin": "yönetici", + "settings_saved": "Ayarlar p/{{subplebbitAddress}} için kaydedildi", + "mod_edit": "mod düzenle", + "continue_thread": "bu konuyu devam ettir" } \ No newline at end of file diff --git a/public/translations/uk/default.json b/public/translations/uk/default.json index 9f82a4d7..8c231551 100644 --- a/public/translations/uk/default.json +++ b/public/translations/uk/default.json @@ -252,5 +252,8 @@ "delete_community_description": "Видалити цю спільноту назавжди. Його вміст все ще може бути засіяно ровесниками", "add": "додати", "owner": "власник", - "admin": "адміністратор" + "admin": "адміністратор", + "settings_saved": "Налаштування збережено для p/{{subplebbitAddress}}", + "mod_edit": "редагування модератора", + "continue_thread": "продовжити цю тему" } \ No newline at end of file diff --git a/public/translations/ur/default.json b/public/translations/ur/default.json index 1b0f7188..34475e57 100644 --- a/public/translations/ur/default.json +++ b/public/translations/ur/default.json @@ -252,5 +252,8 @@ "delete_community_description": "اس کمیونٹی کو مستقل طور پر حذف کریں۔ اس کا مواد ابھی بھی سمندر کے ذریعہ کیا جا سکتا ہے", "add": "شامل کریں", "owner": "مالک", - "admin": "ایڈمن" + "admin": "ایڈمن", + "settings_saved": "p/{{subplebbitAddress}} کے لئے ترتیبات محفوظ ہوگئیں", + "mod_edit": "موڈ سنواریں", + "continue_thread": "اس ٹھریڈ کو جاری رکھیں" } \ No newline at end of file diff --git a/public/translations/vi/default.json b/public/translations/vi/default.json index 8c7bb5b3..33095e7a 100644 --- a/public/translations/vi/default.json +++ b/public/translations/vi/default.json @@ -252,5 +252,8 @@ "delete_community_description": "Xóa cộng đồng này một cách vĩnh viễn. Nội dung của nó vẫn có thể được trồng bởi các người đồng nghiệp", "add": "thêm", "owner": "chủ sở hữu", - "admin": "quản trị viên" + "admin": "quản trị viên", + "settings_saved": "Cài đặt đã được lưu cho p/{{subplebbitAddress}}", + "mod_edit": "chỉnh sửa mod", + "continue_thread": "tiếp tục chủ đề này" } \ No newline at end of file diff --git a/public/translations/zh/default.json b/public/translations/zh/default.json index d5debd05..7c710617 100644 --- a/public/translations/zh/default.json +++ b/public/translations/zh/default.json @@ -252,5 +252,8 @@ "delete_community_description": "永久删除此社区。 其内容可能仍然由对等节点播种", "add": "添加", "owner": "所有者", - "admin": "管理员" + "admin": "管理员", + "settings_saved": "已保存 p/{{subplebbitAddress}} 的设置", + "mod_edit": "mod 编辑", + "continue_thread": "继续这个主题" } \ No newline at end of file From dd6744ab7003792c1c66daf60b43731f068d1562 Mon Sep 17 00:00:00 2001 From: "plebeius.eth" Date: Fri, 9 Feb 2024 14:45:30 +0100 Subject: [PATCH 6/8] feat: add mod edit reason to posts and replies --- src/components/post/expando/expando.module.css | 4 ++++ src/components/post/expando/expando.tsx | 12 +++++++++++- src/components/post/post.tsx | 8 ++++++-- src/components/reply/reply.module.css | 4 ++++ src/components/reply/reply.tsx | 9 ++++++++- .../subplebbit-settings/subplebbit-settings.tsx | 2 +- 6 files changed, 34 insertions(+), 5 deletions(-) diff --git a/src/components/post/expando/expando.module.css b/src/components/post/expando/expando.module.css index 48a06fea..c2d8c399 100644 --- a/src/components/post/expando/expando.module.css +++ b/src/components/post/expando/expando.module.css @@ -66,4 +66,8 @@ height: 100%; border: none; background-color: var(--background-thumbnail); +} + +.modEdit { + color: var(--yellow); } \ No newline at end of file diff --git a/src/components/post/expando/expando.tsx b/src/components/post/expando/expando.tsx index 6bf926a0..74fc4420 100644 --- a/src/components/post/expando/expando.tsx +++ b/src/components/post/expando/expando.tsx @@ -3,17 +3,21 @@ import styles from './expando.module.css'; import Embed from '../embed'; import { CommentMediaInfo } from '../../../lib/utils/media-utils'; import Markdown from '../../markdown'; +import { useTranslation } from 'react-i18next'; interface ExpandoProps { commentMediaInfo?: CommentMediaInfo; content?: string; expanded: boolean; link: string; + reason?: string; showContent: boolean; toggleExpanded?: () => void; } -const Expando = ({ commentMediaInfo, content, expanded, link, showContent, toggleExpanded }: ExpandoProps) => { +const Expando = ({ commentMediaInfo, content, expanded, link, reason, showContent, toggleExpanded }: ExpandoProps) => { + const { t } = useTranslation(); + let mediaComponent = null; let noExpandButton = false; @@ -52,6 +56,12 @@ const Expando = ({ commentMediaInfo, content, expanded, link, showContent, toggl
    + {reason && ( +
    +
    + {t('mod_edit')}: {reason} +
    + )}
    )} diff --git a/src/components/post/post.tsx b/src/components/post/post.tsx index a24fb472..84e8f96a 100644 --- a/src/components/post/post.tsx +++ b/src/components/post/post.tsx @@ -83,7 +83,6 @@ const Post = ({ index, post = {} }: PostProps) => { const { author, cid, - content, deleted, downvoteCount, flair, @@ -91,6 +90,7 @@ const Post = ({ index, post = {} }: PostProps) => { linkHeight, linkWidth, pinned, + reason, removed, replyCount, spoiler, @@ -100,6 +100,10 @@ const Post = ({ index, post = {} }: PostProps) => { title, upvoteCount, } = post || {}; + let content = post?.content; + if (removed) { + content = '[removed]'; + } const { displayName, shortAddress } = author || {}; const { shortAuthorAddress, authorAddressChanged } = useAuthorAddress({ comment: post }); const { imageUrl } = useAuthorAvatar({ author }); @@ -253,7 +257,7 @@ const Post = ({ index, post = {} }: PostProps) => { - + ); diff --git a/src/components/reply/reply.module.css b/src/components/reply/reply.module.css index 9182eb70..d490a481 100644 --- a/src/components/reply/reply.module.css +++ b/src/components/reply/reply.module.css @@ -128,6 +128,10 @@ color: var(--markdown-link) !important; } +.modEdit { + color: var(--yellow); +} + .highlightContent { background-color: var(--yellow-highlight); padding: 2px 5px; diff --git a/src/components/reply/reply.tsx b/src/components/reply/reply.tsx index d21761c6..5bb9ab1c 100644 --- a/src/components/reply/reply.tsx +++ b/src/components/reply/reply.tsx @@ -218,6 +218,7 @@ const Reply = ({ cidOfReplyWithContext, depth = 0, isSingleComment, isSingleRepl pinned, parentCid, postCid, + reason, removed, spoiler, state, @@ -349,6 +350,12 @@ const Reply = ({ cidOfReplyWithContext, depth = 0, isSingleComment, isSingleRepl )}
    + {reason && ( +
    +
    + {t('mod_edit')}: {reason} +
    + )}
    )} @@ -384,7 +391,7 @@ const Reply = ({ cidOfReplyWithContext, depth = 0, isSingleComment, isSingleRepl /> ) : (
    - continue this thread + {t('continue_thread')}
    )} diff --git a/src/views/subplebbit/subplebbit-settings/subplebbit-settings.tsx b/src/views/subplebbit/subplebbit-settings/subplebbit-settings.tsx index 1d8b358f..bd53931a 100644 --- a/src/views/subplebbit/subplebbit-settings/subplebbit-settings.tsx +++ b/src/views/subplebbit/subplebbit-settings/subplebbit-settings.tsx @@ -805,7 +805,7 @@ const SubplebbitSettings = () => { setShowSaving(true); await publishSubplebbitEdit(); setShowSaving(false); - alert(`settings saved for p/${shortAddress}`); + alert(t('settings_saved', { subplebbitAddress: shortAddress })); } catch (e) { if (e instanceof Error) { console.warn(e); From 72d0947b000e4dfab546cc811fd1b9a4d3963f85 Mon Sep 17 00:00:00 2001 From: "plebeius.eth" Date: Fri, 9 Feb 2024 15:20:26 +0100 Subject: [PATCH 7/8] chore(translations): mod reason --- public/translations/ar/default.json | 3 ++- public/translations/bn/default.json | 3 ++- public/translations/cs/default.json | 3 ++- public/translations/da/default.json | 3 ++- public/translations/de/default.json | 3 ++- public/translations/el/default.json | 3 ++- public/translations/en/default.json | 3 ++- public/translations/es/default.json | 3 ++- public/translations/fa/default.json | 3 ++- public/translations/fi/default.json | 3 ++- public/translations/fil/default.json | 3 ++- public/translations/fr/default.json | 3 ++- public/translations/he/default.json | 3 ++- public/translations/hi/default.json | 3 ++- public/translations/hu/default.json | 3 ++- public/translations/id/default.json | 3 ++- public/translations/it/default.json | 3 ++- public/translations/ja/default.json | 3 ++- public/translations/ko/default.json | 3 ++- public/translations/mr/default.json | 3 ++- public/translations/nl/default.json | 3 ++- public/translations/no/default.json | 3 ++- public/translations/pl/default.json | 3 ++- public/translations/pt/default.json | 3 ++- public/translations/ro/default.json | 3 ++- public/translations/ru/default.json | 3 ++- public/translations/sq/default.json | 3 ++- public/translations/sv/default.json | 3 ++- public/translations/te/default.json | 3 ++- public/translations/th/default.json | 3 ++- public/translations/tr/default.json | 3 ++- public/translations/uk/default.json | 3 ++- public/translations/ur/default.json | 3 ++- public/translations/vi/default.json | 3 ++- public/translations/zh/default.json | 3 ++- src/components/post/expando/expando.tsx | 2 +- src/components/reply/reply.tsx | 2 +- 37 files changed, 72 insertions(+), 37 deletions(-) diff --git a/public/translations/ar/default.json b/public/translations/ar/default.json index 02abdf9d..528f65bf 100644 --- a/public/translations/ar/default.json +++ b/public/translations/ar/default.json @@ -255,5 +255,6 @@ "admin": "مسؤول", "settings_saved": "تم حفظ الإعدادات لـ p/{{subplebbitAddress}}", "mod_edit": "تحرير المشرف", - "continue_thread": "تابع هذا الموضوع" + "continue_thread": "تابع هذا الموضوع", + "mod_reason": "سبب المشرف" } \ No newline at end of file diff --git a/public/translations/bn/default.json b/public/translations/bn/default.json index a29da582..f5b3cb6b 100644 --- a/public/translations/bn/default.json +++ b/public/translations/bn/default.json @@ -255,5 +255,6 @@ "admin": "অ্যাডমিন", "settings_saved": "p/{{subplebbitAddress}} এর জন্য সেটিংস সংরক্ষিত হয়েছে", "mod_edit": "মড সম্পাদনা", - "continue_thread": "এই থ্রেড চালিয়ে যান" + "continue_thread": "এই থ্রেড চালিয়ে যান", + "mod_reason": "মড কারণ" } \ No newline at end of file diff --git a/public/translations/cs/default.json b/public/translations/cs/default.json index 0eb0a9e6..e33c527b 100644 --- a/public/translations/cs/default.json +++ b/public/translations/cs/default.json @@ -255,5 +255,6 @@ "admin": "správce", "settings_saved": "Nastavení uloženo pro p/{{subplebbitAddress}}", "mod_edit": "úprava moderátora", - "continue_thread": "pokračovat v tématu" + "continue_thread": "pokračovat v tématu", + "mod_reason": "důvod mod" } \ No newline at end of file diff --git a/public/translations/da/default.json b/public/translations/da/default.json index 1424f35b..c45524b8 100644 --- a/public/translations/da/default.json +++ b/public/translations/da/default.json @@ -255,5 +255,6 @@ "admin": "administrator", "settings_saved": "Indstillinger gemt for p/{{subplebbitAddress}}", "mod_edit": "moderatorredigering", - "continue_thread": "fortsæt denne tråd" + "continue_thread": "fortsæt denne tråd", + "mod_reason": "mod begrundelse" } \ No newline at end of file diff --git a/public/translations/de/default.json b/public/translations/de/default.json index 8eeb9f23..d2ea0b5f 100644 --- a/public/translations/de/default.json +++ b/public/translations/de/default.json @@ -255,5 +255,6 @@ "admin": "Administrator", "settings_saved": "Einstellungen für p/{{subplebbitAddress}} gespeichert", "mod_edit": "Moderator bearbeiten", - "continue_thread": "diesen Thread fortsetzen" + "continue_thread": "diesen Thread fortsetzen", + "mod_reason": "Mod-Begründung" } \ No newline at end of file diff --git a/public/translations/el/default.json b/public/translations/el/default.json index a12cfe77..97072c26 100644 --- a/public/translations/el/default.json +++ b/public/translations/el/default.json @@ -255,5 +255,6 @@ "admin": "διαχειριστής", "settings_saved": "Οι ρυθμίσεις αποθηκεύτηκαν για το p/{{subplebbitAddress}}", "mod_edit": "επεξεργασία του διαχειριστή", - "continue_thread": "συνεχίστε αυτό το θέμα" + "continue_thread": "συνεχίστε αυτό το θέμα", + "mod_reason": "λόγος mod" } \ No newline at end of file diff --git a/public/translations/en/default.json b/public/translations/en/default.json index f4e838f5..71047194 100644 --- a/public/translations/en/default.json +++ b/public/translations/en/default.json @@ -255,5 +255,6 @@ "admin": "admin", "settings_saved": "Settings saved for p/{{subplebbitAddress}}", "mod_edit": "mod edit", - "continue_thread": "continue this thread" + "continue_thread": "continue this thread", + "mod_reason": "mod reason" } \ No newline at end of file diff --git a/public/translations/es/default.json b/public/translations/es/default.json index 70234620..209ee1a9 100644 --- a/public/translations/es/default.json +++ b/public/translations/es/default.json @@ -255,5 +255,6 @@ "admin": "administrador", "settings_saved": "Ajustes guardados para p/{{subplebbitAddress}}", "mod_edit": "edición de moderador", - "continue_thread": "continuar este hilo" + "continue_thread": "continuar este hilo", + "mod_reason": "razón del mod" } \ No newline at end of file diff --git a/public/translations/fa/default.json b/public/translations/fa/default.json index 08afd000..f94952b7 100644 --- a/public/translations/fa/default.json +++ b/public/translations/fa/default.json @@ -255,5 +255,6 @@ "admin": "مدیر", "settings_saved": "تنظیمات برای p/{{subplebbitAddress}} ذخیره شد", "mod_edit": "ویرایش مدیر", - "continue_thread": "ادامه این موضوع" + "continue_thread": "ادامه این موضوع", + "mod_reason": "دلیل مدیر" } \ No newline at end of file diff --git a/public/translations/fi/default.json b/public/translations/fi/default.json index 15e5a6c1..3f3d0f59 100644 --- a/public/translations/fi/default.json +++ b/public/translations/fi/default.json @@ -255,5 +255,6 @@ "admin": "ylläpitäjä", "settings_saved": "Asetukset tallennettu p/{{subplebbitAddress}} varten", "mod_edit": "moderoinnin muokkaus", - "continue_thread": "jatka tätä säiettä" + "continue_thread": "jatka tätä säiettä", + "mod_reason": "mod-syy" } \ No newline at end of file diff --git a/public/translations/fil/default.json b/public/translations/fil/default.json index 1efef315..f796d0aa 100644 --- a/public/translations/fil/default.json +++ b/public/translations/fil/default.json @@ -255,5 +255,6 @@ "admin": "admin", "settings_saved": "Naisilbi ang mga setting para sa p/{{subplebbitAddress}}", "mod_edit": "pag-edit ng mod", - "continue_thread": "ituloy ang thread na ito" + "continue_thread": "ituloy ang thread na ito", + "mod_reason": "dahilan ng mod" } \ No newline at end of file diff --git a/public/translations/fr/default.json b/public/translations/fr/default.json index 36246367..c69a0c6a 100644 --- a/public/translations/fr/default.json +++ b/public/translations/fr/default.json @@ -255,5 +255,6 @@ "admin": "administrateur", "settings_saved": "Paramètres enregistrés pour p/{{subplebbitAddress}}", "mod_edit": "mod edit", - "continue_thread": "continuer ce fil de discussion" + "continue_thread": "continuer ce fil de discussion", + "mod_reason": "raison du modérateur" } \ No newline at end of file diff --git a/public/translations/he/default.json b/public/translations/he/default.json index aed85837..9a059dc2 100644 --- a/public/translations/he/default.json +++ b/public/translations/he/default.json @@ -255,5 +255,6 @@ "admin": "מנהל", "settings_saved": "הגדרות נשמרו עבור p/{{subplebbitAddress}}", "mod_edit": "עריכת מנהל", - "continue_thread": "המשך את השרשור הזה" + "continue_thread": "המשך את השרשור הזה", + "mod_reason": "סיבת המנהל" } \ No newline at end of file diff --git a/public/translations/hi/default.json b/public/translations/hi/default.json index 6884d507..16491810 100644 --- a/public/translations/hi/default.json +++ b/public/translations/hi/default.json @@ -255,5 +255,6 @@ "admin": "व्यवस्थापक", "settings_saved": "प/{{subplebbitAddress}} के लिए सेटिंग्स सहेजी गईं", "mod_edit": "मॉड संपादन", - "continue_thread": "इस धागे को जारी रखें" + "continue_thread": "इस धागे को जारी रखें", + "mod_reason": "मॉड कारण" } \ No newline at end of file diff --git a/public/translations/hu/default.json b/public/translations/hu/default.json index 29a19b03..ffcb7180 100644 --- a/public/translations/hu/default.json +++ b/public/translations/hu/default.json @@ -255,5 +255,6 @@ "admin": "adminisztrátor", "settings_saved": "Beállítások mentve p/{{subplebbitAddress}} esetén", "mod_edit": "moderátor szerkesztése", - "continue_thread": "folytassa ezt a témát" + "continue_thread": "folytassa ezt a témát", + "mod_reason": "mod indok" } \ No newline at end of file diff --git a/public/translations/id/default.json b/public/translations/id/default.json index ba6360a5..a7c6e5c1 100644 --- a/public/translations/id/default.json +++ b/public/translations/id/default.json @@ -255,5 +255,6 @@ "admin": "admin", "settings_saved": "Pengaturan disimpan untuk p/{{subplebbitAddress}}", "mod_edit": "edit mod", - "continue_thread": "lanjutkan utas ini" + "continue_thread": "lanjutkan utas ini", + "mod_reason": "alasan mod" } \ No newline at end of file diff --git a/public/translations/it/default.json b/public/translations/it/default.json index 1853775b..f41d947b 100644 --- a/public/translations/it/default.json +++ b/public/translations/it/default.json @@ -255,5 +255,6 @@ "admin": "amministratore", "settings_saved": "Impostazioni salvate per p/{{subplebbitAddress}}", "mod_edit": "modifica dei moderatori", - "continue_thread": "continua questa discussione" + "continue_thread": "continua questa discussione", + "mod_reason": "motivo di moderazione" } \ No newline at end of file diff --git a/public/translations/ja/default.json b/public/translations/ja/default.json index 2c48a61e..c451ae63 100644 --- a/public/translations/ja/default.json +++ b/public/translations/ja/default.json @@ -255,5 +255,6 @@ "admin": "管理者", "settings_saved": "p/{{subplebbitAddress}} の設定が保存されました", "mod_edit": "モデレーター編集", - "continue_thread": "このスレッドを続ける" + "continue_thread": "このスレッドを続ける", + "mod_reason": "mod理由" } \ No newline at end of file diff --git a/public/translations/ko/default.json b/public/translations/ko/default.json index a1f8c82a..418f69b3 100644 --- a/public/translations/ko/default.json +++ b/public/translations/ko/default.json @@ -255,5 +255,6 @@ "admin": "관리자", "settings_saved": "p/{{subplebbitAddress}}의 설정이 저장되었습니다", "mod_edit": "모드 편집", - "continue_thread": "이 스레드 계속하기" + "continue_thread": "이 스레드 계속하기", + "mod_reason": "모드 이유" } \ No newline at end of file diff --git a/public/translations/mr/default.json b/public/translations/mr/default.json index 3764a23d..dcbd1fcf 100644 --- a/public/translations/mr/default.json +++ b/public/translations/mr/default.json @@ -255,5 +255,6 @@ "admin": "व्यवस्थापक", "settings_saved": "p/{{subplebbitAddress}} साठी सेटिंग्ज सेव्ह केल्या", "mod_edit": "मॉड संपादन", - "continue_thread": "हा थ्रेड सुरू ठेवा" + "continue_thread": "हा थ्रेड सुरू ठेवा", + "mod_reason": "मॉड कारण" } \ No newline at end of file diff --git a/public/translations/nl/default.json b/public/translations/nl/default.json index 2a27b8dc..beaa9541 100644 --- a/public/translations/nl/default.json +++ b/public/translations/nl/default.json @@ -255,5 +255,6 @@ "admin": "beheerder", "settings_saved": "Instellingen opgeslagen voor p/{{subplebbitAddress}}", "mod_edit": "mod-bewerking", - "continue_thread": "ga verder in deze thread" + "continue_thread": "ga verder in deze thread", + "mod_reason": "mod reden" } \ No newline at end of file diff --git a/public/translations/no/default.json b/public/translations/no/default.json index ecfbd067..9deec8be 100644 --- a/public/translations/no/default.json +++ b/public/translations/no/default.json @@ -255,5 +255,6 @@ "admin": "administrator", "settings_saved": "Innstillinger lagret for p/{{subplebbitAddress}}", "mod_edit": "moderatorendring", - "continue_thread": "fortsett denne tråden" + "continue_thread": "fortsett denne tråden", + "mod_reason": "mod grunn" } \ No newline at end of file diff --git a/public/translations/pl/default.json b/public/translations/pl/default.json index 55f24660..820e2110 100644 --- a/public/translations/pl/default.json +++ b/public/translations/pl/default.json @@ -255,5 +255,6 @@ "admin": "administrator", "settings_saved": "Ustawienia zapisane dla p/{{subplebbitAddress}}", "mod_edit": "edycja mod", - "continue_thread": "kontynuuj ten wątek" + "continue_thread": "kontynuuj ten wątek", + "mod_reason": "powód mod" } \ No newline at end of file diff --git a/public/translations/pt/default.json b/public/translations/pt/default.json index 828146d9..3f49a02a 100644 --- a/public/translations/pt/default.json +++ b/public/translations/pt/default.json @@ -255,5 +255,6 @@ "admin": "administrador", "settings_saved": "Configurações salvas para p/{{subplebbitAddress}}", "mod_edit": "edição de mod", - "continue_thread": "continue este tópico" + "continue_thread": "continue este tópico", + "mod_reason": "razão do mod" } \ No newline at end of file diff --git a/public/translations/ro/default.json b/public/translations/ro/default.json index e06bee83..88586033 100644 --- a/public/translations/ro/default.json +++ b/public/translations/ro/default.json @@ -255,5 +255,6 @@ "admin": "administrator", "settings_saved": "Setările au fost salvate pentru p/{{subplebbitAddress}}", "mod_edit": "editare mod", - "continue_thread": "continuați acest fir de discuție" + "continue_thread": "continuați acest fir de discuție", + "mod_reason": "motivul mod" } \ No newline at end of file diff --git a/public/translations/ru/default.json b/public/translations/ru/default.json index 5f395191..d23ac20f 100644 --- a/public/translations/ru/default.json +++ b/public/translations/ru/default.json @@ -255,5 +255,6 @@ "admin": "администратор", "settings_saved": "Настройки сохранены для p/{{subplebbitAddress}}", "mod_edit": "редактирование модератора", - "continue_thread": "продолжить эту тему" + "continue_thread": "продолжить эту тему", + "mod_reason": "причина мода" } \ No newline at end of file diff --git a/public/translations/sq/default.json b/public/translations/sq/default.json index 5f78369d..e339c186 100644 --- a/public/translations/sq/default.json +++ b/public/translations/sq/default.json @@ -255,5 +255,6 @@ "admin": "administrator", "settings_saved": "Cilësimet u ruajtën për p/{{subplebbitAddress}}", "mod_edit": "mod edit", - "continue_thread": "vazhdoni këtë temë" + "continue_thread": "vazhdoni këtë temë", + "mod_reason": "arsyeja mod" } \ No newline at end of file diff --git a/public/translations/sv/default.json b/public/translations/sv/default.json index 19bf1dbf..d774774f 100644 --- a/public/translations/sv/default.json +++ b/public/translations/sv/default.json @@ -255,5 +255,6 @@ "admin": "administratör", "settings_saved": "Inställningar sparade för p/{{subplebbitAddress}}", "mod_edit": "moderatoredigering", - "continue_thread": "fortsätt den här tråden" + "continue_thread": "fortsätt den här tråden", + "mod_reason": "mod anledning" } \ No newline at end of file diff --git a/public/translations/te/default.json b/public/translations/te/default.json index f9780f22..9645bb1f 100644 --- a/public/translations/te/default.json +++ b/public/translations/te/default.json @@ -255,5 +255,6 @@ "admin": "అంచనా", "settings_saved": "p/{{subplebbitAddress}} కోసం సెట్టింగులు సేవ్ చేయబడ్డాయి", "mod_edit": "మోడ్ సవరించినప్పుడు", - "continue_thread": "ఈ థ్రెడ్‌ను కొనసాగండి" + "continue_thread": "ఈ థ్రెడ్‌ను కొనసాగండి", + "mod_reason": "మోడ్ కారణం" } \ No newline at end of file diff --git a/public/translations/th/default.json b/public/translations/th/default.json index e035bd08..f2067752 100644 --- a/public/translations/th/default.json +++ b/public/translations/th/default.json @@ -255,5 +255,6 @@ "admin": "ผู้ดูแลระบบ", "settings_saved": "บันทึกการตั้งค่าสำหรับ p/{{subplebbitAddress}}", "mod_edit": "mod edit", - "continue_thread": "ดำเนินการเรื่องนี้ต่อ" + "continue_thread": "ดำเนินการเรื่องนี้ต่อ", + "mod_reason": "เหตุผลของ mod" } \ No newline at end of file diff --git a/public/translations/tr/default.json b/public/translations/tr/default.json index fc85bf94..9a8d29f6 100644 --- a/public/translations/tr/default.json +++ b/public/translations/tr/default.json @@ -255,5 +255,6 @@ "admin": "yönetici", "settings_saved": "Ayarlar p/{{subplebbitAddress}} için kaydedildi", "mod_edit": "mod düzenle", - "continue_thread": "bu konuyu devam ettir" + "continue_thread": "bu konuyu devam ettir", + "mod_reason": "mod nedeni" } \ No newline at end of file diff --git a/public/translations/uk/default.json b/public/translations/uk/default.json index 8c231551..df75c7be 100644 --- a/public/translations/uk/default.json +++ b/public/translations/uk/default.json @@ -255,5 +255,6 @@ "admin": "адміністратор", "settings_saved": "Налаштування збережено для p/{{subplebbitAddress}}", "mod_edit": "редагування модератора", - "continue_thread": "продовжити цю тему" + "continue_thread": "продовжити цю тему", + "mod_reason": "причина моду" } \ No newline at end of file diff --git a/public/translations/ur/default.json b/public/translations/ur/default.json index 34475e57..426d3567 100644 --- a/public/translations/ur/default.json +++ b/public/translations/ur/default.json @@ -255,5 +255,6 @@ "admin": "ایڈمن", "settings_saved": "p/{{subplebbitAddress}} کے لئے ترتیبات محفوظ ہوگئیں", "mod_edit": "موڈ سنواریں", - "continue_thread": "اس ٹھریڈ کو جاری رکھیں" + "continue_thread": "اس ٹھریڈ کو جاری رکھیں", + "mod_reason": "موڈ کا سبب" } \ No newline at end of file diff --git a/public/translations/vi/default.json b/public/translations/vi/default.json index 33095e7a..426ee1ed 100644 --- a/public/translations/vi/default.json +++ b/public/translations/vi/default.json @@ -255,5 +255,6 @@ "admin": "quản trị viên", "settings_saved": "Cài đặt đã được lưu cho p/{{subplebbitAddress}}", "mod_edit": "chỉnh sửa mod", - "continue_thread": "tiếp tục chủ đề này" + "continue_thread": "tiếp tục chủ đề này", + "mod_reason": "lý do mod" } \ No newline at end of file diff --git a/public/translations/zh/default.json b/public/translations/zh/default.json index 7c710617..384bb7d5 100644 --- a/public/translations/zh/default.json +++ b/public/translations/zh/default.json @@ -255,5 +255,6 @@ "admin": "管理员", "settings_saved": "已保存 p/{{subplebbitAddress}} 的设置", "mod_edit": "mod 编辑", - "continue_thread": "继续这个主题" + "continue_thread": "继续这个主题", + "mod_reason": "mod 原因" } \ No newline at end of file diff --git a/src/components/post/expando/expando.tsx b/src/components/post/expando/expando.tsx index 74fc4420..fd606841 100644 --- a/src/components/post/expando/expando.tsx +++ b/src/components/post/expando/expando.tsx @@ -59,7 +59,7 @@ const Expando = ({ commentMediaInfo, content, expanded, link, reason, showConten {reason && (

    - {t('mod_edit')}: {reason} + {t('mod_reason')}: {reason}
    )} diff --git a/src/components/reply/reply.tsx b/src/components/reply/reply.tsx index 5bb9ab1c..c7f8496c 100644 --- a/src/components/reply/reply.tsx +++ b/src/components/reply/reply.tsx @@ -353,7 +353,7 @@ const Reply = ({ cidOfReplyWithContext, depth = 0, isSingleComment, isSingleRepl {reason && (

    - {t('mod_edit')}: {reason} + {t('mod_reason')}: {reason}
    )} From dbbe9b0dcd90f3e93471e0f645c4d8f9a28ba758 Mon Sep 17 00:00:00 2001 From: "plebeius.eth" Date: Fri, 9 Feb 2024 16:20:37 +0100 Subject: [PATCH 8/8] feat: hide media of removed posts and replies, blur title and media in feed for mods --- src/components/post/expando/expando.tsx | 5 +++-- src/components/post/post.module.css | 8 ++++++++ src/components/post/post.tsx | 24 +++++++++++++----------- src/components/reply/reply.tsx | 2 +- 4 files changed, 25 insertions(+), 14 deletions(-) diff --git a/src/components/post/expando/expando.tsx b/src/components/post/expando/expando.tsx index fd606841..baa1e364 100644 --- a/src/components/post/expando/expando.tsx +++ b/src/components/post/expando/expando.tsx @@ -11,11 +11,12 @@ interface ExpandoProps { expanded: boolean; link: string; reason?: string; + removed?: boolean; showContent: boolean; toggleExpanded?: () => void; } -const Expando = ({ commentMediaInfo, content, expanded, link, reason, showContent, toggleExpanded }: ExpandoProps) => { +const Expando = ({ commentMediaInfo, content, expanded, link, reason, removed, showContent, toggleExpanded }: ExpandoProps) => { const { t } = useTranslation(); let mediaComponent = null; @@ -37,7 +38,7 @@ const Expando = ({ commentMediaInfo, content, expanded, link, reason, showConten return (
    - {link && ( + {link && !removed && (
    {
    {hasThumbnail && !isInPostView && ( - + + + )} - + ); diff --git a/src/components/reply/reply.tsx b/src/components/reply/reply.tsx index c7f8496c..bb14b314 100644 --- a/src/components/reply/reply.tsx +++ b/src/components/reply/reply.tsx @@ -336,7 +336,7 @@ const Reply = ({ cidOfReplyWithContext, depth = 0, isSingleComment, isSingleRepl )} {!collapsed && (
    - {commentMediaInfo && ( + {commentMediaInfo && !removed && (