6bbfe6bb8f
Signed-off-by: Sebastian Krupinski <krupinski01@gmail.com>
61 lines
1.3 KiB
PHP
61 lines
1.3 KiB
PHP
<?php
|
|
|
|
namespace KTXM\Demo;
|
|
|
|
use KTXF\Module\Configuration\BrowserModuleContextInterface;
|
|
use KTXF\Module\Configuration\ModuleContextInterface;
|
|
use KTXF\Module\ModuleInstanceAbstract;
|
|
|
|
/**
|
|
* Samples Module
|
|
*/
|
|
class Module extends ModuleInstanceAbstract
|
|
{
|
|
|
|
public function __construct()
|
|
{ }
|
|
|
|
public function handle(): string
|
|
{
|
|
return 'demo';
|
|
}
|
|
|
|
public function label(): string
|
|
{
|
|
return 'UI Demo';
|
|
}
|
|
|
|
public function author(): string
|
|
{
|
|
return 'Ktrix';
|
|
}
|
|
|
|
public function description(): string
|
|
{
|
|
return 'UI samples and examples module for Ktrix - provides color palettes, typography, shadows, and icon showcases';
|
|
}
|
|
|
|
public function version(): string
|
|
{
|
|
return '0.0.1';
|
|
}
|
|
|
|
public function permissions(): array
|
|
{
|
|
return [
|
|
'demo' => [
|
|
'label' => 'Access UI Demo',
|
|
'description' => 'View and access the UI demo module',
|
|
'group' => 'Development'
|
|
],
|
|
];
|
|
}
|
|
|
|
public function configure(ModuleContextInterface $context): void
|
|
{
|
|
if ($context instanceof BrowserModuleContextInterface) {
|
|
$context->registerModule($this, 'Demo', 'static/module.mjs');
|
|
}
|
|
}
|
|
}
|