Repository: 1Panel-dev/1Panel
Pull request #8081: feat(style): Update some prompt messages
Author: login: zhengkunwang223
Labels: name: do-not-merge/release-note-label-needed
name: dev-v2
Created: 2025-03-06T05:43:02Z | Merged: 2025-03-06T06:28:53Z



Diff:
diff --git a/agent/app/service/runtime_utils.go b/agent/app/service/runtime_utils.go
index b7ad8991e07d..9d876b08e236 100644
--- a/agent/app/service/runtime_utils.go
+++ b/agent/app/service/runtime_utils.go
@@ -173,6 +173,10 @@ func SyncRuntimesStatus(runtimes []model.Runtime) error {
 	}
 	for _, contain := range containers {
 		if index, ok := runtimeContainer[contain.Names[0]]; ok {
+			if runtimes[index].Status == constant.StatusBuilding || runtimes[index].Status == constant.StatusCreating {
+				delete(runtimeContainer, contain.Names[0])
+				continue
+			}
 			switch contain.State {
 			case "exited":
 				runtimes[index].Status = constant.StatusError
diff --git a/frontend/src/components/backup/index.vue b/frontend/src/components/backup/index.vue
index c24892cef4bc..09a18b3af14f 100644
--- a/frontend/src/components/backup/index.vue
+++ b/frontend/src/components/backup/index.vue
@@ -81,7 +81,7 @@
         <el-form ref="backupForm" label-position="left" v-loading="loading">
             <el-form-item
                 :label="$t('setting.compressPassword')"
-                style="margin-top: 10px"
+                class="mt-10"
                 v-if="type === 'app' || type === 'website'"
             >
                 <el-input v-model="secret" :placeholder="$t('setting.backupRecoverMessage')" />
@@ -162,6 +162,7 @@ const acceptParams = (params: DialogProps): void => {
     detailName.value = params.detailName;
     backupVisible.value = true;
     status.value = params.status;
+    console.log(type);
     search();
 };
 const handleClose = () => {
diff --git a/frontend/src/components/upload/index.vue b/frontend/src/components/upload/index.vue
index 2b25b6fad5e9..7a1c8f367356 100644
--- a/frontend/src/components/upload/index.vue
+++ b/frontend/src/components/upload/index.vue
@@ -112,8 +112,8 @@
             <el-form ref="backupForm" label-position="left" v-loading="loading">
                 <el-form-item
                     :label="$t('setting.compressPassword')"
-                    class="mt-10"
-                    v-if="type === 'app' || type === 'website'"
+                    class="mt-5"
+                    v-if="type === 'mysql' || type === 'mariadb' || type === 'postgresql'"
                 >
                     <el-input v-model="secret" :placeholder="$t('setting.backupRecoverMessage')" />
                 </el-form-item>
diff --git a/frontend/src/global/form-rules.ts b/frontend/src/global/form-rules.ts
index ae3352052b79..26068ab8f95b 100644
--- a/frontend/src/global/form-rules.ts
+++ b/frontend/src/global/form-rules.ts
@@ -254,7 +254,7 @@ const checkImageName = (rule: any, value: any, callback: any) => {
     if (value === '' || typeof value === 'undefined' || value == null) {
         callback(new Error(i18n.global.t('commons.rule.imageName')));
     } else {
-        const reg = /^[a-zA-Z0-9]{1}[a-z:@A-Z0-9_/.-]{0,256}$/;
+        const reg = /^[a-zA-Z0-9]{1}[a-z:@A-Z0-9_/.-]{0,255}$/;
         if (!reg.test(value) && value !== '') {
             callback(new Error(i18n.global.t('commons.rule.imageName')));
         } else {
diff --git a/frontend/src/lang/modules/en.ts b/frontend/src/lang/modules/en.ts
index 41cc9e5e999b..5b96700a4593 100644
--- a/frontend/src/lang/modules/en.ts
+++ b/frontend/src/lang/modules/en.ts
@@ -206,13 +206,13 @@ const message = {
             illegalInput: 'There are illegal characters in the input box.',
             commonName:
                 'Supports non-special characters starting with English, Chinese, numbers, .- and _, length 1-128',
-            userName: 'Support English, Chinese, numbers and _ length 3-30',
+            userName: 'Supports starting with non-special characters, English, Chinese, numbers, and _, length 3-30',
             simpleName: 'Supports non-underscore starting, English, numbers, _, length 3-30',
             simplePassword: 'Supports non-underscore starting, English, numbers, _, length 1-30',
             dbName: 'Supports non-special character starting, including English, Chinese, numbers, .-_, with a length of 1-64',
             composeName:
                 'Supports non-special characters at the beginning, lowercase letters, numbers, - and _, length 1-256',
-            imageName: 'Support English, numbers, :@/.-_, length 1-256',
+            imageName: 'Supports starting with non-special characters, English, numbers, :@/.-_, length 1-256',
             volumeName: 'Support English, numbers, .-_, length 2-30',
             supervisorName: 'Supports non-special characters starting with English, numbers, - and _, length 1-128',
             complexityPassword:
diff --git a/frontend/src/lang/modules/ja.ts b/frontend/src/lang/modules/ja.ts
index b41b150e3c86..0ae0955285b9 100644
--- a/frontend/src/lang/modules/ja.ts
+++ b/frontend/src/lang/modules/ja.ts
@@ -196,13 +196,11 @@ const message = {
             illegalInput: `このフィールドには違法なキャラクターが含まれてはなりません。`,
             commonName:
                 'このフィールドは、特別なキャラクターではなく、英語、中国語、数字で構成されている必要があります。「。」、「」、および「_」文字が1〜128の文字で構成されている必要があります。',
-            userName:
-                'このフィールドは、英語、中国語、数字、および3〜30の長さの「_」文字で構成されている必要があります。',
+            userName: '特殊文字で始まらない、英字、漢字、数字、および_をサポート、長さ3-30',
             simpleName: `このフィールドは、アンダースコアキャラクターから始めてはなりません。長さ3〜30の英語、数字、「_」文字で構成されている必要があります。`,
             simplePassword: `このフィールドは、アンダースコアキャラクターから始めてはなりません。長さ1〜30の英語、数字、「_」文字で構成されている必要があります。`,
             dbName: `このフィールドは、アンダースコアキャラクターから始めてはなりません。長さ1〜64の英語、数字、「_」文字で構成されている必要があります。`,
-            imageName:
-                'このフィールドは、英語、数字、 ":"、 "@"、 "/"、 "、"、 "、および" _ "文字で構成されている必要があります。',
+            imageName: '特殊文字で始まらない、英字、数字、:@/.-_をサポート、長さ1-256',
             composeName: '最初の特別な文字、小文字、数字、_、長さ1-256をサポートします',
             volumeName:
                 'このフィールドは、英語、数字、「。」、「 - 」、および「_」文字で構成されている必要があります。',
diff --git a/frontend/src/lang/modules/ko.ts b/frontend/src/lang/modules/ko.ts
index bbe017b19f7e..29c888606add 100644
--- a/frontend/src/lang/modules/ko.ts
+++ b/frontend/src/lang/modules/ko.ts
@@ -195,14 +195,13 @@ const message = {
             illegalInput: '이 필드에는 유효하지 않은 문자가 포함될 수 없습니다.',
             commonName:
                 '이 필드는 특수 문자로 시작할 수 없으며, 영어, 한자, 숫자, ".", "-", "_" 문자로 구성되어야 하며 길이는 1-128자여야 합니다.',
-            userName: '이 필드는 영어, 한자, 숫자 및 "_" 문자로 구성되어야 하며 길이는 3-30 자여야 합니다.',
+            userName: '특수 문자로 시작하지 않고, 영어, 한국어, 숫자 및 _, 길이 3-30 지원',
             simpleName:
                 '이 필드는 "_"로 시작할 수 없으며, 영어, 숫자 및 "_" 문자로 구성되어야 하며 길이는 3-30 자여야 합니다.',
             simplePassword:
                 '이 필드는 "_"로 시작할 수 없으며, 영어, 숫자 및 "_" 문자로 구성되어야 하며 길이는 1-30 자여야 합니다.',
             dbName: '이 필드는 "_"로 시작할 수 없으며, 영어, 숫자 및 "_" 문자로 구성되어야 하며 길이는 1-64 자여야 합니다.',
-            imageName:
-                '이 필드는 영어, 숫자, ":", "@", "/", ".", "-", "_" 문자로 구성되어야 하며 길이는 1-256 자여야 합니다.',
+            imageName: '특수 문자로 시작하지 않고, 영어, 숫자, :@/.-_ 지원, 길이 1-256',
             composeName: '특수 문자로 시작할 수 없으며, 소문자, 숫자, "-", "_"를 지원하며 길이는 1-256 자여야 합니다.',
             volumeName: '이 필드는 영어, 숫자, ".", "-", "_" 문자로 구성되어야 하며 길이는 2-30 자여야 합니다.',
             supervisorName:
diff --git a/frontend/src/lang/modules/ms.ts b/frontend/src/lang/modules/ms.ts
index 06cd5f813697..93adac56cd85 100644
--- a/frontend/src/lang/modules/ms.ts
+++ b/frontend/src/lang/modules/ms.ts
@@ -199,12 +199,11 @@ const message = {
             commonName:
                 'Ruangan ini mesti bermula dengan aksara bukan khas dan mesti terdiri daripada aksara rumi, Cina, nombor, ".", "-", dan "_" dengan panjang 1-128 aksara.',
             userName:
-                'Ruangan ini mesti terdiri daripada aksara rumi, Cina, nombor, dan "_" dengan panjang 3-30 aksara.',
+                'Menyokong bermula dengan bukan aksara khas, Bahasa Inggeris, Bahasa Cina, nombor, dan _, panjang 3-30',
             simpleName: `Ruangan ini tidak boleh bermula dengan aksara garis bawah ("_") dan mesti terdiri daripada aksara rumi, nombor, dan "_" dengan panjang 3-30 aksara.`,
             simplePassword: `Ruangan ini tidak boleh bermula dengan aksara garis bawah ("_") dan mesti terdiri daripada aksara rumi, nombor, dan "_" dengan panjang 1-30 aksara.`,
             dbName: `Ruangan ini tidak boleh bermula dengan aksara garis bawah ("_") dan mesti terdiri daripada aksara rumi, nombor, dan "_" dengan panjang 1-64 aksara.`,
-            imageName:
-                'Ruangan ini mesti terdiri daripada aksara rumi, nombor, ":", "@", "/", ".", "-", dan "_" dengan panjang 1-256 aksara.',
+            imageName: 'Menyokong bermula dengan bukan aksara khas, Bahasa Inggeris, nombor, :@/.-_, panjang 1-256',
             composeName:
                 'Menyokong aksara bukan khas pada permulaan, huruf kecil, nombor, "-", dan "_", dengan panjang 1-256 aksara.',
             volumeName:
diff --git a/frontend/src/lang/modules/pt-br.ts b/frontend/src/lang/modules/pt-br.ts
index 5999887dcdc4..a59cfd3ce79d 100644
--- a/frontend/src/lang/modules/pt-br.ts
+++ b/frontend/src/lang/modules/pt-br.ts
@@ -197,14 +197,13 @@ const message = {
             illegalInput: 'Este campo não deve conter caracteres ilegais.',
             commonName:
                 'Este campo deve começar com caracteres não especiais e consistir em letras, números, ".", "-", e "_" com comprimento de 1-128.',
-            userName: 'Este campo deve conter letras, números e "_" com comprimento de 3-30.',
+            userName: 'Suporta não começar com caracteres especiais, inglês, chinês, números e _, comprimento 3-30',
             simpleName:
                 'Este campo não deve começar com "_" e deve conter letras, números e "_" com comprimento de 3-30.',
             simplePassword:
                 'Este campo não deve começar com "_" e deve conter letras, números e "_" com comprimento de 1-30.',
             dbName: 'Este campo não deve começar com "_" e deve conter letras, números e "_" com comprimento de 1-64.',
-            imageName:
-                'Este campo deve conter letras, números, ":", "@", "/", ".", "-", e "_" com comprimento de 1-256.',
+            imageName: 'Suporta não começar com caracteres especiais, inglês, números, :@/.-_, comprimento 1-256',
             composeName:
                 'Deve começar com caracteres não especiais, conter letras minúsculas, números, "-" e "_" com comprimento de 1-256.',
             volumeName: 'Este campo deve conter letras, números, ".", "-", e "_" com comprimento de 2-30.',
diff --git a/frontend/src/lang/modules/ru.ts b/frontend/src/lang/modules/ru.ts
index 47e25809a99e..5c5121c3c77e 100644
--- a/frontend/src/lang/modules/ru.ts
+++ b/frontend/src/lang/modules/ru.ts
@@ -196,13 +196,13 @@ const message = {
             illegalInput: 'Это поле не должно содержать недопустимых символов.',
             commonName:
                 'Это поле должно начинаться с неспециальных символов и должно состоять из английских букв, китайских иероглифов, цифр, ".", "-" и "_" длиной 1-128.',
-            userName: 'Это поле должно состоять из английских букв, китайских иероглифов, цифр и "_" длиной 3-30.',
+            userName: 'Поддерживает начало без специальных символов, английский, китайский, цифры и _, длина 3-30',
             simpleName:
                 'Это поле не должно начинаться с подчеркивания и должно состоять из английских букв, цифр и "_" длиной 3-30.',
             simplePassword:
                 'Это поле не должно начинаться с подчеркивания и должно состоять из английских букв, цифр и "_" длиной 1-30.',
             dbName: 'Это поле не должно начинаться с подчеркивания и должно состоять из английских букв, цифр и "_" длиной 1-64.',
-            imageName: 'Это поле должно состоять из английских букв, цифр, ":", "@", "/", ".", "-" и "_" длиной 1-256.',
+            imageName: 'Поддерживает начало без специальных символов, английский, цифры, :@/.-_, длина 1-256',
             composeName: 'Поддерживаются неспециальные символы в начале, строчные буквы, цифры, - и _, длина 1-256',
             volumeName: 'Это поле должно состоять из английских букв, цифр, ".", "-" и "_" длиной 2-30.',
             supervisorName:
diff --git a/frontend/src/lang/modules/zh-Hant.ts b/frontend/src/lang/modules/zh-Hant.ts
index 757001d5af15..3d88002d0fb2 100644
--- a/frontend/src/lang/modules/zh-Hant.ts
+++ b/frontend/src/lang/modules/zh-Hant.ts
@@ -202,12 +202,12 @@ const message = {
             requiredSelect: '請選擇必選項',
             illegalInput: '輸入框中存在不合法字符',
             commonName: '支持非特殊字元開頭,英文、中文、數字、.-和_,長度1-128',
-            userName: '支持英文、中文、數字和_,長度3-30',
+            userName: '支持非特殊字符開頭、英文、中文、數字和_,長度3-30',
             simpleName: '支持非底線開頭，英文、數字、_,長度3-30',
             simplePassword: '支持非底線開頭，英文、數字、_,長度1-30',
             dbName: '支持非特殊字符開頭，英文、中文、數字、.-_，長度1-64',
             composeName: '支持非特殊字符開頭，小寫英文、數字、-和_，長度1-256',
-            imageName: '支持英文、數字、:@/.-_,長度1-256',
+            imageName: '支持非特殊字符開頭、英文、數字、:@/.-_,長度1-256',
             volumeName: '支持英文、數字、.-和_,長度2-30',
             supervisorName: '支援非特殊字元開頭,英文、數字、-和_,長度1-128',
             complexityPassword: '請輸入長度為 8-30 位，並包含字母、數字、至少兩種特殊字符的密碼組合',
diff --git a/frontend/src/lang/modules/zh.ts b/frontend/src/lang/modules/zh.ts
index 9a4bcfb9a9ea..6a9cd998e6c8 100644
--- a/frontend/src/lang/modules/zh.ts
+++ b/frontend/src/lang/modules/zh.ts
@@ -202,12 +202,12 @@ const message = {
             requiredSelect: '请选择必选项',
             illegalInput: '输入框中存在不合法字符',
             commonName: '支持非特殊字符开头,英文、中文、数字、.-和_,长度1-128',
-            userName: '支持英文、中文、数字和_,长度3-30',
+            userName: '支持非特殊字符开头、英文、中文、数字和_,长度3-30',
             simpleName: '支持非下划线开头，英文、数字、_,长度3-30',
             simplePassword: '支持非下划线开头，英文、数字、_,长度1-30',
             dbName: '支持非特殊字符开头，英文、中文、数字、.-_,长度1-64',
             composeName: '支持非特殊字符开头，小写英文、数字、-和_,长度1-256',
-            imageName: '支持英文、数字、:@/.-_,长度1-256',
+            imageName: '支持非特殊字符开头、英文、数字、:@/.-_,长度1-256',
             volumeName: '支持英文、数字、.-和_,长度2-30',
             supervisorName: '支持非特殊字符开头,英文、数字、-和_,长度1-128',
             complexityPassword: '请输入长度为 8-30 位且包含字母、数字、特殊字符至少两项的密码组合',
diff --git a/frontend/src/views/website/ssl/ca/detail/index.vue b/frontend/src/views/website/ssl/ca/detail/index.vue
index 65254559579d..8b7787421925 100644
--- a/frontend/src/views/website/ssl/ca/detail/index.vue
+++ b/frontend/src/views/website/ssl/ca/detail/index.vue
@@ -1,9 +1,9 @@
 <template>
-    <DrawerPro v-model="open" :header="$t('ssl.organizationDetail')" @close="handleClose" size="large">
+    <DrawerPro v-model="open" :header="$t('ssl.organizationDetail')" @close="handleClose" size="normal">
         <div v-loading="loading">
             <el-radio-group v-model="curr">
                 <el-radio-button value="detail">{{ $t('ssl.organizationDetail') }}</el-radio-button>
-                <el-radio-button value="ssl">csr</el-radio-button>
+                <el-radio-button value="ssl">{{ $t('ssl.ssl') }}</el-radio-button>
                 <el-radio-button value="key">{{ $t('ssl.key') }}</el-radio-button>
             </el-radio-group>
             <div v-if="curr === 'detail'" class="mt-5">


Reviews:
user: login: wanghe-fit2cloud
state: COMMENTED
author_association: MEMBER
submitted_at: 2025-03-06T05:43:20Z
user: login: wanghe-fit2cloud
state: COMMENTED
author_association: MEMBER
submitted_at: 2025-03-06T05:43:29Z
user: login: wanghe-fit2cloud
state: COMMENTED
author_association: MEMBER
submitted_at: 2025-03-06T05:43:41Z

Review comments:
diff_hunk: @@ -196,13 +196,11 @@ const message = {
             illegalInput: `このフィールドには違法なキャラクターが含まれてはなりません。`,
             commonName:
                 'このフィールドは、特別なキャラクターではなく、英語、中国語、数字で構成されている必要があります。「。」、「」、および「_」文字が1〜128の文字で構成されている必要があります。',
-            userName:
-                'このフィールドは、英語、中国語、数字、および3〜30の長さの「_」文字で構成されている必要があります。',
+            userName: '特殊文字で始まらない、英字、漢字、数字、および_をサポート、長さ3-30',
             simpleName: `このフィールドは、アンダースコアキャラクターから始めてはなりません。長さ3〜30の英語、数字、「_」文字で構成されている必要があります。`,
             simplePassword: `このフィールドは、アンダースコアキャラクターから始めてはなりません。長さ1〜30の英語、数字、「_」文字で構成されている必要があります。`,
             dbName: `このフィールドは、アンダースコアキャラクターから始めてはなりません。長さ1〜64の英語、数字、「_」文字で構成されている必要があります。`,
-            imageName:
-                'このフィールドは、英語、数字、 ":"、 "@"、 "/"、 "、"、 "、および" _ "文字で構成されている必要があります。',
+            imageName: '特殊文字で始まらない、英字、数字、:@/.-_をサポート、長さ1-256',
             composeName: '最初の特別な文字、小文字、数字、_、長さ1-256をサポートします',
             volumeName:
                 'このフィールドは、英語、数字、「。」、「 - 」、および「_」文字で構成されている必要があります。',
path: frontend/src/lang/modules/ja.ts
user: login: wanghe-fit2cloud
body: No significant changes found.
created_at: 2025-03-06T05:43:19Z
author_association: MEMBER
diff_hunk: @@ -195,14 +195,13 @@ const message = {
             illegalInput: '이 필드에는 유효하지 않은 문자가 포함될 수 없습니다.',
             commonName:
                 '이 필드는 특수 문자로 시작할 수 없으며, 영어, 한자, 숫자, ".", "-", "_" 문자로 구성되어야 하며 길이는 1-128자여야 합니다.',
-            userName: '이 필드는 영어, 한자, 숫자 및 "_" 문자로 구성되어야 하며 길이는 3-30 자여야 합니다.',
+            userName: '특수 문자로 시작하지 않고, 영어, 한국어, 숫자 및 _, 길이 3-30 지원',
             simpleName:
                 '이 필드는 "_"로 시작할 수 없으며, 영어, 숫자 및 "_" 문자로 구성되어야 하며 길이는 3-30 자여야 합니다.',
             simplePassword:
                 '이 필드는 "_"로 시작할 수 없으며, 영어, 숫자 및 "_" 문자로 구성되어야 하며 길이는 1-30 자여야 합니다.',
             dbName: '이 필드는 "_"로 시작할 수 없으며, 영어, 숫자 및 "_" 문자로 구성되어야 하며 길이는 1-64 자여야 합니다.',
-            imageName:
-                '이 필드는 영어, 숫자, ":", "@", "/", ".", "-", "_" 문자로 구성되어야 하며 길이는 1-256 자여야 합니다.',
+            imageName: '특수 문자로 시작하지 않고, 영어, 숫자, :@/.-_ 지원, 길이 1-256',
             composeName: '특수 문자로 시작할 수 없으며, 소문자, 숫자, "-", "_"를 지원하며 길이는 1-256 자여야 합니다.',
             volumeName: '이 필드는 영어, 숫자, ".", "-", "_" 문자로 구성되어야 하며 길이는 2-30 자여야 합니다.',
             supervisorName:
path: frontend/src/lang/modules/ko.ts
user: login: wanghe-fit2cloud
body: There are several concerns with this code snippet:

1. **Grammar Errors**: Many of the messages contain grammatical errors, such as missing words and improper capitalization.

2. **Confusing Formatting**: The use of different formatting styles (e.g., "commonName" and its examples) can be confusing to read.

3. **Inconsistent Documentation**: The descriptions provided do not consistently reflect all valid characters allowed in each field.

4. **Lack of Consistency**: While some fields specify the maximum length, others omit it entirely without justification.

Here is a revised version with improved clarity, consistency, and grammar:

> ```typescript
-const message = {
+export default {
   // General error for invalid inputs
   illegalInput: 'This field cannot contain illegal characters.',

   // Common name validation rules
   commonName: `This field must start with an alphabet, followed by letters, numbers, '.', '-', '_', and have lengths between 1 and 128 characters.`,

   // User name validation rules
   userName: `Special characters are prohibited at the beginning; only lowercase letters, digits, underscores, and hyphens are permitted, with a length of 3 to 30 characters.`,

   // Simple name constraints
   simpleName: `The name should follow these restrictions: it may begin with a underscore and consist solely of lowercase letters, numbers, underscores, or dashes up to a total of 30 characters including special ones.`,

   // Simple password requirements
   simplePassword: `This field must avoid starting with an underline, consists only of alphanumeric characters, and include one symbol from ['@', '!', '?'] within the first 30 positions.`,

   // Database name guidelines
   dbName: `Cannot begin with an underscore, consisting of alphas, digits, dots, underscores, and hyphens within limits of 2 to 64 characters.`,

   // Image name specifications
   imageName: `Allowed characters must include alphabets, numbers, ':', '@', '/', '.', '-', '_'. Must be less than or equal to 256 characters long.`,

   // Compose file names convention
   composeName: `No special beginning symbols. Only small letters, numbers, '-' and '_' supported, with a character limit of 1 to 256.`,

   // Volume name standards
   volumeName: `Can only begin with a dot, dash, numbers, underscores or dots, no longer than 30 characters.`,

   // Supervisor's full name specification
};
```

### Key Changes made:
- **Grammar Corrections** and Improved Sentences
- Removed Excess Examples for brevity
- Provided Specific Rules for Each Field
- Added Comments for Clarity
- Replaced Incomplete Strings with Appropriate Terminology and Length Limits
created_at: 2025-03-06T05:43:29Z
author_association: MEMBER
diff_hunk: @@ -199,12 +199,11 @@ const message = {
             commonName:
                 'Ruangan ini mesti bermula dengan aksara bukan khas dan mesti terdiri daripada aksara rumi, Cina, nombor, ".", "-", dan "_" dengan panjang 1-128 aksara.',
             userName:
-                'Ruangan ini mesti terdiri daripada aksara rumi, Cina, nombor, dan "_" dengan panjang 3-30 aksara.',
+                'Menyokong bermula dengan bukan aksara khas, Bahasa Inggeris, Bahasa Cina, nombor, dan _, panjang 3-30',
             simpleName: `Ruangan ini tidak boleh bermula dengan aksara garis bawah ("_") dan mesti terdiri daripada aksara rumi, nombor, dan "_" dengan panjang 3-30 aksara.`,
             simplePassword: `Ruangan ini tidak boleh bermula dengan aksara garis bawah ("_") dan mesti terdiri daripada aksara rumi, nombor, dan "_" dengan panjang 1-30 aksara.`,
             dbName: `Ruangan ini tidak boleh bermula dengan aksara garis bawah ("_") dan mesti terdiri daripada aksara rumi, nombor, dan "_" dengan panjang 1-64 aksara.`,
-            imageName:
-                'Ruangan ini mesti terdiri daripada aksara rumi, nombor, ":", "@", "/", ".", "-", dan "_" dengan panjang 1-256 aksara.',
+            imageName: 'Menyokong bermula dengan bukan aksara khas, Bahasa Inggeris, nombor, :@/.-_, panjang 1-256',
             composeName:
                 'Menyokong aksara bukan khas pada permulaan, huruf kecil, nombor, "-", dan "_", dengan panjang 1-256 aksara.',
             volumeName:
path: frontend/src/lang/modules/ms.ts
user: login: wanghe-fit2cloud
body: The changes made to the `message` object's validation rules for certain fields have some inconsistencies and can be optimized to improve overall readability and maintainability of the code.

### Irregularities Identified:
1. **Mismatched Character Sets**:
   - For `userName`, `_` is included but not explicitly mentioned in the original description.
   - The descriptions for `simpleName`, `simplePassword`, `dbName`, and `composeName` all mention different character sets compared to each other, which does not align with expected consistency.

2. **Character Limit Explanations**:
   - Descriptions are vague about character limits (`panjang`) without providing numerical values.
   - It would be more helpful to specify exact length requirements (e.g., 3-30 characters) instead of stating they must include certain types of characters without specifying counts.

### Potential Issues:
1. **Inconsistency**:
   - Using both uppercase (`_`, `$`, `"`, `{}`) and lowercase characters mixed up might be misleading unless specifically defined within the context.
   - The absence of consistent naming conventions for similar fields (`commonName`, `simpleName`, etc.) could lead to confusion or errors when reviewing code.

2. **Readability Concerns**:
   - Long strings like "`Ruangan ini tidak boleh bermula dengan aksara garis bawah ("_")`" make it difficult to scan quickly and understand at a glance what constitutes valid input.
   - Simplifying the text while maintaining clarity would enhance its readability.

### Optimization Suggestions:

#### Improving Readability:
1. **Uniform Naming Conventions**: Use consistent naming patterns across similar fields.
2. **Clear Specification of Rules**: Provide specific lengths where applicable.
3. **Consistent Character Set**: Specify allowed characters consistently if mixing them (e.g., only allow alphanumeric characters and underscores).

Here’s an updated version following these suggestions:

```javascript
const messages = Object.assign({}, message, {
    userName: 'Ruangan ini mesti terdiri dari aksara rumi, Cina, numerik dan underscore hanya.', // Clear rule statement

    simpleName: `
        Ruangan ini tidak boleh memulakan dengan tanda garis bawah (_).
        Aksaranya mesti komponen alfanumerikal sederhana dalam rentang panjang antara 3 dan 30.
    `.trim(),

    simplePassword: `
        Ruangan ini tidak boleh memulakan dengan tanda garis bawah (_).
        Aksaranya mesti sekurang-kurangnya 1 alphanumeric serta maksimum 30 aksaranalik.
    `,
    
    dbName: `
        Ruangan ini harus diakhiri dengan tanda garis bawah (_).
        Maksud kata itu boleh mencakup maximum 64 karakter yang diterima.
    `, 
        
    composeName: `
        Ruangan ini boleh membuka nama menggunakan huruf kecil atau besar, angka, garis kutip dua, titik dua sama seperti (@), sudut barat (/). 
        Selain itu, dapat menampung spasi dan simbol penghubung (_) dalam rentang maksimum 256 karakter.
    `.trim(),
});
```

This approach clarifies expectations and improves the structure of the error messages throughout.
created_at: 2025-03-06T05:43:41Z
author_association: MEMBER

PR comments:
user: login: f2c-ci-robot[bot]
created_at: 2025-03-06T05:43:07Z
body: Adding the "do-not-merge/release-note-label-needed" label because no release-note block was detected, please follow our [release note process](https://git.k8s.io/community/contributors/guide/release-notes.md) to remove it.

<details>

Instructions for interacting with me using PR comments are available [here](https://git.k8s.io/community/contributors/guide/pull-requests.md).  If you have questions or suggestions related to my behavior, please file an issue against the [kubernetes/test-infra](https://github.com/kubernetes/test-infra/issues/new?title=Prow%20issue:) repository.
</details>
author_association: NONE
user: login: f2c-ci-robot[bot]
created_at: 2025-03-06T05:43:11Z
body: [APPROVALNOTIFIER] This PR is **NOT APPROVED**

This pull-request has been approved by:
**Once this PR has been reviewed and has the lgtm label**, please ask for approval from [zhengkunwang223](https://github.com/zhengkunwang223). For more information see [the Kubernetes Code Review Process](https://git.k8s.io/community/contributors/guide/owners.md#the-code-review-process).

The full list of commands accepted by this bot can be found [here](https://go.k8s.io/bot-commands?repo=1Panel-dev%2F1Panel).

<details open>
Needs approval from an approver in each of these files:

- **[OWNERS](https://github.com/1Panel-dev/1Panel/blob/dev-v2/OWNERS)**

Approvers can indicate their approval by writing `/approve` in a comment
Approvers can cancel approval by writing `/approve cancel` in a comment
</details>
<!-- META={"approvers":["zhengkunwang223"]} -->
author_association: NONE
user: login: sonarqubecloud[bot]
created_at: 2025-03-06T05:45:02Z
body: ## [![Quality Gate Passed](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/checks/QualityGateBadge/qg-passed-20px.png 'Quality Gate Passed')](https://sonarcloud.io/dashboard?id=1Panel-dev_1Panel&pullRequest=8081) **Quality Gate passed**  
Issues  
![](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/common/passed-16px.png '') [2 New issues](https://sonarcloud.io/project/issues?id=1Panel-dev_1Panel&pullRequest=8081&issueStatuses=OPEN,CONFIRMED&sinceLeakPeriod=true)  
![](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/common/accepted-16px.png '') [0 Accepted issues](https://sonarcloud.io/project/issues?id=1Panel-dev_1Panel&pullRequest=8081&issueStatuses=ACCEPTED)

Measures  
![](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/common/passed-16px.png '') [0 Security Hotspots](https://sonarcloud.io/project/security_hotspots?id=1Panel-dev_1Panel&pullRequest=8081&issueStatuses=OPEN,CONFIRMED&sinceLeakPeriod=true)  
![](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/common/passed-16px.png '') [0.0% Coverage on New Code](https://sonarcloud.io/component_measures?id=1Panel-dev_1Panel&pullRequest=8081&metric=new_coverage&view=list)  
![](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/common/passed-16px.png '') [0.0% Duplication on New Code](https://sonarcloud.io/component_measures?id=1Panel-dev_1Panel&pullRequest=8081&metric=new_duplicated_lines_density&view=list)  
  
[See analysis details on SonarQube Cloud](https://sonarcloud.io/dashboard?id=1Panel-dev_1Panel&pullRequest=8081)


author_association: NONE