mejoras
Some checks failed
linter / quality (push) Has been cancelled
tests / ci (push) Has been cancelled

This commit is contained in:
2025-05-23 00:26:53 +02:00
parent 19fa52ca65
commit 28c225687a
431 changed files with 161955 additions and 2096 deletions

View File

@@ -0,0 +1,37 @@
<?php
namespace App\Livewire;
use Illuminate\Support\Facades\Storage;
use Livewire\Component;
class PdfViewer extends Component
{
public $pdfUrl;
public $currentPage = 1;
public $totalPages = 1;
public $zoomLevel = 1;
protected $listeners = ['pageChanged', 'annotationSaved'];
public function mount($pdfId)
{
$this->pdfUrl = Storage::disk('pdfs')->temporaryUrl($pdfId, now()->addMinutes(30));
}
public function pageChanged($page)
{
$this->currentPage = $page;
}
public function annotationSaved($data)
{
// Procesar y guardar anotaciones
$this->emit('refreshAnnotations');
}
public function render()
{
return view('livewire.pdf-viewer');
}
}