mirror of
https://github.com/plebbit/seedit.git
synced 2026-06-12 01:56:10 -04:00
Merge branch 'development' into master
This commit is contained in:
@@ -74,5 +74,7 @@
|
||||
"submit_subscriptions": "مجتمعاتك المشتركة",
|
||||
"rules_for": "قواعد لـ",
|
||||
"no_communities_found": "لا توجد مجتمعات على <1>https://github.com/plebbit/temporary-default-subplebbits</1>",
|
||||
"connect_community_notice": "للاتصال بمجتمع، استخدم 🔎 في أعلى اليمين"
|
||||
"connect_community_notice": "للاتصال بمجتمع، استخدم 🔎 في أعلى اليمين",
|
||||
"options": "خيارات",
|
||||
"hide_options": "إخفاء الخيارات"
|
||||
}
|
||||
@@ -74,5 +74,7 @@
|
||||
"submit_subscriptions": "আপনার সাবস্ক্রাইব করা কমিউনিটিগুলি",
|
||||
"rules_for": "এর নিয়মাবলী",
|
||||
"no_communities_found": "<1>https://github.com/plebbit/temporary-default-subplebbits</1> এ কোনো সম্প্রদায় পাওয়া যায়নি",
|
||||
"connect_community_notice": "একটি সম্প্রদায়ের সাথে যুক্ত হতে, ডান উপরে 🔎 ব্যবহার করুন"
|
||||
"connect_community_notice": "একটি সম্প্রদায়ের সাথে যুক্ত হতে, ডান উপরে 🔎 ব্যবহার করুন",
|
||||
"options": "অপশনস",
|
||||
"hide_options": "অপশনগুলি লুকান"
|
||||
}
|
||||
@@ -74,5 +74,7 @@
|
||||
"submit_subscriptions": "vaše odběratelské komunity",
|
||||
"rules_for": "pravidla pro",
|
||||
"no_communities_found": "Na <1>https://github.com/plebbit/temporary-default-subplebbits</1> nebyly nalezeny žádné komunity",
|
||||
"connect_community_notice": "Chcete-li se připojit ke komunitě, použijte 🔎 vpravo nahoře"
|
||||
"connect_community_notice": "Chcete-li se připojit ke komunitě, použijte 🔎 vpravo nahoře",
|
||||
"options": "možnosti",
|
||||
"hide_options": "skrýt možnosti"
|
||||
}
|
||||
@@ -74,5 +74,7 @@
|
||||
"submit_subscriptions": "dine abonnerede fællesskaber",
|
||||
"rules_for": "regler for",
|
||||
"no_communities_found": "Ingen samfund fundet på <1>https://github.com/plebbit/temporary-default-subplebbits</1>",
|
||||
"connect_community_notice": "For at oprette forbindelse til et fællesskab, brug 🔎 øverst til højre"
|
||||
"connect_community_notice": "For at oprette forbindelse til et fællesskab, brug 🔎 øverst til højre",
|
||||
"options": "muligheder",
|
||||
"hide_options": "skjul muligheder"
|
||||
}
|
||||
@@ -74,5 +74,7 @@
|
||||
"submit_subscriptions": "Ihre abonnierten Gemeinschaften",
|
||||
"rules_for": "Regeln für",
|
||||
"no_communities_found": "Keine Gemeinschaften gefunden auf <1>https://github.com/plebbit/temporary-default-subplebbits</1>",
|
||||
"connect_community_notice": "Um eine Verbindung zu einer Gemeinschaft herzustellen, verwenden Sie 🔎 oben rechts"
|
||||
"connect_community_notice": "Um eine Verbindung zu einer Gemeinschaft herzustellen, verwenden Sie 🔎 oben rechts",
|
||||
"options": "Optionen",
|
||||
"hide_options": "Optionen ausblenden"
|
||||
}
|
||||
@@ -74,5 +74,7 @@
|
||||
"submit_subscriptions": "οι κοινότητες στις οποίες έχετε συνδρομή",
|
||||
"rules_for": "κανόνες για",
|
||||
"no_communities_found": "Δεν βρέθηκαν κοινότητες στο <1>https://github.com/plebbit/temporary-default-subplebbits</1>",
|
||||
"connect_community_notice": "Για να συνδεθείτε με μια κοινότητα, χρησιμοποιήστε το 🔎 στην επάνω δεξιά γωνία"
|
||||
"connect_community_notice": "Για να συνδεθείτε με μια κοινότητα, χρησιμοποιήστε το 🔎 στην επάνω δεξιά γωνία",
|
||||
"options": "επιλογές",
|
||||
"hide_options": "απόκρυψη επιλογών"
|
||||
}
|
||||
@@ -74,5 +74,7 @@
|
||||
"submit_subscriptions": "your subscribed communities",
|
||||
"rules_for": "rules for",
|
||||
"no_communities_found": "No communities found on <1>https://github.com/plebbit/temporary-default-subplebbits</1>",
|
||||
"connect_community_notice": "To connect to a community, use 🔎 in the top right"
|
||||
"connect_community_notice": "To connect to a community, use 🔎 in the top right",
|
||||
"options": "options",
|
||||
"hide_options": "hide options"
|
||||
}
|
||||
@@ -74,5 +74,7 @@
|
||||
"submit_subscriptions": "tus comunidades suscritas",
|
||||
"rules_for": "reglas para",
|
||||
"no_communities_found": "No se encontraron comunidades en <1>https://github.com/plebbit/temporary-default-subplebbits</1>",
|
||||
"connect_community_notice": "Para conectarte a una comunidad, usa 🔎 en la parte superior derecha"
|
||||
"connect_community_notice": "Para conectarte a una comunidad, usa 🔎 en la parte superior derecha",
|
||||
"options": "opciones",
|
||||
"hide_options": "ocultar opciones"
|
||||
}
|
||||
@@ -74,5 +74,7 @@
|
||||
"submit_subscriptions": "جوامع مشترک شده شما",
|
||||
"rules_for": "قوانین برای",
|
||||
"no_communities_found": "هیچ انجمنی در <1>https://github.com/plebbit/temporary-default-subplebbits</1> یافت نشد",
|
||||
"connect_community_notice": "برای اتصال به یک انجمن، از 🔎 در بالا سمت راست استفاده کنید"
|
||||
"connect_community_notice": "برای اتصال به یک انجمن، از 🔎 در بالا سمت راست استفاده کنید",
|
||||
"options": "گزینهها",
|
||||
"hide_options": "مخفی کردن گزینهها"
|
||||
}
|
||||
@@ -74,5 +74,7 @@
|
||||
"submit_subscriptions": "tilaamasi yhteisöt",
|
||||
"rules_for": "säännöt",
|
||||
"no_communities_found": "Yhteisöjä ei löytynyt osoitteesta <1>https://github.com/plebbit/temporary-default-subplebbits</1>",
|
||||
"connect_community_notice": "Yhteisöön liittymiseksi käytä 🔎 oikeassa yläkulmassa"
|
||||
"connect_community_notice": "Yhteisöön liittymiseksi käytä 🔎 oikeassa yläkulmassa",
|
||||
"options": "vaihtoehdot",
|
||||
"hide_options": "piilota vaihtoehdot"
|
||||
}
|
||||
@@ -74,5 +74,7 @@
|
||||
"submit_subscriptions": "iyong mga sinubskribang komunidad",
|
||||
"rules_for": "mga patakaran para sa",
|
||||
"no_communities_found": "Walang natagpuang mga komunidad sa <1>https://github.com/plebbit/temporary-default-subplebbits</1>",
|
||||
"connect_community_notice": "Upang kumonekta sa isang komunidad, gamitin ang 🔎 sa itaas na kanan"
|
||||
"connect_community_notice": "Upang kumonekta sa isang komunidad, gamitin ang 🔎 sa itaas na kanan",
|
||||
"options": "mga opsyon",
|
||||
"hide_options": "itago ang mga opsyon"
|
||||
}
|
||||
@@ -74,5 +74,7 @@
|
||||
"submit_subscriptions": "vos communautés abonnées",
|
||||
"rules_for": "règles pour",
|
||||
"no_communities_found": "Aucune communauté trouvée sur <1>https://github.com/plebbit/temporary-default-subplebbits</1>",
|
||||
"connect_community_notice": "Pour vous connecter à une communauté, utilisez 🔎 en haut à droite"
|
||||
"connect_community_notice": "Pour vous connecter à une communauté, utilisez 🔎 en haut à droite",
|
||||
"options": "options",
|
||||
"hide_options": "cacher les options"
|
||||
}
|
||||
@@ -74,5 +74,7 @@
|
||||
"submit_subscriptions": "הקהילות שאתה מנוי עליהן",
|
||||
"rules_for": "כללים עבור",
|
||||
"no_communities_found": "לא נמצאו קהילות ב-<1>https://github.com/plebbit/temporary-default-subplebbits</1>",
|
||||
"connect_community_notice": "לקישור לקהילה, השתמש ב-🔎 בפינה הימנית העליונה"
|
||||
"connect_community_notice": "לקישור לקהילה, השתמש ב-🔎 בפינה הימנית העליונה",
|
||||
"options": "אפשרויות",
|
||||
"hide_options": "הסתר אפשרויות"
|
||||
}
|
||||
@@ -74,5 +74,7 @@
|
||||
"submit_subscriptions": "आपके सब्सक्राइब किए गए समुदाय",
|
||||
"rules_for": "के लिए नियम",
|
||||
"no_communities_found": "<1>https://github.com/plebbit/temporary-default-subplebbits</1> पर कोई समुदाय नहीं मिला",
|
||||
"connect_community_notice": "किसी समुदाय से जुड़ने के लिए, ऊपर दाईं ओर 🔎 का उपयोग करें"
|
||||
"connect_community_notice": "किसी समुदाय से जुड़ने के लिए, ऊपर दाईं ओर 🔎 का उपयोग करें",
|
||||
"options": "विकल्प",
|
||||
"hide_options": "विकल्प छुपाएँ"
|
||||
}
|
||||
@@ -74,5 +74,7 @@
|
||||
"submit_subscriptions": "az Ön által feliratkozott közösségek",
|
||||
"rules_for": "szabályok a",
|
||||
"no_communities_found": "Nem található közösségek a <1>https://github.com/plebbit/temporary-default-subplebbits</1>-en",
|
||||
"connect_community_notice": "Közösséghez való csatlakozáshoz használja a 🔎 gombot a jobb felső sarokban"
|
||||
"connect_community_notice": "Közösséghez való csatlakozáshoz használja a 🔎 gombot a jobb felső sarokban",
|
||||
"options": "opciók",
|
||||
"hide_options": "opciók elrejtése"
|
||||
}
|
||||
@@ -74,5 +74,7 @@
|
||||
"submit_subscriptions": "komunitas yang Anda langgani",
|
||||
"rules_for": "aturan untuk",
|
||||
"no_communities_found": "Tidak ada komunitas yang ditemukan di <1>https://github.com/plebbit/temporary-default-subplebbits</1>",
|
||||
"connect_community_notice": "Untuk terhubung ke komunitas, gunakan 🔎 di kanan atas"
|
||||
"connect_community_notice": "Untuk terhubung ke komunitas, gunakan 🔎 di kanan atas",
|
||||
"options": "opsi",
|
||||
"hide_options": "sembunyikan opsi"
|
||||
}
|
||||
@@ -74,5 +74,7 @@
|
||||
"submit_subscriptions": "le tue comunità sottoscritte",
|
||||
"rules_for": "regole per",
|
||||
"no_communities_found": "nessuna comunità trovata su <1>https://github.com/plebbit/temporary-default-subplebbits</1>",
|
||||
"connect_community_notice": "Per connetterti a una comunità, utilizza 🔎 in alto a destra"
|
||||
"connect_community_notice": "Per connetterti a una comunità, utilizza 🔎 in alto a destra",
|
||||
"options": "opzioni",
|
||||
"hide_options": "nascondi opzioni"
|
||||
}
|
||||
@@ -74,5 +74,7 @@
|
||||
"submit_subscriptions": "購読しているコミュニティ",
|
||||
"rules_for": "のルール",
|
||||
"no_communities_found": "<1>https://github.com/plebbit/temporary-default-subplebbits</1>にコミュニティは見つかりませんでした",
|
||||
"connect_community_notice": "コミュニティに接続するには、右上の🔎を使用してください"
|
||||
"connect_community_notice": "コミュニティに接続するには、右上の🔎を使用してください",
|
||||
"options": "オプション",
|
||||
"hide_options": "オプションを隠す"
|
||||
}
|
||||
@@ -74,5 +74,7 @@
|
||||
"submit_subscriptions": "구독한 커뮤니티",
|
||||
"rules_for": "규칙",
|
||||
"no_communities_found": "<1>https://github.com/plebbit/temporary-default-subplebbits</1>에 커뮤니티를 찾을 수 없습니다",
|
||||
"connect_community_notice": "커뮤니티에 연결하려면 오른쪽 상단의 🔎를 사용하세요"
|
||||
"connect_community_notice": "커뮤니티에 연결하려면 오른쪽 상단의 🔎를 사용하세요",
|
||||
"options": "옵션",
|
||||
"hide_options": "옵션 숨기기"
|
||||
}
|
||||
@@ -74,5 +74,7 @@
|
||||
"submit_subscriptions": "आपण सदस्यता घेतलेली समुदाय",
|
||||
"rules_for": "साठीचे नियम",
|
||||
"no_communities_found": "<1>https://github.com/plebbit/temporary-default-subplebbits</1> वर कोणत्याही समुदायाचा शोध लागलेला नाही",
|
||||
"connect_community_notice": "समुदायाशी जोडण्यासाठी, उजव्या वरील कोपर्यात 🔎 वापरा"
|
||||
"connect_community_notice": "समुदायाशी जोडण्यासाठी, उजव्या वरील कोपर्यात 🔎 वापरा",
|
||||
"options": "पर्याय",
|
||||
"hide_options": "पर्याय लपवा"
|
||||
}
|
||||
@@ -74,5 +74,7 @@
|
||||
"submit_subscriptions": "uw geabonneerde gemeenschappen",
|
||||
"rules_for": "regels voor",
|
||||
"no_communities_found": "Geen gemeenschappen gevonden op <1>https://github.com/plebbit/temporary-default-subplebbits</1>",
|
||||
"connect_community_notice": "Gebruik 🔎 rechtsboven om verbinding te maken met een gemeenschap"
|
||||
"connect_community_notice": "Gebruik 🔎 rechtsboven om verbinding te maken met een gemeenschap",
|
||||
"options": "opties",
|
||||
"hide_options": "opties verbergen"
|
||||
}
|
||||
@@ -74,5 +74,7 @@
|
||||
"submit_subscriptions": "dine abonnerte samfunn",
|
||||
"rules_for": "regler for",
|
||||
"no_communities_found": "Ingen samfunn funnet på <1>https://github.com/plebbit/temporary-default-subplebbits</1>",
|
||||
"connect_community_notice": "For å koble til et samfunn, bruk 🔎 øverst til høyre"
|
||||
"connect_community_notice": "For å koble til et samfunn, bruk 🔎 øverst til høyre",
|
||||
"options": "alternativer",
|
||||
"hide_options": "skjul alternativer"
|
||||
}
|
||||
@@ -74,5 +74,7 @@
|
||||
"submit_subscriptions": "twoje subskrybowane społeczności",
|
||||
"rules_for": "zasady dla",
|
||||
"no_communities_found": "Nie znaleziono społeczności na <1>https://github.com/plebbit/temporary-default-subplebbits</1>",
|
||||
"connect_community_notice": "Aby połączyć się ze społecznością, użyj 🔎 w prawym górnym rogu"
|
||||
"connect_community_notice": "Aby połączyć się ze społecznością, użyj 🔎 w prawym górnym rogu",
|
||||
"options": "opcje",
|
||||
"hide_options": "ukryj opcje"
|
||||
}
|
||||
@@ -74,5 +74,7 @@
|
||||
"submit_subscriptions": "suas comunidades inscritas",
|
||||
"rules_for": "regras para",
|
||||
"no_communities_found": "Nenhuma comunidade encontrada em <1>https://github.com/plebbit/temporary-default-subplebbits</1>",
|
||||
"connect_community_notice": "Para se conectar a uma comunidade, use 🔎 no canto superior direito"
|
||||
"connect_community_notice": "Para se conectar a uma comunidade, use 🔎 no canto superior direito",
|
||||
"options": "opções",
|
||||
"hide_options": "ocultar opções"
|
||||
}
|
||||
@@ -74,5 +74,7 @@
|
||||
"submit_subscriptions": "comunitățile dvs. abonate",
|
||||
"rules_for": "reguli pentru",
|
||||
"no_communities_found": "Nicio comunitate găsită pe <1>https://github.com/plebbit/temporary-default-subplebbits</1>",
|
||||
"connect_community_notice": "Pentru a vă conecta la o comunitate, folosiți 🔎 în partea dreaptă sus"
|
||||
"connect_community_notice": "Pentru a vă conecta la o comunitate, folosiți 🔎 în partea dreaptă sus",
|
||||
"options": "opțiuni",
|
||||
"hide_options": "ascunde opțiuni"
|
||||
}
|
||||
@@ -74,5 +74,7 @@
|
||||
"submit_subscriptions": "ваши подписанные сообщества",
|
||||
"rules_for": "правила для",
|
||||
"no_communities_found": "Сообщества не найдены на <1>https://github.com/plebbit/temporary-default-subplebbits</1>",
|
||||
"connect_community_notice": "Чтобы подключиться к сообществу, используйте 🔎 в правом верхнем углу"
|
||||
"connect_community_notice": "Чтобы подключиться к сообществу, используйте 🔎 в правом верхнем углу",
|
||||
"options": "опции",
|
||||
"hide_options": "скрыть опции"
|
||||
}
|
||||
@@ -74,5 +74,7 @@
|
||||
"submit_subscriptions": "komunitetet tuaja të abonuara",
|
||||
"rules_for": "rregullat për",
|
||||
"no_communities_found": "Nuk u gjetën komunitete në <1>https://github.com/plebbit/temporary-default-subplebbits</1>",
|
||||
"connect_community_notice": "Për të lidhur me një komunitet, përdorni 🔎 në këndin e djathtë lart"
|
||||
"connect_community_notice": "Për të lidhur me një komunitet, përdorni 🔎 në këndin e djathtë lart",
|
||||
"options": "opsione",
|
||||
"hide_options": "fsheh opsionet"
|
||||
}
|
||||
@@ -74,5 +74,7 @@
|
||||
"submit_subscriptions": "dina prenumererade samhällen",
|
||||
"rules_for": "regler för",
|
||||
"no_communities_found": "Inga samhällen hittades på <1>https://github.com/plebbit/temporary-default-subplebbits</1>",
|
||||
"connect_community_notice": "För att ansluta till en gemenskap, använd 🔎 i övre högra hörnet"
|
||||
"connect_community_notice": "För att ansluta till en gemenskap, använd 🔎 i övre högra hörnet",
|
||||
"options": "alternativ",
|
||||
"hide_options": "dölj alternativ"
|
||||
}
|
||||
@@ -74,5 +74,7 @@
|
||||
"submit_subscriptions": "మీరు చందా చేసుకున్న సముదాయాలు",
|
||||
"rules_for": "కోసం నియమాలు",
|
||||
"no_communities_found": "<1>https://github.com/plebbit/temporary-default-subplebbits</1>లో సమూహాలు కనిపించలేదు",
|
||||
"connect_community_notice": "ఒక సముదాయానికి కనెక్ట్ అవ్వడానికి, పైన కుడి వైపున 🔎 ఉపయోగించండి"
|
||||
"connect_community_notice": "ఒక సముదాయానికి కనెక్ట్ అవ్వడానికి, పైన కుడి వైపున 🔎 ఉపయోగించండి",
|
||||
"options": "ఎంపికలు",
|
||||
"hide_options": "ఎంపికలను దాచు"
|
||||
}
|
||||
@@ -74,5 +74,7 @@
|
||||
"submit_subscriptions": "ชุมชนที่คุณติดตาม",
|
||||
"rules_for": "กฎสำหรับ",
|
||||
"no_communities_found": "ไม่พบชุมชนใด ๆ บน <1>https://github.com/plebbit/temporary-default-subplebbits</1>",
|
||||
"connect_community_notice": "เพื่อเชื่อมต่อกับชุมชน ใช้ 🔎 ที่มุมขวาบน"
|
||||
"connect_community_notice": "เพื่อเชื่อมต่อกับชุมชน ใช้ 🔎 ที่มุมขวาบน",
|
||||
"options": "ตัวเลือก",
|
||||
"hide_options": "ซ่อนตัวเลือก"
|
||||
}
|
||||
@@ -74,5 +74,7 @@
|
||||
"submit_subscriptions": "abone olduğunuz topluluklar",
|
||||
"rules_for": "için kurallar",
|
||||
"no_communities_found": "<1>https://github.com/plebbit/temporary-default-subplebbits</1> üzerinde hiçbir topluluk bulunamadı",
|
||||
"connect_community_notice": "Bir topluluğa bağlanmak için, sağ üst köşede 🔎 kullanın"
|
||||
"connect_community_notice": "Bir topluluğa bağlanmak için, sağ üst köşede 🔎 kullanın",
|
||||
"options": "seçenekler",
|
||||
"hide_options": "seçenekleri gizle"
|
||||
}
|
||||
@@ -74,5 +74,7 @@
|
||||
"submit_subscriptions": "ваші підписані спільноти",
|
||||
"rules_for": "правила для",
|
||||
"no_communities_found": "Спільноти не знайдені на <1>https://github.com/plebbit/temporary-default-subplebbits</1>",
|
||||
"connect_community_notice": "Щоб підключитися до спільноти, використовуйте 🔎 у верхньому правому куті"
|
||||
"connect_community_notice": "Щоб підключитися до спільноти, використовуйте 🔎 у верхньому правому куті",
|
||||
"options": "опції",
|
||||
"hide_options": "приховати опції"
|
||||
}
|
||||
@@ -74,5 +74,7 @@
|
||||
"submit_subscriptions": "آپ کی سبسکرائب شدہ کمیونٹیز",
|
||||
"rules_for": "کے قواعد",
|
||||
"no_communities_found": "<1>https://github.com/plebbit/temporary-default-subplebbits</1> پر کوئی کمیونٹیز نہیں ملی",
|
||||
"connect_community_notice": "کمیونٹی سے جڑنے کے لئے، دائیں اوپر 🔎 استعمال کریں"
|
||||
"connect_community_notice": "کمیونٹی سے جڑنے کے لئے، دائیں اوپر 🔎 استعمال کریں",
|
||||
"options": "اختیارات",
|
||||
"hide_options": "اختیارات چھپائیں"
|
||||
}
|
||||
@@ -74,5 +74,7 @@
|
||||
"submit_subscriptions": "các cộng đồng bạn đã đăng ký",
|
||||
"rules_for": "quy tắc cho",
|
||||
"no_communities_found": "Không tìm thấy cộng đồng nào trên <1>https://github.com/plebbit/temporary-default-subplebbits</1>",
|
||||
"connect_community_notice": "Để kết nối với cộng đồng, sử dụng 🔎 ở góc trên bên phải"
|
||||
"connect_community_notice": "Để kết nối với cộng đồng, sử dụng 🔎 ở góc trên bên phải",
|
||||
"options": "tùy chọn",
|
||||
"hide_options": "ẩn tùy chọn"
|
||||
}
|
||||
@@ -74,5 +74,7 @@
|
||||
"submit_subscriptions": "您订阅的社区",
|
||||
"rules_for": "规则适用于",
|
||||
"no_communities_found": "在<1>https://github.com/plebbit/temporary-default-subplebbits</1>上未找到任何社区",
|
||||
"connect_community_notice": "要连接到社区,请在右上角使用 🔎"
|
||||
"connect_community_notice": "要连接到社区,请在右上角使用 🔎",
|
||||
"options": "选项",
|
||||
"hide_options": "隐藏选项"
|
||||
}
|
||||
@@ -42,4 +42,14 @@
|
||||
cursor: pointer;
|
||||
padding: 2px 6px 3px;
|
||||
text-transform: lowercase;
|
||||
}
|
||||
|
||||
.options {
|
||||
font-size: smaller;
|
||||
float: right;
|
||||
margin-top: 5px;
|
||||
margin-left: 10px;
|
||||
margin-right: 5px;
|
||||
color: var(--text-primary);
|
||||
cursor: pointer;
|
||||
}
|
||||
@@ -1,4 +1,5 @@
|
||||
import { useEffect } from 'react';
|
||||
import { useState } from 'react';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import styles from './reply-form.module.css';
|
||||
|
||||
@@ -13,6 +14,7 @@ type ReplyFormProps = {
|
||||
|
||||
const ReplyForm = ({ isReplyingToReply, onPublish, hideReplyForm, spoilerRef, textRef, urlRef }: ReplyFormProps) => {
|
||||
const { t } = useTranslation();
|
||||
const [showOptions, setShowOptions] = useState(false);
|
||||
|
||||
useEffect(() => {
|
||||
if (isReplyingToReply && textRef.current) {
|
||||
@@ -23,9 +25,8 @@ const ReplyForm = ({ isReplyingToReply, onPublish, hideReplyForm, spoilerRef, te
|
||||
return (
|
||||
<div className={styles.mdContainer} style={{ marginLeft: isReplyingToReply ? '25px' : '' }}>
|
||||
<div className={styles.md}>
|
||||
{/* TODO: move url and spoiler to some options dropdown, they shouldn't be visible right away*/}
|
||||
<input style={{ display: 'none' }} className={styles.url} ref={urlRef} placeholder={`url`} />
|
||||
<span style={{ display: 'none' }} className={styles.spoiler}>
|
||||
<input style={{ display: showOptions ? 'inline-block' : 'none' }} className={styles.url} ref={urlRef} placeholder={`url (${t('optional')})`} />
|
||||
<span style={{ display: showOptions ? 'inline-block' : 'none' }} className={styles.spoiler}>
|
||||
<label>
|
||||
{t('spoiler')}: <input type='checkbox' className={styles.checkbox} ref={spoilerRef} />
|
||||
</label>
|
||||
@@ -41,6 +42,9 @@ const ReplyForm = ({ isReplyingToReply, onPublish, hideReplyForm, spoilerRef, te
|
||||
{t('cancel')}
|
||||
</button>
|
||||
)}
|
||||
<span className={styles.options} onClick={() => setShowOptions(!showOptions)}>
|
||||
{showOptions ? t('hide_options') : t('options')}
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
.content {
|
||||
margin: 7px 5px 0px 5px;
|
||||
margin: 7px 5px 50px 5px;
|
||||
color: var(--text);
|
||||
}
|
||||
|
||||
@@ -146,4 +146,34 @@ h1 {
|
||||
font-size: 13px;
|
||||
margin-left: 20px;
|
||||
word-wrap: break-word;
|
||||
}
|
||||
|
||||
.dropdown {
|
||||
display: block;
|
||||
top: 52px;
|
||||
position: absolute;
|
||||
width: calc(100% - 8px);
|
||||
margin: 0;
|
||||
border: 1px solid var(--border-text);
|
||||
background: var(--background);
|
||||
left: 0;
|
||||
z-index: 10;
|
||||
list-style: none;
|
||||
}
|
||||
|
||||
.dropdownItem a {
|
||||
text-decoration: none;
|
||||
display: block;
|
||||
padding: 5px;
|
||||
cursor: pointer;
|
||||
color: var(--text);
|
||||
}
|
||||
|
||||
.dropdownItem:hover {
|
||||
background-color: var(--text-primary);
|
||||
color: var(--background);
|
||||
}
|
||||
|
||||
.dropdownItem a:hover {
|
||||
color: var(--background);
|
||||
}
|
||||
@@ -7,6 +7,7 @@ import { alertChallengeVerificationFailed } from '../../lib/utils/challenge-util
|
||||
import { isValidURL } from '../../lib/utils/url-utils';
|
||||
import styles from './submit.module.css';
|
||||
import challengesStore from '../../hooks/use-challenges';
|
||||
import useDefaultSubplebbitAddresses from '../../hooks/use-default-subplebbit-addresses';
|
||||
|
||||
type SubmitState = {
|
||||
subplebbitAddress: string | undefined;
|
||||
@@ -73,9 +74,10 @@ const Submit = () => {
|
||||
const { subplebbitAddress, publishCommentOptions, setSubmitStore, resetSubmitStore } = useSubmitStore();
|
||||
const { index, publishComment } = usePublishComment(publishCommentOptions);
|
||||
const { subscriptions } = account || {};
|
||||
const defaultSubplebbitAddresses = useDefaultSubplebbitAddresses();
|
||||
|
||||
useEffect(() => {
|
||||
document.title = t('submit_to_before') + (selectedSubplebbit ? subplebbit?.title || subplebbit?.shortAddress : 'seedit') + t('submit_to_after');
|
||||
document.title = t('submit_to_before') + (selectedSubplebbit ? subplebbit?.title || subplebbit?.shortAddress || 'seedit' : 'seedit') + t('submit_to_after');
|
||||
}, [selectedSubplebbit, subplebbit, t]);
|
||||
|
||||
const onPublish = () => {
|
||||
@@ -111,11 +113,11 @@ const Submit = () => {
|
||||
|
||||
const subplebbitHeaderLink = (
|
||||
<Link to={`/p/${subplebbitAddress}`} className={styles.location} onClick={(e) => e.preventDefault()}>
|
||||
{subplebbit?.title || subplebbit?.shortAddress}
|
||||
{subplebbit?.title || subplebbit?.shortAddress || 'seedit'}
|
||||
</Link>
|
||||
);
|
||||
|
||||
// redirect to pending page when pending comment is created
|
||||
// redirect to pending page when pending comment is created
|
||||
useEffect(() => {
|
||||
if (typeof index === 'number') {
|
||||
resetSubmitStore();
|
||||
@@ -125,7 +127,7 @@ const Submit = () => {
|
||||
|
||||
const subsDescription = <div className={styles.subsDescription}>{subscriptions.length > 0 ? t('submit_subscriptions') : t('submit_subscriptions_notice')}</div>;
|
||||
|
||||
const subs = (
|
||||
const subscriptionsList = (
|
||||
<div className={styles.subs}>
|
||||
{subscriptions.map((sub: string) => (
|
||||
<span
|
||||
@@ -143,6 +145,29 @@ const Submit = () => {
|
||||
</div>
|
||||
);
|
||||
|
||||
const defaultSubplebbits = (
|
||||
<ul className={styles.dropdown}>
|
||||
{defaultSubplebbitAddresses
|
||||
.filter((address) => address.toLowerCase().includes(inputAddress.toLowerCase()))
|
||||
.slice(0, 10)
|
||||
.map((subplebbitAddress) => (
|
||||
<li key={subplebbitAddress} className={styles.dropdownItem}>
|
||||
<Link
|
||||
to={`/p/${subplebbitAddress}`}
|
||||
className={styles.dropdownLink}
|
||||
onClick={() => {
|
||||
if (subplebbitAddressRef.current) {
|
||||
subplebbitAddressRef.current.value = subplebbitAddress;
|
||||
}
|
||||
}}
|
||||
>
|
||||
{subplebbitAddress}
|
||||
</Link>
|
||||
</li>
|
||||
))}
|
||||
</ul>
|
||||
);
|
||||
|
||||
const handleAddressChange = (e: ChangeEvent<HTMLInputElement>) => {
|
||||
setInputAddress(e.target.value);
|
||||
};
|
||||
@@ -195,8 +220,9 @@ const Submit = () => {
|
||||
ref={subplebbitAddressRef}
|
||||
onChange={handleAddressChange}
|
||||
/>
|
||||
{inputAddress && defaultSubplebbits}
|
||||
{subsDescription}
|
||||
{subs}
|
||||
{subscriptionsList}
|
||||
</div>
|
||||
</div>
|
||||
{subplebbit?.rules && (
|
||||
|
||||
Reference in New Issue
Block a user