{"size": 440, "ext": "js", "max_stars_repo_path": "router/index.js", "max_stars_repo_name": "sogud/vuepress-theme-minimalism", "max_stars_repo_stars_event_min_datetime": "2020-05-25T00:48:10.000Z", "max_stars_repo_stars_event_max_datetime": "2021-11-08T10:02:58.000Z", "max_issues_repo_path": "router/index.js", "max_issues_repo_name": "sogud/vuepress-theme-minimalism", "max_issues_repo_issues_event_min_datetime": "2022-01-17T06:07:18.000Z", "max_issues_repo_issues_event_max_datetime": "2022-01-17T06:07:18.000Z", "max_forks_repo_path": "router/index.js", "max_forks_repo_name": "sogud/vuepress-theme-minimalism", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 13, "max_issues_count": 1, "max_forks_count": null, "avg_line_length": 18.3333333333, "max_line_length": 64, "alphanum_fraction": 0.5363636364}
import Layout from '../layouts/Layout.vue'

const install = (Vue, { router }) => {
  let rules = ['/', '/list/', '/tags/', '/timeline/', '/posts/']
  const routes = []

  for (var i = 0, len = rules.length; i < len; i++) {
    routes.push({
      name: rules[i],
      path: rules[i],
      component: Layout
    })
  }

  router.addRoutes(routes)
  router.beforeEach((to, from, next) => {
    next();
  });
}

export default {
  install
}
