aboutsummaryrefslogtreecommitdiff
path: root/packages/client/src/router/index.js
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2021-07-03 17:45:18 +0200
committerHampusM <hampus@hampusmat.com>2021-07-03 17:45:18 +0200
commit505c18041bebf533ec63fed3790f54f5c6e1843b (patch)
treea1e4661449e8757ac6b0ad83088759c1609ebc96 /packages/client/src/router/index.js
parent7ee871e391cd2d2057175d54767fc71e708e32eb (diff)
Made a bunch of frontend stuff work
Diffstat (limited to 'packages/client/src/router/index.js')
-rw-r--r--packages/client/src/router/index.js15
1 files changed, 9 insertions, 6 deletions
diff --git a/packages/client/src/router/index.js b/packages/client/src/router/index.js
index ed53590..b20a473 100644
--- a/packages/client/src/router/index.js
+++ b/packages/client/src/router/index.js
@@ -1,11 +1,10 @@
import { createRouter, createWebHashHistory } from "vue-router";
-import Home from "../views/Home";
const routes = [
{
path: "/",
name: "Home",
- component: Home
+ component: () => import("../views/Home")
},
{
path: "/:repo([a-zA-Z0-9\\.\\-_]+)",
@@ -34,12 +33,16 @@ const routes = [
name: "Tree",
component: () => import("../views/RepositoryTree"),
props: route => ({ pathArr: route.params.path ? route.params.path : [] })
- },
- {
- path: "",
- redirect: to => `/${to.params.repo}/log`
}
+ /* {
+ path: "",
+ component: () => import("../views/RepositoryRedirect")
+ } */
]
+ },
+ {
+ path: "/:PageNotFound(.*)*",
+ component: () => import("../views/PageNotFound")
}
];