|
|
|
@ -16,8 +16,8 @@
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<div class="mx-12 flex h-full w-full max-w-3xl flex-row justify-center gap-4">
|
|
|
|
<div class="mx-12 flex h-full w-full max-w-3xl flex-row justify-center gap-4">
|
|
|
|
<div v-if="data" class="flex w-full flex-col gap-4">
|
|
|
|
<div v-if="notes" class="flex w-full flex-col gap-4">
|
|
|
|
<div v-for="note in data.notes" :key="note.id">
|
|
|
|
<div v-for="note in notes" :key="note.id">
|
|
|
|
<LazyCardNote :id="note.id" :uuid="note.uuid" :title="note.title ? note.title : 'untitled'"
|
|
|
|
<LazyCardNote :id="note.id" :uuid="note.uuid" :title="note.title ? note.title : 'untitled'"
|
|
|
|
:description="note.description" />
|
|
|
|
:description="note.description" />
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
@ -34,7 +34,7 @@ definePageMeta({
|
|
|
|
const router = useRouter()
|
|
|
|
const router = useRouter()
|
|
|
|
const isCreating = ref<boolean>(false)
|
|
|
|
const isCreating = ref<boolean>(false)
|
|
|
|
|
|
|
|
|
|
|
|
const { data: data, refresh } = await useFetch('/api/notes')
|
|
|
|
const { data: notes, refresh } = await useFetch('/api/notes')
|
|
|
|
|
|
|
|
|
|
|
|
const create = async () => {
|
|
|
|
const create = async () => {
|
|
|
|
isCreating.value = true
|
|
|
|
isCreating.value = true
|
|
|
|
|