Add coexistence checks to all enqueue methods to prevent loading both React and Grid.js assets simultaneously. Changes: - ReactAdmin.php: Only enqueue React assets when ?react=1 - Init.php: Skip Grid.js when React active on admin pages - Form.php, Coupon.php, Access.php: Restore classic assets when ?react=0 - Customer.php, Product.php, License.php: Add coexistence checks Now the toggle between Classic and React versions works correctly. Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com>
49 lines
781 B
Markdown
49 lines
781 B
Markdown
# decamelize [](https://travis-ci.org/sindresorhus/decamelize)
|
|
|
|
> Convert a camelized string into a lowercased one with a custom separator<br>
|
|
> Example: `unicornRainbow` → `unicorn_rainbow`
|
|
|
|
|
|
## Install
|
|
|
|
```
|
|
$ npm install --save decamelize
|
|
```
|
|
|
|
|
|
## Usage
|
|
|
|
```js
|
|
const decamelize = require('decamelize');
|
|
|
|
decamelize('unicornRainbow');
|
|
//=> 'unicorn_rainbow'
|
|
|
|
decamelize('unicornRainbow', '-');
|
|
//=> 'unicorn-rainbow'
|
|
```
|
|
|
|
|
|
## API
|
|
|
|
### decamelize(input, [separator])
|
|
|
|
#### input
|
|
|
|
Type: `string`
|
|
|
|
#### separator
|
|
|
|
Type: `string`<br>
|
|
Default: `_`
|
|
|
|
|
|
## Related
|
|
|
|
See [`camelcase`](https://github.com/sindresorhus/camelcase) for the inverse.
|
|
|
|
|
|
## License
|
|
|
|
MIT © [Sindre Sorhus](https://sindresorhus.com)
|