Compare commits
10 Commits
9a65dfe55d
...
v1.12.6
| Author | SHA1 | Date | |
|---|---|---|---|
|
b20a829d37
|
|||
|
988c4a899b
|
|||
|
d8faa308e6
|
|||
|
6bddb24bfe
|
|||
|
1c2be3567a
|
|||
|
|
d62cec415b | ||
|
8be28a4472
|
|||
|
48778b3e8a
|
|||
|
8bd5d5c3e6
|
|||
|
cf37ccd843
|
18
.gitea/workflows/deploy.yaml
Normal file
18
.gitea/workflows/deploy.yaml
Normal file
@@ -0,0 +1,18 @@
|
||||
name: Deploy to Production
|
||||
run-name: Deploy to Production by @${{ github.actor }}
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: self-hosted
|
||||
steps:
|
||||
- name: Check out repository code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Build and deploy with Docker Compose
|
||||
run: |
|
||||
docker compose up -d --build
|
||||
2
.gitignore
vendored
2
.gitignore
vendored
@@ -1,3 +1,3 @@
|
||||
|
||||
.gpg/
|
||||
node_modules
|
||||
.DS_Store
|
||||
|
||||
@@ -2,12 +2,12 @@
|
||||
|
||||
## Description
|
||||
|
||||

|
||||
|
||||
Nonograms is a modern, fast, and accessible logic puzzle game (also known as Picross or Griddlers). Solve pixel-art puzzles by marking cells according to numeric clues for rows and columns. The app features:
|
||||
- Clean UX with keyboard and touch support
|
||||
- Multiple languages and PWA support (installable on desktop and mobile)
|
||||
- Difficulty simulation and guide to learn solving strategies
|
||||
- Shareable puzzles and persistent progress
|
||||
|
||||

|
||||
|
||||
Play online at https://nonograms.7u.pl or install as a PWA for an app-like experience.
|
||||
|
||||
@@ -1,37 +0,0 @@
|
||||
|
||||
const fs = require('fs');
|
||||
|
||||
const fileContent = fs.readFileSync('src/composables/useI18n.js', 'utf8');
|
||||
|
||||
// Extract the messages object
|
||||
const match = fileContent.match(/const messages = ({[\s\S]*?});/);
|
||||
if (!match) {
|
||||
console.error('Could not find messages object');
|
||||
process.exit(1);
|
||||
}
|
||||
|
||||
// We need to make the string valid JS to eval it.
|
||||
// It seems the content inside `const messages = { ... };` is valid JS object notation.
|
||||
// But we need to be careful about imports or other things if we were to `eval` the whole file.
|
||||
// We'll just `eval` the object part.
|
||||
|
||||
const messagesStr = match[1];
|
||||
const messages = eval(`(${messagesStr})`);
|
||||
|
||||
const enKeys = Object.keys(messages.en);
|
||||
const languages = Object.keys(messages);
|
||||
|
||||
const missing = {};
|
||||
|
||||
languages.forEach(lang => {
|
||||
if (lang === 'en') return;
|
||||
|
||||
const langKeys = Object.keys(messages[lang]);
|
||||
const missingKeys = enKeys.filter(k => !langKeys.includes(k));
|
||||
|
||||
if (missingKeys.length > 0) {
|
||||
missing[lang] = missingKeys;
|
||||
}
|
||||
});
|
||||
|
||||
console.log(JSON.stringify(missing, null, 2));
|
||||
1677
package-lock.json
generated
1677
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "vue-nonograms-solid",
|
||||
"version": "1.12.2",
|
||||
"version": "1.12.6",
|
||||
"homepage": "https://nonograms.7u.pl/",
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
@@ -20,8 +20,6 @@
|
||||
"@vitejs/plugin-vue": "^5.0.4",
|
||||
"@vue/test-utils": "^2.4.6",
|
||||
"jsdom": "^28.0.0",
|
||||
"puppeteer": "^24.37.2",
|
||||
"sharp": "^0.34.5",
|
||||
"vite": "^5.1.4",
|
||||
"vite-plugin-pwa": "^0.20.5",
|
||||
"vitest": "^4.0.18"
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 448 KiB After Width: | Height: | Size: 1.4 MiB |
@@ -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
BIN
src/assets/.DS_Store
vendored
Binary file not shown.
Reference in New Issue
Block a user