Add back denylist (#872)

This commit is contained in:
MartinOscar 2025-01-06 16:54:19 +01:00 committed by GitHub
parent 448fe41e78
commit 8926f9712f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 2 deletions

View File

@ -71,6 +71,10 @@ class CreateEgg extends CreateRecord
'java -Xms128M -XX:MaxRAMPercentage=95.0 -jar {{SERVER_JARFILE}}', 'java -Xms128M -XX:MaxRAMPercentage=95.0 -jar {{SERVER_JARFILE}}',
])) ]))
->helperText('The default startup command that should be used for new servers using this Egg.'), ->helperText('The default startup command that should be used for new servers using this Egg.'),
TagsInput::make('file_denylist')
->placeholder('denied-file.txt')
->helperText('A list of files that the end user is not allowed to edit.')
->columnSpan(['default' => 1, 'sm' => 1, 'md' => 2, 'lg' => 2]),
TagsInput::make('features') TagsInput::make('features')
->placeholder('Add Feature') ->placeholder('Add Feature')
->helperText('') ->helperText('')

View File

@ -63,12 +63,11 @@ class EditEgg extends EditRecord
->columnSpan(['default' => 1, 'sm' => 1, 'md' => 2, 'lg' => 2]) ->columnSpan(['default' => 1, 'sm' => 1, 'md' => 2, 'lg' => 2])
->helperText('The author of this version of the Egg. Uploading a new Egg configuration from a different author will change this.'), ->helperText('The author of this version of the Egg. Uploading a new Egg configuration from a different author will change this.'),
Textarea::make('startup') Textarea::make('startup')
->rows(2) ->rows(3)
->columnSpanFull() ->columnSpanFull()
->required() ->required()
->helperText('The default startup command that should be used for new servers using this Egg.'), ->helperText('The default startup command that should be used for new servers using this Egg.'),
TagsInput::make('file_denylist') TagsInput::make('file_denylist')
->hidden() // latest wings breaks it.
->placeholder('denied-file.txt') ->placeholder('denied-file.txt')
->helperText('A list of files that the end user is not allowed to edit.') ->helperText('A list of files that the end user is not allowed to edit.')
->columnSpan(['default' => 1, 'sm' => 1, 'md' => 2, 'lg' => 2]), ->columnSpan(['default' => 1, 'sm' => 1, 'md' => 2, 'lg' => 2]),