From eb903f68a38e9d2de3c9814281072f1dcadf5311 Mon Sep 17 00:00:00 2001 From: Eric Date: Fri, 22 May 2020 14:01:35 +0800 Subject: [PATCH 1/3] update session detail view --- src/views/sessions/SessionDetail/SessionDetailCard.vue | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/views/sessions/SessionDetail/SessionDetailCard.vue b/src/views/sessions/SessionDetail/SessionDetailCard.vue index 85ec3c2b5..d073f963b 100644 --- a/src/views/sessions/SessionDetail/SessionDetailCard.vue +++ b/src/views/sessions/SessionDetail/SessionDetailCard.vue @@ -75,7 +75,9 @@ export default { label: this.$t('sessions.go') }, callbacks: { - click: this.openReplaySession(this.sessionData.id) + click: function() { + this.openReplaySession(this.sessionData.id) + } } }, @@ -86,7 +88,9 @@ export default { label: this.$t('sessions.download') }, callbacks: { - click: this.openReplayDownload(this.sessionData.id) + click: function() { + this.openReplayDownload(this.sessionData.id) + } } } ] From 3f90f79161274b19316679a1cf5b23f562ce531b Mon Sep 17 00:00:00 2001 From: Eric Date: Fri, 22 May 2020 14:13:08 +0800 Subject: [PATCH 2/3] add i18n en --- src/i18n/langs/en.json | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/i18n/langs/en.json b/src/i18n/langs/en.json index 1088077f4..03912f8bf 100644 --- a/src/i18n/langs/en.json +++ b/src/i18n/langs/en.json @@ -50,7 +50,7 @@ "Type": "", "Database": "", "Comment": "", - "Action": "", + "Action": "Action", "RemoteType": "", "Asset": "", "SetMFA": "", @@ -107,7 +107,7 @@ "LoginRequiredMsg": "" }, "common": { - "Action": "", + "Action": "Action", "Actions": "Actions", "Activate": "Activate", "Active": "", @@ -143,7 +143,7 @@ "Update success": "", "Username": "", "Validity": "Validity", - "action": "", + "action": "Action", "actions": { "Create": "", "cancel": "" @@ -180,7 +180,7 @@ }, "rows": "", "table": { - "Actions": "" + "Actions": "Action" }, "tree": { "Empty": "Empty", @@ -346,18 +346,18 @@ "WebFTP": "" }, "sessions": { - "StorageConfiguration": "", + "StorageConfiguration": "Storage configuration", "accountKey": "Account key", "accountName": "Account name", - "active": "", - "alive": "", + "active": "active", + "alive": "alive", "asset": "Asset", "bucket": "Bucket", "command": "Command", "commandStorage": "Command storage", "comment": "Comment:", "containerName": "Container name", - "date": "", + "date": "Datetime", "dateCreated": "Date created:", "dateEnd": "Date end", "dateStart": "Date start", @@ -371,7 +371,7 @@ "goto": "Goto", "hosts": "Hosts", "httpPort": "Http port:", - "id": "", + "id": "ID", "index": "Index", "info": "", "join": "join", @@ -379,7 +379,7 @@ "name": "Name:", "protocol": "Protocol", "quickModify": "Quick Modify", - "region": "", + "region": "Region", "remoteAddr": "Remote addr", "replay": "replay", "replaySession": "Replay session:", From b787637fb0a5b949c05c5ae07b85821d5fa8713c Mon Sep 17 00:00:00 2001 From: Eric Date: Fri, 22 May 2020 14:47:06 +0800 Subject: [PATCH 3/3] add i18n en --- src/i18n/langs/cn.json | 4 +++- src/i18n/langs/en.json | 4 +++- src/views/sessions/Storage/CommandStorage.vue | 2 +- src/views/sessions/Storage/ReplayStorage.vue | 2 +- 4 files changed, 8 insertions(+), 4 deletions(-) diff --git a/src/i18n/langs/cn.json b/src/i18n/langs/cn.json index 3425fa434..35360b23a 100644 --- a/src/i18n/langs/cn.json +++ b/src/i18n/langs/cn.json @@ -463,7 +463,9 @@ "terminate": "终断", "test": "测试", "type": "类型", - "user": "用户" + "user": "用户", + "createReplayStorage": "创建录像存储", + "createCommandStorage": "创建命令存储" }, "setting": { "Basic": "基本设置", diff --git a/src/i18n/langs/en.json b/src/i18n/langs/en.json index 03912f8bf..2ce4141de 100644 --- a/src/i18n/langs/en.json +++ b/src/i18n/langs/en.json @@ -394,7 +394,9 @@ "terminate": "Terminate", "test": "Test", "type": "Type", - "user": "Use" + "user": "Use", + "createReplayStorage": "Create replay storage", + "createCommandStorage": "Create command storage" }, "setting": { "Basic": "Basic setting", diff --git a/src/views/sessions/Storage/CommandStorage.vue b/src/views/sessions/Storage/CommandStorage.vue index dc56eac9d..479fd772b 100644 --- a/src/views/sessions/Storage/CommandStorage.vue +++ b/src/views/sessions/Storage/CommandStorage.vue @@ -33,7 +33,7 @@ export default { callback: this.createEs.bind(this) } ], - moreActionsTitle: '创建' + moreActionsTitle: this.$t('sessions.createCommandStorage') }, commandTableConfig: { title: 'command', diff --git a/src/views/sessions/Storage/ReplayStorage.vue b/src/views/sessions/Storage/ReplayStorage.vue index b9fb7720b..5a79c9ffd 100644 --- a/src/views/sessions/Storage/ReplayStorage.vue +++ b/src/views/sessions/Storage/ReplayStorage.vue @@ -18,7 +18,7 @@ export default { hasBulkDelete: false, hasBulkUpdate: false, hasCreate: false, - moreActionsTitle: '创建', + moreActionsTitle: this.$t('sessions.createReplayStorage'), extraMoreActions: [ { name: 'S3',