Skip to content

Commit

Permalink
Add lint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
timbeccue committed Oct 3, 2022
1 parent 5e8e520 commit 8a39c37
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 12 deletions.
8 changes: 4 additions & 4 deletions src/components/ImagesTable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -266,8 +266,8 @@ export default {
this.add_download_progress(current_download_id)
// this.download_in_progress.push(current_download_id)
let large_fits_reduction_level = this.$store.state.images.large_fits_reduction_level
let object_name = `${image.base_filename}-${image.data_type}${large_fits_reduction_level}.fits.fz`
const large_fits_reduction_level = this.$store.state.images.large_fits_reduction_level
const object_name = `${image.base_filename}-${image.data_type}${large_fits_reduction_level}.fits.fz`
const url = `${this.$store.state.api_endpoints.active_api}/download`
const body = {
Expand All @@ -287,8 +287,8 @@ export default {
// this.download_in_progress.add(current_download_id)
this.add_download_progress(current_download_id)
let large_fits_reduction_level = this.$store.state.images.large_fits_reduction_level
let object_name = `${image.base_filename}-${image.data_type}${large_fits_reduction_level}.fits.fz`
const large_fits_reduction_level = this.$store.state.images.large_fits_reduction_level
const object_name = `${image.base_filename}-${image.data_type}${large_fits_reduction_level}.fits.fz`
const url = `${this.$store.state.api_endpoints.active_api}/download`
const body = {
Expand Down
6 changes: 3 additions & 3 deletions src/components/NavbarSitePreview.vue
Original file line number Diff line number Diff line change
Expand Up @@ -93,10 +93,10 @@ export default {
},
status_color_class (status) {
const color_dict = {
operational: 'is-green',
ok: 'is-green',
'operational': 'is-green',
'ok': 'is-green',
'technical difficulty': 'is-yellow',
offline: 'is-grey'
'offline': 'is-grey'
}
return color_dict?.[status] ?? 'is-grey'
}
Expand Down
2 changes: 1 addition & 1 deletion src/components/calendar/TheCalendar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -720,7 +720,7 @@ export default {
return {
headers: {
'Content-Type': 'application/json;charset=UTF-8',
Authorization: `Bearer ${token}`
'Authorization': `Bearer ${token}`
}
}
},
Expand Down
2 changes: 1 addition & 1 deletion src/components/projects/CreateProjectForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -935,7 +935,7 @@ export default {
return {
headers: {
'Content-Type': 'application/json;charset=UTF-8',
Authorization: `Bearer ${token}`
'Authorization': `Bearer ${token}`
}
}
},
Expand Down
4 changes: 2 additions & 2 deletions src/components/status/SiteOperationalStatus.vue
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,9 @@ export default {
*/
operational_status_color_class () {
const color_dict = {
operational: 'is-green',
'operational': 'is-green',
'technical difficulty': 'is-yellow',
offline: 'is-grey'
'offline': 'is-grey'
}
return color_dict?.[this.operational_status] ?? 'is-grey'
}
Expand Down
2 changes: 1 addition & 1 deletion src/views/Remotehq.vue
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export default {
const headers = {
headers: {
'Content-Type': 'application/json',
Authorization: `Bearer ${token}`
'Authorization': `Bearer ${token}`
}
}
const response = await axios.post(url, {}, headers)
Expand Down

0 comments on commit 8a39c37

Please sign in to comment.