Plugins bei fehlender Klasse nicht dauerhaft deaktivieren, Speichern-Abstand im Admin, Profilbild-Fehlermeldung
Some checks failed
CI / PHP 8.4 / mariadb:10.6 (pull_request) Successful in 3m4s
CI / PHP 8.3 / mariadb:10.6 (pull_request) Successful in 3m8s
CI / PHP 8.3 / mariadb:11.4 (pull_request) Successful in 3m32s
CI / PHP 8.4 / mariadb:11.4 (pull_request) Successful in 3m35s
CI / PHP 8.3 / mysql:8.0 (pull_request) Successful in 5m7s
CI / PHP 8.4 / mysql:8.0 (pull_request) Successful in 5m1s
CI / PHP 8.3 / mysql:8.4 (pull_request) Successful in 5m30s
CI / PHP 8.4 / mysql:8.4 (pull_request) Successful in 5m31s
CI / Build-Artefakte aktuell (pull_request) Failing after 1m26s
Some checks failed
CI / PHP 8.4 / mariadb:10.6 (pull_request) Successful in 3m4s
CI / PHP 8.3 / mariadb:10.6 (pull_request) Successful in 3m8s
CI / PHP 8.3 / mariadb:11.4 (pull_request) Successful in 3m32s
CI / PHP 8.4 / mariadb:11.4 (pull_request) Successful in 3m35s
CI / PHP 8.3 / mysql:8.0 (pull_request) Successful in 5m7s
CI / PHP 8.4 / mysql:8.0 (pull_request) Successful in 5m1s
CI / PHP 8.3 / mysql:8.4 (pull_request) Successful in 5m30s
CI / PHP 8.4 / mysql:8.4 (pull_request) Successful in 5m31s
CI / Build-Artefakte aktuell (pull_request) Failing after 1m26s
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
201c86d486
commit
293d7f86a4
104 changed files with 552 additions and 409 deletions
|
|
@ -1,7 +1,26 @@
|
|||
@php($import = $this->getImport())
|
||||
<x-filament-panels::page>
|
||||
{{-- Eigene Klassen statt Tailwind: das Admin-CSS von Filament enthält keine Tailwind-Hilfsklassen. --}}
|
||||
<style>
|
||||
.wpi-muted { color: rgb(107 114 128); }
|
||||
.wpi-small { font-size: .875rem; line-height: 1.25rem; }
|
||||
.wpi-history { list-style: none; margin: 0; padding: 0; }
|
||||
.wpi-history li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; padding: .5rem 0; border-top: 1px solid rgb(243 244 246); }
|
||||
.wpi-history li:first-child { border-top: 0; }
|
||||
.wpi-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin: 0; }
|
||||
@media (min-width: 640px) { .wpi-stats { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
|
||||
.wpi-stats div { border-radius: .5rem; background: rgb(249 250 251); padding: .75rem; }
|
||||
.wpi-stats dd { margin: 0; font-size: 1.5rem; line-height: 2rem; font-weight: 600; }
|
||||
.wpi-bar { height: .5rem; overflow: hidden; border-radius: 9999px; background: rgb(243 244 246); }
|
||||
.wpi-bar div { height: 100%; background: var(--primary-600); transition: width .3s; }
|
||||
.wpi-log { max-height: 24rem; overflow-y: auto; font-size: .75rem; white-space: pre-wrap; margin: 0; }
|
||||
.dark .wpi-history li { border-color: rgb(255 255 255 / .05); }
|
||||
.dark .wpi-stats div, .dark .wpi-bar { background: rgb(255 255 255 / .05); }
|
||||
.dark .wpi-muted { color: rgb(156 163 175); }
|
||||
</style>
|
||||
|
||||
@if (! $import)
|
||||
<form wire:submit="analyze" class="grid gap-6">
|
||||
<form wire:submit="analyze" class="fi-sc-form">
|
||||
{{ $this->uploadForm }}
|
||||
<div>
|
||||
<x-filament::button type="submit" icon="heroicon-o-magnifying-glass">Datei prüfen</x-filament::button>
|
||||
|
|
@ -10,11 +29,11 @@
|
|||
|
||||
@if ($this->history()->isNotEmpty())
|
||||
<x-filament::section heading="Bisherige Importe">
|
||||
<ul class="divide-y divide-gray-100 text-sm dark:divide-white/5">
|
||||
<ul class="wpi-history wpi-small">
|
||||
@foreach ($this->history() as $past)
|
||||
<li class="flex flex-wrap justify-between gap-2 py-2">
|
||||
<li>
|
||||
<span>{{ $past->site_title ?: $past->site_url }} · {{ $past->created_at->format('d.m.Y H:i') }}</span>
|
||||
<span class="text-gray-500">
|
||||
<span class="wpi-muted">
|
||||
{{ $past->status === 'done' ? 'abgeschlossen' : 'abgebrochen' }}:
|
||||
{{ $past->stats['created'] ?? 0 }} neu, {{ $past->stats['updated'] ?? 0 }} aktualisiert, {{ $past->stats['skipped'] ?? 0 }} übersprungen, {{ $past->stats['failed'] ?? 0 }} Fehler
|
||||
</span>
|
||||
|
|
@ -26,22 +45,22 @@
|
|||
@elseif ($import->status === 'analyzed')
|
||||
@php($found = $import->stats['found'] ?? [])
|
||||
<x-filament::section :heading="'Gefunden in „'.($import->site_title ?: 'WordPress').'“'" :description="$import->site_url">
|
||||
<dl class="grid grid-cols-2 gap-4 text-sm sm:grid-cols-5">
|
||||
<dl class="wpi-stats wpi-small">
|
||||
@foreach (['post' => 'Beiträge', 'page' => 'Seiten', 'category' => 'Kategorien', 'author' => 'Autor:innen', 'attachment' => 'Medien'] as $key => $label)
|
||||
<div class="rounded-lg bg-gray-50 p-3 dark:bg-white/5">
|
||||
<dt class="text-gray-500">{{ $label }}</dt>
|
||||
<dd class="text-2xl font-semibold">{{ $found[$key] ?? 0 }}</dd>
|
||||
<div>
|
||||
<dt class="wpi-muted">{{ $label }}</dt>
|
||||
<dd>{{ $found[$key] ?? 0 }}</dd>
|
||||
</div>
|
||||
@endforeach
|
||||
</dl>
|
||||
@if (($found['drafts'] ?? 0) > 0)
|
||||
<p class="mt-3 text-sm text-gray-500">Davon {{ $found['drafts'] }} Entwürfe. Kommentare, Schlagwörter und Einträge anderer Plugins werden nicht übernommen.</p>
|
||||
<p class="wpi-small wpi-muted" style="margin-top: .75rem;">Davon {{ $found['drafts'] }} Entwürfe. Kommentare, Schlagwörter und Einträge anderer Plugins werden nicht übernommen.</p>
|
||||
@endif
|
||||
</x-filament::section>
|
||||
|
||||
<form wire:submit="start" class="grid gap-6">
|
||||
<form wire:submit="start" class="fi-sc-form">
|
||||
{{ $this->optionsForm }}
|
||||
<div class="flex gap-3">
|
||||
<div style="display: flex; flex-wrap: wrap; gap: .75rem;">
|
||||
<x-filament::button type="submit" icon="heroicon-o-arrow-down-tray">Import starten</x-filament::button>
|
||||
<x-filament::button color="gray" wire:click="discard" type="button">Verwerfen</x-filament::button>
|
||||
</div>
|
||||
|
|
@ -49,20 +68,20 @@
|
|||
@else
|
||||
@php($stats = $import->stats ?? [])
|
||||
<x-filament::section :heading="$import->status === 'running' ? 'Import läuft …' : ($import->status === 'done' ? 'Import abgeschlossen' : 'Import abgebrochen')">
|
||||
<div @if ($import->status === 'running') wire:poll.750ms="step" @endif class="grid gap-4">
|
||||
<div class="h-2 overflow-hidden rounded-full bg-gray-100 dark:bg-white/10">
|
||||
<div class="h-full bg-primary-600 transition-all" style="width: {{ $import->progress() }}%"></div>
|
||||
<div @if ($import->status === 'running') wire:poll.750ms="step" @endif style="display: grid; gap: 1rem;">
|
||||
<div class="wpi-bar">
|
||||
<div style="width: {{ $import->progress() }}%"></div>
|
||||
</div>
|
||||
<p class="text-sm">
|
||||
<p class="wpi-small" style="margin: 0;">
|
||||
{{ $stats['processed'] ?? 0 }} von {{ $stats['total'] ?? 0 }} Einträgen ·
|
||||
{{ $stats['created'] ?? 0 }} neu · {{ $stats['updated'] ?? 0 }} aktualisiert ·
|
||||
{{ $stats['skipped'] ?? 0 }} übersprungen · {{ $stats['failed'] ?? 0 }} Fehler
|
||||
</p>
|
||||
@if ($import->status === 'running')
|
||||
<p class="text-sm text-gray-500">Bitte die Seite geöffnet lassen – der Import läuft in Portionen weiter.</p>
|
||||
<p class="wpi-small wpi-muted" style="margin: 0;">Bitte die Seite geöffnet lassen – der Import läuft in Portionen weiter.</p>
|
||||
<div><x-filament::button color="gray" wire:click="cancel" size="sm">Abbrechen</x-filament::button></div>
|
||||
@else
|
||||
<div class="flex gap-3">
|
||||
<div style="display: flex; flex-wrap: wrap; gap: .75rem;">
|
||||
<x-filament::button tag="a" href="/admin/neuigkeiten" icon="heroicon-o-newspaper">Zu den Neuigkeiten</x-filament::button>
|
||||
<x-filament::button color="gray" wire:click="discard">Neuer Import</x-filament::button>
|
||||
</div>
|
||||
|
|
@ -72,7 +91,7 @@
|
|||
|
||||
@if ($import->log)
|
||||
<x-filament::section heading="Protokoll" collapsible>
|
||||
<pre class="max-h-96 overflow-y-auto text-xs whitespace-pre-wrap">{{ $import->log }}</pre>
|
||||
<pre class="wpi-log">{{ $import->log }}</pre>
|
||||
</x-filament::section>
|
||||
@endif
|
||||
@endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue