feat: ♻️ refactor ALL THE THINGS!!! (again)
Update to Vue 3 and employ Vue Router, additional design changes and navigation changes
This commit is contained in:
parent
e9f29b655d
commit
ae5d4d2633
59 changed files with 2768 additions and 1381 deletions
47
src/router/index.js
Normal file
47
src/router/index.js
Normal file
|
@ -0,0 +1,47 @@
|
|||
import { createRouter, createWebHistory } from "vue-router";
|
||||
import Home from "../views/Home.vue";
|
||||
|
||||
const routes = [
|
||||
{
|
||||
path: "/",
|
||||
name: "Home",
|
||||
component: Home,
|
||||
},
|
||||
{
|
||||
path: "/general",
|
||||
name: "General",
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "general" */ "@/views/General.vue"),
|
||||
},
|
||||
{
|
||||
path: "/anatomy",
|
||||
name: "Anatomy",
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "anatomy" */ "@/views/Anatomy.vue"),
|
||||
},
|
||||
{
|
||||
path: "/clothing",
|
||||
name: "Clothing",
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "clothing" */ "@/views/Clothing.vue"),
|
||||
},
|
||||
{
|
||||
path: "/abilities",
|
||||
name: "Abilities",
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "abilities" */ "@/views/Abilities.vue"),
|
||||
},
|
||||
{
|
||||
path: "/overdrive",
|
||||
name: "Overdrive",
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "overdrive" */ "@/views/Overdrive.vue"),
|
||||
},
|
||||
];
|
||||
|
||||
const router = createRouter({
|
||||
history: createWebHistory(process.env.BASE_URL),
|
||||
routes,
|
||||
});
|
||||
|
||||
export default router;
|
Loading…
Add table
Add a link
Reference in a new issue