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>
16 lines
510 B
JavaScript
16 lines
510 B
JavaScript
/**
|
|
* @category Types
|
|
* @summary Day type
|
|
*
|
|
* @description
|
|
* The day of the week type alias (`0 | 1 | 2 | 3 | 4 | 5 | 6`). Unlike the date
|
|
* (the number of days since the beginningof the month), which starts with 1
|
|
* and is dynamic (can go up to 28, 30, or 31), the day starts with 0 and static
|
|
* (always ends at 6). Look at it as an index in an array where Sunday is
|
|
* the first element, and Saturday is the last.
|
|
*
|
|
* @typedef {0 | 1 | 2 | 3 | 4 | 5 | 6} Day
|
|
*/
|
|
const Day = 0
|
|
module.exports = Day
|