mirror of
https://github.com/bestnite/sub2clash.git
synced 2025-10-27 01:21:17 +00:00
Refactor(frontend): Refactor frontend using Lit
Refactor(database): use gorm+sqlite instead of bbolt Feat: Add delete short link functionality Fix: Load correct configuration template during meta config conversion
This commit is contained in:
36
server/frontend/src/interface.ts
Normal file
36
server/frontend/src/interface.ts
Normal file
@@ -0,0 +1,36 @@
|
||||
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 };
|
||||
}
|
||||
Reference in New Issue
Block a user