import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    redirect: '/home'
  },

  {
    path: '/home',
    name: 'home',
    component: () => import('../views/home/index.vue')
  },
  {
    path: '/material',
    name: 'material',
    component: () => import('../views/material/index.vue')
  },
  {
    path: '/personnel',
    name: 'personnel',
    component: () => import('../views/personnel/index.vue')
  },
  {
    path: '/quality',
    name: 'quality',
    component: () => import('../views/quality/index.vue')
  },
  {
    path: '/schedule',
    name: 'schedule',
    component: () => import('../views/schedule/index.vue')
  },
  {
    path: '/security',
    name: 'security',
    component: () => import('../views/security/index.vue')
  },
  {
    path: '/technology',
    name: 'technology',
    component: () => import('../views/technology/index.vue')
  },
  {
    path: '/mechanical',
    name: 'mechanical',
    component: () => import('../views/mechanical/index.vue')
  },
  {
    path: '/video',
    name: 'video',
    component: () => import('../views/video/index.vue')
  }
]

const router = new VueRouter({
  mode: 'hash',
  // base: process.env.BASE_URL,
  routes
})

export default router
