/** * First we will load all of this project's JavaScript dependencies which * includes Vue and other libraries. It is a great starting point when * building robust, powerful web applications using Vue and Laravel. */ import VueApexCharts from 'vue-apexcharts' import Alpine from 'alpinejs' import Vue from 'vue' import VueCompositionAPI from '@vue/composition-api' import VueAxios from 'vue-axios' import axios from 'axios' require('./bootstrap'); window.Vue = require('vue').default; window.Alpine = Alpine; /** * The following block of code may be used to automatically register your * Vue components. It will recursively scan this directory for the Vue * components and automatically register them with their "basename". * * Eg. ./components/ExampleComponent.vue -> */ // const files = require.context('./', true, /\.vue$/i) // files.keys().map(key => Vue.component(key.split('/').pop().split('.')[0], files(key).default)) Vue.use (VueApexCharts) Vue.use (Alpine) Vue.use(VueCompositionAPI) Vue.use(VueAxios, axios) Alpine.start() Vue.component('chart', require('./components/Chart.vue').default) Vue.component('sidebar', require('./components/Sidebar.vue').default) Vue.component('breadcrumb', require('./components/Breadcrumb.vue').default) Vue.component('dashboard', require('./pages/dashboard.vue').default) Vue.component('tunai-component', require('./components/Tunai.vue').default) Vue.component('cawangan-component', require('./components/cawangan.vue').default) Vue.component('apexchart', VueApexCharts) // Vue.component('Navbar', require('./components/Navbar.vue').default); /** * 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. */ const app = new Vue({ el: '#app', });