Prettier format all js files

This commit is contained in:
George Drummond
2019-01-24 09:38:43 -05:00
parent 20604e6ca9
commit 619bc9fe59
32 changed files with 553 additions and 443 deletions

View File

@@ -10,36 +10,39 @@ export default {
environments: Object,
currentMonthIndex: String,
prevMonthIndex: String,
twoMonthsAgoIndex: String
twoMonthsAgoIndex: String,
},
data: function () {
data: function() {
return {
applicationsState: this.applications
applicationsState: this.applications,
}
},
created: function () {
created: function() {
Object.keys(this.applications).forEach(application => {
set(this.applicationsState[application], 'isVisible', false)
})
},
methods: {
toggle: function (e, applicationName) {
toggle: function(e, applicationName) {
this.applicationsState = Object.assign(this.applicationsState, {
[applicationName]: Object.assign(this.applicationsState[applicationName],{
isVisible: !this.applicationsState[applicationName].isVisible
})
[applicationName]: Object.assign(
this.applicationsState[applicationName],
{
isVisible: !this.applicationsState[applicationName].isVisible,
}
),
})
},
formatDollars: function (value) {
formatDollars: function(value) {
return formatDollars(value, false)
},
round: function (value) {
round: function(value) {
return Math.round(value)
}
}
},
},
}