mirror of
https://github.com/ajnart/homarr.git
synced 2025-11-13 00:45:47 +01:00
50 lines
744 B
TypeScript
50 lines
744 B
TypeScript
import { OptionValues } from '../components/modules/modules';
|
|
|
|
export interface Settings {
|
|
searchUrl: string;
|
|
}
|
|
|
|
export interface Config {
|
|
name: string;
|
|
services: serviceItem[];
|
|
settings: Settings;
|
|
modules: {
|
|
[key: string]: ConfigModule;
|
|
};
|
|
}
|
|
|
|
interface ConfigModule {
|
|
title: string;
|
|
enabled: boolean;
|
|
options: {
|
|
[key: string]: OptionValues;
|
|
};
|
|
}
|
|
|
|
export const ServiceTypeList = [
|
|
'Other',
|
|
'Emby',
|
|
'Lidarr',
|
|
'Plex',
|
|
'Radarr',
|
|
'Sonarr',
|
|
'qBittorrent',
|
|
];
|
|
export type ServiceType =
|
|
| 'Other'
|
|
| 'Emby'
|
|
| 'Lidarr'
|
|
| 'Plex'
|
|
| 'Radarr'
|
|
| 'Sonarr'
|
|
| 'qBittorrent';
|
|
|
|
export interface serviceItem {
|
|
id: string;
|
|
name: string;
|
|
type: string;
|
|
url: string;
|
|
icon: string;
|
|
apiKey?: string;
|
|
}
|