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

View File

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