3 Commits

Author SHA1 Message Date
6a8853e99b 1.9.14 2026-02-12 15:02:47 +01:00
4dab0e2c63 chore: homepage w package.json; __APP_HOMEPAGE__ w Vite; użycie w shareUtils 2026-02-12 15:00:00 +01:00
b3e08b53fc Update README.md 2026-02-12 13:33:02 +00:00
5 changed files with 9 additions and 7 deletions

View File

@@ -1,6 +1,6 @@
# Nonograms # Nonograms
## English Description ## 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: 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

4
package-lock.json generated
View File

@@ -1,12 +1,12 @@
{ {
"name": "vue-nonograms-solid", "name": "vue-nonograms-solid",
"version": "1.9.13", "version": "1.9.14",
"lockfileVersion": 3, "lockfileVersion": 3,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "vue-nonograms-solid", "name": "vue-nonograms-solid",
"version": "1.9.13", "version": "1.9.14",
"dependencies": { "dependencies": {
"fireworks-js": "^2.10.8", "fireworks-js": "^2.10.8",
"flag-icons": "^7.5.0", "flag-icons": "^7.5.0",

View File

@@ -1,6 +1,7 @@
{ {
"name": "vue-nonograms-solid", "name": "vue-nonograms-solid",
"version": "1.9.13", "version": "1.9.14",
"homepage": "https://nonograms.7u.pl/",
"type": "module", "type": "module",
"scripts": { "scripts": {
"dev": "vite", "dev": "vite",

View File

@@ -4,7 +4,7 @@ export function buildShareCanvas(data, t, formattedTime) {
const { grid, size, currentDensity, guideUsageCount } = data; const { grid, size, currentDensity, guideUsageCount } = data;
if (!grid || !grid.length) return null; if (!grid || !grid.length) return null;
const appUrl = 'https://nonograms.7u.pl/'; const appUrl = typeof __APP_HOMEPAGE__ !== 'undefined' ? __APP_HOMEPAGE__ : '';
const maxBoard = 640; const maxBoard = 640;
const cellSize = Math.max(8, Math.floor(maxBoard / size)); const cellSize = Math.max(8, Math.floor(maxBoard / size));
const boardSize = cellSize * size; const boardSize = cellSize * size;
@@ -119,7 +119,7 @@ export function buildShareSVG(data, t, formattedTime) {
const { grid, size, currentDensity, guideUsageCount } = data; const { grid, size, currentDensity, guideUsageCount } = data;
if (!grid || !grid.length) return null; if (!grid || !grid.length) return null;
const appUrl = 'https://nonograms.7u.pl/'; const appUrl = typeof __APP_HOMEPAGE__ !== 'undefined' ? __APP_HOMEPAGE__ : '';
const maxBoard = 640; const maxBoard = 640;
const cellSize = Math.max(8, Math.floor(maxBoard / size)); const cellSize = Math.max(8, Math.floor(maxBoard / size));
const boardSize = cellSize * size; const boardSize = cellSize * size;

View File

@@ -5,7 +5,8 @@ import path from 'path'
export default defineConfig({ export default defineConfig({
define: { define: {
'__APP_VERSION__': JSON.stringify(process.env.npm_package_version) '__APP_VERSION__': JSON.stringify(process.env.npm_package_version),
'__APP_HOMEPAGE__': JSON.stringify(process.env.npm_package_homepage)
}, },
plugins: [ plugins: [
vue(), vue(),