add creation and registration of an access point
Signed-off-by: garionion <github@entr0py.de>
This commit is contained in:
parent
80ea692943
commit
736edcd8a6
11 changed files with 568 additions and 26 deletions
|
@ -4,6 +4,8 @@ const Settings = () => import("../views/Settings.vue");
|
|||
const Login = () => import("../views/Login.vue");
|
||||
const Sites = () => import("../views/Sites.vue");
|
||||
const AccessPoints = () => import("../views/AccessPoints.vue");
|
||||
const CreateAccessPoint = () => import("../views/CreateAccessPoint.vue");
|
||||
const RegisterAccessPoint = () => import("../views/RegisterAccessPoint.vue");
|
||||
import { isLoggedIn } from "../api";
|
||||
|
||||
const routes: RouteRecordRaw[] = [
|
||||
|
@ -32,7 +34,28 @@ const routes: RouteRecordRaw[] = [
|
|||
path: "/aps",
|
||||
name: "AccessPoints",
|
||||
component: AccessPoints,
|
||||
props: (route) => ({ site: Number(route.query["site-id"]).valueOf() }),
|
||||
props: (route) => ({ siteID: Number(route.query["site-id"]).valueOf() }),
|
||||
},
|
||||
{
|
||||
path: "/createAccessPoint",
|
||||
name: "CreateAccessPoint",
|
||||
component: CreateAccessPoint,
|
||||
props: (route) => ({ siteID: Number(route.query["site-id"]).valueOf() }),
|
||||
},
|
||||
{
|
||||
path: "/editAccessPoint",
|
||||
name: "EditAccessPoint",
|
||||
component: CreateAccessPoint,
|
||||
props: (route) => ({
|
||||
apID: Number(route.query["ap-id"]).valueOf(),
|
||||
edit: true,
|
||||
}),
|
||||
},
|
||||
{
|
||||
path: "/registerAccessPoint",
|
||||
name: "RegisterAccessPoint",
|
||||
component: RegisterAccessPoint,
|
||||
props: (route) => ({ apID: Number(route.query["ap-id"]).valueOf() }),
|
||||
},
|
||||
];
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue