Subversion-Projekte lars-tiefland.laravel_shop

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
2 lars 1
import _ from 'lodash';
2
window._ = _;
3
 
4
/**
5
 * We'll load the axios HTTP library which allows us to easily issue requests
6
 * to our Laravel back-end. This library automatically handles sending the
7
 * CSRF token as a header based on the value of the "XSRF" token cookie.
8
 */
9
 
10
import axios from 'axios';
11
window.axios = axios;
12
 
13
window.axios.defaults.headers.common['X-Requested-With'] = 'XMLHttpRequest';
14
 
15
/**
16
 * Echo exposes an expressive API for subscribing to channels and listening
17
 * for events that are broadcast by Laravel. Echo and event broadcasting
18
 * allows your team to easily build robust real-time web applications.
19
 */
20
 
21
// import Echo from 'laravel-echo';
22
 
23
// import Pusher from 'pusher-js';
24
// window.Pusher = Pusher;
25
 
26
// window.Echo = new Echo({
27
//     broadcaster: 'pusher',
28
//     key: import.meta.env.VITE_PUSHER_APP_KEY,
29
//     cluster: import.meta.env.VITE_PUSHER_APP_CLUSTER ?? 'mt1',
30
//     wsHost: import.meta.env.VITE_PUSHER_HOST ? import.meta.env.VITE_PUSHER_HOST : `ws-${import.meta.env.VITE_PUSHER_APP_CLUSTER}.pusher.com`,
31
//     wsPort: import.meta.env.VITE_PUSHER_PORT ?? 80,
32
//     wssPort: import.meta.env.VITE_PUSHER_PORT ?? 443,
33
//     forceTLS: (import.meta.env.VITE_PUSHER_SCHEME ?? 'https') === 'https',
34
//     enabledTransports: ['ws', 'wss'],
35
// });