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>
41 lines
1.4 KiB
JavaScript
41 lines
1.4 KiB
JavaScript
"use strict";
|
||
|
||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
||
Object.defineProperty(exports, "__esModule", {
|
||
value: true
|
||
});
|
||
exports.default = void 0;
|
||
var _index = _interopRequireDefault(require("./_lib/formatDistance/index.js"));
|
||
var _index2 = _interopRequireDefault(require("./_lib/formatLong/index.js"));
|
||
var _index3 = _interopRequireDefault(require("./_lib/formatRelative/index.js"));
|
||
var _index4 = _interopRequireDefault(require("./_lib/localize/index.js"));
|
||
var _index5 = _interopRequireDefault(require("./_lib/match/index.js"));
|
||
/**
|
||
* @type {Locale}
|
||
* @category Locales
|
||
* @summary Turkish locale.
|
||
* @language Turkish
|
||
* @iso-639-2 tur
|
||
* @author Alpcan Aydın [@alpcanaydin]{@link https://github.com/alpcanaydin}
|
||
* @author Berkay Sargın [@berkaey]{@link https://github.com/berkaey}
|
||
* @author Fatih Bulut [@bulutfatih]{@link https://github.com/bulutfatih}
|
||
* @author Ismail Demirbilek [@dbtek]{@link https://github.com/dbtek}
|
||
* @author İsmail Kayar [@ikayar]{@link https://github.com/ikayar}
|
||
*
|
||
*
|
||
*/
|
||
var locale = {
|
||
code: 'tr',
|
||
formatDistance: _index.default,
|
||
formatLong: _index2.default,
|
||
formatRelative: _index3.default,
|
||
localize: _index4.default,
|
||
match: _index5.default,
|
||
options: {
|
||
weekStartsOn: 1 /* Monday */,
|
||
firstWeekContainsDate: 1
|
||
}
|
||
};
|
||
var _default = locale;
|
||
exports.default = _default;
|
||
module.exports = exports.default; |