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