forked from tykayn/osm_my_commerce
feat(form): add store vuex
parent
00f2692918
commit
336a09f259
@ -0,0 +1,17 @@
|
||||
export default [
|
||||
{
|
||||
title: 'Accueil',
|
||||
icon: 'home',
|
||||
to: { name: 'index' },
|
||||
},
|
||||
{
|
||||
title: 'Horaires',
|
||||
icon: 'clock',
|
||||
to: { name: 'Horaires' },
|
||||
},
|
||||
{
|
||||
title: 'à propos',
|
||||
icon: 'lightbulb',
|
||||
to: { name: 'A-propos' },
|
||||
},
|
||||
]
|
@ -0,0 +1,12 @@
|
||||
<template>
|
||||
<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>
|
||||
</section>
|
||||
</template>
|
@ -0,0 +1,26 @@
|
||||
export const state = () => ({
|
||||
counter: 0,
|
||||
list: [],
|
||||
formConfig: {},
|
||||
})
|
||||
|
||||
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)
|
||||
},
|
||||
toggle(state: any, todo: any) {
|
||||
todo.done = !todo.done
|
||||
},
|
||||
setFormField(state: any, { field }: any) {
|
||||
state.formConfig[state.formConfig.indexOf(field)] = field
|
||||
},
|
||||
}
|
Loading…
Reference in New Issue