From 007e0a463f90bb9fec4ec10b8bfbf2f9b96cd1cd Mon Sep 17 00:00:00 2001 From: Trenton Zimmer <66042448+trmazi@users.noreply.github.com> Date: Thu, 17 Oct 2024 01:30:27 -0400 Subject: [PATCH] Add data to admin dashboard --- src/stores/api/admin.js | 9 ++++ src/views/Admin/DashboardView.vue | 83 ++++++++++++++++++++++++++----- src/views/Auth/ResetView.vue | 4 ++ 3 files changed, 83 insertions(+), 13 deletions(-) diff --git a/src/stores/api/admin.js b/src/stores/api/admin.js index 948d8ea..c0658c0 100644 --- a/src/stores/api/admin.js +++ b/src/stores/api/admin.js @@ -1,5 +1,14 @@ import { useMainStore } from "@/stores/main"; const mainStore = useMainStore(); +export async function APIAdminDashboard() { + try { + const data = await mainStore.callApi(`/admin`); + return data.data; + } catch (error) { + console.log("Error loading admin dashboard:", error); + throw error; + } +} export async function checkArcadeName(arcadeName) { try { diff --git a/src/views/Admin/DashboardView.vue b/src/views/Admin/DashboardView.vue index 2c61d53..33be75f 100644 --- a/src/views/Admin/DashboardView.vue +++ b/src/views/Admin/DashboardView.vue @@ -1,30 +1,87 @@ - + + + PhaseII eAmusement Network + Welcome to the backend ;) + - - - - - + - - + + + + + + + + + + + + + + + diff --git a/src/views/Auth/ResetView.vue b/src/views/Auth/ResetView.vue index 15b379e..fb76f7d 100644 --- a/src/views/Auth/ResetView.vue +++ b/src/views/Auth/ResetView.vue @@ -153,6 +153,8 @@ async function resetPassword() { v-model="form.newPassword" :icon="mdiAsterisk" type="password" + required + minlength="8" /> @@ -160,6 +162,8 @@ async function resetPassword() { v-model="form.confirmPassword" :icon="mdiAsterisk" type="password" + required + minlength="8" />
Welcome to the backend ;)