From 206fee9ff91165b6e0d56df7f98d5dd3a7e859b1 Mon Sep 17 00:00:00 2001
From: Denozordec
Date: Tue, 31 Mar 2026 16:59:53 +0700
Subject: [PATCH] Refactor Mihomo page layout and remove unused components
- Removed the Tabs component and associated state variable to simplify the Mihomo page structure.
- Updated the card descriptions for clarity and improved user guidance on proxy settings.
- Enhanced the layout for displaying proxies by introducing a new section with clearer instructions and a more organized presentation of nodes.
---
web/src/routes/mihomo/+page.svelte | 80 ++++++++++++++++++------------
1 file changed, 49 insertions(+), 31 deletions(-)
diff --git a/web/src/routes/mihomo/+page.svelte b/web/src/routes/mihomo/+page.svelte
index 7b07281..8e2d24a 100644
--- a/web/src/routes/mihomo/+page.svelte
+++ b/web/src/routes/mihomo/+page.svelte
@@ -9,7 +9,6 @@
} from '$lib/api/client.js';
import type { MihomoConnectionsResponse, MihomoMetaResponse } from '$lib/api/mihomo-types.js';
import { formatBytes } from '$lib/format.js';
- import * as Tabs from '$lib/components/ui/tabs/index.js';
import * as Table from '$lib/components/ui/table/index.js';
import * as Card from '$lib/components/ui/card/index.js';
import { Button } from '$lib/components/ui/button/index.js';
@@ -43,7 +42,6 @@
const POLL_MS = 8000;
- let tab = $state('summary');
let loading = $state(true);
let err = $state(null);
let rows = $state([]);
@@ -185,12 +183,6 @@