formfeed-uk/nova-theming-classes
Composer 安装命令:
composer require formfeed-uk/nova-theming-classes
包简介
A Laravel Nova package to add theming classes to components.
README 文档
README
This Laravel Nova package adds the theming classes functionality back to Nova 4 which was previously supplied by Nova::enableThemingClasses() in Nova 3
Requirements
php: >=8.0laravel/nova: ^4.0
Features
This package restores the missing Theming Classes from Nova 3 back into Nova 4.
It should work for all Nova components and any components from third party packages.
Classes are applied on Component Mount and Component Update (for dependsOn compatability) via a global mixin.
The component names, field names, resource names, panel names, and Nova Flexible Content layout group names are added kebab cased with an optional prefix.
If you have other packages with custom properties that do not work in the default configuration (such as the Nova Flexible Content layout group names) submit a Pull Request or an Issue. (Pull requests will be actioned faster)
Installation
Install the package in to a Laravel app that uses Nova via composer:
composer require formfeed-uk/nova-theming-classes
Usage
General
No additional configuration is required, the package will by default start working as soon as it is installed with all options enabled by default.
The theming classes are by default prefixed by the following:
- Components: component-
- Fields: field-
- Resources: resource-
- Nova Flexible Content Layout Groups: flex-group-
- Panels: panel-
This can be changed in the configuration options (see below)
Configuration Options
By default all theming options are enabled with the above default prefixes.
To configure which theming classes are displayed and their prefix, add the following to your config/nova.php
Note that the final delimiter in prefixes must be applied manually if required (to allow for empty string prefixes, or alternative prefix delimiters)
// config/nova.php return [ ... 'theming' => [ 'component' => true|false, // Enable/Disable the component classes 'field' => true|false, // Enable/Disable the field name classes 'resource' => true|false, // Enable/Disable the resource name classes 'flex_group' => true|false, // Enable/Disable the Nova Flexible Content Layout Groups classes 'panel' => true|false, // Enable/Disable the panel name classes 'prefix'=> [ 'component' => 'alternative-component-', // Component prefix 'field' => 'alternative-field-', // Field prefix 'resource' => 'alternative-resource-', // Resource prefix 'flex_group' => 'alternative-flex-group-', // Nova Flexible Content Layout Group prefix 'panel' => 'alternative-panel-', // Component prefix ] ] ... ]
License
Nova Theming Classes is open-sourced software licensed under the MIT license.
formfeed-uk/nova-theming-classes 适用场景与选型建议
formfeed-uk/nova-theming-classes 是一款 基于 JavaScript 开发的 Composer 扩展包,目前已累计 102.37k 次下载、GitHub Stars 达 12, 最近一次更新时间为 2022 年 05 月 25 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「theming」 「css」 「nova」 「laravel」 「nova 4」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 formfeed-uk/nova-theming-classes 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 formfeed-uk/nova-theming-classes 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 formfeed-uk/nova-theming-classes 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
A Laravel Nova card that shows you your system information.
A Laravel Nova card.
A Twig extension to insert css as inline styles with a tag
Caching and compression for Twig assets (JavaScript and CSS).
A Laravel Nova package for publishable fields
A Laravel Nova package for translatable fields
统计信息
- 总下载量: 102.37k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 12
- 点击次数: 21
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2022-05-25