Add pinia and start working on authentication integration with appwrite

This commit is contained in:
2023-11-05 19:21:03 -05:00
parent e37998f188
commit edde4e79fd
13 changed files with 207 additions and 118 deletions

19
src/stores/account.ts Normal file
View File

@@ -0,0 +1,19 @@
import { defineStore } from 'pinia';
export const useCounterStore = defineStore('counter', {
state: () => ({
counter: 0
}),
getters: {
doubleCount (state) {
return state.counter * 2;
}
},
actions: {
increment () {
this.counter++;
}
}
});