codebar-ag / filament-json-field
这是我创建的包 filament-json-field
v1.5.0
2024-07-15 10:15 UTC
Requires
- php: ^8.2
- filament/infolists: ^3.2
- filament/support: ^3.2
- filament/tables: ^3.2
- illuminate/contracts: ^10.0||^11.0
- livewire/livewire: ^3.4
- spatie/laravel-package-tools: ^1.16
Requires (Dev)
- larastan/larastan: ^2.9
- laravel/pint: ^1.14
- nunomaduro/collision: ^8.1.1||^7.10.0
- orchestra/testbench: ^9.0.0||^8.22.0
- pestphp/pest: ^2.34
- pestphp/pest-plugin-arch: ^2.7
- pestphp/pest-plugin-laravel: ^2.3
- phpstan/extension-installer: ^1.3
- phpstan/phpstan-deprecation-rules: ^1.1
- phpstan/phpstan-phpunit: ^1.3
- spatie/laravel-ray: ^1.35
This package is auto-updated.
Last update: 2024-09-15 10:35:36 UTC
README
💡 Filament Json Field 是什么?
Filament Json Field 是 Codemirror 的 Filament 包装器。
🛠️ 要求
⚙️ 安装
您可以通过 composer 安装此包
composer require codebar-ag/filament-json-field php artisan filament:assets
用法
表单
use CodebarAg\FilamentJsonField\Forms\Components\JsonInput; ... public function form(Form $form): Form { return $form ->schema([ JsonInput::make('json') ->label('JSON') ->lineNumbers(true) ->lineWrapping(true) ->autoCloseBrackets(true) ->darkTheme(true) ->foldingCode(true) ->foldedCode(true), // Folded code will fold the code on form load ]); } ...
信息列表
use CodebarAg\FilamentJsonField\Infolists\Components\JsonEntry; ... public function form(Form $form): Form { return $form ->schema([ JsonEntry::make('json') ->label('JSON') ->lineNumbers(true) ->lineWrapping(true) ->autoCloseBrackets(true) ->darkTheme(true) ->foldingCode(true) ->foldedCode(true), // Folded code will fold the code on form load ]); } ...
选项
以下选项目前受到支持
🚧 测试
复制您自己的 phpunit.xml 文件。
cp phpunit.xml.dist phpunit.xml
运行测试
./vendor/bin/pest
🚧 构建
node bin/build
注意:没有输出,但构建将在 dist
目录中。
📝 更新日志
请参阅 更新日志 了解最近的变化。
✏️ 贡献
有关详细信息,请参阅 贡献指南。
composer test
代码风格
./vendor/bin/pint
🧑💻 安全漏洞
请查看 我们的安全策略 以了解如何报告安全漏洞。
🙏 致谢
🎭 许可证
MIT 许可证 (MIT)。请参阅 许可证文件 了解更多信息。