.env.production file eliminated ! (-> .env)

.env.production worked in local
added myconfig
messagepopup working (but not ready yet)
added Graphql (only module)
This commit is contained in:
Paolo Arena
2018-12-26 21:02:16 +01:00
parent e41eeb43ca
commit 7a217c3ca9
42 changed files with 430 additions and 657 deletions

View File

@@ -0,0 +1,19 @@
import { i18n } from '../plugins/i18n'
import { Notify } from 'quasar'
export default (error) => {
let message = this.$i18n.t('errors.graphql.undefined')
if (error[0].validation) {
let errors = Object.keys(error[0].validation)
message = error[0].validation[errors[0]][0]
}
Notify.create({
message,
position: 'center'
})
if (message === this.$i18n.t('errors.graphql.undefined')) {
console.log(error.response)
}
}

View File

@@ -0,0 +1,21 @@
// import Backend from './backend'
// import Firebase from './firebase'
import Graphql from './graphql'
export default (context, error) => {
/*
if (error.constructor.name === 'FirebaseError') {
Firebase(error)
return
}
if (error.response && error.response.data && error.response.data.backend) {
Backend(error)
return
}*/
if (error[0] && error[0].locations && error[0].validation) {
Graphql(error)
return
}
console.log('Error handler', error)
}