1
0
mirror of https://github.com/1Panel-dev/1Panel.git synced 2025-03-01 03:24:14 +08:00

feat: Added underscore support for website default documents (#7898)

This commit is contained in:
zhengkunwang 2025-02-18 17:06:10 +08:00 committed by GitHub
parent b0b6bf458f
commit 96eefab36f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
9 changed files with 9 additions and 9 deletions

View File

@ -422,7 +422,7 @@ const checkDoc = (rule: any, value: any, callback: any) => {
if (value === '' || typeof value === 'undefined' || value == null) { if (value === '' || typeof value === 'undefined' || value == null) {
callback(new Error(i18n.global.t('commons.rule.nginxDoc'))); callback(new Error(i18n.global.t('commons.rule.nginxDoc')));
} else { } else {
const reg = /^[A-Za-z0-9\n./]+$/; const reg = /^[A-Za-z0-9_\n./]+$/;
if (!reg.test(value) && value !== '') { if (!reg.test(value) && value !== '') {
callback(new Error(i18n.global.t('commons.rule.nginxDoc'))); callback(new Error(i18n.global.t('commons.rule.nginxDoc')));
} else { } else {

View File

@ -225,7 +225,7 @@ const message = {
'This field must consist of English, numbers, ".", "-", and "_" characters with a length of 2-30.', 'This field must consist of English, numbers, ".", "-", and "_" characters with a length of 2-30.',
paramComplexity: `This field mustn't start and end with special characters and must consist of English, numbers, "{0}" characters with a length of 6-128.`, paramComplexity: `This field mustn't start and end with special characters and must consist of English, numbers, "{0}" characters with a length of 6-128.`,
paramUrlAndPort: 'This field must be in the format of "http(s)://(domain name/ip):(port)".', paramUrlAndPort: 'This field must be in the format of "http(s)://(domain name/ip):(port)".',
nginxDoc: 'This field must consist of English, numbers and "." characters.', nginxDoc: 'This field must consist of English, numbers, _ and "." characters.',
appName: 'Supports lowercase letters, numbers, -, and _, length 2-30, and cannot start or end with - or _', appName: 'Supports lowercase letters, numbers, -, and _, length 2-30, and cannot start or end with - or _',
containerName: 'Supports letters, numbers, -, _ and .; cannot start with - _ or .; length: 2-128', containerName: 'Supports letters, numbers, -, _ and .; cannot start with - _ or .; length: 2-128',
mirror: 'The mirror acceleration address should start with http(s)://, support English letters (both uppercase and lowercase), numbers, . / and -, and should not contain blank lines.', mirror: 'The mirror acceleration address should start with http(s)://, support English letters (both uppercase and lowercase), numbers, . / and -, and should not contain blank lines.',

View File

@ -224,7 +224,7 @@ const message = {
paramComplexity: `このフィールドは、特殊文字で開始および終了する必要はなく、英語、数字「{0}」文字で構成されている必要があります。`, paramComplexity: `このフィールドは、特殊文字で開始および終了する必要はなく、英語、数字「{0}」文字で構成されている必要があります。`,
paramUrlAndPort: paramUrlAndPort:
'このフィールドはhttps://domain name/ip:(ポート)」の形式でなければなりません。', 'このフィールドはhttps://domain name/ip:(ポート)」の形式でなければなりません。',
nginxDoc: 'このフィールドは英語数字で構成されている必要があります文字', nginxDoc: 'このフィールドは英語数字_で構成されている必要があります文字',
appName: appName:
'小文字の英字数字-および_をサポートし長さは230-または_で始まったり終わったりすることはできません', '小文字の英字数字-および_をサポートし長さは230-または_で始まったり終わったりすることはできません',
containerName: '文字数字 - _および;- _またはで始めることはできません長さ:2-128', containerName: '文字数字 - _および;- _またはで始めることはできません長さ:2-128',

View File

@ -224,7 +224,7 @@ const message = {
paramComplexity: paramComplexity:
' 필드는 특수 문자로 시작하거나 끝날 없으며, 영어, 숫자, "{0}" 문자로 구성되어야 하며 길이는 6-128 자여야 합니다.', ' 필드는 특수 문자로 시작하거나 끝날 없으며, 영어, 숫자, "{0}" 문자로 구성되어야 하며 길이는 6-128 자여야 합니다.',
paramUrlAndPort: ' 필드는 "http(s)://(도메인 이름/IP):(포트)" 형식이어야 합니다.', paramUrlAndPort: ' 필드는 "http(s)://(도메인 이름/IP):(포트)" 형식이어야 합니다.',
nginxDoc: ' 필드는 영어, 숫자 "." 문자로 구성되어야 합니다.', nginxDoc: ' 필드는 영어, 숫자 _ "." 문자로 구성되어야 합니다.',
appName: appName:
'소문자, 숫자, "-", "_" 지원하며 길이는 2-30 자이고, "-" 또는 "_" 시작하거나 끝날 없습니다.', '소문자, 숫자, "-", "_" 지원하며 길이는 2-30 자이고, "-" 또는 "_" 시작하거나 끝날 없습니다.',
containerName: containerName:

View File

@ -230,7 +230,7 @@ const message = {
paramComplexity: paramComplexity:
'Ruangan ini tidak boleh bermula atau berakhir dengan aksara khas dan mesti terdiri daripada aksara rumi, nombor, "{0}" dengan panjang 6-128 aksara.', 'Ruangan ini tidak boleh bermula atau berakhir dengan aksara khas dan mesti terdiri daripada aksara rumi, nombor, "{0}" dengan panjang 6-128 aksara.',
paramUrlAndPort: 'Ruangan ini mesti dalam format "http(s)://(nama domain/IP):(port)".', paramUrlAndPort: 'Ruangan ini mesti dalam format "http(s)://(nama domain/IP):(port)".',
nginxDoc: 'Ruangan ini mesti terdiri daripada aksara rumi, nombor, dan ".".', nginxDoc: 'Ruangan ini mesti terdiri daripada aksara rumi, nombor, _, dan ".".',
appName: appName:
'Menyokong huruf kecil, nombor, -, dan _, panjang 2-30, dan tidak boleh bermula atau berakhir dengan - atau _', 'Menyokong huruf kecil, nombor, -, dan _, panjang 2-30, dan tidak boleh bermula atau berakhir dengan - atau _',
containerName: containerName:

View File

@ -228,7 +228,7 @@ const message = {
paramComplexity: paramComplexity:
'Este campo não deve começar ou terminar com caracteres especiais e deve conter letras, números e "{0}" com comprimento de 6-128.', 'Este campo não deve começar ou terminar com caracteres especiais e deve conter letras, números e "{0}" com comprimento de 6-128.',
paramUrlAndPort: 'Este campo deve estar no formato "http(s)://(nome do domínio/IP):(porta)".', paramUrlAndPort: 'Este campo deve estar no formato "http(s)://(nome do domínio/IP):(porta)".',
nginxDoc: 'Este campo deve conter letras, números e ".".', nginxDoc: 'Este campo deve conter letras, _, números e ".".',
appName: appName:
'Suporta letras minúsculas, números, - e _, comprimento de 2 a 30, e não pode começar ou terminar com - ou _', 'Suporta letras minúsculas, números, - e _, comprimento de 2 a 30, e não pode começar ou terminar com - ou _',
containerName: containerName:

View File

@ -226,7 +226,7 @@ const message = {
paramComplexity: paramComplexity:
'Это поле не должно начинаться и заканчиваться специальными символами и должно состоять из английских букв, цифр, "{0}" длиной 6-128.', 'Это поле не должно начинаться и заканчиваться специальными символами и должно состоять из английских букв, цифр, "{0}" длиной 6-128.',
paramUrlAndPort: 'Это поле должно быть в формате "http(s)://(доменное имя/ip):(порт)".', paramUrlAndPort: 'Это поле должно быть в формате "http(s)://(доменное имя/ip):(порт)".',
nginxDoc: 'Это поле должно состоять из английских букв, цифр и ".".', nginxDoc: 'Это поле должно состоять из английских букв, цифр и _,".".',
appName: appName:
'Поддерживает строчные буквы, цифры, - и _, длина 2-30, и не может начинаться или заканчиваться на - или _', 'Поддерживает строчные буквы, цифры, - и _, длина 2-30, и не может начинаться или заканчиваться на - или _',
containerName: 'Поддерживаются буквы, цифры, -, _ и .; не может начинаться с - _ или .; длина: 2-128', containerName: 'Поддерживаются буквы, цифры, -, _ и .; не может начинаться с - _ или .; длина: 2-128',

View File

@ -219,7 +219,7 @@ const message = {
paramName: '支援英文數字.-和_,長度2-64', paramName: '支援英文數字.-和_,長度2-64',
paramComplexity: '支援英文數字{0},長度6-128特殊字元不能在首尾', paramComplexity: '支援英文數字{0},長度6-128特殊字元不能在首尾',
paramUrlAndPort: '格式為 http(s)://(域名/ip):(埠)', paramUrlAndPort: '格式為 http(s)://(域名/ip):(埠)',
nginxDoc: '僅支援英文大小寫數字.', nginxDoc: '僅支援英文大小寫數字_.',
appName: '支援小寫英文數字-和_,長度2-30,並且不能以-_開頭和結尾', appName: '支援小寫英文數字-和_,長度2-30,並且不能以-_開頭和結尾',
containerName: '支援字母數字_-.,不能以-_或.開頭,長度2-128', containerName: '支援字母數字_-.,不能以-_或.開頭,長度2-128',
mirror: '支援以 http(s):// 開頭,英文大小寫,數字,. / 和 - 的鏡像加速地址,且不能有空行', mirror: '支援以 http(s):// 開頭,英文大小寫,數字,. / 和 - 的鏡像加速地址,且不能有空行',

View File

@ -218,7 +218,7 @@ const message = {
paramName: '支持英文数字.-和_,长度2-64', paramName: '支持英文数字.-和_,长度2-64',
paramComplexity: '支持英文数字{0},长度6-128特殊字符不能在首尾', paramComplexity: '支持英文数字{0},长度6-128特殊字符不能在首尾',
paramUrlAndPort: '格式为 http(s)://(域名/ip):(端口)', paramUrlAndPort: '格式为 http(s)://(域名/ip):(端口)',
nginxDoc: '仅支持英文大小写数字.', nginxDoc: '仅支持英文大小写数字_.',
appName: '支持小写英文数字-和_,长度2-30,并且不能以-_开头和结尾', appName: '支持小写英文数字-和_,长度2-30,并且不能以-_开头和结尾',
containerName: '支持字母数字_-.,不能以-_或.开头,长度2-128', containerName: '支持字母数字_-.,不能以-_或.开头,长度2-128',
mirror: '支持以 http(s):// 开头,英文大小写,数字,. / 和 - 的镜像加速地址,且不能有空行', mirror: '支持以 http(s):// 开头,英文大小写,数字,. / 和 - 的镜像加速地址,且不能有空行',