diff --git a/.drone.yml b/.drone.yml
new file mode 100644
index 0000000..471c190
--- /dev/null
+++ b/.drone.yml
@@ -0,0 +1,5 @@
+kind: pipeline
+type: docker
+name: default
+
+steps:
\ No newline at end of file
diff --git a/Dockerfile b/Dockerfile
new file mode 100644
index 0000000..b0a5243
--- /dev/null
+++ b/Dockerfile
@@ -0,0 +1,28 @@
+FROM node:14.5.0-alpine
+
+# create destination directory
+RUN mkdir -p /usr/src/flylocal-web
+WORKDIR /usr/src/flylocal-web
+
+# update and install dependency
+RUN apk update && apk upgrade
+RUN apk add git
+
+# copy the app, note .dockerignore
+COPY . /usr/src/flylocal-web/
+RUN yarn install
+
+# build necessary, even if no static files are needed,
+# since it builds the server as well
+RUN yarn build
+
+# expose 3000 on container
+EXPOSE 3000
+
+# set app serving to permissive / assigned
+ENV NUXT_HOST=0.0.0.0
+# set app port
+ENV NUXT_PORT=3000
+
+# start the app
+CMD [ "yarn", "start" ]
\ No newline at end of file
diff --git a/components/AirportPicker.vue b/components/AirportPicker.vue
index 5bed72b..b52d6f6 100644
--- a/components/AirportPicker.vue
+++ b/components/AirportPicker.vue
@@ -110,7 +110,6 @@ export default {
},
data: () => ({
OpenIndicator,
- mountains: [],
filterBy: (option, label, search) => {
const temp = search.toLowerCase()
return option.search.toLowerCase().includes(temp)
diff --git a/components/Calendar.vue b/components/Calendar.vue
index dff4ca9..c6c0eb1 100644
--- a/components/Calendar.vue
+++ b/components/Calendar.vue
@@ -118,9 +118,32 @@ export default {
},
scheduleTime (dow) {
// console.log(dow)
- const thisDate = new Date(dow.DepartureTimeFormatted)
- const hours = thisDate.getHours() + Math.round(thisDate.getMinutes() / 60)
- return ((hours > 12) ? (hours - 12) + 'pm' : hours + 'am')
+ // const thisDate = new Date(dow.Departure_TimeL)
+ const timeArray = dow.Departure_TimeL.split(':')
+ const thisHour = timeArray[0]
+ const thisMinute = timeArray[1]
+ const hours = parseInt(thisHour) + Math.round(parseInt(thisMinute) / 60)
+
+ let timeString = ''
+
+ switch (true) {
+ case (hours > 12):
+ timeString = (hours - 12) + 'pm'
+ break
+ case (hours === 12):
+ timeString = '12pm'
+ break
+ case (hours < 12 && hours > 0):
+ timeString = hours + 'am'
+ break
+ case (hours === 0):
+ timeString = '12am'
+ break
+ default:
+ break
+ }
+
+ return timeString
}
}
}
diff --git a/components/TheSideBar.vue b/components/TheSideBar.vue
index f67ec0a..06cfc0f 100644
--- a/components/TheSideBar.vue
+++ b/components/TheSideBar.vue
@@ -254,7 +254,7 @@
-
+