2022-09-16 21:11:44 +02:00
|
|
|
<template>
|
2022-09-19 22:06:26 +02:00
|
|
|
<div class="flex flex-col gap-5 mx-auto p-2 w-full max-w-md">
|
2022-09-16 21:11:44 +02:00
|
|
|
<div>
|
|
|
|
<h1 class="text-xl ml-2 font-bold">Info</h1>
|
|
|
|
<div class="container">
|
|
|
|
<div class="item">
|
|
|
|
Username
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
<h1 class="text-xl ml-2 font-bold">Account</h1>
|
2022-09-20 15:53:44 +02:00
|
|
|
<div class="container">
|
|
|
|
<div @click="logout" class="item-hover">
|
|
|
|
Logout
|
|
|
|
</div>
|
2022-09-16 21:11:44 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
<h1 class="text-xl ml-2 font-bold">Admin</h1>
|
|
|
|
<div class="container">
|
|
|
|
<NuxtLink to="/settings/admin/users" class="rounded-t item-hover py-2 flex items-center">
|
|
|
|
<span>Manage users</span>
|
|
|
|
<Icon class="ml-auto" size="2em" name="ion:arrow-forward"/>
|
|
|
|
</NuxtLink>
|
|
|
|
<div class="divider" />
|
|
|
|
<NuxtLink to="/settings/admin/ledenlijst" class="rounded-b item-hover py-2 flex items-center">
|
|
|
|
<span>Ledenlijst</span>
|
|
|
|
<Icon class="ml-auto" size="2em" name="ion:arrow-forward"/>
|
|
|
|
</NuxtLink>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script setup>
|
2022-09-20 15:53:44 +02:00
|
|
|
import { signOut } from "firebase/auth";
|
|
|
|
|
2022-09-16 21:11:44 +02:00
|
|
|
definePageMeta({
|
|
|
|
title: 'Settings'
|
|
|
|
})
|
2022-09-20 15:53:44 +02:00
|
|
|
|
|
|
|
const { auth } = inject('firebase')
|
|
|
|
|
|
|
|
const logout = () => {
|
|
|
|
signOut(auth.value)
|
|
|
|
.catch((error) => {
|
|
|
|
console.log(error)
|
|
|
|
})
|
|
|
|
}
|
2022-09-16 21:11:44 +02:00
|
|
|
</script>
|