- handler/vpn.go: 新增 GetMyVpnConnections,返回当前用户的在线 VPN 连接列表(IP/连接时间)及 max_conns_per_user 上限 - router.go: 注册 GET /api/me/vpn/connections(普通用户可访问) - ProfileView.vue: 新增"我的 VPN 连接"区块,含 n/max 徽章、 IPv4/IPv6/连接时间表格,底部提示异常连接请修改密码 - zh.ts/en.ts: 新增 myVpnConnections/noConnections/ abnormalConnectionHint 国际化
frontend
This template should help get you started developing with Vue 3 in Vite.
Recommended IDE Setup
VS Code + Vue (Official) (and disable Vetur).
Recommended Browser Setup
- Chromium-based browsers (Chrome, Edge, Brave, etc.):
- Firefox:
Type Support for .vue Imports in TS
TypeScript cannot handle type information for .vue imports by default, so we replace the tsc CLI with vue-tsc for type checking. In editors, we need Volar to make the TypeScript language service aware of .vue types.
Customize configuration
See Vite Configuration Reference.
Project Setup
npm install
Compile and Hot-Reload for Development
npm run dev
Type-Check, Compile and Minify for Production
npm run build