Browse Source

Make linter happy

master
dohseven 4 years ago
parent
commit
f67ec66d9b
  1. 6
      flatisfy/web/js_src/components/flatstable.vue
  2. 26
      flatisfy/web/js_src/components/flatstableline.vue
  3. 10
      flatisfy/web/js_src/components/slider.vue
  4. 2
      flatisfy/web/js_src/i18n/en/index.js
  5. 4
      flatisfy/web/js_src/views/home.vue

6
flatisfy/web/js_src/components/flatstable.vue

@ -56,13 +56,13 @@ @@ -56,13 +56,13 @@
<script>
import 'font-awesome-webpack'
import FlatsTableLine from './flatstableline.vue';
import FlatsTableLine from './flatstableline.vue'
import { capitalize } from '../tools'
export default {
components: {
FlatsTableLine,
FlatsTableLine
},
data () {
@ -129,7 +129,7 @@ export default { @@ -129,7 +129,7 @@ export default {
this.sortBy = field
}
},
capitalize: capitalize,
capitalize: capitalize
}
}
</script>

26
flatisfy/web/js_src/components/flatstableline.vue

@ -66,33 +66,33 @@ export default { @@ -66,33 +66,33 @@ export default {
props: {
flat: Object,
showNotationColumn: Boolean,
showNotes: Boolean,
showNotes: Boolean
},
computed: {
capitalizedStatus() {
return capitalize(this.$t('status.followed'));
capitalizedStatus () {
return capitalize(this.$t('status.followed'))
},
photo() {
photo () {
if (this.flat.photos && this.flat.photos.length > 0) {
if (this.flat.photos[0].local) {
return `/data/img/${this.flat.photos[0].local}`;
return `/data/img/${this.flat.photos[0].local}`
}
return this.flat.photos[0].url;
return this.flat.photos[0].url
}
return null;
},
notationRange() {
return range(this.flat.notation);
return null
},
notationRange () {
return range(this.flat.notation)
}
},
methods: {
updateFlatStatus (id, status) {
this.$store.dispatch('updateFlatStatus', { flatId: id, newStatus: status })
},
},
};
}
}
}
</script>
<style scoped>

10
flatisfy/web/js_src/components/slider.vue

@ -28,14 +28,14 @@ export default { @@ -28,14 +28,14 @@ export default {
},
computed: {
photosURLOrLocal() {
photosURLOrLocal () {
return this.photos.map(photo => {
if (photo.local) {
return `/data/img/${photo.local}`;
return `/data/img/${photo.local}`
}
return photo.url;
});
},
return photo.url
})
}
},
created () {

2
flatisfy/web/js_src/i18n/en/index.js

@ -42,7 +42,7 @@ export default { @@ -42,7 +42,7 @@ export default {
'utilities_included': '(utilities included)',
'utilities_excluded': '(utilities excluded)',
'Description': 'Description',
'First_posted' : 'First posted',
'First_posted': 'First posted',
'Details': 'Details',
'Metadata': 'Metadata',
'postal_code': 'Postal code',

4
flatisfy/web/js_src/views/home.vue

@ -59,8 +59,8 @@ export default { @@ -59,8 +59,8 @@ export default {
data () {
return {
showExpiredFlats: false,
};
showExpiredFlats: false
}
},
computed: {

Loading…
Cancel
Save