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