From 99b4a3152dbe99f4833998f162d8559ce34161d6 Mon Sep 17 00:00:00 2001 From: Elias Benbourenane Date: Fri, 31 Jan 2025 17:46:44 -0500 Subject: [PATCH] Torrent list state filtering (#33) * perf: Switched from DOM-based to state-based in the main render loop logic This removes the need to make complicated CSS selectors that would slow down the app. It also improves debugability and readability. * feat: Client-side state filtering * style: Don't wrap the torrent list's header on small screens * perf: Keep a dictionary of DOM element references --- pkg/qbit/server/templates/index.html | 177 +++++++++++++++------------ 1 file changed, 99 insertions(+), 78 deletions(-) diff --git a/pkg/qbit/server/templates/index.html b/pkg/qbit/server/templates/index.html index 85b9658..a8b99dc 100644 --- a/pkg/qbit/server/templates/index.html +++ b/pkg/qbit/server/templates/index.html @@ -1,15 +1,21 @@ {{ define "index" }}
-
-

Active Torrents

-
- - + @@ -41,10 +47,27 @@
{{ end }} \ No newline at end of file