build
This commit is contained in:
parent
3ecf24c3ea
commit
cdb1bb30b1
18 changed files with 337 additions and 128 deletions
31
frontend/src/router.js
Normal file
31
frontend/src/router.js
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
import { RouterView } from "vue-router";
|
||||
import { createRouter, createWebHashHistory } from "vue-router";
|
||||
import Calendar from "./components/pages/Calendar.vue";
|
||||
import Clients from "./components/pages/Clients.vue";
|
||||
import Jobs from "./components/pages/Jobs.vue";
|
||||
import Create from "./components/pages/Create.vue";
|
||||
import Routes from "./components/pages/Routes.vue";
|
||||
import TimeSheets from "./components/pages/TimeSheets.vue";
|
||||
import Warranties from "./components/pages/Warranties.vue";
|
||||
import Home from "./components/pages/Home.vue";
|
||||
|
||||
const routes = [
|
||||
{
|
||||
path: "/",
|
||||
component: Home,
|
||||
},
|
||||
{ path: "/calendar", component: Calendar },
|
||||
{ path: "/clients", component: Clients },
|
||||
{ path: "/jobs", component: Jobs },
|
||||
{ path: "/routes", component: Routes },
|
||||
{ path: "/create", component: Create },
|
||||
{ path: "/timesheets", component: TimeSheets },
|
||||
{ path: "/warranties", component: Warranties },
|
||||
];
|
||||
|
||||
const router = createRouter({
|
||||
history: createWebHashHistory(),
|
||||
routes,
|
||||
});
|
||||
|
||||
export default router;
|
||||
Loading…
Add table
Add a link
Reference in a new issue