mirror of
				https://github.com/crater-invoice/crater.git
				synced 2025-11-04 06:23:17 -05:00 
			
		
		
		
	
		
			
				
	
	
		
			41 lines
		
	
	
		
			1.0 KiB
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			41 lines
		
	
	
		
			1.0 KiB
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
/**
 | 
						|
 * First we will load all of this project's JavaScript dependencies which
 | 
						|
 * include Vue and Vue Resource. This gives a great starting point for
 | 
						|
 * building robust, powerful web applications using Vue and Laravel.
 | 
						|
 */
 | 
						|
import router from './router.js'
 | 
						|
import Layout from './helpers/layout'
 | 
						|
import Plugin from './helpers/plugin'
 | 
						|
import store from './store/index'
 | 
						|
import utils from './helpers/utilities'
 | 
						|
import { mapActions, mapGetters } from 'vuex'
 | 
						|
import i18n from './plugins/i18n'
 | 
						|
import swal from 'sweetalert'
 | 
						|
 | 
						|
require('./bootstrap')
 | 
						|
Vue.prototype.$utils = utils
 | 
						|
/**
 | 
						|
 * Next, we will create a fresh Vue application instance and attach it to
 | 
						|
 * the page. Then, you may begin adding components to this application
 | 
						|
 * or customize the JavaScript scaffolding to fit your unique needs.
 | 
						|
 */
 | 
						|
window.hub = new Vue()
 | 
						|
window.i18n = i18n
 | 
						|
window.Plugin = Plugin
 | 
						|
const app = new Vue({
 | 
						|
  router,
 | 
						|
  store,
 | 
						|
  i18n,
 | 
						|
  swal,
 | 
						|
  computed: {
 | 
						|
    ...mapGetters([
 | 
						|
      'isAdmin'
 | 
						|
    ])
 | 
						|
  },
 | 
						|
  methods: {
 | 
						|
    onOverlayClick () {
 | 
						|
      this.$utils.toggleSidebar()
 | 
						|
    }
 | 
						|
  }
 | 
						|
}).$mount('#app')
 |