diff --git a/public/sw.js b/public/sw.js index 583c670..8704f43 100644 --- a/public/sw.js +++ b/public/sw.js @@ -4,6 +4,8 @@ import { CacheFirst } from 'workbox-strategies' precacheAndRoute(self.__WB_MANIFEST || []) +self.addEventListener('install', () => self.skipWaiting()) + registerRoute( ({ url }) => url.pathname.startsWith('/img/lines-icons/'), new CacheFirst({ diff --git a/src/components/AppHeader.vue b/src/components/AppHeader.vue index 01ea059..7521d6f 100644 --- a/src/components/AppHeader.vue +++ b/src/components/AppHeader.vue @@ -45,7 +45,7 @@ export default Vue.extend({ }, data: () => ({ clockInterval: 0, - time: {} as Time, + time: Object as Time, }), created () { this.clockInterval = setInterval(() => { diff --git a/src/components/AppNav.vue b/src/components/AppNav.vue index 931c4f7..7444d81 100644 --- a/src/components/AppNav.vue +++ b/src/components/AppNav.vue @@ -1,6 +1,6 @@ @@ -30,7 +35,7 @@ export default Vue.extend({ UiSchedulesDetailsTimeWrapped, }, props: { - visit: {} as PropType, + visit: Object as PropType, }, methods: { toTime, @@ -44,5 +49,14 @@ export default Vue.extend({ max-width: 20rem; margin: 0 1rem 0.5rem 0; justify-content: space-between; + font-size: 1.0625rem; +} + +.way-label { + font-size: 0.875rem; +} + +.way-value { + text-align: center; } diff --git a/src/components/Stop/StopSchedulesVisit.vue b/src/components/Stop/StopSchedulesVisit.vue new file mode 100644 index 0000000..8caf0a1 --- /dev/null +++ b/src/components/Stop/StopSchedulesVisit.vue @@ -0,0 +1,159 @@ + + + diff --git a/src/components/Stop/StopSchedulesVisitTime.vue b/src/components/Stop/StopSchedulesVisitTime.vue index 62cb3f7..a79db64 100644 --- a/src/components/Stop/StopSchedulesVisitTime.vue +++ b/src/components/Stop/StopSchedulesVisitTime.vue @@ -7,16 +7,17 @@ diff --git a/src/components/Stop/StopSchedulesVisits.vue b/src/components/Stop/StopSchedulesVisits.vue index 84d1ae7..01b3880 100644 --- a/src/components/Stop/StopSchedulesVisits.vue +++ b/src/components/Stop/StopSchedulesVisits.vue @@ -1,98 +1,31 @@ - - diff --git a/src/components/ui/Schedules/UiSchedulesDetailsRow.vue b/src/components/ui/Schedules/UiSchedulesDetailsRow.vue index f98bc61..b0dc6ee 100644 --- a/src/components/ui/Schedules/UiSchedulesDetailsRow.vue +++ b/src/components/ui/Schedules/UiSchedulesDetailsRow.vue @@ -28,10 +28,12 @@ export default Vue.extend({ } .label { + font-size: 0.875rem; color: #777; } .value { + font-size: 0.9375rem; margin-left: 0.25rem; font-weight: 600; color: #3f3f3f; diff --git a/src/components/ui/Schedules/UiSchedulesDetailsTimeInline.vue b/src/components/ui/Schedules/UiSchedulesDetailsTimeInline.vue index f5a990a..28b8faf 100644 --- a/src/components/ui/Schedules/UiSchedulesDetailsTimeInline.vue +++ b/src/components/ui/Schedules/UiSchedulesDetailsTimeInline.vue @@ -21,7 +21,7 @@ export default Vue.extend({ }, props: { label: String, - time: {} as PropType