From f35b716f935678a44b7090eb924118d9d184349f Mon Sep 17 00:00:00 2001 From: spinline Date: Wed, 11 Feb 2026 19:03:36 +0300 Subject: [PATCH] chore: cleanup frontend unused imports and variables --- frontend/src/components/torrent/add_torrent.rs | 2 +- frontend/src/store.rs | 2 +- frontend/src/utils/notification.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/src/components/torrent/add_torrent.rs b/frontend/src/components/torrent/add_torrent.rs index 824a00d..55efaa6 100644 --- a/frontend/src/components/torrent/add_torrent.rs +++ b/frontend/src/components/torrent/add_torrent.rs @@ -10,7 +10,7 @@ use crate::api; pub fn AddTorrentDialog( on_close: Callback<()>, ) -> impl IntoView { - let store = use_context::().expect("TorrentStore not provided"); + let _store = use_context::().expect("TorrentStore not provided"); let uri = signal(String::new()); let is_loading = signal(false); diff --git a/frontend/src/store.rs b/frontend/src/store.rs index 1313823..d65b23f 100644 --- a/frontend/src/store.rs +++ b/frontend/src/store.rs @@ -2,7 +2,7 @@ use futures::StreamExt; use gloo_net::eventsource::futures::EventSource; use leptos::prelude::*; use leptos::task::spawn_local; -use shared::{AppEvent, GlobalStats, NotificationLevel, SystemNotification, Torrent}; +use shared::{AppEvent, GlobalStats, NotificationLevel, Torrent}; use std::collections::HashMap; use struct_patch::traits::Patch; use base64::{Engine as _, engine::general_purpose::STANDARD as BASE64}; diff --git a/frontend/src/utils/notification.rs b/frontend/src/utils/notification.rs index 25965c0..e8fecfe 100644 --- a/frontend/src/utils/notification.rs +++ b/frontend/src/utils/notification.rs @@ -1,6 +1,6 @@ use wasm_bindgen::prelude::*; use web_sys::{Notification, NotificationOptions}; -use leptos::prelude::*; + /// Request browser notification permission from user pub async fn request_notification_permission() -> bool {