Lint JS files

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel
2019-03-22 10:57:14 +01:00
parent e319735ab9
commit b698eb470f
27 changed files with 237 additions and 243 deletions

View File

@@ -26,7 +26,7 @@
</template>
<script lang="ts">
import { Component, Vue } from "vue-property-decorator";
import { Component, Vue } from 'vue-property-decorator';
@Component({})
export default class CreateGroup extends Vue {
@@ -74,13 +74,13 @@ export default class CreateGroup extends Vue {
this.group.address = {
geo: {
latitude: addressData.latitude,
longitude: addressData.longitude
longitude: addressData.longitude,
},
addressCountry: addressData.country,
addressLocality: addressData.city,
addressRegion: addressData.administrative_area_level_1,
postalCode: addressData.postal_code,
streetAddress: `${addressData.street_number} ${addressData.route}`
streetAddress: `${addressData.street_number} ${addressData.route}`,
};
}
}

View File

@@ -60,9 +60,9 @@
</template>
<script lang="ts">
import { Component, Prop, Vue, Watch } from "vue-property-decorator";
import EventCard from "@/components/Event/EventCard.vue";
import { FETCH_PERSON, LOGGED_PERSON } from "@/graphql/actor";
import { Component, Prop, Vue, Watch } from 'vue-property-decorator';
import EventCard from '@/components/Event/EventCard.vue';
import { FETCH_PERSON, LOGGED_PERSON } from '@/graphql/actor';
@Component({
apollo: {
@@ -70,17 +70,17 @@ import { FETCH_PERSON, LOGGED_PERSON } from "@/graphql/actor";
query: FETCH_PERSON,
variables() {
return {
name: this.$route.params.name
name: this.$route.params.name,
};
}
},
},
loggedPerson: {
query: LOGGED_PERSON
}
query: LOGGED_PERSON,
},
},
components: {
EventCard
}
EventCard,
},
})
export default class Group extends Vue {
@Prop({ type: String, required: true }) name!: string;
@@ -92,7 +92,7 @@ export default class Group extends Vue {
this.fetchData();
}
@Watch("$route")
@Watch('$route')
onRouteChanged() {
// call again the method if the route changes
this.fetchData();

View File

@@ -32,7 +32,7 @@ export default class GroupList extends Vue {
}
usernameWithDomain(actor) {
return actor.username + (actor.domain === null ? "" : `@${actor.domain}`);
return actor.username + (actor.domain === null ? '' : `@${actor.domain}`);
}
fetchData() {
@@ -57,7 +57,7 @@ export default class GroupList extends Vue {
viewActor(actor) {
this.$router.push({
name: RouteName.GROUP,
params: { name: this.usernameWithDomain(actor) }
params: { name: this.usernameWithDomain(actor) },
});
}