- графическая тема GRUB (фон, подсветка выбранного пункта, полоса автозапуска) в image/grub, подключается в build-iso.sh; при отсутствии модулей GRUB меню остаётся текстовым; - пункты меню переведены: «Установить Virtuality X.Y.Z», «Загрузить с другого диска», «Настройки UEFI», «Проверить память»; - tests/render_html.mjs рендерит HTML в PNG (для фона темы). Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019LEUXMcdZo7b87mjkUsPgg
11 строки
623 B
JavaScript
11 строки
623 B
JavaScript
import { createRequire } from 'node:module';
|
|
const { chromium } = createRequire(import.meta.url)('playwright');
|
|
// Render an HTML file to PNG. Usage: node tests/render_html.mjs in.html out.png [width] [height]
|
|
const [,, html, out, width = '1024', height = '768'] = process.argv;
|
|
const browser = await chromium.launch();
|
|
const page = await browser.newPage({ viewport: { width: +width, height: +height }, deviceScaleFactor: 1 });
|
|
await page.goto('file://' + (html.startsWith('/') ? html : process.cwd() + '/' + html));
|
|
await page.waitForTimeout(300);
|
|
await page.screenshot({ path: out, type: 'png' });
|
|
await browser.close();
|