.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

@@ -23,6 +23,7 @@ import './signin.scss'
export default class Signin extends Vue {
public $v
public $q
loading: boolean
$t: any
public signin: ISigninOptions = {
@@ -33,6 +34,8 @@ export default class Signin extends Vue {
created() {
this.$v.$reset()
// this.$myconfig.socialLogin.facebook = true
// console.log('PROVA fb:', this.$myconfig.socialLogin.facebook)
}
public env() {
@@ -79,6 +82,27 @@ export default class Signin extends Vue {
}
redirect(response) {
this.loading = false
window.location.href = response.data.redirect
}
error(error) {
this.loading = false
this.$errorHandler(this, error)
}
facebook() {
this.loading = true
this.$axios.get('/backend/loginFacebook')
.then(response => this.redirect(response))
.catch(error => this.error(error))
}
google() {
}
submit() {
this.$v.signin.$touch()