import { createRouter, createWebHistory } from "vue-router";
import HomeView from "./views/HomeView.vue";
import AboutView from "./views/AboutView.vue";
import AiView from "./views/AiView.vue";
import AiPlanView from "./views/AiPlanView.vue";
import MoneroView from "./views/MoneroView.vue";
import AppsView from "./views/AppsView.vue";
import AccountView from "./views/AccountView.vue";
import RequestAccessView from "./views/RequestAccessView.vue";
import OnboardingView from "./views/OnboardingView.vue";

export default createRouter({
  history: createWebHistory(),
  routes: [
    { path: "/", name: "home", component: HomeView, meta: { homepageFocus: "sdet" } },
    { path: "/about", name: "about", component: AboutView, meta: { homepageFocus: "sdet" } },
    { path: "/dev", redirect: "/developer" },
    { path: "/:focus(devops|developer|sdet)", name: "home-focus", component: HomeView },
    { path: "/:focus(devops|developer|sdet)/about", name: "about-focus", component: AboutView },
    { path: "/ai", redirect: "/ai/chat" },
    { path: "/ai/chat", name: "ai-chat", component: AiView },
    { path: "/ai/roadmap", name: "ai-roadmap", component: AiPlanView },
    { path: "/monero", name: "monero", component: MoneroView },
    { path: "/apps", name: "apps", component: AppsView },
    { path: "/account", name: "account", component: AccountView },
    { path: "/request-access", name: "request-access", component: RequestAccessView },
    { path: "/onboarding", name: "onboarding", component: OnboardingView },
  ],
});
