import Vue from "vue";
import Router from "vue-router";
import Welcome from "@/components/Welcome";
import RequestCreation from "@/components/RequestCreation";
import UserRequests from "@/components/UserRequests";
import ManageRequests from "@/components/ManageRequests";
import UserManagement from "@/components/UserManagement";
import QueueManagement from "@/components/QueueManagement";
import PrinterMangement from "@/components/PrinterManagement";

Vue.use(Router);

export default new Router({
  mode: "history",
  base: '/myfab',
  routes: [
    {
      path: "/",
      name: "Welcome",
      component: Welcome,
    },
    {
      path: "/new",
      name: "Nouvelle Demande",
      component: RequestCreation,
    },
    {
      path: "/my",
      name: "Mes demandes",
      component: UserRequests,
    },
    {
      path: "/manage",
      name: "Gestion des demandes",
      component: ManageRequests,
    },
    {
      path: "/users",
      name: "Gestion des utilisateurs",
      component: UserManagement,
    },
    {
      path: "/printers",
      name: "Gestion des imprimantes",
      component: PrinterMangement
    },
    {
      path: "/queues",
      name: "Gestion des files",
      component: QueueManagement
    }
  ],
});
