From 208414704d9b8a33ffb5377cb78060f0aee4844a Mon Sep 17 00:00:00 2001 From: ssongliu <73214554+ssongliu@users.noreply.github.com> Date: Wed, 23 Oct 2024 17:32:19 +0800 Subject: [PATCH] =?UTF-8?q?style:=20=E5=AE=B9=E5=99=A8=E6=A0=B7=E5=BC=8F?= =?UTF-8?q?=E8=B0=83=E6=95=B4=20(#6822)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Refs #6819 --- frontend/src/lang/modules/en.ts | 13 +- frontend/src/lang/modules/tw.ts | 8 +- frontend/src/lang/modules/zh.ts | 8 +- .../container/container/operate/index.vue | 183 ++++++++++-------- .../src/views/container/network/index.vue | 17 +- 5 files changed, 135 insertions(+), 94 deletions(-) diff --git a/frontend/src/lang/modules/en.ts b/frontend/src/lang/modules/en.ts index 34af3cf3a..5e12d4238 100644 --- a/frontend/src/lang/modules/en.ts +++ b/frontend/src/lang/modules/en.ts @@ -575,8 +575,13 @@ const message = { container: { create: 'Create', edit: 'Edit container', - updateContainerHelper: - 'Container editing requires rebuilding the container. Any data that has not been persisted will be lost. Do you want to continue?', + updateHelper1: 'Detected that this container comes from the app store. Please note the following two points:', + updateHelper2: + '1. The current modifications will not be synchronized to the installed applications in the app store.', + updateHelper3: + '2. If you modify the application on the installed page, the currently edited content will become invalid.', + updateHelper4: + 'Editing the container requires rebuilding, and any non-persistent data will be lost. Do you want to continue?', containerList: 'Container list', operatorHelper: '{0} will be performed on the following container, Do you want to continue?', operatorAppHelper: @@ -643,7 +648,7 @@ const message = { containerFromAppHelper: 'Detected that this container originates from the app store. App operations may cause current edits to be invalidated.', containerFromAppHelper1: - 'Click the `Settings` button in the installed applications list to enter the editing page and modify the container name.', + 'Click the [Param] button in the installed applications list to enter the editing page and modify the container name.', command: 'Command', console: 'Console Interaction', tty: 'TTY (-t)', @@ -731,6 +736,8 @@ const message = { urlWarning: 'The URL prefix does not need to include http:// or https://. Please modify.', network: 'Network', + networkHelper: + 'Deleting the 1panel-network container network will affect the normal use of some applications and runtime environments. Do you want to continue?', createNetwork: 'Create', networkName: 'Name', driver: 'Driver', diff --git a/frontend/src/lang/modules/tw.ts b/frontend/src/lang/modules/tw.ts index 067b76cf4..b7ac55b09 100644 --- a/frontend/src/lang/modules/tw.ts +++ b/frontend/src/lang/modules/tw.ts @@ -557,7 +557,10 @@ const message = { container: { create: '創建容器', edit: '編輯容器', - updateContainerHelper: '容器編輯需要重建容器,任何未持久化的數據將會丟失,是否繼續?', + updateHelper1: '檢測到該容器來源於應用商店,請注意以下兩點:', + updateHelper2: '1. 當前修改內容不會同步到應用商店的已安裝應用。', + updateHelper3: '2. 如果在已安裝頁面修改應用,當前編輯的部分內容將失效。', + updateHelper4: '編輯容器需要重建,任何未持久化的數據將丟失,是否繼續操作?', containerList: '容器列表', operatorHelper: '將對以下容器進行 {0} 操作,是否繼續?', operatorAppHelper: @@ -619,7 +622,7 @@ const message = { inputIpv6: '請輸入 IPv6 地址', containerFromAppHelper: '檢測到該容器來源於應用商店,應用操作可能會導致當前編輯失效', - containerFromAppHelper1: '在已安裝應用程式列表點擊 `參數` 按鈕,進入編輯頁面即可修改容器名稱。', + containerFromAppHelper1: '在已安裝應用程式列表點擊 [參數] 按鈕,進入編輯頁面即可修改容器名稱。', command: '命令', console: '控製臺交互', tty: '偽終端 ( -t )', @@ -707,6 +710,7 @@ const message = { urlWarning: '路徑前綴不需要添加 http:// 或 https://,請修改', network: '網絡', + networkHelper: '刪除 1panel-network 容器網絡將影響部分應用和運行環境的正常使用,是否繼續?', createNetwork: '創建網絡', networkName: '網絡名', driver: '模式', diff --git a/frontend/src/lang/modules/zh.ts b/frontend/src/lang/modules/zh.ts index ad672ff4b..9b41977d9 100644 --- a/frontend/src/lang/modules/zh.ts +++ b/frontend/src/lang/modules/zh.ts @@ -559,7 +559,10 @@ const message = { container: { create: '创建容器', edit: '编辑容器', - updateContainerHelper: '容器编辑需要重建容器,任何未持久化的数据将会丢失,是否继续?', + updateHelper1: '检测到该容器来源于应用商店,请注意以下两点:', + updateHelper2: '1. 当前修改内容不会同步到应用商店的已安装应用。', + updateHelper3: '2. 如果在已安装页面修改应用,当前编辑的部分内容将失效。', + updateHelper4: '编辑容器需要重建,任何未持久化的数据将丢失,是否继续操作?', containerList: '容器列表', operatorHelper: '将对以下容器进行 {0} 操作,是否继续?', operatorAppHelper: @@ -622,7 +625,7 @@ const message = { inputIpv6: '请输入 ipv6 地址', containerFromAppHelper: '检测到该容器来源于应用商店,应用操作可能会导致当前编辑失效', - containerFromAppHelper1: '在已安装应用列表点击 `参数` 按钮,进入编辑页面即可修改容器名称。', + containerFromAppHelper1: '在应用商店的已安装页面,点击 [参数] 按钮,进入编辑页面修改容器名称。', command: '命令', console: '控制台交互', tty: '伪终端 ( -t )', @@ -709,6 +712,7 @@ const message = { urlWarning: '路径前缀不需要添加 http:// 或 https://, 请修改', network: '网络', + networkHelper: '删除 1panel-network 容器网络将影响部分应用和运行环境的正常使用,是否继续?', createNetwork: '创建网络', networkName: '网络名', driver: '模式', diff --git a/frontend/src/views/container/container/operate/index.vue b/frontend/src/views/container/container/operate/index.vue index 6304eddff..aaf91e218 100644 --- a/frontend/src/views/container/container/operate/index.vue +++ b/frontend/src/views/container/container/operate/index.vue @@ -25,12 +25,6 @@ > - + +
+
+ {{ $t('container.updateHelper1') }} +
+
+
+ {{ $t('container.updateHelper2') }} +
+
+ {{ $t('container.updateHelper3') }} +
+
+
+
+ {{ $t('container.updateHelper4') }} +
+ +