Updated AppSettings.json to rename "Chromium" section to "Browser" for PDF generation.
Reflected this change across multiple files including ReportSheetCacheTests.cs, UnitTestHelpers.cs, and ReportSheetCache.cs.
Updated comments in ReportSheet.cshtml accordingly.
Simplified AppSettings.json by removing comments about AllowedUserNameCharacters and DefaultLockoutTimeSpan settings.
Refactor PDF generation
Updated README.md to reflect the correct Chromium version and added a note about rendering issues with Chromium 131.x.
Simplified the EnsureCacheFolder method in ReportSheetCache.cs by removing unnecessary directory existence checks and creation logic.
Added a new HtmlToPdfConverter class in HtmlToPdfConverter.cs to encapsulate the logic for converting HTML to PDF using either Puppeteer or a browser command line.
Refactored the GetOrCreatePdf method in ReportSheetCache.cs to use a new HtmlToPdfConverter class for generating PDF data, replacing the previous Puppeteer and browser command line logic.
Removed the GetReportSheetBrowser, MovePdfToCache, GetReportSheetPuppeteer, CreateReportSheetPdfBrowser, CreateHtmlFile, and DeleteTempPathFolder methods from ReportSheetCache.cs as they are now handled by the new HtmlToPdfConverter class.
Updated the ReportSheet action in Match.cs to use the new PDF generation logic.
Updated the Bootstrap CSS link in ReportSheet.cshtml to a newer version and adjusted the print styles accordingly.
Rename "Chromium" to "Browser" in config and code
AllowedUserNameCharacters
andDefaultLockoutTimeSpan
settings.Refactor PDF generation
EnsureCacheFolder
method inReportSheetCache.cs
by removing unnecessary directory existence checks and creation logic.HtmlToPdfConverter
class inHtmlToPdfConverter.cs
to encapsulate the logic for converting HTML to PDF using either Puppeteer or a browser command line.GetOrCreatePdf
method inReportSheetCache.cs
to use a newHtmlToPdfConverter
class for generating PDF data, replacing the previous Puppeteer and browser command line logic.GetReportSheetBrowser
,MovePdfToCache
,GetReportSheetPuppeteer
,CreateReportSheetPdfBrowser
,CreateHtmlFile
, andDeleteTempPathFolder
methods fromReportSheetCache.cs
as they are now handled by the newHtmlToPdfConverter
class.ReportSheet
action inMatch.cs
to use the new PDF generation logic.ReportSheet.cshtml
to a newer version and adjusted the print styles accordingly.