mirror of
https://github.com/MoonTechLab/LunaTV.git
synced 2026-02-13 19:24:41 +08:00
48 lines
991 B
TypeScript
48 lines
991 B
TypeScript
export interface AdminConfig {
|
|
ConfigSubscribtion: {
|
|
URL: string;
|
|
AutoUpdate: boolean;
|
|
LastCheck: string;
|
|
};
|
|
ConfigFile: string;
|
|
SiteConfig: {
|
|
SiteName: string;
|
|
Announcement: string;
|
|
SearchDownstreamMaxPage: number;
|
|
SiteInterfaceCacheTime: number;
|
|
DoubanProxyType: string;
|
|
DoubanProxy: string;
|
|
DoubanImageProxyType: string;
|
|
DoubanImageProxy: string;
|
|
DisableYellowFilter: boolean;
|
|
FluidSearch: boolean;
|
|
};
|
|
UserConfig: {
|
|
Users: {
|
|
username: string;
|
|
role: 'user' | 'admin' | 'owner';
|
|
banned?: boolean;
|
|
}[];
|
|
};
|
|
SourceConfig: {
|
|
key: string;
|
|
name: string;
|
|
api: string;
|
|
detail?: string;
|
|
from: 'config' | 'custom';
|
|
disabled?: boolean;
|
|
}[];
|
|
CustomCategories: {
|
|
name?: string;
|
|
type: 'movie' | 'tv';
|
|
query: string;
|
|
from: 'config' | 'custom';
|
|
disabled?: boolean;
|
|
}[];
|
|
}
|
|
|
|
export interface AdminConfigResult {
|
|
Role: 'owner' | 'admin';
|
|
Config: AdminConfig;
|
|
}
|