import { createRouter, createWebHistory } from 'vue-router'
import Dashboard from '@/views/Dashboard.vue'
import Login from '@/views/Login.vue'
import Agents from '@/views/Agents.vue'
import Team from '@/views/Team.vue'
import Skill from '@/views/Skill.vue'
import ModelAPIs from '@/views/ModelAPIs.vue'
import Database from '@/views/Database.vue'
import Script from '@/views/Script.vue'
import Knowledge from '@/views/Knowledge.vue'
import Settings from '@/views/Settings.vue'
import Account from '@/views/Account.vue'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: 'login',
      component: Login
    },
    {
      path: '/dashboard',
      name: 'dashboard',
      component: Dashboard
    },
    {
      path: '/agents',
      name: 'agents',
      component: Agents
    },
    {
      path: '/team',
      name: 'team',
      component: Team
    },
    {
      path: '/mcp',
      name: 'mcp',
      component: Skill
    },
    {
      path: '/model-apis',
      name: 'model-apis',
      component: ModelAPIs
    },
    {
      path: '/database',
      name: 'database',
      component: Database
    },
    {
      path: '/script',
      name: 'script',
      component: Script
    },
    {
      path: '/knowledge',
      name: 'knowledge',
      component: Knowledge
    },
    {
      path: '/settings',
      name: 'settings',
      component: Settings
    },
    {
      path: '/account',
      name: 'account',
      component: Account
    }
  ]
})

export default router
