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>
35 lines
2.2 KiB
Text
35 lines
2.2 KiB
Text
import type * as Handlers from '../handlers/handlers.js';
|
|
import type * as Types from '../types/types.js';
|
|
import { type InsightModel, type InsightSetContext } from './types.js';
|
|
export declare const UIStrings: {
|
|
/**
|
|
* @description Title of an insight that identifies polyfills for modern JavaScript features, and recommends their removal.
|
|
*/
|
|
readonly title: "Legacy JavaScript";
|
|
/**
|
|
* @description Description of an insight that identifies polyfills for modern JavaScript features, and recommends their removal.
|
|
*/
|
|
readonly description: "Polyfills and transforms enable older browsers to use new JavaScript features. However, many aren't necessary for modern browsers. Consider modifying your JavaScript build process to not transpile [Baseline](https://web.dev/articles/baseline-and-polyfills) features, unless you know you must support older browsers. [Learn why most sites can deploy ES6+ code without transpiling](https://philipwalton.com/articles/the-state-of-es5-on-the-web/)";
|
|
/** Label for a column in a data table; entries will be the individual JavaScript scripts. */
|
|
readonly columnScript: "Script";
|
|
/** Label for a column in a data table; entries will be the number of wasted bytes (aka the estimated savings in terms of bytes). */
|
|
readonly columnWastedBytes: "Wasted bytes";
|
|
};
|
|
export declare const i18nString: (id: string, values?: Record<string, string> | undefined) => Record<string, string>;
|
|
export interface PatternMatchResult {
|
|
name: string;
|
|
line: number;
|
|
column: number;
|
|
}
|
|
interface LegacyJavaScriptResult {
|
|
matches: PatternMatchResult[];
|
|
estimatedByteSavings: number;
|
|
}
|
|
type LegacyJavaScriptResults = Map<Handlers.ModelHandlers.Scripts.Script, LegacyJavaScriptResult>;
|
|
export type LegacyJavaScriptInsightModel = InsightModel<typeof UIStrings, {
|
|
legacyJavaScriptResults: LegacyJavaScriptResults;
|
|
}>;
|
|
export declare function isLegacyJavaScript(model: InsightModel): model is LegacyJavaScriptInsightModel;
|
|
export declare function generateInsight(parsedTrace: Handlers.Types.ParsedTrace, context: InsightSetContext): LegacyJavaScriptInsightModel;
|
|
export declare function createOverlays(model: LegacyJavaScriptInsightModel): Types.Overlays.Overlay[];
|
|
export {};
|