Set up pinia

This commit is contained in:
Joscha 2025-01-27 20:23:29 +01:00
parent 7ac29857ef
commit 160c8a626d
6 changed files with 74 additions and 1 deletions

View file

@ -1,11 +1,18 @@
<script setup lang="ts">
import Navbar from "./components/Navbar.vue";
import Test from "./components/Test.vue";
import { useFooStore } from "./stores/foo";
const foo = useFooStore();
</script>
<template>
<div class="flex h-screen touch-pan-x touch-pan-y flex-col">
<Navbar />
<div class="h-full overflow-auto">
<Test />
<br />
Yes, it's now {{ foo.name }}.
<template v-for="_ in 6">
<p class="p-1 font-thin">The quick brown fox Qiii</p>
<p class="p-1 font-extralight">The quick brown fox Qiii</p>