comment out hintCopy until filament bug is fixed

This commit is contained in:
Boy132 2025-07-01 20:42:46 +02:00
parent 9da52c24c0
commit 833023c93f
7 changed files with 9 additions and 12 deletions

View File

@ -42,7 +42,7 @@ final class DiscordProvider extends OAuthProvider
->label('Redirect URL') ->label('Redirect URL')
->dehydrated() ->dehydrated()
->disabled() ->disabled()
->hintCopy() //->hintCopy() // TODO: wait for filament bug fix
->formatStateUsing(fn () => url('/auth/oauth/callback/discord')), ->formatStateUsing(fn () => url('/auth/oauth/callback/discord')),
]), ]),
], parent::getSetupSteps()); ], parent::getSetupSteps());

View File

@ -33,7 +33,7 @@ final class GithubProvider extends OAuthProvider
->label('Authorization callback URL') ->label('Authorization callback URL')
->dehydrated() ->dehydrated()
->disabled() ->disabled()
->hintCopy() //->hintCopy() // TODO: wait for filament bug fix
->default(fn () => url('/auth/oauth/callback/github')), ->default(fn () => url('/auth/oauth/callback/github')),
TextEntry::make('register_application') TextEntry::make('register_application')
->hiddenLabel() ->hiddenLabel()

View File

@ -53,7 +53,7 @@ final class GitlabProvider extends OAuthProvider
->label('Redirect URI') ->label('Redirect URI')
->dehydrated() ->dehydrated()
->disabled() ->disabled()
->hintCopy() //->hintCopy() // TODO: wait for filament bug fix
->default(fn () => url('/auth/oauth/callback/gitlab')), ->default(fn () => url('/auth/oauth/callback/gitlab')),
]), ]),
], parent::getSetupSteps()); ], parent::getSetupSteps());

View File

@ -293,7 +293,7 @@ class EditNode extends EditRecord
'lg' => 2, 'lg' => 2,
]) ])
->label(trans('admin/node.node_uuid')) ->label(trans('admin/node.node_uuid'))
->hintCopy() //->hintCopy() // TODO: wait for filament bug fix
->disabled(), ->disabled(),
TagsInput::make('tags') TagsInput::make('tags')
->label(trans('admin/node.tags')) ->label(trans('admin/node.tags'))
@ -554,7 +554,7 @@ class EditNode extends EditRecord
->label('/etc/pelican/config.yml') ->label('/etc/pelican/config.yml')
->disabled() ->disabled()
->rows(19) ->rows(19)
->hintCopy() //->hintCopy() // TODO: wait for filament bug fix
->columnSpanFull(), ->columnSpanFull(),
Grid::make() Grid::make()
->columns() ->columns()
@ -591,7 +591,7 @@ class EditNode extends EditRecord
->label(trans('admin/node.auto_command')) ->label(trans('admin/node.auto_command'))
->readOnly() ->readOnly()
->autosize() ->autosize()
->hintCopy() //->hintCopy() // TODO: wait for filament bug fix
->formatStateUsing(fn (NodeAutoDeployService $service, Node $node, Set $set, Get $get) => $set('generatedToken', $service->handle(request(), $node, $get('docker')))), ->formatStateUsing(fn (NodeAutoDeployService $service, Node $node, Set $set, Get $get) => $set('generatedToken', $service->handle(request(), $node, $get('docker')))),
]) ])
->mountUsing(function (Schema $schema) { ->mountUsing(function (Schema $schema) {

View File

@ -620,7 +620,7 @@ class EditServer extends EditRecord
->hintAction(PreviewStartupAction::make('preview')), ->hintAction(PreviewStartupAction::make('preview')),
Textarea::make('defaultStartup') Textarea::make('defaultStartup')
->hintCopy() //->hintCopy() // TODO: wait for filament bug fix
->label(trans('admin/server.default_startup')) ->label(trans('admin/server.default_startup'))
->disabled() ->disabled()
->autosize() ->autosize()

View File

@ -6,12 +6,9 @@ use Closure;
use Filament\Actions\Action; use Filament\Actions\Action;
use Illuminate\Support\HtmlString; use Illuminate\Support\HtmlString;
use Illuminate\Support\Js; use Illuminate\Support\Js;
use Livewire\Features\SupportJsEvaluation\HandlesJsEvaluation;
class CopyAction extends Action class CopyAction extends Action
{ {
use HandlesJsEvaluation;
protected Closure|string|null $copyable = null; protected Closure|string|null $copyable = null;
public static function getDefaultName(): ?string public static function getDefaultName(): ?string

View File

@ -48,14 +48,14 @@ class QueueStep
TextInput::make('crontab') TextInput::make('crontab')
->label(new HtmlString('Run the following command to set up your crontab. Note that <code>www-data</code> is your webserver user. On some systems this username might be different!')) ->label(new HtmlString('Run the following command to set up your crontab. Note that <code>www-data</code> is your webserver user. On some systems this username might be different!'))
->disabled() ->disabled()
->hintCopy() //->hintCopy() // TODO: wait for filament bug fix
->default('(crontab -l -u www-data 2>/dev/null; echo "* * * * * php ' . base_path() . '/artisan schedule:run >> /dev/null 2>&1") | crontab -u www-data -') ->default('(crontab -l -u www-data 2>/dev/null; echo "* * * * * php ' . base_path() . '/artisan schedule:run >> /dev/null 2>&1") | crontab -u www-data -')
->hidden(fn () => @file_exists('/.dockerenv')) ->hidden(fn () => @file_exists('/.dockerenv'))
->columnSpanFull(), ->columnSpanFull(),
TextInput::make('queueService') TextInput::make('queueService')
->label(new HtmlString('To setup the queue worker service you simply have to run the following command.')) ->label(new HtmlString('To setup the queue worker service you simply have to run the following command.'))
->disabled() ->disabled()
->hintCopy() //->hintCopy() // TODO: wait for filament bug fix
->default('sudo php ' . base_path() . '/artisan p:environment:queue-service') ->default('sudo php ' . base_path() . '/artisan p:environment:queue-service')
->hidden(fn () => @file_exists('/.dockerenv')) ->hidden(fn () => @file_exists('/.dockerenv'))
->columnSpanFull(), ->columnSpanFull(),