diff --git a/electron/preload.js b/electron/preload.js
index 7876481b..3321d338 100644
--- a/electron/preload.js
+++ b/electron/preload.js
@@ -8,6 +8,7 @@ const defaultPlebbitOptions = {
};
contextBridge.exposeInMainWorld('defaultPlebbitOptions', defaultPlebbitOptions);
+contextBridge.exposeInMainWorld('defaultMediaIpfsGatewayUrl', 'http://localhost:6473');
// expose a flag to indicate that we are running in electron
contextBridge.exposeInMainWorld('isElectron', true);
diff --git a/package.json b/package.json
index 30bfb10f..f5a337d2 100644
--- a/package.json
+++ b/package.json
@@ -34,7 +34,7 @@
"react-virtuoso": "4.6.0",
"rehype-sanitize": "5.0.1",
"remark-breaks": "3.0.2",
- "remark-gfm": "4.0.0",
+ "remark-gfm": "3.0.1",
"tcp-port-used": "1.0.2",
"typescript": "5.2.2",
"zustand": "4.4.3"
diff --git a/public/translations/ar/default.json b/public/translations/ar/default.json
index 1cac19b3..7d00c93f 100644
--- a/public/translations/ar/default.json
+++ b/public/translations/ar/default.json
@@ -236,5 +236,8 @@
"new_stable_version": "إصدار مستقر جديد متاح، seedit v{{newVersion}}. أنت تستخدم seedit v{{oldVersion}}.",
"download_latest_desktop": "حمل أحدث إصدار سطح المكتب هنا: {{link}}",
"contribute_on_github": "المساهمة على GitHub",
- "create_community_not_available": "غير متاح على الويب بعد. يمكنك إنشاء مجتمع باستخدام تطبيق سطح المكتب، قم بتنزيله هنا: {{desktopLink}}. إذا كنت مرتاحًا باستخدام سطر الأوامر، تحقق من: {{cliLink}}"
+ "create_community_not_available": "غير متاح على الويب بعد. يمكنك إنشاء مجتمع باستخدام تطبيق سطح المكتب، قم بتنزيله هنا: {{desktopLink}}. إذا كنت مرتاحًا باستخدام سطر الأوامر، تحقق من: {{cliLink}}",
+ "no_media_found": "لم يتم العثور على وسائط",
+ "no_image_found": "لم يتم العثور على صورة",
+ "warning_spam": "تحذير: عرضة لهجمات البريد العشوائي"
}
\ No newline at end of file
diff --git a/public/translations/bn/default.json b/public/translations/bn/default.json
index 5a2cf5f9..d03ad442 100644
--- a/public/translations/bn/default.json
+++ b/public/translations/bn/default.json
@@ -236,5 +236,8 @@
"new_stable_version": "নতুন স্থিতিশীল সংস্করণ উপলব্ধ, seedit v{{newVersion}}। আপনি seedit v{{oldVersion}} ব্যবহার করছেন।",
"download_latest_desktop": "সর্বশেষ ডেস্কটপ সংস্করণ এখানে ডাউনলোড করুন: {{link}}",
"contribute_on_github": "GitHub এ অবদান রাখুন",
- "create_community_not_available": "এখনো ওয়েবে উপলব্ধ নেই। ডেস্কটপ অ্যাপ্লিকেশন ব্যবহার করে আপনি একটি সম্প্রদায় তৈরি করতে পারেন, এটি এখানে ডাউনলোড করুন: {{desktopLink}}। আপনি যদি কমান্ড লাইনে সুবিধা প্রাপ্ত হন, তাহলে চেক করুন: {{cliLink}}"
+ "create_community_not_available": "এখনো ওয়েবে উপলব্ধ নেই। ডেস্কটপ অ্যাপ্লিকেশন ব্যবহার করে আপনি একটি সম্প্রদায় তৈরি করতে পারেন, এটি এখানে ডাউনলোড করুন: {{desktopLink}}। আপনি যদি কমান্ড লাইনে সুবিধা প্রাপ্ত হন, তাহলে চেক করুন: {{cliLink}}",
+ "no_media_found": "কোন মিডিয়া পাওয়া যায়নি",
+ "no_image_found": "ছবি পাওয়া যায়নি",
+ "warning_spam": "সতর্কতা: স্প্যাম হামলার দ্বারা সংক্ষিপ্ত"
}
\ No newline at end of file
diff --git a/public/translations/cs/default.json b/public/translations/cs/default.json
index a0876980..ab93c68e 100644
--- a/public/translations/cs/default.json
+++ b/public/translations/cs/default.json
@@ -236,5 +236,8 @@
"new_stable_version": "Nová stabilní verze k dispozici, seedit v{{newVersion}}. Používáte seedit v{{oldVersion}}.",
"download_latest_desktop": "Stáhněte si nejnovější verzi pro stolní počítače zde: {{link}}",
"contribute_on_github": "Přispět na GitHubu",
- "create_community_not_available": "Zatím nedostupné na webu. Můžete vytvořit komunitu pomocí desktopové aplikace, stáhnout ji zde: {{desktopLink}}. Pokud se cítíte pohodlně s příkazovým řádkem, podívejte se sem: {{cliLink}}"
+ "create_community_not_available": "Zatím nedostupné na webu. Můžete vytvořit komunitu pomocí desktopové aplikace, stáhnout ji zde: {{desktopLink}}. Pokud se cítíte pohodlně s příkazovým řádkem, podívejte se sem: {{cliLink}}",
+ "no_media_found": "Žádná média nebyla nalezena",
+ "no_image_found": "Obrázek nebyl nalezen",
+ "warning_spam": "Upozornění: Zranitelné vůči spamovým útokům"
}
\ No newline at end of file
diff --git a/public/translations/da/default.json b/public/translations/da/default.json
index 5a534516..5807c64e 100644
--- a/public/translations/da/default.json
+++ b/public/translations/da/default.json
@@ -236,5 +236,8 @@
"new_stable_version": "Ny stabil version tilgængelig, seedit v{{newVersion}}. Du bruger seedit v{{oldVersion}}.",
"download_latest_desktop": "Download den seneste version til skrivebordet her: {{link}}",
"contribute_on_github": "Bidrag på GitHub",
- "create_community_not_available": "Endnu ikke tilgængelig på internettet. Du kan oprette en fællesskab ved hjælp af desktop-appen, download den her: {{desktopLink}}. Hvis du er fortrolig med kommandolinjen, kan du tjekke: {{cliLink}}"
+ "create_community_not_available": "Endnu ikke tilgængelig på internettet. Du kan oprette en fællesskab ved hjælp af desktop-appen, download den her: {{desktopLink}}. Hvis du er fortrolig med kommandolinjen, kan du tjekke: {{cliLink}}",
+ "no_media_found": "Ingen medier fundet",
+ "no_image_found": "Ingen billede fundet",
+ "warning_spam": "Advarsel: Sårbar over for spam-angreb"
}
\ No newline at end of file
diff --git a/public/translations/de/default.json b/public/translations/de/default.json
index af9dafdc..13b83889 100644
--- a/public/translations/de/default.json
+++ b/public/translations/de/default.json
@@ -236,5 +236,8 @@
"new_stable_version": "Neue stabile Version verfügbar, seedit v{{newVersion}}. Du verwendest seedit v{{oldVersion}}.",
"download_latest_desktop": "Laden Sie hier die neueste Desktop-Version herunter: {{link}}",
"contribute_on_github": "Beitragen auf GitHub",
- "create_community_not_available": "Noch nicht im Web verfügbar. Sie können eine Community mit der Desktop-App erstellen, laden Sie sie hier herunter: {{desktopLink}}. Wenn Sie sich mit der Befehlszeile wohlfühlen, schauen Sie hier nach: {{cliLink}}"
+ "create_community_not_available": "Noch nicht im Web verfügbar. Sie können eine Community mit der Desktop-App erstellen, laden Sie sie hier herunter: {{desktopLink}}. Wenn Sie sich mit der Befehlszeile wohlfühlen, schauen Sie hier nach: {{cliLink}}",
+ "no_media_found": "Keine Medien gefunden",
+ "no_image_found": "Kein Bild gefunden",
+ "warning_spam": "Achtung: Gefährdet durch Spam-Angriffe"
}
\ No newline at end of file
diff --git a/public/translations/el/default.json b/public/translations/el/default.json
index f0b16ecf..134a0aee 100644
--- a/public/translations/el/default.json
+++ b/public/translations/el/default.json
@@ -236,5 +236,8 @@
"new_stable_version": "Νέα σταθερή έκδοση διαθέσιμη, seedit v{{newVersion}}. Χρησιμοποιείτε seedit v{{oldVersion}}.",
"download_latest_desktop": "Κατεβάστε την πιο πρόσφατη έκδοση για επιτραπέζιο υπολογιστή εδώ: {{link}}",
"contribute_on_github": "Συνεισφέρετε στο GitHub",
- "create_community_not_available": "Ακόμη δεν είναι διαθέσιμο στο web. Μπορείτε να δημιουργήσετε μια κοινότητα χρησιμοποιώντας την εφαρμογή επιφάνειας εργασίας, κατεβάστε την εδώ: {{desktopLink}}. Αν είστε άνετοι με τη γραμμή εντολών, ελέγξτε εδώ: {{cliLink}}"
+ "create_community_not_available": "Ακόμη δεν είναι διαθέσιμο στο web. Μπορείτε να δημιουργήσετε μια κοινότητα χρησιμοποιώντας την εφαρμογή επιφάνειας εργασίας, κατεβάστε την εδώ: {{desktopLink}}. Αν είστε άνετοι με τη γραμμή εντολών, ελέγξτε εδώ: {{cliLink}}",
+ "no_media_found": "Δεν βρέθηκαν πολυμέσα",
+ "no_image_found": "Δεν βρέθηκε εικόνα",
+ "warning_spam": "Προειδοποίηση: ευάλωτο στις επιθέσεις spam"
}
\ No newline at end of file
diff --git a/public/translations/en/default.json b/public/translations/en/default.json
index 61277597..efa1ca0f 100644
--- a/public/translations/en/default.json
+++ b/public/translations/en/default.json
@@ -236,5 +236,8 @@
"new_stable_version": "New stable version available, seedit v{{newVersion}}. You are using seedit v{{oldVersion}}.",
"download_latest_desktop": "Download the latest desktop version here: {{link}}",
"contribute_on_github": "Contribute on GitHub",
- "create_community_not_available": "Not yet available on web. You can create a community using the desktop app, download it here: {{desktopLink}}. If you are comfortable with the command line, check out: {{cliLink}}"
+ "create_community_not_available": "Not yet available on web. You can create a community using the desktop app, download it here: {{desktopLink}}. If you are comfortable with the command line, check out: {{cliLink}}",
+ "no_media_found": "No media found",
+ "no_image_found": "No image found",
+ "warning_spam": "Warning: vulnerable to spam attacks"
}
\ No newline at end of file
diff --git a/public/translations/es/default.json b/public/translations/es/default.json
index a90771db..77a902ec 100644
--- a/public/translations/es/default.json
+++ b/public/translations/es/default.json
@@ -236,5 +236,8 @@
"new_stable_version": "Nueva versión estable disponible, seedit v{{newVersion}}. Estás usando seedit v{{oldVersion}}.",
"download_latest_desktop": "Descarga la última versión de escritorio aquí: {{link}}",
"contribute_on_github": "Contribuir en GitHub",
- "create_community_not_available": "Todavía no disponible en la web. Puedes crear una comunidad utilizando la aplicación de escritorio, descárgala aquí: {{desktopLink}}. Si te sientes cómodo con la línea de comandos, échale un vistazo aquí: {{cliLink}}"
+ "create_community_not_available": "Todavía no disponible en la web. Puedes crear una comunidad utilizando la aplicación de escritorio, descárgala aquí: {{desktopLink}}. Si te sientes cómodo con la línea de comandos, échale un vistazo aquí: {{cliLink}}",
+ "no_media_found": "No se encontraron medios",
+ "no_image_found": "No se encontró imagen",
+ "warning_spam": "Advertencia: vulnerable a ataques de spam"
}
\ No newline at end of file
diff --git a/public/translations/fa/default.json b/public/translations/fa/default.json
index e842ec03..bc737b60 100644
--- a/public/translations/fa/default.json
+++ b/public/translations/fa/default.json
@@ -236,5 +236,8 @@
"new_stable_version": "نسخه پایدار جدید موجود است، seedit v{{newVersion}}. شما seedit v{{oldVersion}} را استفاده میکنید.",
"download_latest_desktop": "نسخهی جدید سطح میز کامپیوتر را از اینجا دانلود کنید: {{link}}",
"contribute_on_github": "مشارکت در GitHub",
- "create_community_not_available": "هنوز در وب در دسترس نیست. میتوانید با استفاده از برنامه رایانه رومیزی یک اجتماع ایجاد کنید، آن را از اینجا دانلود کنید: {{desktopLink}}. اگر با خط فرمان آشنا هستید، در اینجا بررسی کنید: {{cliLink}}"
+ "create_community_not_available": "هنوز در وب در دسترس نیست. میتوانید با استفاده از برنامه رایانه رومیزی یک اجتماع ایجاد کنید، آن را از اینجا دانلود کنید: {{desktopLink}}. اگر با خط فرمان آشنا هستید، در اینجا بررسی کنید: {{cliLink}}",
+ "no_media_found": "هیچ رسانهای پیدا نشد",
+ "no_image_found": "هیچ تصویری پیدا نشد",
+ "warning_spam": "هشدار: آسیبپذیر در برابر حملات اسپم"
}
\ No newline at end of file
diff --git a/public/translations/fi/default.json b/public/translations/fi/default.json
index 8c48ae3d..2984637d 100644
--- a/public/translations/fi/default.json
+++ b/public/translations/fi/default.json
@@ -236,5 +236,8 @@
"new_stable_version": "Uusi vakaa versio saatavilla, seedit v{{newVersion}}. Käytät seedit v{{oldVersion}}.",
"download_latest_desktop": "Lataa uusin työpöytäversio täältä: {{link}}",
"contribute_on_github": "Osallistu GitHubissa",
- "create_community_not_available": "Ei vielä saatavilla verkossa. Voit luoda yhteisön käyttämällä työpöytäsovellusta, lataa se täältä: {{desktopLink}}. Jos olet mukava komentorivin kanssa, tarkista täältä: {{cliLink}}"
+ "create_community_not_available": "Ei vielä saatavilla verkossa. Voit luoda yhteisön käyttämällä työpöytäsovellusta, lataa se täältä: {{desktopLink}}. Jos olet mukava komentorivin kanssa, tarkista täältä: {{cliLink}}",
+ "no_media_found": "Ei löydettyjä medioita",
+ "no_image_found": "Ei löytynyt kuvaa",
+ "warning_spam": "Varoitus: haavoittuvainen roskapostihyökkäyksille"
}
\ No newline at end of file
diff --git a/public/translations/fil/default.json b/public/translations/fil/default.json
index 48c28f80..8200c16d 100644
--- a/public/translations/fil/default.json
+++ b/public/translations/fil/default.json
@@ -236,5 +236,8 @@
"new_stable_version": "Bagong stable na bersyon na magagamit, seedit v{{newVersion}}. Ginagamit mo ang seedit v{{oldVersion}}.",
"download_latest_desktop": "I-download ang pinakabagong bersyon ng desktop dito: {{link}}",
"contribute_on_github": "Mag-contribute sa GitHub",
- "create_community_not_available": "Hindi pa ito magagamit sa web. Maaari kang lumikha ng isang komunidad gamit ang desktop app, i-download ito dito: {{desktopLink}}. Kung komportable ka sa command line, tingnan ito: {{cliLink}}"
+ "create_community_not_available": "Hindi pa ito magagamit sa web. Maaari kang lumikha ng isang komunidad gamit ang desktop app, i-download ito dito: {{desktopLink}}. Kung komportable ka sa command line, tingnan ito: {{cliLink}}",
+ "no_media_found": "Walang natagpuang midya",
+ "no_image_found": "Walang natagpuang larawan",
+ "warning_spam": "Babala: madaling target sa mga spam na atake"
}
\ No newline at end of file
diff --git a/public/translations/fr/default.json b/public/translations/fr/default.json
index 6d9cefee..f468aa9f 100644
--- a/public/translations/fr/default.json
+++ b/public/translations/fr/default.json
@@ -236,5 +236,8 @@
"new_stable_version": "Nouvelle version stable disponible, seedit v{{newVersion}}. Vous utilisez seedit v{{oldVersion}}.",
"download_latest_desktop": "Téléchargez la dernière version de bureau ici : {{link}}",
"contribute_on_github": "Contribuer sur GitHub",
- "create_community_not_available": "Pas encore disponible sur le web. Vous pouvez créer une communauté en utilisant l'application de bureau, téléchargez-la ici : {{desktopLink}}. Si vous êtes à l'aise avec la ligne de commande, consultez ici : {{cliLink}}"
+ "create_community_not_available": "Pas encore disponible sur le web. Vous pouvez créer une communauté en utilisant l'application de bureau, téléchargez-la ici : {{desktopLink}}. Si vous êtes à l'aise avec la ligne de commande, consultez ici : {{cliLink}}",
+ "no_media_found": "Aucun média trouvé",
+ "no_image_found": "Aucune image trouvée",
+ "warning_spam": "Attention : vulnérable aux attaques de spam"
}
\ No newline at end of file
diff --git a/public/translations/he/default.json b/public/translations/he/default.json
index 3e1f0122..af15f21b 100644
--- a/public/translations/he/default.json
+++ b/public/translations/he/default.json
@@ -236,5 +236,8 @@
"new_stable_version": "גרסה יציבה חדשה זמינה, seedit v{{newVersion}}. אתה משתמש seedit v{{oldVersion}}.",
"download_latest_desktop": "הורד את הגרסה האחרונה לשולחן העבודה כאן: {{link}}",
"contribute_on_github": "לתרום ב-GitHub",
- "create_community_not_available": "עדיין לא זמין ברשת. ניתן ליצור קהילה באמצעות האפליקציה לשולחן העבודה, הורד אותה כאן: {{desktopLink}}. אם אתה מרגיש בנוח עם שורת הפקודות, היכנס לכאן: {{cliLink}}"
+ "create_community_not_available": "עדיין לא זמין ברשת. ניתן ליצור קהילה באמצעות האפליקציה לשולחן העבודה, הורד אותה כאן: {{desktopLink}}. אם אתה מרגיש בנוח עם שורת הפקודות, היכנס לכאן: {{cliLink}}",
+ "no_media_found": "לא נמצאו מדיה",
+ "no_image_found": "לא נמצאה תמונה",
+ "warning_spam": "אזהרה: פגיע לפני התקפות ספאם"
}
\ No newline at end of file
diff --git a/public/translations/hi/default.json b/public/translations/hi/default.json
index 89d5ed7b..76adf19e 100644
--- a/public/translations/hi/default.json
+++ b/public/translations/hi/default.json
@@ -236,5 +236,8 @@
"new_stable_version": "नई स्थिर संस्करण उपलब्ध है, seedit v{{newVersion}}। आप seedit v{{oldVersion}} का उपयोग कर रहे हैं।",
"download_latest_desktop": "यहां सबसे नवीन डेस्कटॉप संस्करण डाउनलोड करें: {{link}}",
"contribute_on_github": "GitHub पर सहयोग करें",
- "create_community_not_available": "अभी तक वेब पर उपलब्ध नहीं है। आप डेस्कटॉप ऐप का उपयोग करके एक समुदाय बना सकते हैं, इसे यहां डाउनलोड करें: {{desktopLink}}। यदि आप कमांड लाइन के साथ सहायक हैं, तो यहां जांचें: {{cliLink}}"
+ "create_community_not_available": "अभी तक वेब पर उपलब्ध नहीं है। आप डेस्कटॉप ऐप का उपयोग करके एक समुदाय बना सकते हैं, इसे यहां डाउनलोड करें: {{desktopLink}}। यदि आप कमांड लाइन के साथ सहायक हैं, तो यहां जांचें: {{cliLink}}",
+ "no_media_found": "कोई मीडिया नहीं मिला",
+ "no_image_found": "कोई चित्र नहीं मिला",
+ "warning_spam": "चेतावनी: स्पैम हमलों के प्रति आलोचनात्मक"
}
\ No newline at end of file
diff --git a/public/translations/hu/default.json b/public/translations/hu/default.json
index e9351112..c01b5eb7 100644
--- a/public/translations/hu/default.json
+++ b/public/translations/hu/default.json
@@ -236,5 +236,8 @@
"new_stable_version": "Új stabil verzió elérhető, seedit v{{newVersion}}. A seedit v{{oldVersion}}-t használod.",
"download_latest_desktop": "Töltsd le a legújabb asztali verziót itt: {{link}}",
"contribute_on_github": "Hozzájárulás a GitHubon",
- "create_community_not_available": "Még nem elérhető a weben. Egy közösséget létrehozhat a desktop alkalmazás segítségével, töltsd le itt: {{desktopLink}}. Ha kényelmes vagy a parancssor használatával, nézd meg itt: {{cliLink}}"
+ "create_community_not_available": "Még nem elérhető a weben. Egy közösséget létrehozhat a desktop alkalmazás segítségével, töltsd le itt: {{desktopLink}}. Ha kényelmes vagy a parancssor használatával, nézd meg itt: {{cliLink}}",
+ "no_media_found": "Nincs talált média",
+ "no_image_found": "Nincs talált kép",
+ "warning_spam": "Figyelmeztetés: sebezhető a spam támadásokkal szemben"
}
\ No newline at end of file
diff --git a/public/translations/id/default.json b/public/translations/id/default.json
index dc3c6b01..37ddae32 100644
--- a/public/translations/id/default.json
+++ b/public/translations/id/default.json
@@ -236,5 +236,8 @@
"new_stable_version": "Versi stabil baru tersedia, seedit v{{newVersion}}. Anda menggunakan seedit v{{oldVersion}}.",
"download_latest_desktop": "Unduh versi desktop terbaru di sini: {{link}}",
"contribute_on_github": "Berkontribusi di GitHub",
- "create_community_not_available": "Belum tersedia di web. Anda dapat membuat komunitas menggunakan aplikasi desktop, unduh di sini: {{desktopLink}}. Jika Anda nyaman dengan baris perintah, periksa di sini: {{cliLink}}"
+ "create_community_not_available": "Belum tersedia di web. Anda dapat membuat komunitas menggunakan aplikasi desktop, unduh di sini: {{desktopLink}}. Jika Anda nyaman dengan baris perintah, periksa di sini: {{cliLink}}",
+ "no_media_found": "Tidak ada media ditemukan",
+ "no_image_found": "Tidak ada gambar ditemukan",
+ "warning_spam": "Peringatan: rentan terhadap serangan spam"
}
\ No newline at end of file
diff --git a/public/translations/it/default.json b/public/translations/it/default.json
index cf47068e..c7c2931e 100644
--- a/public/translations/it/default.json
+++ b/public/translations/it/default.json
@@ -236,5 +236,8 @@
"new_stable_version": "Nuova versione stabile disponibile, seedit v{{newVersion}}. Stai utilizzando seedit v{{oldVersion}}.",
"download_latest_desktop": "Scarica l'ultima versione desktop qui: {{link}}",
"contribute_on_github": "Contribuisci su GitHub",
- "create_community_not_available": "Non ancora disponibile su web. Puoi creare una comunità utilizzando l'applicazione desktop, scaricala qui: {{desktopLink}}. Se ti senti a tuo agio con la riga di comando, controlla qui: {{cliLink}}"
+ "create_community_not_available": "Non ancora disponibile su web. Puoi creare una comunità utilizzando l'applicazione desktop, scaricala qui: {{desktopLink}}. Se ti senti a tuo agio con la riga di comando, controlla qui: {{cliLink}}",
+ "no_media_found": "Nessun media trovato",
+ "no_image_found": "Nessuna immagine trovata",
+ "warning_spam": "Attenzione: vulnerabile agli attacchi spam"
}
\ No newline at end of file
diff --git a/public/translations/ja/default.json b/public/translations/ja/default.json
index 692450ad..9bb49257 100644
--- a/public/translations/ja/default.json
+++ b/public/translations/ja/default.json
@@ -236,5 +236,8 @@
"new_stable_version": "新しい安定版が利用可能です、seedit v{{newVersion}}。あなたはseedit v{{oldVersion}} を使用しています。",
"download_latest_desktop": "最新のデスクトップバージョンをこちらからダウンロード: {{link}}",
"contribute_on_github": "GitHub で貢献する",
- "create_community_not_available": "まだウェブで利用できません。デスクトップアプリを使用してコミュニティを作成できます。ここからダウンロードしてください:{{desktopLink}}。コマンドラインがお好きな場合は、こちらをご覧ください:{{cliLink}}"
+ "create_community_not_available": "まだウェブで利用できません。デスクトップアプリを使用してコミュニティを作成できます。ここからダウンロードしてください:{{desktopLink}}。コマンドラインがお好きな場合は、こちらをご覧ください:{{cliLink}}",
+ "no_media_found": "メディアが見つかりませんでした",
+ "no_image_found": "画像が見つかりませんでした",
+ "warning_spam": "警告: スパム攻撃の対象となりやすい"
}
\ No newline at end of file
diff --git a/public/translations/ko/default.json b/public/translations/ko/default.json
index 4c31b978..07338c22 100644
--- a/public/translations/ko/default.json
+++ b/public/translations/ko/default.json
@@ -236,5 +236,8 @@
"new_stable_version": "새로운 안정 버전이 사용 가능합니다, seedit v{{newVersion}}. seedit v{{oldVersion}}을(를) 사용 중입니다.",
"download_latest_desktop": "최신 데스크톱 버전을 여기에서 다운로드하세요: {{link}}",
"contribute_on_github": "GitHub에서 기여하기",
- "create_community_not_available": "아직 웹에서 사용할 수 없습니다. 데스크톱 앱을 사용하여 커뮤니티를 만들 수 있으며, 여기서 다운로드하십시오: {{desktopLink}}. 명령 줄을 사용하는 데 익숙하다면 여기를 확인하십시오: {{cliLink}}"
+ "create_community_not_available": "아직 웹에서 사용할 수 없습니다. 데스크톱 앱을 사용하여 커뮤니티를 만들 수 있으며, 여기서 다운로드하십시오: {{desktopLink}}. 명령 줄을 사용하는 데 익숙하다면 여기를 확인하십시오: {{cliLink}}",
+ "no_media_found": "미디어를 찾을 수 없습니다",
+ "no_image_found": "이미지를 찾을 수 없습니다",
+ "warning_spam": "경고: 스팸 공격에 취약합니다"
}
\ No newline at end of file
diff --git a/public/translations/mr/default.json b/public/translations/mr/default.json
index 56b25e9a..f316fa67 100644
--- a/public/translations/mr/default.json
+++ b/public/translations/mr/default.json
@@ -236,5 +236,8 @@
"new_stable_version": "नवीन स्थिर संस्करण उपलब्ध आहे, seedit v{{newVersion}}. आपण seedit v{{oldVersion}} वापरत आहात.",
"download_latest_desktop": "येथे नवीन डेस्कटॉप संस्करण डाउनलोड करा: {{link}}",
"contribute_on_github": "GitHub वर सहय्यक करा",
- "create_community_not_available": "अद्याप वेबवर उपलब्ध नाही. आपण डेस्कटॉप अॅपवापूस मूलभूतपणे एक समुदाय तयार करू शकता, इथून डाउनलोड करा: {{desktopLink}}. आपल्याला कमांड लाइनसह सहय्यक आहे तर येथे तपासा: {{cliLink}}"
+ "create_community_not_available": "अद्याप वेबवर उपलब्ध नाही. आपण डेस्कटॉप अॅपवापूस मूलभूतपणे एक समुदाय तयार करू शकता, इथून डाउनलोड करा: {{desktopLink}}. आपल्याला कमांड लाइनसह सहय्यक आहे तर येथे तपासा: {{cliLink}}",
+ "no_media_found": "कोणत्याही मीडिया सापडलेली नाही",
+ "no_image_found": "कोणत्याही चित्रपट आढळला नाही",
+ "warning_spam": "सूचना: स्पॅम हलवून ठरविल्या आहे"
}
\ No newline at end of file
diff --git a/public/translations/nl/default.json b/public/translations/nl/default.json
index ff5198bc..ff866ee0 100644
--- a/public/translations/nl/default.json
+++ b/public/translations/nl/default.json
@@ -236,5 +236,8 @@
"new_stable_version": "Nieuwe stabiele versie beschikbaar, seedit v{{newVersion}}. Je gebruikt seedit v{{oldVersion}}.",
"download_latest_desktop": "Download de nieuwste desktopversie hier: {{link}}",
"contribute_on_github": "Bijdragen op GitHub",
- "create_community_not_available": "Nog niet beschikbaar op het web. U kunt een community maken met behulp van de desktop-app, download deze hier: {{desktopLink}}. Als u vertrouwd bent met de opdrachtregel, kijk dan hier: {{cliLink}}"
+ "create_community_not_available": "Nog niet beschikbaar op het web. U kunt een community maken met behulp van de desktop-app, download deze hier: {{desktopLink}}. Als u vertrouwd bent met de opdrachtregel, kijk dan hier: {{cliLink}}",
+ "no_media_found": "Geen media gevonden",
+ "no_image_found": "Geen afbeelding gevonden",
+ "warning_spam": "Waarschuwing: kwetsbaar voor spam-aanvallen"
}
\ No newline at end of file
diff --git a/public/translations/no/default.json b/public/translations/no/default.json
index 37d78e87..f01f91c3 100644
--- a/public/translations/no/default.json
+++ b/public/translations/no/default.json
@@ -236,5 +236,8 @@
"new_stable_version": "Ny stabil versjon tilgjengelig, seedit v{{newVersion}}. Du bruker seedit v{{oldVersion}}.",
"download_latest_desktop": "Last ned den nyeste skrivebordsversjonen her: {{link}}",
"contribute_on_github": "Bidra på GitHub",
- "create_community_not_available": "Ikke tilgjengelig på nettet ennå. Du kan opprette et fellesskap ved å bruke skrivebordsappen, last den ned her: {{desktopLink}}. Hvis du er komfortabel med kommandolinjen, kan du sjekke her: {{cliLink}}"
+ "create_community_not_available": "Ikke tilgjengelig på nettet ennå. Du kan opprette et fellesskap ved å bruke skrivebordsappen, last den ned her: {{desktopLink}}. Hvis du er komfortabel med kommandolinjen, kan du sjekke her: {{cliLink}}",
+ "no_media_found": "Ingen media funnet",
+ "no_image_found": "Ingen bilde funnet",
+ "warning_spam": "Advarsel: Sårbar for spam-angrep"
}
\ No newline at end of file
diff --git a/public/translations/pl/default.json b/public/translations/pl/default.json
index 9c8fdf63..8144ea3f 100644
--- a/public/translations/pl/default.json
+++ b/public/translations/pl/default.json
@@ -236,5 +236,8 @@
"new_stable_version": "Nowa stabilna wersja dostępna, seedit v{{newVersion}}. Używasz seedit v{{oldVersion}}.",
"download_latest_desktop": "Pobierz najnowszą wersję na pulpit tutaj: {{link}}",
"contribute_on_github": "Wspomóż na GitHubie",
- "create_community_not_available": "Jeszcze niedostępne w sieci. Możesz utworzyć społeczność za pomocą aplikacji na pulpicie, pobierz ją tutaj: {{desktopLink}}. Jeśli czujesz się komfortowo z wierszem poleceń, sprawdź tutaj: {{cliLink}}"
+ "create_community_not_available": "Jeszcze niedostępne w sieci. Możesz utworzyć społeczność za pomocą aplikacji na pulpicie, pobierz ją tutaj: {{desktopLink}}. Jeśli czujesz się komfortowo z wierszem poleceń, sprawdź tutaj: {{cliLink}}",
+ "no_media_found": "Nie znaleziono mediów",
+ "no_image_found": "Nie znaleziono obrazu",
+ "warning_spam": "Ostrzeżenie: podatny na ataki spamu"
}
\ No newline at end of file
diff --git a/public/translations/pt/default.json b/public/translations/pt/default.json
index 16ca5313..7b7250f8 100644
--- a/public/translations/pt/default.json
+++ b/public/translations/pt/default.json
@@ -236,5 +236,8 @@
"new_stable_version": "Nova versão estável disponível, seedit v{{newVersion}}. Você está usando seedit v{{oldVersion}}.",
"download_latest_desktop": "Baixe a versão mais recente para desktop aqui: {{link}}",
"contribute_on_github": "Contribua no GitHub",
- "create_community_not_available": "Ainda não disponível na web. Você pode criar uma comunidade usando o aplicativo para desktop, faça o download aqui: {{desktopLink}}. Se você se sentir confortável com a linha de comando, confira aqui: {{cliLink}}"
+ "create_community_not_available": "Ainda não disponível na web. Você pode criar uma comunidade usando o aplicativo para desktop, faça o download aqui: {{desktopLink}}. Se você se sentir confortável com a linha de comando, confira aqui: {{cliLink}}",
+ "no_media_found": "Nenhum media encontrado",
+ "no_image_found": "Nenhuma imagem encontrada",
+ "warning_spam": "Aviso: vulnerável a ataques de spam"
}
\ No newline at end of file
diff --git a/public/translations/ro/default.json b/public/translations/ro/default.json
index aad4caf3..1560a959 100644
--- a/public/translations/ro/default.json
+++ b/public/translations/ro/default.json
@@ -236,5 +236,8 @@
"new_stable_version": "Noua versiune stabilă disponibilă, seedit v{{newVersion}}. Folosiți seedit v{{oldVersion}}.",
"download_latest_desktop": "Descărcați cea mai recentă versiune de desktop aici: {{link}}",
"contribute_on_github": "Contribuiți pe GitHub",
- "create_community_not_available": "Încă nu este disponibil pe web. Puteți crea o comunitate folosind aplicația desktop, descărcați-o de aici: {{desktopLink}}. Dacă vă simțiți confortabil cu linia de comandă, verificați aici: {{cliLink}}"
+ "create_community_not_available": "Încă nu este disponibil pe web. Puteți crea o comunitate folosind aplicația desktop, descărcați-o de aici: {{desktopLink}}. Dacă vă simțiți confortabil cu linia de comandă, verificați aici: {{cliLink}}",
+ "no_media_found": "Nu s-au găsit media",
+ "no_image_found": "Nu s-a găsit nicio imagine",
+ "warning_spam": "Avertisment: vulnerabil la atacuri de tip spam"
}
\ No newline at end of file
diff --git a/public/translations/ru/default.json b/public/translations/ru/default.json
index 0a6b2317..c7837bcd 100644
--- a/public/translations/ru/default.json
+++ b/public/translations/ru/default.json
@@ -236,5 +236,8 @@
"new_stable_version": "Доступна новая стабильная версия, seedit v{{newVersion}}. Вы используете seedit v{{oldVersion}}.",
"download_latest_desktop": "Скачать последнюю версию для рабочего стола здесь: {{link}}",
"contribute_on_github": "Внести вклад на GitHub",
- "create_community_not_available": "Пока недоступно в Интернете. Вы можете создать сообщество с помощью приложения для рабочего стола, загрузите его здесь: {{desktopLink}}. Если вы уверены в командной строке, проверьте здесь: {{cliLink}}"
+ "create_community_not_available": "Пока недоступно в Интернете. Вы можете создать сообщество с помощью приложения для рабочего стола, загрузите его здесь: {{desktopLink}}. Если вы уверены в командной строке, проверьте здесь: {{cliLink}}",
+ "no_media_found": "Медиа не найдены",
+ "no_image_found": "Изображение не найдено",
+ "warning_spam": "Предупреждение: уязвим к спам-атакам"
}
\ No newline at end of file
diff --git a/public/translations/sq/default.json b/public/translations/sq/default.json
index 79673a88..48adac5c 100644
--- a/public/translations/sq/default.json
+++ b/public/translations/sq/default.json
@@ -236,5 +236,8 @@
"new_stable_version": "Version i ri i qëndrueshëm është në dispozicion, seedit v{{newVersion}}. Ju po përdorni seedit v{{oldVersion}}.",
"download_latest_desktop": "Shkarko versionin më të ri të desktopit këtu: {{link}}",
"contribute_on_github": "Kontribuoni në GitHub",
- "create_community_not_available": "Ende nuk është në dispozicion në internet. Mund të krijoni një komunitet duke përdorur aplikacionin e desktopit, shkarkoni këtu: {{desktopLink}}. Nëse jeni të rehatshëm me linjën e komandës, kontrolloni këtu: {{cliLink}}"
+ "create_community_not_available": "Ende nuk është në dispozicion në internet. Mund të krijoni një komunitet duke përdorur aplikacionin e desktopit, shkarkoni këtu: {{desktopLink}}. Nëse jeni të rehatshëm me linjën e komandës, kontrolloni këtu: {{cliLink}}",
+ "no_media_found": "Nuk u gjet asnje media",
+ "no_image_found": "Nuk u gjet asnje imazh",
+ "warning_spam": "Njoftim: i prekshëm nga sulmet e spamit"
}
\ No newline at end of file
diff --git a/public/translations/sv/default.json b/public/translations/sv/default.json
index 52b71064..ac30ac19 100644
--- a/public/translations/sv/default.json
+++ b/public/translations/sv/default.json
@@ -236,5 +236,8 @@
"new_stable_version": "Ny stabil version tillgänglig, seedit v{{newVersion}}. Du använder seedit v{{oldVersion}}.",
"download_latest_desktop": "Ladda ner den senaste skrivbordsversionen här: {{link}}",
"contribute_on_github": "Bidra på GitHub",
- "create_community_not_available": "Ännu inte tillgängligt på webben. Du kan skapa en community med hjälp av desktop-appen, ladda ner den här: {{desktopLink}}. Om du är bekant med kommandoraden, kolla här: {{cliLink}}"
+ "create_community_not_available": "Ännu inte tillgängligt på webben. Du kan skapa en community med hjälp av desktop-appen, ladda ner den här: {{desktopLink}}. Om du är bekant med kommandoraden, kolla här: {{cliLink}}",
+ "no_media_found": "Inget medium hittades",
+ "no_image_found": "Ingen bild hittades",
+ "warning_spam": "Varning: sårbar för spamattacker"
}
\ No newline at end of file
diff --git a/public/translations/te/default.json b/public/translations/te/default.json
index c00515d1..3e2af389 100644
--- a/public/translations/te/default.json
+++ b/public/translations/te/default.json
@@ -236,5 +236,8 @@
"new_stable_version": "కొత్త స్థిర వెర్షన్ అందుబాటులో ఉంది, seedit v{{newVersion}}. మీరు seedit v{{oldVersion}} ను ఉపయోగిస్తున్నారు.",
"download_latest_desktop": "ఇక్కడ తాజా డెస్క్టాప్ వెర్షన్ను డౌన్లోడ్ చేయండి: {{link}}",
"contribute_on_github": "GitHub లో అమరికలు",
- "create_community_not_available": "ఇప్పుడు వెబ్లో అందుబాటులో లేదు. డెస్క్టాప్ యాప్ను ఉపయోగించి ఒక కమ్యూనిటీని రూపొందించవచ్చు, ఇక్కడ డౌన్లోడ్ చేయండి: {{desktopLink}}. మీకు కమాండ్ లైన్తో సంతృప్తి ఉందానే, ఇక్కడ చూడండి: {{cliLink}}"
+ "create_community_not_available": "ఇప్పుడు వెబ్లో అందుబాటులో లేదు. డెస్క్టాప్ యాప్ను ఉపయోగించి ఒక కమ్యూనిటీని రూపొందించవచ్చు, ఇక్కడ డౌన్లోడ్ చేయండి: {{desktopLink}}. మీకు కమాండ్ లైన్తో సంతృప్తి ఉందానే, ఇక్కడ చూడండి: {{cliLink}}",
+ "no_media_found": "ఎటువంటి మీడియా కనబడలేదు",
+ "no_image_found": "ఎటువంటి చిత్రం కనబడలేదు",
+ "warning_spam": "హెచ్చరిక: స్పామ్ దాడికి తొడిలేందు"
}
\ No newline at end of file
diff --git a/public/translations/th/default.json b/public/translations/th/default.json
index 40859398..1047b873 100644
--- a/public/translations/th/default.json
+++ b/public/translations/th/default.json
@@ -236,5 +236,8 @@
"new_stable_version": "มีเวอร์ชันที่มีความเสถียรใหม่ที่ใช้ได้, seedit v{{newVersion}} คุณกำลังใช้ seedit v{{oldVersion}}",
"download_latest_desktop": "ดาวน์โหลดเวอร์ชันเดสก์ท็อปล่าสุดที่นี่: {{link}}",
"contribute_on_github": "มีส่วนร่วมบน GitHub",
- "create_community_not_available": "ยังไม่พร้อมใช้งานบนเว็บ คุณสามารถสร้างชุมชนโดยใช้แอปเดสก์ท็อป ดาวน์โหลดที่นี่: {{desktopLink}} หากคุณรู้สึกสบายใจกับบรรทัดคำสั่ง ตรวจสอบที่นี่: {{cliLink}}"
+ "create_community_not_available": "ยังไม่พร้อมใช้งานบนเว็บ คุณสามารถสร้างชุมชนโดยใช้แอปเดสก์ท็อป ดาวน์โหลดที่นี่: {{desktopLink}} หากคุณรู้สึกสบายใจกับบรรทัดคำสั่ง ตรวจสอบที่นี่: {{cliLink}}",
+ "no_media_found": "ไม่พบสื่อ",
+ "no_image_found": "ไม่พบรูปภาพ",
+ "warning_spam": "คำเตือน: อ่อนแอต่อการโจมตีสแปม"
}
\ No newline at end of file
diff --git a/public/translations/tr/default.json b/public/translations/tr/default.json
index 8406d58f..b5857e2c 100644
--- a/public/translations/tr/default.json
+++ b/public/translations/tr/default.json
@@ -236,5 +236,8 @@
"new_stable_version": "Yeni stabil sürüm kullanılabilir, seedit v{{newVersion}}. seedit v{{oldVersion}} kullanıyorsunuz.",
"download_latest_desktop": "Son masaüstü sürümünü buradan indirin: {{link}}",
"contribute_on_github": "GitHub üzerinde katkı sağlayın",
- "create_community_not_available": "Henüz web üzerinde kullanılamıyor. Masaüstü uygulamasını kullanarak bir topluluk oluşturabilirsiniz, buradan indirin: {{desktopLink}}. Komut satırıyla rahatsanız, buraya göz atın: {{cliLink}}"
+ "create_community_not_available": "Henüz web üzerinde kullanılamıyor. Masaüstü uygulamasını kullanarak bir topluluk oluşturabilirsiniz, buradan indirin: {{desktopLink}}. Komut satırıyla rahatsanız, buraya göz atın: {{cliLink}}",
+ "no_media_found": "Medya bulunamadı",
+ "no_image_found": "Resim bulunamadı",
+ "warning_spam": "Uyarı: spam saldırılarına karşı savunmasız"
}
\ No newline at end of file
diff --git a/public/translations/uk/default.json b/public/translations/uk/default.json
index 631d65ea..f1f5e495 100644
--- a/public/translations/uk/default.json
+++ b/public/translations/uk/default.json
@@ -236,5 +236,8 @@
"new_stable_version": "Нова стабільна версія доступна, seedit v{{newVersion}}. Ви використовуєте seedit v{{oldVersion}}.",
"download_latest_desktop": "Завантажте останню версію для робочого столу тут: {{link}}",
"contribute_on_github": "Сприяти на GitHub",
- "create_community_not_available": "Ще не доступно в Інтернеті. Ви можете створити спільноту за допомогою програми для робочого столу, завантажте її тут: {{desktopLink}}. Якщо ви впевнені в командному рядку, перевірте тут: {{cliLink}}"
+ "create_community_not_available": "Ще не доступно в Інтернеті. Ви можете створити спільноту за допомогою програми для робочого столу, завантажте її тут: {{desktopLink}}. Якщо ви впевнені в командному рядку, перевірте тут: {{cliLink}}",
+ "no_media_found": "Медіа не знайдено",
+ "no_image_found": "Зображення не знайдено",
+ "warning_spam": "Попередження: вразливий до атак спаму"
}
\ No newline at end of file
diff --git a/public/translations/ur/default.json b/public/translations/ur/default.json
index 502deb0a..800955e8 100644
--- a/public/translations/ur/default.json
+++ b/public/translations/ur/default.json
@@ -236,5 +236,8 @@
"new_stable_version": "نیو مستقر ورژن دستیاب ہے, seedit v{{newVersion}}۔ آپ seedit v{{oldVersion}} استعمال کر رہے ہیں۔",
"download_latest_desktop": "یہاں سب سے تازہ ڈیسک ٹاپ ورژن ڈاؤن لوڈ کریں: {{link}}",
"contribute_on_github": "GitHub پر شراکت کریں",
- "create_community_not_available": "ابھی تک ویب پر دستیاب نہیں ہے۔ آپ ڈیسک ٹاپ ایپ کا استعمال کرکے ایک کمیونٹی بنا سکتے ہیں، یہاں سے ڈاؤن لوڈ کریں: {{desktopLink}}۔ اگر آپ کمانڈ لائن کے ساتھ محتاج ہیں تو یہاں دیکھیں: {{cliLink}}"
+ "create_community_not_available": "ابھی تک ویب پر دستیاب نہیں ہے۔ آپ ڈیسک ٹاپ ایپ کا استعمال کرکے ایک کمیونٹی بنا سکتے ہیں، یہاں سے ڈاؤن لوڈ کریں: {{desktopLink}}۔ اگر آپ کمانڈ لائن کے ساتھ محتاج ہیں تو یہاں دیکھیں: {{cliLink}}",
+ "no_media_found": "کوئی میڈیا نہیں ملی",
+ "no_image_found": "کوئی تصویر نہیں ملی",
+ "warning_spam": "انتباہ: سپیم حملوں کے لئے آسان شکار"
}
\ No newline at end of file
diff --git a/public/translations/vi/default.json b/public/translations/vi/default.json
index e9f05ecb..382aa9f3 100644
--- a/public/translations/vi/default.json
+++ b/public/translations/vi/default.json
@@ -236,5 +236,8 @@
"new_stable_version": "Phiên bản ổn định mới có sẵn, seedit v{{newVersion}}. Bạn đang sử dụng seedit v{{oldVersion}}.",
"download_latest_desktop": "Tải xuống phiên bản máy tính để bàn mới nhất tại đây: {{link}}",
"contribute_on_github": "Đóng góp trên GitHub",
- "create_community_not_available": "Chưa có sẵn trên web. Bạn có thể tạo một cộng đồng bằng cách sử dụng ứng dụng máy tính để bàn, tải xuống ở đây: {{desktopLink}}. Nếu bạn thoải mái với dòng lệnh, kiểm tra ở đây: {{cliLink}}"
+ "create_community_not_available": "Chưa có sẵn trên web. Bạn có thể tạo một cộng đồng bằng cách sử dụng ứng dụng máy tính để bàn, tải xuống ở đây: {{desktopLink}}. Nếu bạn thoải mái với dòng lệnh, kiểm tra ở đây: {{cliLink}}",
+ "no_media_found": "Không tìm thấy phương tiện",
+ "no_image_found": "Không tìm thấy hình ảnh",
+ "warning_spam": "Cảnh báo: dễ bị tấn công spam"
}
\ No newline at end of file
diff --git a/public/translations/zh/default.json b/public/translations/zh/default.json
index 454fb264..e2656a05 100644
--- a/public/translations/zh/default.json
+++ b/public/translations/zh/default.json
@@ -236,5 +236,8 @@
"new_stable_version": "新的稳定版可用,seedit v{{newVersion}}。您正在使用seedit v{{oldVersion}}。",
"download_latest_desktop": "在这里下载最新的桌面版本: {{link}}",
"contribute_on_github": "在 GitHub 上贡献",
- "create_community_not_available": "尚未在Web上提供。您可以使用桌面应用程序创建社区,在此处下载:{{desktopLink}}。如果您熟悉命令行,请查看此处:{{cliLink}}"
+ "create_community_not_available": "尚未在Web上提供。您可以使用桌面应用程序创建社区,在此处下载:{{desktopLink}}。如果您熟悉命令行,请查看此处:{{cliLink}}",
+ "no_media_found": "未找到媒体",
+ "no_image_found": "未找到图像",
+ "warning_spam": "警告:易受垃圾邮件攻击"
}
\ No newline at end of file
diff --git a/src/components/post/embed/embed.module.css b/src/components/post/embed/embed.module.css
index c590a17c..a7d6fc65 100644
--- a/src/components/post/embed/embed.module.css
+++ b/src/components/post/embed/embed.module.css
@@ -54,7 +54,7 @@
@media (max-width: 768px) {
.videoEmbed {
max-height: 250px !important;
- width: 100% !important;
+ width: 100%;
}
}
diff --git a/src/components/post/post.module.css b/src/components/post/post.module.css
index f7f03e89..573239b7 100644
--- a/src/components/post/post.module.css
+++ b/src/components/post/post.module.css
@@ -108,6 +108,9 @@
color: var(--text-info);
font-size: x-small;
white-space: nowrap;
+ vertical-align: middle;
+ display: inline-block;
+ padding-bottom: 2px;
}
.domain a {
@@ -209,3 +212,17 @@
font-size: 10px;
cursor: pointer;
}
+
+.authorAvatar {
+ width: 18px;
+ display: inline-block;
+ position: relative;
+ padding-right: 1px;
+}
+
+.authorAvatar img {
+ width: 18px;
+ max-height: 18px;
+ position: absolute;
+ bottom: -5px;
+}
\ No newline at end of file
diff --git a/src/components/post/post.tsx b/src/components/post/post.tsx
index 914b71ec..ad7154e0 100644
--- a/src/components/post/post.tsx
+++ b/src/components/post/post.tsx
@@ -1,7 +1,7 @@
import { useState } from 'react';
import styles from './post.module.css';
import { Link, useLocation, useParams } from 'react-router-dom';
-import { Comment, useAuthorAddress, useBlock, useComment, useEditedComment, useSubplebbit } from '@plebbit/plebbit-react-hooks';
+import { Comment, useAuthorAddress, useAuthorAvatar, useBlock, useComment, useEditedComment, useSubplebbit } from '@plebbit/plebbit-react-hooks';
import { useTranslation } from 'react-i18next';
import { isPendingView, isPostView, isSubplebbitView } from '../../lib/utils/view-utils';
import { getCommentMediaInfoMemoized, getHasThumbnail } from '../../lib/utils/media-utils';
@@ -22,13 +22,14 @@ interface PostAuthorProps {
authorRole: string;
cid: string;
displayName: string;
+ imageUrl: string | undefined;
index?: number;
shortAddress: string;
shortAuthorAddress: string | undefined;
authorAddressChanged: boolean;
}
-const PostAuthor = ({ authorAddress, authorRole, cid, displayName, index, shortAddress, shortAuthorAddress, authorAddressChanged }: PostAuthorProps) => {
+const PostAuthor = ({ authorAddress, authorRole, cid, displayName, imageUrl, index, shortAddress, shortAuthorAddress, authorAddressChanged }: PostAuthorProps) => {
const isAuthorOwner = authorRole === 'owner';
const isAuthorAdmin = authorRole === 'admin';
const isAuthorModerator = authorRole === 'moderator';
@@ -38,6 +39,11 @@ const PostAuthor = ({ authorAddress, authorRole, cid, displayName, index, shortA
return (
<>
+ {imageUrl && (
+
+
+
+ )}
{displayName && {displayName} }
u/{shortAddress || shortAuthorAddress}
@@ -96,6 +102,7 @@ const Post = ({ post = {}, index }: PostProps) => {
} = post || {};
const { displayName, shortAddress } = author || {};
const { shortAuthorAddress, authorAddressChanged } = useAuthorAddress({ comment: post });
+ const { imageUrl } = useAuthorAvatar({ author });
const { t } = useTranslation();
const params = useParams();
@@ -203,6 +210,7 @@ const Post = ({ post = {}, index }: PostProps) => {
authorRole={authorRole}
cid={cid}
displayName={displayName}
+ imageUrl={imageUrl}
index={post?.index}
shortAddress={shortAddress}
shortAuthorAddress={shortAuthorAddress}
diff --git a/src/components/reply/reply.module.css b/src/components/reply/reply.module.css
index 735588bf..ca2be2eb 100644
--- a/src/components/reply/reply.module.css
+++ b/src/components/reply/reply.module.css
@@ -146,12 +146,6 @@
margin-left: -5px;
}
-@media (max-width: 768px) {
- .md {
- padding-right: 5px;
- }
-}
-
.moderatorBrackets {
color: var(--text-info);
}
@@ -279,4 +273,24 @@
width: 25px;
height: 9px;
margin: 5px 0 0 5px;
+}
+
+.authorAvatar {
+ width: 18px;
+ display: inline-block;
+ position: relative;
+ margin-right: 3px;
+}
+
+.authorAvatar img {
+ width: 18px;
+ max-height: 18px;
+ position: absolute;
+ bottom: -5px;
+}
+
+@media (max-width: 768px) {
+ .md {
+ padding-right: 5px;
+ }
}
\ No newline at end of file
diff --git a/src/components/reply/reply.tsx b/src/components/reply/reply.tsx
index 8daac0b3..d21761c6 100644
--- a/src/components/reply/reply.tsx
+++ b/src/components/reply/reply.tsx
@@ -1,5 +1,5 @@
import { Fragment, useEffect, useMemo, useState } from 'react';
-import { Comment, useAccountComment, useAuthorAddress, useBlock, useComment, useEditedComment, useSubplebbit } from '@plebbit/plebbit-react-hooks';
+import { Comment, useAccountComment, useAuthorAddress, useAuthorAvatar, useBlock, useComment, useEditedComment, useSubplebbit } from '@plebbit/plebbit-react-hooks';
import { flattenCommentsPages } from '@plebbit/plebbit-react-hooks/dist/lib/utils';
import { Link, useLocation, useParams } from 'react-router-dom';
import { useTranslation } from 'react-i18next';
@@ -27,10 +27,11 @@ interface ReplyAuthorProps {
authorRole: string;
cid: string;
displayName: string;
+ imageUrl: string | undefined;
shortAuthorAddress: string | undefined;
}
-const ReplyAuthor = ({ address, authorRole, cid, displayName, shortAuthorAddress }: ReplyAuthorProps) => {
+const ReplyAuthor = ({ address, authorRole, cid, displayName, imageUrl, shortAuthorAddress }: ReplyAuthorProps) => {
const isAuthorOwner = authorRole === 'owner';
const isAuthorAdmin = authorRole === 'admin';
const isAuthorModerator = authorRole === 'moderator';
@@ -39,6 +40,11 @@ const ReplyAuthor = ({ address, authorRole, cid, displayName, shortAuthorAddress
return (
<>
+ {imageUrl && (
+
+
+
+ )}
{displayName && (
{displayName}{' '}
@@ -235,8 +241,9 @@ const Reply = ({ cidOfReplyWithContext, depth = 0, isSingleComment, isSingleRepl
setCollapsed(!collapsed);
};
- const authorRole = subplebbit?.roles?.[reply.author?.address]?.role;
+ const authorRole = subplebbit?.roles?.[author?.address]?.role;
const { shortAuthorAddress } = useAuthorAddress({ comment: reply });
+ const { imageUrl } = useAuthorAvatar({ author });
const replies = useReplies(reply);
const [expanded, setExpanded] = useState(false);
const [isReplying, setIsReplying] = useState(false);
@@ -295,7 +302,14 @@ const Reply = ({ cidOfReplyWithContext, depth = 0, isSingleComment, isSingleRepl
[{collapsed ? '+' : '–'}]
-
+ {scoreString}{getFormattedTimeAgo(timestamp)}{' '}
{pinned && - {t('stickied_comment')}}
{collapsed && ({childrenString})}
diff --git a/src/lib/utils/media-utils.ts b/src/lib/utils/media-utils.ts
index 7d8e0159..0fe51e94 100644
--- a/src/lib/utils/media-utils.ts
+++ b/src/lib/utils/media-utils.ts
@@ -77,3 +77,43 @@ const getCommentMediaInfo = (comment: Comment) => {
};
export const getCommentMediaInfoMemoized = memoize(getCommentMediaInfo, { max: 1000 });
+
+export const getLinkMediaInfo = (link: string) => {
+ let mime: string | undefined;
+ try {
+ mime = extName(new URL(link).pathname.toLowerCase().replace('/', ''))[0]?.mime;
+ } catch (e) {
+ return;
+ }
+
+ const url = new URL(link);
+ const host = url.hostname;
+ let patternThumbnailUrl;
+
+ if (['youtube.com', 'www.youtube.com', 'youtu.be', 'www.youtu.be', 'm.youtube.com'].includes(host)) {
+ const videoId = host === 'youtu.be' ? url.pathname.slice(1) : url.searchParams.get('v');
+ patternThumbnailUrl = `https://img.youtube.com/vi/${videoId}/0.jpg`;
+ } else if (host.includes('streamable.com')) {
+ const videoId = url.pathname.split('/')[1];
+ patternThumbnailUrl = `https://cdn-cf-east.streamable.com/image/${videoId}.jpg`;
+ }
+
+ if (canEmbed(url)) {
+ return {
+ url: link,
+ type: 'iframe',
+ patternThumbnailUrl,
+ };
+ }
+
+ if (mime?.startsWith('image')) {
+ return { url: link, type: 'image' };
+ }
+ if (mime?.startsWith('video')) {
+ return { url: link, type: 'video' };
+ }
+ if (mime?.startsWith('audio')) {
+ return { url: link, type: 'audio' };
+ }
+ return { url: link, type: 'webpage' };
+};
diff --git a/src/views/settings/account-settings/account-settings.tsx b/src/views/settings/account-settings/account-settings.tsx
index 0ff26450..a9bc7432 100644
--- a/src/views/settings/account-settings/account-settings.tsx
+++ b/src/views/settings/account-settings/account-settings.tsx
@@ -57,6 +57,7 @@ const AccountSettings = () => {
return;
} else if (window.confirm(t('delete_confirm', { value: accountName }))) {
deleteAccount(accountName);
+ window.location.reload();
} else {
return;
}
diff --git a/src/views/settings/general-settings/general-settings.tsx b/src/views/settings/general-settings/general-settings.tsx
index b7a40e66..5261cbe8 100644
--- a/src/views/settings/general-settings/general-settings.tsx
+++ b/src/views/settings/general-settings/general-settings.tsx
@@ -34,7 +34,8 @@ const CheckForUpdates = () => {
const latestCommitHash = commitData[0].sha;
if (latestCommitHash.trim() !== commitRef.trim()) {
- const newVersionText = t('new_development_version', { newCommit: latestCommitHash.slice(0, 7), oldCommit: commitRef.slice(0, 7) }) + t('refresh_to_update');
+ const newVersionText =
+ t('new_development_version', { newCommit: latestCommitHash.slice(0, 7), oldCommit: commitRef.slice(0, 7) }) + ' ' + t('refresh_to_update');
alert(newVersionText);
updateAvailable = true;
}
@@ -48,7 +49,7 @@ const CheckForUpdates = () => {
);
}
} catch (error) {
- alert('Failed to fetch latest version info:' + error);
+ alert('Failed to fetch latest version info: ' + error);
} finally {
setLoading(false);
}
diff --git a/src/views/submit/submit.module.css b/src/views/submit/submit.module.css
index 0b16fa43..02bf1766 100644
--- a/src/views/submit/submit.module.css
+++ b/src/views/submit/submit.module.css
@@ -98,32 +98,6 @@ h1 {
padding: 2px 6px 3px;
}
-@media (max-width: 768px) {
- .formContent {
- width: 100%;
- }
-
- .box {
- width: 100%;
- box-sizing: border-box;
- }
-
- .input,
- .description {
- width: calc(100% - 6px);
- box-sizing: border-box;
- }
-
- .input {
- min-width: calc(100% - 6px);
- max-width: calc(100% - 6px);
- }
-
- h1 {
- font-size: 16px;
- }
-}
-
.subsDescription {
font-size: 13px;
font-weight: normal;
@@ -181,4 +155,48 @@ h1 {
.dropdownLink:hover {
color: var(--background);
+}
+
+.mediaPreview {
+ display: inline-block;
+ position: relative;
+ align-items: center;
+ margin-top: 10px;
+ font-size: smaller;
+ text-transform: capitalize;
+}
+
+.logoError {
+ padding-left: 10px;
+}
+
+.mediaPreview img, .mediaPreview iframe, .mediaPreview video {
+ max-width: 100%;
+ max-height: 300px;
+ box-sizing: border-box;
+}
+
+@media (max-width: 768px) {
+ .formContent {
+ width: 100%;
+ }
+
+ .box {
+ width: 100%;
+ box-sizing: border-box;
+ }
+
+ .input,
+ .description {
+ width: calc(100% - 6px);
+ box-sizing: border-box;
+ }
+
+ .input {
+ min-width: 100%;
+ }
+
+ h1 {
+ font-size: 16px;
+ }
}
\ No newline at end of file
diff --git a/src/views/submit/submit.tsx b/src/views/submit/submit.tsx
index 78a56637..ab96ade2 100644
--- a/src/views/submit/submit.tsx
+++ b/src/views/submit/submit.tsx
@@ -1,15 +1,17 @@
-import { ChangeEvent, useCallback, useEffect, useRef, useState } from 'react';
+import { ChangeEvent, forwardRef, useCallback, useEffect, useRef, useState } from 'react';
import { Link, useLocation, useNavigate, useParams } from 'react-router-dom';
import { PublishCommentOptions, useAccount, usePublishComment, useSubplebbit } from '@plebbit/plebbit-react-hooks';
import { getShortAddress } from '@plebbit/plebbit-js';
import { Trans, useTranslation } from 'react-i18next';
import { create } from 'zustand';
+import { getRandomSubplebbits, useDefaultSubplebbitAddresses } from '../../lib/utils/addresses-utils';
import { alertChallengeVerificationFailed } from '../../lib/utils/challenge-utils';
+import { getLinkMediaInfo } from '../../lib/utils/media-utils';
import { isValidURL } from '../../lib/utils/url-utils';
+import { isSubmitView } from '../../lib/utils/view-utils';
import styles from './submit.module.css';
import challengesStore from '../../hooks/use-challenges';
-import { getRandomSubplebbits, useDefaultSubplebbitAddresses } from '../../lib/utils/addresses-utils';
-import { isSubmitView } from '../../lib/utils/view-utils';
+import Embed from '../../components/post/embed/';
type SubmitState = {
subplebbitAddress: string | undefined;
@@ -52,6 +54,69 @@ const useSubmitStore = create((set) => ({
resetSubmitStore: () => set({ subplebbitAddress: undefined, title: undefined, content: undefined, link: undefined, publishCommentOptions: undefined }),
}));
+const UrlField = forwardRef((_, ref) => {
+ const { t } = useTranslation();
+ const { setSubmitStore } = useSubmitStore();
+ const [mediaError, setMediaError] = useState(false);
+ const [url, setUrl] = useState('');
+ const [mediaType, setMediaType] = useState('');
+
+ useEffect(() => {
+ const mediaInfo = getLinkMediaInfo(url);
+ if (mediaInfo?.type) {
+ setMediaType(mediaInfo.type);
+ }
+ }, [url]);
+
+ let mediaComponent;
+
+ if (mediaType === 'image') {
+ mediaComponent = setMediaError(true)} />;
+ } else if (mediaType === 'video') {
+ mediaComponent = ;
+ } else if (mediaType === 'webpage') {
+ mediaComponent = <>>;
+ } else if (mediaType === 'audio') {
+ mediaComponent = ;
+ } else if (mediaType === 'iframe') {
+ mediaComponent = ;
+ }
+
+ return (
+ <>
+ {url && isValidURL(url) ? (
+ {mediaType}
+ ) : (
+ <>
+ url
+ ({t('optional')})
+ >
+ )}
+