You've already forked Epicnabbo-Catalogus-Updated-Daily
🆙 More fixes 🆙
This commit is contained in:
@@ -56,6 +56,9 @@ class ArticleResource extends Resource
|
|||||||
->components(static::getForm());
|
->components(static::getForm());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return array<\Illuminate\Contracts\Support\Htmlable|string>
|
||||||
|
*/
|
||||||
public static function getForm(): array
|
public static function getForm(): array
|
||||||
{
|
{
|
||||||
return [
|
return [
|
||||||
@@ -158,6 +161,9 @@ class ArticleResource extends Resource
|
|||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return array<\Filament\Tables\Columns\Column|\Filament\Tables\Columns\ColumnGroup|\Filament\Tables\Columns\Layout\Component>
|
||||||
|
*/
|
||||||
public static function getTable(): array
|
public static function getTable(): array
|
||||||
{
|
{
|
||||||
return [
|
return [
|
||||||
|
|||||||
@@ -0,0 +1,55 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Filament\Resources\Atom;
|
||||||
|
|
||||||
|
use App\Filament\Resources\Atom\HelpQuestionCategoryResource\Pages\CreateHelpQuestionCategory;
|
||||||
|
use App\Filament\Resources\Atom\HelpQuestionCategoryResource\Pages\EditHelpQuestionCategory;
|
||||||
|
use App\Filament\Resources\Atom\HelpQuestionCategoryResource\Pages\ListHelpQuestionCategories;
|
||||||
|
use App\Filament\Resources\Atom\HelpQuestionCategoryResource\Pages\ViewHelpQuestionCategory;
|
||||||
|
use Filament\Resources\Resource;
|
||||||
|
use Filament\Schemas\Schema;
|
||||||
|
use Filament\Tables\Table;
|
||||||
|
|
||||||
|
class HelpQuestionCategoryResource extends Resource
|
||||||
|
{
|
||||||
|
protected static ?string $model = \App\Models\User::class;
|
||||||
|
|
||||||
|
protected static bool $shouldRegisterNavigation = false;
|
||||||
|
|
||||||
|
public static function form(Schema $schema): Schema
|
||||||
|
{
|
||||||
|
return $schema->components(static::getForm());
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return array<\Illuminate\Contracts\Support\Htmlable|string>
|
||||||
|
*/
|
||||||
|
public static function getForm(): array
|
||||||
|
{
|
||||||
|
return [];
|
||||||
|
}
|
||||||
|
|
||||||
|
public static function table(Table $table): Table
|
||||||
|
{
|
||||||
|
return $table->columns(static::getTable());
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return array<\Filament\Tables\Columns\Column|\Filament\Tables\Columns\ColumnGroup|\Filament\Tables\Columns\Layout\Component>
|
||||||
|
*/
|
||||||
|
public static function getTable(): array
|
||||||
|
{
|
||||||
|
return [];
|
||||||
|
}
|
||||||
|
|
||||||
|
public static function getPages(): array
|
||||||
|
{
|
||||||
|
return [
|
||||||
|
'index' => ListHelpQuestionCategories::route('/'),
|
||||||
|
'create' => CreateHelpQuestionCategory::route('/create'),
|
||||||
|
'view' => ViewHelpQuestionCategory::route('/{record}'),
|
||||||
|
'edit' => EditHelpQuestionCategory::route('/{record}/edit'),
|
||||||
|
];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
+2
-1
@@ -10,6 +10,7 @@ use Filament\Actions\DetachBulkAction;
|
|||||||
use Filament\Resources\RelationManagers\RelationManager;
|
use Filament\Resources\RelationManagers\RelationManager;
|
||||||
use Filament\Schemas\Schema;
|
use Filament\Schemas\Schema;
|
||||||
use Filament\Tables\Table;
|
use Filament\Tables\Table;
|
||||||
|
use Illuminate\Database\Eloquent\Builder;
|
||||||
|
|
||||||
class QuestionsRelationManager extends RelationManager
|
class QuestionsRelationManager extends RelationManager
|
||||||
{
|
{
|
||||||
@@ -31,7 +32,7 @@ class QuestionsRelationManager extends RelationManager
|
|||||||
public function table(Table $table): Table
|
public function table(Table $table): Table
|
||||||
{
|
{
|
||||||
return $table->columns(HelpQuestionResource::getTable())
|
return $table->columns(HelpQuestionResource::getTable())
|
||||||
->modifyQueryUsing(fn ($query) => $query->latest())
|
->modifyQueryUsing(fn (Builder $query) => $query->latest())
|
||||||
->filters([
|
->filters([
|
||||||
//
|
//
|
||||||
])
|
])
|
||||||
|
|||||||
@@ -0,0 +1,55 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Filament\Resources\Atom;
|
||||||
|
|
||||||
|
use App\Filament\Resources\Atom\HelpQuestionResource\Pages\CreateHelpQuestion;
|
||||||
|
use App\Filament\Resources\Atom\HelpQuestionResource\Pages\EditHelpQuestion;
|
||||||
|
use App\Filament\Resources\Atom\HelpQuestionResource\Pages\ListHelpQuestions;
|
||||||
|
use App\Filament\Resources\Atom\HelpQuestionResource\Pages\ViewHelpQuestion;
|
||||||
|
use Filament\Resources\Resource;
|
||||||
|
use Filament\Schemas\Schema;
|
||||||
|
use Filament\Tables\Table;
|
||||||
|
|
||||||
|
class HelpQuestionResource extends Resource
|
||||||
|
{
|
||||||
|
protected static ?string $model = \App\Models\User::class;
|
||||||
|
|
||||||
|
protected static bool $shouldRegisterNavigation = false;
|
||||||
|
|
||||||
|
public static function form(Schema $schema): Schema
|
||||||
|
{
|
||||||
|
return $schema->components(static::getForm());
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return array<\Illuminate\Contracts\Support\Htmlable|string>
|
||||||
|
*/
|
||||||
|
public static function getForm(bool $fromRelation = false): array
|
||||||
|
{
|
||||||
|
return [];
|
||||||
|
}
|
||||||
|
|
||||||
|
public static function table(Table $table): Table
|
||||||
|
{
|
||||||
|
return $table->columns(static::getTable());
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return array<\Filament\Tables\Columns\Column|\Filament\Tables\Columns\ColumnGroup|\Filament\Tables\Columns\Layout\Component>
|
||||||
|
*/
|
||||||
|
public static function getTable(): array
|
||||||
|
{
|
||||||
|
return [];
|
||||||
|
}
|
||||||
|
|
||||||
|
public static function getPages(): array
|
||||||
|
{
|
||||||
|
return [
|
||||||
|
'index' => ListHelpQuestions::route('/'),
|
||||||
|
'create' => CreateHelpQuestion::route('/create'),
|
||||||
|
'view' => ViewHelpQuestion::route('/{record}'),
|
||||||
|
'edit' => EditHelpQuestion::route('/{record}/edit'),
|
||||||
|
];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
+2
-1
@@ -12,6 +12,7 @@ use Filament\Actions\EditAction;
|
|||||||
use Filament\Resources\RelationManagers\RelationManager;
|
use Filament\Resources\RelationManagers\RelationManager;
|
||||||
use Filament\Schemas\Schema;
|
use Filament\Schemas\Schema;
|
||||||
use Filament\Tables\Table;
|
use Filament\Tables\Table;
|
||||||
|
use Illuminate\Database\Eloquent\Builder;
|
||||||
|
|
||||||
class CategoriesRelationManager extends RelationManager
|
class CategoriesRelationManager extends RelationManager
|
||||||
{
|
{
|
||||||
@@ -33,7 +34,7 @@ class CategoriesRelationManager extends RelationManager
|
|||||||
public function table(Table $table): Table
|
public function table(Table $table): Table
|
||||||
{
|
{
|
||||||
return $table->columns(HelpQuestionCategoryResource::getTable())
|
return $table->columns(HelpQuestionCategoryResource::getTable())
|
||||||
->modifyQueryUsing(fn ($query) => $query->latest('id'))
|
->modifyQueryUsing(fn (Builder $query) => $query->latest('id'))
|
||||||
->filters([
|
->filters([
|
||||||
//
|
//
|
||||||
])
|
])
|
||||||
|
|||||||
+3
@@ -81,6 +81,9 @@ class HousekeepingPermissionResource extends Resource
|
|||||||
->searchable()
|
->searchable()
|
||||||
->tooltip(function (TextColumn $column): ?string {
|
->tooltip(function (TextColumn $column): ?string {
|
||||||
$state = $column->getState();
|
$state = $column->getState();
|
||||||
|
if (! is_string($state)) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
if (strlen($state) <= $column->getCharacterLimit()) {
|
if (strlen($state) <= $column->getCharacterLimit()) {
|
||||||
return null;
|
return null;
|
||||||
|
|||||||
@@ -0,0 +1,25 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Filament\Resources\Atom;
|
||||||
|
|
||||||
|
use App\Filament\Resources\Atom\NavigationResource\Pages\CreateNavigation;
|
||||||
|
use App\Filament\Resources\Atom\NavigationResource\Pages\EditNavigation;
|
||||||
|
use App\Filament\Resources\Atom\NavigationResource\Pages\ListNavigations;
|
||||||
|
use Filament\Resources\Resource;
|
||||||
|
|
||||||
|
class NavigationResource extends Resource
|
||||||
|
{
|
||||||
|
protected static ?string $model = \App\Models\User::class;
|
||||||
|
|
||||||
|
protected static bool $shouldRegisterNavigation = false;
|
||||||
|
|
||||||
|
public static function getPages(): array
|
||||||
|
{
|
||||||
|
return [
|
||||||
|
'index' => ListNavigations::route('/'),
|
||||||
|
'create' => CreateNavigation::route('/create'),
|
||||||
|
'edit' => EditNavigation::route('/{record}/edit'),
|
||||||
|
];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@@ -121,21 +121,28 @@ class PermissionResource extends Resource
|
|||||||
->schema(function () use ($groupedToggleButton) {
|
->schema(function () use ($groupedToggleButton) {
|
||||||
$columns = Schema::getColumns('permissions');
|
$columns = Schema::getColumns('permissions');
|
||||||
|
|
||||||
$arcturusPermissions = collect($columns)->filter(function (array $column) {
|
$arcturusPermissions = collect($columns)->filter(function ($value, $key): bool {
|
||||||
$columnName = $column['name'] ?? null;
|
if (! is_array($value)) {
|
||||||
|
return false;
|
||||||
if (! $columnName) {
|
}
|
||||||
|
$columnName = $value['name'] ?? null;
|
||||||
|
if (! is_string($columnName)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
return str_starts_with($columnName, 'cmd')
|
return str_starts_with($columnName, 'cmd')
|
||||||
|| str_starts_with($columnName, 'acc')
|
|| str_starts_with($columnName, 'acc')
|
||||||
|| str_ends_with($columnName, 'cmd');
|
|| str_ends_with($columnName, 'cmd');
|
||||||
})->values();
|
})->values();
|
||||||
|
|
||||||
return $arcturusPermissions->map(function (array $column) use ($groupedToggleButton) {
|
return $arcturusPermissions->map(function ($value, $idx) use ($groupedToggleButton) {
|
||||||
$columnName = (string) $column['name'];
|
if (! is_array($value)) {
|
||||||
$needsSecondOption = $column['type_name'] == 'enum' && str_ends_with((string) $column['type'], "'2')");
|
return $groupedToggleButton('', false);
|
||||||
|
}
|
||||||
|
$name = $value['name'] ?? '';
|
||||||
|
$typeName = $value['type_name'] ?? '';
|
||||||
|
$type = $value['type'] ?? '';
|
||||||
|
$columnName = is_string($name) ? $name : '';
|
||||||
|
$needsSecondOption = $typeName === 'enum' && is_string($type) && str_ends_with($type, "'2')");
|
||||||
|
|
||||||
return $groupedToggleButton($columnName, $needsSecondOption);
|
return $groupedToggleButton($columnName, $needsSecondOption);
|
||||||
})->toArray();
|
})->toArray();
|
||||||
|
|||||||
@@ -44,7 +44,7 @@ class TagResource extends Resource
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return array<mixed>
|
* @return array<\Illuminate\Contracts\Support\Htmlable|string>
|
||||||
*/
|
*/
|
||||||
public static function getForm(): array
|
public static function getForm(): array
|
||||||
{
|
{
|
||||||
@@ -89,7 +89,7 @@ class TagResource extends Resource
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return array<mixed>
|
* @return array<\Filament\Tables\Columns\Column|\Filament\Tables\Columns\ColumnGroup|\Filament\Tables\Columns\Layout\Component>
|
||||||
*/
|
*/
|
||||||
public static function getTable(): array
|
public static function getTable(): array
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -82,7 +82,7 @@ class TeamResource extends Resource
|
|||||||
|
|
||||||
IconColumn::make('hidden_rank')
|
IconColumn::make('hidden_rank')
|
||||||
->label(__('filament::resources.columns.is_hidden'))
|
->label(__('filament::resources.columns.is_hidden'))
|
||||||
->icon(fn (Model $record) => $record->hidden_rank ? 'heroicon-o-check-circle' : 'heroicon-o-x-circle')
|
->icon(fn (\App\Models\Community\Staff\WebsiteTeam $record) => $record->hidden_rank ? 'heroicon-o-check-circle' : 'heroicon-o-x-circle')
|
||||||
->colors([
|
->colors([
|
||||||
'danger' => false,
|
'danger' => false,
|
||||||
'success' => true,
|
'success' => true,
|
||||||
|
|||||||
@@ -106,3 +106,5 @@
|
|||||||
[2026-01-20 18:12:28] production.ERROR: RCON connection failed: Kan geen verbinding maken omdat de doelcomputer de verbinding actief heeft geweigerd
|
[2026-01-20 18:12:28] production.ERROR: RCON connection failed: Kan geen verbinding maken omdat de doelcomputer de verbinding actief heeft geweigerd
|
||||||
[2026-01-20 18:37:40] production.ERROR: RCON connection failed: Kan geen verbinding maken omdat de doelcomputer de verbinding actief heeft geweigerd
|
[2026-01-20 18:37:40] production.ERROR: RCON connection failed: Kan geen verbinding maken omdat de doelcomputer de verbinding actief heeft geweigerd
|
||||||
[2026-01-20 18:37:41] production.ERROR: RCON connection failed: Kan geen verbinding maken omdat de doelcomputer de verbinding actief heeft geweigerd
|
[2026-01-20 18:37:41] production.ERROR: RCON connection failed: Kan geen verbinding maken omdat de doelcomputer de verbinding actief heeft geweigerd
|
||||||
|
[2026-01-20 18:50:49] production.ERROR: RCON connection failed: Kan geen verbinding maken omdat de doelcomputer de verbinding actief heeft geweigerd
|
||||||
|
[2026-01-20 18:54:15] production.ERROR: RCON connection failed: Kan geen verbinding maken omdat de doelcomputer de verbinding actief heeft geweigerd
|
||||||
|
|||||||
Reference in New Issue
Block a user