feat: system proxy setting

This commit is contained in:
GyDi
2022-09-07 01:51:43 +08:00
parent 2462e68ba1
commit f9b91fa189
7 changed files with 256 additions and 116 deletions

View File

@@ -121,7 +121,11 @@ export async function patchVergeConfig(payload: CmdType.VergeConfig) {
}
export async function getSystemProxy() {
return invoke<any>("get_sys_proxy");
return invoke<{
enable: boolean;
server: string;
bypass: string;
}>("get_sys_proxy");
}
export async function changeClashCore(clashCore: string) {

View File

@@ -144,6 +144,7 @@ declare namespace CmdType {
enable_silent_start?: boolean;
enable_system_proxy?: boolean;
enable_proxy_guard?: boolean;
proxy_guard_duration?: number;
system_proxy_bypass?: string;
web_ui_list?: string[];
theme_setting?: {