Rename all crates to start with letterbox-

This commit is contained in:
2025-02-13 09:48:24 -08:00
parent d1beaded09
commit 2076596f50
15 changed files with 82 additions and 73 deletions

View File

@@ -3,10 +3,10 @@ use std::collections::HashSet;
use chrono::{DateTime, Datelike, Duration, Local, Utc};
use human_format::{Formatter, Scales};
use itertools::Itertools;
use letterbox_shared::compute_color;
use log::{debug, error, info};
use seed::{prelude::*, *};
use seed_hooks::{state_access::CloneState, topo, use_state};
use shared::compute_color;
use web_sys::HtmlElement;
use crate::{
@@ -697,7 +697,12 @@ fn render_attachements(
let default = "UNKNOWN_FILE".to_string();
let filename = a.filename.as_ref().unwrap_or(&default);
let host = seed::window().location().host().expect("couldn't get host");
let url = shared::urls::download_attachment(Some(&host), &a.id, &a.idx, filename);
let url = letterbox_shared::urls::download_attachment(
Some(&host),
&a.id,
&a.idx,
filename,
);
let mut fmtr = Formatter::new();
fmtr.with_separator(" ");
fmtr.with_scales(Scales::Binary());