fix: resolve frontend build errors and warnings
This commit is contained in:
1
Cargo.lock
generated
1
Cargo.lock
generated
@@ -695,6 +695,7 @@ dependencies = [
|
||||
"console_log",
|
||||
"futures",
|
||||
"gloo-net 0.5.0",
|
||||
"js-sys",
|
||||
"leptos",
|
||||
"leptos_router",
|
||||
"log",
|
||||
|
||||
@@ -40,3 +40,4 @@ web-sys = { version = "0.3", features = [
|
||||
] }
|
||||
shared = { path = "../shared" }
|
||||
tailwind_fuse = "0.3.2"
|
||||
js-sys = "0.3.85"
|
||||
|
||||
@@ -384,7 +384,7 @@ pub fn TorrentTable() -> impl IntoView {
|
||||
shared::TorrentStatus::Error => "badge-error badge-soft",
|
||||
_ => "badge-ghost"
|
||||
};
|
||||
let t_hash = t.hash.clone();
|
||||
let _t_hash = t.hash.clone();
|
||||
let t_hash_click = t.hash.clone();
|
||||
|
||||
let (timer_id, set_timer_id) = create_signal(Option::<i32>::None);
|
||||
|
||||
@@ -39,7 +39,7 @@ pub enum AppEvent {
|
||||
Notification(SystemNotification),
|
||||
}
|
||||
|
||||
#[derive(Debug, Serialize, Deserialize, Clone, ToSchema)]
|
||||
#[derive(Debug, Serialize, Deserialize, Clone, ToSchema, PartialEq, Eq)]
|
||||
pub struct SystemNotification {
|
||||
pub level: NotificationLevel,
|
||||
pub message: String,
|
||||
|
||||
Reference in New Issue
Block a user