Blame view

src/main.js 2.13 KB
93a68cfa1   Jatinder Singh   first commit
1
2
3
4
5
6
  // 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 Vuetify from 'vuetify';
  import router from './router';
8bb178441   Neeraj Sharma   implemnt api in s...
7
  import 'font-awesome/css/font-awesome.css';
8ab31dc8b   Jatinder Singh   changes
8
  import './theme/default.styl';
93a68cfa1   Jatinder Singh   first commit
9
10
11
  import VeeValidate from 'vee-validate';
  import colors from 'vuetify/es5/util/colors';
  import Truncate from 'lodash.truncate';
a17c68a03   Neeraj Sharma   implement two rou...
12
13
  import store from '@/store/store'
  import FullCalendar from 'vue-full-calendar';
6ae46ca27   Neeraj Sharma   implement upload ...
14
  import JsonCSV from 'vue-json-csv'
c8a795168   Neeraj Sharma   iplement pdf down...
15
16
  import VueHtml2Canvas from 'vue-html2canvas';
  import 'babel-polyfill';
ec5677f43   Neeraj Sharma   implement print o...
17
  import VueHtmlToPaper from 'vue-html-to-paper';
c8a795168   Neeraj Sharma   iplement pdf down...
18

ec5677f43   Neeraj Sharma   implement print o...
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
  const options = {
      name: '_blank',
      specs: [
          'fullscreen=yes',
          'titlebar=yes',
          'scrollbars=yes'
      ],
      styles: [
          'https://unpkg.com/vuetify/dist/vuetify.min.css',
          'https://unpkg.com/kidlat-css/css/kidlat.css'
      ]
  }
  
  Vue.use(VueHtmlToPaper, options);
  
  // or, using the defaults with no stylesheet
  
  Vue.use(VueHtmlToPaper);
c8a795168   Neeraj Sharma   iplement pdf down...
37
  Vue.use(VueHtml2Canvas);
6ae46ca27   Neeraj Sharma   implement upload ...
38
39
  
  Vue.component('downloadCsv', JsonCSV)
8bb178441   Neeraj Sharma   implemnt api in s...
40

93a68cfa1   Jatinder Singh   first commit
41
  Vue.config.productionTip = false;
a17c68a03   Neeraj Sharma   implement two rou...
42
  Vue.use(FullCalendar);
03dcbf0c1   Neeraj Sharma   fix all api and r...
43

93a68cfa1   Jatinder Singh   first commit
44
45
  // Helpers
  // Global filters
03dcbf0c1   Neeraj Sharma   fix all api and r...
46
  // Vue.use(VueAxios, axios);
93a68cfa1   Jatinder Singh   first commit
47
48
  Vue.filter('truncate', Truncate);
  Vue.use(VeeValidate, { fieldsBagName: 'formFields' });
79583580d   Neeraj Sharma   implement task ma...
49
50
51
52
53
54
55
56
57
  VeeValidate.Validator.localize({
      en: {
          custom: {
              password2: {
                  is: 'The passwords do not match'
              }
          }
      }
  })
93a68cfa1   Jatinder Singh   first commit
58
  Vue.use(Vuetify, {
8bb178441   Neeraj Sharma   implemnt api in s...
59
      // theme: {
006544386   Neeraj Sharma   implement task
60
61
62
      //     primary: "f1f1f1", // #E53935
      //     // secondary: colors.indigo.lighten4, // #FFCDD2
      //     // accent: colors.indigo.base // #3F51B5
8bb178441   Neeraj Sharma   implemnt api in s...
63
64
65
66
67
68
69
70
71
72
73
74
      // },
      options: {
          themeVariations: ['primary', 'secondary', 'accent'],
          extra: {
              mainToolbar: {
                  color: 'primary',
              },
              sideToolbar: {},
              sideNav: 'primary',
              mainNav: 'primary lighten-1',
              bodyBg: '',
          }
93a68cfa1   Jatinder Singh   first commit
75
      }
93a68cfa1   Jatinder Singh   first commit
76
77
78
79
80
81
82
  });
  // Bootstrap application components
  
  
  
  /* eslint-disable no-new */
  new Vue({
8bb178441   Neeraj Sharma   implemnt api in s...
83
84
85
86
87
88
      el: '#app',
      router,
      store,
      components: { App },
      template: '<App/>'
  });