mirror of
https://github.com/openclassify/openclassify.git
synced 2026-04-14 11:12:09 -05:00
- Created UserResource for managing users with form and table configurations. - Implemented pages for creating, editing, listing users, and viewing user activities. - Added UserPlugin for resource registration in Filament admin panel. - Introduced CSS styles for panel quick creation and listing filters. - Developed JavaScript modules for handling listing filters and home slider functionality.
36 lines
830 B
PHP
36 lines
830 B
PHP
<?php
|
|
|
|
namespace Modules\Video;
|
|
|
|
use Filament\Contracts\Plugin;
|
|
use Filament\Panel;
|
|
use Filament\View\PanelsRenderHook;
|
|
|
|
final class VideoPlugin implements Plugin
|
|
{
|
|
public function getId(): string
|
|
{
|
|
return 'video';
|
|
}
|
|
|
|
public static function make(): static
|
|
{
|
|
return app(static::class);
|
|
}
|
|
|
|
public function register(Panel $panel): void
|
|
{
|
|
$panel
|
|
->discoverResources(
|
|
in: module_path('Video', 'Filament/Admin/Resources'),
|
|
for: 'Modules\\Video\\Filament\\Admin\\Resources',
|
|
)
|
|
->renderHook(
|
|
PanelsRenderHook::BODY_END,
|
|
fn (): \Illuminate\Contracts\View\View => view('video::partials.video-upload-optimizer'),
|
|
);
|
|
}
|
|
|
|
public function boot(Panel $panel): void {}
|
|
}
|