up store
This commit is contained in:
parent
dad54ffd2f
commit
e196f1c60a
@ -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)
|
||||||
|
@ -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>
|
||||||
|
@ -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
|
||||||
},
|
},
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user