client lint first pass

This commit is contained in:
Matteo Pagliazzi
2019-10-11 20:35:49 +02:00
parent 07cffe9e16
commit a625e83b53
104 changed files with 1053 additions and 893 deletions

View File

@@ -264,11 +264,6 @@ export default {
},
};
},
watch: {
searchText: throttle(function throttleSearch () {
this.searchTextThrottled = this.searchText.toLowerCase();
}, 250),
},
computed: {
...mapState({
content: 'content',
@@ -281,7 +276,8 @@ export default {
this.groups.forEach(group => {
const groupKey = group.key;
group.quantity = 0; // resetf the count
const itemsArray = itemsByType[groupKey] = [];
itemsByType[groupKey] = [];
const itemsArray = itemsByType[groupKey];
const contentItems = this.content[groupKey];
each(this.user.items[groupKey], (itemQuantity, itemKey) => {
@@ -342,6 +338,11 @@ export default {
return this.groups.some(g => g.selected);
},
},
watch: {
searchText: throttle(function throttleSearch () {
this.searchTextThrottled = this.searchText.toLowerCase();
}, 250),
},
methods: {
userHasPet (potionKey, eggKey) {
const animalKey = `${eggKey}-${potionKey}`;