import Vue from 'vue'
import Router from 'vue-router'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import index from '@/components/index'
import courseDetail from '@/components/courseDetail'
import mine from '@/components/mine'
import project from '@/components/project'
import works from '@/components/works'
import score from '@/components/score'
import notice from '@/components/notice'
import noticeDetail from '@/components/noticeDetail'
import study from '@/components/study'

Vue.use(Router).use(ElementUI)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'index',
      component: index
    },
    {
      path: '/courseDetail',
      name: 'courseDetail',
      component: courseDetail
    },
    {
      path: '/mine',
      name: 'mine',
      component: mine
    },
    {
      path: '/project',
      name: 'project',
      component: project
    },
    {
      path: '/works',
      name: 'works',
      component: works
    },
    {
      path: '/score',
      name: 'score',
      component: score
    },
    {
      path: '/notice',
      name: 'notice',
      component: notice
    },
    {
      path: '/noticeDetail',
      name: 'noticeDetail',
      component: noticeDetail
    },
    {
      path: '/study',
      name: 'study',
      component: study
    },
  ]
})
