Fix embeds in `Markdown` component
Changes the display of embeds from being markdown images to markdown links. Mimics the way embeds work on the desktop app and allows other embeds to work too like pdfs, videos, etc.
-
httpd: Increase MAX_BLOB_SIZE to 10 MB
-
httpd: Infer mime type of file blob in
file_by_oidhandlerInstead of relying on the mime_type query string the endpoint should try to infer the file type.
5 files changed
+98
-32
98ad210b
→
0d7a96e3
modified radicle-httpd/Cargo.lock
@@ -376,6 +376,17 @@ dependencies = [
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -1006,6 +1017,15 @@ dependencies = [
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -1675,7 +1695,7 @@ dependencies = [
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -1683,6 +1703,7 @@ dependencies = [
|
|
|
|
|
|
| + | |
|
|
|
|
|
@@ -2565,6 +2586,12 @@ dependencies = [
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
modified radicle-httpd/Cargo.toml
@@ -3,7 +3,7 @@ name = "radicle-httpd"
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -27,6 +27,7 @@ base64 = { version = "0.22.1" }
|
|
|
|
|
|
| + | |
|
|
|
|
|
modified radicle-httpd/src/raw.rs
@@ -17,7 +17,7 @@ use crate::api::query::RawQuery;
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -161,7 +161,7 @@ fn blob_response(
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -172,6 +172,8 @@ async fn file_by_oid_handler(
|
|
|
|
|
|
| + | |
| + | |
|
|
|
|
|
@@ -180,10 +182,10 @@ async fn file_by_oid_handler(
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified src/components/Markdown.svelte
@@ -1,6 +1,4 @@
|
|
| - | |
| - | |
|
|
|
|
|
@@ -24,9 +22,6 @@
|
|
|
|
|
|
| - | |
| - | |
| - | |
|
|
|
|
|
@@ -114,6 +109,67 @@
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -144,27 +200,6 @@
|
|
|
|
|
|
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
|
|
|
|
|
modified src/lib/file.ts
@@ -27,6 +27,7 @@ export const mimes: Record<string, string> = {
|
|
|
|
|
|
| + | |
|
|
|
|
|