feat: integrate Draco compression for 3D models in backoffice
- 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.
This commit is contained in:
@@ -33,7 +33,7 @@ class ImportazioneListiniTest extends TestCase
|
||||
Storage::fake('public');
|
||||
$this->seed(CatalogoSeeder::class);
|
||||
$this->pvc = Sistema::where('codice', 'pvc')->firstOrFail();
|
||||
$this->actingAs(User::factory()->create());
|
||||
$this->actingAs(User::factory()->create(['is_superadmin' => true]));
|
||||
}
|
||||
|
||||
/** Due tabelle nel formato del listino, separate da una riga vuota. */
|
||||
@@ -220,6 +220,7 @@ class ImportazioneListiniTest extends TestCase
|
||||
{
|
||||
$finestra = Modello::where('codice', 'finestra_1_anta')->firstOrFail();
|
||||
ListinoImporter::importa($this->pvc, ListinoExcelParser::parseRighe($this->righe()), ['finestra_1_anta' => $finestra->id]);
|
||||
$this->conModelli3d();
|
||||
|
||||
$this->getJson('/api/sistemi/pvc/modelli/finestra_1_anta/listino')
|
||||
->assertOk()
|
||||
|
||||
Reference in New Issue
Block a user