From a9d8018e78b2ee340130253c9546708a8705b3f3 Mon Sep 17 00:00:00 2001 From: ssongliu <73214554+ssongliu@users.noreply.github.com> Date: Fri, 15 Dec 2023 12:10:08 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=AE=B9=E5=99=A8=E5=8D=87=E7=BA=A7?= =?UTF-8?q?=E7=95=8C=E9=9D=A2=E8=B0=83=E6=95=B4=20(#3341)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/lang/modules/en.ts | 18 ++-- frontend/src/lang/modules/tw.ts | 7 +- frontend/src/lang/modules/zh.ts | 7 +- .../container/container/upgrade/index.vue | 90 ++++--------------- .../src/views/container/image/pull/index.vue | 2 +- 5 files changed, 26 insertions(+), 98 deletions(-) diff --git a/frontend/src/lang/modules/en.ts b/frontend/src/lang/modules/en.ts index d1622d7c4..705ec230b 100644 --- a/frontend/src/lang/modules/en.ts +++ b/frontend/src/lang/modules/en.ts @@ -588,18 +588,13 @@ const message = { privilegedHelper: 'Allows the container to perform certain privileged operations on the host, which may increase container risks. Use with caution!', - upgradeHelper: 'This operation only supports upgrading container versions.', - ignoreCompare: 'Force Upgrade', - ignoreCompareHelper: - 'Skip the comparison between old and new versions, upgrade directly. This operation may result in service unavailability.', - upgradeWarning: 'The target version is lower than the original image version. Please try again!', + upgradeHelper: 'Repository Name/Image Name: Image Version', upgradeWarning2: - 'The upgrade operation requires rebuilding the container, and any non-persistent data will be lost. Do you want to continue?', - oldImage: 'Current image', - targetImage: 'Target image', - imageLoadErr: 'System did not detect the container image name, please manually enter the full image name:tag ', - appHelper: - 'This container is sourced from the application store. Upgrading it may cause the service to be unavailable.', + 'The upgrade operation requires rebuilding the container, any unpersisted data will be lost. Do you wish to continue?', + oldImage: 'Current Image', + targetImage: 'Target Image', + imageLoadErr: 'No image name detected for the container', + appHelper: 'This container is sourced from the app store; upgrading might render the service unavailable', input: 'Input', forcePull: 'forced image pull ', @@ -1367,7 +1362,6 @@ const message = { rollbackHelper: 'This recovery is about to be rolled back, which will replace all the files recovered this time. In the process, docker and 1panel services may need to be restarted. Do you want to continue?', - upgrading: 'Please wait while the upgrade is underway...', upgradeHelper: 'The upgrade requires a service restart. Do you want to continue?', noUpgrade: 'It is currently the latest version', versionHelper: diff --git a/frontend/src/lang/modules/tw.ts b/frontend/src/lang/modules/tw.ts index 9d28427b2..71d871de6 100644 --- a/frontend/src/lang/modules/tw.ts +++ b/frontend/src/lang/modules/tw.ts @@ -571,14 +571,11 @@ const message = { privileged: '特權模式', privilegedHelper: '允許容器在主機上執行某些特權操作,可能會增加容器風險,請謹慎開啟!', - upgradeHelper: '該操作僅支持容器版本升級', - ignoreCompare: '強製升級', - ignoreCompareHelper: '跳過新老版本比較,直接升級,該操作可能導致服務不可用', - upgradeWarning: '當前目標版本低於原鏡像版本,請重新輸入!', + upgradeHelper: '倉庫名稱/鏡像名稱:鏡像版本', upgradeWarning2: '升級操作需要重建容器,任何未持久化的數據將會丟失,是否繼續?', oldImage: '當前鏡像', targetImage: '目標鏡像', - imageLoadErr: '系統未檢測到容器的鏡像名稱,請手動輸入完整的鏡像名稱:標籤', + imageLoadErr: '未檢測到容器的鏡像名稱', appHelper: '該容器來源於應用商店,升級可能導致該服務不可用', input: '手動輸入', diff --git a/frontend/src/lang/modules/zh.ts b/frontend/src/lang/modules/zh.ts index 2695d1e36..09090b1de 100644 --- a/frontend/src/lang/modules/zh.ts +++ b/frontend/src/lang/modules/zh.ts @@ -572,14 +572,11 @@ const message = { privileged: '特权模式', privilegedHelper: '允许容器在主机上执行某些特权操作,可能会增加容器风险,谨慎开启!', - upgradeHelper: '该操作仅支持容器版本升级', - ignoreCompare: '强制升级', - ignoreCompareHelper: '跳过新老版本比较,直接升级,该操作可能导致服务不可用', - upgradeWarning: '当前目标版本低于原镜像版本,请重新输入!', + upgradeHelper: '仓库名称/镜像名称:镜像版本', upgradeWarning2: '升级操作需要重建容器,任何未持久化的数据将会丢失,是否继续?', oldImage: '当前镜像', targetImage: '目标镜像', - imageLoadErr: '系统未检测到容器的镜像名称,请手动输入完整的镜像名称:标签', + imageLoadErr: '未检测到容器的镜像名称', appHelper: '该容器来源于应用商店,升级可能导致该服务不可用', input: '手动输入', diff --git a/frontend/src/views/container/container/upgrade/index.vue b/frontend/src/views/container/container/upgrade/index.vue index 003f72dbc..e44d52ed9 100644 --- a/frontend/src/views/container/container/upgrade/index.vue +++ b/frontend/src/views/container/container/upgrade/index.vue @@ -1,14 +1,14 @@