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>
39 lines
764 B
JSON
39 lines
764 B
JSON
{
|
|
"name": "mdn-data",
|
|
"version": "2.0.30",
|
|
"description": "Open Web data by the Mozilla Developer Network",
|
|
"main": "index.js",
|
|
"files": [
|
|
"api/index.js",
|
|
"api/*.json",
|
|
"css/index.js",
|
|
"css/*.json",
|
|
"l10n/index.js",
|
|
"l10n/*.json"
|
|
],
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://github.com/mdn/data.git"
|
|
},
|
|
"keywords": [
|
|
"data",
|
|
"mdn",
|
|
"mozilla",
|
|
"css"
|
|
],
|
|
"author": "Mozilla Developer Network",
|
|
"license": "CC0-1.0",
|
|
"bugs": {
|
|
"url": "https://github.com/mdn/data/issues"
|
|
},
|
|
"homepage": "https://developer.mozilla.org",
|
|
"devDependencies": {
|
|
"ajv": "^6.12.6",
|
|
"better-ajv-errors": "^1.1.2"
|
|
},
|
|
"scripts": {
|
|
"lint": "node test/lint",
|
|
"test": "npm run lint"
|
|
}
|
|
}
|