Add detail popover for torrents list

This commit is contained in:
Manuel
2023-01-18 21:24:55 +01:00
parent e950987359
commit 1bf3b1312b
8 changed files with 328 additions and 85 deletions

View File

@@ -0,0 +1,28 @@
import { Label, NormalizedTorrent } from '@ctrl/shared-torrent';
export type NormalizedTorrentListResponse = {
/**
* Available labels on all torrent clients
*/
labels: Label[];
/**
* Feteched and normalized torrents of all download clients
*/
torrents: ConcatenatedTorrentList[];
/**
* Indicated wether all requests were a success
*/
allSuccess: boolean;
/**
* Missing download clients
*/
missingDownloadClients: boolean;
};
type ConcatenatedTorrentList = {
appId: string;
torrents: NormalizedTorrent[];
};