🔀 Merge branch 'dev' into next-13

This commit is contained in:
Manuel
2023-01-31 22:21:15 +01:00
110 changed files with 1900 additions and 566 deletions

View File

@@ -1,28 +0,0 @@
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[];
};

View File

@@ -0,0 +1,25 @@
import { NormalizedTorrent } from '@ctrl/shared-torrent';
import { UsenetQueueItem } from '../../../../widgets/useNet/types';
export type NormalizedDownloadQueueResponse = {
apps: NormalizedDownloadAppStat[];
failedApps: string[];
};
export type NormalizedDownloadAppStat = {
success: boolean;
appId: string;
} & (TorrentTotalDownload | UsenetTotalDownloas);
export type TorrentTotalDownload = {
type: 'torrent';
torrents: NormalizedTorrent[];
totalDownload: number;
totalUpload: number;
};
export type UsenetTotalDownloas = {
type: 'usenet';
totalDownload: number;
nzbs: UsenetQueueItem[];
};

View File

@@ -1,4 +1,5 @@
import { SSRConfig } from 'next-i18next';
import { ConfigType } from './config';
export type DashboardServerSideProps = {