refactor: fixed more sonarcloud issues

This commit is contained in:
Corentin Thomasset 2021-06-01 00:07:04 +02:00
parent a866ac6070
commit b34eb4c1ac
No known key found for this signature in database
GPG key ID: DBD997E935996158
12 changed files with 32 additions and 109 deletions

View file

@ -65,39 +65,4 @@ export default class FileToBase64 extends Tool {
}
}
}
// export default {
// name: 'FileToBase64',
// components: {FileUploader},
// data() {
// return {
// file: undefined,
// loading: false,
// base64: '',
// copyBase64() {
// copyToClipboard(this.base64)
// this.$toast.success('Copied to clipboard.')
// }
// }
// },
// watch: {
// file() {
// this.loading = true
// this.base64 = ''
// const reader = new FileReader()
// reader.onload = () => this.handleBase64(reader.result)
// reader.onerror = () => this.handleBase64('[An error as occurred]')
// reader.readAsDataURL(this.file)
// }
// },
// methods: {
// handleBase64(base64) {
// this.base64 = base64
// this.loading = false
// }
// }
// }
</script>
<style scoped>
</style>