From d90776331922e6f2ae866e799df3b3b5ec808154 Mon Sep 17 00:00:00 2001 From: Rhys Lees <43909932+RhysLees@users.noreply.github.com> Date: Wed, 26 Feb 2025 16:51:27 +0000 Subject: [PATCH] WIP --- .github/workflows/run-tests.yml | 2 +- bin/build.js | 4 ++-- composer.json | 10 +++++----- ...-json-field.css => laravel-filament-json-field.css} | 0 ...nt-json-field.js => laravel-filament-json-field.js} | 0 ...nt-json-field.js => laravel-filament-json-field.js} | 0 src/FilamentJsonFieldServiceProvider.php | 8 ++++---- src/Forms/Components/JsonInput.php | 2 +- src/Infolists/Components/JsonEntry.php | 2 +- tests/TestCase.php | 2 +- 10 files changed, 15 insertions(+), 15 deletions(-) rename dist/{filament-json-field.css => laravel-filament-json-field.css} (100%) rename dist/{filament-json-field.js => laravel-filament-json-field.js} (100%) rename resources/js/{filament-json-field.js => laravel-filament-json-field.js} (100%) diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index aaa10f5..c26d8ea 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -15,7 +15,7 @@ jobs: matrix: os: [ ubuntu-latest, windows-latest ] php: [ 8.2, 8.3 ] - laravel: [ 10.*, 11.* ] + laravel: [ 11.* ] stability: [ prefer-lowest, prefer-stable ] name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }} - ${{ matrix.os }} diff --git a/bin/build.js b/bin/build.js index 4688bd7..9571b8a 100644 --- a/bin/build.js +++ b/bin/build.js @@ -1,8 +1,8 @@ import * as esbuild from 'esbuild'; esbuild.build({ - entryPoints: ['./resources/js/filament-json-field.js'], - outfile: './dist/filament-json-field.js', + entryPoints: ['./resources/js/laravel-filament-json-field.js'], + outfile: './dist/laravel-filament-json-field.js', bundle: true, mainFields: ['module', 'main'], platform: 'browser', diff --git a/composer.json b/composer.json index 2534085..e5fb669 100644 --- a/composer.json +++ b/composer.json @@ -1,12 +1,12 @@ { - "name": "codebar-ag/filament-json-field", - "description": "This is my package filament-json-field", + "name": "codebar-ag/laravel-filament-json-field", + "description": "This is my package laravel-filament-json-field", "keywords": [ "CodebarAg", "laravel", - "filament-json-field" + "laravel-filament-json-field" ], - "homepage": "https://github.com/codebar-ag/filament-json-field", + "homepage": "https://github.com/codebar-ag/laravel-filament-json-field", "license": "MIT", "authors": [ { @@ -56,7 +56,7 @@ }, "scripts": { "post-autoload-dump": "@composer run prepare", - "clear": "@php vendor/bin/testbench package:purge-filament-json-field --ansi", + "clear": "@php vendor/bin/testbench package:purge-laravel-filament-json-field --ansi", "prepare": "@php vendor/bin/testbench package:discover --ansi", "build": [ "@composer run prepare", diff --git a/dist/filament-json-field.css b/dist/laravel-filament-json-field.css similarity index 100% rename from dist/filament-json-field.css rename to dist/laravel-filament-json-field.css diff --git a/dist/filament-json-field.js b/dist/laravel-filament-json-field.js similarity index 100% rename from dist/filament-json-field.js rename to dist/laravel-filament-json-field.js diff --git a/resources/js/filament-json-field.js b/resources/js/laravel-filament-json-field.js similarity index 100% rename from resources/js/filament-json-field.js rename to resources/js/laravel-filament-json-field.js diff --git a/src/FilamentJsonFieldServiceProvider.php b/src/FilamentJsonFieldServiceProvider.php index 6e62700..23fbeeb 100644 --- a/src/FilamentJsonFieldServiceProvider.php +++ b/src/FilamentJsonFieldServiceProvider.php @@ -13,15 +13,15 @@ class FilamentJsonFieldServiceProvider extends PackageServiceProvider public function configurePackage(Package $package): void { $package - ->name('filament-json-field') + ->name('laravel-filament-json-field') ->hasViews(); } public function packageBooted() { FilamentAsset::register([ - Css::make('filament-json-field', __DIR__.'/../dist/filament-json-field.css'), - Js::make('filament-json-field', __DIR__.'/../dist/filament-json-field.js'), - ], 'filament-json-field'); + Css::make('laravel-filament-json-field', __DIR__.'/../dist/laravel-filament-json-field.css'), + Js::make('laravel-filament-json-field', __DIR__.'/../dist/laravel-filament-json-field.js'), + ], 'laravel-filament-json-field'); } } diff --git a/src/Forms/Components/JsonInput.php b/src/Forms/Components/JsonInput.php index ff59f2e..950288c 100644 --- a/src/Forms/Components/JsonInput.php +++ b/src/Forms/Components/JsonInput.php @@ -19,7 +19,7 @@ class JsonInput extends Field use HasLineNumbers; use HasLineWrapping; - protected string $view = 'filament-json-field::forms.components.json-input'; + protected string $view = 'laravel-filament-json-field::forms.components.json-input'; public function setUp(): void { diff --git a/src/Infolists/Components/JsonEntry.php b/src/Infolists/Components/JsonEntry.php index 85cfff8..af54869 100644 --- a/src/Infolists/Components/JsonEntry.php +++ b/src/Infolists/Components/JsonEntry.php @@ -17,5 +17,5 @@ class JsonEntry extends Entry use HasLineNumbers; use HasLineWrapping; - protected string $view = 'filament-json-field::infolists.components.json-entry'; + protected string $view = 'laravel-filament-json-field::infolists.components.json-entry'; } diff --git a/tests/TestCase.php b/tests/TestCase.php index 91df9f3..e7e6137 100644 --- a/tests/TestCase.php +++ b/tests/TestCase.php @@ -29,7 +29,7 @@ public function getEnvironmentSetUp($app) config()->set('database.default', 'testing'); /* - $migration = include __DIR__.'/../database/migrations/create_filament-json-field_table.php.stub'; + $migration = include __DIR__.'/../database/migrations/create_laravel-filament-json-field_table.php.stub'; $migration->up(); */ }