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>
29 lines
2 KiB
Text
29 lines
2 KiB
Text
import * as Extras from '../extras/extras.js';
|
|
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 multiple copies of the same JavaScript sources, and recommends removing the duplication.
|
|
*/
|
|
readonly title: "Duplicated JavaScript";
|
|
/**
|
|
* @description Description of an insight that identifies multiple copies of the same JavaScript sources, and recommends removing the duplication.
|
|
*/
|
|
readonly description: "Remove large, duplicate JavaScript modules from bundles to reduce unnecessary bytes consumed by network activity.";
|
|
/** Label for a column in a data table; entries will be the locations of JavaScript or CSS code, e.g. the name of a Javascript package or module. */
|
|
readonly columnSource: "Source";
|
|
/** Label for a column in a data table; entries will be the number of wasted bytes due to duplication of a web resource. */
|
|
readonly columnDuplicatedBytes: "Duplicated bytes";
|
|
};
|
|
export declare const i18nString: (id: string, values?: Record<string, string> | undefined) => Record<string, string>;
|
|
export type DuplicatedJavaScriptInsightModel = InsightModel<typeof UIStrings, {
|
|
duplication: Extras.ScriptDuplication.ScriptDuplication;
|
|
duplicationGroupedByNodeModules: Extras.ScriptDuplication.ScriptDuplication;
|
|
scriptsWithDuplication: Handlers.ModelHandlers.Scripts.Script[];
|
|
scripts: Handlers.ModelHandlers.Scripts.Script[];
|
|
mainDocumentUrl: string;
|
|
}>;
|
|
export declare function isDuplicatedJavaScript(model: InsightModel): model is DuplicatedJavaScriptInsightModel;
|
|
export declare function generateInsight(parsedTrace: Handlers.Types.ParsedTrace, context: InsightSetContext): DuplicatedJavaScriptInsightModel;
|
|
export declare function createOverlays(model: DuplicatedJavaScriptInsightModel): Types.Overlays.Overlay[];
|