
/**
 * This is a page specific seperate vue instance initializer
 */

// include vue common libraries, plugins and components
import "../vue_common.js";

//CUSTOM
import "../bootstrap.js";


/**
 * Local Third-party Lib Imports
*/


/**
 * Local Components 
 */
import Promocode from './components/PromocodeList.vue';

/**
 * Local Vue Routes 
 */
const routes = new VueRouter({
    mode: 'history',
    base: '/',
    linkExactActiveClass: 'there',
    routes: [
        {
            path: '/dashboard/promocode',
            // Inject  props based on route.query values for pagination
            props: (route) => ({
                page: route.query.page,
                
            }),
            name: 'Promocode',
            component: Promocode,

        },
    ],
});

/**
 * This is where we finally create a page specific
 * vue instance with required configs
 * element=app will remain common for all vue instances
 * 
 */
window.app = new Vue({
    el: "#eventmie_app",
    router: routes
});
