From ea9dd566147a9acfee9660977e8da081acdd5d72 Mon Sep 17 00:00:00 2001 From: Daan Wijns Date: Tue, 26 May 2020 09:07:09 +0200 Subject: [PATCH] sorting and filtering --- README.md | 10 ++ src/components/Torrent.vue | 2 +- src/services/qbit.js | 11 +- src/store/index.js | 4 +- src/views/Dashboard.vue | 263 +++++++++++++++++++++++++------------ 5 files changed, 204 insertions(+), 86 deletions(-) diff --git a/README.md b/README.md index 07be655c..fa07b19c 100644 --- a/README.md +++ b/README.md @@ -40,6 +40,16 @@ The sleekest looking WEBUI for qBittorrent made with Vuejs! * works on QBittorrent V4.2 and later +### Sorting/Filtring + +example queries: + +- s name asc => sort by name ascending +- sort size desc => sort by size descending +- f ubuntu => filter by torrent-name that contains 'ubuntu' +- f done => filter all completed torrents +- f busy => filter all downloading torrents + ## Contributing I'll gladly accept help/pull requests & advice! (this is my first project of this nature, pls be kind 😛 ). diff --git a/src/components/Torrent.vue b/src/components/Torrent.vue index 54298de5..86d25c6f 100644 --- a/src/components/Torrent.vue +++ b/src/components/Torrent.vue @@ -137,7 +137,7 @@