mirror of
https://github.com/vitodeploy/vito.git
synced 2025-07-02 06:26:16 +00:00
Upgrade to Livewire 3 (#103)
* upgrade to livewire 3 * fix updater * fix modal events * fix modal events
This commit is contained in:
@ -1,24 +1,11 @@
|
||||
import './bootstrap';
|
||||
// import Echo from "laravel-echo"
|
||||
// import Pusher from "pusher-js"
|
||||
import Alpine from 'alpinejs';
|
||||
import Clipboard from "@ryangjchandler/alpine-clipboard";
|
||||
import { Livewire, Alpine } from '../../vendor/livewire/livewire/dist/livewire.esm';
|
||||
|
||||
Alpine.plugin(Clipboard)
|
||||
Alpine.directive('clipboard', (el) => {
|
||||
let text = el.textContent
|
||||
|
||||
// window.Echo = new Echo({
|
||||
// broadcaster: 'pusher',
|
||||
// key: 'app-key',
|
||||
// wsHost: 'localhost',
|
||||
// wsPort: 6001,
|
||||
// cluster: '',
|
||||
// forceTLS: false,
|
||||
// disableStats: true,
|
||||
// });
|
||||
//
|
||||
// window.Pusher = Pusher;
|
||||
|
||||
window.Alpine = Alpine;
|
||||
|
||||
Alpine.start();
|
||||
el.addEventListener('click', () => {
|
||||
navigator.clipboard.writeText(text)
|
||||
})
|
||||
})
|
||||
|
||||
Livewire.start()
|
||||
|
Reference in New Issue
Block a user