Rocky_Mountain_Vending/.pnpm-store/v10/files/d9/1dcdbac20275104284bc0d7a0be675730c238c58011c0ab879a5f329bcb3c7614c3ef8e4e0a735af9ad35e409ef18f612b122ddf3a53a0c0a308ce5f010336
DMleadgen 46d973904b
Initial commit: Rocky Mountain Vending website
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>
2026-02-12 16:22:15 -07:00

45 lines
1.4 KiB
Text

/**
* @license
* Copyright 2020 Google LLC
* SPDX-License-Identifier: Apache-2.0
*/
/**
* @fileoverview Computed Largest Contentful Paint (LCP) for all frames.
*/
import {makeComputedArtifact} from '../computed-artifact.js';
import {NavigationMetric} from './navigation-metric.js';
import {LighthouseError} from '../../lib/lh-error.js';
class LargestContentfulPaintAllFrames extends NavigationMetric {
/**
* TODO: Simulate LCP all frames in lantern.
* @return {Promise<LH.Artifacts.LanternMetric>}
*/
static async computeSimulatedMetric() {
throw new Error('LCP All Frames not implemented in lantern');
}
/**
* @param {LH.Artifacts.NavigationMetricComputationData} data
* @return {Promise<LH.Artifacts.Metric>}
*/
static async computeObservedMetric(data) {
const {processedNavigation} = data;
if (processedNavigation.timings.largestContentfulPaintAllFrames === undefined) {
throw new LighthouseError(LighthouseError.errors.NO_LCP_ALL_FRAMES);
}
return {
timing: processedNavigation.timings.largestContentfulPaintAllFrames,
timestamp: processedNavigation.timestamps.largestContentfulPaintAllFrames,
};
}
}
const LargestContentfulPaintAllFramesComputed = makeComputedArtifact(
LargestContentfulPaintAllFrames,
['devtoolsLog', 'gatherContext', 'settings', 'simulator', 'trace', 'URL', 'SourceMaps']
);
export {LargestContentfulPaintAllFramesComputed as LargestContentfulPaintAllFrames};