refactor: better project structure
All checks were successful
Deploy WordPress and Nuxt / deploy (push) Successful in 6m3s

This commit is contained in:
2025-09-17 08:41:42 -04:00
parent ba42386645
commit 346890c088
19 changed files with 90 additions and 124 deletions

View File

@@ -1,5 +1,5 @@
<script setup lang="ts">
const { loginSchema, loginFields, onLoginSubmit } = useLogin();
const { loginFields, onLoginSubmit } = useAuth();
</script>
<template>

View File

@@ -1,5 +1,5 @@
<script setup lang="ts">
const { onLogoutClick } = useLogout();
const { onLogoutClick } = useAuth();
</script>
<template>

View File

@@ -1,12 +0,0 @@
<script setup lang="ts">
defineProps<{ showLabels: boolean }>();
</script>
<template>
<UButton
icon="i-lucide-user"
color="primary"
to="#"
:label="showLabels ? 'Devenir membre' : undefined"
/>
</template>

View File

@@ -1,13 +0,0 @@
<script setup lang="ts">
defineProps<{ userId: number }>();
const { isUserSwitched, userSwitchBack, userSwitchTo } = useUserSwitching();
</script>
<template>
<UButton v-if="isUserSwitched" variant="outline" @click="userSwitchBack()">
Switch back
</UButton>
<UButton v-else @click="userSwitchTo(userId)">
Switch to
</UButton>
</template>