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>
25 lines
1.1 KiB
JavaScript
25 lines
1.1 KiB
JavaScript
"use strict";
|
|
|
|
exports.__esModule = true;
|
|
exports["default"] = void 0;
|
|
var _node = _interopRequireDefault(require("./node"));
|
|
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 ID = /*#__PURE__*/function (_Node) {
|
|
_inheritsLoose(ID, _Node);
|
|
function ID(opts) {
|
|
var _this;
|
|
_this = _Node.call(this, opts) || this;
|
|
_this.type = _types.ID;
|
|
return _this;
|
|
}
|
|
var _proto = ID.prototype;
|
|
_proto.valueToString = function valueToString() {
|
|
return '#' + _Node.prototype.valueToString.call(this);
|
|
};
|
|
return ID;
|
|
}(_node["default"]);
|
|
exports["default"] = ID;
|
|
module.exports = exports.default; |