Merge branch 'main' into fix/deployment-documentation

This commit is contained in:
Decobus 2025-07-06 20:10:28 +03:00
commit 7a09abfcb3
2 changed files with 2 additions and 15 deletions

View file

@ -61,27 +61,14 @@ function generateSVG(size, isMaskable = false) {
</svg>`;
}
/**
* Convert SVG to PNG using a simple method
* Note: In a real project, you'd use a proper SVG to PNG converter
*/
function generatePNGPlaceholder(size, isMaskable = false) {
// For this example, we'll create a simple data URL
// In a real implementation, you'd use sharp, canvas, or similar
const svgContent = generateSVG(size, isMaskable);
return svgContent;
}
// Generate all required icon sizes
console.log('🎨 Generating PWA icons...');
// Generate regular icons
for (const size of SIZES) {
const svgContent = generateSVG(size, false);
const filename = `icon-${size}.png`;
const filepath = path.join(iconsDir, filename);
// For now, save as SVG (in real implementation, convert to PNG)
// Save as SVG
const svgFilename = `icon-${size}.svg`;
const svgFilepath = path.join(iconsDir, svgFilename);
fs.writeFileSync(svgFilepath, svgContent);