feat: complete modernization with shadcn, stateless auth, and performance optimizations
All checks were successful
Build MIPS Binary / build (push) Successful in 5m20s

This commit is contained in:
spinline
2026-02-10 22:16:36 +03:00
parent 8815727620
commit fddc81365b
18 changed files with 1150 additions and 2615 deletions

View File

@@ -4,7 +4,7 @@ use leptos::prelude::*;
use leptos::task::spawn_local;
use shared::{AppEvent, GlobalStats, NotificationLevel, SystemNotification, Torrent};
use std::collections::HashMap;
use struct_patch::traits::Patchable;
use struct_patch::traits::Patch;
use base64::{Engine as _, engine::general_purpose::STANDARD as BASE64};
#[derive(Clone, Debug, PartialEq)]
@@ -137,8 +137,10 @@ pub fn provide_torrent_store() {
}
AppEvent::Update(patch) => {
torrents_for_sse.update(|map| {
if let Some(t) = map.get_mut(&patch.hash) {
t.apply(patch);
if let Some(hash) = patch.hash.as_ref() {
if let Some(t) = map.get_mut(hash) {
t.apply(patch);
}
}
});
}