diff --git a/app/Livewire/Studio/Master/Formula.php b/app/Livewire/Studio/Master/Formula.php index cd65e09..2d9d764 100644 --- a/app/Livewire/Studio/Master/Formula.php +++ b/app/Livewire/Studio/Master/Formula.php @@ -163,7 +163,6 @@ protected function pushNotification() 'privateKey' => config('services.vapid.private_key'), ], ]; - $webPush = new WebPush($auth); $payload = json_encode([ diff --git a/config/livewire.php b/config/livewire.php index f382408..fa0ff5f 100644 --- a/config/livewire.php +++ b/config/livewire.php @@ -114,7 +114,7 @@ | */ - 'inject_assets' => false, + 'inject_assets' => true, /* |--------------------------------------------------------------------------- diff --git a/public/service-worker.js b/public/service-worker.js index b8609a4..2abab1e 100644 --- a/public/service-worker.js +++ b/public/service-worker.js @@ -12,9 +12,3 @@ self.addEventListener('push', (event) => { }) ); }) - -self.addEventListener('notificationclick', (event) => { - event.waitUntil( - clients.openWindow(event.notification.data.url) - ); -}) diff --git a/resources/js/app.js b/resources/js/app.js index 6c63300..e59d6a0 100644 --- a/resources/js/app.js +++ b/resources/js/app.js @@ -1,12 +1 @@ import './bootstrap'; -import '../../vendor/rappasoft/laravel-livewire-tables/resources/imports/laravel-livewire-tables-all.js'; - -import { Livewire, Alpine } from '../../vendor/livewire/livewire/dist/livewire.esm'; -import Clipboard from '@ryangjchandler/alpine-clipboard' - -Alpine.plugin(Clipboard) - -Livewire.alpine = Alpine - -Livewire.start() -Alpine.start() diff --git a/resources/views/components/layouts/auth.blade.php b/resources/views/components/layouts/auth.blade.php index 80140cf..86d7c4d 100644 --- a/resources/views/components/layouts/auth.blade.php +++ b/resources/views/components/layouts/auth.blade.php @@ -6,7 +6,6 @@