Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
danilopolani committed Mar 17, 2024
1 parent c075e04 commit 076fe52
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 100 deletions.
43 changes: 0 additions & 43 deletions src/Actions/Widgets/GetTopTriggers.php

This file was deleted.

22 changes: 0 additions & 22 deletions src/MailCarrierServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,35 +19,13 @@
use MailCarrier\Observers\LogObserver;
use MailCarrier\Observers\TemplateObserver;
use MailCarrier\Providers\Filament\MailCarrierPanelProvider;
use MailCarrier\Resources\LayoutResource;
use MailCarrier\Resources\LogResource;
use MailCarrier\Resources\TemplateResource;
use MailCarrier\Widgets\SentFailureChartWidget;
use MailCarrier\Widgets\StatsOverviewWidget;
use MailCarrier\Widgets\TopTriggersWidget;
use Spatie\LaravelPackageTools\Package;
use Spatie\LaravelPackageTools\PackageServiceProvider;

class MailCarrierServiceProvider extends PackageServiceProvider
{
public static string $name = 'mailcarrier';

protected array $scripts = [
'mailcarrier' => __DIR__ . '/../dist/js/monaco.js',
];

protected array $resources = [
LayoutResource::class,
TemplateResource::class,
LogResource::class,
];

protected array $widgets = [
StatsOverviewWidget::class,
SentFailureChartWidget::class,
TopTriggersWidget::class,
];

/**
* The package has been configured.
*/
Expand Down
2 changes: 0 additions & 2 deletions src/Observers/LogObserver.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

use MailCarrier\Actions\Widgets\GetSentFailureStats;
use MailCarrier\Actions\Widgets\GetStatsOverview;
use MailCarrier\Actions\Widgets\GetTopTriggers;

class LogObserver
{
Expand Down Expand Up @@ -39,6 +38,5 @@ protected function flushCache(): void
{
GetSentFailureStats::flush();
GetStatsOverview::flush();
GetTopTriggers::flush();
}
}
3 changes: 0 additions & 3 deletions src/Providers/Filament/MailCarrierPanelProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,19 +40,16 @@ public function panel(Panel $panel): Panel
'primary' => Color::Indigo,
])
->collapsibleNavigationGroups(false)
->discoverResources(in: '../../Resources', for: 'MailCarrier\\Resources')
->resources([
Resources\LogResource::class,
Resources\LayoutResource::class,
Resources\TemplateResource::class,
Resources\ApiTokenResource::class,
Resources\UserResource::class,
])
->discoverPages(in: app_path('Filament/Pages'), for: 'MailCarrier\\Pages')
->pages([
Pages\Dashboard::class,
])
->discoverWidgets(in: '../../Widgets', for: 'MailCarrier\\Widgets')
->widgets([
StatsOverviewWidget::class,
SentFailureChartWidget::class,
Expand Down
30 changes: 0 additions & 30 deletions src/Widgets/TopTriggersWidget.php

This file was deleted.

0 comments on commit 076fe52

Please sign in to comment.