Skip to content

Commit

Permalink
Clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
lancepioch committed Apr 8, 2024
1 parent 4e0aaed commit 2dd53ee
Showing 1 changed file with 4 additions and 11 deletions.
15 changes: 4 additions & 11 deletions app/Filament/Resources/ApiKeyResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -127,17 +127,13 @@ public static function table(Table $table): Table
->hidden()
->sortable(),

Tables\Columns\TextColumn::make('key_type')
->label('Type')
->state(fn (ApiKey $key) => $key->type())
->hidden()
->sortable(),

Tables\Columns\TextColumn::make('key')
->copyable()
->icon('tabler-clipboard-text')
->state(fn (ApiKey $key) => $key->identifier . decrypt($key->token)),

Tables\Columns\TextColumn::make('memo')
->label('Description')
->wrap()
->limit(50),

Expand All @@ -146,16 +142,13 @@ public static function table(Table $table): Table
->searchable(),

Tables\Columns\TextColumn::make('last_used_at')
->label('Last Used')
->dateTime()
->sortable()
->toggleable(),

Tables\Columns\TextColumn::make('expires_at')
->dateTime()
->sortable()
->toggleable(isToggledHiddenByDefault: true),

Tables\Columns\TextColumn::make('created_at')
->label('Created')
->dateTime()
->sortable()
->toggleable(),
Expand Down

0 comments on commit 2dd53ee

Please sign in to comment.