From d8c165ca780c3180c639b751aa6fdf92843e1350 Mon Sep 17 00:00:00 2001 From: Eric Date: Fri, 15 Mar 2024 13:55:42 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E6=94=AF=E6=8C=81=E5=8F=91=E5=B8=83?= =?UTF-8?q?=E6=9C=BA=E4=BB=85=E5=88=9D=E5=A7=8B=E5=8C=96=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/i18n/langs/en.json | 1 + src/i18n/langs/ja.json | 1 + src/i18n/langs/zh.json | 3 ++- .../AppletHost/AppletHostDetail/Applets.vue | 17 +++++++++++++++++ 4 files changed, 21 insertions(+), 1 deletion(-) diff --git a/src/i18n/langs/en.json b/src/i18n/langs/en.json index 04863a3da..6fc177184 100644 --- a/src/i18n/langs/en.json +++ b/src/i18n/langs/en.json @@ -256,6 +256,7 @@ "SecretType": "Secret type", "PrivilegedTemplate": "Privileged", "InitialDeploy": "Initial deploy", + "OnlyInitialDeploy": "Initial Setup", "Address": "Address", "PrivateKey": "Private key", "Secret": "Secret", diff --git a/src/i18n/langs/ja.json b/src/i18n/langs/ja.json index b1c1394f4..3314f7261 100644 --- a/src/i18n/langs/ja.json +++ b/src/i18n/langs/ja.json @@ -459,6 +459,7 @@ "Token": "トークン", "GatewayList": "ゲートウェイ一覧", "InitialDeploy": "初期展開", + "OnlyInitialDeploy": "初期設定のみ", "PrivateKey": "鍵", "Category": "カテゴリー", "SSHPort": "SSH ポート", diff --git a/src/i18n/langs/zh.json b/src/i18n/langs/zh.json index 8fbbdfe36..a8379a267 100644 --- a/src/i18n/langs/zh.json +++ b/src/i18n/langs/zh.json @@ -280,7 +280,8 @@ "InAssetDetail": "在资产详情中更新账号信息", "SecretType": "密文类型", "PrivilegedTemplate": "特权的", - "InitialDeploy": "初始化部署", + "InitialDeploy": "初始化安装部署", + "OnlyInitialDeploy": "仅初始化配置", "Address": "地址", "PrivateKey": "密钥", "Secret": "密码", diff --git a/src/views/settings/Applet/AppletHost/AppletHostDetail/Applets.vue b/src/views/settings/Applet/AppletHost/AppletHostDetail/Applets.vue index 140b6ca51..ebde6cf93 100644 --- a/src/views/settings/Applet/AppletHost/AppletHostDetail/Applets.vue +++ b/src/views/settings/Applet/AppletHost/AppletHostDetail/Applets.vue @@ -115,6 +115,23 @@ export default { }.bind(this) } }, + { + title: this.$t('assets.OnlyInitialDeploy'), + attrs: { + type: 'primary', + label: this.$t('common.Deploy') + }, + callbacks: { + click: function() { + this.$axios.post( + `/api/v1/terminal/applet-host-deployments/`, + { host: this.object.id, install_applets: false } + ).then(res => { + openTaskPage(res['task']) + }) + }.bind(this) + } + }, { title: this.$t('common.PublishAllApplets'), attrs: {