2024-09-23 20:56:07 +02:00
|
|
|
<template>
|
|
|
|
<div>
|
|
|
|
<h1 class="text-xl">Welcome to your {{ appName }}!</h1>
|
2024-09-24 01:05:02 +02:00
|
|
|
<p v-if="current_user">Logged in as {{ current_user.name }}</p>
|
2024-09-23 20:56:07 +02:00
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
2024-09-24 01:05:02 +02:00
|
|
|
<script setup lang="ts">
|
|
|
|
const current_user = useCurrentUser();
|
|
|
|
const appName = 'Nuxt App';
|
2024-09-23 20:56:07 +02:00
|
|
|
</script>
|
|
|
|
|
|
|
|
<style scoped>
|
|
|
|
h1 {
|
|
|
|
color: #42b983;
|
|
|
|
}
|
|
|
|
</style>
|