diff --git a/src/App.vue b/src/App.vue index 029b0525..1abf62ee 100644 --- a/src/App.vue +++ b/src/App.vue @@ -24,18 +24,18 @@ export default { components: { navigbar }, - async created() { + async created () { // On load, grab building/meter/map information from the API. await this.$store.dispatch('map/loadMap') // Also check if user is logged in. this.$store.dispatch('user/user') }, - data() { + data () { return { transitionName: 'pageTo' } }, - beforeDestroy() {}, + beforeDestroy () {}, methods: { disableScroll: function () { this.$refs.main.$el.style.overflow = 'hidden' @@ -44,7 +44,7 @@ export default { this.$refs.main.$el.style.overflow = 'auto' } }, - mounted() { + mounted () { // This is the first-timer pop-up window if (!document.cookie.split(';').some(cookieString => cookieString.includes('firstTimer'))) { this.$msgbox({ diff --git a/src/components/building_list/building_list.vue b/src/components/building_list/building_list.vue index fb1a52a2..feb53ab3 100644 --- a/src/components/building_list/building_list.vue +++ b/src/components/building_list/building_list.vue @@ -57,7 +57,7 @@ export default { components: { viewCard }, - data() { + data () { return { search: '', openName: '', @@ -65,7 +65,7 @@ export default { loading: true } }, - async mounted() { + async mounted () { if (this.buildingList) { await this.$store.getters['map/promise'] if (this.$route.params.group && this.groups[this.$route.params.group]) { @@ -81,13 +81,13 @@ export default { }, computed: { buildingList: { - get() { + get () { return this.$route.path.includes('buildings') } }, groups: { - get() { + get () { if (this.buildingList) { let r = {} // await this.$store.getters['map/promise'] @@ -160,7 +160,7 @@ export default { } }, methods: { - resetSearchInput() { + resetSearchInput () { this.search = '' } } diff --git a/src/components/building_list/view_card.vue b/src/components/building_list/view_card.vue index ed220adb..5db2958b 100644 --- a/src/components/building_list/view_card.vue +++ b/src/components/building_list/view_card.vue @@ -8,12 +8,12 @@