Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/pr-validation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ jobs:
}

// Page status table
const pages = ['home', 'news', 'about', 'screenshots', 'downloads', 'quick-manual', 'support', 'license'];
const pages = ['home', 'screenshots', 'documentation', 'downloads', 'support'];
const pageRows = pages.map(p => {
const desktopImg = report.images.find(i => i.name === `${p}-desktop.png`);
const mobileImg = report.images.find(i => i.name === `${p}-mobile.png`);
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added e2e/pr-screenshots/documentation-dark-mobile.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added e2e/pr-screenshots/downloads-dark-desktop.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added e2e/pr-screenshots/downloads-dark-mobile.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added e2e/pr-screenshots/downloads-light-desktop.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added e2e/pr-screenshots/downloads-light-mobile.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added e2e/pr-screenshots/home-dark-desktop.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added e2e/pr-screenshots/home-dark-mobile.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added e2e/pr-screenshots/home-light-desktop.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added e2e/pr-screenshots/home-light-mobile.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added e2e/pr-screenshots/screenshots-dark-desktop.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added e2e/pr-screenshots/screenshots-dark-mobile.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added e2e/pr-screenshots/screenshots-light-desktop.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added e2e/pr-screenshots/screenshots-light-mobile.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added e2e/pr-screenshots/support-dark-desktop.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added e2e/pr-screenshots/support-dark-mobile.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added e2e/pr-screenshots/support-light-desktop.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added e2e/pr-screenshots/support-light-mobile.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
20 changes: 11 additions & 9 deletions e2e/screenshots.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,10 @@ import { expectScreenshot, printWarningSummary } from './visual';

const pages = [
{ path: '/', name: 'home' },
{ path: '/news', name: 'news' },
{ path: '/about', name: 'about' },
{ path: '/screenshots', name: 'screenshots' },
{ path: '/documentation', name: 'documentation' },
{ path: '/downloads', name: 'downloads' },
{ path: '/quick-manual', name: 'quick-manual' },
{ path: '/support', name: 'support' },
{ path: '/license', name: 'license' },
];

const MOBILE_VIEWPORT = { width: 375, height: 812 };
Expand Down Expand Up @@ -38,14 +35,19 @@ test.describe('mobile screenshots', () => {

test.describe('redirects', () => {
const redirects = [
{ from: '/news.html', to: '/news' },
{ from: '/about.html', to: '/about' },
{ from: '/news', to: '/support' },
{ from: '/news.html', to: '/support' },
{ from: '/about', to: '/documentation' },
{ from: '/about.html', to: '/documentation' },
{ from: '/screenshots.html', to: '/screenshots' },
{ from: '/downloads.html', to: '/downloads' },
{ from: '/quick_manual', to: '/quick-manual' },
{ from: '/quick_manual.html', to: '/quick-manual' },
{ from: '/quick_manual', to: '/documentation' },
{ from: '/quick_manual.html', to: '/documentation' },
{ from: '/quick-manual', to: '/documentation' },
{ from: '/quick-manual.html', to: '/documentation' },
{ from: '/support.html', to: '/support' },
{ from: '/license.html', to: '/license' },
{ from: '/license', to: '/support' },
{ from: '/license.html', to: '/support' },
];

for (const { from, to } of redirects) {
Expand Down
Binary file removed e2e/screenshots/about-desktop.png
Binary file not shown.
Binary file removed e2e/screenshots/about-mobile.png
Binary file not shown.
Binary file added e2e/screenshots/documentation-desktop.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added e2e/screenshots/documentation-mobile.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified e2e/screenshots/downloads-desktop.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified e2e/screenshots/downloads-mobile.png
Binary file modified e2e/screenshots/home-desktop.png
Binary file modified e2e/screenshots/home-mobile.png
Binary file removed e2e/screenshots/license-desktop.png
Diff not rendered.
Binary file removed e2e/screenshots/license-mobile.png
Diff not rendered.
Binary file removed e2e/screenshots/news-desktop.png
Diff not rendered.
Binary file removed e2e/screenshots/news-mobile.png
Diff not rendered.
Binary file removed e2e/screenshots/quick-manual-desktop.png
Diff not rendered.
Binary file removed e2e/screenshots/quick-manual-mobile.png
Diff not rendered.
Binary file modified e2e/screenshots/screenshots-desktop.png
Binary file modified e2e/screenshots/screenshots-mobile.png
Binary file modified e2e/screenshots/support-desktop.png
Binary file modified e2e/screenshots/support-mobile.png
1 change: 0 additions & 1 deletion eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ const eslintConfig = [
...compat.extends('next/core-web-vitals', 'next/typescript', 'prettier'),
{
rules: {
'react/jsx-no-target-blank': 'off',
'prefer-const': 'error',
},
},
Expand Down
7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
"author": {
"name": "Volodymyr Vreshch",
"email": "vreshch@gmail.com",
"url": "http://vreshch.com"
"url": "https://vreshch.com"
},
"homepage": "http://diffractwd.com",
"homepage": "https://diffractwd.com",
"repository": {
"type": "git",
"url": "git+https://github.com/vreshch/diffractwd.com.git"
Expand All @@ -29,7 +29,8 @@
"test:unit": "vitest run",
"test:watch": "vitest",
"test:e2e": "npx playwright test",
"test:e2e:ui": "npx playwright test --ui"
"test:e2e:ui": "npx playwright test --ui",
"verify": "npx tsc --noEmit && next lint && npm run build && vitest run"
},
"dependencies": {
"clsx": "^2.1.1",
Expand Down
Binary file added public/hero.jpg
Binary file modified public/screenshots/screenshot1_mini.jpg
Binary file modified public/screenshots/screenshot2_mini.jpg
Binary file modified public/screenshots/screenshot3_mini.jpg
Binary file modified public/screenshots/screenshot4_mini.jpg
70 changes: 0 additions & 70 deletions src/app/about/page.tsx

This file was deleted.

Loading