use hintCopy again

This commit is contained in:
Boy132 2025-08-13 14:33:27 +02:00
parent 3c9143bee1
commit 2929b0a54e
6 changed files with 9 additions and 9 deletions

View File

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

View File

@ -27,7 +27,7 @@ final class GithubSchema extends OAuthSchema
->label('Authorization callback URL') ->label('Authorization callback URL')
->dehydrated() ->dehydrated()
->disabled() ->disabled()
//->hintCopy() // TODO: wait for filament bug fix ->hintCopy()
->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

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

View File

@ -291,7 +291,7 @@ class EditNode extends EditRecord
'lg' => 2, 'lg' => 2,
]) ])
->label(trans('admin/node.node_uuid')) ->label(trans('admin/node.node_uuid'))
//->hintCopy() // TODO: wait for filament bug fix ->hintCopy()
->disabled(), ->disabled(),
TagsInput::make('tags') TagsInput::make('tags')
->label(trans('admin/node.tags')) ->label(trans('admin/node.tags'))
@ -552,7 +552,7 @@ class EditNode extends EditRecord
->label('/etc/pelican/config.yml') ->label('/etc/pelican/config.yml')
->disabled() ->disabled()
->rows(19) ->rows(19)
//->hintCopy() // TODO: wait for filament bug fix ->hintCopy()
->columnSpanFull(), ->columnSpanFull(),
Grid::make() Grid::make()
->columns() ->columns()
@ -589,7 +589,7 @@ class EditNode extends EditRecord
->label(trans('admin/node.auto_command')) ->label(trans('admin/node.auto_command'))
->readOnly() ->readOnly()
->autosize() ->autosize()
//->hintCopy() // TODO: wait for filament bug fix ->hintCopy()
->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() // TODO: wait for filament bug fix ->hintCopy()
->label(trans('admin/server.default_startup')) ->label(trans('admin/server.default_startup'))
->disabled() ->disabled()
->autosize() ->autosize()

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() // TODO: wait for filament bug fix ->hintCopy()
->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() // TODO: wait for filament bug fix ->hintCopy()
->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(),