feat: setting page

This commit is contained in:
GyDi
2021-12-20 00:01:32 +08:00
parent 13ceb1e445
commit 2b89b5fe73
9 changed files with 323 additions and 121 deletions

View File

@@ -12,14 +12,18 @@ export async function getVersion() {
export interface ConfigType {
port: number;
mode: string;
ipv6: boolean;
"socket-port": number;
"allow-lan": boolean;
"log-level": string;
"mixed-port": number;
"redir-port": number;
"socks-port": number;
"tproxy-port": number;
}
/// Get current base configs
export async function getConfigs() {
export async function getClashConfig() {
return (await getAxios()).get("/configs") as Promise<ConfigType>;
}