Applied automated eslint fixes

This commit is contained in:
Chris Kankiewicz
2021-01-21 22:40:21 -07:00
parent 8d6f03d4d0
commit 3ea5dfccd8

View File

@@ -42,51 +42,51 @@
</template>
<script>
import axios from 'axios';
import axios from 'axios';
export default {
data: function () {
return {
error: null,
filePath: 'file-info.txt',
hashes: {
'md5': '••••••••••••••••••••••••••••••••',
'sha1': '••••••••••••••••••••••••••••••••••••••••',
'sha256': '••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••'
},
loading: true,
visible: false,
};
},
computed: {
styles() {
return { 'hidden': ! this.visible };
export default {
data: function () {
return {
error: null,
filePath: 'file-info.txt',
hashes: {
'md5': '••••••••••••••••••••••••••••••••',
'sha1': '••••••••••••••••••••••••••••••••••••••••',
'sha256': '••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••'
},
title() {
return this.filePath.split('/').pop();
}
loading: true,
visible: false,
};
},
computed: {
styles() {
return { 'hidden': ! this.visible };
},
methods: {
async show(filePath) {
this.filePath = filePath;
this.visible = true;
await axios.get('?info=' + filePath).then(function (response) {
this.hashes = response.data.hashes;
}.bind(this)).catch(function (error) {
this.error = error.response.request.statusText;
}.bind(this));
this.loading = false;
},
hide() {
this.visible = false;
this.loading = true;
this.error = null;
}
},
mounted() {
window.addEventListener('keyup', e => e.key == 'Escape' && this.hide());
title() {
return this.filePath.split('/').pop();
}
},
methods: {
async show(filePath) {
this.filePath = filePath;
this.visible = true;
await axios.get('?info=' + filePath).then(function (response) {
this.hashes = response.data.hashes;
}.bind(this)).catch(function (error) {
this.error = error.response.request.statusText;
}.bind(this));
this.loading = false;
},
hide() {
this.visible = false;
this.loading = true;
this.error = null;
}
},
mounted() {
window.addEventListener('keyup', e => e.key == 'Escape' && this.hide());
}
};
</script>