feat: 会员中心 hgcloud 主题初始化 + drone 部署步骤
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
- 解压官方默认主题 default_yfMBA.tar.gz 到 clientarea/hgcloud/ - .gitignore 排除压缩包和临时解压目录 - drone 新增步骤: 同步 hgcloud 到 /clientarea/template/pc/
This commit is contained in:
38
clientarea/hgcloud/api/security.js
Normal file
38
clientarea/hgcloud/api/security.js
Normal file
@@ -0,0 +1,38 @@
|
||||
// api 秘钥列表
|
||||
function apiList(params) {
|
||||
return Axios.get(`/api`, { params })
|
||||
}
|
||||
// 创建api秘钥
|
||||
function createApi(params) {
|
||||
return Axios.post(`/api`, params)
|
||||
}
|
||||
// APi白名单设置
|
||||
function whiteApi(params) {
|
||||
return Axios.put(`/api/${params.id}/white_list`, params)
|
||||
}
|
||||
// 删除API秘钥
|
||||
function delApi(params) {
|
||||
return Axios.delete(`/api/${params.id}`, params)
|
||||
}
|
||||
|
||||
// ssh 密钥列表
|
||||
function sshList(params) {
|
||||
return Axios.get(`/ssh_key`, { params })
|
||||
}
|
||||
// 创建SSH密钥
|
||||
function createSsh(params) {
|
||||
return Axios.post(`/ssh_key`, params)
|
||||
}
|
||||
// 编辑SSH密钥
|
||||
function editSsh(params) {
|
||||
return Axios.put(`/ssh_key/${params.id}`, params)
|
||||
}
|
||||
// 删除SSH秘钥
|
||||
function delSsh(params) {
|
||||
return Axios.delete(`/ssh_key/${params.id}`, params)
|
||||
}
|
||||
|
||||
// 日志列表
|
||||
function logList(params) {
|
||||
return Axios.get(`/log`, { params })
|
||||
}
|
||||
Reference in New Issue
Block a user