From 4faf6a936521bcb142f3134e9bb47157c3c6e79e Mon Sep 17 00:00:00 2001 From: Marvin Zhang Date: Wed, 29 May 2019 22:22:54 +0800 Subject: [PATCH 1/3] 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?' } From cb2d2b950ef5038cde2e11b3978d90045926ace9 Mon Sep 17 00:00:00 2001 From: Marvin Zhang Date: Thu, 30 May 2019 10:25:13 +0800 Subject: [PATCH 2/3] updated README --- README-zh.md | 3 +++ README.md | 3 +++ frontend/src/App.vue | 5 +++-- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/README-zh.md b/README-zh.md index dbb84089..ab6cbda7 100644 --- a/README-zh.md +++ b/README-zh.md @@ -1,6 +1,9 @@ # Crawlab ![](https://img.shields.io/badge/版本-v0.2.1-blue.svg) + + + 基于Celery的爬虫分布式爬虫管理平台,支持多种编程语言以及多种爬虫框架. diff --git a/README.md b/README.md index e3581571..da51832e 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,9 @@ # Crawlab ![](https://img.shields.io/badge/version-v0.2.1-blue.svg) + + + Celery-based web crawler admin platform for managing distributed web spiders regardless of languages and frameworks. diff --git a/frontend/src/App.vue b/frontend/src/App.vue index 4d4c0edf..975a627f 100644 --- a/frontend/src/App.vue +++ b/frontend/src/App.vue @@ -29,9 +29,9 @@ export default { localStorage.setItem('useStats', value) document.querySelector('.el-message__closeBtn').click() if (value === 1) { - _hmt.push(['_trackPageview', '/allow_stats']) + window._hmt.push(['_trackPageview', '/allow_stats']) } else { - _hmt.push(['_trackPageview', '/disallow_stats']) + window._hmt.push(['_trackPageview', '/disallow_stats']) } } @@ -98,6 +98,7 @@ export default { font-size: 12px; border-radius: 4px; cursor: pointer; + border: 1px solid #909399; } .message-btn:hover { From 43d9c72f4cc12dd05936db584e05f4029e49bc0a Mon Sep 17 00:00:00 2001 From: Marvin Zhang Date: Thu, 30 May 2019 12:00:31 +0800 Subject: [PATCH 3/3] updated README --- README-zh.md | 2 +- README.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README-zh.md b/README-zh.md index ab6cbda7..102eeceb 100644 --- a/README-zh.md +++ b/README-zh.md @@ -7,7 +7,7 @@ 基于Celery的爬虫分布式爬虫管理平台,支持多种编程语言以及多种爬虫框架. -[查看演示 Demo](http://139.129.230.98:8080) +[查看演示 Demo](http://114.67.75.98:8080) [English Documentation](https://github.com/tikazyq/crawlab/blob/master/README.md) diff --git a/README.md b/README.md index da51832e..4c6729c1 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ Celery-based web crawler admin platform for managing distributed web spiders regardless of languages and frameworks. -[Demo](http://139.129.230.98:8080) +[Demo](http://114.67.75.98:8080) [中文文档](https://github.com/tikazyq/crawlab/blob/master/README-zh.md)