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

@ -57,7 +57,7 @@ interface Progress {
total: Int!
}
type Query {
torrents(filter: TorrentsFilter, pagination: Pagination): [Torrent!]!
torrents(filter: TorrentsFilter): [Torrent!]!
fsEntry(path: String!): FsEntry
}
type ResolverFS implements Dir & FsEntry {
@ -97,6 +97,7 @@ type Torrent {
files: [TorrentFile!]!
excludedFiles: [TorrentFile!]!
peers: [TorrentPeer!]!
downloading: Boolean!
}
type TorrentFS implements Dir & FsEntry {
name: String!
@ -135,4 +136,5 @@ input TorrentsFilter {
bytesCompleted: IntFilter
bytesMissing: IntFilter
peersCount: IntFilter
downloading: BooleanFilter
}