fix: code lint
This commit is contained in:
@@ -55,7 +55,7 @@
|
||||
|
||||
<script>
|
||||
import _ from 'lodash'
|
||||
import { get, sync } from 'vuex-pathify'
|
||||
import { sync } from 'vuex-pathify'
|
||||
import { OrbitSpinner } from 'epic-spinners'
|
||||
|
||||
import searchPagesQuery from 'gql/common/common-pages-query-search.gql'
|
||||
@@ -105,14 +105,6 @@ export default {
|
||||
}
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
setSearchTerm(term) {
|
||||
this.search = term
|
||||
},
|
||||
goToPage(item) {
|
||||
window.location.assign(`/${item.locale}/${item.path}`)
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
this.$root.$on('searchMove', (dir) => {
|
||||
this.cursor += (dir === 'up' ? -1 : 1)
|
||||
@@ -130,6 +122,14 @@ export default {
|
||||
}
|
||||
})
|
||||
},
|
||||
methods: {
|
||||
setSearchTerm(term) {
|
||||
this.search = term
|
||||
},
|
||||
goToPage(item) {
|
||||
window.location.assign(`/${item.locale}/${item.path}`)
|
||||
}
|
||||
},
|
||||
apollo: {
|
||||
response: {
|
||||
query: searchPagesQuery,
|
||||
|
@@ -98,7 +98,6 @@
|
||||
/* global siteConfig */
|
||||
|
||||
import _ from 'lodash'
|
||||
import Cookies from 'js-cookie'
|
||||
import validate from 'validate.js'
|
||||
import PasswordStrength from './common/password-strength.vue'
|
||||
|
||||
@@ -134,7 +133,6 @@ export default {
|
||||
this.isShown = true
|
||||
this.$nextTick(() => {
|
||||
this.$refs.iptEmail.focus()
|
||||
|
||||
})
|
||||
},
|
||||
methods: {
|
||||
@@ -184,11 +182,11 @@ export default {
|
||||
tooShort: this.$t('auth:nameTooShort'),
|
||||
tooLong: this.$t('auth:nameTooLong')
|
||||
}
|
||||
},
|
||||
}
|
||||
}, { fullMessages: false })
|
||||
|
||||
if (validation) {
|
||||
if(validation.email) {
|
||||
if (validation.email) {
|
||||
this.$store.commit('showNotification', {
|
||||
style: 'red',
|
||||
message: validation.email[0],
|
||||
|
Reference in New Issue
Block a user