mirror of
https://github.com/usual2970/certimate.git
synced 2025-06-24 13:19:56 +00:00
detail ajustments
This commit is contained in:
parent
1b1b5939c5
commit
86838f305b
@ -33,7 +33,7 @@ const DeployToTencentTEO = () => {
|
||||
}, [data]);
|
||||
|
||||
useEffect(() => {
|
||||
const resp = ZoneIdSchema.safeParse(data.config?.zoneId);
|
||||
const resp = zoneIdSchema.safeParse(data.config?.zoneId);
|
||||
if (!resp.success) {
|
||||
setError({
|
||||
...error,
|
||||
@ -51,8 +51,8 @@ const DeployToTencentTEO = () => {
|
||||
message: t("common.errmsg.domain_invalid"),
|
||||
});
|
||||
|
||||
const ZoneIdSchema = z.string().regex(/^zone-[0-9a-zA-Z]{9}$/, {
|
||||
message: t("common.errmsg.domain_invalid"),
|
||||
const zoneIdSchema = z.string().regex(/^zone-[0-9a-zA-Z]{9}$/, {
|
||||
message: t("common.errmsg.zoneid_invalid"),
|
||||
});
|
||||
|
||||
return (
|
||||
@ -66,7 +66,7 @@ const DeployToTencentTEO = () => {
|
||||
onChange={(e) => {
|
||||
const temp = e.target.value;
|
||||
|
||||
const resp = ZoneIdSchema.safeParse(temp);
|
||||
const resp = zoneIdSchema.safeParse(temp);
|
||||
if (!resp.success) {
|
||||
setError({
|
||||
...error,
|
||||
|
@ -51,6 +51,7 @@
|
||||
"common.errmsg.host_invalid": "Please enter the correct domain name or IP",
|
||||
"common.errmsg.ip_invalid": "Please enter IP",
|
||||
"common.errmsg.url_invalid": "Please enter a valid URL",
|
||||
"common.errmsg.zoneid_invalid": "Please enter Zone ID",
|
||||
|
||||
"common.provider.aliyun": "Alibaba Cloud",
|
||||
"common.provider.aliyun.oss": "Alibaba Cloud - OSS",
|
||||
|
@ -51,6 +51,8 @@
|
||||
"common.errmsg.host_invalid": "请输入正确的域名或 IP 地址",
|
||||
"common.errmsg.ip_invalid": "请输入正确的 IP 地址",
|
||||
"common.errmsg.url_invalid": "请输入正确的 URL",
|
||||
"common.errmsg.zoneid_invalid": "请输入正确的 Zone ID",
|
||||
|
||||
"common.provider.aliyun": "阿里云",
|
||||
"common.provider.aliyun.oss": "阿里云 - OSS",
|
||||
"common.provider.aliyun.cdn": "阿里云 - CDN",
|
||||
@ -81,3 +83,4 @@
|
||||
"common.provider.telegram": "Telegram",
|
||||
"common.provider.lark": "飞书"
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user