lighthouse 11.7.0-dev.20240404 → 11.7.0-dev.20240406
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/core/audits/layout-shifts.js +1 -1
- package/core/gather/gatherers/trace-elements.d.ts +2 -1
- package/core/gather/gatherers/trace-elements.js +40 -10
- package/flow-report/assets/standalone-flow-template.html +25 -0
- package/flow-report/assets/styles.css +725 -0
- package/flow-report/clients/standalone.d.ts +7 -0
- package/flow-report/clients/standalone.ts +23 -0
- package/package.json +1 -1
- package/report/assets/standalone-template.html +27 -0
- package/report/assets/styles.css +2138 -0
- package/report/assets/templates.html +866 -0
- package/report/clients/bundle.d.ts +6 -0
- package/report/clients/bundle.js +18 -0
- package/report/clients/standalone.d.ts +2 -0
- package/report/clients/standalone.js +62 -0
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2021 Google LLC
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* @fileoverview The entry point for rendering the Lighthouse flow report for the HTML file created by ReportGenerator.
|
|
9
|
+
* The renderer code is bundled and injected into the report HTML along with the JSON report.
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
import {renderFlowReport} from '../api';
|
|
13
|
+
|
|
14
|
+
function __initLighthouseFlowReport__() {
|
|
15
|
+
const container = document.body.querySelector('main');
|
|
16
|
+
if (!container) throw Error('Container element not found');
|
|
17
|
+
renderFlowReport(window.__LIGHTHOUSE_FLOW_JSON__, container, {
|
|
18
|
+
getReportHtml: () => document.documentElement.outerHTML,
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
window.__initLighthouseFlowReport__ = __initLighthouseFlowReport__;
|
|
23
|
+
window.__initLighthouseFlowReport__();
|
package/package.json
CHANGED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
<!--
|
|
2
|
+
@license
|
|
3
|
+
Copyright 2018 Google LLC
|
|
4
|
+
SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
-->
|
|
6
|
+
<!doctype html>
|
|
7
|
+
<html lang="en">
|
|
8
|
+
<head>
|
|
9
|
+
<meta charset="utf-8">
|
|
10
|
+
<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1">
|
|
11
|
+
<link rel="icon" href='data:image/svg+xml;utf8,<svg fill="none" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48"><path d="m14 7 10-7 10 7v10h5v7h-5l5 24H9l5-24H9v-7h5V7Z" fill="%23F63"/><path d="M31.561 24H14l-1.689 8.105L31.561 24ZM18.983 48H9l1.022-4.907L35.723 32.27l1.663 7.98L18.983 48Z" fill="%23FFA385"/><path fill="%23FF3" d="M20.5 10h7v7h-7z"/></svg>'>
|
|
12
|
+
<title>Lighthouse Report</title>
|
|
13
|
+
<style>body {margin: 0}</style>
|
|
14
|
+
</head>
|
|
15
|
+
<body>
|
|
16
|
+
<noscript>Lighthouse report requires JavaScript. Please enable.</noscript>
|
|
17
|
+
|
|
18
|
+
<div id="lh-log"></div>
|
|
19
|
+
|
|
20
|
+
<script>window.__LIGHTHOUSE_JSON__ = %%LIGHTHOUSE_JSON%%;</script>
|
|
21
|
+
<script>%%LIGHTHOUSE_JAVASCRIPT%%
|
|
22
|
+
__initLighthouseReport__();
|
|
23
|
+
//# sourceURL=compiled-reportrenderer.js
|
|
24
|
+
</script>
|
|
25
|
+
<script>console.log('window.__LIGHTHOUSE_JSON__', __LIGHTHOUSE_JSON__);</script>
|
|
26
|
+
</body>
|
|
27
|
+
</html>
|