Skip to content

Commit

Permalink
added site list
Browse files Browse the repository at this point in the history
  • Loading branch information
Marvin Zhang committed May 9, 2019
1 parent 0ad0303 commit e822c65
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 2 deletions.
8 changes: 8 additions & 0 deletions frontend/src/i18n/zh.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ export default {
'Task Detail': '任务详情',
'Schedules': '定时任务',
'Deploys': '部署',
'Sites': '网站',

// 标签
Overview: '概览',
Expand Down Expand Up @@ -130,6 +131,13 @@ export default {
'Parameters': '参数',
'Add Schedule': '添加定时任务',

// 网站
'Site': '网站',
'Rank': '排名',
'Domain': '域名',
'Category': '类别',
'Select': '请选择',

// 文件
'Choose Folder': '选择文件',

Expand Down
20 changes: 20 additions & 0 deletions frontend/src/router/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,26 @@ export const constantRouterMap = [
}
]
},
{
name: 'Site',
path: '/sites',
component: Layout,
meta: {
title: 'Site',
icon: 'fa fa-sitemap'
},
children: [
{
path: '',
name: 'SiteList',
component: () => import('../views/site/SiteList'),
meta: {
title: 'Sites',
icon: 'fa fa-sitemap'
}
}
]
},

{ path: '*', redirect: '/404', hidden: true }
]
Expand Down
4 changes: 3 additions & 1 deletion frontend/src/store/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import task from './modules/task'
import file from './modules/file'
import schedule from './modules/schedule'
import lang from './modules/lang'
import site from './modules/site'
import getters from './getters'

Vue.use(Vuex)
Expand All @@ -27,7 +28,8 @@ const store = new Vuex.Store({
task,
file,
schedule,
lang
lang,
site
},
getters
})
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/store/modules/spider.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ const mutations = {
},
SET_NODE_STATS (state, value) {
state.nodeStats = value
},
}
}

const actions = {
Expand Down

0 comments on commit e822c65

Please sign in to comment.