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

const router = createRouter({
  history: createWebHistory(),
  routes: [
    {
      path: '/',
      name: 'dashboard',
      component: () => import('@/views/Dashboard.vue')
    },
    {
      path: '/errors',
      name: 'errors',
      component: () => import('@/views/ErrorLogs.vue')
    },
    {
      path: '/servers',
      name: 'servers',
      component: () => import('@/views/ServerManage.vue')
    },
    {
      path: '/stats/monthly',
      name: 'monthly-stats',
      component: () => import('@/views/MonthlyStats.vue')
    },
    {
      path: '/stats/daily',
      name: 'daily-stats',
      component: () => import('@/views/DailyStats.vue')
    },
    {
      path: '/patterns',
      name: 'patterns',
      component: () => import('@/views/PatternManage.vue')
    },
    {
      path: '/settings',
      name: 'settings',
      component: () => import('@/views/Settings.vue')
    }
  ]
})

export default router
