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>
57 lines
2.0 KiB
TypeScript
57 lines
2.0 KiB
TypeScript
export class ReportRenderer {
|
|
/**
|
|
* @param {DOM} dom
|
|
*/
|
|
constructor(dom: DOM);
|
|
/** @type {DOM} */
|
|
_dom: DOM;
|
|
/** @type {LH.Renderer.Options} */
|
|
_opts: LH.Renderer.Options;
|
|
/**
|
|
* @param {LH.Result} lhr
|
|
* @param {HTMLElement?} rootEl Report root element containing the report
|
|
* @param {LH.Renderer.Options=} opts
|
|
* @return {!Element}
|
|
*/
|
|
renderReport(lhr: LH.Result, rootEl: HTMLElement | null, opts?: LH.Renderer.Options | undefined): Element;
|
|
/**
|
|
* @param {LH.ReportResult} report
|
|
* @return {DocumentFragment}
|
|
*/
|
|
_renderReportTopbar(report: LH.ReportResult): DocumentFragment;
|
|
/**
|
|
* @return {DocumentFragment}
|
|
*/
|
|
_renderReportHeader(): DocumentFragment;
|
|
/**
|
|
* @param {LH.ReportResult} report
|
|
* @return {DocumentFragment}
|
|
*/
|
|
_renderReportFooter(report: LH.ReportResult): DocumentFragment;
|
|
/**
|
|
* @param {LH.ReportResult} report
|
|
* @param {DocumentFragment} footer
|
|
*/
|
|
_renderMetaBlock(report: LH.ReportResult, footer: DocumentFragment): void;
|
|
/**
|
|
* Returns a div with a list of top-level warnings, or an empty div if no warnings.
|
|
* @param {LH.ReportResult} report
|
|
* @return {Node}
|
|
*/
|
|
_renderReportWarnings(report: LH.ReportResult): Node;
|
|
/**
|
|
* @param {LH.ReportResult} report
|
|
* @param {CategoryRenderer} categoryRenderer
|
|
* @param {Record<string, CategoryRenderer>} specificCategoryRenderers
|
|
* @return {!DocumentFragment[]}
|
|
*/
|
|
_renderScoreGauges(report: LH.ReportResult, categoryRenderer: CategoryRenderer, specificCategoryRenderers: Record<string, CategoryRenderer>): DocumentFragment[];
|
|
/**
|
|
* @param {LH.ReportResult} report
|
|
* @return {!DocumentFragment}
|
|
*/
|
|
_renderReport(report: LH.ReportResult): DocumentFragment;
|
|
}
|
|
export type DOM = import('./dom.js').DOM;
|
|
import { CategoryRenderer } from './category-renderer.js';
|
|
//# sourceMappingURL=report-renderer.d.ts.map
|