.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

@@ -5,7 +5,6 @@ import {clone} from 'lodash'
import * as Types from './ApiTypes'
export const API_URL = process.env.API_URL
export const APP_BASE = process.env.NODE_ENV === 'development' ? 'http://localhost:5000/' : 'http://myip:5000/'
export const axiosInstance: AxiosInstance = axios.create({
baseURL: API_URL,
headers: {

View File

@@ -2,7 +2,7 @@ import Request from './Instance'
import sendRequest from './Inst-Pao'
export * from './ApiTypes'
import axios from 'axios'
export {addAuthHeaders, removeAuthHeaders, API_URL, APP_BASE} from './Instance'
export {addAuthHeaders, removeAuthHeaders, API_URL} from './Instance'
// import {AlgoliaSearch} from './AlgoliaController'
import Paths from '@paths'

View File

@@ -16,7 +16,7 @@ const b = storeBuilder.module<IGlobalState>('GlobalModule', state)
// Getters
namespace Getters {
const conta = b.read(state => state.conta , 'conta')
const conta = b.read(state => state.conta, 'conta')
export const getters = {
get conta() {
@@ -52,7 +52,9 @@ const stateGetter = b.state()
// Module
const GlobalModule = {
get state() { return stateGetter()},
get state() {
return stateGetter()
},
getters: Getters.getters,
mutations: Mutations.mutations,
actions: Actions.actions