Initial commit

This commit is contained in:
root
2025-12-21 09:58:23 -05:00
committed by Sebastian Krupinski
commit 9db14ce44b
20 changed files with 2710 additions and 0 deletions

65
lib/Module.php Normal file
View File

@@ -0,0 +1,65 @@
<?php
namespace KTXM\Dashboard;
use KTXF\Module\ModuleBrowserInterface;
use KTXF\Module\ModuleInstanceAbstract;
/**
* Dashboard Module
*/
class Module extends ModuleInstanceAbstract implements ModuleBrowserInterface
{
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 registerBI(): array {
return [
'handle' => $this->handle(),
'namespace' => 'Dashboard',
'version' => $this->version(),
'label' => $this->label(),
'author' => $this->author(),
'description' => $this->description(),
'boot' => 'static/module.mjs',
];
}
}