rewrote website with leptos

This commit is contained in:
Philippe Loctaux 2024-05-02 18:36:00 +02:00
parent f3a6e1c8a5
commit b274a41939
78 changed files with 3853 additions and 2397 deletions

View file

@ -20,7 +20,7 @@ fn main() {
let metadata = MetadataList::process_folder(dir, true);
let json = match metadata.to_json() {
let json = match metadata.to_pretty_json() {
Ok(json) => json,
Err(e) => {
eprintln!("failed to serialize json: {e}");

View file

@ -165,8 +165,8 @@ impl MetadataList {
Self(files)
}
pub fn to_json(&self) -> serde_json::Result<String> {
serde_json::to_string(&self.0)
pub fn to_pretty_json(&self) -> serde_json::Result<String> {
serde_json::to_string_pretty(&self.0)
}
}