Plugin-Updates über update_url (0.24.0)
Some checks failed
CI / PHP 8.3 / mariadb:10.6 (pull_request) Successful in 3m47s
CI / PHP 8.4 / mariadb:10.6 (pull_request) Successful in 3m50s
CI / PHP 8.3 / mariadb:11.4 (pull_request) Successful in 4m4s
CI / PHP 8.4 / mariadb:11.4 (pull_request) Successful in 4m13s
CI / PHP 8.3 / mysql:8.0 (pull_request) Failing after 5m43s
CI / PHP 8.4 / mysql:8.0 (pull_request) Failing after 5m44s
CI / PHP 8.3 / mysql:8.4 (pull_request) Failing after 4m55s
CI / Build-Artefakte aktuell (pull_request) Successful in 1m14s
CI / PHP 8.4 / mysql:8.4 (pull_request) Failing after 5m1s

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
Friederich Loheide 2026-09-27 08:06:22 +00:00
parent 93cb6b348b
commit 64d9e0bbed
117 changed files with 739 additions and 297 deletions

View file

@ -15,6 +15,18 @@
<span class="ms-1 text-sm font-normal text-gray-500">{{ $items->where('enabled', true)->count() }} von {{ $items->count() }} aktiv</span>
</h2>
<p class="text-[13px] text-gray-500 dark:text-gray-400">{{ $hint }}</p>
@if ($key === 'custom' && $hasUpdateUrls && $uploadsAllowed)
<div class="mt-2 flex flex-wrap items-center gap-3">
<x-filament::button size="xs" color="gray" icon="heroicon-o-arrow-path" wire:click="checkUpdates" wire:loading.attr="disabled">Nach Updates suchen</x-filament::button>
<span class="text-xs text-gray-500">
@if ($updatesCheckedAt)
Zuletzt geprüft {{ \Illuminate\Support\Carbon::parse($updatesCheckedAt)->diffForHumans() }} · täglich automatisch
@else
Noch nicht geprüft · täglich automatisch
@endif
</span>
</div>
@endif
</header>
<div class="overflow-hidden rounded-xl bg-white shadow-xs ring-1 ring-gray-950/5 dark:bg-gray-900 dark:ring-white/10">
@ -36,6 +48,24 @@
<span class="text-xs text-gray-500">{{ $m->version }}@if (! $m->core && $m->author) · {{ $m->author }}@endif</span>
</div>
<p class="line-clamp-1 text-[13px] text-gray-500 dark:text-gray-400" title="{{ $m->description }}">{{ $m->description }}</p>
@php($update = $updates[$m->slug] ?? null)
@if ($update && ($update['available'] || isset($update['error'])))
<div class="mt-1.5 flex flex-wrap items-center gap-2 text-xs">
@if ($update['available'])
<span class="rounded-md bg-primary-50 px-2 py-0.5 font-medium text-primary-700 dark:bg-primary-500/10 dark:text-primary-400">Update auf {{ $update['version'] }} verfügbar</span>
@if (! $update['compatible'])
<span class="text-warning-700 dark:text-warning-400">benötigt Inhaus {{ $update['requires_core'] }}</span>
@elseif ($uploadsAllowed)
<x-filament::link tag="button" size="xs" icon="heroicon-o-arrow-down-tray" wire:click="updatePlugin('{{ $m->slug }}')" wire:confirm="„{{ $m->name }}“ auf {{ $update['version'] }} aktualisieren? Einstellungen und Daten bleiben erhalten.">Jetzt aktualisieren</x-filament::link>
@endif
@if (! empty($update['changelog']))
<details class="basis-full text-gray-500"><summary class="cursor-pointer">Was ist neu?</summary><p class="mt-1 whitespace-pre-line">{{ $update['changelog'] }}</p></details>
@endif
@else
<span class="text-gray-500" title="{{ $update['error'] }}">Update-Prüfung fehlgeschlagen: {{ \Illuminate\Support\Str::limit($update['error'], 90) }}</span>
@endif
</div>
@endif
@if ($plugin['problem'] || $plugin['excluded'] || ($plugin['dependents'] && $plugin['enabled']))
<div class="mt-1 flex flex-wrap gap-x-3 gap-y-1 text-xs">
@if ($plugin['problem'])