Commit a4373a004ec09375ac58f55f40b60145a33e4e1b
1 parent
34ffcd5152
Exists in
master
url changed
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 | import App from './App' | 4 | import App from './App' |
5 | import router from './router' | 5 | import router from './router' |
6 | import axios from 'axios' | 6 | import axios from 'axios' |
7 | 7 | ||
8 | // Import the Auth0 configuration | 8 | // Import the Auth0 configuration |
9 | import { domain, clientId } from "../auth_config.json" | 9 | import { domain, clientId } from "../auth_config.json" |
10 | 10 | ||
11 | // Import the plugin here | 11 | // Import the plugin here |
12 | import { Auth0Plugin } from "./auth" | 12 | import { Auth0Plugin } from "./auth" |
13 | import Vuelidate from 'vuelidate' | 13 | import Vuelidate from 'vuelidate' |
14 | import moment from 'moment' | 14 | import moment from 'moment' |
15 | import Toaster from 'v-toaster' | 15 | import Toaster from 'v-toaster' |
16 | import StarRating from 'vue-star-rating' | 16 | import StarRating from 'vue-star-rating' |
17 | 17 | ||
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 | import 'v-toaster/dist/v-toaster.css' | 20 | import 'v-toaster/dist/v-toaster.css' |
21 | 21 | ||
22 | // optional set default imeout, the default is 10000 (10 seconds). | 22 | // optional set default imeout, the default is 10000 (10 seconds). |
23 | Vue.use(Toaster, {timeout: 5000}) | 23 | Vue.use(Toaster, {timeout: 5000}) |
24 | Vue.use(Vuelidate) | 24 | Vue.use(Vuelidate) |
25 | // Install the authentication plugin here | 25 | // Install the authentication plugin here |
26 | Vue.use(Auth0Plugin, { | 26 | Vue.use(Auth0Plugin, { |
27 | domain, | 27 | domain, |
28 | clientId, | 28 | clientId, |
29 | redirect: false, | 29 | redirect: false, |
30 | onRedirectCallback: appState => { | 30 | onRedirectCallback: appState => { |
31 | router.push( | 31 | router.push( |
32 | appState && appState.targetUrl ? | 32 | appState && appState.targetUrl ? |
33 | appState.targetUrl : | 33 | appState.targetUrl : |
34 | window.location.pathname | 34 | window.location.pathname |
35 | ); | 35 | ); |
36 | } | 36 | } |
37 | }); | 37 | }); |
38 | 38 | ||
39 | Vue.config.productionTip = false | 39 | Vue.config.productionTip = false |
40 | 40 | ||
41 | Vue.prototype.moment = moment | 41 | Vue.prototype.moment = moment |
42 | axios.defaults.baseURL = 'http://174.138.121.70:3006/pg' | 42 | axios.defaults.baseURL = 'https://api.productgrowth.org/pg' |
43 | Vue.component('star-rating', VueStarRating.default); | 43 | Vue.component('star-rating', VueStarRating.default); |
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 | }) |