Blame view
src/main.js
2.7 KB
93a68cfa1
|
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
|
7 |
import 'font-awesome/css/font-awesome.css'; |
8ab31dc8b
|
8 |
import './theme/default.styl'; |
93a68cfa1
|
9 10 11 |
import VeeValidate from 'vee-validate'; import colors from 'vuetify/es5/util/colors'; import Truncate from 'lodash.truncate'; |
a17c68a03
|
12 13 |
import store from '@/store/store' import FullCalendar from 'vue-full-calendar'; |
6ae46ca27
|
14 |
import JsonCSV from 'vue-json-csv' |
c8a795168
|
15 16 |
import VueHtml2Canvas from 'vue-html2canvas'; import 'babel-polyfill'; |
ec5677f43
|
17 |
import VueHtmlToPaper from 'vue-html-to-paper'; |
68d742034
|
18 19 20 21 |
import VueApexCharts from 'vue-apexcharts' // import FunctionalCalendar from 'vue-functional-calendar'; import 'vue-event-calendar/dist/style.css' //^1.1.10, CSS has been extracted as one file, so you can easily update it. import vueEventCalendar from 'vue-event-calendar' |
0a7184bf8
|
22 23 24 25 26 27 |
import VueCountryCode from "vue-country-code"; Vue.use(VueCountryCode); Vue.use(vueEventCalendar, { locale: 'en' }) |
c8a795168
|
28 |
|
68d742034
|
29 30 31 32 33 |
// Vue.use(FunctionalCalendar, { // dayNames: ['Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa', 'Su'] // }); Vue.use(VueApexCharts) Vue.component('apexchart', VueApexCharts) |
ec5677f43
|
34 35 36 37 38 39 40 41 42 43 44 45 |
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' ] } |
ec5677f43
|
46 |
Vue.use(VueHtmlToPaper, options); |
ec5677f43
|
47 48 49 |
// or, using the defaults with no stylesheet Vue.use(VueHtmlToPaper); |
c8a795168
|
50 |
Vue.use(VueHtml2Canvas); |
6ae46ca27
|
51 52 |
Vue.component('downloadCsv', JsonCSV) |
8bb178441
|
53 |
|
93a68cfa1
|
54 |
Vue.config.productionTip = false; |
a17c68a03
|
55 |
Vue.use(FullCalendar); |
93a68cfa1
|
56 57 |
// Helpers // Global filters |
03dcbf0c1
|
58 |
// Vue.use(VueAxios, axios); |
93a68cfa1
|
59 |
Vue.filter('truncate', Truncate); |
0a7184bf8
|
60 61 62 |
Vue.use(VeeValidate, { fieldsBagName: 'formFields' }); |
79583580d
|
63 64 65 66 67 68 69 70 71 |
VeeValidate.Validator.localize({ en: { custom: { password2: { is: 'The passwords do not match' } } } }) |
93a68cfa1
|
72 |
Vue.use(Vuetify, { |
8bb178441
|
73 |
// theme: { |
006544386
|
74 75 76 |
// primary: "f1f1f1", // #E53935 // // secondary: colors.indigo.lighten4, // #FFCDD2 // // accent: colors.indigo.base // #3F51B5 |
8bb178441
|
77 78 79 80 81 82 83 84 85 86 87 88 |
// }, options: { themeVariations: ['primary', 'secondary', 'accent'], extra: { mainToolbar: { color: 'primary', }, sideToolbar: {}, sideNav: 'primary', mainNav: 'primary lighten-1', bodyBg: '', } |
93a68cfa1
|
89 |
} |
93a68cfa1
|
90 91 92 93 94 95 |
}); // Bootstrap application components /* eslint-disable no-new */ |
6e1cb5c96
|
96 |
export var vm1 = new Vue({ |
8bb178441
|
97 98 99 |
el: '#app', router, store, |
68d742034
|
100 101 102 |
components: { App }, |
8bb178441
|
103 104 |
template: '<App/>' }); |