assets/ -> resources/assets/
This commit is contained in:
25
resources/assets/scripts/main.js
Normal file
25
resources/assets/scripts/main.js
Normal file
@@ -0,0 +1,25 @@
|
||||
/** import external dependencies */
|
||||
import 'jquery';
|
||||
import 'bootstrap';
|
||||
|
||||
/** import local dependencies */
|
||||
import Router from './util/Router';
|
||||
import common from './routes/common';
|
||||
import home from './routes/home';
|
||||
import aboutUs from './routes/about';
|
||||
|
||||
/**
|
||||
* Populate Router instance with DOM routes
|
||||
* @type {Router} routes - An instance of our router
|
||||
*/
|
||||
const routes = new Router({
|
||||
/** All pages */
|
||||
common,
|
||||
/** Home page */
|
||||
home,
|
||||
/** About Us page, note the change from about-us to aboutUs. */
|
||||
aboutUs,
|
||||
});
|
||||
|
||||
/** Load Events */
|
||||
jQuery(document).ready(() => routes.loadEvents());
|
||||
Reference in New Issue
Block a user