6e95e6e216
Signed-off-by: Sebastian Krupinski <krupinski01@gmail.com>
62 lines
1.3 KiB
PHP
62 lines
1.3 KiB
PHP
<?php
|
|
|
|
namespace KTXM\Dashboard;
|
|
|
|
use KTXF\Module\Configuration\BrowserModuleContextInterface;
|
|
use KTXF\Module\Configuration\ModuleContextInterface;
|
|
use KTXF\Module\ModuleInstanceAbstract;
|
|
|
|
/**
|
|
* Dashboard Module
|
|
*/
|
|
class Module extends ModuleInstanceAbstract
|
|
{
|
|
|
|
public function __construct()
|
|
{ }
|
|
|
|
public function handle(): string
|
|
{
|
|
return 'dashboard';
|
|
}
|
|
|
|
public function label(): string
|
|
{
|
|
return 'Dashboard';
|
|
}
|
|
|
|
public function author(): string
|
|
{
|
|
return 'Ktrix';
|
|
}
|
|
|
|
public function description(): string
|
|
{
|
|
return 'User dashboard module for Ktrix - provides widgets, user management, and system overview';
|
|
}
|
|
|
|
public function version(): string
|
|
{
|
|
return '1.0.0';
|
|
}
|
|
|
|
public function permissions(): array
|
|
{
|
|
return [
|
|
'dashboard' => [
|
|
'label' => 'Access Dashboard',
|
|
'description' => 'View and access the dashboard module',
|
|
'group' => 'Dashboard'
|
|
],
|
|
];
|
|
}
|
|
|
|
public function configure(ModuleContextInterface $context): void
|
|
{
|
|
if ($context instanceof BrowserModuleContextInterface) {
|
|
$context->registerModule($this, 'Dashboard', 'static/module.mjs');
|
|
}
|
|
}
|
|
|
|
}
|