Commit 3eecadbdf27c05407b910ef017c748019967caab
1 parent
7559f82947
Exists in
admin
backend ip change
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
src/main.js
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 | Vue.prototype.moment = moment | 42 | Vue.prototype.moment = moment |
43 | axios.defaults.baseURL = 'http://174.138.121.70:3006/pd' | 43 | axios.defaults.baseURL = 'http://174.138.121.70:3006/pg' |
44 | 44 | ||
45 | /* eslint-disable no-new */ | 45 | /* eslint-disable no-new */ |
46 | new Vue({ | 46 | new Vue({ |
47 | el: '#app', | 47 | el: '#app', |
48 | router, | 48 | router, |
49 | components: { App }, | 49 | components: { App }, |
50 | template: '<App/>' | 50 | template: '<App/>' |
51 | }) | 51 | }) |