feat(par): 管理后台增加 PSK 管理页面

- 新增 /psks 页面:列表展示、生成新PSK、启用/禁用、复制密钥
- 版本号唯一,密钥支持手动输入或随机生成
- 侧边菜单增加「PSK 管理」入口
This commit is contained in:
mediabot-pt
2026-06-29 22:09:23 +08:00
parent 8565629a80
commit 94c0d2a398
4 changed files with 219 additions and 1 deletions

View File

@@ -45,7 +45,11 @@ export default {
users: {
list: () => api.get('/admin/accounts'),
setTrustLevel: (id, level) => api.post(`/admin/accounts/${id}/trust-level`, null, { params: { level } }),
},
psks: {
list: () => api.get('/admin/psks'),
add: (data) => api.post('/admin/psks', data),
toggle: (id) => api.post(`/admin/psks/${id}/toggle`)
},
health: () => api.get('/health', { baseURL: '' })
}