feat: rename email to contactEmail

This commit is contained in:
Fu Diwei
2025-01-04 13:39:08 +08:00
parent da76d1065e
commit 5387c373e0
5 changed files with 17 additions and 17 deletions

View File

@@ -29,7 +29,7 @@ const MULTIPLE_INPUT_DELIMITER = ";";
const initFormModel = (): Partial<WorkflowApplyNodeConfig> => {
return {
keyAlgorithm: "RSA2048",
propagationTimeout: 120,
propagationTimeout: 60,
disableFollowCNAME: true,
};
};
@@ -48,7 +48,7 @@ const ApplyNodeForm = ({ node }: ApplyNodeFormProps) => {
.split(MULTIPLE_INPUT_DELIMITER)
.every((e) => validDomainName(e, true));
}, t("common.errmsg.domain_invalid")),
email: z.string({ message: t("workflow_node.apply.form.email.placeholder") }).email("common.errmsg.email_invalid"),
email: z.string({ message: t("workflow_node.apply.form.contact_email.placeholder") }).email("common.errmsg.email_invalid"),
providerAccessId: z
.string({ message: t("workflow_node.apply.form.provider_access.placeholder") })
.min(1, t("workflow_node.apply.form.provider_access.placeholder")),
@@ -139,12 +139,12 @@ const ApplyNodeForm = ({ node }: ApplyNodeFormProps) => {
</Form.Item>
<Form.Item
name="email"
label={t("workflow_node.apply.form.email.label")}
name="contactEmail"
label={t("workflow_node.apply.form.contact_email.label")}
rules={[formRule]}
tooltip={<span dangerouslySetInnerHTML={{ __html: t("workflow_node.apply.form.email.tooltip") }}></span>}
tooltip={<span dangerouslySetInnerHTML={{ __html: t("workflow_node.apply.form.contact_email.tooltip") }}></span>}
>
<FormFieldEmailSelect placeholder={t("workflow_node.apply.form.email.placeholder")} />
<FormFieldEmailSelect placeholder={t("workflow_node.apply.form.contact_email.placeholder")} />
</Form.Item>
<Form.Item className="mb-0">

View File

@@ -24,9 +24,9 @@
"workflow_node.apply.form.domains.tooltip": "Wildcard domain: *.example.com",
"workflow_node.apply.form.domains.multiple_input_modal.title": "Change domains",
"workflow_node.apply.form.domains.multiple_input_modal.placeholder": "Please enter domain",
"workflow_node.apply.form.email.label": "Contact email",
"workflow_node.apply.form.email.placeholder": "Please enter contact email",
"workflow_node.apply.form.email.tooltip": "Contact information required for SSL certificate application. Please pay attention to the <a href=\"https://letsencrypt.org/docs/rate-limits/\" target=\"_blank\">rate limits</a>.",
"workflow_node.apply.form.contact_email.label": "Contact email",
"workflow_node.apply.form.contact_email.placeholder": "Please enter contact email",
"workflow_node.apply.form.contact_email.tooltip": "Contact information required for SSL certificate application. Please pay attention to the <a href=\"https://letsencrypt.org/docs/rate-limits/\" target=\"_blank\">rate limits</a>.",
"workflow_node.apply.form.provider_access.label": "DNS provider authorization",
"workflow_node.apply.form.provider_access.placeholder": "Please select an authorization of DNS provider",
"workflow_node.apply.form.provider_access.tooltip": "Used to manage DNS records during ACME DNS-01 authentication.",

View File

@@ -24,9 +24,9 @@
"workflow_node.apply.form.domains.tooltip": "泛域名表示形式为:*.example.com",
"workflow_node.apply.form.domains.multiple_input_modal.title": "修改域名",
"workflow_node.apply.form.domains.multiple_input_modal.placeholder": "请输入域名",
"workflow_node.apply.form.email.label": "联系邮箱",
"workflow_node.apply.form.email.placeholder": "请输入联系邮箱",
"workflow_node.apply.form.email.tooltip": "申请签发 SSL 证书时所需的联系方式。请注意 Let's Encrypt 账户注册的速率限制。<br><a href=\"https://letsencrypt.org/zh-cn/docs/rate-limits/\" target=\"_blank\">点此了解更多</a>。",
"workflow_node.apply.form.contact_email.label": "联系邮箱",
"workflow_node.apply.form.contact_email.placeholder": "请输入联系邮箱",
"workflow_node.apply.form.contact_email.tooltip": "申请签发 SSL 证书时所需的联系方式。请注意 Let's Encrypt 账户注册的速率限制。<br><a href=\"https://letsencrypt.org/zh-cn/docs/rate-limits/\" target=\"_blank\">点此了解更多</a>。",
"workflow_node.apply.form.provider_access.label": "DNS 提供商授权",
"workflow_node.apply.form.provider_access.placeholder": "请选择 DNS 提供商授权",
"workflow_node.apply.form.provider_access.tooltip": "用于 ACME DNS-01 认证时操作域名解析记录,注意与部署阶段所需的主机提供商相区分。",