mirror of
https://github.com/pelican-dev/panel.git
synced 2025-09-08 06:18:48 +02:00
use hintCopy again
This commit is contained in:
parent
3c9143bee1
commit
2929b0a54e
@ -36,7 +36,7 @@ final class DiscordSchema extends OAuthSchema
|
||||
->label('Redirect URL')
|
||||
->dehydrated()
|
||||
->disabled()
|
||||
//->hintCopy() // TODO: wait for filament bug fix
|
||||
->hintCopy()
|
||||
->formatStateUsing(fn () => url('/auth/oauth/callback/discord')),
|
||||
]),
|
||||
], parent::getSetupSteps());
|
||||
|
@ -27,7 +27,7 @@ final class GithubSchema extends OAuthSchema
|
||||
->label('Authorization callback URL')
|
||||
->dehydrated()
|
||||
->disabled()
|
||||
//->hintCopy() // TODO: wait for filament bug fix
|
||||
->hintCopy()
|
||||
->default(fn () => url('/auth/oauth/callback/github')),
|
||||
TextEntry::make('register_application')
|
||||
->hiddenLabel()
|
||||
|
@ -47,7 +47,7 @@ final class GitlabSchema extends OAuthSchema
|
||||
->label('Redirect URI')
|
||||
->dehydrated()
|
||||
->disabled()
|
||||
//->hintCopy() // TODO: wait for filament bug fix
|
||||
->hintCopy()
|
||||
->default(fn () => url('/auth/oauth/callback/gitlab')),
|
||||
]),
|
||||
], parent::getSetupSteps());
|
||||
|
@ -291,7 +291,7 @@ class EditNode extends EditRecord
|
||||
'lg' => 2,
|
||||
])
|
||||
->label(trans('admin/node.node_uuid'))
|
||||
//->hintCopy() // TODO: wait for filament bug fix
|
||||
->hintCopy()
|
||||
->disabled(),
|
||||
TagsInput::make('tags')
|
||||
->label(trans('admin/node.tags'))
|
||||
@ -552,7 +552,7 @@ class EditNode extends EditRecord
|
||||
->label('/etc/pelican/config.yml')
|
||||
->disabled()
|
||||
->rows(19)
|
||||
//->hintCopy() // TODO: wait for filament bug fix
|
||||
->hintCopy()
|
||||
->columnSpanFull(),
|
||||
Grid::make()
|
||||
->columns()
|
||||
@ -589,7 +589,7 @@ class EditNode extends EditRecord
|
||||
->label(trans('admin/node.auto_command'))
|
||||
->readOnly()
|
||||
->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')))),
|
||||
])
|
||||
->mountUsing(function (Schema $schema) {
|
||||
|
@ -620,7 +620,7 @@ class EditServer extends EditRecord
|
||||
->hintAction(PreviewStartupAction::make('preview')),
|
||||
|
||||
Textarea::make('defaultStartup')
|
||||
//->hintCopy() // TODO: wait for filament bug fix
|
||||
->hintCopy()
|
||||
->label(trans('admin/server.default_startup'))
|
||||
->disabled()
|
||||
->autosize()
|
||||
|
@ -48,14 +48,14 @@ class QueueStep
|
||||
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!'))
|
||||
->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 -')
|
||||
->hidden(fn () => @file_exists('/.dockerenv'))
|
||||
->columnSpanFull(),
|
||||
TextInput::make('queueService')
|
||||
->label(new HtmlString('To setup the queue worker service you simply have to run the following command.'))
|
||||
->disabled()
|
||||
//->hintCopy() // TODO: wait for filament bug fix
|
||||
->hintCopy()
|
||||
->default('sudo php ' . base_path() . '/artisan p:environment:queue-service')
|
||||
->hidden(fn () => @file_exists('/.dockerenv'))
|
||||
->columnSpanFull(),
|
||||
|
Loading…
x
Reference in New Issue
Block a user