feat: add notes app
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
<script setup lang="ts">
|
||||
// Shows its content only after the shared password has been entered
|
||||
defineProps<{ title: string }>()
|
||||
|
||||
const { data: session, refresh } = await useFetch<{ unlocked: boolean }>('/api/auth/session', { key: 'auth-session' })
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<slot v-if="session?.unlocked" />
|
||||
<PasswordModal v-else :title="title" @unlocked="refresh()" />
|
||||
</template>
|
||||
Reference in New Issue
Block a user