fix: prevent asset conflicts between React and Grid.js versions

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>
This commit is contained in:
dwindown
2026-04-18 17:02:14 +07:00
parent bd9cdac02e
commit e8fbfb14c1
74973 changed files with 6658406 additions and 71 deletions

135
node_modules/date-fns/locale/cs/_lib/localize/index.js generated vendored Normal file
View File

@@ -0,0 +1,135 @@
"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/buildLocalizeFn/index.js"));
var eraValues = {
narrow: ['př. n. l.', 'n. l.'],
abbreviated: ['př. n. l.', 'n. l.'],
wide: ['před naším letopočtem', 'našeho letopočtu']
};
var quarterValues = {
narrow: ['1', '2', '3', '4'],
abbreviated: ['1. čtvrtletí', '2. čtvrtletí', '3. čtvrtletí', '4. čtvrtletí'],
wide: ['1. čtvrtletí', '2. čtvrtletí', '3. čtvrtletí', '4. čtvrtletí']
};
var monthValues = {
narrow: ['L', 'Ú', 'B', 'D', 'K', 'Č', 'Č', 'S', 'Z', 'Ř', 'L', 'P'],
abbreviated: ['led', 'úno', 'bře', 'dub', 'kvě', 'čvn', 'čvc', 'srp', 'zář', 'říj', 'lis', 'pro'],
wide: ['leden', 'únor', 'březen', 'duben', 'květen', 'červen', 'červenec', 'srpen', 'září', 'říjen', 'listopad', 'prosinec']
};
var formattingMonthValues = {
narrow: ['L', 'Ú', 'B', 'D', 'K', 'Č', 'Č', 'S', 'Z', 'Ř', 'L', 'P'],
abbreviated: ['led', 'úno', 'bře', 'dub', 'kvě', 'čvn', 'čvc', 'srp', 'zář', 'říj', 'lis', 'pro'],
wide: ['ledna', 'února', 'března', 'dubna', 'května', 'června', 'července', 'srpna', 'září', 'října', 'listopadu', 'prosince']
};
var dayValues = {
narrow: ['ne', 'po', 'út', 'st', 'čt', 'pá', 'so'],
short: ['ne', 'po', 'út', 'st', 'čt', 'pá', 'so'],
abbreviated: ['ned', 'pon', 'úte', 'stř', 'čtv', 'pát', 'sob'],
wide: ['neděle', 'pondělí', 'úterý', 'středa', 'čtvrtek', 'pátek', 'sobota']
};
var dayPeriodValues = {
narrow: {
am: 'dop.',
pm: 'odp.',
midnight: 'půlnoc',
noon: 'poledne',
morning: 'ráno',
afternoon: 'odpoledne',
evening: 'večer',
night: 'noc'
},
abbreviated: {
am: 'dop.',
pm: 'odp.',
midnight: 'půlnoc',
noon: 'poledne',
morning: 'ráno',
afternoon: 'odpoledne',
evening: 'večer',
night: 'noc'
},
wide: {
am: 'dopoledne',
pm: 'odpoledne',
midnight: 'půlnoc',
noon: 'poledne',
morning: 'ráno',
afternoon: 'odpoledne',
evening: 'večer',
night: 'noc'
}
};
var formattingDayPeriodValues = {
narrow: {
am: 'dop.',
pm: 'odp.',
midnight: 'půlnoc',
noon: 'poledne',
morning: 'ráno',
afternoon: 'odpoledne',
evening: 'večer',
night: 'noc'
},
abbreviated: {
am: 'dop.',
pm: 'odp.',
midnight: 'půlnoc',
noon: 'poledne',
morning: 'ráno',
afternoon: 'odpoledne',
evening: 'večer',
night: 'noc'
},
wide: {
am: 'dopoledne',
pm: 'odpoledne',
midnight: 'půlnoc',
noon: 'poledne',
morning: 'ráno',
afternoon: 'odpoledne',
evening: 'večer',
night: 'noc'
}
};
var ordinalNumber = function ordinalNumber(dirtyNumber, _options) {
var number = Number(dirtyNumber);
return number + '.';
};
var localize = {
ordinalNumber: ordinalNumber,
era: (0, _index.default)({
values: eraValues,
defaultWidth: 'wide'
}),
quarter: (0, _index.default)({
values: quarterValues,
defaultWidth: 'wide',
argumentCallback: function argumentCallback(quarter) {
return quarter - 1;
}
}),
month: (0, _index.default)({
values: monthValues,
defaultWidth: 'wide',
formattingValues: formattingMonthValues,
defaultFormattingWidth: 'wide'
}),
day: (0, _index.default)({
values: dayValues,
defaultWidth: 'wide'
}),
dayPeriod: (0, _index.default)({
values: dayPeriodValues,
defaultWidth: 'wide',
formattingValues: formattingDayPeriodValues,
defaultFormattingWidth: 'wide'
})
};
var _default = localize;
exports.default = _default;
module.exports = exports.default;