Next.js website for Rocky Mountain Vending company featuring: - Product catalog with Stripe integration - Service areas and parts pages - Admin dashboard with Clerk authentication - SEO optimized pages with JSON-LD structured data Co-authored-by: Cursor <cursoragent@cursor.com>
23 lines
757 B
Text
23 lines
757 B
Text
/**
|
|
* @license
|
|
* Copyright 2021 Google LLC
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
/**
|
|
* @fileoverview The entry point for rendering the Lighthouse flow report for the HTML file created by ReportGenerator.
|
|
* The renderer code is bundled and injected into the report HTML along with the JSON report.
|
|
*/
|
|
|
|
import {renderFlowReport} from '../api';
|
|
|
|
function __initLighthouseFlowReport__() {
|
|
const container = document.body.querySelector('main');
|
|
if (!container) throw Error('Container element not found');
|
|
renderFlowReport(window.__LIGHTHOUSE_FLOW_JSON__, container, {
|
|
getReportHtml: () => document.documentElement.outerHTML,
|
|
});
|
|
}
|
|
|
|
window.__initLighthouseFlowReport__ = __initLighthouseFlowReport__;
|
|
window.__initLighthouseFlowReport__();
|