replace "ineedaname"'s

This commit is contained in:
Boy132 2025-06-28 17:01:30 +02:00
parent 2a37eb1ea3
commit 06be887c39
14 changed files with 36 additions and 31 deletions

View File

@ -32,10 +32,10 @@ final class DiscordProvider extends OAuthProvider
return array_merge([ return array_merge([
Step::make('Register new Discord OAuth App') Step::make('Register new Discord OAuth App')
->schema([ ->schema([
TextEntry::make('INeedAName') TextEntry::make('create_application')
->hiddenLabel() ->hiddenLabel()
->state(new HtmlString(Blade::render('<p>Visit the <x-filament::link href="https://discord.com/developers/applications" target="_blank">Discord Developer Portal</x-filament::link> and click on <b>New Application</b>. Enter a <b>Name</b> (e.g. your panel name) and click on <b>Create</b>.</p><p>Copy the <b>Client ID</b> and the <b>Client Secret</b> from the OAuth2 tab, you will need them in the final step.</p>'))), ->state(new HtmlString(Blade::render('<p>Visit the <x-filament::link href="https://discord.com/developers/applications" target="_blank">Discord Developer Portal</x-filament::link> and click on <b>New Application</b>. Enter a <b>Name</b> (e.g. your panel name) and click on <b>Create</b>.</p><p>Copy the <b>Client ID</b> and the <b>Client Secret</b> from the OAuth2 tab, you will need them in the final step.</p>'))),
TextEntry::make('INeedAName2') TextEntry::make('set_redirect')
->hiddenLabel() ->hiddenLabel()
->state(new HtmlString('<p>Under <b>Redirects</b> add the below URL.</p>')), ->state(new HtmlString('<p>Under <b>Redirects</b> add the below URL.</p>')),
TextInput::make('_noenv_callback') TextInput::make('_noenv_callback')

View File

@ -27,7 +27,7 @@ final class GithubProvider extends OAuthProvider
return array_merge([ return array_merge([
Step::make('Register new Github OAuth App') Step::make('Register new Github OAuth App')
->schema([ ->schema([
TextEntry::make('INeedAName2') TextEntry::make('create_application')
->hiddenLabel() ->hiddenLabel()
->state(new HtmlString(Blade::render('<p>Visit the <x-filament::link href="https://github.com/settings/developers" target="_blank">Github Developer Dashboard</x-filament::link>, go to <b>OAuth Apps</b> and click on <b>New OAuth App</b>.</p><p>Enter an <b>Application name</b> (e.g. your panel name), set <b>Homepage URL</b> to your panel url and enter the below url as <b>Authorization callback URL</b>.</p>'))), ->state(new HtmlString(Blade::render('<p>Visit the <x-filament::link href="https://github.com/settings/developers" target="_blank">Github Developer Dashboard</x-filament::link>, go to <b>OAuth Apps</b> and click on <b>New OAuth App</b>.</p><p>Enter an <b>Application name</b> (e.g. your panel name), set <b>Homepage URL</b> to your panel url and enter the below url as <b>Authorization callback URL</b>.</p>'))),
TextInput::make('_noenv_callback') TextInput::make('_noenv_callback')
@ -36,13 +36,13 @@ final class GithubProvider extends OAuthProvider
->disabled() ->disabled()
//TODO ->hintAction(fn (string $state) => request()->isSecure() ? CopyAction::make()->copyable($state) : null) //TODO ->hintAction(fn (string $state) => request()->isSecure() ? CopyAction::make()->copyable($state) : null)
->default(fn () => url('/auth/oauth/callback/github')), ->default(fn () => url('/auth/oauth/callback/github')),
TextEntry::make('INeedAName') TextEntry::make('register_application')
->hiddenLabel() ->hiddenLabel()
->state(new HtmlString('<p>When you filled all fields click on <b>Register application</b>.</p>')), ->state(new HtmlString('<p>When you filled all fields click on <b>Register application</b>.</p>')),
]), ]),
Step::make('Create Client Secret') Step::make('Create Client Secret')
->schema([ ->schema([
TextEntry::make('INeedAName3') TextEntry::make('create_client_secret')
->hiddenLabel() ->hiddenLabel()
->state(new HtmlString('<p>Once you registered your app, generate a new <b>Client Secret</b>.</p><p>You will also need the <b>Client ID</b>.</p>')), ->state(new HtmlString('<p>Once you registered your app, generate a new <b>Client Secret</b>.</p><p>You will also need the <b>Client ID</b>.</p>')),
]), ]),

View File

@ -47,7 +47,7 @@ final class GitlabProvider extends OAuthProvider
return array_merge([ return array_merge([
Step::make('Register new Gitlab OAuth App') Step::make('Register new Gitlab OAuth App')
->schema([ ->schema([
TextEntry::make('INeedAName') TextEntry::make('register_application')
->hiddenLabel() ->hiddenLabel()
->state(new HtmlString(Blade::render('Check out the <x-filament::link href="https://docs.gitlab.com/integration/oauth_provider/" target="_blank">Gitlab docs</x-filament::link> on how to create the oauth app.'))), ->state(new HtmlString(Blade::render('Check out the <x-filament::link href="https://docs.gitlab.com/integration/oauth_provider/" target="_blank">Gitlab docs</x-filament::link> on how to create the oauth app.'))),
TextInput::make('_noenv_callback') TextInput::make('_noenv_callback')

View File

@ -58,7 +58,7 @@ final class SteamProvider extends OAuthProvider
return array_merge([ return array_merge([
Step::make('Create API Key') Step::make('Create API Key')
->schema([ ->schema([
TextEntry::make('INeedAName') TextEntry::make('create_api_key')
->hiddenLabel() ->hiddenLabel()
->state(new HtmlString(Blade::render('Visit <x-filament::link href="https://steamcommunity.com/dev/apikey" target="_blank">https://steamcommunity.com/dev/apikey</x-filament::link> to generate an API key.'))), ->state(new HtmlString(Blade::render('Visit <x-filament::link href="https://steamcommunity.com/dev/apikey" target="_blank">https://steamcommunity.com/dev/apikey</x-filament::link> to generate an API key.'))),
]), ]),

View File

@ -53,7 +53,7 @@ class CreateDatabaseHost extends CreateRecord
Step::make(trans('admin/databasehost.setup.preparations')) Step::make(trans('admin/databasehost.setup.preparations'))
->columns() ->columns()
->schema([ ->schema([
TextEntry::make('INeedAName') TextEntry::make('setup')
->hiddenLabel() ->hiddenLabel()
->state(trans('admin/databasehost.setup.note')), ->state(trans('admin/databasehost.setup.note')),
Toggle::make('different_server') Toggle::make('different_server')
@ -88,7 +88,7 @@ class CreateDatabaseHost extends CreateRecord
->schema([ ->schema([
Fieldset::make(trans('admin/databasehost.setup.database_user')) Fieldset::make(trans('admin/databasehost.setup.database_user'))
->schema([ ->schema([
TextEntry::make('INeedAName') TextEntry::make('cli_login')
->hiddenLabel() ->hiddenLabel()
->state(new HtmlString(trans('admin/databasehost.setup.cli_login'))) ->state(new HtmlString(trans('admin/databasehost.setup.cli_login')))
->columnSpanFull(), ->columnSpanFull(),
@ -106,14 +106,14 @@ class CreateDatabaseHost extends CreateRecord
->dehydrated(false) ->dehydrated(false)
// TODO ->suffixAction(fn (string $state) => request()->isSecure() ? CopyAction::make()->copyable($state) : null) // TODO ->suffixAction(fn (string $state) => request()->isSecure() ? CopyAction::make()->copyable($state) : null)
->columnSpanFull(), ->columnSpanFull(),
TextEntry::make('INeedAName') TextEntry::make('cli_exit')
->hiddenLabel() ->hiddenLabel()
->state(new HtmlString(trans('admin/databasehost.setup.cli_exit'))) ->state(new HtmlString(trans('admin/databasehost.setup.cli_exit')))
->columnSpanFull(), ->columnSpanFull(),
]), ]),
Fieldset::make(trans('admin/databasehost.setup.external_access')) Fieldset::make(trans('admin/databasehost.setup.external_access'))
->schema([ ->schema([
TextEntry::make('INeedAName2') TextEntry::make('allow_external_access')
->hiddenLabel() ->hiddenLabel()
->state(new HtmlString(trans('admin/databasehost.setup.allow_external_access'))) ->state(new HtmlString(trans('admin/databasehost.setup.allow_external_access')))
->columnSpanFull(), ->columnSpanFull(),

View File

@ -84,16 +84,16 @@ class EditNode extends EditRecord
->columns(4) ->columns(4)
->columnSpanFull() ->columnSpanFull()
->schema([ ->schema([
TextEntry::make('INeedAName') TextEntry::make('wings_version')
->label(trans('admin/node.wings_version')) ->label(trans('admin/node.wings_version'))
->state(fn (Node $node, SoftwareVersionService $versionService) => ($node->systemInformation()['version'] ?? trans('admin/node.unknown')) . ' (' . trans('admin/node.latest') . ': ' . $versionService->latestWingsVersion() . ')'), ->state(fn (Node $node, SoftwareVersionService $versionService) => ($node->systemInformation()['version'] ?? trans('admin/node.unknown')) . ' (' . trans('admin/node.latest') . ': ' . $versionService->latestWingsVersion() . ')'),
TextEntry::make('INeedAName2') TextEntry::make('cpu_threads')
->label(trans('admin/node.cpu_threads')) ->label(trans('admin/node.cpu_threads'))
->state(fn (Node $node) => $node->systemInformation()['cpu_count'] ?? 0), ->state(fn (Node $node) => $node->systemInformation()['cpu_count'] ?? 0),
TextEntry::make('INeedAName3') TextEntry::make('architecture')
->label(trans('admin/node.architecture')) ->label(trans('admin/node.architecture'))
->state(fn (Node $node) => $node->systemInformation()['architecture'] ?? trans('admin/node.unknown')), ->state(fn (Node $node) => $node->systemInformation()['architecture'] ?? trans('admin/node.unknown')),
TextEntry::make('INeedAName4') TextEntry::make('kernel')
->label(trans('admin/node.kernel')) ->label(trans('admin/node.kernel'))
->state(fn (Node $node) => $node->systemInformation()['kernel_version'] ?? trans('admin/node.unknown')), ->state(fn (Node $node) => $node->systemInformation()['kernel_version'] ?? trans('admin/node.unknown')),
]), ]),

View File

@ -31,10 +31,10 @@ class CanaryWidget extends FormWidget
->collapsed() ->collapsed()
->persistCollapsed() ->persistCollapsed()
->schema([ ->schema([
TextEntry::make('iNeedAName') TextEntry::make('info')
->hiddenLabel() ->hiddenLabel()
->state(trans('admin/dashboard.sections.intro-developers.content')), ->state(trans('admin/dashboard.sections.intro-developers.content')),
TextEntry::make('iNeedAName') TextEntry::make('extra')
->hiddenLabel() ->hiddenLabel()
->state(trans('admin/dashboard.sections.intro-developers.extra_note')), ->state(trans('admin/dashboard.sections.intro-developers.extra_note')),
]) ])

View File

@ -25,7 +25,7 @@ class HelpWidget extends FormWidget
->collapsible() ->collapsible()
->persistCollapsed() ->persistCollapsed()
->schema([ ->schema([
TextEntry::make('iNeedAName') TextEntry::make('info')
->hiddenLabel() ->hiddenLabel()
->state(trans('admin/dashboard.sections.intro-help.content')), ->state(trans('admin/dashboard.sections.intro-help.content')),
]) ])

View File

@ -32,7 +32,7 @@ class NoNodesWidget extends FormWidget
->collapsible() ->collapsible()
->persistCollapsed() ->persistCollapsed()
->schema([ ->schema([
TextEntry::make('iNeedAName') TextEntry::make('info')
->hiddenLabel() ->hiddenLabel()
->state(trans('admin/dashboard.sections.intro-first-node.content')), ->state(trans('admin/dashboard.sections.intro-first-node.content')),
]) ])

View File

@ -25,10 +25,10 @@ class SupportWidget extends FormWidget
->collapsible() ->collapsible()
->persistCollapsed() ->persistCollapsed()
->schema([ ->schema([
TextEntry::make('iNeedAName') TextEntry::make('info')
->hiddenLabel() ->hiddenLabel()
->state(trans('admin/dashboard.sections.intro-support.content')), ->state(trans('admin/dashboard.sections.intro-support.content')),
TextEntry::make('iNeedAName') TextEntry::make('extra')
->hiddenLabel() ->hiddenLabel()
->state(trans('admin/dashboard.sections.intro-support.extra_note')), ->state(trans('admin/dashboard.sections.intro-support.extra_note')),
]) ])

View File

@ -34,7 +34,7 @@ class UpdateWidget extends FormWidget
->icon('tabler-checkbox') ->icon('tabler-checkbox')
->iconColor('success') ->iconColor('success')
->schema([ ->schema([
TextEntry::make('iNeedAName') TextEntry::make('info')
->hiddenLabel() ->hiddenLabel()
->state(trans('admin/dashboard.sections.intro-no-update.content', ['version' => $this->softwareVersionService->currentPanelVersion()])), ->state(trans('admin/dashboard.sections.intro-no-update.content', ['version' => $this->softwareVersionService->currentPanelVersion()])),
]) ])
@ -42,7 +42,7 @@ class UpdateWidget extends FormWidget
->icon('tabler-info-circle') ->icon('tabler-info-circle')
->iconColor('warning') ->iconColor('warning')
->schema([ ->schema([
TextEntry::make('iNeedAName') TextEntry::make('info')
->state(trans('admin/dashboard.sections.intro-update-available.content', ['latestVersion' => $this->softwareVersionService->latestPanelVersion()])), ->state(trans('admin/dashboard.sections.intro-update-available.content', ['latestVersion' => $this->softwareVersionService->latestPanelVersion()])),
]) ])
->headerActions([ ->headerActions([

View File

@ -236,9 +236,9 @@ class Settings extends ServerFormPage
]) ])
->footerActionsAlignment(Alignment::Right) ->footerActionsAlignment(Alignment::Right)
->schema([ ->schema([
TextEntry::make('INeedAName1') TextEntry::make('stop_info')
->label('Reinstalling your server will stop it, and then re-run the installation script that initially set it up.'), ->label('Reinstalling your server will stop it, and then re-run the installation script that initially set it up.'),
TextEntry::make('INeedAName') TextEntry::make('files_info')
->label('Some files may be deleted or modified during this process, please back up your data before continuing.'), ->label('Some files may be deleted or modified during this process, please back up your data before continuing.'),
]), ]),
]); ]);

View File

@ -138,7 +138,7 @@ class BackupResource extends Resource
->icon('tabler-folder-up') ->icon('tabler-folder-up')
->authorize(fn () => auth()->user()->can(Permission::ACTION_BACKUP_RESTORE, $server)) ->authorize(fn () => auth()->user()->can(Permission::ACTION_BACKUP_RESTORE, $server))
->schema([ ->schema([
TextEntry::make('INeedAName') TextEntry::make('stop_info')
->hiddenLabel() ->hiddenLabel()
->helperText('Your server will be stopped. You will not be able to control the power state, access the file manager, or create additional backups until this process is completed.'), ->helperText('Your server will be stopped. You will not be able to control the power state, access the file manager, or create additional backups until this process is completed.'),
Checkbox::make('truncate') Checkbox::make('truncate')

View File

@ -23,7 +23,8 @@ class RequirementsStep
->icon($correctPhpVersion ? 'tabler-check' : 'tabler-x') ->icon($correctPhpVersion ? 'tabler-check' : 'tabler-x')
->iconColor($correctPhpVersion ? 'success' : 'danger') ->iconColor($correctPhpVersion ? 'success' : 'danger')
->schema([ ->schema([
TextEntry::make('INeedAName') TextEntry::make('php_version')
->hiddenLabel()
->state('Your PHP Version is ' . PHP_VERSION . '.'), ->state('Your PHP Version is ' . PHP_VERSION . '.'),
]), ]),
]; ];
@ -46,10 +47,12 @@ class RequirementsStep
->icon($allExtensionsInstalled ? 'tabler-check' : 'tabler-x') ->icon($allExtensionsInstalled ? 'tabler-check' : 'tabler-x')
->iconColor($allExtensionsInstalled ? 'success' : 'danger') ->iconColor($allExtensionsInstalled ? 'success' : 'danger')
->schema([ ->schema([
TextEntry::make('INeedAName') TextEntry::make('all_extensions_installed')
->hiddenLabel()
->state('All needed PHP Extensions are installed.') ->state('All needed PHP Extensions are installed.')
->visible($allExtensionsInstalled), ->visible($allExtensionsInstalled),
TextEntry::make('INeedAName') TextEntry::make('extensions_missing')
->hiddenLabel()
->state('The following PHP Extensions are missing: ' . implode(', ', array_keys($phpExtensions, false))) ->state('The following PHP Extensions are missing: ' . implode(', ', array_keys($phpExtensions, false)))
->visible(!$allExtensionsInstalled), ->visible(!$allExtensionsInstalled),
]); ]);
@ -65,10 +68,12 @@ class RequirementsStep
->icon($correctFolderPermissions ? 'tabler-check' : 'tabler-x') ->icon($correctFolderPermissions ? 'tabler-check' : 'tabler-x')
->iconColor($correctFolderPermissions ? 'success' : 'danger') ->iconColor($correctFolderPermissions ? 'success' : 'danger')
->schema([ ->schema([
TextEntry::make('INeedAName') TextEntry::make('correct_folder_permissions')
->hiddenLabel()
->state('All Folders have the correct permissions.') ->state('All Folders have the correct permissions.')
->visible($correctFolderPermissions), ->visible($correctFolderPermissions),
TextEntry::make('INeedAName2') TextEntry::make('wrong_folder_permissions')
->hiddenLabel()
->state('The following Folders have wrong permissions: ' . implode(', ', array_keys($folderPermissions, false))) ->state('The following Folders have wrong permissions: ' . implode(', ', array_keys($folderPermissions, false)))
->visible(!$correctFolderPermissions), ->visible(!$correctFolderPermissions),
]); ]);