📦 💄 Upgrade packages and style

This commit is contained in:
ajnart
2022-06-07 10:36:47 +02:00
parent de0c625f88
commit b72afc2270
7 changed files with 82 additions and 94 deletions

View File

@@ -6,7 +6,6 @@ import Head from 'next/head';
import { MantineProvider, ColorScheme, ColorSchemeProvider } from '@mantine/core';
import { NotificationsProvider } from '@mantine/notifications';
import { useHotkeys } from '@mantine/hooks';
import Layout from '../components/layout/Layout';
import { ConfigProvider } from '../tools/state';
import { theme } from '../tools/theme';
import { styles } from '../tools/styles';

View File

@@ -24,34 +24,34 @@ async function Post(req: NextApiRequest, res: NextApiResponse) {
}
if (qBittorrentService) {
torrents.push(
...((
...(
await new QBittorrent({
baseUrl: qBittorrentService.url,
username: qBittorrentService.username,
password: qBittorrentService.password,
}).getAllData()
).torrents)
).torrents
);
}
if (delugeService) {
torrents.push(
...((
...(
await new Deluge({
baseUrl: delugeService.url,
password: delugeService.password,
}).getAllData()
).torrents)
).torrents
);
}
if (transmissionService) {
torrents.push(
...((
...(
await new Transmission({
baseUrl: transmissionService.url,
username: transmissionService.username,
password: transmissionService.password,
}).getAllData()
).torrents)
).torrents
);
}
res.status(200).json(torrents);