App Bar Rewrite (#347)

* Dummy Commit

* consolidate sidebar and app bar

* fix image error

* consolidate sidebar

* new icon for user menu

* fixes #329

* fix double click on mobile

* swap to computed properties

* fix open/close bug

* rewrite search for mobile

* fix ingredient checkbox

* cleanup console.logs

* set default lang + bump version

* draft changelog

* reword

* update env variables

Co-authored-by: hay-kot <hay-kot@pm.me>
This commit is contained in:
Hayden
2021-04-25 13:47:08 -08:00
committed by GitHub
parent 7e6f3c9310
commit d5a340bde1
26 changed files with 384 additions and 370 deletions

View File

@@ -10,6 +10,7 @@ const state = {
cardsPerSection: 9,
categories: [],
},
customPages: [],
};
const mutations = {
@@ -18,6 +19,9 @@ const mutations = {
VueI18n.locale = payload.language;
Vuetify.framework.lang.current = payload.language;
},
setCustomPages(state, payload) {
state.customPages = payload;
},
};
const actions = {
@@ -25,11 +29,16 @@ const actions = {
let settings = await api.siteSettings.get();
commit("setSettings", settings);
},
async requestCustomPages({commit }) {
const customPages = await api.siteSettings.getPages()
commit("setCustomPages", customPages)
}
};
const getters = {
getActiveLang: state => state.siteSettings.language,
getSiteSettings: state => state.siteSettings,
getCustomPages: state => state.customPages,
};
export default {