|
2 | 2 |
|
3 | 3 | namespace CodeWithDennis\FilamentPriceFilter; |
4 | 4 |
|
5 | | -use CodeWithDennis\FilamentPriceFilter\Commands\FilamentPriceFilterCommand; |
6 | | -use CodeWithDennis\FilamentPriceFilter\Testing\TestsFilamentPriceFilter; |
7 | | -use Filament\Support\Assets\AlpineComponent; |
8 | | -use Filament\Support\Assets\Asset; |
9 | | -use Filament\Support\Assets\Css; |
10 | | -use Filament\Support\Facades\FilamentAsset; |
11 | | -use Filament\Support\Facades\FilamentIcon; |
12 | | -use Livewire\Features\SupportTesting\Testable; |
13 | 5 | use Spatie\LaravelPackageTools\Commands\InstallCommand; |
14 | 6 | use Spatie\LaravelPackageTools\Package; |
15 | 7 | use Spatie\LaravelPackageTools\PackageServiceProvider; |
@@ -39,79 +31,40 @@ public function configurePackage(Package $package): void |
39 | 31 | if (file_exists($package->basePath('/../resources/lang'))) { |
40 | 32 | $package->hasTranslations(); |
41 | 33 | } |
42 | | - |
43 | | - if (file_exists($package->basePath('/../resources/views'))) { |
44 | | - $package->hasViews(); |
45 | | - } |
46 | 34 | } |
47 | 35 |
|
48 | 36 | public function packageRegistered(): void {} |
49 | 37 |
|
50 | 38 | public function packageBooted(): void |
51 | 39 | { |
52 | | - // Asset Registration |
53 | | - FilamentAsset::register( |
54 | | - $this->getAssets(), |
55 | | - $this->getAssetPackageName() |
56 | | - ); |
57 | | - |
58 | | - FilamentAsset::registerScriptData( |
59 | | - $this->getScriptData(), |
60 | | - $this->getAssetPackageName() |
61 | | - ); |
62 | | - |
63 | | - // Icon Registration |
64 | | - FilamentIcon::register($this->getIcons()); |
65 | | - |
66 | | - // Testing |
67 | | - Testable::mixin(new TestsFilamentPriceFilter); |
| 40 | + // |
68 | 41 | } |
69 | 42 |
|
70 | 43 | protected function getAssetPackageName(): ?string |
71 | 44 | { |
72 | 45 | return 'codewithdennis/filament-price-filter'; |
73 | 46 | } |
74 | 47 |
|
75 | | - /** |
76 | | - * @return array<Asset> |
77 | | - */ |
78 | 48 | protected function getAssets(): array |
79 | 49 | { |
80 | | - return [ |
81 | | - AlpineComponent::make('filament-price-filter', __DIR__ . '/../resources/dist/filament-price-filter.js'), |
82 | | - Css::make('filament-price-filter', __DIR__ . '/../resources/dist/filament-price-filter.css'), |
83 | | - ]; |
| 50 | + return []; |
84 | 51 | } |
85 | 52 |
|
86 | | - /** |
87 | | - * @return array<class-string> |
88 | | - */ |
89 | 53 | protected function getCommands(): array |
90 | 54 | { |
91 | | - return [ |
92 | | - FilamentPriceFilterCommand::class, |
93 | | - ]; |
| 55 | + return []; |
94 | 56 | } |
95 | 57 |
|
96 | | - /** |
97 | | - * @return array<string> |
98 | | - */ |
99 | 58 | protected function getIcons(): array |
100 | 59 | { |
101 | 60 | return []; |
102 | 61 | } |
103 | 62 |
|
104 | | - /** |
105 | | - * @return array<string> |
106 | | - */ |
107 | 63 | protected function getRoutes(): array |
108 | 64 | { |
109 | 65 | return []; |
110 | 66 | } |
111 | 67 |
|
112 | | - /** |
113 | | - * @return array<string, mixed> |
114 | | - */ |
115 | 68 | protected function getScriptData(): array |
116 | 69 | { |
117 | 70 | return []; |
|
0 commit comments