Python 33.5%
JavaScript 30.1%
TypeScript 25%
CSS 10%
Shell 1.4%
1// Auteur : Simon-Pierre Boucher — contact@spboucher.ai2// ka-ui/gen-logos-512.mjs — rend chaque assets/<id>/favicon.svg en logo-512.png3// (512×512, fond transparent) pour les apps natives iOS/Android/macOS.4// Usage : node gen-logos-512.mjs5import { chromium } from "playwright";6import { readFileSync, readdirSync, existsSync } from "fs";7import { dirname, join } from "path";8import { fileURLToPath } from "url";910const here = dirname(fileURLToPath(import.meta.url));11const assets = join(here, "assets");12const browser = await chromium.launch();13const page = await browser.newPage({ viewport: { width: 512, height: 512 } });14for (const id of readdirSync(assets)) {15 const svgPath = join(assets, id, "favicon.svg");16 if (!existsSync(svgPath)) continue;17 const svg = readFileSync(svgPath, "utf8").replace(18 'width="64" height="64"',19 'width="512" height="512"',20 );21 await page.setContent(`<body style="margin:0">${svg}</body>`);22 await page.screenshot({ path: join(assets, id, "logo-512.png"), omitBackground: true });23 console.log("✓", id);24}25await browser.close();26