Render notes from store

This commit is contained in:
Joscha 2025-02-05 02:22:02 +01:00
parent 6fb900fe4b
commit bb665d3b7d
6 changed files with 114 additions and 21 deletions

View file

@ -1,22 +1,16 @@
<script setup lang="ts">
import CNavbar from "./components/CNavbar.vue";
import CNote from "./components/CNote.vue";
import { Note } from "./types";
import { useUiStore } from "./stores/ui";
const testNote: Note = {
text: "hello",
children: [
{ text: "world", children: [] },
{ text: "foo", children: [] },
],
};
const ui = useUiStore();
</script>
<template>
<div class="flex h-screen touch-pan-x touch-pan-y flex-col">
<CNavbar />
<div class="h-full overflow-auto px-2 py-1">
<CNote :note="testNote" />
<CNote :id="ui.anchor" />
</div>
</div>
</template>