feat: initial vuejs frontend commit

This commit is contained in:
Floriansylvain committed 2025-12-22 17:45:19 +01:00
1 parent fbbce403e2
commit 9ecaa80fcf
19 files changed
+978 -1

No files matched your search

+12
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 }
})