mirror of
https://github.com/ajnart/homarr.git
synced 2025-11-11 07:55:52 +01:00
63 lines
973 B
TypeScript
63 lines
973 B
TypeScript
import { OptionValues } from '../components/modules/modules';
|
|
|
|
export interface Settings {
|
|
searchUrl: string;
|
|
title?: string;
|
|
logo?: string;
|
|
favicon?: 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',
|
|
'Deluge',
|
|
'Lidarr',
|
|
'Plex',
|
|
'Radarr',
|
|
'Readarr',
|
|
'Sonarr',
|
|
'qBittorrent',
|
|
'Transmission',
|
|
];
|
|
export type ServiceType =
|
|
| 'Other'
|
|
| 'Emby'
|
|
| 'Deluge'
|
|
| 'Lidarr'
|
|
| 'Plex'
|
|
| 'Radarr'
|
|
| 'Readarr'
|
|
| 'Sonarr'
|
|
| 'qBittorrent'
|
|
| 'Transmission';
|
|
|
|
export interface serviceItem {
|
|
id: string;
|
|
name: string;
|
|
type: string;
|
|
url: string;
|
|
icon: string;
|
|
category?: string;
|
|
apiKey?: string;
|
|
password?: string;
|
|
username?: string;
|
|
openedUrl?: string;
|
|
}
|