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>
22 lines
1.0 KiB
JavaScript
22 lines
1.0 KiB
JavaScript
"use strict";
|
|
|
|
exports.__esModule = true;
|
|
exports["default"] = void 0;
|
|
var _namespace = _interopRequireDefault(require("./namespace"));
|
|
var _types = require("./types");
|
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _setPrototypeOf(subClass, superClass); }
|
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
var Universal = /*#__PURE__*/function (_Namespace) {
|
|
_inheritsLoose(Universal, _Namespace);
|
|
function Universal(opts) {
|
|
var _this;
|
|
_this = _Namespace.call(this, opts) || this;
|
|
_this.type = _types.UNIVERSAL;
|
|
_this.value = '*';
|
|
return _this;
|
|
}
|
|
return Universal;
|
|
}(_namespace["default"]);
|
|
exports["default"] = Universal;
|
|
module.exports = exports.default; |