mirror of
https://github.com/ajnart/homarr.git
synced 2025-11-18 03:01:09 +01:00
🔀 Merge branch 'dev' into next-13
This commit is contained in:
@@ -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[];
|
||||
};
|
||||
@@ -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[];
|
||||
};
|
||||
@@ -1,4 +1,5 @@
|
||||
import { SSRConfig } from 'next-i18next';
|
||||
|
||||
import { ConfigType } from './config';
|
||||
|
||||
export type DashboardServerSideProps = {
|
||||
|
||||
Reference in New Issue
Block a user