mirror of
https://github.com/Einundzwanzig-Podcast/einundzwanzig-portal.git
synced 2025-12-13 06:56:48 +00:00
pleb alert!
This commit is contained in:
37
resources/js/bootstrap.js
vendored
37
resources/js/bootstrap.js
vendored
@@ -1,23 +1,28 @@
|
||||
import _ from 'lodash';
|
||||
window._ = _;
|
||||
import _ from 'lodash'
|
||||
import Echo from 'laravel-echo'
|
||||
|
||||
import Pusher from 'pusher-js'
|
||||
|
||||
window._ = _
|
||||
|
||||
/**
|
||||
* 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.
|
||||
*/
|
||||
window.Pusher = Pusher
|
||||
|
||||
// import Echo from 'laravel-echo';
|
||||
|
||||
// import Pusher from 'pusher-js';
|
||||
// window.Pusher = Pusher;
|
||||
|
||||
// window.Echo = new Echo({
|
||||
// broadcaster: 'pusher',
|
||||
// key: import.meta.env.VITE_PUSHER_APP_KEY,
|
||||
// wsHost: import.meta.env.VITE_PUSHER_HOST ? import.meta.env.VITE_PUSHER_HOST : `ws-${import.meta.env.VITE_PUSHER_APP_CLUSTER}.pusher.com`,
|
||||
// wsPort: import.meta.env.VITE_PUSHER_PORT ?? 80,
|
||||
// wssPort: import.meta.env.VITE_PUSHER_PORT ?? 443,
|
||||
// forceTLS: (import.meta.env.VITE_PUSHER_SCHEME ?? 'https') === 'https',
|
||||
// enabledTransports: ['ws', 'wss'],
|
||||
// });
|
||||
window.Echo = new Echo({
|
||||
broadcaster: 'pusher',
|
||||
key: import.meta.env.VITE_PUSHER_APP_KEY,
|
||||
wsHost: import.meta.env.VITE_PUSHER_HOST,
|
||||
wsPort: import.meta.env.VITE_PUSHER_PORT,
|
||||
wssPort: import.meta.env.VITE_PUSHER_PORT,
|
||||
forceTLS: true,
|
||||
encrypted: true,
|
||||
disableStats: true,
|
||||
enabledTransports: [
|
||||
'ws',
|
||||
'wss'
|
||||
],
|
||||
})
|
||||
|
||||
@@ -77,6 +77,7 @@
|
||||
</style>
|
||||
</head>
|
||||
<body class="font-sans antialiased bg-21gray dark">
|
||||
<livewire:laravel-echo/>
|
||||
<x-notifications z-index="z-50" blur="md" align="center"/>
|
||||
<x-jet-banner/>
|
||||
<div class="min-h-screen">
|
||||
|
||||
@@ -76,6 +76,7 @@
|
||||
</style>
|
||||
</head>
|
||||
<body class="font-sans antialiased bg-21gray dark">
|
||||
<livewire:laravel-echo/>
|
||||
<x-notifications z-index="z-50" blur="md" align="center"/>
|
||||
{{ $slot }}
|
||||
@stack('modals')
|
||||
|
||||
3
resources/views/livewire/laravel-echo.blade.php
Normal file
3
resources/views/livewire/laravel-echo.blade.php
Normal file
@@ -0,0 +1,3 @@
|
||||
<div>
|
||||
{{-- The whole world belongs to you. --}}
|
||||
</div>
|
||||
Reference in New Issue
Block a user