import {
  createRouter,
  createWebHistory,
  type RouteRecordRaw,
} from "vue-router";

import Home from "@/views/index.vue";
import Management from "@/views/management.vue";
import Command from "@/views/command.vue";
import ChatBI from "@/views/chatbi.vue";

const routes: RouteRecordRaw[] = [
  {
    path: "/",
    name: "Home",
    component: Home,
  },
  {
    path: "/management",
    name: "Management",
    component: Management,
  },
  {
    path: "/command",
    name: "Command",
    component: Command,
  },
  {
    path: "/chatbi",
    name: "ChatBI",
    component: ChatBI,
  },
];

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes,
});

export default router;
