Added simple editor for the text under the banner, stored HTML is sanitized. Fixes #17

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-13 14:51:50 +02:00
co-authored by Claude Opus 5.5
parent 0f48160fb4
commit d610479c52
12 changed files with 558 additions and 136 deletions
+4 -1
View File
@@ -13,6 +13,8 @@ actix-session = { version = "0.10.0", optional = true, features = ["cookie-sessi
console_error_panic_hook = "0.1.7"
# Used by the multipart codec of server_fn; needed directly to check a request before it gets there
multer = { version = "3", optional = true }
# Sanitizes the HTML of the text shown on the public page
ammonia = { version = "4", optional = true }
cfg-if = "1"
leptos = { version = "0.8.22", features = ["multipart"] }
leptos_meta = { version = "0.8" }
@@ -22,7 +24,7 @@ leptos_router = { version = "0.8" }
serde = { version = "1", features = ["derive"] }
serde_json = "1.0.117"
wasm-bindgen = "=0.2.129"
web-sys = { version = "0.3.69", features = ["Navigator", "Blob", "DomRect", "Element", "File", "FileList", "FormData", "HtmlInputElement", "MouseEvent", "Url"] }
web-sys = { version = "0.3.69", features = ["Navigator", "Blob", "ClipboardEvent", "DataTransfer", "DomRect", "Element", "File", "FileList", "FormData", "HtmlDocument", "HtmlInputElement", "MouseEvent", "Url"] }
lazy_static = "1.4.0"
chrono = { version = "0.4.38", features = ["serde"]}
sqlx = { version = "0.8.0", optional = true, features = ["runtime-tokio-rustls", "postgres", "chrono", "rust_decimal", "uuid"] }
@@ -55,6 +57,7 @@ ssr = [
"dep:leptos_actix",
"dep:actix-session",
"dep:multer",
"dep:ammonia",
"dep:sqlx",
"dep:lettre",
"dep:charts-rs",