die tenant admin oauth authentifizierung wurde implementiert und funktioniert jetzt. Zudem wurde das marketing frontend dashboard implementiert.
This commit is contained in:
@@ -5,13 +5,13 @@ namespace App\Filament\Widgets;
|
||||
use App\Models\MediaStorageTarget;
|
||||
use App\Services\Storage\StorageHealthService;
|
||||
use Filament\Widgets\StatsOverviewWidget;
|
||||
use Filament\Widgets\StatsOverviewWidget\Card;
|
||||
use Filament\Widgets\StatsOverviewWidget\Stat;
|
||||
|
||||
class StorageCapacityWidget extends StatsOverviewWidget
|
||||
{
|
||||
protected static ?int $sort = 1;
|
||||
|
||||
protected function getCards(): array
|
||||
protected function getStats(): array
|
||||
{
|
||||
$health = app(StorageHealthService::class);
|
||||
|
||||
@@ -20,7 +20,7 @@ class StorageCapacityWidget extends StatsOverviewWidget
|
||||
$stats = $health->getCapacity($target);
|
||||
|
||||
if ($stats['status'] !== 'ok') {
|
||||
return Card::make($target->name, 'Kapazität unbekannt')
|
||||
return Stat::make($target->name, 'Kapazität unbekannt')
|
||||
->description(match ($stats['status']) {
|
||||
'unavailable' => 'Monitoring nicht verfügbar',
|
||||
'unknown' => 'Monitor-Pfad nicht gesetzt',
|
||||
@@ -46,7 +46,7 @@ class StorageCapacityWidget extends StatsOverviewWidget
|
||||
$color = 'warning';
|
||||
}
|
||||
|
||||
return Card::make($target->name, "$used / $total")
|
||||
return Stat::make($target->name, "$used / $total")
|
||||
->description("Frei: $free · Auslastung: $percent")
|
||||
->color($color)
|
||||
->extraAttributes([
|
||||
|
||||
Reference in New Issue
Block a user