{"size": 719, "ext": "js", "max_stars_repo_path": "src/router.js", "max_stars_repo_name": "jade-press/jadepress-vue-spa", "max_stars_repo_stars_event_min_datetime": "2018-01-29T20:12:36.000Z", "max_stars_repo_stars_event_max_datetime": "2018-01-29T20:12:36.000Z", "max_issues_repo_path": "src/router.js", "max_issues_repo_name": "jade-press/jadepress-vue-spa", "max_issues_repo_issues_event_min_datetime": "2016-10-03T02:08:19.000Z", "max_issues_repo_issues_event_max_datetime": "2016-10-03T02:08:19.000Z", "max_forks_repo_path": "src/router.js", "max_forks_repo_name": "jade-press/jadepress-vue-spa", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 1, "max_issues_count": 1, "max_forks_count": null, "avg_line_length": 20.5428571429, "max_line_length": 52, "alphanum_fraction": 0.6675938804}
import VueRouter from 'vue-router'
import Vue from 'vue'
import { publicRoute } from './glob'
import Home from './containers/Home.vue'
import Cat from './containers/Cat.vue'
import PostSingle from './containers/PostSingle.vue'
import Search from './containers/Search.vue'


Vue.component('cat', Cat)
Vue.component('post-single', PostSingle)
Vue.component('search', Search)
Vue.component('home', Home)

Vue.use(VueRouter)
var router = new VueRouter({
  history: true
})

router.map({
    [publicRoute.home]: {
      component: Home
    }
    ,[publicRoute.cat]: {
      component: Cat
    }
    ,[publicRoute.post]: {
      component: PostSingle
    }
    ,'/s': {
      component: Search
    }
})

export default router