Merge pull request #44 from tikazyq/develop

Develop
This commit is contained in:
Marvin Zhang
2019-05-30 12:02:32 +08:00
committed by GitHub
4 changed files with 19 additions and 7 deletions

View File

@@ -1,10 +1,13 @@
# Crawlab
![](https://img.shields.io/badge/版本-v0.2.1-blue.svg)
<a href="https://github.com/tikazyq/crawlab/blob/master/LICENSE" target="_blank">
<img src="https://img.shields.io/badge/License-BSD-blue.svg">
</a>
基于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)

View File

@@ -1,10 +1,13 @@
# Crawlab
![](https://img.shields.io/badge/version-v0.2.1-blue.svg)
<a href="https://github.com/tikazyq/crawlab/blob/master/LICENSE" target="_blank">
<img src="https://img.shields.io/badge/License-BSD-blue.svg">
</a>
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)

View File

@@ -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'])
}
}
@@ -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>'
})
}
}
@@ -98,6 +98,7 @@ export default {
font-size: 12px;
border-radius: 4px;
cursor: pointer;
border: 1px solid #909399;
}
.message-btn:hover {

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