From 38dadf60564ab5802e488b88b4a07d4e43f56b5d Mon Sep 17 00:00:00 2001 From: ssongliu <73214554+ssongliu@users.noreply.github.com> Date: Fri, 22 Sep 2023 15:58:23 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=AE=B9=E5=99=A8=E5=88=9B=E5=BB=BA?= =?UTF-8?q?=E6=9B=BF=E6=8D=A2=E5=8F=AF=E8=BE=93=E5=85=A5=E9=80=89=E6=8B=A9?= =?UTF-8?q?=E6=A1=86=20(#2378)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/api/interface/container.ts | 2 + frontend/src/lang/modules/en.ts | 5 +- frontend/src/lang/modules/tw.ts | 7 +- frontend/src/lang/modules/zh.ts | 7 +- .../container/container/operate/index.vue | 148 +++++++++--------- 5 files changed, 93 insertions(+), 76 deletions(-) diff --git a/frontend/src/api/interface/container.ts b/frontend/src/api/interface/container.ts index 8e1b37821..904350193 100644 --- a/frontend/src/api/interface/container.ts +++ b/frontend/src/api/interface/container.ts @@ -20,6 +20,7 @@ export namespace Container { containerID: string; name: string; image: string; + imageInput: boolean; forcePull: boolean; network: string; cmdStr: string; @@ -51,6 +52,7 @@ export namespace Container { sourceDir: string; containerDir: string; mode: string; + isVolume: boolean; } export interface ContainerInfo { containerID: string; diff --git a/frontend/src/lang/modules/en.ts b/frontend/src/lang/modules/en.ts index feffd004d..54c0aa676 100644 --- a/frontend/src/lang/modules/en.ts +++ b/frontend/src/lang/modules/en.ts @@ -476,7 +476,7 @@ const message = { container: { create: 'Create container', edit: 'Edit container', - updateContaienrHelper: + updateContainerHelper: 'Container editing requires rebuilding the container. Any data that has not been persisted 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?', @@ -551,6 +551,7 @@ const message = { appHelper: 'This container is sourced from the application store. Upgrading it may cause the service to be unavailable.', + input: 'Input', forcePull: 'forced image pull ', forcePullHelper: 'Ignore existing images on the server and pull again.', server: 'Host', @@ -565,6 +566,8 @@ const message = { memoryLimit: 'Memory', limitHelper: 'If you limit it to 0, then the limitation is turned off, and the maximum available is {0}.', mount: 'Mount', + volumeOption: 'Volume', + hostOption: 'Host', serverPath: 'Server path', containerDir: 'Container path', volumeHelper: 'Ensure that the content of the storage volume is correct', diff --git a/frontend/src/lang/modules/tw.ts b/frontend/src/lang/modules/tw.ts index b791f3e53..994c4a3bd 100644 --- a/frontend/src/lang/modules/tw.ts +++ b/frontend/src/lang/modules/tw.ts @@ -465,7 +465,7 @@ const message = { container: { create: '創建容器', edit: '編輯容器', - updateContaienrHelper: '容器編輯需要重建容器,任何未持久化的數據將會丟失,是否繼續?', + updateContainerHelper: '容器編輯需要重建容器,任何未持久化的數據將會丟失,是否繼續?', containerList: '容器列表', operatorHelper: '將對以下容器進行 {0} 操作,是否繼續?', operatorAppHelper: @@ -534,6 +534,7 @@ const message = { targetImageHelper: '請輸入目標鏡像版本', appHelper: '該容器來源於應用商店,升級可能導致該服務不可用', + input: '手動輸入', forcePull: '強製拉取鏡像', forcePullHelper: '忽略服務器已存在的鏡像,重新拉取一次', server: '服務器', @@ -547,7 +548,9 @@ const message = { cpuQuota: 'CPU 限製', memoryLimit: '內存限製', limitHelper: '限製為 0 則關閉限製,最大可用為 {0}', - mount: '掛載卷', + mount: '掛載', + volumeOption: '掛載卷', + hostOption: '本機目錄', serverPath: '服務器目錄', containerDir: '容器目錄', volumeHelper: '請確認存儲卷內容輸入正確', diff --git a/frontend/src/lang/modules/zh.ts b/frontend/src/lang/modules/zh.ts index 37265758a..f2907aada 100644 --- a/frontend/src/lang/modules/zh.ts +++ b/frontend/src/lang/modules/zh.ts @@ -465,7 +465,7 @@ const message = { container: { create: '创建容器', edit: '编辑容器', - updateContaienrHelper: '容器编辑需要重建容器,任何未持久化的数据将会丢失,是否继续?', + updateContainerHelper: '容器编辑需要重建容器,任何未持久化的数据将会丢失,是否继续?', containerList: '容器列表', operatorHelper: '将对以下容器进行 {0} 操作,是否继续?', operatorAppHelper: @@ -534,6 +534,7 @@ const message = { targetImageHelper: '请输入目标镜像版本', appHelper: '该容器来源于应用商店,升级可能导致该服务不可用', + input: '手动输入', forcePull: '强制拉取镜像', forcePullHelper: '忽略服务器已存在的镜像,重新拉取一次', server: '服务器', @@ -547,7 +548,9 @@ const message = { cpuQuota: 'CPU 限制', memoryLimit: '内存限制', limitHelper: '限制为 0 则关闭限制,最大可用为 {0}', - mount: '挂载卷', + mount: '挂载', + volumeOption: '挂载卷', + hostOption: '本机目录', serverPath: '服务器目录', containerDir: '容器目录', volumeHelper: '请确认存储卷内容输入正确', diff --git a/frontend/src/views/container/container/operate/index.vue b/frontend/src/views/container/container/operate/index.vue index ec7b00aef..58fad60f1 100644 --- a/frontend/src/views/container/container/operate/index.vue +++ b/frontend/src/views/container/container/operate/index.vue @@ -1,5 +1,5 @@