added baidu tongji for analytics

This commit is contained in:
Marvin Zhang
2019-05-29 22:22:54 +08:00
parent 7ed9a1836b
commit 2dd0a7cebf
2 changed files with 8 additions and 3 deletions

View File

@@ -42,11 +42,11 @@ export default {
dangerouslyUseHTMLString: true,
showClose: true,
duration: 0,
message: this.$t('<p>Do you allow us to collect some statistics to improve Crawlab?</p>' +
message: '<p>' + this.$t('Do you allow us to collect some statistics to improve Crawlab?') + '</p>' +
'<div style="text-align: center;margin-top: 10px;">' +
'<button class="message-btn" onclick="setUseStats(1)">' + this.$t('Yes') + '</button>' +
'<button class="message-btn" onclick="setUseStats(0)">' + this.$t('No') + '</button>' +
'</div>')
'</div>'
})
}
}

View File

@@ -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'
}