import { createRouter, createWebHistory } from 'vue-router'
import Dashboard from '@/views/Dashboard.vue'
import Login from '@/views/Login.vue'
import Chat from '@/views/Chat.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 Plan from '@/views/Plan.vue'
import Memory from '@/views/Memory.vue'
import Knowledge from '@/views/Knowledge.vue'
import Settings from '@/views/Settings.vue'
import Account from '@/views/Account.vue'
import Logs from '@/views/Logs.vue'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: 'login',
      component: Login
    },
    {
      path: '/dashboard',
      name: 'dashboard',
      component: Dashboard
    },
    {
      path: '/chat',
      name: 'chat',
      component: Chat
    },
    {
      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: '/plan',
      name: 'plan',
      component: Plan
    },
    {
      path: '/memory',
      name: 'memory',
      component: Memory
    },
    {
      path: '/knowledge',
      name: 'knowledge',
      component: Knowledge
    },
    {
      path: '/settings',
      name: 'settings',
      component: Settings
    },
    {
      path: '/account',
      name: 'account',
      component: Account
    },
    {
      path: '/logs',
      name: 'logs',
      component: Logs
    }
  ]
})

export default router
