- Added support for uploading and compressing GLB models using Draco in the backoffice. - Implemented commands for importing and re-compressing 3D models. - Updated model resource to handle 3D model uploads and validations. - Introduced a new script for compressing GLB files with Draco. - Modified Vite configuration to remove GLB files from the build output. - Updated package dependencies to include GLTF-transform libraries for handling 3D models. - Added tests to ensure proper functionality of 3D model handling and compression.
28 lines
625 B
PHP
28 lines
625 B
PHP
<?php
|
|
|
|
namespace App\Filament\Resources\ModelloResource\Pages;
|
|
|
|
use App\Filament\Resources\ModelloResource;
|
|
use App\Filament\Resources\ModelloResource\Pages\Concerns\CaricaModello3d;
|
|
use Filament\Actions;
|
|
use Filament\Resources\Pages\EditRecord;
|
|
|
|
class EditModello extends EditRecord
|
|
{
|
|
use CaricaModello3d;
|
|
|
|
protected static string $resource = ModelloResource::class;
|
|
|
|
protected function getHeaderActions(): array
|
|
{
|
|
return [
|
|
Actions\DeleteAction::make(),
|
|
];
|
|
}
|
|
|
|
protected function getRedirectUrl(): string
|
|
{
|
|
return $this->getResource()::getUrl('index');
|
|
}
|
|
}
|