diff --git a/nuxt.config.js b/nuxt.config.js index 83a2a1b..aa86896 100644 --- a/nuxt.config.js +++ b/nuxt.config.js @@ -1,4 +1,4 @@ -import i18n from './config/i18n' +import i18n from './config/i18n.ts' export default { // Global page headers (https://go.nuxtjs.dev/config-head) diff --git a/pages/Horaires.vue b/pages/Horaires.vue index b64013f..3f68917 100644 --- a/pages/Horaires.vue +++ b/pages/Horaires.vue @@ -2,11 +2,10 @@

Horaires

Vos horaires actuelles

- +
diff --git a/store/index.ts b/store/index.js similarity index 73% rename from store/index.ts rename to store/index.js index 893d863..7c54ea3 100644 --- a/store/index.ts +++ b/store/index.js @@ -10,28 +10,28 @@ export const state = () => ({ formConfig: { name: '', delivery: false, - hours: [], + hours: ['a', 'b'], tags: [], }, }) export const mutations = { - increment(state: any) { + increment(state) { state.counter++ }, - add(state: any, text: any) { + add(state, text) { state.list.push({ text, done: false, }) }, - remove(state: any, { todo }: any) { + remove(state, { todo }) { state.list.splice(state.list.indexOf(todo), 1) }, - setFormField(state: any, { field }: any) { + setFormField(state, { field }) { state.formConfig[state.formConfig.indexOf(field)] = field }, - setTag(state: any, { field }: any) { + setTag(state, { field }) { state.formConfig.tags[state.formConfig.tags.indexOf(field)] = field }, }