📦 💄 Upgrade packages and style
This commit is contained in:
@@ -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';
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user