This commit is contained in:
tykayn 2021-01-28 13:12:24 +01:00 committed by Baptiste Lemoine
parent dad54ffd2f
commit e196f1c60a
3 changed files with 12 additions and 13 deletions

View File

@ -1,4 +1,4 @@
import i18n from './config/i18n' import i18n from './config/i18n.ts'
export default { export default {
// Global page headers (https://go.nuxtjs.dev/config-head) // Global page headers (https://go.nuxtjs.dev/config-head)

View File

@ -2,11 +2,10 @@
<section class="section"> <section class="section">
<h1>Horaires</h1> <h1>Horaires</h1>
<p>Vos horaires actuelles</p> <p>Vos horaires actuelles</p>
<iframe <ul>
src="https://projets.pavie.info/yohours/" <li v-for="h in $store.formConfig.hours" :key="h">
frameborder="0" {{ h }}
width="100%" </li>
height="800" </ul>
></iframe>
</section> </section>
</template> </template>

View File

@ -10,28 +10,28 @@ export const state = () => ({
formConfig: { formConfig: {
name: '', name: '',
delivery: false, delivery: false,
hours: [], hours: ['a', 'b'],
tags: [], tags: [],
}, },
}) })
export const mutations = { export const mutations = {
increment(state: any) { increment(state) {
state.counter++ state.counter++
}, },
add(state: any, text: any) { add(state, text) {
state.list.push({ state.list.push({
text, text,
done: false, done: false,
}) })
}, },
remove(state: any, { todo }: any) { remove(state, { todo }) {
state.list.splice(state.list.indexOf(todo), 1) state.list.splice(state.list.indexOf(todo), 1)
}, },
setFormField(state: any, { field }: any) { setFormField(state, { field }) {
state.formConfig[state.formConfig.indexOf(field)] = 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 state.formConfig.tags[state.formConfig.tags.indexOf(field)] = field
}, },
} }