Display Module 13-05-2026
This commit is contained in:
parent
6a65354f4c
commit
9262132325
41 changed files with 496 additions and 334 deletions
|
|
@ -4,6 +4,7 @@ namespace App\Services;
|
|||
|
||||
use App\Models\DisplayPlaylist;
|
||||
use App\Models\DisplayVersion;
|
||||
use App\Support\DisplayModuleSettings;
|
||||
use Illuminate\Database\Eloquent\Collection;
|
||||
|
||||
class DisplayPlaylistConfigBuilder
|
||||
|
|
@ -95,9 +96,7 @@ class DisplayPlaylistConfigBuilder
|
|||
return [
|
||||
'type' => 'video-display',
|
||||
'version_name' => $module->name,
|
||||
'settings' => array_replace([
|
||||
'qr_label' => 'Website',
|
||||
], $module->settings ?? []),
|
||||
'settings' => DisplayModuleSettings::merge($module->type, $module->settings),
|
||||
'videoPlaylist' => $videos,
|
||||
'footerContent' => $footerContent,
|
||||
];
|
||||
|
|
@ -133,20 +132,7 @@ class DisplayPlaylistConfigBuilder
|
|||
return [
|
||||
'type' => 'b2in',
|
||||
'version_name' => $module->name,
|
||||
'settings' => array_replace_recursive([
|
||||
'theme' => 'dark',
|
||||
'header_logo_url' => '../assets/b2in-logo-positive.svg',
|
||||
'header_claim' => 'Connecting Design & Property',
|
||||
'footer_url' => 'B2in.eu',
|
||||
'footer_name' => '',
|
||||
'footer_prefix' => 'by',
|
||||
'qr_url' => '',
|
||||
'transition' => [
|
||||
'type' => 'crossfade',
|
||||
'duration_ms' => 800,
|
||||
],
|
||||
'default_image_duration' => 10,
|
||||
], $module->settings ?? []),
|
||||
'settings' => DisplayModuleSettings::merge($module->type, $module->settings),
|
||||
'items' => $mediaItems,
|
||||
];
|
||||
}
|
||||
|
|
@ -180,19 +166,7 @@ class DisplayPlaylistConfigBuilder
|
|||
return [
|
||||
'type' => 'offers',
|
||||
'version_name' => $module->name,
|
||||
'settings' => array_replace_recursive([
|
||||
'loop' => true,
|
||||
'logo_url' => '../logo-cabinet-300.png',
|
||||
'brand_text' => 'Bielefeld',
|
||||
'footer_claim' => '',
|
||||
'footer_url' => '',
|
||||
'qr_default_title' => 'Kontakt',
|
||||
'qr_subtitle' => 'QR scannen',
|
||||
'transition' => [
|
||||
'type' => 'fade',
|
||||
'duration' => 600,
|
||||
],
|
||||
], $module->settings ?? []),
|
||||
'settings' => DisplayModuleSettings::merge($module->type, $module->settings),
|
||||
'slides' => $slides,
|
||||
];
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue