From ccae480ca49e14291260fbade8597ed4497157b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Malin=20Haugland=20H=C3=B8li?= <malin.holi@gmail.com> Date: Thu, 2 May 2024 14:45:49 +0200 Subject: [PATCH] style: :art: Ran npm format --- src/App.vue | 13 +++++++------ src/components/HelpComponent.vue | 2 +- src/views/BiometricLoginView.vue | 10 ++++------ src/views/ManageConfigView.vue | 14 ++++++++++---- src/views/ManageProfileView.vue | 6 +----- src/views/ViewProfileView.vue | 10 +++++----- 6 files changed, 28 insertions(+), 27 deletions(-) diff --git a/src/App.vue b/src/App.vue index 6de7916..6aeb0e5 100644 --- a/src/App.vue +++ b/src/App.vue @@ -145,13 +145,14 @@ const helpMessages = computed(() => { <template> <HelpComponent v-if="showHelp" :speech="helpMessages" /> <div - class="min-h-screen bg-left-bottom bg-phone md:bg-pc bg-no-repeat" - :style="backgroundImageStyle"> + class="min-h-screen bg-left-bottom bg-phone md:bg-pc bg-no-repeat" + :style="backgroundImageStyle" + > <NavBarComponent v-if="showNavBar" /> - - <main class="mb-10 "> - <RouterView /> - </main> + + <main class="mb-10"> + <RouterView /> + </main> </div> </template> diff --git a/src/components/HelpComponent.vue b/src/components/HelpComponent.vue index 7994c6b..90182c9 100644 --- a/src/components/HelpComponent.vue +++ b/src/components/HelpComponent.vue @@ -1,6 +1,6 @@ <template> <div class="fixed bottom-5 right-5 hover:cursor-pointer z-50" @click="isModalOpen = true"> - <img + <img alt="Hjelp" class="h-10 transition-transform duration-300 ease-in-out hover:scale-110" src="@/assets/hjelp.png" diff --git a/src/views/BiometricLoginView.vue b/src/views/BiometricLoginView.vue index 195ce7d..15d6690 100644 --- a/src/views/BiometricLoginView.vue +++ b/src/views/BiometricLoginView.vue @@ -19,13 +19,11 @@ const bioLogin = () => { <template> <div class="flex flex-col items-center h-screen gap-5 my-10"> <h1>Hei {{ username }}, velkommen tilbake!💥</h1> - <button - class="primary" - @click="bioLogin">Biometrisk login</button> + <button class="primary" @click="bioLogin">Biometrisk login</button> <p>Ikke deg? Eller funker ikke biometrisk innlogging?</p> - <button - class="primary" - @click="removeBioCredential">Logg inn med brukernavn og passord</button> + <button class="primary" @click="removeBioCredential"> + Logg inn med brukernavn og passord + </button> </div> </template> diff --git a/src/views/ManageConfigView.vue b/src/views/ManageConfigView.vue index fd0eeec..fac9e2f 100644 --- a/src/views/ManageConfigView.vue +++ b/src/views/ManageConfigView.vue @@ -115,7 +115,9 @@ onMounted(() => { <p class="font-bold">Passe</p> </CardTemplate> <CardTemplate - :class="{ 'border-2 border-lime-400': configuration.motivation === 'VERY_HIGH' }" + :class="{ + 'border-2 border-lime-400': configuration.motivation === 'VERY_HIGH' + }" class="cursor-pointer p-4 border-2" @click="configuration.motivation = 'VERY_HIGH'" > @@ -140,7 +142,9 @@ onMounted(() => { <p class="font-bold">Noe kjent</p> </CardTemplate> <CardTemplate - :class="{ 'border-2 border-lime-400': configuration.experience === 'VERY_HIGH' }" + :class="{ + 'border-2 border-lime-400': configuration.experience === 'VERY_HIGH' + }" class="cursor-pointer p-4 border-2" @click="configuration.experience = 'VERY_HIGH'" > @@ -164,9 +168,11 @@ onMounted(() => { v-text="'x'" /> </CardTemplate> - <button + <button class="font-bold text-2xl cursor-pointer transition-transform duration-300 ease-in-out hover:scale-110 hover:opacity-100 justify-start" - @click="createChallengeType" v-text="'Legg til flereðŸ“'" /> + @click="createChallengeType" + v-text="'Legg til flereðŸ“'" + /> </div> <div class="flex flex-row justify-center gap-5"> diff --git a/src/views/ManageProfileView.vue b/src/views/ManageProfileView.vue index b64bd43..8677246 100644 --- a/src/views/ManageProfileView.vue +++ b/src/views/ManageProfileView.vue @@ -236,11 +236,7 @@ const saveChanges = async () => { <div class="flex flex-row justify-between"> <button class="primary danger" @click="router.back()" v-text="'Avbryt'" /> - <button - class="primary" - @click="saveChanges" - v-text="'Lagre endringer'" - /> + <button class="primary" @click="saveChanges" v-text="'Lagre endringer'" /> </div> </div> </div> diff --git a/src/views/ViewProfileView.vue b/src/views/ViewProfileView.vue index 9f09c81..47e1ac6 100644 --- a/src/views/ViewProfileView.vue +++ b/src/views/ViewProfileView.vue @@ -99,17 +99,17 @@ const openSpare = () => { /> </CardTemplate> - <button + <button class="primary secondary" - @click="router.push({ name: 'edit-profile' })" v-text="'Rediger bruker'" /> + @click="router.push({ name: 'edit-profile' })" + v-text="'Rediger bruker'" + /> <button class="primary secondary" @click="router.push({ name: 'edit-configuration' })" v-text="'Rediger konfigurasjon'" /> - <button - class="primary" - @click="updateBiometrics"> + <button class="primary" @click="updateBiometrics"> {{ profile?.hasPasskey ? 'Endre biometri' : 'Legg til biometri' }} </button> </div> -- GitLab