From d13687a9100a8246d3acb44ff042554e5b5b006c Mon Sep 17 00:00:00 2001 From: jedi Date: Wed, 6 Nov 2024 00:26:56 +0100 Subject: [PATCH] cleanup admin 'dashboard' --- web/src/router.js | 4 +- web/src/views/admin/Dashboard.vue | 33 ++++++++++++++++ web/src/views/admin/Debug.vue | 62 ------------------------------- 3 files changed, 35 insertions(+), 64 deletions(-) create mode 100644 web/src/views/admin/Dashboard.vue delete mode 100644 web/src/views/admin/Debug.vue diff --git a/web/src/router.js b/web/src/router.js index 7d756e8..bad2970 100644 --- a/web/src/router.js +++ b/web/src/router.js @@ -7,7 +7,7 @@ import Files from './views/Files'; import HowTo from './views/HowTo'; import Login from '@/views/Login.vue'; import Register from '@/views/Register.vue'; -import Debug from "@/views/admin/Debug.vue"; +import Dashboard from "@/views/admin/Dashboard.vue"; import Tickets from "@/views/Tickets.vue"; import Ticket from "@/views/Ticket.vue"; import Admin from "@/views/admin/Admin.vue"; @@ -59,7 +59,7 @@ const routes = [ {requiresAuth: true, requiresPermission: 'delete_event'} }, { - path: '', name: 'admin', component: Debug, meta: + path: '', name: 'admin', component: Dashboard, meta: {requiresAuth: true, requiresPermission: 'delete_event'} }, { diff --git a/web/src/views/admin/Dashboard.vue b/web/src/views/admin/Dashboard.vue new file mode 100644 index 0000000..6272d71 --- /dev/null +++ b/web/src/views/admin/Dashboard.vue @@ -0,0 +1,33 @@ + + + + + \ No newline at end of file diff --git a/web/src/views/admin/Debug.vue b/web/src/views/admin/Debug.vue deleted file mode 100644 index 1acde81..0000000 --- a/web/src/views/admin/Debug.vue +++ /dev/null @@ -1,62 +0,0 @@ - - - - - \ No newline at end of file