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([
Step::make('Register new Discord OAuth App')
->schema([
TextEntry::make('INeedAName')
TextEntry::make('create_application')
->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>'))),
TextEntry::make('INeedAName2')
TextEntry::make('set_redirect')
->hiddenLabel()
->state(new HtmlString('<p>Under <b>Redirects</b> add the below URL.</p>')),
TextInput::make('_noenv_callback')

View File

@ -27,7 +27,7 @@ final class GithubProvider extends OAuthProvider
return array_merge([
Step::make('Register new Github OAuth App')
->schema([
TextEntry::make('INeedAName2')
TextEntry::make('create_application')
->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>'))),
TextInput::make('_noenv_callback')
@ -36,13 +36,13 @@ final class GithubProvider extends OAuthProvider
->disabled()
//TODO ->hintAction(fn (string $state) => request()->isSecure() ? CopyAction::make()->copyable($state) : null)
->default(fn () => url('/auth/oauth/callback/github')),
TextEntry::make('INeedAName')
TextEntry::make('register_application')
->hiddenLabel()
->state(new HtmlString('<p>When you filled all fields click on <b>Register application</b>.</p>')),
]),
Step::make('Create Client Secret')
->schema([
TextEntry::make('INeedAName3')
TextEntry::make('create_client_secret')
->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>')),
]),

View File

@ -47,7 +47,7 @@ final class GitlabProvider extends OAuthProvider
return array_merge([
Step::make('Register new Gitlab OAuth App')
->schema([
TextEntry::make('INeedAName')
TextEntry::make('register_application')
->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.'))),
TextInput::make('_noenv_callback')

View File

@ -58,7 +58,7 @@ final class SteamProvider extends OAuthProvider
return array_merge([
Step::make('Create API Key')
->schema([
TextEntry::make('INeedAName')
TextEntry::make('create_api_key')
->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.'))),
]),

View File

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

View File

@ -84,16 +84,16 @@ class EditNode extends EditRecord
->columns(4)
->columnSpanFull()
->schema([
TextEntry::make('INeedAName')
TextEntry::make('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() . ')'),
TextEntry::make('INeedAName2')
TextEntry::make('cpu_threads')
->label(trans('admin/node.cpu_threads'))
->state(fn (Node $node) => $node->systemInformation()['cpu_count'] ?? 0),
TextEntry::make('INeedAName3')
TextEntry::make('architecture')
->label(trans('admin/node.architecture'))
->state(fn (Node $node) => $node->systemInformation()['architecture'] ?? trans('admin/node.unknown')),
TextEntry::make('INeedAName4')
TextEntry::make('kernel')
->label(trans('admin/node.kernel'))
->state(fn (Node $node) => $node->systemInformation()['kernel_version'] ?? trans('admin/node.unknown')),
]),

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -236,9 +236,9 @@ class Settings extends ServerFormPage
])
->footerActionsAlignment(Alignment::Right)
->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.'),
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.'),
]),
]);

View File

@ -138,7 +138,7 @@ class BackupResource extends Resource
->icon('tabler-folder-up')
->authorize(fn () => auth()->user()->can(Permission::ACTION_BACKUP_RESTORE, $server))
->schema([
TextEntry::make('INeedAName')
TextEntry::make('stop_info')
->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.'),
Checkbox::make('truncate')

View File

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