Commit 743046cddf25163aa7edcdafdccb2db20dd235a5

Authored by Digvijay Singh
1 parent e976c5984f
Exists in admin

server staging

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
1 // The Vue build version to load with the `import` command 1 // The Vue build version to load with the `import` command
2 // (runtime-only or standalone) has been set in webpack.base.conf with an alias. 2 // (runtime-only or standalone) has been set in webpack.base.conf with an alias.
3 import Vue from 'vue' 3 import Vue from 'vue'
4 // Add this line 4 // Add this line
5 import App from './App' 5 import App from './App'
6 import router from './router' 6 import router from './router'
7 import axios from 'axios' 7 import axios from 'axios'
8 8
9 // Import the Auth0 configuration 9 // Import the Auth0 configuration
10 import { domain, clientId } from "../auth_config.json" 10 import { domain, clientId } from "../auth_config.json"
11 11
12 // Import the plugin here 12 // Import the plugin here
13 import { Auth0Plugin } from "./auth" 13 import { Auth0Plugin } from "./auth"
14 import Vuelidate from 'vuelidate' 14 import Vuelidate from 'vuelidate'
15 import moment from 'moment' 15 import moment from 'moment'
16 import Toaster from 'v-toaster' 16 import Toaster from 'v-toaster'
17 import 'v-toaster/dist/v-toaster.css' 17 import 'v-toaster/dist/v-toaster.css'
18 18
19 // You need a specific loader for CSS files like https://github.com/webpack/css-loader 19 // You need a specific loader for CSS files like https://github.com/webpack/css-loader
20 20
21 // optional set default imeout, the default is 10000 (10 seconds). 21 // optional set default imeout, the default is 10000 (10 seconds).
22 Vue.use(Toaster, {timeout: 5000}) 22 Vue.use(Toaster, {timeout: 5000})
23 Vue.use(Vuelidate) 23 Vue.use(Vuelidate)
24 // Install the authentication plugin here 24 // Install the authentication plugin here
25 Vue.use(Auth0Plugin, { 25 Vue.use(Auth0Plugin, {
26 domain, 26 domain,
27 clientId, 27 clientId,
28 redirect: false, 28 redirect: false,
29 onRedirectCallback: appState => { 29 onRedirectCallback: appState => {
30 router.push( 30 router.push(
31 appState && appState.targetUrl ? 31 appState && appState.targetUrl ?
32 appState.targetUrl : 32 appState.targetUrl :
33 window.location.pathname 33 window.location.pathname
34 ); 34 );
35 } 35 }
36 }); 36 });
37 37
38 Vue.config.productionTip = false 38 Vue.config.productionTip = false
39 // https://api.productgrowth.org/pg 39 // https://api.productgrowth.org/pg
40 // http://174.138.121.70:3006/pg 40 // http://174.138.121.70:3006/pg
41 // http://174.138.121.70:3006/pd 41 // http://174.138.121.70:3006/pd
42 42
43 Vue.prototype.moment = moment 43 Vue.prototype.moment = moment
44 axios.defaults.baseURL = 'http://174.138.121.70:3006/pg' 44 axios.defaults.baseURL = 'http://174.138.121.70:3007/pg'
45 45
46 /* eslint-disable no-new */ 46 /* eslint-disable no-new */
47 new Vue({ 47 new Vue({
48 el: '#app', 48 el: '#app',
49 router, 49 router,
50 components: { App }, 50 components: { App },
51 template: '<App/>' 51 template: '<App/>'
52 }) 52 })