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
|
|
@ -2,15 +2,15 @@
|
|||
|
||||
$specificData = [
|
||||
'hero' => [
|
||||
'title' => $page->hero_title()->value(),
|
||||
'title_highlight' => $page->hero_title_highlight()->value(),
|
||||
'subtitle' => $page->hero_subtitle()->value(),
|
||||
'title' => $page->heroTitle()->value(),
|
||||
'titleHighlight' => $page->heroTitleHighlight()->value(),
|
||||
'subtitle' => $page->heroSubtitle()->value(),
|
||||
'ctaText' => $page->ctaText()->value(),
|
||||
'ctaPath' => $page->ctaLink()->toPage()?->id() ?? '#',
|
||||
'image' => $page->hero_image()->toFile()?->url()
|
||||
'image' => $page->heroImage()->toFile()?->url()
|
||||
],
|
||||
'background_video' => $page->background_video()->toFile()?->url(),
|
||||
'floating_bubbles' => $page->floating_bubbles()->toStructure()->map(function($bubble) {
|
||||
'backgroundVideo' => $page->backgroundVideo()->toFile()?->url(),
|
||||
'floatingBubbles' => $page->floatingBubbles()->toStructure()->map(function($bubble) {
|
||||
return [
|
||||
'text' => $bubble->text()->value(),
|
||||
'position' => $bubble->position()->value()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue