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('@/components/common/UnderConstruction.vue'),
      props: { title: '实时监控' },
    },
    {
      path: '/history-data',
      name: 'history-data',
      component: () => import('@/components/common/UnderConstruction.vue'),
      props: { title: '历史数据' },
    },
    {
      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
