refactor: upgrade to Livewire 4

This commit is contained in:
Benjamin Nussbaum 2026-01-14 23:59:00 +01:00
parent c94dd89361
commit a15645ad88
56 changed files with 166 additions and 278 deletions

View file

@ -1,6 +1,6 @@
<?php
use Livewire\Volt\Component;
use Livewire\Component;
use Livewire\Attributes\Modelable;
new class extends Component
@ -40,7 +40,7 @@ new class extends Component
} ?>
<div
<div
x-data="codeMirrorComponent(@js($language), @js($theme), @js($readonly), @js($placeholder), @js($height), @js($id ?: uniqid()))"
x-init="init()"
wire:ignore
@ -58,7 +58,7 @@ new class extends Component
<span>Loading editor...</span>
</div>
</div>
<!-- Editor container -->
<div x-show="!isLoading" x-ref="editor" style="height: {{ $height }};"></div>
</div>