iterate hours
This commit is contained in:
commit
35fee566d9
@ -17,7 +17,7 @@
|
|||||||
|
|
||||||
<b-field label="Trouver mon Commerce par nom ou par SIREN">
|
<b-field label="Trouver mon Commerce par nom ou par SIREN">
|
||||||
<b-autocomplete
|
<b-autocomplete
|
||||||
v-model="searchQuery"
|
v-model="$store.searchQuery"
|
||||||
:data="data"
|
:data="data"
|
||||||
placeholder="ex: Chambre du commerce d'Evry"
|
placeholder="ex: Chambre du commerce d'Evry"
|
||||||
field="title"
|
field="title"
|
||||||
@ -90,7 +90,7 @@
|
|||||||
<section class="map">
|
<section class="map">
|
||||||
<br />
|
<br />
|
||||||
( ici une carte )
|
( ici une carte )
|
||||||
<!-- <img src="~assets/carte_demo.png" alt="logo osm" />-->
|
<img src="~assets/carte_demo.png" alt="logo osm" />
|
||||||
</section>
|
</section>
|
||||||
<h2>Sélection:</h2>
|
<h2>Sélection:</h2>
|
||||||
<fieldset class="has-background-info">
|
<fieldset class="has-background-info">
|
||||||
|
@ -54,8 +54,6 @@
|
|||||||
},
|
},
|
||||||
"husky": {
|
"husky": {
|
||||||
"hooks": {
|
"hooks": {
|
||||||
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS",
|
|
||||||
"pre-commit": "lint-staged"
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"lint-staged": {
|
"lint-staged": {
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<section class="section">
|
<section class="section">
|
||||||
<h1>à propos</h1>
|
<h1 class="title is-1">à propos</h1>
|
||||||
<p>
|
<p>
|
||||||
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Aliquid aperiam
|
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Aliquid aperiam
|
||||||
corporis eum natus odio recusandae sapiente sunt suscipit voluptate,
|
corporis eum natus odio recusandae sapiente sunt suscipit voluptate,
|
||||||
|
@ -2,11 +2,12 @@
|
|||||||
<section class="section">
|
<section class="section">
|
||||||
<h1>Horaires</h1>
|
<h1>Horaires</h1>
|
||||||
<p>Vos horaires actuelles</p>
|
<p>Vos horaires actuelles</p>
|
||||||
<iframe
|
<ul v-if="store.state.hours">
|
||||||
src="https://projets.pavie.info/yohours/"
|
<li v-for="(h,index) in store.state.hours">
|
||||||
frameborder="0"
|
<div :key="index" class="hour">
|
||||||
width="100%"
|
{{ h }}
|
||||||
height="800"
|
</div>
|
||||||
></iframe>
|
</li>
|
||||||
|
</ul>
|
||||||
</section>
|
</section>
|
||||||
</template>
|
</template>
|
||||||
|
@ -9,7 +9,7 @@ export default new Vuex.Store({
|
|||||||
searchQuery: '',
|
searchQuery: '',
|
||||||
select: {},
|
select: {},
|
||||||
searchResults: [],
|
searchResults: [],
|
||||||
hours: [],
|
hours: ['Lu-We 08:00 - 09:00', 'Lu-We 10:00 - 22:00'],
|
||||||
osm_data: {},
|
osm_data: {},
|
||||||
},
|
},
|
||||||
mutations: {
|
mutations: {
|
||||||
|
37
store/index.ts
Normal file
37
store/index.ts
Normal file
@ -0,0 +1,37 @@
|
|||||||
|
/**
|
||||||
|
* see VueX docs
|
||||||
|
*/
|
||||||
|
export const state = () => ({
|
||||||
|
counter: 0,
|
||||||
|
isFetching: false,
|
||||||
|
searchInput: '',
|
||||||
|
selectedResult: null,
|
||||||
|
list: [],
|
||||||
|
formConfig: {
|
||||||
|
name: '',
|
||||||
|
delivery: false,
|
||||||
|
hours: [],
|
||||||
|
tags: [],
|
||||||
|
},
|
||||||
|
})
|
||||||
|
|
||||||
|
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)
|
||||||
|
},
|
||||||
|
setFormField(state: any, { field }: any) {
|
||||||
|
state.formConfig[state.formConfig.indexOf(field)] = field
|
||||||
|
},
|
||||||
|
setTag(state: any, { field }: any) {
|
||||||
|
state.formConfig.tags[state.formConfig.tags.indexOf(field)] = field
|
||||||
|
},
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user