diff --git a/frontend/src/App.vue b/frontend/src/App.vue index 27fe283a..66f45829 100644 --- a/frontend/src/App.vue +++ b/frontend/src/App.vue @@ -139,4 +139,21 @@ export default { border-color: #f56c6c; color: #fff; } + + .v-tour__target--highlighted { + box-shadow: 0 0 0 4px #f56c6c !important; + } + + .v-step__button { + background: #67c23a !important; + border: none !important; + color: white !important; + } + + .v-step__button:hover { + background: #67c23a !important; + border: none !important; + color: white !important; + opacity: 0.9 !important; + } diff --git a/frontend/src/i18n/zh.js b/frontend/src/i18n/zh.js index 12d261ca..ca15cdb7 100644 --- a/frontend/src/i18n/zh.js +++ b/frontend/src/i18n/zh.js @@ -407,7 +407,14 @@ docker run -d --restart always --name crawlab_worker \\ `, // 教程 + 'Skip': '跳过', + 'Previous': '上一步', + 'Next': '下一步', + 'Finish': '结束', 'Click to add a new spider': '点击并添加爬虫', + 'You can view your created spiders here.
Click a table row to view spider details.': '您可以查看创建的爬虫
点击行来查看爬虫详情', + 'View a list of Configurable Spiders': '查看自定义爬虫列表', + 'View a list of Customized Spiders': '查看可配置爬虫列表', // 其他 'Star crawlab-team/crawlab on GitHub': '在 GitHub 上为 Crawlab 加星吧' diff --git a/frontend/src/utils/tour.js b/frontend/src/utils/tour.js index 27f25824..ebe592ae 100644 --- a/frontend/src/utils/tour.js +++ b/frontend/src/utils/tour.js @@ -1,3 +1,5 @@ +import i18n from '../i18n' + export default { isFinishedTour: (tourName) => { if (!localStorage.getItem('tour')) { @@ -24,5 +26,14 @@ export default { } data[tourName] = 1 localStorage.setItem('tour', JSON.stringify(data)) + }, + options: { + labels: { + buttonSkip: i18n.t('Skip'), + buttonPrevious: i18n.t('Previous'), + buttonNext: i18n.t('Next'), + buttonStop: i18n.t('Finish') + }, + highlight: true } } diff --git a/frontend/src/views/spider/SpiderList.vue b/frontend/src/views/spider/SpiderList.vue index 7f072784..7cd93dc5 100644 --- a/frontend/src/views/spider/SpiderList.vue +++ b/frontend/src/views/spider/SpiderList.vue @@ -1,7 +1,12 @@