18 Commits

Author SHA1 Message Date
fed32c6cbe 1.12.9
All checks were successful
Deploy to Production / deploy (push) Successful in 16s
2026-02-12 22:47:30 +01:00
99052a2b6c feat: enhance mobile PWA install banner 2026-02-12 22:38:03 +01:00
f483d39a2c chore(release): bump version for deployment check
All checks were successful
Deploy to Production / deploy (push) Successful in 16s
2026-02-12 22:24:18 +01:00
29952b22e7 fix(ci): remove volume mount for nginx.conf
All checks were successful
Deploy to Production / deploy (push) Successful in 3s
2026-02-12 22:20:55 +01:00
c42210ac24 fix(ci): force remove old container before deploy
Some checks failed
Deploy to Production / deploy (push) Failing after 7s
2026-02-12 22:14:55 +01:00
0799cb2162 fix(ci): force remove old container before deploy
Some checks failed
Deploy to Production / deploy (push) Failing after 7s
2026-02-12 22:12:51 +01:00
2cd2291d03 chore: trigger ci retry
Some checks failed
Deploy to Production / deploy (push) Failing after 23s
2026-02-12 22:08:08 +01:00
ec20d5ee8f chore: release 1.12.7
Some checks failed
Deploy to Production / deploy (push) Failing after 1s
2026-02-12 21:57:00 +01:00
b20a829d37 chore: release 1.12.6
Some checks failed
Deploy to Production / deploy (push) Failing after 9s
2026-02-12 21:15:19 +01:00
988c4a899b ci: add gitea actions workflow
Some checks failed
Deploy to Production / deploy (push) Has been cancelled
2026-02-12 21:10:46 +01:00
d8faa308e6 chore: release 1.12.5 2026-02-12 20:50:18 +01:00
6bddb24bfe chore: remove redundant check_i18n.js script 2026-02-12 20:50:16 +01:00
1c2be3567a chore: bump version to 1.12.4 2026-02-12 20:41:22 +01:00
Grzegorz Kućmierz
d62cec415b Update README with screenshot and play link
Added screenshot to README and updated play instructions.
2026-02-12 20:34:22 +01:00
8be28a4472 docs: update application screenshot 2026-02-12 20:22:24 +01:00
48778b3e8a chore: ignore and remove .DS_Store files 2026-02-12 20:18:48 +01:00
8bd5d5c3e6 chore: bump version to 1.12.3 2026-02-12 20:13:10 +01:00
cf37ccd843 chore: remove dev dependencies (puppeteer, sharp) 2026-02-12 20:11:06 +01:00
12 changed files with 132 additions and 1786 deletions

BIN
.DS_Store vendored

Binary file not shown.

View File

@@ -0,0 +1,23 @@
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: |
# Próba zatrzymania i usunięcia starego kontenera (ignoruje błąd jeśli nie istnieje)
docker compose down --remove-orphans || true
docker rm -f nonograms-app || true
# Start nowej wersji
docker compose up -d --build

2
.gitignore vendored
View File

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

View File

@@ -2,12 +2,12 @@
## Description ## Description
![Nonograms Application Screenshot](public/screenshot.png)
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: 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 - Clean UX with keyboard and touch support
- Multiple languages and PWA support (installable on desktop and mobile) - Multiple languages and PWA support (installable on desktop and mobile)
- Difficulty simulation and guide to learn solving strategies - Difficulty simulation and guide to learn solving strategies
- Shareable puzzles and persistent progress - Shareable puzzles and persistent progress
![Nonograms Application Screenshot](public/screenshot.png)
Play online at https://nonograms.7u.pl or install as a PWA for an app-like experience. Play online at https://nonograms.7u.pl or install as a PWA for an app-like experience.

View File

@@ -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));

View File

@@ -10,5 +10,5 @@ services:
- "8081:80" - "8081:80"
restart: unless-stopped restart: unless-stopped
# Uncomment the following lines if you want to mount the configuration locally for development/testing # Uncomment the following lines if you want to mount the configuration locally for development/testing
volumes: # volumes:
- ./nginx.conf:/etc/nginx/conf.d/default.conf:ro # - ./nginx.conf:/etc/nginx/conf.d/default.conf:ro

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.9",
"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();

View File

@@ -164,15 +164,23 @@ onUnmounted(() => {
<FixedBar /> <FixedBar />
<div v-if="(canInstall || (isIos && !isStandalone)) && !installDismissed" class="install-banner"> <div v-if="(canInstall || (isIos && !isStandalone)) && !installDismissed" class="install-banner">
<div class="install-text"> <div class="install-content">
<span v-if="isIos && !isStandalone">{{ t('pwa.installIos') }}</span> <img src="/pwa-192x192.png" alt="App Icon" class="install-icon" />
<span v-else>{{ t('pwa.installTitle') }}</span> <div class="install-text">
<div class="install-title">{{ t('app.title') }}</div>
<div class="install-desc">
<span v-if="isIos && !isStandalone">{{ t('pwa.installIos') }}</span>
<span v-else>{{ t('pwa.installTitle') }}</span>
</div>
</div>
</div> </div>
<div class="install-actions"> <div class="install-actions">
<button v-if="!isIos" class="btn-neon secondary install-btn" @click="handleInstall"> <button v-if="!isIos" class="btn-neon secondary install-btn" @click="handleInstall">
{{ installLabel }} {{ installLabel }}
</button> </button>
<button class="install-close" @click="installDismissed = true">×</button> <button class="install-close" @click="installDismissed = true" aria-label="Close">
</button>
</div> </div>
</div> </div>
@@ -209,7 +217,7 @@ onUnmounted(() => {
.game-container { .game-container {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
align-items: stretch; /* was center */ align-items: stretch;
gap: 20px; gap: 20px;
width: 100%; width: 100%;
padding-bottom: 50px; padding-bottom: 50px;
@@ -217,38 +225,111 @@ onUnmounted(() => {
} }
.install-banner { .install-banner {
background: var(--banner-bg); position: fixed;
border: 1px solid var(--banner-border); bottom: 0;
border-radius: 8px;
padding: 10px 20px;
display: flex;
justify-content: space-between;
align-items: center;
width: 90%;
max-width: 600px;
margin: 0 auto 20px auto; /* Center it manually */
box-shadow: var(--banner-shadow);
position: sticky;
left: 0; left: 0;
right: 0; width: 100%;
background: var(--panel-bg);
backdrop-filter: blur(12px);
-webkit-backdrop-filter: blur(12px);
border-top: 1px solid var(--neon-cyan);
box-shadow: 0 -4px 30px rgba(0, 242, 254, 0.15);
padding: 16px 20px;
padding-bottom: max(16px, env(safe-area-inset-bottom));
display: flex;
flex-direction: column;
gap: 16px;
z-index: 2000;
animation: slideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
@media (min-width: 768px) {
.install-banner {
width: 400px;
bottom: 24px;
right: 24px;
left: auto;
border-radius: 12px;
border: 1px solid var(--neon-cyan);
padding-bottom: 16px;
}
}
.install-content {
display: flex;
align-items: center;
gap: 16px;
}
.install-icon {
width: 48px;
height: 48px;
border-radius: 10px;
box-shadow: 0 2px 8px rgba(0,0,0,0.3);
} }
.install-text { .install-text {
flex: 1;
display: flex;
flex-direction: column;
gap: 4px;
}
.install-title {
font-weight: bold;
color: var(--neon-cyan);
font-size: 1.1rem;
}
.install-desc {
font-size: 0.9rem;
color: var(--text-color); color: var(--text-color);
line-height: 1.3;
} }
.install-actions { .install-actions {
display: flex; display: flex;
gap: 10px;
align-items: center; align-items: center;
justify-content: space-between;
gap: 12px;
}
.install-btn {
flex: 1;
padding: 10px;
font-size: 0.95rem;
justify-content: center;
} }
.install-close { .install-close {
background: transparent; background: transparent;
border: none; border: none;
color: var(--text-muted); color: var(--text-muted);
font-size: 1.5rem; font-size: 1.2rem;
cursor: pointer; cursor: pointer;
width: 36px;
height: 36px;
display: flex;
align-items: center;
justify-content: center;
border-radius: 50%;
transition: background 0.2s;
}
.install-close:hover {
background: rgba(255,255,255,0.1);
color: var(--text-color);
}
@keyframes slideUp {
from {
transform: translateY(100%);
opacity: 0;
}
to {
transform: translateY(0);
opacity: 1;
}
} }
.game-layout { .game-layout {

BIN
src/assets/.DS_Store vendored

Binary file not shown.