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>
50 lines
1.2 KiB
TypeScript
50 lines
1.2 KiB
TypeScript
import { Severity } from './types/severity';
|
|
/**
|
|
* A lint issue
|
|
*/
|
|
export declare class LintIssue {
|
|
/**
|
|
* Unique, lowercase, hyphen-separate name for the lint
|
|
*
|
|
* @type {string}
|
|
* @memberof LintIssue
|
|
*/
|
|
lintId: string;
|
|
/**
|
|
* 'error' or 'warning'
|
|
*
|
|
* @type {Severity}
|
|
* @memberof LintIssue
|
|
*/
|
|
severity: Severity;
|
|
/**
|
|
* Name of the node in the JSON the lint audits
|
|
*
|
|
* @type {string}
|
|
* @memberof LintIssue
|
|
*/
|
|
node: string;
|
|
/**
|
|
* Human-friendly message to users
|
|
*
|
|
* @type {string}
|
|
* @memberof LintIssue
|
|
*/
|
|
lintMessage: string;
|
|
/**
|
|
* Creates an instance of LintIssue.
|
|
* @param lintId Unique, lowercase, hyphen-separate name for the lint
|
|
* @param severity 'error' or 'warning'
|
|
* @param node Name of the node in the JSON the lint audits
|
|
* @param lintMessage Human-friendly message to users
|
|
* @memberof LintIssue
|
|
*/
|
|
constructor(lintId: string, severity: Severity, node: string, lintMessage: string);
|
|
/**
|
|
* Helper to convert the LintIssue to a printable string
|
|
*
|
|
* @returns {string} Human-friendly message about the lint issue
|
|
*/
|
|
toString(): string;
|
|
}
|