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>
28 lines
816 B
TypeScript
28 lines
816 B
TypeScript
/**
|
|
* Verify output path to use, either stdout or a file path.
|
|
* @param {string} path
|
|
* @return {string}
|
|
*/
|
|
export function checkOutputPath(path: string): string;
|
|
/**
|
|
* Writes the output.
|
|
* @param {string} output
|
|
* @param {LH.OutputMode} mode
|
|
* @param {string} path
|
|
* @return {Promise<void>}
|
|
*/
|
|
export function write(output: string, mode: LH.OutputMode, path: string): Promise<void>;
|
|
/**
|
|
* An enumeration of acceptable output modes:
|
|
* 'json': JSON formatted results
|
|
* 'html': An HTML report
|
|
* 'csv': CSV formatted results
|
|
* @type {LH.Util.SelfMap<LH.OutputMode>}
|
|
*/
|
|
export const OutputMode: LH.Util.SelfMap<LH.OutputMode>;
|
|
/**
|
|
* Returns a list of valid output options.
|
|
* @return {Array<string>}
|
|
*/
|
|
export function getValidOutputOptions(): Array<string>;
|
|
//# sourceMappingURL=printer.d.ts.map
|