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

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      redirect: '/data-management',
    },
    {
      path: '/data-management',
      name: 'data-management',
      component: () => import('@/views/DataManagement/index.vue'),
    },
    {
      path: '/realtime-monitor',
      name: 'realtime-monitor',
      component: () => import('@/views/RealtimeMonitor/index.vue'),
    },
    {
      path: '/realtime-monitor/:id',
      name: 'realtime-monitor-detail',
      component: () => import('@/views/RealtimeMonitor/components/ExperimentDetail.vue'),
    },
    {
      path: '/live-monitor',
      name: 'live-monitor',
      component: () => import('@/views/LiveMonitor/index.vue'),
    },
    {
      path: '/model-training',
      name: 'model-training',
      component: () => import('@/views/ModelTraining/index.vue'),
    },
    {
      path: '/model-list',
      name: 'model-list',
      component: () => import('@/views/ModelList/index.vue'),
    },
    {
      path: '/model-evaluation',
      name: 'model-evaluation',
      component: () => import('@/views/ModelEvaluation/index.vue'),
    },
    {
      path: '/package-management',
      name: 'package-management',
      component: () => import('@/views/PackageManagement/index.vue'),
    },
  ],
})

export default router
