From de634b87eb412487d3566cd3375883f67864a9ca Mon Sep 17 00:00:00 2001 From: Kevin Midboe Date: Mon, 9 Mar 2026 00:09:41 +0100 Subject: [PATCH] Add admin page with route configuration --- src/pages/AdminPage.vue | 108 ++++++++++++++++++++++++++++++++++++++++ src/routes.ts | 7 ++- 2 files changed, 114 insertions(+), 1 deletion(-) create mode 100644 src/pages/AdminPage.vue diff --git a/src/pages/AdminPage.vue b/src/pages/AdminPage.vue new file mode 100644 index 0000000..36fa2f1 --- /dev/null +++ b/src/pages/AdminPage.vue @@ -0,0 +1,108 @@ + + + + + diff --git a/src/routes.ts b/src/routes.ts index 3bc48af..084aaff 100644 --- a/src/routes.ts +++ b/src/routes.ts @@ -4,7 +4,6 @@ import type { RouteRecordRaw, RouteLocationNormalized } from "vue-router"; /* eslint-disable-next-line import-x/no-cycle */ import store from "./store"; import { usePlexAuth } from "./composables/usePlexAuth"; - const { getPlexAuthCookie } = usePlexAuth(); declare global { @@ -80,6 +79,12 @@ const routes: RouteRecordRaw[] = [ path: "/password", component: () => import("./pages/GenPasswordPage.vue") }, + { + name: "admin", + path: "/admin", + meta: { requiresAuth: true }, + component: () => import("./pages/AdminPage.vue") + }, { name: "missing-plex-auth", path: "/missing/plex",