diff --git a/package.json b/package.json index 94608490..5bd8fb48 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,7 @@ "dependencies": { "@capacitor/app": "6.0.1", "@floating-ui/react": "0.26.1", - "@plebbit/plebbit-react-hooks": "https://github.com/plebbit/plebbit-react-hooks.git#be1a1f317db7c4096f0d1c79452e13452bf9df78", + "@plebbit/plebbit-react-hooks": "https://github.com/plebbit/plebbit-react-hooks.git#6d35eb3b4dc84f8fdcbb46d95e3b1d78f1750b5f", "@testing-library/jest-dom": "5.14.1", "@testing-library/react": "13.0.0", "@testing-library/user-event": "13.2.1", @@ -35,7 +35,7 @@ "react-router-dom": "6.16.0", "react-router-hash-link": "2.4.3", "react-scripts": "5.0.1", - "react-virtuoso": "4.7.8", + "react-virtuoso": "4.12.3", "rehype-sanitize": "5.0.1", "remark-gfm": "3.0.1", "remark-supersub": "1.0.0", diff --git a/public/translations/ar/default.json b/public/translations/ar/default.json index 42e7b70d..e6373d41 100644 --- a/public/translations/ar/default.json +++ b/public/translations/ar/default.json @@ -251,7 +251,7 @@ "loading_subplebbit": "جارٍ تحميل subplebbit", "avatar_warning": "لا يمكنك النشر بصورة رمزية أثناء تفعيل وضع المجهول. يمكنك إيقافه في إعدادات حساب Plebbit الخاص بك.", "last_bumped": "آخر رفع", - "threads_without_images_tip": "لا تعرض المواضيع بدون صور", + "threads_without_images_tip": "عرض فقط المواضيع التي ترتبط بالوسائط القابلة للتضمين", "hide_gore_boards_tip": "لا تعرض المواضيع من المجالس التي تحتوي على وسم \"جور\"", "hide_adult_boards_tip": "لا تعرض المواضيع من المجالس التي تحتوي على وسم \"بالغ\"", "fit_expanded_images_to_screen": "تغيير حجم الصور الموسعة لتناسب الشاشة", diff --git a/public/translations/bn/default.json b/public/translations/bn/default.json index 97e473b6..541f328a 100644 --- a/public/translations/bn/default.json +++ b/public/translations/bn/default.json @@ -251,7 +251,7 @@ "loading_subplebbit": "সাবপ্লেবিট লোড হচ্ছে", "avatar_warning": "অ্যানন মোড চালু থাকা অবস্থায় আপনি অ্যানিমেশন সহ পোস্ট করতে পারেন না। আপনি এটি আপনার Plebbit অ্যাকাউন্টের সেটিংসে বন্ধ করতে পারেন।", "last_bumped": "শেষ.bump", - "threads_without_images_tip": "ছবি ছাড়া থ্রেডগুলি প্রদর্শন করবেন না", + "threads_without_images_tip": "শুধুমাত্র এমন থ্রেডগুলি প্রদর্শন করুন যেগুলি এমবেডযোগ্য মিডিয়াতে লিঙ্ক করে", "hide_gore_boards_tip": "\"গোর\" ট্যাগযুক্ত বোর্ড থেকে থ্রেডগুলি প্রদর্শন করবেন না", "hide_adult_boards_tip": "\"এডাল্ট\" ট্যাগযুক্ত বোর্ড থেকে থ্রেডগুলি প্রদর্শন করবেন না", "fit_expanded_images_to_screen": "প্রসারিত ছবিগুলি স্ক্রীনে ফিট করুন", diff --git a/public/translations/cs/default.json b/public/translations/cs/default.json index 42ee0dc2..17512a74 100644 --- a/public/translations/cs/default.json +++ b/public/translations/cs/default.json @@ -251,7 +251,7 @@ "loading_subplebbit": "Načítání subplebbit", "avatar_warning": "Nemůžete zveřejňovat s avatarem, když je zapnutý anonymní režim. Můžete ho vypnout v nastavení svého účtu Plebbit.", "last_bumped": "Poslední bump", - "threads_without_images_tip": "Nezobrazovat vlákna bez obrázků", + "threads_without_images_tip": "Zobrazit pouze vlákna, která odkazují na vložitelné médium", "hide_gore_boards_tip": "Nezobrazovat vlákna z fór se značkou \"gore\"", "hide_adult_boards_tip": "Nezobrazovat vlákna z fór se značkou \"adult\"", "fit_expanded_images_to_screen": "Přizpůsobit rozšířené obrázky obrazovce", diff --git a/public/translations/da/default.json b/public/translations/da/default.json index 01d51a33..434315aa 100644 --- a/public/translations/da/default.json +++ b/public/translations/da/default.json @@ -251,7 +251,7 @@ "loading_subplebbit": "Indlæser subplebbit", "avatar_warning": "Du kan ikke poste med et avatar, mens anonym tilstand er tændt. Du kan slukke det i dine Plebbit-kontoindstillinger.", "last_bumped": "Sidste bumpet", - "threads_without_images_tip": "Vis ikke tråde uden billeder", + "threads_without_images_tip": "Vis kun tråde, der linker til indlejrbare medier", "hide_gore_boards_tip": "Vis ikke tråde fra boards med \"gore\" tagget", "hide_adult_boards_tip": "Vis ikke tråde fra boards med \"adult\" tagget", "fit_expanded_images_to_screen": "Tilpas udvidede billeder til skærmen", diff --git a/public/translations/de/default.json b/public/translations/de/default.json index 4885c821..0af64156 100644 --- a/public/translations/de/default.json +++ b/public/translations/de/default.json @@ -251,7 +251,7 @@ "loading_subplebbit": "Lade subplebbit", "avatar_warning": "Sie können nicht mit einem Avatar posten, während der Anonymmodus aktiviert ist. Sie können ihn in den Einstellungen Ihres Plebbit-Kontos deaktivieren.", "last_bumped": "Zuletzt hochgeladen", - "threads_without_images_tip": "Keine Threads ohne Bilder anzeigen", + "threads_without_images_tip": "Nur Threads anzeigen, die auf einbettbare Medien verlinken", "hide_gore_boards_tip": "Zeige keine Threads von Boards mit dem \"gore\"-Tag", "hide_adult_boards_tip": "Zeige keine Threads von Boards mit dem \"adult\"-Tag", "fit_expanded_images_to_screen": "Erweiterte Bilder an den Bildschirm anpassen", diff --git a/public/translations/el/default.json b/public/translations/el/default.json index a587fb14..7b09a363 100644 --- a/public/translations/el/default.json +++ b/public/translations/el/default.json @@ -251,7 +251,7 @@ "loading_subplebbit": "Φόρτωση subplebbit", "avatar_warning": "Δεν μπορείτε να δημοσιεύσετε με avatar ενώ είναι ενεργοποιημένη η ανώνυμη λειτουργία. Μπορείτε να το απενεργοποιήσετε στις ρυθμίσεις του λογαριασμού σας Plebbit.", "last_bumped": "Τελευταία ανύψωση", - "threads_without_images_tip": "Μην εμφανίζετε θέματα χωρίς εικόνες", + "threads_without_images_tip": "Εμφάνιση μόνο θεμάτων που συνδέονται με ενσωματώσιμα μέσα", "hide_gore_boards_tip": "Μην εμφανίζετε θέματα από φόρουμ με την ετικέτα \"gore\"", "hide_adult_boards_tip": "Μην εμφανίζετε θέματα από φόρουμ με την ετικέτα \"adult\"", "fit_expanded_images_to_screen": "Προσαρμόστε τις επεκταμένες εικόνες στην οθόνη", diff --git a/public/translations/en/default.json b/public/translations/en/default.json index 9217ab5a..b86c15a1 100644 --- a/public/translations/en/default.json +++ b/public/translations/en/default.json @@ -251,7 +251,7 @@ "loading_subplebbit": "Loading subplebbit", "avatar_warning": "You can't post with an avatar while anon mode is turned on. You can turn it off in your Plebbit Account settings.", "last_bumped": "Last Bumped", - "threads_without_images_tip": "Don't display threads without images", + "threads_without_images_tip": "Only display threads that link to embeddable media", "hide_gore_boards_tip": "Don't display threads from boards with the \"gore\" tag", "hide_adult_boards_tip": "Don't display threads from boards with the \"adult\" tag", "fit_expanded_images_to_screen": "Fit expanded images to screen", diff --git a/public/translations/es/default.json b/public/translations/es/default.json index 8c2d0856..840f3cfb 100644 --- a/public/translations/es/default.json +++ b/public/translations/es/default.json @@ -251,7 +251,7 @@ "loading_subplebbit": "Cargando subplebbit", "avatar_warning": "No puedes publicar con un avatar mientras el modo anónimo esté activado. Puedes desactivarlo en la configuración de tu cuenta Plebbit.", "last_bumped": "Último bump", - "threads_without_images_tip": "No mostrar hilos sin imágenes", + "threads_without_images_tip": "Solo mostrar hilos que enlacen a medios integrables", "hide_gore_boards_tip": "No mostrar hilos de los foros con la etiqueta \"gore\"", "hide_adult_boards_tip": "No mostrar hilos de los foros con la etiqueta \"adulto\"", "fit_expanded_images_to_screen": "Ajustar imágenes ampliadas a la pantalla", diff --git a/public/translations/fa/default.json b/public/translations/fa/default.json index 295948e9..938ba378 100644 --- a/public/translations/fa/default.json +++ b/public/translations/fa/default.json @@ -251,7 +251,7 @@ "loading_subplebbit": "در حال بارگذاری subplebbit", "avatar_warning": "شما نمی‌توانید با آواتار پست بگذارید در حالی که حالت ناشناس فعال است. می‌توانید آن را در تنظیمات حساب Plebbit خود خاموش کنید.", "last_bumped": "آخرین افزایش", - "threads_without_images_tip": "موضوعات بدون تصویر را نمایش ندهید", + "threads_without_images_tip": "فقط موضوعاتی که به رسانه‌های قابل گنجاندن لینک می‌دهند را نمایش دهید", "hide_gore_boards_tip": "موضوعات از مجامع با برچسب \"گور\" را نمایش ندهید", "hide_adult_boards_tip": "موضوعات از مجامع با برچسب \"بزرگسال\" را نمایش ندهید", "fit_expanded_images_to_screen": "اندازه تصاویر بزرگ شده را به صفحه نمایش بکنید", diff --git a/public/translations/fi/default.json b/public/translations/fi/default.json index 0a5c9f0f..6c27addc 100644 --- a/public/translations/fi/default.json +++ b/public/translations/fi/default.json @@ -251,7 +251,7 @@ "loading_subplebbit": "Ladataan subplebbit", "avatar_warning": "Et voi julkaista avatarilla, kun anonyymi tila on päällä. Voit poistaa sen käytöstä Plebbit-tilisi asetuksissa.", "last_bumped": "Viimeisin bump", - "threads_without_images_tip": "Älä näytä ketjuja ilman kuvia", + "threads_without_images_tip": "Näytä vain ketjut, jotka linkittävät upotettaviin medioihin", "hide_gore_boards_tip": "Älä näytä ketjuja taulukoista, joissa on \"gore\"-tunniste", "hide_adult_boards_tip": "Älä näytä ketjuja taulukoista, joissa on \"adult\"-tunniste", "fit_expanded_images_to_screen": "Sovita laajennettuja kuvia näyttöön", diff --git a/public/translations/fil/default.json b/public/translations/fil/default.json index 8dda3bff..20fb9b08 100644 --- a/public/translations/fil/default.json +++ b/public/translations/fil/default.json @@ -251,7 +251,7 @@ "loading_subplebbit": "Naglo-load ng subplebbit", "avatar_warning": "Hindi ka makakapag-post gamit ang avatar habang naka-on ang anon mode. Maaari mo itong i-off sa iyong mga setting ng Plebbit Account.", "last_bumped": "Huling bump", - "threads_without_images_tip": "Huwag magpakita ng mga thread na walang mga larawan", + "threads_without_images_tip": "Ipakita lamang ang mga thread na nagli-link sa mga embeddable na media", "hide_gore_boards_tip": "Huwag magpakita ng mga thread mula sa mga board na may \"gore\" na tag", "hide_adult_boards_tip": "Huwag magpakita ng mga thread mula sa mga board na may \"adult\" na tag", "fit_expanded_images_to_screen": "I-adjust ang mga pinalawak na larawan sa screen", diff --git a/public/translations/fr/default.json b/public/translations/fr/default.json index f7d6e7fc..2e4959f7 100644 --- a/public/translations/fr/default.json +++ b/public/translations/fr/default.json @@ -251,7 +251,7 @@ "loading_subplebbit": "Chargement de subplebbit", "avatar_warning": "Vous ne pouvez pas publier avec un avatar pendant que le mode anonyme est activé. Vous pouvez le désactiver dans les paramètres de votre compte Plebbit.", "last_bumped": "Dernière élévation", - "threads_without_images_tip": "Ne pas afficher les sujets sans images", + "threads_without_images_tip": "Afficher uniquement les fils qui lient à des médias intégrables", "hide_gore_boards_tip": "Ne pas afficher les fils des forums avec le tag \"gore\"", "hide_adult_boards_tip": "Ne pas afficher les fils des forums avec le tag \"adult\"", "fit_expanded_images_to_screen": "Ajuster les images agrandies à l'écran", diff --git a/public/translations/he/default.json b/public/translations/he/default.json index b834fe7b..d06b32bc 100644 --- a/public/translations/he/default.json +++ b/public/translations/he/default.json @@ -251,7 +251,7 @@ "loading_subplebbit": "טוען subplebbit", "avatar_warning": "אין באפשרותך לפרסם עם תמונת פרופיל בזמן שמצב אנונימי מופעל. תוכל לבטל זאת בהגדרות חשבון Plebbit שלך.", "last_bumped": "הבום האחרון", - "threads_without_images_tip": "אל תציג נושאים ללא תמונות", + "threads_without_images_tip": "הצג רק נושאים שמקשרים למדיה שניתן להטמיע", "hide_gore_boards_tip": "אל תציג נושאים מלוחות עם תג \"גורה\"", "hide_adult_boards_tip": "אל תציג נושאים מלוחות עם תג \"מבוגר\"", "fit_expanded_images_to_screen": "התאם את התמונות המורחבות למסך", diff --git a/public/translations/hi/default.json b/public/translations/hi/default.json index 4fb6abc6..9a59dcca 100644 --- a/public/translations/hi/default.json +++ b/public/translations/hi/default.json @@ -251,7 +251,7 @@ "loading_subplebbit": "सबप्लेबिट लोड हो रहा है", "avatar_warning": "जब अज्ञात मोड चालू होता है, तो आप अवतार के साथ पोस्ट नहीं कर सकते। आप इसे अपने Plebbit खाते की सेटिंग में बंद कर सकते हैं।", "last_bumped": "अंतिम बंप", - "threads_without_images_tip": "बिना चित्र वाले थ्रेड्स प्रदर्शित न करें", + "threads_without_images_tip": "केवल उन थ्रेड्स को दिखाएं जो एम्बेडेबल मीडिया से लिंक करते हैं", "hide_gore_boards_tip": "\"गोर\" टैग वाले बोर्डों से थ्रेड्स न दिखाएं", "hide_adult_boards_tip": "\"एडल्ट\" टैग वाले बोर्डों से थ्रेड्स न दिखाएं", "fit_expanded_images_to_screen": "विस्तृत चित्रों को स्क्रीन के अनुसार ढालें", diff --git a/public/translations/hu/default.json b/public/translations/hu/default.json index f9b96b34..bd104f42 100644 --- a/public/translations/hu/default.json +++ b/public/translations/hu/default.json @@ -251,7 +251,7 @@ "loading_subplebbit": "Subplebbit betöltése", "avatar_warning": "Nem posztolhatsz avatarral, míg az anon mód be van kapcsolva. Kikapcsolhatod a Plebbit-fiókod beállításaiban.", "last_bumped": "Utolsó bump", - "threads_without_images_tip": "Ne jelenítsd meg a képek nélküli szálakat", + "threads_without_images_tip": "Csak azokat a szálakat jelenítse meg, amelyek beágyazható médiára mutatnak", "hide_gore_boards_tip": "Ne jelenítsd meg a \"gore\" címkével rendelkező fórumok szálait", "hide_adult_boards_tip": "Ne jelenítsd meg a \"adult\" címkével rendelkező fórumok szálait", "fit_expanded_images_to_screen": "Illeszkedjen a kibővített képekhez a képernyőhöz", diff --git a/public/translations/id/default.json b/public/translations/id/default.json index e82f0602..75a4932b 100644 --- a/public/translations/id/default.json +++ b/public/translations/id/default.json @@ -251,7 +251,7 @@ "loading_subplebbit": "Memuat subplebbit", "avatar_warning": "Anda tidak bisa memposting dengan avatar saat mode anonim diaktifkan. Anda bisa mematikan ini di pengaturan Akun Plebbit Anda.", "last_bumped": "Terakhir bump", - "threads_without_images_tip": "Jangan tampilkan thread tanpa gambar", + "threads_without_images_tip": "Hanya tampilkan thread yang menautkan ke media yang dapat disematkan", "hide_gore_boards_tip": "Jangan tampilkan thread dari board dengan tag \"gore\"", "hide_adult_boards_tip": "Jangan tampilkan thread dari board dengan tag \"adult\"", "fit_expanded_images_to_screen": "Sesuaikan gambar yang diperluas ke layar", diff --git a/public/translations/it/default.json b/public/translations/it/default.json index 4743fcb6..75a7c141 100644 --- a/public/translations/it/default.json +++ b/public/translations/it/default.json @@ -251,7 +251,7 @@ "loading_subplebbit": "Caricamento subplebbit", "avatar_warning": "Non puoi postare con un avatar mentre la modalità anonima è attiva. Puoi disattivarla nelle impostazioni del tuo account Plebbit.", "last_bumped": "Ultimo Bump", - "threads_without_images_tip": "Non mostrare thread senza immagini", + "threads_without_images_tip": "Mostra solo i thread che linkano a media incorporabili", "hide_gore_boards_tip": "Non mostrare i thread dei board con il tag \"gore\"", "hide_adult_boards_tip": "Non mostrare i thread dei board con il tag \"adult\"", "fit_expanded_images_to_screen": "Adatta le immagini espanse allo schermo", diff --git a/public/translations/ja/default.json b/public/translations/ja/default.json index 1eacd204..c6536d30 100644 --- a/public/translations/ja/default.json +++ b/public/translations/ja/default.json @@ -251,7 +251,7 @@ "loading_subplebbit": "subplebbitを読み込んでいます", "avatar_warning": "アバターを使用して投稿することはできません。匿名モードがオンになっている間は、Plebbitアカウントの設定でオフにできます。", "last_bumped": "最後のバンプ", - "threads_without_images_tip": "画像のないスレッドを表示しない", + "threads_without_images_tip": "埋め込むことができるメディアへのリンクを持つスレッドのみを表示", "hide_gore_boards_tip": "\"gore\"タグのあるボードからスレッドを表示しない", "hide_adult_boards_tip": "\"adult\"タグのあるボードからスレッドを表示しない", "fit_expanded_images_to_screen": "拡張された画像を画面に合わせる", diff --git a/public/translations/ko/default.json b/public/translations/ko/default.json index a7e7bab5..865801f8 100644 --- a/public/translations/ko/default.json +++ b/public/translations/ko/default.json @@ -251,7 +251,7 @@ "loading_subplebbit": "subplebbit 로딩 중", "avatar_warning": "익명 모드가 켜져 있는 동안 아바타로 게시할 수 없습니다. Plebbit 계정 설정에서 끌 수 있습니다.", "last_bumped": "마지막 bump", - "threads_without_images_tip": "이미지가 없는 스레드는 표시하지 않음", + "threads_without_images_tip": "임베드 가능한 미디어로 링크된 스레드만 표시", "hide_gore_boards_tip": "\"gore\" 태그가 있는 게시판에서 스레드를 표시하지 않음", "hide_adult_boards_tip": "\"adult\" 태그가 있는 게시판에서 스레드를 표시하지 않음", "fit_expanded_images_to_screen": "확장된 이미지를 화면에 맞추기", diff --git a/public/translations/mr/default.json b/public/translations/mr/default.json index 990cb773..75e0cac5 100644 --- a/public/translations/mr/default.json +++ b/public/translations/mr/default.json @@ -251,7 +251,7 @@ "loading_subplebbit": "subplebbit लोड करीत आहे", "avatar_warning": "आपण अज्ञात मोड चालू असताना अवतारसह पोस्ट करू शकत नाही. आपण ते आपल्या Plebbit खात्याच्या सेटिंग्जमध्ये बंद करू शकता.", "last_bumped": "अंतिम बंप", - "threads_without_images_tip": "बिना चित्र असलेले थ्रेड्स दर्शवू नका", + "threads_without_images_tip": "फक्त ते थ्रेड्स दाखवा जे एम्बेडेबल मीडियाशी लिंक करतात", "hide_gore_boards_tip": "\"गोर\" टॅग असलेल्या बोर्डमधून थ्रेड्स दाखवू नका", "hide_adult_boards_tip": "\"एडल्ट\" टॅग असलेल्या बोर्डमधून थ्रेड्स दाखवू नका", "fit_expanded_images_to_screen": "विस्तृत प्रतिमा स्क्रीनवर फिट करा", diff --git a/public/translations/nl/default.json b/public/translations/nl/default.json index 9083f4fd..6bf09ecf 100644 --- a/public/translations/nl/default.json +++ b/public/translations/nl/default.json @@ -251,7 +251,7 @@ "loading_subplebbit": "Subplebbit laden", "avatar_warning": "Je kunt niet met een avatar posten terwijl de anonieme modus aan staat. Je kunt het uitschakelen in de instellingen van je Plebbit-account.", "last_bumped": "Laatste bump", - "threads_without_images_tip": "Toon geen threads zonder afbeeldingen", + "threads_without_images_tip": "Toon alleen threads die naar inbedbare media linken", "hide_gore_boards_tip": "Toon geen threads van boards met de \"gore\" tag", "hide_adult_boards_tip": "Toon geen threads van boards met de \"adult\" tag", "fit_expanded_images_to_screen": "Pas uitgebreide afbeeldingen aan het scherm aan", diff --git a/public/translations/no/default.json b/public/translations/no/default.json index dff58fba..cc62a424 100644 --- a/public/translations/no/default.json +++ b/public/translations/no/default.json @@ -251,7 +251,7 @@ "loading_subplebbit": "Laster subplebbit", "avatar_warning": "Du kan ikke poste med en avatar mens anonym modus er aktivert. Du kan slå den av i innstillingene for Plebbit-kontoen din.", "last_bumped": "Siste bumpet", - "threads_without_images_tip": "Vis ikke tråder uten bilder", + "threads_without_images_tip": "Vis kun tråder som lenker til innebyggbare medier", "hide_gore_boards_tip": "Vis ikke tråder fra brett med \"gore\"-taggen", "hide_adult_boards_tip": "Vis ikke tråder fra brett med \"adult\"-taggen", "fit_expanded_images_to_screen": "Tilpass utvidede bilder til skjermen", diff --git a/public/translations/pl/default.json b/public/translations/pl/default.json index 68057780..7ed1b216 100644 --- a/public/translations/pl/default.json +++ b/public/translations/pl/default.json @@ -251,7 +251,7 @@ "loading_subplebbit": "Ładowanie subplebbit", "avatar_warning": "Nie możesz publikować z awatarem, gdy tryb anonimowy jest włączony. Możesz go wyłączyć w ustawieniach swojego konta Plebbit.", "last_bumped": "Ostatni bump", - "threads_without_images_tip": "Nie wyświetlaj wątków bez obrazów", + "threads_without_images_tip": "Wyświetlaj tylko wątki, które linkują do mediów, które można osadzić", "hide_gore_boards_tip": "Nie wyświetlaj wątków z forów z tagiem \"gore\"", "hide_adult_boards_tip": "Nie wyświetlaj wątków z forów z tagiem \"adult\"", "fit_expanded_images_to_screen": "Dopasuj rozszerzone obrazy do ekranu", diff --git a/public/translations/pt/default.json b/public/translations/pt/default.json index 0a2ad735..eb285896 100644 --- a/public/translations/pt/default.json +++ b/public/translations/pt/default.json @@ -251,7 +251,7 @@ "loading_subplebbit": "Carregando subplebbit", "avatar_warning": "Você não pode postar com um avatar enquanto o modo anônimo estiver ativado. Você pode desativá-lo nas configurações da sua Conta Plebbit.", "last_bumped": "Último bump", - "threads_without_images_tip": "Não exibir threads sem imagens", + "threads_without_images_tip": "Exibir apenas threads que linkam para mídias embutíveis", "hide_gore_boards_tip": "Não exibir threads de boards com a tag \"gore\"", "hide_adult_boards_tip": "Não exibir threads de boards com a tag \"adult\"", "fit_expanded_images_to_screen": "Ajustar imagens expandidas à tela", diff --git a/public/translations/ro/default.json b/public/translations/ro/default.json index 9fb18f12..ae8070cc 100644 --- a/public/translations/ro/default.json +++ b/public/translations/ro/default.json @@ -251,7 +251,7 @@ "loading_subplebbit": "Se încarcă subplebbit", "avatar_warning": "Nu poți publica cu un avatar în timp ce modul anonim este activat. Poți să-l dezactivezi în setările contului tău Plebbit.", "last_bumped": "Ultima creștere", - "threads_without_images_tip": "Nu afișați subiecte fără imagini", + "threads_without_images_tip": "Afișați doar discuțiile care sunt legătura către media încorporabilă", "hide_gore_boards_tip": "Nu afișați discuțiile de pe forumuri cu eticheta \"gore\"", "hide_adult_boards_tip": "Nu afișați discuțiile de pe forumuri cu eticheta \"adult\"", "fit_expanded_images_to_screen": "Se potrivesc imaginile extinse pe ecran", diff --git a/public/translations/ru/default.json b/public/translations/ru/default.json index 7da8b45a..4d8d2b29 100644 --- a/public/translations/ru/default.json +++ b/public/translations/ru/default.json @@ -251,7 +251,7 @@ "loading_subplebbit": "Загрузка subplebbit", "avatar_warning": "Вы не можете публиковать с аватаром, когда режим анонимности включен. Вы можете отключить его в настройках своей учетной записи Plebbit.", "last_bumped": "Последний бамп", - "threads_without_images_tip": "Не показывать темы без изображений", + "threads_without_images_tip": "Отображать только темы, которые ссылаются на встраиваемые медиа", "hide_gore_boards_tip": "Не показывать темы с форумов с тегом \"gore\"", "hide_adult_boards_tip": "Не показывать темы с форумов с тегом \"adult\"", "fit_expanded_images_to_screen": "Подогнать расширенные изображения под экран", diff --git a/public/translations/sq/default.json b/public/translations/sq/default.json index 0d84413b..39fd28b2 100644 --- a/public/translations/sq/default.json +++ b/public/translations/sq/default.json @@ -251,7 +251,7 @@ "loading_subplebbit": "Po ngarkohet subplebbit", "avatar_warning": "Nuk mund të postoni me një avatar ndërsa është aktivizuar moda anonime. Mund ta çaktivizoni në cilësimet e llogarisë tuaj Plebbit.", "last_bumped": "Bumping i fundit", - "threads_without_images_tip": "Mos shfaqni temat pa imazhe", + "threads_without_images_tip": "Shfaqni vetëm temat që lidhin me media të integrueshme", "hide_gore_boards_tip": "Mos shfaqni temat nga forumet me etiketën \"gore\"", "hide_adult_boards_tip": "Mos shfaqni temat nga forumet me etiketën \"adult\"", "fit_expanded_images_to_screen": "Përshtatni imazhet e zgjeruara në ekran", diff --git a/public/translations/sv/default.json b/public/translations/sv/default.json index 84838a11..c51464ca 100644 --- a/public/translations/sv/default.json +++ b/public/translations/sv/default.json @@ -251,7 +251,7 @@ "loading_subplebbit": "Laddar subplebbit", "avatar_warning": "Du kan inte posta med en avatar när anonym läge är aktiverat. Du kan stänga av det i inställningarna för ditt Plebbit-konto.", "last_bumped": "Senaste bump", - "threads_without_images_tip": "Visa inte trådar utan bilder", + "threads_without_images_tip": "Visa endast trådar som länkar till inbäddbara medier", "hide_gore_boards_tip": "Visa inte trådar från forum med taggen \"gore\"", "hide_adult_boards_tip": "Visa inte trådar från forum med taggen \"adult\"", "fit_expanded_images_to_screen": "Anpassa utvidgade bilder till skärmen", diff --git a/public/translations/te/default.json b/public/translations/te/default.json index edca1fc1..4cc812a7 100644 --- a/public/translations/te/default.json +++ b/public/translations/te/default.json @@ -251,7 +251,7 @@ "loading_subplebbit": "సబ్‌ప్లెబిట్‌లో లోడింగ్", "avatar_warning": "మీరు అను మోడ్ ఆన్ ఉండగా అవతార్‌తో పోస్ట్ చేయలేరు. మీరు మీ Plebbit ఖాతా సెట్టింగ్స్‌లో దీన్ని ఆఫ్ చేయవచ్చు.", "last_bumped": "చివరి బంప్", - "threads_without_images_tip": "చిత్రాలు లేని థ్రెడ్‌లు చూపించవద్దు", + "threads_without_images_tip": "ఏంబెడబుల్ మీడియాకు లింక్ చేసే థ్రెడ్‌లను మాత్రమే చూపించండి", "hide_gore_boards_tip": "\"గోర్\" ట్యాగ్‌తో ఉన్న బోర్డ్స్ నుండి థ్రెడ్‌లు చూపించవద్దు", "hide_adult_boards_tip": "\"అడల్ట్\" ట్యాగ్‌తో ఉన్న బోర్డ్స్ నుండి థ్రెడ్‌లు చూపించవద్దు", "fit_expanded_images_to_screen": "విస్తృత చిత్రాలను స్క్రీన్‌కు సరిపోల్చండి", diff --git a/public/translations/th/default.json b/public/translations/th/default.json index 35e822dc..db251173 100644 --- a/public/translations/th/default.json +++ b/public/translations/th/default.json @@ -251,7 +251,7 @@ "loading_subplebbit": "กำลังโหลด subplebbit", "avatar_warning": "คุณไม่สามารถโพสต์ด้วยอวาตาร์ในขณะที่โหมดอนาโนเป็นเปิดอยู่ คุณสามารถปิดได้ในการตั้งค่าบัญชี Plebbit ของคุณ", "last_bumped": "เพิ่มล่าสุด", - "threads_without_images_tip": "ไม่แสดงกระทู้ที่ไม่มีรูปภาพ", + "threads_without_images_tip": "แสดงเฉพาะกระทู้ที่เชื่อมโยงไปยังสื่อที่สามารถฝังได้", "hide_gore_boards_tip": "ไม่แสดงกระทู้จากบอร์ดที่มีแท็ก \"gore\"", "hide_adult_boards_tip": "ไม่แสดงกระทู้จากบอร์ดที่มีแท็ก \"adult\"", "fit_expanded_images_to_screen": "ปรับขนาดภาพที่ขยายให้พอดีกับหน้าจอ", diff --git a/public/translations/tr/default.json b/public/translations/tr/default.json index bd47ccf9..d79c00b2 100644 --- a/public/translations/tr/default.json +++ b/public/translations/tr/default.json @@ -251,7 +251,7 @@ "loading_subplebbit": "Subplebbit Yükleniyor", "avatar_warning": "Anonim mod açıken avatar ile paylaşım yapamazsınız. Bunu Plebbit Hesap ayarlarınızdan kapatabilirsiniz.", "last_bumped": "Son bump", - "threads_without_images_tip": "Resimsiz gönderileri görüntüleme", + "threads_without_images_tip": "Sadece gömme medya bağlantısı olan gönderileri görüntüle", "hide_gore_boards_tip": "\"gore\" etiketi olan boardlardan gönderileri göstermeyin", "hide_adult_boards_tip": "\"adult\" etiketi olan boardlardan gönderileri göstermeyin", "fit_expanded_images_to_screen": "Genişletilmiş resimleri ekrana sığdır", diff --git a/public/translations/uk/default.json b/public/translations/uk/default.json index 30f4df21..ab3537bb 100644 --- a/public/translations/uk/default.json +++ b/public/translations/uk/default.json @@ -251,7 +251,7 @@ "loading_subplebbit": "Завантаження subplebbit", "avatar_warning": "Ви не можете публікувати з аватаром, коли увімкнено анонімний режим. Ви можете вимкнути його в налаштуваннях свого облікового запису Plebbit.", "last_bumped": "Останній бамп", - "threads_without_images_tip": "Не показувати теми без зображень", + "threads_without_images_tip": "Показувати тільки ті теми, які містять посилання на медіа, що можна вбудувати", "hide_gore_boards_tip": "Не показувати теми з форумів з тегом \"gore\"", "hide_adult_boards_tip": "Не показувати теми з форумів з тегом \"adult\"", "fit_expanded_images_to_screen": "Підлаштувати розширені зображення під екран", diff --git a/public/translations/ur/default.json b/public/translations/ur/default.json index 06fab7d8..e610f99e 100644 --- a/public/translations/ur/default.json +++ b/public/translations/ur/default.json @@ -251,7 +251,7 @@ "loading_subplebbit": "سب پلبیٹ لوڈ ہو رہا ہے", "avatar_warning": "آپ اَنون موڈ آن ہونے پر اوتار کے ساتھ پوسٹ نہیں کر سکتے۔ آپ اسے اپنے Plebbit اکاؤنٹ کی ترتیبات میں بند کر سکتے ہیں۔", "last_bumped": "آخری بمپر", - "threads_without_images_tip": "تصاویر کے بغیر تھریڈز کو نہ دکھائیں", + "threads_without_images_tip": "صرف وہ تھریڈز دکھائیں جو ایمبیڈ ایبل میڈیا کے ساتھ لنک کرتے ہیں", "hide_gore_boards_tip": "\"گور\" ٹیگ والے بورڈز سے تھریڈز نہ دکھائیں", "hide_adult_boards_tip": "\"ایڈلٹ\" ٹیگ والے بورڈز سے تھریڈز نہ دکھائیں", "fit_expanded_images_to_screen": "پھیلائی ہوئی تصاویر کو اسکرین پر فٹ کریں", diff --git a/public/translations/vi/default.json b/public/translations/vi/default.json index b81a6135..4ecd8e8f 100644 --- a/public/translations/vi/default.json +++ b/public/translations/vi/default.json @@ -251,7 +251,7 @@ "loading_subplebbit": "Đang tải subplebbit", "avatar_warning": "Bạn không thể đăng với hình đại diện khi chế độ ẩn danh đang bật. Bạn có thể tắt nó trong cài đặt Tài khoản Plebbit của mình.", "last_bumped": "Bump gần đây nhất", - "threads_without_images_tip": "Không hiển thị chủ đề không có hình ảnh", + "threads_without_images_tip": "Chỉ hiển thị các chủ đề liên kết đến phương tiện có thể nhúng", "hide_gore_boards_tip": "Không hiển thị chủ đề từ các diễn đàn có thẻ \"gore\"", "hide_adult_boards_tip": "Không hiển thị chủ đề từ các diễn đàn có thẻ \"adult\"", "fit_expanded_images_to_screen": "Phù hợp hình ảnh mở rộng với màn hình", diff --git a/public/translations/zh/default.json b/public/translations/zh/default.json index 4e38640c..f1948838 100644 --- a/public/translations/zh/default.json +++ b/public/translations/zh/default.json @@ -251,7 +251,7 @@ "loading_subplebbit": "加载 subplebbit", "avatar_warning": "在匿名模式开启时,您无法使用头像进行发布。您可以在 Plebbit 账户设置中将其关闭。", "last_bumped": "最后提升", - "threads_without_images_tip": "不显示没有图片的帖子", + "threads_without_images_tip": "仅显示链接到可嵌入媒体的帖子", "hide_gore_boards_tip": "不显示来自带有“gore”标签的板块的帖子", "hide_adult_boards_tip": "不显示来自带有“adult”标签的板块的帖子", "fit_expanded_images_to_screen": "适应扩展图像到屏幕", diff --git a/src/components/challenge-modal/challenge-modal.tsx b/src/components/challenge-modal/challenge-modal.tsx index d65db771..11aebae8 100644 --- a/src/components/challenge-modal/challenge-modal.tsx +++ b/src/components/challenge-modal/challenge-modal.tsx @@ -1,4 +1,4 @@ -import { useRef, useState } from 'react'; +import { useRef, useState, useEffect } from 'react'; import Draggable from 'react-draggable'; import { useTranslation } from 'react-i18next'; import { Challenge as ChallengeType } from '@plebbit/plebbit-react-hooks'; @@ -45,6 +45,7 @@ const Challenge = ({ challenge, closeModal }: ChallengeProps) => { const onEnterKey = (e: React.KeyboardEvent) => { if (e.key !== 'Enter') return; + if (!answers[currentChallengeIndex]) return; if (challenges[currentChallengeIndex + 1]) { setCurrentChallengeIndex((prev) => prev + 1); } else { @@ -52,6 +53,16 @@ const Challenge = ({ challenge, closeModal }: ChallengeProps) => { } }; + useEffect(() => { + const onEscapeKey = (e: KeyboardEvent) => { + if (e.key === 'Escape') { + closeModal(); + } + }; + document.addEventListener('keydown', onEscapeKey); + return () => document.removeEventListener('keydown', onEscapeKey); + }, [closeModal]); + // react-draggable requires a ref to the modal node const nodeRef = useRef(null); const isMobile = useIsMobile(); @@ -102,7 +113,11 @@ const Challenge = ({ challenge, closeModal }: ChallengeProps) => {
{t('challenge_counter', { index: currentChallengeIndex + 1, total: challenges?.length })}
- {!challenges[currentChallengeIndex + 1] && } + {!challenges[currentChallengeIndex + 1] && ( + + )} {challenges.length > 1 && ( {' '} - +
{t('stored_locally', { location: window.isElectron ? 'this desktop app' : isAndroid ? 'this mobile app' : window.location.hostname, diff --git a/src/components/settings-modal/settings-modal.tsx b/src/components/settings-modal/settings-modal.tsx index afb76cbc..01ff2a3b 100644 --- a/src/components/settings-modal/settings-modal.tsx +++ b/src/components/settings-modal/settings-modal.tsx @@ -1,4 +1,4 @@ -import { useState } from 'react'; +import { useState, useEffect } from 'react'; import { useLocation, useNavigate } from 'react-router-dom'; import { useTranslation } from 'react-i18next'; import styles from './settings-modal.module.css'; @@ -14,6 +14,7 @@ const SettingsModal = () => { const { t } = useTranslation(); const location = useLocation(); const navigate = useNavigate(); + const hash = location.hash.slice(1); const closeModal = () => { const newPath = location.pathname.replace(/\/settings$/, ''); @@ -29,6 +30,68 @@ const SettingsModal = () => { const [showPlebbitOptionsSettings, setShowPlebbitOptionsSettings] = useState(false); const [expandAll, setExpandAll] = useState(false); + const getExpandedCount = () => { + return ( + Number(showInterfaceSettings) + + Number(showAccountSettings) + + Number(showAvatarSettings) + + Number(showCryptoAddressSetting) + + Number(showCryptoWalletSettings) + + Number(showBlockedAddressesSetting) + + Number(showPlebbitOptionsSettings) + ); + }; + + const getExpandedCategoryId = (excludeCategoryId?: string) => { + if (showInterfaceSettings && 'interface-settings' !== excludeCategoryId) return 'interface-settings'; + if (showAccountSettings && 'account-settings' !== excludeCategoryId) return 'account-settings'; + if (showAvatarSettings && 'avatar-settings' !== excludeCategoryId) return 'avatar-settings'; + if (showCryptoAddressSetting && 'crypto-address-settings' !== excludeCategoryId) return 'crypto-address-settings'; + if (showCryptoWalletSettings && 'crypto-wallet-settings' !== excludeCategoryId) return 'crypto-wallet-settings'; + if (showBlockedAddressesSetting && 'blocked-addresses-settings' !== excludeCategoryId) return 'blocked-addresses-settings'; + if (showPlebbitOptionsSettings && 'plebbit-options-settings' !== excludeCategoryId) return 'plebbit-options-settings'; + return null; + }; + + const handleCategoryClick = (categoryId: string, isShowing: boolean, setShowing: (value: boolean) => void) => { + const newState = !isShowing; + setShowing(newState); + + const currentPath = location.pathname; + const baseSettingsPath = currentPath.split('#')[0]; + + const currentExpandedCount = getExpandedCount(); + + if (newState) { + if (currentExpandedCount === 0) { + navigate(`${baseSettingsPath}#${categoryId}`, { replace: true }); + } else { + navigate(baseSettingsPath, { replace: true }); + } + } else { + if (currentExpandedCount === 1) { + navigate(baseSettingsPath, { replace: true }); + } else if (currentExpandedCount === 2) { + const remainingCategory = getExpandedCategoryId(categoryId); + if (remainingCategory) { + navigate(`${baseSettingsPath}#${remainingCategory}`, { replace: true }); + } + } + } + }; + + useEffect(() => { + if (hash) { + setShowInterfaceSettings(hash === 'interface-settings'); + setShowAccountSettings(hash === 'account-settings'); + setShowAvatarSettings(hash === 'avatar-settings'); + setShowCryptoAddressSetting(hash === 'crypto-address-settings'); + setShowCryptoWalletSettings(hash === 'crypto-wallet-settings'); + setShowBlockedAddressesSetting(hash === 'blocked-addresses-settings'); + setShowPlebbitOptionsSettings(hash === 'plebbit-options-settings'); + } + }, [hash]); + const handleExpandAll = () => { const newExpandState = !expandAll; setExpandAll(newExpandState); @@ -39,6 +102,9 @@ const SettingsModal = () => { setShowCryptoWalletSettings(newExpandState); setShowBlockedAddressesSetting(newExpandState); setShowPlebbitOptionsSettings(newExpandState); + + const baseSettingsPath = location.pathname.split('#')[0]; + navigate(baseSettingsPath, { replace: true }); }; return ( @@ -52,50 +118,50 @@ const SettingsModal = () => {
[{expandAll ? t('collapse_all_settings') : t('expand_all_settings')}]
-
-