mapado route -> 'mapado-api'
This commit is contained in:
parent
37a84058d1
commit
dde1813f78
12 changed files with 127 additions and 42 deletions
|
|
@ -18,10 +18,15 @@
|
|||
this.dates = getDatesInMonth(this.monthNumb);
|
||||
|
||||
const mapadoDates = await getMapadoDates(this.monthNumb)
|
||||
|
||||
mapadoDates.forEach(mapadoDate => {
|
||||
const day = parseInt(mapadoDate.day)
|
||||
this.dates[day].push(mapadoDate)
|
||||
})
|
||||
|
||||
const kirbyDates = await getKirbyDates(this.monthNumb, this.dates)
|
||||
|
||||
console.log('kirby dates', kirbyDates)
|
||||
|
||||
console.log('dates', this.dates)
|
||||
document.body.classList.toggle('progress')
|
||||
|
|
@ -36,7 +41,7 @@
|
|||
x-init="updateDates()"
|
||||
>
|
||||
<div class="calendar-strip__selector">
|
||||
<button class="prev-month" @click="monthNumb--; updateDates()" :disabled="monthNumb === -4 ? true : false">←</button>
|
||||
<button class="prev-month" @click="monthNumb--; updateDates()">←</button>
|
||||
<span x-text="monthName"></span>
|
||||
<button class="next-month" @click="monthNumb++; updateDates()">→</button>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue