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>
28 lines
1.7 KiB
Text
28 lines
1.7 KiB
Text
import * as Platform from '../../../core/platform/platform.js';
|
|
import type * as Handlers from '../handlers/handlers.js';
|
|
import * as Types from '../types/types.js';
|
|
import { type InsightModel, type InsightSetContext } from './types.js';
|
|
export declare const UIStrings: {
|
|
/** Title of an insight that provides details about the fonts used on the page, and the value of their `font-display` properties. */
|
|
readonly title: "Font display";
|
|
/**
|
|
* @description Text to tell the user about the font-display CSS feature to help improve a the UX of a page.
|
|
*/
|
|
readonly description: "Consider setting [`font-display`](https://developer.chrome.com/blog/font-display) to `swap` or `optional` to ensure text is consistently visible. `swap` can be further optimized to mitigate layout shifts with [font metric overrides](https://developer.chrome.com/blog/font-fallbacks).";
|
|
/** Column for a font loaded by the page to render text. */
|
|
readonly fontColumn: "Font";
|
|
/** Column for the amount of time wasted. */
|
|
readonly wastedTimeColumn: "Wasted time";
|
|
};
|
|
export declare const i18nString: (id: string, values?: Record<string, string> | undefined) => {i18nId: string, values: Record<string, string|number>, formattedDefault: string};
|
|
export interface RemoteFont {
|
|
name?: string;
|
|
request: Types.Events.SyntheticNetworkRequest;
|
|
display: string;
|
|
wastedTime: Types.Timing.Milli;
|
|
}
|
|
export type FontDisplayInsightModel = InsightModel<typeof UIStrings, {
|
|
fonts: RemoteFont[];
|
|
}>;
|
|
export declare function generateInsight(parsedTrace: Handlers.Types.ParsedTrace, context: InsightSetContext): FontDisplayInsightModel;
|
|
export declare function createOverlays(model: FontDisplayInsightModel): Types.Overlays.Overlay[];
|