From 0cd564610a2729e8d97a8d2e3c29ca9901158752 Mon Sep 17 00:00:00 2001 From: RMartinOscar <40749467+RMartinOscar@users.noreply.github.com> Date: Mon, 6 Jan 2025 02:28:23 +0000 Subject: [PATCH] Add back denylist --- app/Filament/Admin/Resources/EggResource/Pages/CreateEgg.php | 4 ++++ app/Filament/Admin/Resources/EggResource/Pages/EditEgg.php | 3 +-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/app/Filament/Admin/Resources/EggResource/Pages/CreateEgg.php b/app/Filament/Admin/Resources/EggResource/Pages/CreateEgg.php index cba306d558..8b6a087991 100644 --- a/app/Filament/Admin/Resources/EggResource/Pages/CreateEgg.php +++ b/app/Filament/Admin/Resources/EggResource/Pages/CreateEgg.php @@ -71,6 +71,10 @@ public function form(Form $form): Form 'java -Xms128M -XX:MaxRAMPercentage=95.0 -jar {{SERVER_JARFILE}}', ])) ->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') ->placeholder('Add Feature') ->helperText('') diff --git a/app/Filament/Admin/Resources/EggResource/Pages/EditEgg.php b/app/Filament/Admin/Resources/EggResource/Pages/EditEgg.php index d1f064b5c8..bd833fa1e1 100644 --- a/app/Filament/Admin/Resources/EggResource/Pages/EditEgg.php +++ b/app/Filament/Admin/Resources/EggResource/Pages/EditEgg.php @@ -63,12 +63,11 @@ public function form(Form $form): Form ->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.'), Textarea::make('startup') - ->rows(2) + ->rows(3) ->columnSpanFull() ->required() ->helperText('The default startup command that should be used for new servers using this Egg.'), TagsInput::make('file_denylist') - ->hidden() // latest wings breaks it. ->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]),