Skip to content

Commit

Permalink
Added groups and Pint Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Poseidon281 committed Jun 11, 2024
1 parent 5cdef59 commit 5338d7c
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 5 deletions.
8 changes: 8 additions & 0 deletions app/Filament/Resources/SettingResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
use Filament\Resources\Resource;
use Filament\Tables;
use Filament\Tables\Table;
use Filament\Tables\Grouping\Group;
use Filament\Forms\Components\TextInput;
use Filament\Forms\Components\Select;
use Schmeits\FilamentCharacterCounter\Forms\Components\TextInput as LimitInput;
Expand All @@ -28,6 +29,13 @@ public static function table(Table $table): Table
{
return $table
->paginated(false)
->groups([
Group::make('group')

->collapsible(),
])
->groupingSettingsHidden()
->defaultGroup('Basic')
->columns([
Tables\Columns\TextColumn::make('label')
->label('Setting')
Expand Down
6 changes: 3 additions & 3 deletions app/Models/Setting.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ class Setting extends Model

public $incrementing = false;

protected $fillable = ['key', 'label', 'value', 'type', 'attributes', 'description', 'limit'];
protected $fillable = ['key', 'label', 'value', 'type', 'attributes', 'description', 'limit', 'group'];

protected $casts = [
'attributes' => 'array',
'limit' => 'integer',
'attributes' => 'array',
'limit' => 'integer',
];
}
4 changes: 4 additions & 0 deletions database/migrations/2024_05_19_154057_recreate_settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ public function up(): void
$table->string('key')->primary();
$table->string('label');
$table->text('value')->nullable();
$table->text('group');
$table->json('attributes')->nullable();
$table->string('type');
$table->longText('description')->nullable();
Expand All @@ -29,6 +30,7 @@ public function up(): void
'key' => 'APP_NAME',
'label' => 'Panel Name',
'value' => 'Pelican',
'group' => 'Basic',
'type' => 'limit',
'limit' => 18,
'description' => 'This is the name that is used throughout the panel and in emails sent to clients.',
Expand All @@ -37,6 +39,7 @@ public function up(): void
Setting::create([
'key' => 'FILAMENT_TOP_NAVIGATION',
'label' => 'Topbar or Sidebar',
'group' => 'Panel',
'value' => 'false',
'type' => 'select',
'description' => 'Setting this to true switches the sidebar to a topbar and vice versa',
Expand All @@ -51,6 +54,7 @@ public function up(): void
Setting::create([
'key' => 'FILAMENT_EXIT_ADMIN',
'label' => 'Exit Admin',
'group' => 'Panel',
'value' => 'false',
'type' => 'select',
'description' => 'Setting this to true switches the Exit Admin button from the side/topbar to the profile-menu',
Expand Down
3 changes: 1 addition & 2 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,9 @@

# Pelican Panel

![Total Downloads](https://img.shields.io/github/downloads/pelican-dev/panel/total?style=flat&label=Total%20Downloads&labelColor=rgba(0%2C%2070%2C%20114%2C%201)&color=rgba(255%2C%20255%2C%20255%2C%201))
![Total Downloads](https://img.shields.io/github/downloads/pelican-dev/panel/total?style=flat&label=Total%20Downloads&labelColor=rgba(0%2C%2070%2C%20114%2C%201)&color=rgba(255%2C%20255%2C%20255%2C%201))
![Latest Release](https://img.shields.io/github/v/release/pelican-dev/panel?style=flat&label=Latest%20Release&labelColor=rgba(0%2C%2070%2C%20114%2C%201)&color=rgba(255%2C%20255%2C%20255%2C%201))


Pelican Panel is an open-source, web-based application designed for easy management of game servers.
It offers a user-friendly interface for deploying, configuring, and managing servers, with features like real-time resource monitoring, Docker container isolation, and extensive customization options.
Ideal for both individual gamers and hosting companies, it simplifies server administration without requiring deep technical knowledge.
Expand Down

0 comments on commit 5338d7c

Please sign in to comment.