fix: frontend build after bump version for tauri-plugin-mihomo

This commit is contained in:
Tunglies
2026-06-10 20:01:19 +08:00
parent 358dff9c62
commit e1380b9bab
6 changed files with 13 additions and 9 deletions
+1 -1
View File
@@ -2,7 +2,7 @@ import { useLocalStorage } from 'foxact/use-local-storage'
const defaultClashLog: IClashLog = {
enable: true,
logLevel: 'info',
logLevel: 'INFO',
logFilter: 'all',
logOrder: 'asc',
}
+5 -5
View File
@@ -14,11 +14,11 @@ type LogType = ILogItem['type']
const DEFAULT_LOG_TYPES: LogType[] = ['debug', 'info', 'warning', 'error']
const LOG_LEVEL_FILTERS: Record<LogLevel, LogType[]> = {
debug: DEFAULT_LOG_TYPES,
info: ['info', 'warning', 'error'],
warning: ['warning', 'error'],
error: ['error'],
silent: [],
DEBUG: DEFAULT_LOG_TYPES,
INFO: ['info', 'warning', 'error'],
WARNING: ['warning', 'error'],
ERROR: ['error'],
SILENT: [],
}
const clampLogs = (logs: ILogItem[]): ILogItem[] =>
+1 -1
View File
@@ -3,7 +3,7 @@ import { MihomoWebSocket, Traffic } from 'tauri-plugin-mihomo-api'
import { useMihomoWsSubscription } from './use-mihomo-ws-subscription'
import { useTrafficMonitorEnhanced } from './use-traffic-monitor'
const FALLBACK_TRAFFIC: Traffic = { up: 0, down: 0 }
const FALLBACK_TRAFFIC: Traffic = { up: 0, down: 0, upTotal: 0, downTotal: 0 }
const DUPLICATE_TRAFFIC_WINDOW_MS = 50
let lastTrafficSignature = ''