generated from pascalmartineau/wp-skeleton
refactor: better project structure
All checks were successful
Deploy WordPress and Nuxt / deploy (push) Successful in 6m3s
All checks were successful
Deploy WordPress and Nuxt / deploy (push) Successful in 6m3s
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
<script setup lang="ts">
|
||||
const { loginSchema, loginFields, onLoginSubmit } = useLogin();
|
||||
const { loginFields, onLoginSubmit } = useAuth();
|
||||
</script>
|
||||
|
||||
<template>
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<script setup lang="ts">
|
||||
const { onLogoutClick } = useLogout();
|
||||
const { onLogoutClick } = useAuth();
|
||||
</script>
|
||||
|
||||
<template>
|
||||
|
||||
@@ -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>
|
||||
@@ -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>
|
||||
Reference in New Issue
Block a user