Refactor: snake_case → camelCase dans blueprints, templates et vues
- Blueprints : renommage des champs (member_name, related_articles, background_video, play_links, images_gallery, external_links) et des noms de sections - Templates JSON PHP : clés de sortie et appels ->method() en camelCase - Vues Svelte (Play, Portfolio) : accès aux données alignés Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
d8a0fde34c
commit
69859cc60f
19 changed files with 63 additions and 76 deletions
|
|
@ -3,11 +3,11 @@
|
|||
$specificData = [
|
||||
'description' => $page->description()->value(),
|
||||
'rules' => $page->rules()->toBlocks(),
|
||||
'game_status' => $page->game_status()->value(),
|
||||
'is_embedded' => $page->is_embedded()->toBool(),
|
||||
'play_link' => $page->play_link()->value(),
|
||||
'gameStatus' => $page->gameStatus()->value(),
|
||||
'isEmbedded' => $page->isEmbedded()->toBool(),
|
||||
'playLink' => $page->playLink()->value(),
|
||||
'cover' => $page->cover()->toFile()?->url(),
|
||||
'parent_url' => $page->parent()->url()
|
||||
'parentUrl' => $page->parent()->url()
|
||||
];
|
||||
|
||||
$pageData = array_merge($genericData, $specificData);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue