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>
27 lines
966 B
TypeScript
27 lines
966 B
TypeScript
/**
|
|
* @name endOfISOWeekYear
|
|
* @category ISO Week-Numbering Year Helpers
|
|
* @summary Return the end of an ISO week-numbering year for the given date.
|
|
*
|
|
* @description
|
|
* Return the end of an ISO week-numbering year,
|
|
* which always starts 3 days before the year's first Thursday.
|
|
* The result will be in the local timezone.
|
|
*
|
|
* ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date
|
|
*
|
|
* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
|
|
*
|
|
* @param date - The original date
|
|
*
|
|
* @returns The end of an ISO week-numbering year
|
|
*
|
|
* @example
|
|
* // The end of an ISO week-numbering year for 2 July 2005:
|
|
* const result = endOfISOWeekYear(new Date(2005, 6, 2))
|
|
* //=> Sun Jan 01 2006 23:59:59.999
|
|
*/
|
|
export declare function endOfISOWeekYear<DateType extends Date>(
|
|
date: DateType | number | string,
|
|
): DateType;
|