mirror of
https://github.com/bestnite/sub2clash.git
synced 2025-10-26 17:14:24 +00:00
Refactor(database): use gorm+sqlite instead of bbolt Feat: Add delete short link functionality Fix: Load correct configuration template during meta config conversion
37 lines
649 B
TypeScript
37 lines
649 B
TypeScript
export interface RuleProvider {
|
|
behavior: string;
|
|
url: string;
|
|
group: string;
|
|
prepend: boolean;
|
|
name: string;
|
|
}
|
|
|
|
export interface Rule {
|
|
rule: string;
|
|
prepend: boolean;
|
|
}
|
|
|
|
export interface Rename {
|
|
old: string;
|
|
new: string;
|
|
}
|
|
|
|
export interface Config {
|
|
clashType: number;
|
|
subscriptions?: string[];
|
|
proxies?: string[];
|
|
userAgent?: string;
|
|
refresh?: boolean;
|
|
autoTest?: boolean;
|
|
lazy?: boolean;
|
|
nodeList?: boolean;
|
|
ignoreCountryGroup?: boolean;
|
|
useUDP?: boolean;
|
|
template?: string;
|
|
ruleProviders?: RuleProvider[];
|
|
rules?: Rule[];
|
|
sort?: string;
|
|
remove?: string;
|
|
replace?: { [key: string]: string };
|
|
}
|