@casoon/auditmysite
Version:
Professional website analysis suite with robust accessibility testing, Core Web Vitals performance monitoring, SEO analysis, and content optimization insights. Features isolated browser contexts, retry mechanisms, and comprehensive API endpoints for profe
49 lines • 1.75 kB
TypeScript
import { FullAuditResult } from '../../types/audit-results';
/**
* Unified HTML Generator
* - Reads JSON (FullAuditResult)
* - Renders comprehensive, interactive HTML using strict types
* - Section-based architecture with navigation, performance, SEO, accessibility details
* - Includes all features from legacy generators in clean, maintainable code
*/
export declare class UnifiedHTMLGenerator {
generateFromJSON(jsonPath: string): Promise<string>;
generate(data: FullAuditResult): Promise<string>;
private generateCSS;
private renderReportTitle;
private renderSummary;
private renderPages;
private renderFooter;
private renderNavigation;
private renderAccessibilitySection;
private renderPerformanceSection;
private renderSeoSection;
private renderContentWeightSection;
private renderMobileFriendlinessSection;
private renderDetailedIssuesSection;
private renderIssueItem;
private getDomain;
private getOverallAccessibilityScore;
private calculateAverage;
private collectAccessibilityIssues;
private collectAllIssues;
private renderAccessibilityIssues;
private renderPerformanceDetails;
private renderSeoDetails;
private renderContentWeightDetails;
private renderMobileDetails;
private getScoreClass;
private generateJavaScript;
private formatNumber;
private escape;
private getCertificatesByCategory;
private getCertificateLevel;
private renderCertificatesGrid;
private getLetterGrade;
private formatPerformanceTime;
private getPerformanceRating;
private getScoreRating;
private getPerformanceRatingClass;
private getScoreRatingClass;
}
//# sourceMappingURL=unified-html-generator.d.ts.map