94 lines
2.7 KiB
JavaScript
94 lines
2.7 KiB
JavaScript
|
// window._ = require('lodash');
|
||
|
|
||
|
/**
|
||
|
* We'll load the axios HTTP library which allows us to easily issue requests
|
||
|
* to our Laravel back-end. This library automatically handles sending the
|
||
|
* CSRF token as a header based on the value of the "XSRF" token cookie.
|
||
|
*/
|
||
|
|
||
|
// window.axios = require('axios');
|
||
|
|
||
|
// window.axios.defaults.headers.common['X-Requested-With'] = 'XMLHttpRequest';
|
||
|
|
||
|
/**
|
||
|
* Echo exposes an expressive API for subscribing to channels and listening
|
||
|
* for events that are broadcast by Laravel. Echo and event broadcasting
|
||
|
* allows your team to easily build robust real-time web applications.
|
||
|
*/
|
||
|
|
||
|
// import Echo from 'laravel-echo';
|
||
|
|
||
|
// window.Pusher = require('pusher-js');
|
||
|
|
||
|
// window.Echo = new Echo({
|
||
|
// broadcaster: 'pusher',
|
||
|
// key: process.env.MIX_PUSHER_APP_KEY,
|
||
|
// cluster: process.env.MIX_PUSHER_APP_CLUSTER,
|
||
|
// forceTLS: true
|
||
|
// });
|
||
|
|
||
|
// require('lazysizes');
|
||
|
// import Alpine from 'alpinejs'
|
||
|
|
||
|
// import * as scrollToTop from './components/scroll_to_top';
|
||
|
// import * as player from './components/player';
|
||
|
// import Slider from './components/Slider';
|
||
|
|
||
|
// import Trailer from './components/Trailer';
|
||
|
// import PlayerModal from './components/PlayerModal';
|
||
|
import Player from './components/Player';
|
||
|
// import Nav from './components/Nav';
|
||
|
// import Search from './components/Search';
|
||
|
// import Tabs from './components/Tabs';
|
||
|
// window.Alpine = Alpine
|
||
|
// Alpine.data('Trailer', Trailer);
|
||
|
// Alpine.data('PlayerModal', PlayerModal);
|
||
|
document.addEventListener('alpine:initializing', () => {
|
||
|
// MyComponent();
|
||
|
window.Alpine.data('Player', Player);
|
||
|
});
|
||
|
// Alpine.data('Nav', Nav);
|
||
|
// Alpine.data('Search', Search);
|
||
|
// Alpine.data('Tabs', Tabs);
|
||
|
// Alpine.store('PlayerModal', PlayerModal);
|
||
|
|
||
|
// document.addEventListener("alpine:init", () => {
|
||
|
// Alpine.data('Trailer', Trailer);
|
||
|
// Alpine.data('PlayerModal', PlayerModal);
|
||
|
// // Alpine.data("dropdown", () => ({
|
||
|
// // open: false,
|
||
|
// // toggle() {
|
||
|
// // this.open = !this.open;
|
||
|
// // },
|
||
|
// // }));
|
||
|
// });
|
||
|
|
||
|
// Alpine.start()
|
||
|
|
||
|
// // import * as trailer from './components/trailer';
|
||
|
// // require('./components/menu');
|
||
|
|
||
|
// queueMicrotask()
|
||
|
// // window.Trailer = Trailer;
|
||
|
// // import Alpine from 'alpinejs'
|
||
|
|
||
|
// // window.Alpine = Alpine
|
||
|
// // Alpine.start()
|
||
|
|
||
|
// document.addEventListener('readystatechange', event => {
|
||
|
// if (document.readyState === "complete") {
|
||
|
// var lazyLoadInstance = new LazyLoad({
|
||
|
// elements_selector: ".lazy",
|
||
|
// // load_delay: 100,
|
||
|
// // effect : "fadeIn"
|
||
|
// // ... more custom settings?
|
||
|
// });
|
||
|
// // player.initializePlayer();
|
||
|
// scrollToTop.initialize();
|
||
|
// // Slider.initializeSlider();
|
||
|
// // trailer.initialize();
|
||
|
|
||
|
// }
|
||
|
// });
|
||
|
|