diff options
| author | Arda Serdar Pektezol <1669855+pektezol@users.noreply.github.com> | 2023-01-06 23:55:12 +0300 |
|---|---|---|
| committer | Arda Serdar Pektezol <1669855+pektezol@users.noreply.github.com> | 2023-01-06 23:55:12 +0300 |
| commit | 4820c7696db3c54959258b1a5b00c77e1246cbd7 (patch) | |
| tree | 179edfca03618395939df1c3afccf2c90c64d424 /frontend/src/stores | |
| parent | (#20) successful integration of demo upload to drive (diff) | |
| download | lphub-4820c7696db3c54959258b1a5b00c77e1246cbd7.tar.gz lphub-4820c7696db3c54959258b1a5b00c77e1246cbd7.tar.bz2 lphub-4820c7696db3c54959258b1a5b00c77e1246cbd7.zip | |
what the fuck is this mess (#21)
Diffstat (limited to 'frontend/src/stores')
| -rw-r--r-- | frontend/src/stores/counter.ts | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/frontend/src/stores/counter.ts b/frontend/src/stores/counter.ts deleted file mode 100644 index b6757ba..0000000 --- a/frontend/src/stores/counter.ts +++ /dev/null | |||
| @@ -1,12 +0,0 @@ | |||
| 1 | import { ref, computed } from 'vue' | ||
| 2 | import { defineStore } from 'pinia' | ||
| 3 | |||
| 4 | export const useCounterStore = defineStore('counter', () => { | ||
| 5 | const count = ref(0) | ||
| 6 | const doubleCount = computed(() => count.value * 2) | ||
| 7 | function increment() { | ||
| 8 | count.value++ | ||
| 9 | } | ||
| 10 | |||
| 11 | return { count, doubleCount, increment } | ||
| 12 | }) | ||