mirror of
https://github.com/ajnart/homarr.git
synced 2025-11-09 23:15:46 +01:00
Remove useless code
Old code supposed to interract with qBittorrent
This commit is contained in:
@@ -11,7 +11,6 @@ import {
|
|||||||
Space,
|
Space,
|
||||||
} from '@mantine/core';
|
} from '@mantine/core';
|
||||||
import { useConfig } from '../../tools/state';
|
import { useConfig } from '../../tools/state';
|
||||||
import { pingQbittorrent } from '../../tools/api';
|
|
||||||
import { serviceItem } from '../../tools/types';
|
import { serviceItem } from '../../tools/types';
|
||||||
import AddItemShelfItem from './AddAppShelfItem';
|
import AddItemShelfItem from './AddAppShelfItem';
|
||||||
import { AppShelfItemWrapper } from './AppShelfItemWrapper';
|
import { AppShelfItemWrapper } from './AppShelfItemWrapper';
|
||||||
@@ -27,13 +26,6 @@ const AppShelf = (props: any) => {
|
|||||||
setConfig(JSON.parse(localConfig));
|
setConfig(JSON.parse(localConfig));
|
||||||
}
|
}
|
||||||
}, []);
|
}, []);
|
||||||
if (config.services && config.services.length === 0) {
|
|
||||||
config.services.forEach((service) => {
|
|
||||||
if (service.type === 'qBittorrent') {
|
|
||||||
pingQbittorrent(service);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<SimpleGrid m="xl" cols={5} spacing="xl">
|
<SimpleGrid m="xl" cols={5} spacing="xl">
|
||||||
|
|||||||
@@ -1,7 +0,0 @@
|
|||||||
import { serviceItem } from './types';
|
|
||||||
|
|
||||||
export function pingQbittorrent(service: serviceItem): any {
|
|
||||||
console.log('Getting service.cookie for service: ', service);
|
|
||||||
if (!service.cookie) service.cookie = 'Test';
|
|
||||||
else console.log(service.cookie);
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user