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>
31 lines
1.2 KiB
TypeScript
31 lines
1.2 KiB
TypeScript
/**
|
|
* @param {LH.Result} lhr
|
|
* @param {LH.Renderer.Options} opts
|
|
* @return {HTMLElement}
|
|
*/
|
|
export function renderReport(lhr: LH.Result, opts?: LH.Renderer.Options): HTMLElement;
|
|
/**
|
|
* @param {LH.ReportResult.Category} category
|
|
* @param {Parameters<CategoryRenderer['renderCategoryScore']>[2]=} options
|
|
* @return {DocumentFragment}
|
|
*/
|
|
export function renderCategoryScore(category: LH.ReportResult.Category, options?: [category: import("../types/report-result.js").default.Category, groupDefinitions: Record<string, import("../../types/lhr/lhr.js").default.ReportGroup>, options?: {
|
|
gatherMode: import("../../types/lhr/lhr.js").default.GatherMode;
|
|
omitLabel?: boolean | undefined;
|
|
onPageAnchorRendered?: ((link: HTMLAnchorElement) => void) | undefined;
|
|
} | undefined][2] | undefined): DocumentFragment;
|
|
/**
|
|
* @param {Blob} blob
|
|
* @param {string} filename
|
|
*/
|
|
export function saveFile(blob: Blob, filename: string): void;
|
|
/**
|
|
* @param {string} markdownText
|
|
* @return {Element}
|
|
*/
|
|
export function convertMarkdownCodeSnippets(markdownText: string): Element;
|
|
/**
|
|
* @return {DocumentFragment}
|
|
*/
|
|
export function createStylesElement(): DocumentFragment;
|
|
//# sourceMappingURL=api.d.ts.map
|