Lege Bildfassungen an und liefere sie zwischengespeichert aus (ADR-63)
Vorschaubilder entstehen zusätzlich als klein (360 px) und mittel (960 px), Website-Bilder in den Breiten 640, 1280 und 1920. Auswahl, Listen und Karten laden die kleinen Fassungen; die Website nutzt srcset. Adressen tragen Größe und Version und werden dauerhaft zwischengespeichert (ETag, 304). Die Website-Route läuft ohne Sitzung und Cookies. Bestand füllt sich über die Warteschlange oder mit media:varianten. Die Optionsliste des CMS fragt nicht mehr je Eintrag ab. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
0492133201
commit
63b42b366c
54 files changed
+1033
-82
No files matched your search
@@ -17,7 +17,7 @@
|
||||
<{{ $as }} {{ $attributes->class('vw-eintrag') }}>
|
||||
<span class="vw-bild">
|
||||
@if (filled($bild))
|
||||
<img src="{{ $bild }}" alt="{{ $bildAlt }}" loading="lazy">
|
||||
<img src="{{ $bild }}" alt="{{ $bildAlt }}" loading="lazy" decoding="async">
|
||||
@else
|
||||
<span class="vw-bild-ersatz" data-symbol="{{ $symbol }}">@include('filament.verwaltung.icon', ['name' => $symbol])@if (filled($bildFehlt))<span class="vw-sr">{{ $bildFehlt }}</span>@endif</span>
|
||||
@endif
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
@php
|
||||
$metadata = is_array($version->metadata) ? $version->metadata : [];
|
||||
$class = $version->element->output_class;
|
||||
$poster = \App\Domain\Media\ThumbnailRef::url('editorial.card', 'element', $version->element->id, $version->element->thumbnail_path);
|
||||
$poster = \App\Domain\Media\ThumbnailRef::url('editorial.card', 'element', $version->element->id, $version->element->thumbnail_path, 'mittel', $version->element->updated_at);
|
||||
$playback = $class === 'film' ? app(\App\Http\Controllers\ContentPreviewController::class)->playback($version) : null;
|
||||
@endphp
|
||||
|
||||
|
||||
@@ -47,7 +47,7 @@
|
||||
x-on:keydown.alt.arrow-down.prevent="$wire.movePart({{ $index }}, 1)">
|
||||
<span class="vw-bild is-klein">
|
||||
@if (! empty($member['image']))
|
||||
<img src="{{ $member['image'] }}" alt="" loading="lazy">
|
||||
<img src="{{ $member['image'] }}" alt="" loading="lazy" decoding="async">
|
||||
@else
|
||||
<span class="vw-bild-ersatz">@include('filament.verwaltung.icon', ['name' => $symbol($member['tone'] ?? null)])</span>
|
||||
@endif
|
||||
@@ -70,7 +70,7 @@
|
||||
@forelse ($kinder as $kind)
|
||||
<div class="vw-quellenzeile">
|
||||
<span class="vw-bild is-mini">
|
||||
@if (! empty($kind['image']))<img src="{{ $kind['image'] }}" alt="" loading="lazy">@else<span class="vw-bild-ersatz">@include('filament.verwaltung.icon', ['name' => $symbol($kind['tone'])])</span>@endif
|
||||
@if (! empty($kind['image']))<img src="{{ $kind['image'] }}" alt="" loading="lazy" decoding="async">@else<span class="vw-bild-ersatz">@include('filament.verwaltung.icon', ['name' => $symbol($kind['tone'])])</span>@endif
|
||||
</span>
|
||||
<span><strong>{{ $kind['title'] }}</strong><br><span class="vw-feld-hilfe">{{ $kind['kind'] }}@if ($kind['role'] !== '') · {{ $kind['role'] }}@endif</span></span>
|
||||
</div>
|
||||
|
||||
@@ -68,7 +68,7 @@
|
||||
@endunless
|
||||
<span class="vw-bild">
|
||||
@if (! empty($row['image']))
|
||||
<img src="{{ $row['image'] }}" alt="" loading="lazy">
|
||||
<img src="{{ $row['image'] }}" alt="" loading="lazy" decoding="async">
|
||||
@else
|
||||
<span class="vw-bild-ersatz">@include('filament.verwaltung.icon', ['name' => $symbol($row['output'])])</span>
|
||||
@endif
|
||||
|
||||
@@ -34,7 +34,7 @@
|
||||
<div class="mb-player player">
|
||||
@include('content.video', [
|
||||
'playback' => ['mode' => $entry['playback'] ?? 'file', 'url' => $entry['url']],
|
||||
'poster' => \App\Domain\Media\ThumbnailRef::url('member.thumbnail', 'element', $entry['version']->element->id, $entry['version']->element->thumbnail_path),
|
||||
'poster' => \App\Domain\Media\ThumbnailRef::url('member.thumbnail', 'element', $entry['version']->element->id, $entry['version']->element->thumbnail_path, 'mittel', $entry['version']->element->updated_at),
|
||||
])
|
||||
</div>
|
||||
<div class="mb-actions">
|
||||
|
||||
@@ -32,7 +32,7 @@
|
||||
<header class="mb-detail-head">
|
||||
<div class="mb-detail-visual">
|
||||
@if ($picture)
|
||||
<img src="{{ route('member.thumbnail', ['kind' => $picture['kind'], 'subject' => $picture['subject']]) }}" alt="{{ $picture['alt'] ?: '' }}">
|
||||
<img src="{{ route('member.thumbnail', ['kind' => $picture['kind'], 'subject' => $picture['subject'], 'g' => 'mittel']) }}" alt="{{ $picture['alt'] ?: '' }}">
|
||||
@else
|
||||
<span class="mb-card-placeholder" aria-hidden="true"><x-dynamic-component :component="'heroicon-o-'.($is_module ? 'rectangle-stack' : 'squares-2x2')" /></span>
|
||||
@endif
|
||||
|
||||
@@ -30,7 +30,7 @@
|
||||
])>
|
||||
@if ($item['imageUrl'])
|
||||
<div class="card-media">
|
||||
<img class="card-image" src="{{ $item['imageUrl'] }}" alt="" loading="lazy" decoding="async">
|
||||
<img class="card-image" src="{{ $item['imageUrl'] }}" @if (! empty($item['imageSrcset'])) srcset="{{ $item['imageSrcset'] }}" sizes="(min-width: 900px) 40vw, 100vw" @endif alt="" loading="lazy" decoding="async">
|
||||
</div>
|
||||
@endif
|
||||
<div class="card-body">
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
style="--lf-hero-focus-x: {{ $focus['x'] }}%; --lf-hero-focus-y: {{ $focus['y'] }}%"
|
||||
@if ($videoUrl !== null) data-hero-video data-clip-src="{{ $videoUrl }}" data-clip-title="{{ $videoTitle }}" @endif>
|
||||
@if ($layout === 'photo-split' && $imageUrl)
|
||||
<img class="lf-hero__photo" src="{{ $imageUrl }}" alt="{{ $imageAlt ?? '' }}" {!! $loading !!} decoding="async">
|
||||
<img class="lf-hero__photo" src="{{ $imageUrl }}" @if (! empty($imageSrcset)) srcset="{{ $imageSrcset }}" sizes="100vw"@endif alt="{{ $imageAlt ?? '' }}" {!! $loading !!} decoding="async">
|
||||
@endif
|
||||
@if ($videoUrl !== null)
|
||||
<video class="lf-hero__video" muted loop playsinline preload="none" disablepictureinpicture disableremoteplayback tabindex="-1" aria-hidden="true"></video>
|
||||
|
||||
@@ -56,7 +56,7 @@
|
||||
@endif
|
||||
@if ($imageUrl)
|
||||
<div class="lf-bt__media" @if ($clipUrl !== null) data-card-clip data-clip-src="{{ $clipUrl }}" data-clip-title="{{ $clipTitle }}" @endif>
|
||||
<img class="lf-bt__image" src="{{ $imageUrl }}" alt="{{ $imageAlt ?? '' }}" @if (! empty($first)) loading="eager" fetchpriority="high" @else loading="lazy" @endif decoding="async">
|
||||
<img class="lf-bt__image" src="{{ $imageUrl }}" @if (! empty($imageSrcset)) srcset="{{ $imageSrcset }}" sizes="100vw" @endif alt="{{ $imageAlt ?? '' }}" @if (! empty($first)) loading="eager" fetchpriority="high" @else loading="lazy" @endif decoding="async">
|
||||
@include('widgets.partials.card-clip')
|
||||
</div>
|
||||
@endif
|
||||
|
||||
@@ -52,7 +52,7 @@
|
||||
]) style="--pc-focus-x: {{ $focus['x'] }}%; --pc-focus-y: {{ $focus['y'] }}%">
|
||||
@if ($imageUrl !== null || $libraryImage !== null)
|
||||
<div class="lf-pc__visual" @if ($clipUrl !== null) data-card-clip data-clip-src="{{ $clipUrl }}" data-clip-title="{{ $clipTitle }}" @endif>
|
||||
<img class="lf-pc__image" src="{{ $imageUrl ?? $libraryImage }}" alt="{{ $imageUrl !== null ? $alt : '' }}" loading="lazy" decoding="async">
|
||||
<img class="lf-pc__image" src="{{ $imageUrl ?? $libraryImage }}" @if ($imageUrl !== null && ! empty($imageSrcset)) srcset="{{ $imageSrcset }}" sizes="(min-width: 900px) 50vw, 100vw" @endif alt="{{ $imageUrl !== null ? $alt : '' }}" loading="lazy" decoding="async">
|
||||
@include('widgets.partials.card-clip')
|
||||
@if ($show['kind'] && $subject->badge !== null && empty($bare))
|
||||
<span class="lf-pc__badge">{{ $subject->badge }}</span>
|
||||
|
||||
Reference in new issue
Block a user