diff --git a/frontend/src/global/form-rules.ts b/frontend/src/global/form-rules.ts index 9cf1a77ed..760b9ffcb 100644 --- a/frontend/src/global/form-rules.ts +++ b/frontend/src/global/form-rules.ts @@ -174,7 +174,7 @@ const checkLinuxName = (rule: any, value: any, callback: any) => { if (value === '' || typeof value === 'undefined' || value == null) { callback(new Error(i18n.global.t('commons.rule.linuxName', ['/\\:*?\'"<>|']))); } else { - const reg = /^[^/\\\"'|<>?*]{1,30}$/; + const reg = /^[^/\\\"'|<>?*]{1,128}$/; if (!reg.test(value) && value !== '') { callback(new Error(i18n.global.t('commons.rule.linuxName', ['/\\:*?\'"<>|']))); } else { @@ -402,7 +402,7 @@ const checkParamSimple = (rule: any, value: any, callback: any) => { if (value === '' || typeof value === 'undefined' || value == null) { callback(); } else { - const reg = /^[a-z0-9][a-z0-9]{1,64}$/; + const reg = /^[a-z0-9][a-z0-9]{1,128}$/; if (!reg.test(value) && value !== '') { callback(new Error(i18n.global.t('commons.rule.paramSimple'))); } else { diff --git a/frontend/src/lang/modules/en.ts b/frontend/src/lang/modules/en.ts index a6567d01d..aab8cee87 100644 --- a/frontend/src/lang/modules/en.ts +++ b/frontend/src/lang/modules/en.ts @@ -159,6 +159,7 @@ const message = { complexityPassword: 'Longer than eight characters and contains at least two combinations of letters, digits, and special characters', commonPassword: 'Please enter a password with more than 6 characters', + linuxName: 'Length 1-128, the name cannot contain symbols such as {0}', email: 'Email format error', number: 'Please enter the correct number', integer: 'Please enter the correct positive integer', @@ -180,7 +181,7 @@ const message = { 'Supports letters, numbers, underscores, hyphens and dots, cannot end with hyphen- or dot.1-127', disableFunction: 'Only support letters and,', leechExts: 'Only support letters, numbers and,', - paramSimple: 'Support lowercase letters and numbers, length 1-64', + paramSimple: 'Support lowercase letters and numbers, length 1-128', }, res: { paramError: 'The request failed, please try again later!', @@ -1614,7 +1615,7 @@ const message = { laddr: 'Source address/port', raddr: 'Destination address/port', stopProcess: 'End', - stopProcessWarn: 'Are you sure you want to end this process (PID:{0})? This operation cannot be rolled back', + stopProcessWarn: 'Are you sure you want to end this process (PID:{0})? ', }, }; diff --git a/frontend/src/lang/modules/tw.ts b/frontend/src/lang/modules/tw.ts index 4a8342b23..7cd15df90 100644 --- a/frontend/src/lang/modules/tw.ts +++ b/frontend/src/lang/modules/tw.ts @@ -159,7 +159,7 @@ const message = { volumeName: '支持英文、數字、.-和_,長度2-30', complexityPassword: '請輸入長度大於 8 位且包含字母、數字、特殊字符至少兩項的密碼組合', commonPassword: '請輸入 6 位以上長度密碼', - linuxName: '長度1-30,名稱不能含有{0}等符號', + linuxName: '長度1-128,名稱不能含有{0}等符號', email: '請輸入正確的郵箱', number: '請輸入正確的數字', integer: '請輸入正確的正整數', @@ -179,7 +179,7 @@ const message = { containerName: '支持字母、數字、下劃線、連字符和點,不能以連字符-或點.結尾,長度1-127', disableFunction: '僅支持字母和,', leechExts: '僅支持字母數字和,', - paramSimple: '支持小寫字母和數字,長度1-64', + paramSimple: '支持小寫字母和數字,長度 1-128', }, res: { paramError: '請求失敗,請稍後重試!', @@ -1530,7 +1530,7 @@ const message = { laddr: '源地址/端口', raddr: '目標地址/端口', stopProcess: '結束', - stopProcessWarn: '是否確定結束此進程 (PID:{0})?此操作不可回滾', + stopProcessWarn: '是否確定結束此進程 (PID:{0})?', }, }; export default { diff --git a/frontend/src/lang/modules/zh.ts b/frontend/src/lang/modules/zh.ts index 55214892e..68626c4f7 100644 --- a/frontend/src/lang/modules/zh.ts +++ b/frontend/src/lang/modules/zh.ts @@ -159,7 +159,7 @@ const message = { volumeName: '支持英文、数字、.-和_,长度2-30', complexityPassword: '请输入长度大于 8 位且包含字母、数字、特殊字符至少两项的密码组合', commonPassword: '请输入 6 位以上长度密码', - linuxName: '长度1-30,名称不能含有{0}等符号', + linuxName: '长度1-128,名称不能含有{0}等符号', email: '请输入正确的邮箱', number: '请输入正确的数字', integer: '请输入正确的正整数', @@ -179,7 +179,7 @@ const message = { containerName: '支持字母、数字、下划线、连字符和点,不能以连字符-或点.结尾,长度1-127', disableFunction: '仅支持字母和,', leechExts: '仅支持字母数字和,', - paramSimple: '支持小写字母和数字,长度1-64', + paramSimple: '支持小写字母和数字,长度1-128', }, res: { paramError: '请求失败,请稍后重试!', @@ -1538,7 +1538,7 @@ const message = { laddr: '源地址/端口', raddr: '目标地址/端口', stopProcess: '结束', - stopProcessWarn: '是否确定结束此进程 (PID:{0})?此操作不可回滚', + stopProcessWarn: '是否确定结束此进程 (PID:{0})?', processName: '进程名称', }, };