Make linter happy.

This commit is contained in:
Shpuld Shpuldson 2017-08-16 00:46:55 +03:00
parent c4920f2d86
commit 6d7d173e4d
2 changed files with 6 additions and 7 deletions

View file

@ -1,5 +1,4 @@
import StyleSwitcher from '../style_switcher/style_switcher.vue'
import { filter, trim } from 'lodash'
const UserSettings = {
data () {
@ -96,7 +95,9 @@ const UserSettings = {
if (!this.previewbanner) { return }
let banner = this.previewbanner
// eslint-disable-next-line no-undef
let imginfo = new Image()
/* eslint-disable camelcase */
let offset_top, offset_left, width, height
imginfo.src = banner
width = imginfo.width
@ -114,10 +115,12 @@ const UserSettings = {
}
this.uploadingbanner = false
})
/* eslint-enable camelcase */
},
submitBg () {
if (!this.previewbg) { return }
let img = this.previewbg
// eslint-disable-next-line no-undef
let imginfo = new Image()
let cropX, cropY, cropW, cropH
imginfo.src = img

View file

@ -78,10 +78,6 @@
border-radius: 5px;
}
.bg {
max-width: 400px;
border-radius: 5px;
}
.uploading {
font-size: 1.5em;
margin: 0.25em;