feat: clash meta core supports
This commit is contained in:
@@ -86,6 +86,10 @@ export async function getSystemProxy() {
|
||||
return invoke<any>("get_sys_proxy");
|
||||
}
|
||||
|
||||
export async function changeClashCore(clashCore: string) {
|
||||
return invoke<any>("change_clash_core", { clashCore });
|
||||
}
|
||||
|
||||
export async function restartSidecar() {
|
||||
return invoke<void>("restart_sidecar");
|
||||
}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/**
|
||||
* Some interface for clash api
|
||||
*/
|
||||
export namespace ApiType {
|
||||
export namespace ApiType {
|
||||
export interface ConfigData {
|
||||
port: number;
|
||||
mode: string;
|
||||
@@ -125,6 +125,7 @@ export namespace CmdType {
|
||||
|
||||
export interface VergeConfig {
|
||||
language?: string;
|
||||
clash_core?: string;
|
||||
theme_mode?: "light" | "dark";
|
||||
theme_blur?: boolean;
|
||||
traffic_graph?: boolean;
|
||||
|
||||
Reference in New Issue
Block a user