From 9ca0b7466d844d1946f3f6f9f546a5c2e2969ec8 Mon Sep 17 00:00:00 2001 From: Trenton Zimmer <66042448+trmazi@users.noreply.github.com> Date: Sun, 5 Jan 2025 21:13:52 -0500 Subject: [PATCH] Fix type issue with arcade data, add dev claim view --- src/menuNavBar.js | 6 ++ src/router/index.js | 8 +++ src/views/Arcade/ArcadeView.vue | 4 +- src/views/Profile/ClaimView.vue | 107 ++++++++++++++++++++++++++++++++ 4 files changed, 123 insertions(+), 2 deletions(-) create mode 100644 src/views/Profile/ClaimView.vue diff --git a/src/menuNavBar.js b/src/menuNavBar.js index 108753e5..aff146b4 100644 --- a/src/menuNavBar.js +++ b/src/menuNavBar.js @@ -3,6 +3,7 @@ import { mdiLogout, mdiServerNetwork, mdiCardAccountDetailsOutline, + mdiAccountArrowLeftOutline, } from "@mdi/js"; export default [ @@ -24,6 +25,11 @@ export default [ label: "Login Cards", to: "/profile/cards", }, + { + icon: mdiAccountArrowLeftOutline, + label: "Claim Profile", + to: "/profile/claim", + }, ], }, // { diff --git a/src/router/index.js b/src/router/index.js index 1816177c..e1e6bd9e 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -82,6 +82,14 @@ const routes = [ name: "profile_cards", component: () => import("@/views/Profile/CardsView.vue"), }, + { + meta: { + title: "Claim a Profile", + }, + path: "/profile/claim", + name: "profile_claim", + component: () => import("@/views/Profile/ClaimView.vue"), + }, // { // meta: { // title: "Goals", diff --git a/src/views/Arcade/ArcadeView.vue b/src/views/Arcade/ArcadeView.vue index bd9d5cf9..3ea91097 100644 --- a/src/views/Arcade/ArcadeView.vue +++ b/src/views/Arcade/ArcadeView.vue @@ -153,13 +153,13 @@ async function exportVPN() { v-if="setting.type == 'Boolean'" :name="setting.id" :model-value=" - Boolean(getNestedValue(optionForm, setting.id) ?? 0) + Boolean(getNestedValue(optionForm, setting.id) ?? false) " :input-value="true" type="switch" @update:model-value=" (value) => - setNestedValue(optionForm, setting.id, Number(value) ?? 0) + setNestedValue(optionForm, setting.id, value ?? false) " /> diff --git a/src/views/Profile/ClaimView.vue b/src/views/Profile/ClaimView.vue new file mode 100644 index 00000000..b054fa27 --- /dev/null +++ b/src/views/Profile/ClaimView.vue @@ -0,0 +1,107 @@ + + +