feat: add notes app

This commit is contained in:
2026-10-01 19:39:20 +02:00
parent ccb8dd3d15
commit ddbb6f37b5
35 changed files with 706 additions and 52 deletions
+11
View File
@@ -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>