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 {
// Global page headers (https://go.nuxtjs.dev/config-head)

View File

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

View File

@ -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
},
}