Files
Homarr/tools/types.ts
Aj - Thomas 2c461a6695 Add a module enabler
Add module enabler in settings.
This loops over all the exported Modules in the components/modules folder and renders them. (Interpreted language magic/ metaclasses)
2022-05-10 20:33:11 +02:00

38 lines
557 B
TypeScript

export interface Settings {
searchUrl: string;
searchBar: boolean;
enabledModules: string[];
[key: string]: any;
}
export interface Config {
services: serviceItem[];
settings: Settings;
}
export const ServiceTypeList = [
'Other',
'Sonarr',
'Radarr',
'Lidarr',
'qBittorrent',
'Plex',
'Emby',
];
export type ServiceType =
| 'Other'
| 'Sonarr'
| 'Radarr'
| 'Lidarr'
| 'qBittorrent'
| 'Plex'
| 'Emby';
export interface serviceItem {
[x: string]: any;
name: string;
type: string;
url: string;
icon: string;
}