feat(proj): init

This commit is contained in:
vl.arkhangelskii
2026-09-21 03:53:15 +03:00
commit 3e34f391b3
258 changed files with 20968 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
import puppeteer from "puppeteer-core";
const url = process.argv[2] || "http://127.0.0.1:8766/.tmp-tiles/ui-preview.html";
const out = process.argv[3] || "c:/Users/ggpo1/Desktop/tile-server/.tmp-tiles/shots/ui-desktop.png";
const width = Number(process.argv[4] || 1440);
const height = Number(process.argv[5] || 900);
const browser = await puppeteer.launch({
executablePath: "C:\\Program Files\\Google\\Chrome\\Application\\chrome.exe",
headless: "new",
args: ["--no-sandbox"]
});
const page = await browser.newPage();
await page.setViewport({ width, height, deviceScaleFactor: 1 });
await page.goto(url, { waitUntil: "networkidle0", timeout: 30000 });
await page.screenshot({ path: out });
await browser.close();
console.log("saved", out, width, height);