Torrent actions UI fully working (backend not yet)

This commit is contained in:
Igor Katson 2023-11-24 16:32:39 +00:00
parent c2dd367794
commit 0b8580dacd
No known key found for this signature in database
GPG key ID: B4EC22B66D61A3F5
3 changed files with 145 additions and 6 deletions

View file

@ -69,8 +69,13 @@ export interface LiveTorrentStats {
} | null;
}
export const STATE_INITIALIZING = 'initializing';
export const STATE_PAUSED = 'paused';
export const STATE_LIVE = 'live';
export const STATE_ERROR = 'error';
export interface TorrentStats {
state: string,
state: 'initializing' | 'paused' | 'live' | 'error',
error: string | null,
progress_bytes: number,
finished: boolean,