Initial commit

This commit is contained in:
Jesse Malotaux 2025-02-25 21:03:03 +01:00
commit d2d9aca35c
35 changed files with 4310 additions and 0 deletions

12
fe/src/stores/counter.js 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 }
})