Add new mobile menu

This commit is contained in:
2021-08-12 22:04:47 +02:00
parent 164238d624
commit e8484f98d5
17 changed files with 467 additions and 56 deletions

15
src/store/index.ts Executable file → Normal file
View File

@@ -0,0 +1,15 @@
import {GetterTree, MutationTree} from "vuex";
export const state = () => ({
opened: false
})
export type RootState = ReturnType<typeof state>
export const getters: GetterTree<RootState, RootState> = {
opened: state => state.opened,
}
export const mutations: MutationTree<RootState> = {
TOGGLE_OPENED: (state, opened: boolean) => (state.opened = opened),
}