- Neues Sparkbooth-Upload-Feature: Endpoint /api/sparkbooth/upload (Token-basiert pro Galerie), Controller Api/SparkboothUploadController, Migration 2026_01_21_000001_add_upload_fields_to_galleries_table.php mit Upload-Flags/Token/Expiry;
Galerie-Modell und Factory/Seeder entsprechend erweitert.
- Filament: Neue Setup-Seite SparkboothSetup (mit View) zur schnellen Galerie- und Token-Erstellung inkl. QR/Endpoint/Snippet;
Galerie-Link-Views nutzen jetzt simple-qrcode (Composer-Dependency hinzugefügt) und bieten PNG-Download.
- Galerie-Tabelle: Slug/Pfad-Spalten entfernt, Action „Link-Details“ mit Modal; Created-at-Spalte hinzugefügt.
- Zugriffshärtung: Galerie-IDs in API (ImageController, Download/Print) geprüft; GalleryAccess/Middleware + Gallery-Modell/Slug-UUID
eingeführt; GalleryAccess-Inertia-Seite.
- UI/UX: LoadingSpinner/StyledImageDisplay verbessert, Delete-Confirm, Übersetzungen ergänzt.
64 lines
2.1 KiB
PHP
64 lines
2.1 KiB
PHP
<?php
|
|
|
|
namespace App\Filament\Resources\Galleries\Tables;
|
|
|
|
use Filament\Actions\Action;
|
|
use Filament\Actions\BulkActionGroup;
|
|
use Filament\Actions\DeleteBulkAction;
|
|
use Filament\Actions\EditAction;
|
|
use Filament\Tables\Columns\IconColumn;
|
|
use Filament\Tables\Columns\TextColumn;
|
|
use Filament\Tables\Table;
|
|
|
|
class GalleriesTable
|
|
{
|
|
public static function configure(Table $table): Table
|
|
{
|
|
return $table
|
|
->columns([
|
|
TextColumn::make('title')
|
|
->label('Titel')
|
|
->sortable()
|
|
->searchable(),
|
|
IconColumn::make('allow_ai_styles')
|
|
->label('AI-Stile')
|
|
->boolean(),
|
|
IconColumn::make('allow_print')
|
|
->label('Drucken')
|
|
->boolean(),
|
|
IconColumn::make('require_password')
|
|
->label('Passwort')
|
|
->boolean(),
|
|
TextColumn::make('expires_at')
|
|
->label('Läuft ab')
|
|
->dateTime()
|
|
->sortable(),
|
|
TextColumn::make('created_at')
|
|
->label('Erstellt am')
|
|
->dateTime('d.m.Y H:i')
|
|
->sortable(),
|
|
])
|
|
->filters([
|
|
//
|
|
])
|
|
->recordActions([
|
|
EditAction::make(),
|
|
Action::make('link_details')
|
|
->label('Link-Details')
|
|
->icon('heroicon-o-link')
|
|
->modalHeading('Link-Details')
|
|
->modalContent(fn ($record) => view('filament.components.gallery-link-modal', [
|
|
'record' => $record,
|
|
'url' => route('gallery.show', $record),
|
|
]))
|
|
->modalSubmitAction(false)
|
|
->modalCancelAction(false),
|
|
])
|
|
->toolbarActions([
|
|
BulkActionGroup::make([
|
|
DeleteBulkAction::make(),
|
|
]),
|
|
]);
|
|
}
|
|
}
|