Make linter happy.
This commit is contained in:
parent
c4920f2d86
commit
6d7d173e4d
2 changed files with 6 additions and 7 deletions
|
@ -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 () {
|
||||||
|
@ -27,7 +26,7 @@ const UserSettings = {
|
||||||
const name = this.newname
|
const name = this.newname
|
||||||
const description = this.newbio
|
const description = this.newbio
|
||||||
this.$store.state.api.backendInteractor.updateProfile({params: {name, description}}).then((user) => {
|
this.$store.state.api.backendInteractor.updateProfile({params: {name, description}}).then((user) => {
|
||||||
if(!user.error) {
|
if (!user.error) {
|
||||||
this.$store.commit('addNewUsers', [user])
|
this.$store.commit('addNewUsers', [user])
|
||||||
this.$store.commit('setCurrentUser', user)
|
this.$store.commit('setCurrentUser', user)
|
||||||
}
|
}
|
||||||
|
@ -95,8 +94,10 @@ const UserSettings = {
|
||||||
submitBanner () {
|
submitBanner () {
|
||||||
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
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue