Blame view

src/main.js 1.53 KB
8a0dd59d9   Digvijay Singh   first commit
1
2
3
4
5
6
7
8
9
10
11
12
13
  // 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'
  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   Digvijay Singh   new design added
14
  import moment from 'moment'
5684145ce   Digvijay Singh   reset password,ot...
15
  import Toaster from 'v-toaster'
d0186c77a   Digvijay Singh   changes in ui
16
  import StarRating from 'vue-star-rating'
196f4eb8f   Digvijay Singh   tooltip added
17
  import VueTippy, { TippyComponent } from "vue-tippy";
d0186c77a   Digvijay Singh   changes in ui
18

196f4eb8f   Digvijay Singh   tooltip added
19
20
  Vue.use(VueTippy);
  Vue.component("tippy", TippyComponent);
5684145ce   Digvijay Singh   reset password,ot...
21
22
23
24
25
  // You need a specific loader for CSS files like https://github.com/webpack/css-loader
  import 'v-toaster/dist/v-toaster.css'
   
  // optional set default imeout, the default is 10000 (10 seconds).
  Vue.use(Toaster, {timeout: 5000})
8a0dd59d9   Digvijay Singh   first commit
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
  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
196f4eb8f   Digvijay Singh   tooltip added
42
43
  // https://api.productgrowth.org/pg
  // http://174.138.121.70:3006/pg
298fff252   Digvijay Singh   new design added
44
  Vue.prototype.moment = moment
a4373a004   Digvijay Singh   url changed
45
  axios.defaults.baseURL = 'https://api.productgrowth.org/pg'
d0186c77a   Digvijay Singh   changes in ui
46
  Vue.component('star-rating', VueStarRating.default);
8a0dd59d9   Digvijay Singh   first commit
47
48
49
50
51
52
53
54
  
  /* eslint-disable no-new */
  new Vue({
      el: '#app',
      router,
      components: { App },
      template: '<App/>'
  })