feat: migrate to proxied clash api methods

This commit is contained in:
divocat
2025-10-14 22:36:14 +03:00
parent 7cd32910d9
commit ffa0073441
18 changed files with 189 additions and 276 deletions

View File

@@ -1,4 +0,0 @@
export function getBaseUrl(): string {
const { protocol, hostname } = window.location;
return `${protocol}//${hostname}`;
}

View File

@@ -1,9 +1,3 @@
export function getClashApiUrl(): string {
const { hostname } = window.location;
return `http://${hostname}:9090`;
}
export function getClashWsUrl(): string {
const { hostname } = window.location;

View File

@@ -1,4 +1,3 @@
export * from './getBaseUrl';
export * from './parseValueList';
export * from './injectGlobalStyles';
export * from './withTimeout';