Skip to content

Commit

Permalink
feat: ui support clash rs alpha
Browse files Browse the repository at this point in the history
  • Loading branch information
greenhat616 committed Sep 20, 2024
1 parent 760df0c commit 19c4618
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
1 change: 1 addition & 0 deletions frontend/interface/src/service/core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ export const VALID_CORE: Core[] = [
{ name: "Mihomo", core: "mihomo" },
{ name: "Mihomo Alpha", core: "mihomo-alpha" },
{ name: "Clash Rust", core: "clash-rs" },
{ name: "Clash Rust Alpha", core: "clash-rs-alpha" },
];

export const fetchCoreVersion = async () => {
Expand Down
7 changes: 6 additions & 1 deletion frontend/interface/src/service/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,12 @@ import { Clash } from "./clash";
export interface VergeConfig {
app_log_level?: "trace" | "debug" | "info" | "warn" | "error" | string;
language?: string;
clash_core?: "mihomo" | "mihomo-alpha" | "clash-rs" | "clash";
clash_core?:
| "mihomo"
| "mihomo-alpha"
| "clash-rs"
| "clash-rs-alpha"
| "clash";
theme_mode?: "light" | "dark" | "system";
theme_blur?: boolean;
traffic_graph?: boolean;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ export const getImage = (core: ClashCore) => {
return ClashMeta;
}

case "clash-rs": {
case "clash-rs":
case "clash-rs-alpha": {
return ClashRs;
}

Expand Down

0 comments on commit 19c4618

Please sign in to comment.