Files
Homarr/src/tools/types.ts

50 lines
744 B
TypeScript
Raw Normal View History

import { OptionValues } from '../components/modules/modules';
2022-05-01 14:46:06 +02:00
export interface Settings {
searchUrl: string;
}
2022-04-30 21:34:41 +02:00
export interface Config {
name: string;
2022-04-30 21:34:41 +02:00
services: serviceItem[];
2022-05-01 14:46:06 +02:00
settings: Settings;
modules: {
[key: string]: ConfigModule;
};
}
interface ConfigModule {
title: string;
enabled: boolean;
options: {
[key: string]: OptionValues;
};
2022-04-30 21:39:59 +02:00
}
2022-05-01 14:46:06 +02:00
export const ServiceTypeList = [
'Other',
'Emby',
'Lidarr',
'Plex',
'Radarr',
'Sonarr',
'qBittorrent',
];
export type ServiceType =
| 'Other'
| 'Emby'
| 'Lidarr'
| 'Plex'
| 'Radarr'
| 'Sonarr'
| 'qBittorrent';
2022-05-01 14:46:06 +02:00
export interface serviceItem {
2022-05-21 01:26:24 +02:00
id: string;
2022-05-01 14:46:06 +02:00
name: string;
type: string;
url: string;
icon: string;
apiKey?: string;
2022-05-01 14:46:06 +02:00
}