Remove react-global-configuration
This commit is contained in:
parent
26f36442fd
commit
3cfcbb1251
|
|
@ -7,7 +7,7 @@ import Messages from './pages/Messages';
|
||||||
import Login from './pages/Login';
|
import Login from './pages/Login';
|
||||||
import axios from 'axios';
|
import axios from 'axios';
|
||||||
import {createMuiTheme, MuiThemeProvider, withStyles} from 'material-ui/styles';
|
import {createMuiTheme, MuiThemeProvider, withStyles} from 'material-ui/styles';
|
||||||
import config from 'react-global-configuration';
|
import * as config from './config';
|
||||||
import GlobalStore from './stores/GlobalStore';
|
import GlobalStore from './stores/GlobalStore';
|
||||||
import {HashRouter, Redirect, Route, Switch} from 'react-router-dom';
|
import {HashRouter, Redirect, Route, Switch} from 'react-router-dom';
|
||||||
import Applications from './pages/Applications';
|
import Applications from './pages/Applications';
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
import dispatcher from '../stores/dispatcher';
|
import dispatcher from '../stores/dispatcher';
|
||||||
import config from 'react-global-configuration';
|
import * as config from '../config';
|
||||||
import axios from 'axios';
|
import axios from 'axios';
|
||||||
import {snack} from './GlobalAction';
|
import {snack} from './GlobalAction';
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
import dispatcher from '../stores/dispatcher';
|
import dispatcher from '../stores/dispatcher';
|
||||||
import config from 'react-global-configuration';
|
import * as config from '../config';
|
||||||
import axios from 'axios';
|
import axios from 'axios';
|
||||||
import {snack} from './GlobalAction';
|
import {snack} from './GlobalAction';
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
import dispatcher from '../stores/dispatcher';
|
import dispatcher from '../stores/dispatcher';
|
||||||
import config from 'react-global-configuration';
|
import * as config from '../config';
|
||||||
import axios from 'axios';
|
import axios from 'axios';
|
||||||
import {getToken} from './defaultAxios';
|
import {getToken} from './defaultAxios';
|
||||||
import {snack} from './GlobalAction';
|
import {snack} from './GlobalAction';
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
import dispatcher from '../stores/dispatcher';
|
import dispatcher from '../stores/dispatcher';
|
||||||
import config from 'react-global-configuration';
|
import * as config from '../config';
|
||||||
import {getToken, setAuthorizationToken} from './defaultAxios';
|
import {getToken, setAuthorizationToken} from './defaultAxios';
|
||||||
import * as GlobalAction from './GlobalAction';
|
import * as GlobalAction from './GlobalAction';
|
||||||
import axios from 'axios';
|
import axios from 'axios';
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,9 @@
|
||||||
|
let config;
|
||||||
|
|
||||||
|
export function set(c) {
|
||||||
|
config = c;
|
||||||
|
}
|
||||||
|
|
||||||
|
export function get(val): string {
|
||||||
|
return config[val];
|
||||||
|
}
|
||||||
|
|
@ -2,7 +2,7 @@ import React from 'react';
|
||||||
import ReactDOM from 'react-dom';
|
import ReactDOM from 'react-dom';
|
||||||
import Layout from './Layout';
|
import Layout from './Layout';
|
||||||
import registerServiceWorker from './registerServiceWorker';
|
import registerServiceWorker from './registerServiceWorker';
|
||||||
import config from 'react-global-configuration';
|
import * as config from './config'
|
||||||
import * as Notifications from './stores/Notifications';
|
import * as Notifications from './stores/Notifications';
|
||||||
import 'typeface-roboto';
|
import 'typeface-roboto';
|
||||||
import 'typeface-roboto-mono';
|
import 'typeface-roboto-mono';
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue