From f3267bf13737744be6ffc93371321e7cd71ff4b8 Mon Sep 17 00:00:00 2001 From: zhengkunwang <31820853+zhengkunwang223@users.noreply.github.com> Date: Thu, 9 May 2024 11:32:23 +0800 Subject: [PATCH] =?UTF-8?q?style:=20=E5=8E=BB=E6=8E=89=E5=A4=9A=E4=BD=99?= =?UTF-8?q?=E7=9A=84=E5=AD=97=E7=AC=A6=20(#4936)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/i18n/lang/en.yaml | 4 ++-- backend/i18n/lang/zh-Hant.yaml | 4 ++-- backend/i18n/lang/zh.yaml | 4 ++-- frontend/src/global/form-rules.ts | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/backend/i18n/lang/en.yaml b/backend/i18n/lang/en.yaml index 536e6344c..389a4c87d 100644 --- a/backend/i18n/lang/en.yaml +++ b/backend/i18n/lang/en.yaml @@ -87,8 +87,8 @@ ErrDomainIsExist: "Domain is already exist" ErrAliasIsExist: "Alias is already exist" ErrAppDelete: 'Other Website use this App' ErrGroupIsUsed: 'The group is in use and cannot be deleted' -ErrBackupMatch: 'the backup file does not match the current partial data of the website: {{ .detail}}"' -ErrBackupExist: 'the backup file corresponds to a portion of the original data that does not exist: {{ .detail}}"' +ErrBackupMatch: 'the backup file does not match the current partial data of the website: {{ .detail}}' +ErrBackupExist: 'the backup file corresponds to a portion of the original data that does not exist: {{ .detail}}' ErrPHPResource: 'The local runtime does not support switching!' ErrPathPermission: 'A folder with non-1000:1000 permissions was detected in the index directory, which may cause an Access denied error when accessing the website. Please click the save button above' ErrDomainIsUsed: "Domain is already used by website {{ .name }}" diff --git a/backend/i18n/lang/zh-Hant.yaml b/backend/i18n/lang/zh-Hant.yaml index afac7a07f..f58a3c4ad 100644 --- a/backend/i18n/lang/zh-Hant.yaml +++ b/backend/i18n/lang/zh-Hant.yaml @@ -87,8 +87,8 @@ ErrDomainIsExist: "域名已存在" ErrAliasIsExist: "代號已存在" ErrAppDelete: '其他網站使用此應用,無法刪除' ErrGroupIsUsed: '分組正在使用中,無法刪除' -ErrBackupMatch: '該備份文件與當前網站部分數據不匹配: {{ .detail}}"' -ErrBackupExist: '該備份文件對應部分原數據不存在: {{ .detail}}"' +ErrBackupMatch: '該備份文件與當前網站部分數據不匹配: {{ .detail}}' +ErrBackupExist: '該備份文件對應部分原數據不存在: {{ .detail}}' ErrPHPResource: '本地運行環境不支持切換!' ErrPathPermission: 'index 目錄下偵測到非 1000:1000 權限資料夾,可能導致網站存取 Access denied 錯誤,請點擊上方儲存按鈕' ErrDomainIsUsed: "域名已被網站【{{ .name }}】使用" diff --git a/backend/i18n/lang/zh.yaml b/backend/i18n/lang/zh.yaml index 5b72f9dca..252e9539e 100644 --- a/backend/i18n/lang/zh.yaml +++ b/backend/i18n/lang/zh.yaml @@ -87,8 +87,8 @@ ErrDomainIsExist: "域名已存在" ErrAliasIsExist: "代号已存在" ErrAppDelete: '其他网站使用此应用,无法删除' ErrGroupIsUsed: '分组正在使用中,无法删除' -ErrBackupMatch: '该备份文件与当前网站部分数据不匹配 {{ .detail}}"' -ErrBackupExist: '该备份文件对应部分源数据不存在 {{ .detail}}"' +ErrBackupMatch: '该备份文件与当前网站部分数据不匹配 {{ .detail}}' +ErrBackupExist: '该备份文件对应部分源数据不存在 {{ .detail}}' ErrPHPResource: '本地运行环境不支持切换!' ErrPathPermission: 'index 目录下检测到非 1000:1000 权限文件夹,可能导致网站访问 Access denied 错误,请点击上方保存按钮' ErrDomainIsUsed: "域名已被网站【{{ .name }}】使用" diff --git a/frontend/src/global/form-rules.ts b/frontend/src/global/form-rules.ts index 5ceb182ad..50fe6ead5 100644 --- a/frontend/src/global/form-rules.ts +++ b/frontend/src/global/form-rules.ts @@ -237,7 +237,7 @@ const checkSupervisorName = (rule: any, value: any, callback: any) => { if (value === '' || typeof value === 'undefined' || value == null) { callback(new Error(i18n.global.t('commons.rule.supervisorName'))); } else { - const reg = /^[a-zA-Z0-9]{1}[a-zA-Z0-9_-]{0,128}$/; + const reg = /^[a-zA-Z0-9]{1}[a-zA-Z0-9_-]{0,127}$/; if (!reg.test(value) && value !== '') { callback(new Error(i18n.global.t('commons.rule.supervisorName'))); } else {