feat: Import ErrorMonitoring module from old CRM
- Add complete ErrorMonitoring module with controllers, models, services - Include error dashboard, error detail views, and error import functionality - Add error monitoring API endpoints and error collection services - Fix missing error monitoring system for critical error tracking
This commit is contained in:
1 parent
2cab67b1ab
commit
968e7b3451
15 files changed
+3645
No files matched your search
@@ -0,0 +1,88 @@
|
||||
<?php
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\Modules\ErrorMonitoring;
|
||||
|
||||
/**
|
||||
* Error Monitoring Module
|
||||
* Sistema moderno de monitorização de erros equivalente ao FBI
|
||||
*/
|
||||
class Module
|
||||
{
|
||||
public function getName(): string
|
||||
{
|
||||
return 'ErrorMonitoring';
|
||||
}
|
||||
|
||||
public function getDisplayName(): string
|
||||
{
|
||||
return 'Error Monitoring';
|
||||
}
|
||||
|
||||
public function getDescription(): string
|
||||
{
|
||||
return 'Sistema moderno de monitorização e análise de erros com dashboard centralizado, importação de dados externos e alertas automáticos. Equivalente moderno ao sistema FBI.';
|
||||
}
|
||||
|
||||
public function getVersion(): string
|
||||
{
|
||||
return '1.0.0';
|
||||
}
|
||||
|
||||
public function getDependencies(): array
|
||||
{
|
||||
return ['Core'];
|
||||
}
|
||||
|
||||
public function isEnabled(): bool
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
public function install(): bool
|
||||
{
|
||||
// Installation is handled by migrations
|
||||
return true;
|
||||
}
|
||||
|
||||
public function uninstall(): bool
|
||||
{
|
||||
// Uninstallation is handled by migration rollbacks
|
||||
return true;
|
||||
}
|
||||
|
||||
public function getRoutes(): array
|
||||
{
|
||||
return include __DIR__ . '/Routes/web.php';
|
||||
}
|
||||
|
||||
public function getMenu(): array
|
||||
{
|
||||
return include __DIR__ . '/menu.php';
|
||||
}
|
||||
|
||||
public function getAssets(): array
|
||||
{
|
||||
return [
|
||||
'css' => [],
|
||||
'js' => []
|
||||
];
|
||||
}
|
||||
|
||||
public function getServices(): array
|
||||
{
|
||||
return [
|
||||
'ErrorCollector' => \App\Modules\ErrorMonitoring\Services\ErrorCollector::class,
|
||||
'ErrorImporter' => \App\Modules\ErrorMonitoring\Services\ErrorImporter::class,
|
||||
];
|
||||
}
|
||||
|
||||
public function boot(): void
|
||||
{
|
||||
// Module initialization code
|
||||
// Register error handlers, etc.
|
||||
|
||||
// Register view namespace
|
||||
\App\Core\View::addNamespace('errormonitoring', __DIR__ . '/Views');
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user