- handler/vpn.go: KickUserClient 踢线后设置 status=0 并失效所有会话, 阻止客户端自动重连;新增自检,目标为当前管理员时返回 400 - AdminView.vue: handleKick 调用 API 前自检,自己则提示去修改密码 - zh.ts/en.ts: 新增 cannotKickSelf,更新 confirmKick 提示含禁用账号
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