add AccessPoint Overview page
Signed-off-by: garionion <github@entr0py.de>
This commit is contained in:
parent
b8bbfff381
commit
d8ac261b13
6 changed files with 165 additions and 17 deletions
|
@ -1,11 +1,12 @@
|
|||
import { createWebHistory, createRouter } from "vue-router";
|
||||
import { createWebHistory, createRouter, RouteRecordRaw } from "vue-router";
|
||||
import Home from "../views/Home.vue";
|
||||
const Settings = () => import("../views/Settings.vue");
|
||||
const Login = () => import("../views/Login.vue");
|
||||
const Sites = () => import("../views/Sites.vue");
|
||||
const AccessPoints = () => import("../views/AccessPoints.vue");
|
||||
import { isLoggedIn } from "../api";
|
||||
|
||||
const routes = [
|
||||
const routes: RouteRecordRaw[] = [
|
||||
{
|
||||
path: "/",
|
||||
name: "Home",
|
||||
|
@ -27,6 +28,12 @@ const routes = [
|
|||
component: Login,
|
||||
props: (route) => ({ logout: route.query.logout }),
|
||||
},
|
||||
{
|
||||
path: "/aps",
|
||||
name: "AccessPoints",
|
||||
component: AccessPoints,
|
||||
props: (route) => ({ site: Number(route.query["site-id"]).valueOf() }),
|
||||
},
|
||||
];
|
||||
|
||||
const router = createRouter({
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue