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>
33 lines
958 B
TypeScript
33 lines
958 B
TypeScript
// LICENSE is MIT
|
|
//
|
|
// Copyright (c) 2018
|
|
// Dave Keen <http://www.keendevelopment.ch>
|
|
// Adi Dahiya <https://github.com/adidahiya>
|
|
// Jason Killian <https://github.com/JKillian>
|
|
// Sean Kelley <https://github.com/seansfkelley>
|
|
// Michal Adamczyk <https://github.com/mradamczyk>
|
|
// Marvin Hagemeister <https://github.com/marvinhagemeister>
|
|
|
|
declare namespace classNames {
|
|
type Value = string | number | boolean | undefined | null;
|
|
type Mapping = Record<string, any>;
|
|
interface ArgumentArray extends Array<Argument> {}
|
|
interface ReadonlyArgumentArray extends ReadonlyArray<Argument> {}
|
|
type Argument = Value | Mapping | ArgumentArray | ReadonlyArgumentArray;
|
|
}
|
|
|
|
interface ClassNames {
|
|
(...args: classNames.ArgumentArray): string;
|
|
|
|
default: ClassNames;
|
|
}
|
|
|
|
/**
|
|
* A simple JavaScript utility for conditionally joining classNames together.
|
|
*/
|
|
declare const classNames: ClassNames;
|
|
|
|
export as namespace classNames;
|
|
|
|
export = classNames;
|