File tree Expand file tree Collapse file tree 3 files changed +2
-5
lines changed
Expand file tree Collapse file tree 3 files changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,6 @@ import EndpointDetailsPage from "./pages/endpoints/details/index";
1919import EndpointSSEDebugPage from "./pages/endpoints/sse-debug" ;
2020import ExamplesPage from "./pages/examples" ;
2121import IconComparisonPage from "./pages/icon-comparison" ;
22- import ComponentsTestPage from "./pages/components-test" ;
2322
2423function 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 >
Original file line number Diff line number Diff 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,
Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments