chore: update

This commit is contained in:
oomeow
2025-10-01 12:14:07 +08:00
Unverified
parent ae9e4faa7b
commit 3c8b6fa320
6 changed files with 108 additions and 85 deletions

View File

@@ -280,7 +280,7 @@ export const EnhancedTrafficStats = () => {
{/* 统计卡片区域 */}
{statCards.map((card, _index) => (
<Grid key={card.title} size={4}>
<CompactStatCard {...card} />
<CompactStatCard {...(card as StatCardProps)} />
</Grid>
))}
</Grid>

View File

@@ -197,12 +197,18 @@ export async function calcuProxies(): Promise<{
),
);
const _global: IProxyGroupItem = {
const _global = {
...global,
all: global?.all?.map((item) => generateItem(item)) || [],
};
return { global: _global, direct, groups, records: proxyRecord, proxies };
return {
global: _global as IProxyGroupItem,
direct: direct as IProxyItem,
groups,
records: proxyRecord as Record<string, IProxyItem>,
proxies: (proxies as IProxyItem[]) ?? [],
};
}
export async function calcuProxyProviders() {