diff --git a/frontend/src/global/form-rules.ts b/frontend/src/global/form-rules.ts index 780f9be03046..46ab81cfbb0e 100644 --- a/frontend/src/global/form-rules.ts +++ b/frontend/src/global/form-rules.ts @@ -496,7 +496,7 @@ const checkDoc: RuleValidator = (_rule, value, callback) => { if (value === '' || typeof value === 'undefined' || value == null) { callback(new Error(i18n.global.t('commons.rule.nginxDoc'))); } else { - const reg = /^[A-Za-z0-9\n./]+$/; + const reg = /^[A-Za-z0-9\n./_-]+$/; if (!reg.test(value) && value !== '') { callback(new Error(i18n.global.t('commons.rule.nginxDoc'))); } else { diff --git a/frontend/src/lang/modules/en.ts b/frontend/src/lang/modules/en.ts index 947f3c1d5476..040834419e95 100644 --- a/frontend/src/lang/modules/en.ts +++ b/frontend/src/lang/modules/en.ts @@ -277,7 +277,7 @@ const message = { 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)".', - nginxDoc: 'This field must consist of English, numbers and "." characters.', + nginxDoc: 'This field must consist of English letters, numbers and ".", "_", "-" characters.', appName: 'This field musnt\'t start and end with "-" and "_" characters and must consist of English, numbers, "-", and "_" characters with a length of 2-30.', containerName: 'Supports letters, numbers, -, _ and .; cannot start with - _ or .; length: 2-128', diff --git a/frontend/src/lang/modules/es-es.ts b/frontend/src/lang/modules/es-es.ts index 29e35df92769..646f261bff35 100644 --- a/frontend/src/lang/modules/es-es.ts +++ b/frontend/src/lang/modules/es-es.ts @@ -278,7 +278,7 @@ const message = { paramComplexity: 'Este campo no debe comenzar ni terminar con caracteres especiales y debe estar compuesto por letras, números y los caracteres "{0}", con una longitud de 6 a 128.', paramUrlAndPort: 'Este campo debe tener el formato "http(s)://(nombre de dominio/ip):(puerto)".', - nginxDoc: 'Este campo debe estar compuesto por letras, números y ".".', + nginxDoc: 'Este campo debe estar compuesto por letras, números, ".", "_" y "-".', appName: 'Este campo no debe comenzar ni terminar con "-" o "_" y debe estar compuesto por letras, números, "-", y "_" con una longitud de 2 a 30.', containerName: 'Permite letras, números, -, _ y .; no puede comenzar con - _ o .; longitud: 2-128', diff --git a/frontend/src/lang/modules/fa.ts b/frontend/src/lang/modules/fa.ts index cdc32da1bf87..89b2b19e294e 100644 --- a/frontend/src/lang/modules/fa.ts +++ b/frontend/src/lang/modules/fa.ts @@ -273,7 +273,7 @@ const message = { paramComplexity: 'این فیلد نباید با کاراکترهای ویژه شروع یا پایان یابد و باید از حروف انگلیسی، اعداد، "{0}" با طول ۶-۱۲۸ تشکیل شده باشد.', paramUrlAndPort: 'این فیلد باید به فرمت "http(s)://(دامنه/ip):(پورت)" باشد.', - nginxDoc: 'این فیلد باید از حروف انگلیسی، اعداد و "." تشکیل شده باشد.', + nginxDoc: 'این فیلد باید از حروف انگلیسی، اعداد و ".", "_", "-" تشکیل شده باشد.', appName: 'این فیلد نباید با "-" و "_" شروع یا پایان یابد و باید از حروف انگلیسی، اعداد، "-"، و "_" با طول ۲-۳۰ تشکیل شده باشد.', containerName: 'پشتیبانی از حروف، اعداد، -، _ و .؛ نمی‌تواند با - _ یا . شروع شود؛ طول: ۲-۱۲۸', diff --git a/frontend/src/lang/modules/ja.ts b/frontend/src/lang/modules/ja.ts index 1c852808a40f..2bddffc5d6b9 100644 --- a/frontend/src/lang/modules/ja.ts +++ b/frontend/src/lang/modules/ja.ts @@ -277,7 +277,7 @@ const message = { 'このフィールドは、特殊文字で開始および終了する必要はなく、英語、数字「{0}」文字で構成されている必要があります。', paramUrlAndPort: 'このフィールドは、「http(s)://(domain name/ip):(ポート)」の形式でなければなりません。', - nginxDoc: 'このフィールドは、英語、数字、「」で構成されている必要があります。文字。', + nginxDoc: 'このフィールドは、英語、数字、「.」「_」「-」で構成されている必要があります。', appName: 'このフィールドは、「 - 」と「_」文字で開始および終了してはなりません。英語、数字、 "、および「_」文字で2〜30の文字で構成されている必要があります。', containerName: '文字、数字、 - 、_および。;- _または。で始めることはできません。長さ:2-128', diff --git a/frontend/src/lang/modules/ko.ts b/frontend/src/lang/modules/ko.ts index 4d047e200ec7..9adedd6c34a0 100644 --- a/frontend/src/lang/modules/ko.ts +++ b/frontend/src/lang/modules/ko.ts @@ -272,7 +272,7 @@ const message = { paramComplexity: '이 필드는 특수 문자로 시작하거나 끝날 수 없으며, 영어, 숫자, "{0}" 문자로 구성되어야 하며 길이는 6-128 자여야 합니다.', paramUrlAndPort: '이 필드는 "http(s)://(도메인 이름/IP):(포트)" 형식이어야 합니다.', - nginxDoc: '이 필드는 영어, 숫자 및 "." 문자로 구성되어야 합니다.', + nginxDoc: '이 필드는 영어, 숫자, ".", "_", "-" 문자로 구성되어야 합니다.', appName: '소문자, 숫자, "-", "_"를 지원하며 길이는 2-30 자이고, "-" 또는 "_"로 시작하거나 끝날 수 없습니다.', containerName: diff --git a/frontend/src/lang/modules/lo.ts b/frontend/src/lang/modules/lo.ts index 94d1d290d01a..5223cdb34bb5 100644 --- a/frontend/src/lang/modules/lo.ts +++ b/frontend/src/lang/modules/lo.ts @@ -275,7 +275,7 @@ const message = { paramComplexity: 'ຂໍ້ມູນນີ້ຕ້ອງບໍ່ຂຶ້ນຕົ້ນ ແລະ ລົງທ້າຍດ້ວຍຕົວອັກສອນພິເສດ ແລະ ປະກອບດ້ວຍພາສາອັງກິດ, ຕົວເລກ, "{0}" ໂດຍມີຄວາມຍາວ 6-128 ຕົວອັກສອນ.', paramUrlAndPort: 'ຂໍ້ມູນນີ້ຕ້ອງຢູ່ໃນຮູບແບບ "http(s)://(domain name/ip):(port)".', - nginxDoc: 'ຂໍ້ມູນນີ້ຕ້ອງປະກອບດ້ວຍພາສາອັງກິດ, ຕົວເລກ ແລະ ".".', + nginxDoc: 'ຂໍ້ມູນນີ້ຕ້ອງປະກອບດ້ວຍພາສາອັງກິດ, ຕົວເລກ, ".", "_" ແລະ "-".', appName: 'ຂໍ້ມູນນີ້ຕ້ອງບໍ່ຂຶ້ນຕົ້ນ ແລະ ລົງທ້າຍດ້ວຍ "-" ແລະ "_" ແລະ ປະກອບດ້ວຍພາສາອັງກິດ, ຕົວເລກ, "-", ແລະ "_" ໂດຍມີຄວາມຍາວ 2-30 ຕົວອັກສອນ.', containerName: 'ຮອງຮັບຕົວອັກສອນ, ຕົວເລກ, -, _ ແລະ .; ຕ້ອງບໍ່ຂຶ້ນຕົ້ນດ້ວຍ - _ ຫຼື .; ຄວາມຍາວ: 2-128', diff --git a/frontend/src/lang/modules/ms.ts b/frontend/src/lang/modules/ms.ts index 74712da8d609..0a55f3b6401a 100644 --- a/frontend/src/lang/modules/ms.ts +++ b/frontend/src/lang/modules/ms.ts @@ -281,7 +281,7 @@ const message = { paramComplexity: '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)".', - nginxDoc: 'Ruangan ini mesti terdiri daripada aksara rumi, nombor, dan ".".', + nginxDoc: 'Ruangan ini mesti terdiri daripada aksara rumi, nombor, ".", "_" dan "-".', appName: 'Ruangan ini tidak boleh bermula atau berakhir dengan "-" dan "_" dan mesti terdiri daripada aksara rumi, nombor, "-", dan "_" dengan panjang 2-30 aksara.', containerName: diff --git a/frontend/src/lang/modules/pt-br.ts b/frontend/src/lang/modules/pt-br.ts index 6b44bdc7d914..d02e70891f67 100644 --- a/frontend/src/lang/modules/pt-br.ts +++ b/frontend/src/lang/modules/pt-br.ts @@ -275,7 +275,7 @@ const message = { 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.', 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: 'Este campo não deve começar ou terminar com "-" ou "_" e deve conter letras, números, "-", e "_" com comprimento de 2-30.', containerName: diff --git a/frontend/src/lang/modules/ru.ts b/frontend/src/lang/modules/ru.ts index 45e43ec27d8b..b4a52d5f2758 100644 --- a/frontend/src/lang/modules/ru.ts +++ b/frontend/src/lang/modules/ru.ts @@ -274,7 +274,7 @@ const message = { paramComplexity: 'Это поле не должно начинаться и заканчиваться специальными символами и должно состоять из английских букв, цифр, "{0}" длиной 6-128.', paramUrlAndPort: 'Это поле должно быть в формате "http(s)://(доменное имя/ip):(порт)".', - nginxDoc: 'Это поле должно состоять из английских букв, цифр и ".".', + nginxDoc: 'Это поле должно состоять из английских букв, цифр, ".", "_" и "-".', appName: 'Это поле не должно начинаться и заканчиваться символами "-" и "_" и должно состоять из английских букв, цифр, "-" и "_" длиной 2-30.', containerName: 'Поддерживаются буквы, цифры, -, _ и .; не может начинаться с - _ или .; длина: 2-128', diff --git a/frontend/src/lang/modules/tr.ts b/frontend/src/lang/modules/tr.ts index db450f967ef5..78c93cbd9e1f 100644 --- a/frontend/src/lang/modules/tr.ts +++ b/frontend/src/lang/modules/tr.ts @@ -277,7 +277,7 @@ const message = { paramComplexity: 'Bu alan özel karakterlerle başlayıp bitmemeli ve İngilizce, rakam, "{0}" karakterlerinden oluşmalı, uzunluk 6-128 olmalıdır.', paramUrlAndPort: 'Bu alan "http(s)://(alan adı/ip):(port)" formatında olmalıdır.', - nginxDoc: 'Bu alan İngilizce, rakam ve "." karakterlerinden oluşmalıdır.', + nginxDoc: 'Bu alan İngilizce harfler, rakamlar, ".", "_" ve "-" karakterlerinden oluşmalıdır.', appName: 'Bu alan "-" ve "_" karakterleriyle başlayıp bitmemeli ve İngilizce, rakam, "-", ve "_" karakterlerinden oluşmalı, uzunluk 2-30 olmalıdır.', containerName: 'Harf, rakam, -, _ ve . destekler; - _ veya . ile başlayamaz; uzunluk: 2-128', diff --git a/frontend/src/lang/modules/zh-Hant.ts b/frontend/src/lang/modules/zh-Hant.ts index 0c453a95e3ca..6e909a802df5 100644 --- a/frontend/src/lang/modules/zh-Hant.ts +++ b/frontend/src/lang/modules/zh-Hant.ts @@ -262,7 +262,7 @@ const message = { paramName: '支援英文、數字、.-和_,長度2-64', paramComplexity: '支援英文、數字、{0},長度6-128,特殊字元不能在首尾', paramUrlAndPort: '格式為 http(s)://(域名/ip):(埠)', - nginxDoc: '僅支援英文大小寫,數字,和.', + nginxDoc: '僅支援英文大小寫、數字以及 . _ -', appName: '支援英文、數字、-和_,長度2-30,並且不能以-_開頭和結尾', containerName: '支援字母、數字、_-和.,不能以-_或.開頭,長度2-128', mirror: '支援以 http(s):// 開頭,英文大小寫,數字,. / 和 - 的映像加速地址,且不能有空行', diff --git a/frontend/src/lang/modules/zh.ts b/frontend/src/lang/modules/zh.ts index e10f951798c2..522c0afad0b2 100644 --- a/frontend/src/lang/modules/zh.ts +++ b/frontend/src/lang/modules/zh.ts @@ -265,7 +265,7 @@ const message = { paramName: '支持英文、数字、.-和_,长度2-64', paramComplexity: '支持英文、数字、{0},长度6-128,特殊字符不能在首尾', paramUrlAndPort: '格式为 http(s)://(域名/ip):(端口)', - nginxDoc: '仅支持英文大小写,数字,和.', + nginxDoc: '仅支持英文大小写、数字以及 . _ -', appName: '支持英文、数字、-和_,长度2-30,并且不能以-_开头和结尾', containerName: '支持字母、数字、_-和.,不能以-_或.开头,长度2-128', mirror: '支持以 http(s):// 开头,英文大小写,数字,. / 和 - 的镜像加速地址,且不能有空行',