diff --git a/components/SearchInput.vue b/components/SearchInput.vue index fbe2bad..6197cc7 100644 --- a/components/SearchInput.vue +++ b/components/SearchInput.vue @@ -17,7 +17,7 @@
( ici une carte ) - + logo osm

Sélection:

diff --git a/package.json b/package.json index e0d930d..ae3d57e 100644 --- a/package.json +++ b/package.json @@ -54,8 +54,6 @@ }, "husky": { "hooks": { - "commit-msg": "commitlint -E HUSKY_GIT_PARAMS", - "pre-commit": "lint-staged" } }, "lint-staged": { diff --git a/pages/A-propos.vue b/pages/A-propos.vue index d4dc04e..81a18a0 100644 --- a/pages/A-propos.vue +++ b/pages/A-propos.vue @@ -1,6 +1,6 @@ diff --git a/src/store/index.js b/src/store/index.js index ca60177..0e7ec40 100644 --- a/src/store/index.js +++ b/src/store/index.js @@ -9,7 +9,7 @@ export default new Vuex.Store({ searchQuery: '', select: {}, searchResults: [], - hours: [], + hours: ['Lu-We 08:00 - 09:00', 'Lu-We 10:00 - 22:00'], osm_data: {}, }, mutations: { diff --git a/store/index.ts b/store/index.ts new file mode 100644 index 0000000..893d863 --- /dev/null +++ b/store/index.ts @@ -0,0 +1,37 @@ +/** + * see VueX docs + */ +export const state = () => ({ + counter: 0, + isFetching: false, + searchInput: '', + selectedResult: null, + list: [], + formConfig: { + name: '', + delivery: false, + hours: [], + tags: [], + }, +}) + +export const mutations = { + increment(state: any) { + state.counter++ + }, + add(state: any, text: any) { + state.list.push({ + text, + done: false, + }) + }, + remove(state: any, { todo }: any) { + state.list.splice(state.list.indexOf(todo), 1) + }, + setFormField(state: any, { field }: any) { + state.formConfig[state.formConfig.indexOf(field)] = field + }, + setTag(state: any, { field }: any) { + state.formConfig.tags[state.formConfig.tags.indexOf(field)] = field + }, +}