torrent list

This commit is contained in:
royalcat 2024-04-27 14:00:34 +03:00
parent d8ee8a3a24
commit 0d7aac068c
23 changed files with 1285 additions and 698 deletions
ui/lib/api

View file

@ -6,11 +6,20 @@ mutation MarkTorrentDownload($infohash: String!) {
}
}
query ListTorrents {
torrents {
query ListTorrents($downloading: Boolean) {
torrents(filter: {
downloading: {
eq: $downloading
}
}) {
name
infohash
bytesCompleted
bytesMissing
peers {
ip
downloadRate
clientName
}
}
}