From 4faf6a936521bcb142f3134e9bb47157c3c6e79e Mon Sep 17 00:00:00 2001 From: Marvin Zhang Date: Wed, 29 May 2019 22:22:54 +0800 Subject: [PATCH] added baidu tongji for analytics --- frontend/src/App.vue | 4 ++-- frontend/src/i18n/zh.js | 7 ++++++- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/frontend/src/App.vue b/frontend/src/App.vue index 2a86e532..4d4c0edf 100644 --- a/frontend/src/App.vue +++ b/frontend/src/App.vue @@ -42,11 +42,11 @@ export default { dangerouslyUseHTMLString: true, showClose: true, duration: 0, - message: this.$t('

Do you allow us to collect some statistics to improve Crawlab?

' + + message: '

' + this.$t('Do you allow us to collect some statistics to improve Crawlab?') + '

' + '
' + '' + '' + - '
') + '' }) } } diff --git a/frontend/src/i18n/zh.js b/frontend/src/i18n/zh.js index 9af096c9..35d7eaf8 100644 --- a/frontend/src/i18n/zh.js +++ b/frontend/src/i18n/zh.js @@ -194,6 +194,10 @@ export default { User: '用户', Logout: '退出登录', + // 选择 + 'Yes': '是', + 'No': '否', + // 弹出框 Notification: '提示', 'Are you sure to delete this node?': '你确定要删除该节点?', @@ -201,5 +205,6 @@ export default { 'Node info has been saved successfully': '节点信息已成功保存', 'Are you sure to deploy this spider?': '你确定要部署该爬虫?', 'Are you sure to delete this spider?': '你确定要删除该爬虫?', - 'Spider info has been saved successfully': '爬虫信息已成功保存' + 'Spider info has been saved successfully': '爬虫信息已成功保存', + 'Do you allow us to collect some statistics to improve Crawlab?': '您允许我们收集统计数据以更好地优化Crawlab?' }