import Vue from 'vue'
import VueRouter from 'vue-router'
import device from '../views/device.vue'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'device',
    component: device
  },
  {
    path: '/operationGuide',
    name: 'operationGuide',
    component: () => import('../views/operationGuide.vue')
  },
  {
    path: '/selectFile',
    name: 'selectFile',
    component: () => import('../views/selectFile.vue')
  },
  {
    path: '/transcoding',
    name: 'transcoding',
    component: () => import('../views/transcoding.vue')
  },
  {
    path: '/argument',
    name: 'argument',
    component: () => import('../views/argument.vue')
  },
  {
    path: '/expense',
    name: 'expense',
    component: () => import('../views/expense.vue')
  },
  {
    path: '/pay',
    name: 'pay',
    component: () => import('../views/pay.vue')
  },
  {
    path: '/complete',
    name: 'complete',
    component: () => import('../views/complete.vue')
  },
  {
    path: '/explain',
    name: 'explain',
    component: () => import('../views/explain.vue')
  }
]

const router = new VueRouter({
  routes
})

export default router
