Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
mokhosh committed Nov 29, 2023
1 parent 296c89b commit 1dacbd5
Showing 1 changed file with 1 addition and 34 deletions.
35 changes: 1 addition & 34 deletions src/FilamentKanbanServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,9 @@

namespace Mokhosh\FilamentKanban;

use Filament\Support\Assets\AlpineComponent;
use Filament\Support\Assets\Asset;
use Filament\Support\Assets\Css;
use Filament\Support\Assets\Js;
use Filament\Support\Facades\FilamentAsset;
use Filament\Support\Facades\FilamentIcon;
use Illuminate\Filesystem\Filesystem;
use Livewire\Features\SupportTesting\Testable;
use Mokhosh\FilamentKanban\Commands\MakeKanbanBoardCommand;
Expand All @@ -29,8 +26,6 @@ public function configurePackage(Package $package): void
->hasInstallCommand(function (InstallCommand $command) {
$command
->publishConfigFile()
->publishMigrations()
->askToRunMigrations()
->askToStarRepoOnGitHub('mokhosh/filament-kanban');
});

Expand All @@ -45,10 +40,6 @@ public function configurePackage(Package $package): void
}
}

public function packageRegistered(): void
{
}

public function packageBooted(): void
{
// Asset Registration
Expand All @@ -57,14 +48,6 @@ public function packageBooted(): void
$this->getAssetPackageName()
);

FilamentAsset::registerScriptData(
$this->getScriptData(),
$this->getAssetPackageName()
);

// Icon Registration
FilamentIcon::register($this->getIcons());

// Handle Stubs
if (app()->runningInConsole()) {
foreach (app(Filesystem::class)->files(__DIR__ . '/../stubs/') as $file) {
Expand All @@ -90,8 +73,8 @@ protected function getAssets(): array
{
return [
// AlpineComponent::make('filament-kanban', __DIR__ . '/../resources/dist/components/filament-kanban.js'),
// Js::make('filament-kanban-scripts', __DIR__ . '/../resources/dist/filament-kanban.js'),
Css::make('filament-kanban-styles', __DIR__ . '/../resources/dist/filament-kanban.css'),
Js::make('filament-kanban-scripts', __DIR__ . '/../resources/dist/filament-kanban.js'),
];
}

Expand All @@ -104,20 +87,4 @@ protected function getCommands(): array
MakeKanbanBoardCommand::class,
];
}

/**
* @return array<string>
*/
protected function getIcons(): array
{
return [];
}

/**
* @return array<string, mixed>
*/
protected function getScriptData(): array
{
return [];
}
}

0 comments on commit 1dacbd5

Please sign in to comment.