fix: resolve frontend build errors and warnings

This commit is contained in:
spinline
2026-02-05 18:49:51 +03:00
parent e2a8e17eae
commit 6e4a9e2d51
4 changed files with 4 additions and 2 deletions

1
Cargo.lock generated
View File

@@ -695,6 +695,7 @@ dependencies = [
"console_log", "console_log",
"futures", "futures",
"gloo-net 0.5.0", "gloo-net 0.5.0",
"js-sys",
"leptos", "leptos",
"leptos_router", "leptos_router",
"log", "log",

View File

@@ -40,3 +40,4 @@ web-sys = { version = "0.3", features = [
] } ] }
shared = { path = "../shared" } shared = { path = "../shared" }
tailwind_fuse = "0.3.2" tailwind_fuse = "0.3.2"
js-sys = "0.3.85"

View File

@@ -384,7 +384,7 @@ pub fn TorrentTable() -> impl IntoView {
shared::TorrentStatus::Error => "badge-error badge-soft", shared::TorrentStatus::Error => "badge-error badge-soft",
_ => "badge-ghost" _ => "badge-ghost"
}; };
let t_hash = t.hash.clone(); let _t_hash = t.hash.clone();
let t_hash_click = t.hash.clone(); let t_hash_click = t.hash.clone();
let (timer_id, set_timer_id) = create_signal(Option::<i32>::None); let (timer_id, set_timer_id) = create_signal(Option::<i32>::None);

View File

@@ -39,7 +39,7 @@ pub enum AppEvent {
Notification(SystemNotification), Notification(SystemNotification),
} }
#[derive(Debug, Serialize, Deserialize, Clone, ToSchema)] #[derive(Debug, Serialize, Deserialize, Clone, ToSchema, PartialEq, Eq)]
pub struct SystemNotification { pub struct SystemNotification {
pub level: NotificationLevel, pub level: NotificationLevel,
pub message: String, pub message: String,