torrent cleanup

This commit is contained in:
royalcat 2024-11-15 16:39:56 +03:00
parent b069b3ad1c
commit fc6b838cf5
24 changed files with 1316 additions and 395 deletions
ui/lib/api

View file

@ -45,6 +45,7 @@ input IntFilter @oneOf {
}
type Mutation {
torrentDaemon: TorrentDaemonMutation @resolver
qbitTorrentDaemon: QBitTorrentDaemonMutation @resolver
uploadFile(dir: String!, file: Upload!): Boolean!
dedupeStorage: Int!
}
@ -56,6 +57,9 @@ interface Progress {
current: Int!
total: Int!
}
type QBitTorrentDaemonMutation {
cleanup(dryRun: Boolean!): Int! @resolver
}
type QBitTorrentDaemonQuery {
torrents: [QTorrent!]! @resolver
}
@ -66,7 +70,7 @@ type QTorrent {
}
type Query {
torrentDaemon: TorrentDaemonQuery @resolver
qbittorrentDaemon: QBitTorrentDaemonQuery @resolver
qbitTorrentDaemon: QBitTorrentDaemonQuery @resolver
fsEntry(path: String!): FsEntry
}
type ResolverFS implements Dir & FsEntry {