|
|
@ -204,7 +204,7 @@ export default { |
|
|
|
|
|
|
|
const scheduleFetchFilterFormula = `AND(Is_Current="Yes",Origin_IATA="${this.$route.params.o}",Destination_IATA="${this.$route.params.d}",Effective_End>"${today}",SEARCH("${new Date(this.$route.params.departure).getDay()}",Frequency)>0)` |
|
|
|
// console.log(scheduleFetchFilterFormula) |
|
|
|
const scheduleFetchSort = '&sort[0][field]=DepartureTimeFormatted&sort[0][direction]=asc' |
|
|
|
const scheduleFetchSort = '&sort[0][field]=Departure_TimeL&sort[0][direction]=asc' |
|
|
|
|
|
|
|
const response = await fetch(`https://api.airtable.com/v0/appiQwfVZixRgRICe/Schedule?filterByFormula=${scheduleFetchFilterFormula}${scheduleFetchSort}`, { |
|
|
|
method: 'GET', |
|
|
@ -235,7 +235,7 @@ export default { |
|
|
|
const thisDate = new Date(date) |
|
|
|
const month = thisDate.toLocaleString('en-us', { month: 'short' }) |
|
|
|
const year = ((thisDate.getFullYear() !== new Date().getFullYear()) ? ', ' + thisDate.getFullYear() : '') |
|
|
|
return month + ' ' + thisDate.getDate() + year |
|
|
|
return month + ' ' + thisDate.getUTCDate() + year |
|
|
|
}, |
|
|
|
daysList (days) { |
|
|
|
const list = days.split(', ').map((day) => { |
|
|
@ -506,7 +506,8 @@ span.text--flight-num { |
|
|
|
|
|
|
|
span.text--dow { |
|
|
|
font-weight: 300; |
|
|
|
letter-spacing: -0.1em; |
|
|
|
font-size: 0.8rem; |
|
|
|
color: #007fff; |
|
|
|
} |
|
|
|
|
|
|
|
span.badge--avail { |
|
|
|