4 Commits

7 changed files with 4 additions and 1725 deletions

BIN
.DS_Store vendored

Binary file not shown.

2
.gitignore vendored
View File

@@ -1,3 +1,3 @@
.gpg/ .gpg/
node_modules node_modules
.DS_Store

1677
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -1,6 +1,6 @@
{ {
"name": "vue-nonograms-solid", "name": "vue-nonograms-solid",
"version": "1.12.2", "version": "1.12.3",
"homepage": "https://nonograms.7u.pl/", "homepage": "https://nonograms.7u.pl/",
"type": "module", "type": "module",
"scripts": { "scripts": {
@@ -20,8 +20,6 @@
"@vitejs/plugin-vue": "^5.0.4", "@vitejs/plugin-vue": "^5.0.4",
"@vue/test-utils": "^2.4.6", "@vue/test-utils": "^2.4.6",
"jsdom": "^28.0.0", "jsdom": "^28.0.0",
"puppeteer": "^24.37.2",
"sharp": "^0.34.5",
"vite": "^5.1.4", "vite": "^5.1.4",
"vite-plugin-pwa": "^0.20.5", "vite-plugin-pwa": "^0.20.5",
"vitest": "^4.0.18" "vitest": "^4.0.18"

Binary file not shown.

Before

Width:  |  Height:  |  Size: 448 KiB

After

Width:  |  Height:  |  Size: 1.4 MiB

View File

@@ -1,46 +0,0 @@
import puppeteer from 'puppeteer';
import path from 'path';
import { fileURLToPath } from 'url';
const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename);
async function takeScreenshot() {
console.log('Launching browser...');
const browser = await puppeteer.launch({
headless: "new",
args: ['--no-sandbox', '--disable-setuid-sandbox']
});
const page = await browser.newPage();
// Set viewport to a nice desktop size
await page.setViewport({ width: 1280, height: 800, deviceScaleFactor: 2 });
console.log('Navigating to app...');
try {
// Try local network IP if localhost fails, but localhost should work in this env
await page.goto('http://localhost:5173', { waitUntil: 'networkidle0', timeout: 10000 });
} catch (e) {
console.log('Retrying with networkidle2...');
try {
await page.goto('http://localhost:5173', { waitUntil: 'networkidle2', timeout: 10000 });
} catch (e2) {
console.error('Could not load page:', e2.message);
await browser.close();
process.exit(1);
}
}
// Wait for animations/rendering
await new Promise(r => setTimeout(r, 2000));
const screenshotPath = path.join(__dirname, '../public/screenshot.png');
console.log(`Taking screenshot to ${screenshotPath}...`);
await page.screenshot({ path: screenshotPath });
await browser.close();
console.log('Done.');
}
takeScreenshot();

BIN
src/assets/.DS_Store vendored

Binary file not shown.