Fix styling

This commit is contained in:
awcodes
2023-07-07 20:04:15 +00:00
committed by github-actions[bot]
parent 5bf7e6fd43
commit 09aa247d12
4 changed files with 62 additions and 66 deletions

View File

@@ -2,17 +2,13 @@
namespace VendorName\Skeleton;
use Filament\Panel;
use Filament\Facades\Filament;
use Filament\Support\Assets\AlpineComponent;
use Filament\Support\Assets\Asset;
use Filament\Support\Assets\AssetManager;
use Filament\Support\Assets\Css;
use Filament\Support\Assets\Js;
use Filament\Support\Facades\FilamentAsset;
use Filament\Support\Facades\FilamentIcon;
use Filament\Support\Icons\Icon;
use Filament\Support\Icons\IconManager;
use Illuminate\Filesystem\Filesystem;
use Livewire\Testing\TestableLivewire;
use Spatie\LaravelPackageTools\Commands\InstallCommand;
@@ -88,7 +84,7 @@ class SkeletonServiceProvider extends PackageServiceProvider
// Handle Stubs
if (app()->runningInConsole()) {
foreach (app(Filesystem::class)->files(__DIR__.'/../stubs/') as $file) {
foreach (app(Filesystem::class)->files(__DIR__ . '/../stubs/') as $file) {
$this->publishes([
$file->getRealPath() => base_path("stubs/skeleton/{$file->getFilename()}"),
], 'skeleton-stubs');
@@ -111,8 +107,8 @@ class SkeletonServiceProvider extends PackageServiceProvider
{
return [
// AlpineComponent::make('skeleton', __DIR__ . '/../resources/dist/components/skeleton.js'),
Css::make('skeleton-styles', __DIR__.'/../resources/dist/skeleton.js'),
Js::make('skeleton-scripts', __DIR__.'/../resources/dist/skeleton.js'),
Css::make('skeleton-styles', __DIR__ . '/../resources/dist/skeleton.js'),
Js::make('skeleton-scripts', __DIR__ . '/../resources/dist/skeleton.js'),
];
}

View File

@@ -2,8 +2,8 @@
namespace VendorName;
use Filament\Panel;
use Filament\Contracts\Plugin;
use Filament\Panel;
use Filament\Support\Assets\Theme;
use Filament\Support\Color;
use Filament\Support\Facades\FilamentAsset;
@@ -18,7 +18,7 @@ class Skeleton implements Plugin
public function register(Panel $panel): void
{
FilamentAsset::register([
Theme::make('skeleton', __DIR__.'/../resources/dist/skeleton.css'),
Theme::make('skeleton', __DIR__ . '/../resources/dist/skeleton.css'),
]);
$panel