ruski
ruski
Explore posts from servers
FFilament
Created by ruski on 12/19/2024 in #❓┊help
Terminal component
Is there a plugin or a way to create a server terminal page using filament? I don't need it to be complex, just look like a terminal where I can see logs.
6 replies
FFilament
Created by ruski on 12/13/2024 in #❓┊help
Sticky Table Column Headers
How can I make the column names header sticky? (after i scrolled down below it, i want it to stick at the top)
8 replies
FFilament
Created by ruski on 12/12/2024 in #❓┊help
How can I render the badge with only the icon (no text)?
Tables\Columns\TextColumn::make('transaction.state')
->label('State')
->badge()
->color(fn (string $state): string => match ($state) {
'created' => 'info',
'pending' => 'info',
'completed' => 'success',
'declined' => 'danger',
'failed' => 'danger',
'reverted' => 'info',
})
->icon(fn (string $state): string => match ($state) {
'created' => 'heroicon-o-clock',
'pending' => 'heroicon-o-clock',
'completed' => 'heroicon-o-check',
'declined' => 'heroicon-o-x',
'failed' => 'heroicon-o-x',
'reverted' => 'heroicon-o-arrow-path',
})
->formatStateUsing(fn (string $state): string => '')
Tables\Columns\TextColumn::make('transaction.state')
->label('State')
->badge()
->color(fn (string $state): string => match ($state) {
'created' => 'info',
'pending' => 'info',
'completed' => 'success',
'declined' => 'danger',
'failed' => 'danger',
'reverted' => 'info',
})
->icon(fn (string $state): string => match ($state) {
'created' => 'heroicon-o-clock',
'pending' => 'heroicon-o-clock',
'completed' => 'heroicon-o-check',
'declined' => 'heroicon-o-x',
'failed' => 'heroicon-o-x',
'reverted' => 'heroicon-o-arrow-path',
})
->formatStateUsing(fn (string $state): string => '')
If I set the state value to '', the badge disappears completely. Is there any way to force it to be visible (->visible() didn't work i tried)?
5 replies
CC#
Created by ruski on 4/1/2024 in #help
need help adding authentication
How can i add some basic google authentication to my API? (When I want to use an ASP.NET web api controller from the swagger, i want to be redirected to google login and also check if i logged in with a specific email before continuing what the endpoint used to do)
5 replies
CC#
Created by ruski on 3/28/2024 in #help
Empty DTO list from swagger
No description
33 replies