feat: Add speed test functionality to API info display

- Add speed test tag with gauge icon for each API route
- Integrate tcptest.cn service for API endpoint performance testing
- Implement handleSpeedTest callback to open speed test in new tab
- Add Tag component import from @douyinfe/semi-ui
- Use Gauge icon with white circular tag styling
- Position speed test tag before API route for better visibility
- URL encoding handles special characters for proper test URL generation
- Remove unused IconTestScoreStroked import and clean up comments

The speed test feature allows users to quickly test API endpoint
performance by clicking a small circular tag that opens the
tcptest.cn speed testing service with the encoded API URL.
This commit is contained in:
Apple\Apple
2025-06-09 19:03:04 +08:00
parent 410b8afe6d
commit 845b748ffe
2 changed files with 21 additions and 11 deletions

View File

@@ -1585,5 +1585,6 @@
"请输入说明": "Please enter the description",
"如:香港线路": "e.g. Hong Kong line",
"请联系管理员在系统设置中配置API信息": "Please contact the administrator to configure API information in the system settings.",
"确定要删除此API信息吗": "Are you sure you want to delete this API information?"
"确定要删除此API信息吗": "Are you sure you want to delete this API information?",
"测速": "Speed Test"
}