mirror of
https://github.com/certd/certd.git
synced 2025-11-25 09:10:11 +08:00
perf: 支持又拍云cdn
This commit is contained in:
35
packages/ui/certd-server/src/plugins/plugin-upyun/access.ts
Normal file
35
packages/ui/certd-server/src/plugins/plugin-upyun/access.ts
Normal file
@@ -0,0 +1,35 @@
|
||||
import {AccessInput, BaseAccess, IsAccess} from '@certd/pipeline';
|
||||
|
||||
/**
|
||||
* 这个注解将注册一个授权配置
|
||||
* 在certd的后台管理系统中,用户可以选择添加此类型的授权
|
||||
*/
|
||||
@IsAccess({
|
||||
name: 'upyun',
|
||||
title: '又拍云',
|
||||
desc: '',
|
||||
icon: 'svg:icon-upyun',
|
||||
})
|
||||
export class UpyunAccess extends BaseAccess {
|
||||
|
||||
@AccessInput({
|
||||
title: '账号',
|
||||
component: {
|
||||
placeholder: '又拍云账号',
|
||||
},
|
||||
required: true,
|
||||
})
|
||||
username = '';
|
||||
@AccessInput({
|
||||
title: '密码',
|
||||
component: {
|
||||
placeholder: '又拍云密码',
|
||||
},
|
||||
required: true,
|
||||
encrypt: true,
|
||||
})
|
||||
password = '';
|
||||
|
||||
}
|
||||
|
||||
new UpyunAccess();
|
||||
Reference in New Issue
Block a user