Skip to content

Commit c929097

Browse files
committed
update: 详情页0ms也显示
1 parent 2a271f5 commit c929097

File tree

3 files changed

+2
-5
lines changed

3 files changed

+2
-5
lines changed

web/src/App.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ import EndpointDetailsPage from "./pages/endpoints/details/index";
1919
import EndpointSSEDebugPage from "./pages/endpoints/sse-debug";
2020
import ExamplesPage from "./pages/examples";
2121
import IconComparisonPage from "./pages/icon-comparison";
22-
import ComponentsTestPage from "./pages/components-test";
2322

2423
function App() {
2524
return (
@@ -44,7 +43,6 @@ function App() {
4443
<Route element={<ExamplesPage />} path="/docs" />
4544
<Route element={<DebugPage />} path="/debug" />
4645
<Route element={<IconComparisonPage />} path="/icon-comparison" />
47-
<Route element={<ComponentsTestPage />} path="/components-test" />
4846
<Route element={<DashboardPage />} path="/" />
4947
</Routes>
5048
</DefaultLayout>

web/src/components/layout/settings-drawer.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ export const SettingsDrawer: React.FC<SettingsDrawerProps> = ({
3535
const {
3636
settings,
3737
updateTheme,
38-
toggleBeginnerMode,
3938
togglePrivacyMode,
4039
toggleExperimentalMode,
4140
updateSettings,

web/src/components/tunnels/network-quality-card.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export const NetworkQualityCard = ({
1717

1818
// 计算延迟质量等级 (越低越好)
1919
const getLatencyQuality = (latency: number) => {
20-
if (latency === 0) return { level: "未知", percentage: 0 };
20+
if (latency === 0) return { level: "", percentage: 0 };
2121
if (latency <= 50) return { level: "优秀", percentage: 90 };
2222
if (latency <= 100) return { level: "良好", percentage: 70 };
2323
if (latency <= 200) return { level: "一般", percentage: 50 };
@@ -84,7 +84,7 @@ export const NetworkQualityCard = ({
8484
}}
8585
>
8686
<div className="text-sm md:text-base font-bold mb-1 text-pink-700 dark:text-pink-300">
87-
{ping > 0 ? `${ping}ms` : "—"}
87+
{ping >= 0 ? `${ping}ms` : "—"}
8888
</div>
8989
<div className="text-xs font-medium opacity-90 text-pink-600 dark:text-pink-400">
9090
延迟 {latencyQuality.level}

0 commit comments

Comments
 (0)