Merge branch 'feature/filament' of github.com:pelican-dev/panel into feature/filament

This commit is contained in:
Lance Pioch 2024-04-12 12:19:25 -04:00
commit 0b1712f653
4 changed files with 7 additions and 2 deletions

View File

@ -72,7 +72,6 @@ class DatabaseHostResource extends Resource
Tables\Columns\TextColumn::make('host')
->searchable(),
Tables\Columns\TextColumn::make('port')
->numeric()
->sortable(),
Tables\Columns\TextColumn::make('username')
->searchable(),

View File

@ -84,6 +84,7 @@ class UserResource extends Resource
->columns([
Tables\Columns\ImageColumn::make('picture')
->label('')
->extraImgAttributes(['class' => 'rounded-full'])
->defaultImageUrl(fn (User $user) => 'https://gravatar.com/avatar/' . md5(strtolower($user->email))),
Tables\Columns\TextColumn::make('external_id')
->searchable()

View File

@ -65,6 +65,11 @@ class DatabaseHost extends Model
];
}
public function getRouteKeyName(): string
{
return 'id';
}
/**
* Gets the node associated with a database host.
*/

View File

@ -35,7 +35,7 @@ export default forwardRef<HTMLFormElement, Props>(({ title, ...props }, ref) =>
<Form {...props} ref={ref}>
<div css={tw`md:flex w-full bg-white shadow-lg rounded-lg p-6 md:pl-0 mx-1`}>
<div css={tw`flex-none select-none mb-6 md:mb-0 self-center p-6`}>
<img src={'/pelican.svg'} css={tw`block w-48 md:w-64 mx-auto`} />
<img src={'/pelican.svg'} css={tw`block w-48 md:w-56 mx-auto`} />
</div>
<div css={tw`flex-1`}>{props.children}</div>
</div>