mirror of
https://github.com/vitodeploy/vito.git
synced 2025-07-01 05:56:16 +00:00
Migrate to HTMX (#114)
Dropped Livewire Added HTMX Added Blade code lint Drop Mysql and Redis Migrate to SQLite
This commit is contained in:
14
resources/views/components/live.blade.php
Normal file
14
resources/views/components/live.blade.php
Normal file
@ -0,0 +1,14 @@
|
||||
@props([
|
||||
"interval" => "30s",
|
||||
"id",
|
||||
])
|
||||
|
||||
<div
|
||||
id="{{ $id }}"
|
||||
hx-get="{{ request()->getUri() }}"
|
||||
hx-trigger="every {{ $interval }}"
|
||||
hx-select="#{{ $id }}"
|
||||
hx-swap="outerHTML"
|
||||
>
|
||||
{{ $slot }}
|
||||
</div>
|
Reference in New Issue
Block a user