import { createRouter, createWebHistory } from 'vue-router'

const routes = [
  {
    path: '/',
    name: 'Home',
    component: () => import('../views/Home.vue')
  },
  {
    path: '/user',
    name: 'User',
    component: () => import('../views/User.vue')
  },
  {
    path: '/equipManage/:data',
    name: 'EquipManage',
    component: () => import('../views/Equipment/EquipmentManagement.vue')
  },
  {
    path: '/materialManage/:data',
    name: 'MaterialManage',
    component: () => import('../views/Material/MaterialManagement.vue')
  },
  {
    path: '/staffManage',
    name: 'StaffManage',
    component: () => import('../views/Staff/StaffManagement.vue')
  },
  {
    path: '/equipDetail/:data',
    name: 'EquipDetail',
    component: () => import('../views/Equipment/EquipmentDetails.vue')
  },
  {
    path: '/materialDetail/:data',
    name: 'MaterialDetail',
    component: () => import('../views/Material/MaterialDetails.vue')
  },
  {
    path: '/iceEventManage/:data',
    name: 'IceEventManage',
    component: () => import('../views/IceEvent/IceEventManagement.vue')
  },
  {
    path: '/iceEventAdd/:data',
    name: 'IceEventAdd',
    component: () => import('../views/IceEvent/IceEventAdd.vue')
  },
  {
    path: '/iceEventDetail/:data',
    name: 'IceEventDetail',
    component: () => import('../views/IceEvent/IceEventDetails.vue')
  },
]

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes
})

export default router
