import Vue from 'vue'
import Router from 'vue-router'
import Echart from './views/Echart.vue'
import MapPage from './views/MapPage.vue'
import Relations from './views/Relations.vue'
import HotMap from './views/HotMap.vue'
import ColorMap from './views/ColorMap.vue'
import Events from './views/Events.vue'
Vue.use(Router)

export default new Router({
  mode: 'history',
  base: process.env.BASE_URL,
  routes: [
    {
      path: '/',
      name: 'Echart',
      component: Echart
    },
    {
      path: '/map',
      name: 'Map',
      component: MapPage
    }, {
      path: '/r',
      name: 'Relations',
      component: Relations
    }, {
      path: '/HotMap',
      name: 'HotMap',
      component: HotMap
    }, {
      path: '/ColorMap',
      name: 'ColorMap',
      component: ColorMap
    }, {
      path: '/events',
      name: 'events',
      component: Events
    }

  ]
})
