diff --git a/resources/views/json-editor.blade.php b/resources/views/json-editor.blade.php index 0347928..1e5275e 100644 --- a/resources/views/json-editor.blade.php +++ b/resources/views/json-editor.blade.php @@ -1,52 +1,65 @@ -
-
+
-
- + \ No newline at end of file diff --git a/src/FilamentJsoneditorServiceProvider.php b/src/FilamentJsoneditorServiceProvider.php index d508fad..a882b15 100644 --- a/src/FilamentJsoneditorServiceProvider.php +++ b/src/FilamentJsoneditorServiceProvider.php @@ -16,20 +16,18 @@ public function configurePackage(Package $package): void { $package ->name(static::$name) - ->hasConfigFile() - ->hasAssets() ->hasViews(); $this->publishes([ - __DIR__ . '/../dist/jsoneditor/img/jsoneditor-icons.svg' => public_path('css/awcodes/headings/img/jsoneditor-icons.svg'), + __DIR__ . '/../dist/jsoneditor/img/jsoneditor-icons.svg' => public_path('css/invaders/jsoneditor/img/jsoneditor-icons.svg'), ], 'filament-jsoneditor-img'); } public function packageBooted(): void { FilamentAsset::register([ - Css::make('invaders-filament-jsoneditor', __DIR__ . '/../dist/jsoneditor/jsoneditor.min.css'), - Js::make('invaders-filament-jsoneditor', __DIR__ . '/../dist/jsoneditor/jsoneditor.min.js'), - ], 'awcodes/headings'); + Css::make('invaders-filament-jsoneditor', __DIR__ . '/../dist/jsoneditor/jsoneditor.min.css')->loadedOnRequest(), + Js::make('invaders-filament-jsoneditor', __DIR__ . '/../dist/jsoneditor/jsoneditor.min.js')->loadedOnRequest(), + ], 'invaders/jsoneditor'); } }