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

fix: 修改容器名校验规则描述信息 (#2493)

This commit is contained in:
ssongliu 2023-10-10 19:28:28 +08:00 committed by GitHub
parent b628bce4f8
commit 1827fb3f46
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 4 additions and 5 deletions

View File

@ -180,8 +180,7 @@ const message = {
paramUrlAndPort: 'The format is http(s)://(domain name/ip):(port)',
nginxDoc: 'Only supports English case, numbers, and .',
appName: 'Support English, numbers, - and _, length 2-30, and cannot start and end with -_',
containerName:
'Supports letters, numbers, underscores, hyphens and dots, cannot end with hyphen- or dot.1-127',
containerName: 'Supports letters, numbers, -, _ and .; cannot start with - _ or .; length: 1-127',
mirror: 'Support image accelerator addresses that start with http(s)://, English uppercase and lowercase letters, numbers, periods, and hyphens, and there should be no empty lines.',
disableFunction: 'Only support letters ,underscores,and,',
leechExts: 'Only support letters, numbers and,',

View File

@ -179,7 +179,7 @@ const message = {
paramUrlAndPort: '格式為 http(s)://(域名/ip):(端口)',
nginxDoc: '僅支持英文大小寫數字.',
appName: '支持英文數字-和_,長度2-30,並且不能以-_開頭和結尾',
containerName: '支持字母數字下劃線連字符和點,不能以連字符-或點.結尾,長度1-127',
containerName: '支持字母數字_-.,不能以-_或.開頭,長度1-127',
mirror: '支持以 http(s):// 開頭,英文大小寫,數字,. 和 - 的鏡像加速地址,且不能有空行',
disableFunction: '僅支持字母下劃線和,',
leechExts: '僅支持字母數字和,',

View File

@ -179,7 +179,7 @@ const message = {
paramUrlAndPort: '格式为 http(s)://(域名/ip):(端口)',
nginxDoc: '仅支持英文大小写数字.',
appName: '支持英文数字-和_,长度2-30,并且不能以-_开头和结尾',
containerName: '支持字母数字下划线连字符和点,不能以连字符-或点.结尾,长度1-127',
containerName: '支持字母数字_-.,不能以-_或.开头,长度1-127',
mirror: '支持以 http(s):// 开头,英文大小写,数字,. 和 - 的镜像加速地址,且不能有空行',
disableFunction: '仅支持字母下划线和,',
leechExts: '仅支持字母数字和,',

View File

@ -6,7 +6,7 @@
<el-form @submit.prevent ref="newNameRef" v-loading="loading" :model="renameForm" label-position="top">
<el-row type="flex" justify="center">
<el-col :span="22">
<el-form-item :label="$t('container.newName')" :rules="Rules.volumeName" prop="newName">
<el-form-item :label="$t('container.newName')" :rules="Rules.containerName" prop="newName">
<el-input v-model="renameForm.newName"></el-input>
</el-form-item>
</el-col>