Web app: new entities (Image, RenderedAsset, SharedImage, Token, DeviceImageHistory), enums, repositories, controllers, message handlers, migrations, tests, frontend upload/library/sticker UI, Vue components. Firmware: EPD background screen binaries + gen scripts, setup_bg header. Infra: ddev config, test bundle, gitignore coverage dir. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\Enum;
|
||||
|
||||
enum DeviceModel: string
|
||||
{
|
||||
case V1 = 'v1'; // Waveshare 7.3" 800×480
|
||||
|
||||
public function width(Orientation $orientation): int
|
||||
{
|
||||
return $orientation === Orientation::Portrait ? 480 : 800;
|
||||
}
|
||||
|
||||
public function height(Orientation $orientation): int
|
||||
{
|
||||
return $orientation === Orientation::Portrait ? 800 : 480;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\Enum;
|
||||
|
||||
enum RenderStatus: string
|
||||
{
|
||||
case Pending = 'pending';
|
||||
case Processing = 'processing';
|
||||
case Ready = 'ready';
|
||||
case Failed = 'failed';
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\Enum;
|
||||
|
||||
enum SharedImageStatus: string
|
||||
{
|
||||
case Pending = 'pending';
|
||||
case Approved = 'approved';
|
||||
case Declined = 'declined';
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\Enum;
|
||||
|
||||
enum TokenType: string
|
||||
{
|
||||
case ShareApprove = 'share_approve';
|
||||
case ShareDecline = 'share_decline';
|
||||
case HardDeleteConfirm = 'hard_delete_confirm';
|
||||
}
|
||||
Reference in New Issue
Block a user