Add basic vue app

This commit is contained in:
Joey Yakimowich-Payne 2023-08-09 19:31:10 -06:00
commit 69e7cf3f3b
No known key found for this signature in database
GPG key ID: 6BFE655FA5ABD1E1
44 changed files with 3530 additions and 1217 deletions

12
app/stores/counter.ts Normal file
View file

@ -0,0 +1,12 @@
import { ref, computed } from 'vue'
import { defineStore } from 'pinia'
export const useCounterStore = defineStore('counter', () => {
const count = ref(0)
const doubleCount = computed(() => count.value * 2)
function increment() {
count.value++
}
return { count, doubleCount, increment }
})