perf: 支持配置公共ZeroSSL授权

pull/229/head
xiaojunnuo 2024-10-25 21:47:28 +08:00
parent 7aac1460c3
commit a90d1e68ee
5 changed files with 18 additions and 10 deletions

View File

@ -40,7 +40,7 @@ export abstract class CertApplyBasePlugin extends AbstractTaskPlugin {
name: "a-input", name: "a-input",
vModel: "value", vModel: "value",
}, },
rules: [{ type: "email" }], rules: [{ type: "email", message: "请输入正确的邮箱" }],
required: true, required: true,
order: -1, order: -1,
helper: "请输入邮箱", helper: "请输入邮箱",

View File

@ -162,7 +162,7 @@ export class CertApplyPlugin extends CertApplyBasePlugin {
maybeNeed: true, maybeNeed: true,
required: false, required: false,
helper: helper:
"需要提供EAB授权\nZeroSSL请前往[zerossl开发者中心](https://app.zerossl.com/developer),生成 'EAB Credentials'\n Google:请查看[google获取eab帮助文档](https://gitee.com/certd/certd/blob/v2/doc/google/google.md)用过一次后会绑定邮箱后续复用EAB要用同一个邮箱", "需要提供EAB授权\nZeroSSL请前往[zerossl开发者中心](https://app.zerossl.com/developer),生成 'EAB Credentials'\n Google:请查看[google获取eab帮助文档](https://certd.docmirror.cn/guide/use/google/)用过一次后会绑定邮箱后续复用EAB要用同一个邮箱",
mergeScript: ` mergeScript: `
return { return {
show: ctx.compute(({form})=>{ show: ctx.compute(({form})=>{
@ -182,7 +182,7 @@ export class CertApplyPlugin extends CertApplyBasePlugin {
maybeNeed: true, maybeNeed: true,
required: false, required: false,
helper: helper:
"google服务账号授权与EAB授权选填其中一个[服务账号授权获取方法](https://gitee.com/certd/certd/blob/v2/doc/google/google.md)\n服务账号授权需要配置代理或者服务器本身在海外", "google服务账号授权与EAB授权选填其中一个[服务账号授权获取方法](https://certd.docmirror.cn/guide/use/google/)\n服务账号授权需要配置代理或者服务器本身在海外",
mergeScript: ` mergeScript: `
return { return {
show: ctx.compute(({form})=>{ show: ctx.compute(({form})=>{

View File

@ -28,9 +28,9 @@ export default {
}); });
} }
options.value = array; options.value = array;
if (props.modelValue == null && options.value.length > 0) { // if (props.modelValue == null && options.value.length > 0) {
ctx.emit("update:modelValue", options.value[0].value); // ctx.emit("update:modelValue", options.value[0].value);
} // }
} }
onCreate(); onCreate();

View File

@ -11,9 +11,17 @@
<div class="helper"> <div class="helper">
<div>设置公共Google EAB授权给用户使用避免用户自己去翻墙获取Google EAB授权</div> <div>设置公共Google EAB授权给用户使用避免用户自己去翻墙获取Google EAB授权</div>
<div> <div>
<a href="https://gitee.com/certd/certd/blob/v2/doc/google/google.md#21-%E7%9B%B4%E6%8E%A5%E8%8E%B7%E5%8F%96eab-%E6%8E%A8%E8%8D%90"> <a href="https://certd.docmirror.cn/guide/use/google/">获取Google EAB授权方法 </a>
获取Google EAB授权方法 </div>
</a> </div>
</a-form-item>
<a-form-item label="公共ZeroSSL EAB授权" :name="['CertApply', 'sysSetting', 'input', 'zerosslCommonEabAccessId']">
<access-selector v-model:model-value="formState.CertApply.sysSetting.input.zerosslCommonEabAccessId" type="eab" from="sys"></access-selector>
<div class="helper">
<div>设置公共ZeroSSL EAB授权给用户使用避免用户自己去翻墙获取Zero EAB授权注意ZeroSSL免费证书有数量限制</div>
<div>
<a href="https://app.zerossl.com/developer">zerossl开发者中心获取EAB </a>
</div> </div>
</div> </div>
</a-form-item> </a-form-item>

View File

@ -78,7 +78,7 @@ export class SshAccess extends BaseAccess implements ConnectConfig {
@AccessInput({ @AccessInput({
title: '是否Windows', title: '是否Windows',
helper: '如果是Windows主机请勾选此项\n并且需要windows[安装OpenSSH](https://gitee.com/certd/certd/blob/v2/doc/host/host.md)', helper: '如果是Windows主机请勾选此项\n并且需要windows[安装OpenSSH](https://certd.docmirror.cn/guide/use/host/windows.html)',
component: { component: {
name: 'a-switch', name: 'a-switch',
vModel: 'checked', vModel: 'checked',