Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b5517f05c9 | ||
|
|
732e6364b0 | ||
|
|
57e5cae1b8 | ||
|
|
06b141c63c | ||
|
|
0741867294 | ||
|
|
b91f6504d9 | ||
|
|
94c7e4ef47 | ||
|
|
802ba0fc35 | ||
|
|
20871c27dc | ||
|
|
6650aa6bf7 |
No files matched your search
@@ -0,0 +1,51 @@
|
||||
name: Accessibility barrier
|
||||
description: Something on the site is hard or impossible to use with your setup
|
||||
labels: [accessibility]
|
||||
body:
|
||||
- type: markdown
|
||||
attributes:
|
||||
value: |
|
||||
Thank you — accessibility reports are treated as expertise, not complaints. You never
|
||||
need to tell us about a disability, and every field except the first two is optional.
|
||||
Prefer email? Write to accessibility@poli0981.dev (no GitHub account needed). English
|
||||
or Vietnamese is fine. What happens next: [ACCESSIBILITY.md](https://github.com/poli0981/softharbor/blob/main/ACCESSIBILITY.md#how-we-respond).
|
||||
- type: textarea
|
||||
id: what-happened
|
||||
attributes:
|
||||
label: What were you trying to do, and what got in the way?
|
||||
description: For example "I could not reach the Filters button with Tab" or "NVDA reads the search box as 'edit' with no name".
|
||||
validations:
|
||||
required: true
|
||||
- type: input
|
||||
id: page-url
|
||||
attributes:
|
||||
label: Page address
|
||||
placeholder: https://softharbor.net/apps
|
||||
validations:
|
||||
required: true
|
||||
- type: textarea
|
||||
id: steps
|
||||
attributes:
|
||||
label: Steps to reproduce
|
||||
description: Optional. The keys you pressed or the commands you used, if you remember them.
|
||||
- type: input
|
||||
id: environment
|
||||
attributes:
|
||||
label: Device, operating system, browser and assistive technology
|
||||
description: Optional, with versions if you know them.
|
||||
placeholder: Windows 11, Firefox, NVDA
|
||||
- type: dropdown
|
||||
id: severity
|
||||
attributes:
|
||||
label: How much does it get in your way?
|
||||
description: Optional — we confirm severity during triage.
|
||||
options:
|
||||
- Critical — I cannot find an app, read a listing, or open its links
|
||||
- Serious — it is hard, but there is a way around it
|
||||
- Moderate — an annoyance or something inconsistent
|
||||
- Minor — barely affects me
|
||||
- type: textarea
|
||||
id: media
|
||||
attributes:
|
||||
label: Screenshot or recording
|
||||
description: Optional — drag a file here if you are comfortable sharing one.
|
||||
@@ -1,5 +1,5 @@
|
||||
name: Bug report
|
||||
description: Something on the site is broken
|
||||
description: Something on the site is broken or hard to use
|
||||
labels: [bug]
|
||||
body:
|
||||
# Field `id`s are load-bearing: they are the prefill query params used by
|
||||
|
||||
@@ -2,7 +2,13 @@ blank_issues_enabled: false
|
||||
contact_links:
|
||||
- name: Questions & discussion
|
||||
url: https://github.com/poli0981/softharbor/discussions
|
||||
about: General questions, suggestions and anything that is not a bug or an app request.
|
||||
about: Questions, and anything that is not a bug, an app request or a listing change. New features are not taken (maintenance mode).
|
||||
- name: Maintenance mode — what is accepted
|
||||
url: https://github.com/poli0981/softharbor/discussions/75
|
||||
about: Listings, security re-checks, bugs, UI/UX and accessibility fixes are; new features are not.
|
||||
- name: Accessibility statement
|
||||
url: https://softharbor.net/legal/accessibility
|
||||
about: What the site aims for, what is known, and how accessibility reports are handled (also by email — no account needed).
|
||||
- name: Report a security issue
|
||||
url: https://github.com/poli0981/softharbor/security/advisories/new
|
||||
about: Private vulnerability reporting — please do NOT open a public issue.
|
||||
@@ -0,0 +1,42 @@
|
||||
name: Listing change
|
||||
description: Remove or correct a listed app, or ask for its security check to be re-run
|
||||
labels: [listing-change]
|
||||
body:
|
||||
- type: markdown
|
||||
attributes:
|
||||
value: |
|
||||
A suspected **malicious or hijacked download** is a security report, not an issue —
|
||||
please report it privately ([SECURITY.md](https://github.com/poli0981/softharbor/blob/main/SECURITY.md)).
|
||||
Is it **your own app**? You can also write to takedown@poli0981.dev.
|
||||
- type: input
|
||||
id: app
|
||||
attributes:
|
||||
label: Which app?
|
||||
description: Its page on the site, or its name.
|
||||
placeholder: https://softharbor.net/apps/7-zip
|
||||
validations:
|
||||
required: true
|
||||
- type: dropdown
|
||||
id: change
|
||||
attributes:
|
||||
label: What should change?
|
||||
options:
|
||||
- Remove — it is now subscription-only, or no longer free / buy-once
|
||||
- Remove — abandoned, discontinued or unsafe to recommend
|
||||
- Correct a link — homepage, repository or download page moved
|
||||
- Correct a detail — pricing, licence, platforms, developer or summary
|
||||
- Re-check its security status (VirusTotal)
|
||||
validations:
|
||||
required: true
|
||||
- type: textarea
|
||||
id: evidence
|
||||
attributes:
|
||||
label: Evidence
|
||||
description: Links to the developer's own pages, an announcement, a changelog or a scan — the decision follows the evidence.
|
||||
validations:
|
||||
required: true
|
||||
- type: textarea
|
||||
id: details
|
||||
attributes:
|
||||
label: Anything else
|
||||
description: Optional.
|
||||
@@ -0,0 +1,41 @@
|
||||
<!-- Title: Conventional Commits, lowercase, imperative — it becomes the squash
|
||||
commit and the changelog line (CONTRIBUTING.md). One logical change per PR;
|
||||
for data, one app per PR unless a decision-log entry says otherwise.
|
||||
Maintenance mode (D36): fixes, data and upkeep only — feature PRs are closed. -->
|
||||
|
||||
## What and why
|
||||
|
||||
<!-- One or two sentences. Link the issue: "Closes #123". -->
|
||||
|
||||
## Checks
|
||||
|
||||
- [ ] A fix, a data change or upkeep — not a new feature
|
||||
([maintenance mode](../CONTRIBUTING.md#maintenance-mode))
|
||||
- [ ] `pnpm lint && pnpm check && pnpm coverage && pnpm build && pnpm knip && pnpm e2e` pass locally
|
||||
- [ ] Docs that describe the changed behaviour are updated (`docs/`, README, CHANGELOG for
|
||||
visitor-facing changes)
|
||||
- [ ] Every new UI string exists in both `src/i18n/en.json` and `src/i18n/vi.json`
|
||||
|
||||
## Accessibility ([ACCESSIBILITY.md](../ACCESSIBILITY.md))
|
||||
|
||||
Tick what applies, or write "no UI change".
|
||||
|
||||
- [ ] Keyboard only: every control reachable in a sensible order, focus always visible,
|
||||
no traps, Esc closes what it opened
|
||||
- [ ] Names and states: each control's accessible name matches its visible label;
|
||||
expanded / selected / checked states are announced
|
||||
- [ ] Screen-reader spot check (Narrator, NVDA or VoiceOver) for new or changed components
|
||||
- [ ] Nothing by colour alone; contrast holds in light and dark; forced colours still
|
||||
show the state
|
||||
- [ ] 200 % zoom and 320 px width: nothing cut off, no sideways scroll outside tables
|
||||
- [ ] Motion respects reduced-motion (system and the display menu)
|
||||
|
||||
## Data PRs only
|
||||
|
||||
- [ ] Checked against the inclusion criteria (docs/00 §3) and the vetting checklist
|
||||
(docs/09 §6)
|
||||
- [ ] Summaries written from scratch in English **and** Vietnamese
|
||||
- [ ] New entries start `unverified` with `evidence: null`; only the maintainer moves one
|
||||
to `clean`
|
||||
- [ ] Links are the developer's own domain or official repository — no portals, no
|
||||
tracking parameters
|
||||
@@ -57,7 +57,7 @@ jobs:
|
||||
# (pnpm@11.x), so CI, Dependabot, Workers Builds and laptops all run the
|
||||
# same pnpm. 6.0.10+ bootstraps with pnpm 11, which is what silenced the
|
||||
# "pnpm v10 installation layout at PNPM_HOME" warning on every run.
|
||||
- uses: pnpm/action-setup@ea17c68df8912ef543352723c149a84f56e3d413 # v6.1.0
|
||||
- uses: pnpm/action-setup@73e46992e05b19abd31f2f3c20e0e7370d762115 # v6.1.1
|
||||
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
|
||||
with:
|
||||
node-version-file: .nvmrc
|
||||
@@ -124,7 +124,7 @@ jobs:
|
||||
with:
|
||||
fetch-depth: 0 # the changed-links step diffs against the PR base
|
||||
persist-credentials: false
|
||||
- uses: pnpm/action-setup@ea17c68df8912ef543352723c149a84f56e3d413 # v6.1.0
|
||||
- uses: pnpm/action-setup@73e46992e05b19abd31f2f3c20e0e7370d762115 # v6.1.1
|
||||
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
|
||||
with:
|
||||
node-version-file: .nvmrc
|
||||
@@ -223,7 +223,7 @@ jobs:
|
||||
# makes Sonar attribute old lines to the latest commit.
|
||||
fetch-depth: 0
|
||||
persist-credentials: false
|
||||
- uses: pnpm/action-setup@ea17c68df8912ef543352723c149a84f56e3d413 # v6.1.0
|
||||
- uses: pnpm/action-setup@73e46992e05b19abd31f2f3c20e0e7370d762115 # v6.1.1
|
||||
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
|
||||
with:
|
||||
node-version-file: .nvmrc
|
||||
@@ -242,11 +242,11 @@ jobs:
|
||||
# scannerVersion pins the newest SonarScanner CLI (the action's default
|
||||
# trails it); the action verifies the download's signature.
|
||||
- name: SonarQube Cloud scan
|
||||
uses: SonarSource/sonarqube-scan-action@d209202bc7d53ff1cc128f7f907dac145c9d6ae9 # v8.3.0
|
||||
uses: SonarSource/sonarqube-scan-action@e805d875275f728fac1885b413934be6d7c63f65 # v8.4.1
|
||||
env:
|
||||
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
|
||||
with:
|
||||
scannerVersion: 8.2.0.6438
|
||||
scannerVersion: 8.3.1.16491
|
||||
args: >-
|
||||
-Dsonar.projectVersion=${{ steps.version.outputs.version }}
|
||||
-Dsonar.qualitygate.wait=true
|
||||
@@ -0,0 +1,102 @@
|
||||
# docs/12 §2 — Qodana (D35): JetBrains' WebStorm-based analysis, the third
|
||||
# analyser beside CodeQL (a required check) and SonarQube Cloud (ci.yml
|
||||
# `sonar`). Scope and the quality gate live in qodana.yaml.
|
||||
#
|
||||
# Deliberately NOT a required check: a Qodana Cloud outage, or a licence that
|
||||
# lapses, must never block a merge. A failing gate still turns this run red on
|
||||
# the PR, and the findings land in GitHub code scanning beside CodeQL's.
|
||||
#
|
||||
# Every `uses:` is pinned to a full commit SHA with the release tag in a
|
||||
# comment (SonarCloud githubactions:S7637); Dependabot's github-actions
|
||||
# ecosystem bumps both together. The action's release line also selects the
|
||||
# linter version (2026.2.x → qodana-js 2026.2).
|
||||
name: qodana
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
push:
|
||||
branches: [main]
|
||||
workflow_dispatch:
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.ref }}
|
||||
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
|
||||
|
||||
jobs:
|
||||
qodana:
|
||||
# The same guard as ci.yml `sonar`, for the same reason: runs that would
|
||||
# lack QODANA_TOKEN are skipped — Dependabot (its secrets are a separate
|
||||
# store), pull requests from forks, and the bot data PRs. The `if:` may
|
||||
# read only the `github` context; a `secrets` reference here would make the
|
||||
# whole workflow invalid.
|
||||
if: >-
|
||||
github.actor != 'dependabot[bot]' &&
|
||||
github.actor != 'github-actions[bot]' &&
|
||||
(github.event_name != 'pull_request' ||
|
||||
github.event.pull_request.head.repo.full_name == github.repository)
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 30
|
||||
permissions:
|
||||
contents: read
|
||||
checks: write # the action's annotations
|
||||
pull-requests: write # its summary comment on the PR
|
||||
security-events: write # the SARIF upload to code scanning
|
||||
steps:
|
||||
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
||||
with:
|
||||
# A PR's own head commit rather than the merge commit, so each
|
||||
# Qodana Cloud report points at a commit that exists on the branch.
|
||||
# Empty on push and dispatch, where the default ref is right.
|
||||
ref: ${{ github.event.pull_request.head.sha }}
|
||||
fetch-depth: 0
|
||||
persist-credentials: false
|
||||
- uses: pnpm/action-setup@73e46992e05b19abd31f2f3c20e0e7370d762115 # v6.1.1
|
||||
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
|
||||
with:
|
||||
node-version-file: .nvmrc
|
||||
cache: pnpm
|
||||
# Native mode (qodana.yaml) analyses on this runner: imports resolve
|
||||
# against this install, on the Node from .nvmrc.
|
||||
- run: pnpm install --frozen-lockfile
|
||||
|
||||
- name: Qodana scan
|
||||
uses: JetBrains/qodana-action@3e8d76ff0e0241618abd808682f426afe84bab3f # v2026.2.2
|
||||
with:
|
||||
# The whole project on every run, PRs included — a change can break
|
||||
# a file it does not touch.
|
||||
pr-mode: false
|
||||
# SARIF, HTML report and logs as the `qodana-report` artifact.
|
||||
upload-result: true
|
||||
# Each cache is keyed by commit; saving one per PR push would crowd
|
||||
# the repository's 10 GB cache budget (and the Playwright cache).
|
||||
cache-default-branch-only: true
|
||||
env:
|
||||
QODANA_TOKEN: ${{ secrets.QODANA_TOKEN }}
|
||||
QODANA_ENDPOINT: https://qodana.cloud
|
||||
|
||||
# Also when the gate failed — that is when the alerts matter — but only
|
||||
# if the scan got far enough to write its results.
|
||||
- name: Find the SARIF
|
||||
id: sarif
|
||||
if: ${{ !cancelled() }}
|
||||
run: |
|
||||
if [ -f "$RUNNER_TEMP/qodana/results/qodana.sarif.json" ]; then
|
||||
echo "found=true" >> "$GITHUB_OUTPUT"
|
||||
else
|
||||
echo "found=false" >> "$GITHUB_OUTPUT"
|
||||
fi
|
||||
- name: Upload to GitHub code scanning
|
||||
if: ${{ !cancelled() && steps.sarif.outputs.found == 'true' }}
|
||||
uses: github/codeql-action/upload-sarif@33d7b85da1a04171e211befe2c739303b9a4c066 # v4.39.3
|
||||
with:
|
||||
# No `category:` — Qodana's SARIF carries its own automation id
|
||||
# (`<project>/qodana/<date>`), which outranks it: code scanning
|
||||
# files these results as tool QDJS, category softharbor/qodana.
|
||||
sarif_file: ${{ runner.temp }}/qodana/results/qodana.sarif.json
|
||||
# The commit that was analysed: on a PR its head (checked out
|
||||
# above), not the merge ref that code scanning would assume.
|
||||
ref: ${{ github.event_name == 'pull_request' && format('refs/pull/{0}/head', github.event.pull_request.number) || github.ref }}
|
||||
sha: ${{ github.event.pull_request.head.sha || github.sha }}
|
||||
@@ -0,0 +1,149 @@
|
||||
# Accessibility
|
||||
|
||||
SoftHarbor exists so that anyone setting up a computer can find official software
|
||||
quickly. That has to include people who use only a keyboard, a screen reader,
|
||||
magnification, voice control or a high-contrast theme — and people with those needs
|
||||
who want to contribute.
|
||||
|
||||
This file is the project's accessibility statement for contributors: what we aim
|
||||
for, what the site already does, how changes are kept accessible, and how to report
|
||||
a barrier. The visitor-facing version, in English and Vietnamese, is
|
||||
**[softharbor.net/legal/accessibility](https://softharbor.net/legal/accessibility)**.
|
||||
Keep the two in step (docs/14 §3g).
|
||||
|
||||
## Priorities
|
||||
|
||||
- **Target: [WCAG 2.2](https://www.w3.org/TR/WCAG22/) level AA.** It guides the work;
|
||||
it is **not** a claim of verified conformance. No independent audit has been done,
|
||||
and we will not claim conformance without one that names its scope, date, method
|
||||
and evaluator.
|
||||
- **Keyboard first.** Everything is reachable and operable with the keyboard, in a
|
||||
logical order, with a visible focus indicator and no traps.
|
||||
- **Screen readers.** Semantic HTML, a heading per page and a logical outline,
|
||||
landmarks, real lists and tables, and `lang` on every page and every passage in the
|
||||
other language, so English and Vietnamese are pronounced correctly.
|
||||
- **Readable everywhere.** Contrast that holds in both themes, nothing conveyed by
|
||||
colour alone, text that zooms to 200 % and reflows to 320 CSS px.
|
||||
- **Respect the visitor's settings.** Reduced motion and forced colours (Windows
|
||||
contrast themes) from the system, plus the site's own display menu.
|
||||
|
||||
## What the site does today
|
||||
|
||||
| Area | How | Where |
|
||||
| ---------------- | -------------------------------------------------------------------------------------------- | ----------------------------------------- |
|
||||
| Skip link | "Skip to content" is the first stop on every page | `src/layouts/Base.astro` |
|
||||
| Landmarks | `header`, labelled `nav`s, `main`, `footer`, breadcrumb `nav`/`ol` | `ShHeader`, `ShFooter`, `AppDetailPage` |
|
||||
| Language | `<html lang>`, hreflang alternates, `lang` on every passage in the other language | `Base.astro`, `ShLangSwitch` |
|
||||
| Focus | Global `:focus-visible` ring, whole-card ring on app cards, visible on selected segments too | `src/styles/global.css`, `ShPrefs` |
|
||||
| Dialogs | Native `<dialog>` (`showModal`) and `popover`: focus handling and Esc from the browser | `ShLegalGate`, `ShFilterSheet`, `ShPrefs` |
|
||||
| Status messages | Result count in an `aria-live` region; search errors in a persistent `role="status"` | `AppsPage.astro`, `ShSearch` |
|
||||
| Contrast | Tokens tested: ink ≥ 7:1, text ≥ 4.5:1, control edges ≥ 3:1, light and dark | `src/styles/contrast.test.ts` |
|
||||
| Not colour alone | Security status has its own icon shape; current section underlined | `ShAppCard`, `ShHeader` |
|
||||
| Display menu | Theme, scrollbar, reduced motion, and **"/" shortcut on/off** (WCAG 2.1.4) | `ShPrefs`, `src/scripts/theme.js` |
|
||||
| Forced colours | Current section, selected segments and focus stay visible | `ShHeader`, `ShPrefs`, `ShLangSwitch` |
|
||||
| Images | No images of text; logos are decorative and the name is always text | `ShAppCard`, `ShIcon` |
|
||||
| Targets | Buttons 44 px, header controls 38–40 px, inline category links 24 px | `global.css`, `ShAppCard` |
|
||||
| Tables | `caption`, `scope="col"`, keyboard-scrollable region on narrow screens | `src/components/legal/` |
|
||||
| New tabs | The one link that opens a new tab says so to screen readers | `ShBugReport` |
|
||||
|
||||
## Contributor expectations
|
||||
|
||||
Every user-facing change keeps these guardrails. The
|
||||
[pull request template](.github/PULL_REQUEST_TEMPLATE.md) carries the checklist.
|
||||
|
||||
**Automated — CI blocks the merge.**
|
||||
|
||||
- `pnpm e2e` runs axe (`@axe-core/playwright`, WCAG 2.0/2.1/2.2 A and AA rules) on the
|
||||
main pages in both themes, on Desktop Chrome and a Pixel 7 viewport, plus the open
|
||||
legal gate, filter sheet and display menu (`e2e/smoke.spec.ts`, `e2e/a11y.spec.ts`).
|
||||
Critical, serious and moderate findings fail.
|
||||
- The same suite checks the skip link, focus return from dialogs, the shortcut switch,
|
||||
reflow at 320 px and forced colours; `pnpm test` pins contrast and the islands'
|
||||
names, roles and states.
|
||||
- If a violation genuinely cannot be fixed, say why in the PR description — never
|
||||
disable a rule silently.
|
||||
|
||||
**By hand, for anything interactive.**
|
||||
|
||||
- One keyboard-only pass: Tab / Shift+Tab reaches every control in a sensible order,
|
||||
focus is always visible, Enter / Space / arrows / Esc do what they should, and you
|
||||
can get into and out of every dialog and menu.
|
||||
- A screen-reader spot check (Narrator, NVDA or VoiceOver): headings and landmarks
|
||||
navigate, every control has a name that matches its visible label, state changes
|
||||
(expanded, selected, checked) are announced, dynamic updates are read out.
|
||||
- Zoom to 200 % and narrow to 320 px: nothing is cut off and nothing scrolls sideways
|
||||
except data tables.
|
||||
|
||||
**Content.** Logical heading levels, real lists, descriptive link text (never "click
|
||||
here"), no colour-only meaning, alternative text where an image carries meaning, and
|
||||
both languages for every UI string (hard rule 6).
|
||||
|
||||
## Reporting an accessibility barrier
|
||||
|
||||
We treat accessibility reports as expertise, not complaints. You never need to tell us
|
||||
about a disability.
|
||||
|
||||
- **Email:** accessibility@poli0981.dev — no GitHub account needed.
|
||||
- **GitHub:** the
|
||||
[Accessibility issue form](https://github.com/poli0981/softharbor/issues/new?template=accessibility.yml).
|
||||
|
||||
If you can, include the page address, what you were trying to do, what happened
|
||||
instead, and your operating system, browser and assistive technology with versions. A
|
||||
screenshot or recording is welcome and never required. English or Vietnamese.
|
||||
|
||||
### Severity
|
||||
|
||||
Maintainers assign or confirm it during triage; reporters do not have to.
|
||||
|
||||
- **Critical** — stops a core task: finding an app, reading its listing, or opening its
|
||||
official links.
|
||||
- **Serious** — significant difficulty, but a workaround exists.
|
||||
- **Moderate** — an annoyance or an inconsistent experience.
|
||||
- **Minor** — little effect on use.
|
||||
|
||||
### How we respond
|
||||
|
||||
SoftHarbor is maintained by one person; these are commitments that can be kept.
|
||||
|
||||
- A reply within **7 days**, with the severity and the next step.
|
||||
- Targets from the day the report arrives: **Critical 30 days**, **Serious 60 days**,
|
||||
**Moderate and Minor 90 days**.
|
||||
- A workaround while a fix is in progress, where one exists.
|
||||
- If a target slips: the reason, a revised date, and an update on the issue.
|
||||
- We may ask you to confirm the fix before closing.
|
||||
|
||||
## Ownership
|
||||
|
||||
Accessibility is owned by the maintainer, [@poli0981](https://github.com/poli0981):
|
||||
triaging reports, tracking known barriers, keeping this file and the site statement
|
||||
current, and re-reading both at each release.
|
||||
|
||||
## Supported environments
|
||||
|
||||
**Tested by hand** (owner, 2026-11-09): keyboard only, and the Narrator screen reader, on
|
||||
Windows 11 with Chrome, Brave and Firefox — no barriers found.
|
||||
|
||||
**Tested automatically** on every change: Chromium (Playwright Desktop Chrome and a
|
||||
Pixel 7 viewport), light and dark themes, forced colours, 320 px reflow.
|
||||
|
||||
**Intended, not yet tested by hand:** the current and previous major versions of
|
||||
Chrome, Edge, Firefox and Safari; NVDA and JAWS on Windows; VoiceOver on macOS and iOS;
|
||||
TalkBack on Android. Reports from these are especially welcome.
|
||||
|
||||
## Known limitations
|
||||
|
||||
- **Bot check.** After the legal notice is accepted, Cloudflare Turnstile runs. It is a
|
||||
third-party widget whose accessibility we do not control; if it cannot finish, the
|
||||
gate lets the visitor in anyway (after 10 s, or 120 s once it asks for a click —
|
||||
docs/14 Part 2).
|
||||
- **Vendor sites.** Every listing links to the developer's own site and installer;
|
||||
their accessibility is outside this project.
|
||||
- **Card summaries** are clamped to two lines; the full text is on the app's page.
|
||||
- **Vietnamese legal pages** are translations; the English text is canonical.
|
||||
- **No formal pass yet** with NVDA, JAWS or VoiceOver, and Lighthouse CI is not wired
|
||||
(docs/13 §2, docs/15 §2 item 8).
|
||||
|
||||
## Feedback
|
||||
|
||||
Accessibility is ongoing work. Suggestions for this statement or for how the project
|
||||
works are welcome as an issue, a discussion or a pull request.
|
||||
+90
-2
@@ -4,6 +4,89 @@ All notable changes to SoftHarbor. The site is continuously deployed; a
|
||||
version marks a release announced in the repository (docs/13). Dates are
|
||||
UTC.
|
||||
|
||||
## [1.4.1] — 2026-11-15
|
||||
|
||||
SoftHarbor is now in **maintenance mode**: it does what it set out to do, so
|
||||
from here on it is maintained, not extended.
|
||||
|
||||
### Changed
|
||||
|
||||
- **Maintenance mode** (decision D36). The catalogue keeps growing and being
|
||||
corrected, every download page is still re-scanned at least every 90 days,
|
||||
and bugs, UI/UX problems and accessibility barriers still get fixed;
|
||||
dependencies are kept current, out of schedule when a security advisory
|
||||
calls for it. New features are no longer taken on. What to send where is in
|
||||
the [announcement](https://github.com/poli0981/softharbor/discussions/75) and in CONTRIBUTING.md.
|
||||
- A **Listing change** issue form, for asking that an app be removed,
|
||||
corrected or have its security check re-run.
|
||||
- **Qodana** joins CodeQL and SonarQube Cloud: JetBrains' inspections run on
|
||||
every change and report to GitHub code scanning.
|
||||
|
||||
### Fixed
|
||||
|
||||
- What Qodana's first run found: the human-check endpoint and the VirusTotal
|
||||
re-check script no longer use exceptions for ordinary control flow, and two
|
||||
regular expressions and one filter condition are simpler. Nothing a visitor
|
||||
sees changes.
|
||||
|
||||
## [1.4.0] — 2026-11-09
|
||||
|
||||
Accessibility: a public statement of what the site aims for and how to
|
||||
report a barrier, a round of fixes, and a new category of assistive
|
||||
software.
|
||||
|
||||
### Privacy — what changed
|
||||
|
||||
- The display menu has a new switch for the "/" search shortcut. Your
|
||||
choice is remembered in your browser as `sh:keys`, like the other display
|
||||
choices, and never sent anywhere. The Privacy Policy lists it, so the
|
||||
consent dialog asks you to accept once more.
|
||||
|
||||
### Added
|
||||
|
||||
- **[Accessibility Statement](https://softharbor.net/legal/accessibility)**
|
||||
in English and Vietnamese: the target (WCAG 2.2 level AA — a goal, not a
|
||||
claim that every page meets it), what the site does, how it is tested,
|
||||
what is known not to work yet, and how to report a barrier — by email to
|
||||
accessibility@poli0981.dev, no GitHub account needed, or with the new
|
||||
Accessibility issue form. `ACCESSIBILITY.md` in the repository says the
|
||||
same for contributors, and pull requests now come with an accessibility
|
||||
checklist.
|
||||
- **"Keyboard shortcut “/”: On / Off"** in the display menu, for anyone who
|
||||
sets it off by accident — with speech input, for example. Turned off, the
|
||||
"/" hints disappear too.
|
||||
- **An Accessibility category** with eight apps: the NVDA screen reader,
|
||||
Optikey for typing and controlling the computer with your eyes, Balabolka
|
||||
and eSpeak NG for speech, Thorium Reader and Bookworm for reading, and
|
||||
Colour Contrast Analyser and Accessibility Insights for checking your own
|
||||
work. Also new: Orkas, a desktop AI workspace. 15 categories in all.
|
||||
|
||||
### Changed
|
||||
|
||||
- On a narrow phone (320 px wide) or at a large zoom, the language and
|
||||
display buttons move to a second header row instead of off the screen,
|
||||
and whatever you tab to no longer hides under the header.
|
||||
- The focused choice in the display menu has a visible focus ring of its
|
||||
own, and the language switch no longer clips its ring.
|
||||
- With a Windows contrast theme, the current section, your display choices
|
||||
and the current language stay marked.
|
||||
- Category links on app cards are bigger targets; screen readers hear the
|
||||
filter button as "Filters 2 active" and a search error as soon as it
|
||||
happens; tables have captions and scroll with the keyboard; "Report a
|
||||
bug" says it opens a new tab.
|
||||
- The automated accessibility checks now also fail on moderate findings and
|
||||
cover every kind of page in both languages, plus the open dialogs.
|
||||
- The AI Disclosure names the model used for this release.
|
||||
|
||||
### Security status — what changed
|
||||
|
||||
- Every app still marked "Unverified" was scanned again. Twenty now show
|
||||
"No known warnings": eight came back with no detections, and twelve whose
|
||||
only warning came from one or two URL-reputation services were reviewed
|
||||
by the maintainer and judged false positives — their linked scans still
|
||||
show that warning. Nine stay "Unverified", each for a stated reason.
|
||||
364 of the 373 apps carry "No known warnings".
|
||||
|
||||
## [1.3.0] — 2026-10-26
|
||||
|
||||
Protection against floods: the site now limits how fast one network can
|
||||
@@ -21,8 +104,9 @@ ask for it, and says so plainly when it does.
|
||||
- **A rate limit for the whole site.** A browser or tool that asks for
|
||||
far more than anyone reading would — over 60 requests in ten seconds —
|
||||
gets a "Too many requests" page in English and Vietnamese for about ten
|
||||
seconds instead of the page asked for. The public dataset at `/api/apps.json` and
|
||||
the bot-check endpoint answer in JSON under the same limit, and the
|
||||
seconds instead of the page asked for. The public dataset at
|
||||
`/api/apps.json` and the bot-check endpoint answer in JSON under the same
|
||||
limit, and the
|
||||
dataset's answer is readable from other sites, so tools see the refusal
|
||||
and when to retry. What a page loads — styles, scripts, fonts, icons — is
|
||||
never limited, so a page that loads, loads whole.
|
||||
@@ -167,5 +251,9 @@ First public release: 326 apps in 12 categories, English and Vietnamese,
|
||||
official links only, dated security statuses with their scans linked. See the
|
||||
[release notes](https://github.com/poli0981/softharbor/releases/tag/v1.0.0).
|
||||
|
||||
[1.4.1]: https://github.com/poli0981/softharbor/releases/tag/v1.4.1
|
||||
[1.4.0]: https://github.com/poli0981/softharbor/releases/tag/v1.4.0
|
||||
[1.3.0]: https://github.com/poli0981/softharbor/releases/tag/v1.3.0
|
||||
[1.2.0]: https://github.com/poli0981/softharbor/releases/tag/v1.2.0
|
||||
[1.1.0]: https://github.com/poli0981/softharbor/releases/tag/v1.1.0
|
||||
[1.0.0]: https://github.com/poli0981/softharbor/releases/tag/v1.0.0
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
> Root instruction file for AI-assisted development (Claude Code).
|
||||
> Read this first. Detailed specs live in `docs/00–16`.
|
||||
> Suite version: 3.0 (2026-10-26, site v1.3) · Author: poli0981 / SkullMute
|
||||
> Suite version: 3.2 (2026-11-15, site v1.4.1) · Author: poli0981 / SkullMute
|
||||
|
||||
## What this project is
|
||||
|
||||
@@ -24,6 +24,26 @@ googling every tool one by one.
|
||||
Tailwind CSS 4.3 · TypeScript strict (TS 7 `tsc` beside the TS 6 API that
|
||||
`astro check` needs — D28) · Wrangler 4 — full table in `docs/01`
|
||||
|
||||
## Maintenance mode (D36 — since 2026-11-15)
|
||||
|
||||
The project is **feature-frozen**: maintained, not extended. Work that is in
|
||||
scope — and nothing else:
|
||||
|
||||
1. **Catalogue** — add, correct or remove listings (one app per PR; the owner
|
||||
reviews the Vietnamese), VirusTotal re-checks, quarantine.
|
||||
2. **Fixes** — bugs, UI/UX defects and accessibility barriers.
|
||||
3. **Dependencies** — Dependabot's weekly PRs; out of schedule for any
|
||||
advisory rated **High or Critical**, or a serious Node.js security release.
|
||||
4. **Major language / platform moves** — TypeScript (6 → 7), Astro, Svelte,
|
||||
Tailwind, Node, Cloudflare Workers / Wrangler majors.
|
||||
5. **Incidents** — the site down, degraded or under attack.
|
||||
|
||||
**Out of scope:** new features, including the frozen feature items of
|
||||
`docs/15 §2`. Close an issue or PR that proposes one as *not planned* with the
|
||||
`wontfix` label, and never start one unless the owner lifts D36 first.
|
||||
Releases: a patch tag when a fix is worth announcing, a minor one for a
|
||||
platform major; data changes never tag (`docs/13 §1`).
|
||||
|
||||
## Hard rules (never violate)
|
||||
|
||||
1. **Static-first.** No SSR, no database, no serverless functions; all
|
||||
@@ -81,7 +101,10 @@ criteria (`docs/15`) are met.
|
||||
| **P3 — Static pages** | Welcome, `/apps`, `/apps/[slug]`, `/categories/[id]`, layouts, tokens, fonts, dark mode (no JS yet) | 02, 06 |
|
||||
| **P4 — Islands** | Search/filter/sort (MiniSearch + nanostores), language switcher, theme toggle, legal gate | 05, 06, 07, 14 |
|
||||
| **P5 — Resilience & outputs** | 404/offline/PWA, dormant error templates, `/api/apps.json`, `/rss.xml`, bug-report button | 03, 05, 08 |
|
||||
| **P6 — Ship** | `_headers`, CI/CD wiring, deploy, seed the app catalogue (326 as of 2026-07-30; 364 after batch 2, 2026-10-23), launch checklist | 09, 10, 12, 13 |
|
||||
| **P6 — Ship** | `_headers`, CI/CD wiring, deploy, seed the app catalogue (326 as of 2026-07-30; 364 after batch 2, 2026-10-23; 373 after batch 3, 2026-11-09), launch checklist | 09, 10, 12, 13 |
|
||||
|
||||
All six phases are done — v1.0.0 shipped on 2026-07-30 — and no new phase
|
||||
opens: the project is in maintenance mode (above).
|
||||
|
||||
## Commands
|
||||
|
||||
@@ -107,7 +130,7 @@ pnpm deploy # build + wrangler deploy (Workers Builds does this on m
|
||||
`ShLegalGate.svelte`, `ShFilterSheet.svelte`, `ShLangSwitch.svelte`,
|
||||
`ShPrefs.svelte` (display menu; replaced `ShThemeToggle`)
|
||||
- CSS custom properties: `--sh-*` · localStorage keys: `sh:legal`, `sh:human`,
|
||||
`sh:lang`, `sh:theme`, `sh:scrollbar`, `sh:motion`
|
||||
`sh:lang`, `sh:theme`, `sh:scrollbar`, `sh:motion`, `sh:keys`
|
||||
- Worker name: `softharbor` (code in `worker/`, endpoint `/api/verify`) ·
|
||||
Data: `src/data/apps/` · Quarantine: `data/quarantine/`
|
||||
- Contacts: one `@poli0981.dev` address per purpose — `src/lib/contacts.ts`
|
||||
@@ -129,7 +152,7 @@ pnpm deploy # build + wrangler deploy (Workers Builds does this on m
|
||||
| `docs/09_SECURITY_PRIVACY.md` | Threat model, `_headers`/CSP, security.txt, data-vetting policy, privacy |
|
||||
| `docs/10_CODING_STANDARDS.md` | TS/ESLint/Prettier/Knip/lefthook, naming, commits, DoD |
|
||||
| `docs/11_TESTING.md` | Test pyramid, P0 spikes S1–S5, coverage targets |
|
||||
| `docs/12_CI_CD.md` | Workflows (ci incl. SonarQube Cloud / quarantine / vt-recheck / link-check), `poli0981/.github` wiring, issue forms |
|
||||
| `docs/12_CI_CD.md` | Workflows (ci incl. SonarQube Cloud / qodana / quarantine / vt-recheck / link-check), `poli0981/.github` wiring, issue forms |
|
||||
| `docs/13_RELEASE.md` | Launch checklist, seed list, versioning, notify.py announcement |
|
||||
| `docs/14_LEGAL.md` | Licensing model, legal-gate spec, bilingual drafts (Disclaimer/Privacy/Terms/Trademarks/Third-party) |
|
||||
| `docs/15_ROADMAP.md` | Milestones, post-v1 backlog, decision log, open questions |
|
||||
|
||||
+50
-4
@@ -9,9 +9,35 @@ under **GPL-3.0-only**, dataset entries under **CC BY-SA 4.0**.
|
||||
|
||||
- Code of Conduct: [CODE_OF_CONDUCT.md](CODE_OF_CONDUCT.md)
|
||||
- Security vulnerabilities: [SECURITY.md](SECURITY.md) — **never** a public issue
|
||||
- Accessibility: [ACCESSIBILITY.md](ACCESSIBILITY.md) — the guardrails every
|
||||
user-facing change keeps, and how barriers are reported
|
||||
- Contact: Code of Conduct reports **code@poli0981.dev**, licensing questions
|
||||
**copyright@poli0981.dev**; anything else, open an issue
|
||||
|
||||
## Maintenance mode
|
||||
|
||||
Since 2026-11-15 SoftHarbor is **maintained, not extended** — decision D36 in
|
||||
[docs/15 §4](docs/15_ROADMAP.md), announced in
|
||||
[Discussions](https://github.com/poli0981/softharbor/discussions/75).
|
||||
|
||||
**Accepted** — issues and pull requests that:
|
||||
|
||||
- **add** an app (after its App request is accepted), or **remove** or
|
||||
**correct** a listed one
|
||||
- ask for or record a **security re-check** of a listing (VirusTotal)
|
||||
- fix a **bug**, or a **UI/UX** or **accessibility** problem on the site
|
||||
|
||||
The maintainer also keeps the platform current: dependency updates on
|
||||
Dependabot's weekly schedule — and out of schedule for a dependency with a
|
||||
**High or Critical** CVE or a serious Node.js security release — major
|
||||
language and platform updates (TypeScript, Astro, Cloudflare Workers /
|
||||
Wrangler), and incidents: the site down, degraded or under attack.
|
||||
|
||||
**Not accepted** — **new features**, and issues or pull requests that propose
|
||||
one. They are closed as _not planned_ (label `wontfix`). That is not a verdict
|
||||
on the idea: the scope is frozen, and reviewing features would take the time
|
||||
the catalogue needs.
|
||||
|
||||
## Suggesting an app
|
||||
|
||||
Open an **App request** issue. Do not open a pull request for a new app before
|
||||
@@ -29,11 +55,25 @@ An app is listable only when all of these hold ([docs/00 §3](docs/00_PROJECT_OV
|
||||
- Maintained, or finished and stable. Not abandonware with open vulnerabilities
|
||||
- No bundled adware in the official installer; nothing piracy-adjacent
|
||||
|
||||
## Removing or correcting a listing
|
||||
|
||||
Open a **Listing change** issue when an app went subscription-only, was
|
||||
abandoned, moved its official pages or has a wrong detail — or when you want
|
||||
its security check re-run. Link the evidence; the decision follows it. A
|
||||
suspected **malicious or hijacked download** is a security report, not an
|
||||
issue ([SECURITY.md](SECURITY.md)). If it is **your own app**, you can also
|
||||
write to **takedown@poli0981.dev**.
|
||||
|
||||
A removal is reviewed like an addition. An app that turns out harmful is
|
||||
quarantined rather than deleted (docs/03 §5), so the record of why stays.
|
||||
|
||||
## Reporting a bug
|
||||
|
||||
Use the **Bug report** form, or the "Report a bug" button on any app page —
|
||||
it pre-fills the details. Bugs are about _this site_. We cannot help with the
|
||||
software we link to; take that to its own developer.
|
||||
software we link to; take that to its own developer. Something that is hard to
|
||||
use counts too: UI/UX problems and accessibility barriers
|
||||
([ACCESSIBILITY.md](ACCESSIBILITY.md)) are bugs here.
|
||||
|
||||
## Changing code or data
|
||||
|
||||
@@ -42,7 +82,9 @@ software we link to; take that to its own developer.
|
||||
3. Conventional Commits, lowercase, imperative — `feat:`, `fix:`, `data:`,
|
||||
`docs:`, `chore:`, `ci:`, `refactor:`, `test:`. The squash title becomes the
|
||||
changelog entry, so it has to stand alone.
|
||||
4. Run every gate before pushing. CI runs the same ones and they are not
|
||||
4. Fill in the pull request template — its accessibility checklist applies to
|
||||
any change a visitor can see or operate.
|
||||
5. Run every gate before pushing. CI runs the same ones and they are not
|
||||
advisory:
|
||||
|
||||
```bash
|
||||
@@ -67,8 +109,9 @@ download page and records the permalink, and only the maintainer moves an
|
||||
entry to `clean` (docs/09 §6). If you change an existing entry's
|
||||
`links.download`, the old scan no longer describes it — say so in the PR.
|
||||
|
||||
If you are unsure whether something is wanted, open a discussion first. A
|
||||
short question costs everyone less than a large rejected PR.
|
||||
If you are unsure whether something is wanted, ask in a discussion first. A
|
||||
short question costs everyone less than a large rejected PR — and new features
|
||||
are not wanted while the project is in [maintenance mode](#maintenance-mode).
|
||||
|
||||
## Closed without discussion
|
||||
|
||||
@@ -107,6 +150,9 @@ blocked:
|
||||
output unread is not. This project discloses its own AI use at
|
||||
[/legal/ai-disclosure](https://softharbor.net/legal/ai-disclosure), and holds
|
||||
contributions to the same standard it holds itself.
|
||||
- **Feature work** of any size while the project is in
|
||||
[maintenance mode](#maintenance-mode) — including a feature presented as a
|
||||
fix.
|
||||
- **Drive-by or automated PRs** — whitespace, reformatting, badge additions,
|
||||
dependency bumps Dependabot already owns, or bulk submissions for contribution
|
||||
counts.
|
||||
|
||||
@@ -1,5 +1,14 @@
|
||||
# SoftHarbor
|
||||
|
||||
[](#project-status)
|
||||
[](https://github.com/poli0981/softharbor/actions/workflows/ci.yml)
|
||||
[](https://github.com/poli0981/softharbor/actions/workflows/codeql.yml)
|
||||
[](https://github.com/poli0981/softharbor/actions/workflows/qodana.yml)
|
||||
[](https://sonarcloud.io/summary/overall?id=poli0981_softharbor)
|
||||
[](https://github.com/poli0981/softharbor/releases/latest)
|
||||
[](LICENSE)
|
||||
[](LICENSE-DATA.md)
|
||||
|
||||
**[softharbor.net](https://softharbor.net)** — a bilingual (EN/VI) directory of
|
||||
desktop software that is **free**, or **buy-once**. Never subscription-only.
|
||||
|
||||
@@ -9,9 +18,26 @@ filter by category and platform, and go straight to every **official** source.
|
||||
|
||||
The site hosts **no binaries**. It is a map, not a mirror.
|
||||
|
||||
## Project status
|
||||
|
||||
**Maintenance mode since 2026-11-15 (v1.4.1).** SoftHarbor does what it set
|
||||
out to do, so from here on it is maintained, not extended
|
||||
([announcement](https://github.com/poli0981/softharbor/discussions/75), decision D36 in
|
||||
[docs/15](docs/15_ROADMAP.md)).
|
||||
|
||||
- **Still happening:** apps added, corrected and removed; every download page
|
||||
re-scanned at least every 90 days; bug, UI/UX and accessibility fixes;
|
||||
dependency updates on a schedule — and out of schedule for a High or
|
||||
Critical CVE, a serious Node.js security release, a major TypeScript, Astro
|
||||
or Cloudflare Workers update, or anything that puts the site at risk.
|
||||
- **Not accepted:** new features. Issues and pull requests that propose one
|
||||
are closed as _not planned_.
|
||||
|
||||
What to send where: [CONTRIBUTING.md → Maintenance mode](CONTRIBUTING.md#maintenance-mode).
|
||||
|
||||
## What is in it
|
||||
|
||||
**364 apps** across 14 categories, each one file in `src/data/apps/`. Every
|
||||
**373 apps** across 15 categories, each one file in `src/data/apps/`. Every
|
||||
entry carries:
|
||||
|
||||
- original two-line summaries in English _and_ Vietnamese — written from
|
||||
@@ -22,9 +48,10 @@ entry carries:
|
||||
- a **dated** security status with the scan permalink behind it
|
||||
|
||||
On security the site says _"no known warnings as of <date>"_ and never
|
||||
more than that. 320 entries are `clean`; 6 are held at `unverified` because at
|
||||
least one scanner flagged something, and holding them is more honest than
|
||||
explaining it away. The scan is linked either way — judge it yourself.
|
||||
more than that. 364 entries are `clean`; 9 are held at `unverified` — a
|
||||
scanner flagged something, or an advisory or an unsigned build is still open —
|
||||
and holding them is more honest than explaining it away. The scan is linked
|
||||
either way — judge it yourself.
|
||||
|
||||
## How it is built
|
||||
|
||||
@@ -41,7 +68,7 @@ details.
|
||||
Astro 7 (static) · Svelte 5 islands · Tailwind CSS 4 · TypeScript strict ·
|
||||
Node 26 · pnpm 11 · Cloudflare Workers Static Assets (+ one small Worker).
|
||||
Tested with Vitest (unit, islands, build scripts, the Worker) and Playwright +
|
||||
axe on the built site; analysed by CodeQL and SonarQube Cloud.
|
||||
axe on the built site; analysed by CodeQL, SonarQube Cloud and Qodana.
|
||||
|
||||
```bash
|
||||
pnpm install
|
||||
@@ -66,10 +93,19 @@ pnpm knip # dead code and unused deps
|
||||
|
||||
## Contributing
|
||||
|
||||
Suggest an app or report a bug with the
|
||||
[issue forms](https://github.com/poli0981/softharbor/issues/new/choose).
|
||||
Read **[CONTRIBUTING.md](CONTRIBUTING.md)** before opening a pull request — it
|
||||
lists the inclusion criteria and what gets closed on sight.
|
||||
Suggest an app, ask for a listing to be removed, corrected or re-checked, or
|
||||
report a bug with the
|
||||
[issue forms](https://github.com/poli0981/softharbor/issues/new/choose) —
|
||||
feature requests are not taken in maintenance mode. Read
|
||||
**[CONTRIBUTING.md](CONTRIBUTING.md)** before opening a pull request — it
|
||||
lists the inclusion criteria and what gets closed on sight. Everyone taking
|
||||
part follows the [Code of Conduct](CODE_OF_CONDUCT.md).
|
||||
|
||||
Something on the site gets in your way — with a keyboard, a screen reader,
|
||||
zoom or a contrast theme? [ACCESSIBILITY.md](ACCESSIBILITY.md) says what we aim
|
||||
for and how reports are handled (the
|
||||
[site statement](https://softharbor.net/legal/accessibility) is in English and
|
||||
Vietnamese).
|
||||
|
||||
Found a security problem? [SECURITY.md](SECURITY.md) — please do not open a
|
||||
public issue.
|
||||
@@ -97,14 +133,15 @@ AI was used to build this project; where and how is disclosed at
|
||||
Maintained by [@poli0981](https://github.com/poli0981). One address per
|
||||
purpose, so a message reaches the right queue:
|
||||
|
||||
| About | Address |
|
||||
| --------------------------------------------------- | ---------------------- |
|
||||
| A vulnerability, or a hijacked or malicious listing | security@poli0981.dev |
|
||||
| Privacy | privacy@poli0981.dev |
|
||||
| Terms, disclaimer, other legal | legal@poli0981.dev |
|
||||
| A copyright complaint | dmca@poli0981.dev |
|
||||
| Changing or removing your app's listing or logo | takedown@poli0981.dev |
|
||||
| Licensing of the code or the dataset | copyright@poli0981.dev |
|
||||
| Code of Conduct | code@poli0981.dev |
|
||||
| Press | press@poli0981.dev |
|
||||
| Collaboration | collab@poli0981.dev |
|
||||
| About | Address |
|
||||
| --------------------------------------------------- | -------------------------- |
|
||||
| A vulnerability, or a hijacked or malicious listing | security@poli0981.dev |
|
||||
| Privacy | privacy@poli0981.dev |
|
||||
| An accessibility barrier on the site | accessibility@poli0981.dev |
|
||||
| Terms, disclaimer, other legal | legal@poli0981.dev |
|
||||
| A copyright complaint | dmca@poli0981.dev |
|
||||
| Changing or removing your app's listing or logo | takedown@poli0981.dev |
|
||||
| Licensing of the code or the dataset | copyright@poli0981.dev |
|
||||
| Code of Conduct | code@poli0981.dev |
|
||||
| Press | press@poli0981.dev |
|
||||
| Collaboration | collab@poli0981.dev |
|
||||
+10
-4
@@ -6,6 +6,12 @@ The **latest deploy** of `https://softharbor.net` is the only supported
|
||||
target. This is a continuously deployed static site; there are no released
|
||||
versions to patch (docs/13 §1).
|
||||
|
||||
The project is in **maintenance mode** since 2026-11-15
|
||||
([CONTRIBUTING.md](CONTRIBUTING.md#maintenance-mode)): no new features, but
|
||||
security fixes are part of maintenance, not an exception to it. A dependency
|
||||
with a High or Critical advisory, a serious Node.js security release or an
|
||||
attack on the site is handled out of schedule.
|
||||
|
||||
## Reporting a vulnerability
|
||||
|
||||
Please use **GitHub's private vulnerability reporting** on this repository
|
||||
@@ -32,10 +38,10 @@ Acknowledgement within **72 hours**. Machine-readable contact details are in
|
||||
- Vulnerabilities in the **listed third-party applications themselves**.
|
||||
Report those to their vendors — but please tell us too, so we can flag the
|
||||
entry while it is unresolved.
|
||||
- Server-side issues beyond one endpoint: the site is static except for
|
||||
`POST /api/verify`, the legal gate's Turnstile check (`worker/`, D25),
|
||||
which **is** in scope. There is no database, no accounts and no cookies
|
||||
(docs/09 §3).
|
||||
- Server-side issues beyond the one small Worker: the site is static except
|
||||
for `worker/`, which rate-limits requests (D32) and answers
|
||||
`POST /api/verify`, the legal gate's Turnstile check (D25) — both **are**
|
||||
in scope. There is no database, no accounts and no cookies (docs/09 §3).
|
||||
|
||||
## What we do not claim
|
||||
|
||||
|
||||
+26
-3
@@ -5,7 +5,7 @@ import { createHash } from 'node:crypto';
|
||||
import { defineConfig } from 'astro/config';
|
||||
import svelte from '@astrojs/svelte';
|
||||
import sitemap from '@astrojs/sitemap';
|
||||
import AstroPWA from '@vite-pwa/astro';
|
||||
import { AstroPWAIntegration } from '@vite-pwa/astro';
|
||||
import tailwindcss from '@tailwindcss/vite';
|
||||
import Icons from 'unplugin-icons/vite';
|
||||
import { VIEW_TRANSITION_OPT_IN } from './src/lib/inlineCss';
|
||||
@@ -118,7 +118,16 @@ export default defineConfig({
|
||||
i18n: { defaultLocale: 'en', locales: { en: 'en', vi: 'vi' } },
|
||||
filter: (page) => !NON_INDEXED.test(page),
|
||||
}),
|
||||
AstroPWA({
|
||||
// @vite-pwa/astro 2 (on @unplugin-pwa) since 2026-11-09. Under pnpm it
|
||||
// needs four packages as DIRECT dependencies. Without `rolldown` or
|
||||
// `magicast` the SW build stops with an error. Without
|
||||
// `@vite-pwa/workbox-swkit` the classic sw.js keeps bare ES imports and an
|
||||
// empty precache; without `@vite-pwa/workbox-window` registerSW.js starts
|
||||
// with an ES import the page cannot run as a classic script — and in both
|
||||
// cases the build reports success (docs/09 §7; `check:sw` catches them).
|
||||
// The two workbox packages must resolve to the version
|
||||
// @vite-pwa/workbox-build pins (`pnpm why @vite-pwa/workbox-swkit`).
|
||||
AstroPWAIntegration({
|
||||
registerType: 'autoUpdate',
|
||||
// MUST be explicit. Without it the build still emits registerSW.js but
|
||||
// never references it from any page, so the service worker never
|
||||
@@ -128,6 +137,14 @@ export default defineConfig({
|
||||
// plus hashes Astro generates, and a PWA-injected inline snippet is not
|
||||
// one of them (docs/09 §4, D20).
|
||||
injectRegister: 'script',
|
||||
// Unminified on purpose: `check:sw` asserts the SW by the names in it
|
||||
// (NetworkOnly, precacheAndRoute, skipWaiting), which minification
|
||||
// mangles. Cost: ~1.6 kB sw.js plus a ~38 kB workbox runtime chunk,
|
||||
// both compressed in transit.
|
||||
minify: false,
|
||||
// 1.x never precached the manifest icons; 2.x defaults to doing so.
|
||||
// Keep the precache to what the offline page needs (16 entries).
|
||||
includeManifestIcons: false,
|
||||
manifest: {
|
||||
id: '/',
|
||||
name: 'SoftHarbor',
|
||||
@@ -153,7 +170,9 @@ export default defineConfig({
|
||||
{ src: '/favicon.svg', sizes: 'any', type: 'image/svg+xml', purpose: 'any' },
|
||||
],
|
||||
},
|
||||
workbox: {
|
||||
// `generateSW` (1.x called it `workbox`; the old key still works but is
|
||||
// deprecated).
|
||||
generateSW: {
|
||||
// These globs are coupled to build.format — 'file' emits offline.html,
|
||||
// 'directory' would emit offline/index.html. And fonts are
|
||||
// content-hashed into _astro/, never a /fonts/ directory. Both of the
|
||||
@@ -188,6 +207,10 @@ export default defineConfig({
|
||||
// activation, so a first-time visitor who loses connection mid
|
||||
// session gets the browser's error page instead of ours (S5).
|
||||
clientsClaim: true,
|
||||
// Explicit since 2.x: 1.x emitted cleanupOutdatedCaches() by default,
|
||||
// 2.x does not, so caches left by older Workbox precache formats would
|
||||
// stay on visitors' disks.
|
||||
cleanupOutdatedCaches: true,
|
||||
|
||||
// `navigateFallback: ''` DISABLES it. Leaving the key out does not:
|
||||
// vite-plugin-pwa's `defaultWorkbox` sets `navigateFallback:
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
# 00 — Project Overview
|
||||
|
||||
> **Project:** SoftHarbor
|
||||
> **Doc suite version:** 3.0 (2026-10-26, site v1.3)
|
||||
> **Doc suite version:** 3.2 (2026-11-15, site v1.4.1)
|
||||
> **Author:** poli0981 / SkullMute · **License:** code GPL-3.0-only · data CC BY-SA 4.0
|
||||
> **Platform:** Web (static), Cloudflare Workers Static Assets, canonical `https://softharbor.net`
|
||||
> — plus one Worker: the site-wide rate limit (D32) and `POST /api/verify` (D25)
|
||||
@@ -110,6 +110,9 @@ consistent over time.
|
||||
| D28 | Toolchain | **Node 26 + TypeScript 6/7 side by side** (amends D7 and D21) — `.nvmrc` 26; `typescript` = the `@typescript/typescript6` API wrapper, `@typescript/native` = TS 7, whose `tsc --noEmit` now type-checks every `.ts` file in `pnpm check` | 2026-10-23 | Node 24 entered maintenance 2026-10-20; TS 7 ships no API yet, which astro check, typescript-eslint and svelte2tsx need (docs/01 §2) |
|
||||
| D32 | Rate limiting | **Site-wide rate limit in the Worker** (amends hard rule 1 and D25): `run_worker_first` is `/*` minus the files a page loads (`/_astro/*`, icons, service worker); every request it routes spends one unit of `SITE_LIMITER` — 60 per 10 s per IPv4 or IPv6 /64, per location — and over it gets the branded `/errors/429` page (JSON under `/api/`), `Retry-After: 10`; fails **open** | 2026-10-26 | A flood or a runaway scraper gets refused cheaply with our own page instead of the Free zone's default; configured and tested in the repo (wrangler.jsonc, e2e/worker.spec.ts), not in a dashboard (docs/08 Part F) |
|
||||
| D29 | Code analysis | **SonarQube Cloud CI-based analysis with coverage** (`ci.yml` `sonar` job, not a required check) replaces Automatic Analysis | 2026-10-23 | Automatic Analysis cannot import coverage; a CI scan measures the same lcov the ratchet gates (docs/12 §2, docs/11 §1) |
|
||||
| D33 | Accessibility | **WCAG 2.2 AA as a target, never a conformance claim**; `ACCESSIBILITY.md` + its twin `/legal/accessibility`; contact `accessibility@`; the "/" shortcut can be turned off (`sh:keys`, WCAG 2.1.4) | 2026-11-09 | GitHub's community profile asked for it, and an audit found barriers the manual pass did not (focus on the checked display choice, the header at 320 px, forced colours); axe now fails on moderate findings and covers the open dialogs (docs/15 D33) |
|
||||
| D35 | Code analysis | **Qodana as a third analyser** beside CodeQL and SonarQube Cloud: `qodana-js` (Ultimate licence) in native mode, profile `qodana.recommended`, any finding fails the job, SARIF to GitHub code scanning (tool `QDJS`) — **not a required check** (`qodana.yml`, `qodana.yaml`) | 2026-11-15 | WebStorm's inspections catch a different class of problem than CodeQL (security) and Sonar (maintainability); not required for D29's reason — an outside service must never block a merge |
|
||||
| D36 | Project status | **Maintenance mode** — maintained, not extended: catalogue work, bug, UI/UX and accessibility fixes, dependency upkeep (out of schedule for a High or Critical advisory or a serious Node.js security release), major language and platform updates, incidents; **new features are not accepted** and docs/15 §2's feature items are frozen | 2026-11-15 | The site does what it set out to do; review time belongs to the catalogue's accuracy, which is the product |
|
||||
|
||||
## 6. Identifiers (locked)
|
||||
|
||||
@@ -121,7 +124,7 @@ consistent over time.
|
||||
| Contact email | One address per purpose at `@poli0981.dev` — `src/lib/contacts.ts`, page `/contact` (D27; `contact@softharbor.net` retired) |
|
||||
| Component prefix | `Sh*` (islands: `ShLegalGate`, `ShSearch`, `ShFilterSheet`, `ShLangSwitch`, `ShPrefs`, `ShBugReport`) |
|
||||
| CSS custom property prefix | `--sh-*` |
|
||||
| localStorage keys | `sh:legal`, `sh:human`, `sh:lang`, `sh:theme`, `sh:scrollbar`, `sh:motion` |
|
||||
| localStorage keys | `sh:legal`, `sh:human`, `sh:lang`, `sh:theme`, `sh:scrollbar`, `sh:motion`, `sh:keys` |
|
||||
| App data path | `src/data/apps/<slug>.json` (filename = slug) |
|
||||
| Quarantine path | `data/quarantine/<slug>.json` |
|
||||
| Public data endpoints | `/api/apps.json`, `/rss.xml`, `/sitemap-index.xml` |
|
||||
|
||||
+21
-4
@@ -25,13 +25,30 @@
|
||||
> TypeScript 7.0.2 (`tsc`, as `@typescript/native`) beside 6.0.3 (the API, via
|
||||
> `@typescript/typescript6` 6.0.2) · SonarScanner CLI 8.2 through
|
||||
> `sonarqube-scan-action` 8.3.
|
||||
>
|
||||
> **Upkeep 2026-11-04:** pnpm 11.28.9 · Astro 7.4.5 · Svelte 5.57.3 ·
|
||||
> `@astrojs/svelte` 9.1.2 · Tailwind 4.3.4 · Vitest 5.1.0 · Wrangler 4.156 ·
|
||||
> ESLint 10.14 · `typescript-eslint` 8.72.1 · knip 6.44 · `pnpm/action-setup`
|
||||
> 6.1.1 · `sonarqube-scan-action` 8.4.1 (CLI 8.3.1). `@vite-pwa/astro` stays
|
||||
> on 1.2.0 — 2.0.0 was tried and refused (docs/09 §7) — and pnpm stays on
|
||||
> the 11 line although 12 is out: a pnpm major is a decision, not an upkeep
|
||||
> bump.
|
||||
>
|
||||
> **Upkeep 2026-11-09:** pnpm 11.28.11 · Astro 7.4.7 (Rolldown 1.3.0) ·
|
||||
> Tailwind 4.3.5 · Wrangler 4.158 · Playwright 1.65.0 · knip 6.44.2 ·
|
||||
> `eslint-plugin-svelte` 3.24.1 · **`@vite-pwa/astro` 2.0.1** (on
|
||||
> `@unplugin-pwa` 0.0.4 and `@vite-pwa/workbox-*` 8.0.14), which needs
|
||||
> `rolldown`, `magicast`, `@vite-pwa/workbox-swkit` and
|
||||
> `@vite-pwa/workbox-window` as direct devDependencies under pnpm (docs/09 §7)
|
||||
> and drops workbox-build 7 with ~270 transitive packages. Node 26.13.0 is the
|
||||
> newest 26.x (LTS since 2026-10-28).
|
||||
|
||||
## 1. Runtime & toolchain
|
||||
|
||||
| Layer | Package | Line (2026-07-15) | Notes |
|
||||
|---|---|---|---|
|
||||
| Runtime | Node.js | **26** (26.12 at v1.2; was 24 LTS "Krypton" until 2026-10-23) | LTS from 2026-10-28, maintenance from 2027-10, end of life 2029-04. Taken five days before the LTS label at the owner's request (D7 amended) — Node 24 had entered maintenance on 2026-10-20, and CI, the e2e suite and a Workers Builds preview all passed on 26 first. Pin via `.nvmrc` = `26` and `"engines": { "node": ">=26 <27" }`; CI and Workers Builds read `.nvmrc`, and `@types/node` majors are held to the same line (Dependabot ignore, §5). **Node 25+ ships no Corepack**: a laptop whose `pnpm` came from Corepack needs `npm install -g corepack` (or a standalone pnpm) after upgrading, or `pnpm` and the lefthook hooks stop working. |
|
||||
| Package manager | pnpm | **11.x** (`11.15.1`, `packageManager`) | `packageManager` field pinned; CI's `pnpm/action-setup` reads it (no `version:`), so CI, Dependabot, Workers Builds and laptops run the same pnpm. **Do not set `ignore-scripts`** — pnpm ≥ 10 already blocks dependency install scripts and wants an `allowBuilds` allowlist in `pnpm-workspace.yaml` instead (docs/09 §7). pnpm 11's default **24 h `minimumReleaseAge`** refuses day-old releases — hence Dependabot's 2-day cooldown (§5). |
|
||||
| Package manager | pnpm | **11.x** (`11.28.11` since 2026-11-09, `packageManager`; `11.28.9` from 2026-11-04, `11.15.1` before) | `packageManager` field pinned; CI's `pnpm/action-setup` reads it (no `version:`), so CI, Dependabot, Workers Builds and laptops run the same pnpm. **Do not set `ignore-scripts`** — pnpm ≥ 10 already blocks dependency install scripts and wants an `allowBuilds` allowlist in `pnpm-workspace.yaml` instead (docs/09 §7). pnpm 11's default **24 h `minimumReleaseAge`** refuses day-old releases — hence Dependabot's 2-day cooldown (§5). |
|
||||
| Deploy CLI | Wrangler | **4.x** (4.151 at v1.1) | Workers Builds runs `npx wrangler deploy` (main) and `wrangler versions upload` (PRs); CI runs `wrangler deploy --dry-run` to bundle `worker/` and validate `wrangler.jsonc`. Since D25 there **is** a Worker script (`worker/index.ts`), tested under Vitest in Node — the local `workerd` runtime stays blocked in `allowBuilds` (docs/09 §7). Types for the Worker are written by hand (`worker/env.ts`), not `@cloudflare/workers-types`. |
|
||||
|
||||
## 2. Framework & UI
|
||||
@@ -46,7 +63,7 @@
|
||||
| Search | `minisearch` | **7.x** | Client-side index; options in docs/05 §A2. Loaded with a dynamic `import()` on first search, so it is not in any page's static bundle. |
|
||||
| Icons | `unplugin-icons` + `@iconify-json/simple-icons` + `@iconify-json/lucide` | latest | Simple Icons = app logos (SVG, CC0 set — trademark caveat in docs/14 §3d); Lucide = UI icons. In islands: `~icons/lucide/<name>` via `unplugin-icons` (`compiler: 'svelte'`). In `.astro`: `ShIcon.astro` / `src/lib/icon.ts`, which read the same vendored JSON at build time (data-driven names cannot be static imports). Nothing fetched at runtime. |
|
||||
| Fonts | `@fontsource-variable/bricolage-grotesque`, `@fontsource/be-vietnam-pro`, `@fontsource/ibm-plex-mono` | latest | `latin` + `vietnamese` subsets only (Bricolage's single stylesheet relies on `unicode-range`, docs/06 §3). |
|
||||
| PWA / offline | `@vite-pwa/astro` | 1.2.x | Installable (manifest linked, PNG icons) with an offline fallback page — not a full precache PWA (docs/08 Part D). Its peer range stops at Astro 5; accepted explicitly in `pnpm-workspace.yaml` because `check:sw` proves the output every build. |
|
||||
| PWA / offline | `@vite-pwa/astro` | **2.x** (2.0.1 since 2026-11-09; 1.2.0 before) | Installable (manifest linked, PNG icons) with an offline fallback page — not a full precache PWA (docs/08 Part D). 2.x is a rewrite on `@unplugin-pwa` 0.0.x: named export `AstroPWAIntegration`, `generateSW` instead of `workbox`. Under pnpm it needs four direct devDependencies — `rolldown` and `magicast` (or the SW build stops) and `@vite-pwa/workbox-swkit` + `@vite-pwa/workbox-window` (or `sw.js`/`registerSW.js` keep bare ES imports a classic script cannot run, while the build reports success). The SW is emitted unminified so `check:sw` can read it. 2.0.0 was refused on 2026-11-04 for exactly those silent failures (docs/09 §7). |
|
||||
| Feeds & SEO | `@astrojs/rss`, `@astrojs/sitemap` | latest | `/rss.xml` (new apps) + sitemap with hreflang. |
|
||||
| Third-party runtime (not packages) | Cloudflare Web Analytics beacon · Cloudflare Turnstile `api.js` | — | Loaded by our own code from their origins — the only third-party requests (hard rule 7, D25/D26, docs/09 §4). |
|
||||
|
||||
@@ -57,13 +74,13 @@
|
||||
| Lint | `eslint` **10.x** flat config + `typescript-eslint` 8.x + `eslint-plugin-astro` 3.x + `eslint-plugin-svelte` 3.x | latest |
|
||||
| Format | `prettier` 3.x + `prettier-plugin-astro` + `prettier-plugin-svelte` + `prettier-plugin-tailwindcss` | latest |
|
||||
| Dead code | `knip` | **6.x** |
|
||||
| Unit / island / script / Worker tests | `vitest` + `@vitest/coverage-v8` + `happy-dom` | **5.x** (5.0.5) — four projects, coverage ratchet (docs/11 §1) |
|
||||
| Unit / island / script / Worker tests | `vitest` + `@vitest/coverage-v8` + `happy-dom` | **5.x** (5.1.0) — four projects, coverage ratchet (docs/11 §1) |
|
||||
| End-to-end + a11y | `@playwright/test` + `@axe-core/playwright` | 1.64 / 4.14 — Chromium, desktop + Pixel 7 (docs/11 §5) |
|
||||
| Icon generation | `sharp` (dev only, `pnpm icons`) | 0.35 — output committed, builds never need it |
|
||||
| Git hooks | `lefthook` | **2.x** |
|
||||
| Link checking (CI) | `lychee` via `lycheeverse/lychee-action` | v2 line (v2.9.0) |
|
||||
| Dep updates | **Dependabot** (`.github/dependabot.yml`) | npm + github-actions, weekly — docs/12 §6 (replaced the never-installed Renovate) |
|
||||
| CVE / code scanning | `osv-scanner` action + `pnpm audit --prod`; CodeQL (org reusable workflow); SonarQube Cloud **CI-based** analysis with coverage (`ci.yml` `sonar` job, `sonarqube-scan-action` 8.3, CLI 8.2 — docs/12 §2) | latest |
|
||||
| CVE / code scanning | `osv-scanner` action + `pnpm audit --prod`; CodeQL (org reusable workflow); SonarQube Cloud **CI-based** analysis with coverage (`ci.yml` `sonar` job, `sonarqube-scan-action` 8.4, CLI 8.3 — docs/12 §2); Qodana `qodana-js` 2026.2, Ultimate licence, native mode (`qodana.yml`, D35) | latest |
|
||||
|
||||
## 4. Rationale for the contested picks
|
||||
|
||||
|
||||
+11
-7
@@ -61,6 +61,7 @@ softharbor/
|
||||
├── LICENSE # GPL-3.0-only (GitHub picker)
|
||||
├── LICENSE-DATA.md # CC BY-SA 4.0 for src/data/** (docs/14 §1)
|
||||
├── SECURITY.md # reporting policy (docs/09 §5)
|
||||
├── ACCESSIBILITY.md # a11y statement for contributors (D33; twin of /legal/accessibility)
|
||||
├── CONTRIBUTING.md / CODE_OF_CONDUCT.md
|
||||
├── CHANGELOG.md # Keep-a-Changelog, features only (docs/13 §1)
|
||||
├── README.md # overview, commands, contacts
|
||||
@@ -73,13 +74,16 @@ softharbor/
|
||||
├── knip.json / lefthook.yml # docs/10 §4
|
||||
├── .dev.vars.example # Turnstile TEST secret for `wrangler dev`
|
||||
├── sonar-project.properties # SonarQube Cloud CI analysis (docs/12 §2)
|
||||
├── qodana.yaml # Qodana scope + gate, native mode (docs/12 §2, D35)
|
||||
├── .gitattributes / .gitignore
|
||||
├── .github/
|
||||
│ ├── CODEOWNERS # * @poli0981 + .github/ scripts/ src/data/ worker/ (T6)
|
||||
│ ├── dependabot.yml # npm + github-actions, weekly (docs/12 §6)
|
||||
│ ├── ISSUE_TEMPLATE/ # bug_report.yml · app_request.yml · config.yml
|
||||
│ ├── PULL_REQUEST_TEMPLATE.md # checks + accessibility + data-PR checklists (docs/12 §7)
|
||||
│ ├── ISSUE_TEMPLATE/ # bug_report.yml · app_request.yml · listing_change.yml · accessibility.yml · config.yml
|
||||
│ └── workflows/ # docs/12: ci.yml · codeql.yml · notify.yml
|
||||
│ # quarantine.yml · link-check.yml
|
||||
│ # quarantine.yml · link-check.yml · vt-recheck.yml
|
||||
│ # qodana.yml (D35)
|
||||
│ # (NO deploy/preview — Cloudflare Workers
|
||||
│ # Builds owns deployment, docs/12 §3)
|
||||
├── data/
|
||||
@@ -148,7 +152,7 @@ softharbor/
|
||||
├── components/
|
||||
│ ├── Sh*.astro # static: ShAppCard, ShHeader, ShFooter,
|
||||
│ │ # ShIcon (Lucide, build-time), ShJsonLd
|
||||
│ ├── legal/*.astro # the six documents, EN + VI (docs/14)
|
||||
│ ├── legal/*.astro # the seven documents, EN + VI (docs/14)
|
||||
│ ├── pages/*.astro # shared page bodies, one per route shape;
|
||||
│ │ # src/pages/** are thin locale wrappers
|
||||
│ │ # so EN and VI cannot drift (docs/07 §2)
|
||||
@@ -164,7 +168,7 @@ softharbor/
|
||||
├── categories/index.astro # category index
|
||||
├── categories/[id].astro
|
||||
├── legal/{disclaimer,privacy,terms,trademarks,third-party,
|
||||
│ ai-disclosure}.astro
|
||||
│ ai-disclosure,accessibility}.astro
|
||||
├── contact.astro # one address per purpose (D27)
|
||||
├── errors/{403,429,500}.astro # 429 live (D32); 403, 500 dormant
|
||||
├── 404.astro # → dist/404.html
|
||||
@@ -184,7 +188,7 @@ softharbor/
|
||||
| `/apps/[slug]` | `/vi/apps/[slug]` | `[slug].astro` | One page per app; `getStaticPaths` over the collection |
|
||||
| `/categories` | `/vi/categories` | `categories/index.astro` | One tile per category |
|
||||
| `/categories/[id]` | `/vi/categories/[id]` | `[id].astro` | SEO landing per category |
|
||||
| `/legal/*` | `/vi/legal/*` | `LegalPage` + `components/legal/*` | Six documents; gate-exempt (docs/14 Part 2) |
|
||||
| `/legal/*` | `/vi/legal/*` | `LegalPage` + `components/legal/*` | Seven documents (the Accessibility Statement since v1.4); gate-exempt (docs/14 Part 2) |
|
||||
| `/contact` | `/vi/contact` | `contact.astro` | One address per purpose (D27); gate-exempt |
|
||||
| `/404` | — | `404.astro` | Served via `not_found_handling`; one bilingual page; gate-exempt |
|
||||
| `/offline` | — | `offline.astro` | SW navigation fallback; one bilingual page; gate-exempt |
|
||||
@@ -208,7 +212,7 @@ import { createHash } from 'node:crypto';
|
||||
import { defineConfig } from 'astro/config';
|
||||
import svelte from '@astrojs/svelte';
|
||||
import sitemap from '@astrojs/sitemap';
|
||||
import AstroPWA from '@vite-pwa/astro';
|
||||
import { AstroPWAIntegration } from '@vite-pwa/astro';
|
||||
import tailwindcss from '@tailwindcss/vite';
|
||||
import Icons from 'unplugin-icons/vite';
|
||||
import { VIEW_TRANSITION_OPT_IN } from './src/lib/inlineCss';
|
||||
@@ -270,7 +274,7 @@ export default defineConfig({
|
||||
i18n: { defaultLocale: 'en', locales: { en: 'en', vi: 'vi' } },
|
||||
filter: (page) => !NON_INDEXED.test(page),
|
||||
}),
|
||||
AstroPWA(/* docs/08 Part D */),
|
||||
AstroPWAIntegration(/* docs/08 Part D */),
|
||||
],
|
||||
vite: {
|
||||
// ~icons/<set>/<name> compiles to Svelte components (islands); .astro
|
||||
|
||||
@@ -61,7 +61,7 @@ implement exactly this contract.
|
||||
of 2026-10-21; `pnpm build` then checks the output — docs/02 §4):
|
||||
|
||||
1. **Pages** — `/apps/<slug>` ×2 locales, category index + category pages,
|
||||
grid, welcome, contact, the six legal documents (the third-party table
|
||||
grid, welcome, contact, the seven legal documents (the third-party table
|
||||
generated from `package.json` at build time, docs/14 §3e), 404/offline
|
||||
and the dormant error templates.
|
||||
2. **`/search-index.json`** — serialized MiniSearch index built in
|
||||
|
||||
@@ -111,7 +111,7 @@ duplicates, link provenance, invisible characters, quarantine) are L2,
|
||||
|
||||
| Value | Meaning | Examples |
|
||||
|---|---|---|
|
||||
| `free` | Fully usable forever at $0. Includes freemium products **whose free tier alone is self-sufficient** even if the paid upgrade is a subscription (criterion C3). | VLC, 7-Zip, Bitwarden (free tier) — 330 entries |
|
||||
| `free` | Fully usable forever at $0. Includes freemium products **whose free tier alone is self-sufficient** even if the paid upgrade is a subscription (criterion C3). | VLC, 7-Zip, Bitwarden (free tier) — 339 entries |
|
||||
| `free-onetime` | Free tier + optional **single lifetime payment** unlock. | FreeFileSync, eM Client, HWiNFO, Shottr, AltTab — 16 entries |
|
||||
| `onetime` | Paid once, perpetual license, optional paid major upgrades allowed. | Sublime Text, REAPER, Total Commander, Fork — 18 entries |
|
||||
| *(excluded)* | Subscription required for core desktop use; time-limited trials; crippled demos. | Adobe CC, MS 365 |
|
||||
@@ -138,12 +138,16 @@ Ambiguous cases → decision log (docs/15 §4) before merge.
|
||||
| `system` | System Tools | Công cụ hệ thống | `cpu` |
|
||||
| `ai-local` | Local AI | AI cục bộ | `brain-circuit` |
|
||||
| `cad-3d` | CAD & 3D | CAD & 3D | `drafting-compass` |
|
||||
| `accessibility` | Accessibility | Trợ năng | `accessibility` |
|
||||
|
||||
Adding a category = PR editing this file + decision-log line (keeps the
|
||||
taxonomy from sprawling). `ai-local` and `cad-3d` came with catalogue
|
||||
batch 2 (D31): models that run on your own machine, and CAD/EDA/3D-printing
|
||||
tools. The categories page counts them itself (`categories.intro` and
|
||||
`meta.categories` take `{n}`), so a new row needs no copy change.
|
||||
tools. `accessibility` came with catalogue batch 3 (D34, v1.4): assistive
|
||||
technology — screen readers, text-to-speech, eye-tracking input, accessible
|
||||
readers — and the tools for checking accessibility. The categories page
|
||||
counts them itself (`categories.intro` and `meta.categories` take `{n}`), so
|
||||
a new row needs no copy change.
|
||||
|
||||
## 5. Example files
|
||||
|
||||
@@ -243,8 +247,8 @@ and the renderer draws the initials (D23). VSCodium itself now resolves to
|
||||
}
|
||||
```
|
||||
|
||||
As of v1.2 no entry uses `local:` (`src/assets/logos/` does not exist yet):
|
||||
127 entries use `simple-icons:`, 237 `monogram` (364 in all).
|
||||
As of v1.4 no entry uses `local:` (`src/assets/logos/` does not exist yet):
|
||||
127 entries use `simple-icons:`, 246 `monogram` (373 in all).
|
||||
|
||||
## 6. Quarantine files
|
||||
|
||||
|
||||
@@ -437,6 +437,7 @@ was `public/theme.js` at a fixed path with a revalidating cache.)
|
||||
const scrollbar = read('sh:scrollbar'); // 'thin'|'hidden'|null
|
||||
if (scrollbar === 'thin' || scrollbar === 'hidden') root.dataset.scrollbar = scrollbar;
|
||||
if (read('sh:motion') === 'reduce') root.dataset.motion = 'reduce';
|
||||
if (read('sh:keys') === 'off') root.dataset.keys = 'off'; // v1.4
|
||||
// + marks View Transition promises handled on pageswap/pagereveal
|
||||
})();
|
||||
```
|
||||
@@ -451,13 +452,15 @@ Unknown or garbage values mean "the default". With scripting off there is no
|
||||
identical to the dark theme by test (docs/06 §2).
|
||||
|
||||
**The display menu (`ShPrefs`, v1.1)** replaced `ShThemeToggle`: one icon
|
||||
button opens a popover (`popover="auto"`) with three radio groups.
|
||||
button opens a popover (`popover="auto"`) with four radio groups (the
|
||||
fourth since v1.4).
|
||||
|
||||
| Choice | Values | Storage | Applied as |
|
||||
|---|---|---|---|
|
||||
| Theme | system · light · dark | `sh:theme` (key removed for system) | `html[data-theme]` |
|
||||
| Scrollbar | default · thin · hidden | `sh:scrollbar` (removed for default) | `html[data-scrollbar]` |
|
||||
| Motion | system · reduce | `sh:motion` (removed for system) | `html[data-motion]` |
|
||||
| Keyboard shortcut "/" | on · off | `sh:keys` (removed for on) | `html[data-keys="off"]` — `ShSearch` and `ShPrefs` ignore "/", the header hides its hint, the search placeholder drops "( / )" (WCAG 2.1.4) |
|
||||
|
||||
- While the theme is `system` it follows the OS live (`change` on the
|
||||
media query); an explicit choice stops that.
|
||||
|
||||
+57
-17
@@ -105,7 +105,8 @@ menu icon button, docs/05 §A8).
|
||||
**Footer — five columns** (two on phones): **brand** (mark, tagline, license
|
||||
line "Code GPL-3.0 · Data CC BY-SA 4.0", build date) · **Browse** (Apps,
|
||||
Categories, Search) · **Open data** (`/api/apps.json`, `/rss.xml`, the CC
|
||||
BY-SA 4.0 data licence) · **Legal** (all six documents) · **Project**
|
||||
BY-SA 4.0 data licence) · **Legal** (all seven documents, the
|
||||
Accessibility Statement last) · **Project**
|
||||
(Contact, GitHub ↗, Releases ↗, `ShBugReport` "Report a bug").
|
||||
|
||||
## 5. Pages
|
||||
@@ -119,7 +120,7 @@ search is the island on `/apps`), and two buttons: Browse all apps
|
||||
(primary) · All categories. Beside it, the **"Manifest" ledger**: figures
|
||||
counted from the data at build time — apps listed, completely free, buy
|
||||
once, no known warnings, and per-platform counts — in ruled mono rows.
|
||||
Then the **12-category grid** (icon tile, label, localized count, stretched
|
||||
Then the **category grid** — 15 as of v1.4 (icon tile, label, localized count, stretched
|
||||
link) and **"How this list works"** — three numbered principles (01 official
|
||||
links only · 02 free or own it once · 03 dated, honest status). The v1.0
|
||||
"Latest additions" row was dropped in the refresh (every entry still shares
|
||||
@@ -178,7 +179,7 @@ label, "Developer", now lives in the facts ledger.)
|
||||
(`LEGAL_UPDATED`, docs/14 Part 2), the fixed VI notice on the VI side, then
|
||||
the document (`.sh-prose`: numbered clauses keep their numbers, links are
|
||||
underlined). **No inter-document nav in the page body**: the footer already
|
||||
lists all six on every page, and repeating them a screen apart is noise.
|
||||
lists all seven on every page, and repeating them a screen apart is noise.
|
||||
|
||||
**Contact `/contact`** — one card per purpose (nine `@poli0981.dev`
|
||||
addresses from `src/lib/contacts.ts`, ordered by urgency: security first,
|
||||
@@ -325,18 +326,33 @@ The e2e suite fails any page whose document overflows sideways (docs/11
|
||||
|
||||
## 9. Accessibility checklist
|
||||
|
||||
**Target: WCAG 2.2 level AA** (D33) — a goal, not a conformance claim; no
|
||||
independent audit has been done. The public statement is
|
||||
`/legal/accessibility` (docs/14 §3g), the contributor-facing one
|
||||
`ACCESSIBILITY.md`; both list the test record and known limitations below.
|
||||
|
||||
- Contrast ≥ 4.5:1 text, ≥ 3:1 control boundaries — **enforced** for every
|
||||
token pair in both themes by `src/styles/contrast.test.ts` (§2; adjust L
|
||||
values, keep hues), and checked on rendered pages by axe in the e2e suite
|
||||
(light and dark, serious/critical findings fail — docs/11 §5).
|
||||
(light and dark; critical, serious and moderate findings fail — docs/11
|
||||
§5).
|
||||
- Keyboard: `/` jumps to search from **any** page — on `/apps` `ShSearch`
|
||||
focuses its box, elsewhere `ShPrefs` navigates to `/apps#search`.
|
||||
Suppressed inside text fields, with modifier keys, **and while the legal
|
||||
gate is open** (`body[data-sh-gate="open"]`) — a global shortcut that
|
||||
reaches through a modal defeats the focus trap and can scroll content the
|
||||
user hasn't accepted yet. Esc in search clears, then blurs. A skip link
|
||||
("Skip to content") comes first; `scroll-padding-top` keeps focused or
|
||||
anchored content out from under the sticky header (WCAG 2.4.11). Tab order
|
||||
Suppressed inside text fields, with modifier keys, **while the legal gate
|
||||
is open** (`body[data-sh-gate="open"]`) — a global shortcut that reaches
|
||||
through a modal defeats the focus trap and can scroll content the user
|
||||
hasn't accepted yet — **and when the visitor turned it off**: a bare
|
||||
printable-key shortcut must be possible to switch off (WCAG 2.1.4, level
|
||||
A), so the display menu has "Keyboard shortcut “/”: On / Off" (`sh:keys`
|
||||
→ `html[data-keys="off"]`, applied pre-paint by theme.js; the header's
|
||||
`/` hint and the search placeholder's "( / )" disappear with it, v1.4).
|
||||
Esc in search clears, then blurs. A skip link ("Skip to content") comes
|
||||
first; `scroll-padding-top` keeps focused or anchored content out from
|
||||
under the sticky header (WCAG 2.4.11) — it is `--sh-header-h` + 1 rem,
|
||||
the header's real height measured by `ShPrefs` (a ResizeObserver),
|
||||
because the header wraps to two rows on narrow screens and grows with
|
||||
zoom; `scroll-padding-bottom` clears the fixed language banner while it
|
||||
shows. Tab order
|
||||
header → toolbar → cards → footer, and the grid's DOM order always equals
|
||||
its visual order (docs/05 §A3).
|
||||
- Overlays use the platform: the filter sheet and the legal gate are native
|
||||
@@ -344,19 +360,43 @@ The e2e suite fails any page whose document overflows sideways (docs/11
|
||||
the gate also sets `closedby="none"` and re-opens if Esc or the browser
|
||||
closes it early (docs/14 Part 2). The gate focuses its heading first, so a
|
||||
screen reader reads the notice before any control. The display menu is a
|
||||
`popover`.
|
||||
- `aria-live="polite"` result count; `aria-current` on the current nav
|
||||
section (with an underline, not colour alone); icons decorative
|
||||
`popover`. Closing the sheet or the menu with Esc returns focus to the
|
||||
button that opened it (the platform's, pinned by e2e). Focus is always
|
||||
visible: the global 2 px accent ring, and in the display menu's segmented
|
||||
controls — where arrow keys move focus and choice together, so the
|
||||
focused radio is the accent-filled one — a ring in the fill's ink colour
|
||||
(WCAG 2.4.7).
|
||||
- `aria-live="polite"` result count; the search error lives in a
|
||||
`role="status"` region that is always in the DOM (only its text changes,
|
||||
so it is announced — WCAG 4.1.3); the filter button reads "Filters 2
|
||||
active". `aria-current` on the current nav section (with an underline,
|
||||
not colour alone); icons decorative
|
||||
(`aria-hidden`) unless they are a control's only name; status shown by
|
||||
icon shape *and* colour; links in running text (legal prose, the gate)
|
||||
are underlined (WCAG 1.4.1).
|
||||
- **Forced colours** (Windows contrast themes, v1.4): backgrounds and box
|
||||
shadows are repainted, so the current section gets a text underline, and
|
||||
the chosen segment in the display menu and the current language keep a
|
||||
`Highlight` fill (`forced-color-adjust: none`); focus outlines survive on
|
||||
their own. Pinned by e2e (`emulateMedia({ forcedColors: 'active' })`).
|
||||
- Targets: buttons 44 px, header controls 38–40 px, and inline category
|
||||
links on cards at least 24 px tall (WCAG 2.5.8).
|
||||
- Data tables (third-party notices, AI disclosure) have a visually hidden
|
||||
`<caption>`, `scope="col"` headers, and sit in a labelled
|
||||
`role="region" tabindex="0"` wrapper so their sideways scroll is
|
||||
reachable from the keyboard. The one link that opens a new tab ("Report a
|
||||
bug") says so to screen readers.
|
||||
- Visible text stays inside the accessible name (WCAG 2.5.3): the language
|
||||
switch reads "EN — English" / "VI — Tiếng Việt" (the endonym appended in
|
||||
a matching `lang`, never replacing "EN"/"VI"), and the filter sheet's
|
||||
submit button is named by its own "Show N apps" text.
|
||||
- `lang` attribute correct per locale, including the `lang="vi"` panel on
|
||||
bilingual error pages and the VI suggestion banner on EN pages.
|
||||
- Zoom to 200 % without horizontal scroll (the e2e suite fails any sideways
|
||||
overflow at desktop and Pixel 7 sizes); VoiceOver + NVDA on the grid, the
|
||||
filter sheet and the gate remain a manual launch-checklist item (docs/13
|
||||
§2).
|
||||
- Reflow and zoom to 200 % without horizontal scroll: the e2e suite fails
|
||||
any sideways overflow at desktop and Pixel 7 sizes, and at **320 CSS px**
|
||||
(WCAG 1.4.10) — where the header's controls drop to a second row instead
|
||||
of leaving the screen (`flex-wrap`, v1.4).
|
||||
- Manual record: keyboard only + Narrator on Windows 11 (Chrome, Brave,
|
||||
Firefox) by the owner, 2026-11-09 — no barriers found. VoiceOver + NVDA
|
||||
on the grid, the filter sheet and the gate remain a manual
|
||||
launch-checklist item (docs/13 §2).
|
||||
@@ -85,7 +85,8 @@ serves (`workers_dev: false`). Full domain checklist: docs/16 §10.
|
||||
downloaded per build) and `packageManager` (pnpm 11), or production can
|
||||
differ from what CI validated — re-check after any toolchain bump
|
||||
(docs/13 §2). Node 25+ ships no Corepack; should a build ever fail to find
|
||||
pnpm, the Workers Builds variable `PNPM_VERSION=11.15.1` is the fix.
|
||||
pnpm, the Workers Builds variable `PNPM_VERSION=11.28.11` (the
|
||||
`packageManager` version) is the fix.
|
||||
- Rollback: dashboard → the Worker → **Deployments** → promote a previous
|
||||
version, or `wrangler rollback`.
|
||||
|
||||
@@ -170,13 +171,17 @@ has proper icons, so the site is installable; navigation still always goes
|
||||
to the network.
|
||||
|
||||
```ts
|
||||
// astro.config.ts — AstroPWA(…) (abridged)
|
||||
AstroPWA({
|
||||
// astro.config.ts — AstroPWAIntegration(…) (abridged; @vite-pwa/astro 2,
|
||||
// which under pnpm needs rolldown, magicast, @vite-pwa/workbox-swkit and
|
||||
// @vite-pwa/workbox-window as direct devDependencies — docs/09 §7)
|
||||
AstroPWAIntegration({
|
||||
registerType: 'autoUpdate',
|
||||
// MUST be explicit: without it registerSW.js is emitted but referenced by
|
||||
// no page, and the SW silently never registers (S5). 'script', not
|
||||
// 'inline': an injected inline snippet would not be in the CSP hashes.
|
||||
injectRegister: 'script',
|
||||
minify: false, // check:sw reads the SW by its names
|
||||
includeManifestIcons: false, // 2.x default; 1.x never precached them
|
||||
manifest: {
|
||||
id: '/', name: 'SoftHarbor', short_name: 'SoftHarbor', lang: 'en',
|
||||
description: 'Free & buy-once desktop software, one page.',
|
||||
@@ -190,7 +195,7 @@ AstroPWA({
|
||||
{ src: '/favicon.svg', sizes: 'any', type: 'image/svg+xml', purpose: 'any' },
|
||||
],
|
||||
},
|
||||
workbox: {
|
||||
generateSW: { // `workbox` in 1.x
|
||||
// What /offline needs, and nothing more. Coupled to build.format
|
||||
// ('offline.html', never 'offline/**') and to Astro hashing fonts and
|
||||
// CSS into _astro/ (never a /fonts/ dir) — both mistakes once matched
|
||||
@@ -205,6 +210,7 @@ AstroPWA({
|
||||
],
|
||||
skipWaiting: true, // registerSW.js never posts SKIP_WAITING
|
||||
clientsClaim: true, // control the page that installed the SW (S5)
|
||||
cleanupOutdatedCaches: true, // a 1.x default, opt-in since 2.x
|
||||
// MUST be the empty string, and must be present. Omitting the key does
|
||||
// NOT disable it: vite-plugin-pwa's `defaultWorkbox` sets
|
||||
// navigateFallback: 'index.html', which emitted
|
||||
|
||||
@@ -357,16 +357,60 @@ does not read issue labels.
|
||||
Whether `wrangler dev` (with `.dev.vars`) runs with the script blocked:
|
||||
⚠ verify. Flipping any entry to `true` requires a decision-log line.
|
||||
- **`overrides`** in `pnpm-workspace.yaml` force patched floors for
|
||||
`brace-expansion`, `fast-uri` and `serialize-javascript`, and for the
|
||||
`undici` 7 copy that `miniflare` pins exactly (`miniflare>undici`; added
|
||||
2026-10-26), each with the advisory ids in a comment. All of them reach
|
||||
us only through build or dev tooling (`@vite-pwa/astro` →
|
||||
`workbox-build`, `wrangler` → `miniflare`); nothing ships to a visitor.
|
||||
`minimatch` and `fast-uri`, each with the advisory ids in a comment.
|
||||
Both reach us only through dev tooling (the eslint toolchain,
|
||||
`@astrojs/check`'s language server); nothing ships to a visitor.
|
||||
`minimatch` (GHSA-g3hv-75wg-m249, ≥ 11.0.1, added 2026-11-04) crosses a
|
||||
major — eslint and typescript-eslint ask for 10 — which is accepted only
|
||||
because every caller uses API 11 kept and lint covers the same 157 files
|
||||
with the same rules either side. Every minimatch 11 requires
|
||||
brace-expansion ≥ 5.0.12, so that floor was retired the same day, as was
|
||||
`miniflare>undici` once miniflare itself pinned the fixed 7.30.1.
|
||||
`glob` (GHSA-3g3m-2fjr-6pw4) and `serialize-javascript`
|
||||
(GHSA-m5mm-p8h7-m29v) were retired on 2026-11-09: both came in through
|
||||
`@vite-pwa/astro` 1 → `workbox-build` 7, which left the tree with
|
||||
`@vite-pwa/astro` 2 (nothing depends on glob any more;
|
||||
`@vite-pwa/workbox-build` 8 asks for serialize-javascript ≥ 7.1.4 itself).
|
||||
CI's OSV-Scanner step fails `gates` on any of them, so a new transitive
|
||||
advisory blocks every PR — Dependabot's included — until it is handled
|
||||
here. Remove a line once upstream's own range moves past it.
|
||||
`peerDependencyRules` accepts `@vite-pwa/astro`'s stale Astro peer range
|
||||
explicitly (it works on Astro 7; `check:sw` proves it every build).
|
||||
- **`packageExtensions`** (since 2026-11-09) give `@astrojs/astro2tsx`
|
||||
0.1.3 the `@emnapi/runtime` 1.11.3 that matches the `@emnapi/core` it
|
||||
pins. Rolldown 1.3.0 (Astro 7.4.7) brought `@emnapi/runtime`
|
||||
2.0.0-beta.2 into the graph, pnpm resolved astro2tsx's peer to it, and
|
||||
the mismatched pair threw on import — which `astro check` reports as
|
||||
"`@astrojs/check` is not installed" (Dependabot #67). Remove the entry
|
||||
once an astro2tsx release declares the runtime itself.
|
||||
- **`@vite-pwa/astro` 2** (adopted 2026-11-09 at 2.0.1, a rewrite on
|
||||
`@unplugin-pwa` 0.0.x). 2.0.0 was refused on 2026-11-04: under pnpm's
|
||||
strict layout it emitted a service worker with bare
|
||||
`@vite-pwa/workbox-swkit/*` imports and an empty precache, and the build
|
||||
still reported success. The cause is resolution, not the plugin: the SW
|
||||
and `registerSW.js` are bundled from the project root, where pnpm does
|
||||
not hoist the plugin's own dependencies. So four packages are direct
|
||||
devDependencies — `rolldown`, `magicast`, `@vite-pwa/workbox-swkit`,
|
||||
`@vite-pwa/workbox-window` (knip ignores the last two: nothing imports
|
||||
them by name) — and the two workbox packages must resolve to the exact
|
||||
version `@vite-pwa/workbox-build` pins. `check:sw` now also fails on an
|
||||
ES `import` in `sw.js` or `registerSW.js` (both run as classic scripts),
|
||||
on an `importScripts()` target the build did not emit, and on a missing
|
||||
`cleanupOutdatedCaches()` (a 1.x default, opt-in in 2.x). Verified in a
|
||||
browser: the SW registers and controls the page, precaches the same 16
|
||||
entries as 1.2.0, and serves the styled `/offline` page when the server
|
||||
is gone.
|
||||
- **Advisories no release fixes yet** cannot get an override, so they are
|
||||
skipped by id instead — narrowly, in two places that must agree:
|
||||
`osv-scanner.toml` (`[[IgnoredVulns]]`, each with an `ignoreUntil`
|
||||
expiry and a reason, so the gate fails again and makes someone look) and
|
||||
`auditConfig.ignoreGhsas` in `pnpm-workspace.yaml` for
|
||||
`pnpm audit --prod`. Only for code that merges or reads our own input at
|
||||
build time and ships nothing to a visitor. Current entry (added
|
||||
2026-10-30, expires 2027-01-31): `deepmerge` ≤ 4.3.1,
|
||||
GHSA-gcqx-w48m-w2h4 (low) — 4.3.1 is the latest release; it reaches us
|
||||
through `@sveltejs/vite-plugin-svelte` (merging `svelte.config.js`); its
|
||||
second path, `workbox-build` 7 → `@rollup/plugin-node-resolve`, left with
|
||||
`@vite-pwa/astro` 2 on 2026-11-09. Once a fixed release exists, remove both lines and add an
|
||||
override floor if upstream's range does not reach it.
|
||||
- **pnpm 11's default 24 h `minimumReleaseAge`** refuses any release younger
|
||||
than a day; Dependabot's 2-day cooldown keeps its PRs installable under
|
||||
`--frozen-lockfile` (docs/12 §6).
|
||||
@@ -377,7 +421,9 @@ does not read issue labels.
|
||||
(`ci.yml` `gates` job — docs/01 §5, docs/12 §2). CodeQL runs on PRs,
|
||||
pushes and weekly; SonarQube Cloud's CI-based analysis (`ci.yml` `sonar`
|
||||
job, `sonar-project.properties`) covers workflows, scripts and the site
|
||||
code, with coverage, on every PR and push to `main`.
|
||||
code, with coverage, on every PR and push to `main`; Qodana (`qodana-js`,
|
||||
D35) adds WebStorm's inspections over the same scope, its findings in
|
||||
GitHub code scanning beside CodeQL's.
|
||||
- All GitHub Actions in this repository's workflows pinned to **commit
|
||||
SHAs** with a version comment (Dependabot bumps both); the org's own
|
||||
reusable workflows (`poli0981/.github`) are tracked at `@main` on purpose.
|
||||
@@ -402,6 +448,7 @@ table true:
|
||||
| `sh:theme` | `light` \| `dark` (absent = system) | until cleared |
|
||||
| `sh:scrollbar` | `thin` \| `hidden` (absent = default) | until cleared |
|
||||
| `sh:motion` | `reduce` (absent = follow the OS) | until cleared |
|
||||
| `sh:keys` | `off` (absent = the "/" shortcut is on; v1.4, WCAG 2.1.4) | until cleared |
|
||||
| SW cache | offline page, its CSS, the three head scripts, the latin + Vietnamese body/display fonts, favicon | managed by Workbox |
|
||||
| Ring buffer | `window.__shErrors`, in memory only (docs/05 §A5) | page lifetime |
|
||||
| Session fallbacks | `globalThis` flags holding the gate's acceptance / check result when storage throws | page lifetime |
|
||||
|
||||
@@ -108,10 +108,11 @@ hand-aligned tables.
|
||||
## 4. Dead code & hooks
|
||||
|
||||
`knip.json`: entries = `src/pages/**/*.{astro,ts}`, `scripts/*.mjs`,
|
||||
`src/scripts/*.js`; project = `src/**`, `scripts/**`, `e2e/**`,
|
||||
`worker/**`; the Fontsource packages and `tailwindcss` are ignored as
|
||||
dependencies (they are imported from CSS, which knip does not read). knip
|
||||
runs in CI (`build` job); unused files, exports or deps fail it.
|
||||
`src/scripts/*.js`; project = `src/**` (CSS included, so knip follows
|
||||
`global.css`'s `@import`s to Fontsource and `tailwindcss` — until
|
||||
2026-11-04 those were listed under `ignoreDependencies` instead), `scripts/**`,
|
||||
`e2e/**`, `worker/**`. knip runs in CI (`build` job); unused files, exports
|
||||
or deps fail it.
|
||||
|
||||
`lefthook.yml` (lefthook 2 `jobs:` syntax):
|
||||
|
||||
@@ -154,7 +155,9 @@ Conventional Commits, lowercase, imperative: `feat:`, `fix:`, `data:`
|
||||
(dataset changes — custom type, allowed), `docs:`, `chore:`, `ci:`,
|
||||
`refactor:`, `test:`. Scope optional (`feat(search): …`); Dependabot uses
|
||||
`fix(deps)` / `chore(deps)` / `ci`. One logical change per PR; PR
|
||||
description links the doc section it implements.
|
||||
description links the doc section it implements and follows
|
||||
`.github/PULL_REQUEST_TEMPLATE.md` (checks, the accessibility checklist,
|
||||
data-PR checklist — v1.4).
|
||||
|
||||
Commits are **signed** — the `main` ruleset rejects unsigned ones (docs/12
|
||||
§8). **Squash is the only merge method**: GitHub cannot sign a rebase merge
|
||||
@@ -205,5 +208,10 @@ same PR — divergence is a defect.
|
||||
7. Legal text changed materially (Disclaimer, Terms, Privacy) →
|
||||
`LEGAL_VERSION` bumped with `LEGAL_UPDATED` (docs/14 Part 2); a test
|
||||
enforces it.
|
||||
8. After the squash merge: the "Workers Builds" check on the merge commit
|
||||
8. **Accessibility** (ACCESSIBILITY.md, docs/06 §9): anything a visitor sees
|
||||
or operates passes axe in the e2e suite (critical/serious/moderate fail),
|
||||
gets one keyboard-only pass and a screen-reader spot check, and keeps
|
||||
working at 320 px, at 200 % zoom and in forced colours. A rule that
|
||||
cannot be met is explained in the PR, never disabled silently.
|
||||
9. After the squash merge: the "Workers Builds" check on the merge commit
|
||||
is green and production is verified (docs/13 §3).
|
||||
+17
-3
@@ -214,7 +214,8 @@ construction. Exemptions moved from a path regex to a page-declared
|
||||
`gateExempt`. The browser-only gaps listed above are now covered by
|
||||
Playwright (`e2e/gate.spec.ts`, §5): real top layer, Esc pressed twice
|
||||
against Chromium's close-watcher, `closedby="none"`, persistence across a
|
||||
reload, exempt pages. Screen-reader and visual checks stay manual.
|
||||
reload, exempt pages. Screen-reader and visual checks stay manual (first
|
||||
recorded pass: keyboard + Narrator, owner, 2026-11-09 — docs/13 §2).
|
||||
|
||||
### S5 — PWA offline on the real origin
|
||||
- **Goal:** offline fallback works where users are: `softharbor.net`.
|
||||
@@ -256,6 +257,15 @@ rendering both languages, online navigation still serving real pages.
|
||||
fonts, `/offline` cache-servable, online navigation still serving real pages,
|
||||
zero console errors.
|
||||
|
||||
**Re-verified after the move to `@vite-pwa/astro` 2.0.1** (2026-11-09, local
|
||||
`astro preview`, Chromium): SW active **and controlling**, the same 16
|
||||
precache entries as 1.2.0, zero console errors; with the preview server
|
||||
stopped, a navigation to `/apps/7-zip` was answered by the styled `/offline`
|
||||
page (stylesheet and fonts from the precache). The upgrade first produced two
|
||||
more silent failures of the S5 kind — bare ES imports in `sw.js` and in
|
||||
`registerSW.js`, which both run as classic scripts — so `check:sw` now fails on
|
||||
those too (docs/09 §7).
|
||||
|
||||
**Still outstanding:** the actual airplane-mode pass on desktop **and Android
|
||||
Chrome**, which is a device test. The software wiring above is what can be
|
||||
verified without one.
|
||||
@@ -303,11 +313,15 @@ something else; `stubTurnstile()` serves a fake `api.js` **from its real
|
||||
URL** (so the page CSP is still exercised) and answers `/api/verify` — which
|
||||
`astro preview` does not run — with 200, 503, or blocks the script;
|
||||
`waitForIsland()` waits for hydration; `settled()` waits for entrance
|
||||
animations before axe measures contrast.
|
||||
animations before axe measures contrast; `axeViolations()` runs axe with the
|
||||
WCAG 2.0/2.1 A+AA and 2.2 AA tags (optionally on one component) and returns
|
||||
the critical, serious **and moderate** findings — one line per rule (v1.4,
|
||||
D33; it was serious/critical only).
|
||||
|
||||
| Spec | Covers |
|
||||
|---|---|
|
||||
| `smoke.spec.ts` | 15 pages in both locales (home, grid, detail, categories, legal, offline, contact): status < 400, an `h1`, a resolved `data-theme`, **no horizontal overflow**; an unknown URL → real 404 without the gate; **axe** (WCAG 2.0/2.1 A+AA, 2.2 AA tags) on five pages in **light and dark**, serious/critical findings fail |
|
||||
| `smoke.spec.ts` | 18 pages in both locales (home, grid, detail, categories, legal incl. third-party and accessibility, offline, contact): status < 400, an `h1`, a resolved `data-theme`, **no horizontal overflow**; an unknown URL → real 404 without the gate; **axe** (`axeViolations()`) on 13 pages — every page type in both locales, the tables of third-party notices, contact rows, offline — in **light and dark**, plus the 404 page |
|
||||
| `a11y.spec.ts` | ACCESSIBILITY.md's automated half: axe on the **open** legal gate, filter sheet and display menu; the first Tab reaches the skip link, which skips the header; Esc returns focus to the filter and display buttons; the focused display choice has a ring that differs from its fill (2.4.7); the "/" switch turns the shortcut, its hint and the placeholder's "( / )" off and stays off on the next document (2.1.4); **reflow at 320 × 640** on 13 pages (desktop project; 1.4.10); **forced colours** keep the current section underlined and the chosen segment/language filled |
|
||||
| `gate.spec.ts` | blocks a first visit until accepted *and* checked; Esc twice cannot dismiss; **no Cloudflare request before acceptance**; check remembered ~48 h across a reload; blocked script or 503 → visitor let through with the "skipped" note and a 1 h retry; a lapsed check re-runs step 2 only; linked documents and error/offline pages are exempt |
|
||||
| `worker.spec.ts` (project `worker`) | pages pass through the Worker with `_headers`, the 404 page and the trailing-slash redirect intact; a flood gets **exactly** the configured budget of 200s, then 429s — the branded page with `Retry-After` and `no-store`; while refused, `/api/apps.json` and `/api/verify` answer JSON (the dataset CORS-readable) and a page's CSS, the service worker and the favicon still load; the 429 page renders styled in Chrome with no CSP violation and no gate; everyone is back in when the window passes. Serial, and each test first waits for a fresh window (Miniflare counts in fixed windows aligned to the clock, refusals not counted) |
|
||||
| `prefs-search.spec.ts` | display choices apply at once and are restored pre-paint on the next document; `/` from any page lands focused in `/apps#search`; Vietnamese search ignores diacritics, writes `?q=` and switches to "Best match"; a shared URL restores the view and "Clear all" really clears it |
|
||||
|
||||
+97
-15
@@ -3,11 +3,11 @@
|
||||
## 1. Overview
|
||||
|
||||
```
|
||||
PR ──▶ ci (build + gates) + codeql ──▶ review ──▶ squash (signed) to main
|
||||
│
|
||||
┌─────────────────────────────────┤
|
||||
▼ ▼
|
||||
Cloudflare Workers Builds quarantine.yml (paths)
|
||||
PR ──▶ ci (build + gates) + codeql + qodana ──▶ review ──▶ squash (signed) to main
|
||||
│
|
||||
┌──────────────────────────────────────────┤
|
||||
▼ ▼
|
||||
Cloudflare Workers Builds quarantine.yml (paths)
|
||||
(git integration — NOT a workflow)
|
||||
queued ─▶ build ─▶ deploy ─▶ verify production (docs/13 §3)
|
||||
cron ─▶ link-check (weekly) · quarantine (nightly) · codeql (weekly)
|
||||
@@ -90,15 +90,17 @@ deliberately: first-party org workflows (`poli0981/.github`) are tracked at
|
||||
`@main` so org-wide fixes land everywhere at once, and how *they* pin their
|
||||
internal actions is the ops repo's call — do not file it as a defect here.
|
||||
|
||||
Pinned as of 2026-10-23: `actions/checkout` v7.0.1 · `pnpm/action-setup`
|
||||
v6.1.0 (no `version:` — it reads `packageManager`) · `actions/setup-node`
|
||||
Pinned as of 2026-11-04: `actions/checkout` v7.0.1 · `pnpm/action-setup`
|
||||
v6.1.1 (no `version:` — it reads `packageManager`) · `actions/setup-node`
|
||||
v7.1.0 (`node-version-file: .nvmrc`) · `actions/cache` v6.1.0 ·
|
||||
`actions/upload-artifact` v7.0.2 · `google/osv-scanner-action` v2.7.0 ·
|
||||
`lycheeverse/lychee-action` v2.9.0 · `peter-evans/create-pull-request`
|
||||
v8.1.1 · `SonarSource/sonarqube-scan-action` v8.3.0 (with
|
||||
`scannerVersion: 8.2.0.6438`, the newest CLI — Dependabot bumps the action,
|
||||
v8.1.1 · `SonarSource/sonarqube-scan-action` v8.4.1 (with
|
||||
`scannerVersion: 8.3.1.16491`, the newest CLI — Dependabot bumps the action,
|
||||
not that input; the deprecated `sonarcloud-github-action` must not come
|
||||
back).
|
||||
back). Added 2026-11-15 (D35): `JetBrains/qodana-action` v2026.2.2 — its
|
||||
release line selects the linter (`qodana-js` 2026.2) — and
|
||||
`github/codeql-action/upload-sarif` v4.39.3.
|
||||
|
||||
## 2. Callers to `poli0981/.github` reusable workflows
|
||||
|
||||
@@ -208,6 +210,56 @@ workflow never produces on a PR deadlocks the repository — no PR can merge
|
||||
(hit 2026-07-30). It is also the point of the tool: scanning only after the
|
||||
merge reports a vulnerability that is already on `main`.
|
||||
|
||||
`.github/workflows/qodana.yml` — **self-contained, one job (`qodana`), not a
|
||||
required check** (D35, 2026-11-15). JetBrains Qodana is the third analyser,
|
||||
beside CodeQL and SonarQube Cloud: `qodana-js`, WebStorm's inspection engine,
|
||||
which runs only under a Qodana **Ultimate** (or Ultimate Plus) licence — the
|
||||
repository secret `QODANA_TOKEN` is the Qodana Cloud project token that
|
||||
carries it. Scope and gate live in `qodana.yaml`:
|
||||
|
||||
- **Native mode** (`withinDocker: 'false'`): the linter runs on the runner,
|
||||
after setup-node (`.nvmrc`) and `pnpm install --frozen-lockfile`, so it
|
||||
resolves imports against the real install on Node 26; the image's own
|
||||
Node would not satisfy `engines`.
|
||||
- Profile **`qodana.recommended`**, the same scope as
|
||||
`sonar-project.properties` (the dataset, build/test output and local tool
|
||||
state excluded). `qodana-js` reads `.ts`/`.js`/`.mjs`, JSON, YAML,
|
||||
Markdown and CSS; `.astro` and `.svelte` are outside its language list.
|
||||
**JetBrains' Astro and Svelte plugins were tried and dropped**
|
||||
(2026-11-15): under Qodana their type checks were not deterministic. On
|
||||
unchanged code the Svelte plugin reported `Intl.PluralRules#select` and
|
||||
`Intl.NumberFormat#format` in `ShFilterSheet.svelte` as unresolved (one
|
||||
run in three), and the Astro plugin read `Base.astro`'s `locale = 'en'`
|
||||
default as `string` instead of `Locale` — 15 errors in one run, none in
|
||||
the run before it on the same commit (it also called every component an
|
||||
`.astro` template uses an unused import). A gate that flips on its own
|
||||
teaches everyone to ignore it. `astro check` — the TypeScript compiler
|
||||
itself — type-checks the `.astro` files; ESLint (eslint-plugin-astro,
|
||||
eslint-plugin-svelte), the Vitest island suites and e2e cover the rest.
|
||||
- **Gate:** `failureConditions.severityThresholds.any: 0` — any finding
|
||||
turns the job red. Findings are fixed in the code; a false positive with a
|
||||
known cause is switched off **in `qodana.yaml`, with its reason** — never
|
||||
with `noinspection` comments in the source (CONTRIBUTING: no silencing).
|
||||
- Runs on PRs, pushes to `main` and manual dispatch, `pr-mode: false` — a PR
|
||||
is analysed whole, because a change can break a file it does not touch.
|
||||
The action annotates the PR and posts a summary comment (`checks: write`,
|
||||
`pull-requests: write`) and uploads the report as the `qodana-report`
|
||||
artifact; the SARIF goes to **GitHub code scanning** (`security-events:
|
||||
write`) — also when the gate failed, with the PR's head commit as
|
||||
`ref`/`sha`, since that is what was checked out. Code scanning lists it as
|
||||
tool **`QDJS`**, category `softharbor/qodana`: Qodana writes its own
|
||||
automation id into the SARIF, which outranks the upload's `category`
|
||||
(filter alerts with `tool_name=QDJS`).
|
||||
- The same `if:` guard as `sonar` — Dependabot, fork PRs and the bot data PRs
|
||||
have no token. Caches are saved from `main` only
|
||||
(`cache-default-branch-only`) to spare the 10 GB cache budget.
|
||||
- Not required, for the reason `sonar` is not: a Qodana Cloud outage or a
|
||||
lapsed licence must never block a merge. **The licence runs until
|
||||
2026-12-31** (the scan log prints it): renew it, or every run turns red
|
||||
from 2027-01-01. Ultimate does **not** include
|
||||
Qodana's vulnerability checker or licence audit (Ultimate Plus);
|
||||
`osv-scanner`, `pnpm audit` and Dependabot own the dependencies.
|
||||
|
||||
`.github/workflows/notify.yml` (published release → Discord announcement):
|
||||
|
||||
```yaml
|
||||
@@ -500,10 +552,12 @@ policy — a PR opened on release day failed before a single test ran (#14,
|
||||
Plus `osv-scanner` (`google/osv-scanner-action`, lockfile mode) and
|
||||
`pnpm audit --prod`, both steps of `ci.yml`'s **`gates` job** (§2), on every
|
||||
PR and push to `main`; a finding fails the job (policy docs/01 §5).
|
||||
CodeQL (§2) and SonarQube Cloud's CI-based analysis (`ci.yml` `sonar` job,
|
||||
CodeQL (§2), SonarQube Cloud's CI-based analysis (`ci.yml` `sonar` job,
|
||||
`sonar-project.properties` — sources rooted at the repo so `.github/`
|
||||
workflows are analysed too; the dataset, docs and build output excluded;
|
||||
coverage imported) complete the scanning.
|
||||
coverage imported) and Qodana (`qodana.yml` + `qodana.yaml`, D35 —
|
||||
WebStorm's inspections, its findings in GitHub code scanning beside
|
||||
CodeQL's) complete the scanning.
|
||||
|
||||
## 7. Issue forms
|
||||
|
||||
@@ -568,10 +622,35 @@ body:
|
||||
- { label: 'Actively maintained or stable-and-finished', required: true }
|
||||
```
|
||||
|
||||
`.github/ISSUE_TEMPLATE/accessibility.yml` (v1.4, D33) — label
|
||||
`accessibility`; only the two first fields are required (what got in the
|
||||
way, the page address); steps, environment (device, OS, browser, assistive
|
||||
technology), a severity dropdown matching ACCESSIBILITY.md (Critical /
|
||||
Serious / Moderate / Minor — confirmed in triage) and a screenshot or
|
||||
recording are optional. It names the email route,
|
||||
`accessibility@poli0981.dev`, for anyone without a GitHub account, and
|
||||
never asks about disability.
|
||||
|
||||
`.github/ISSUE_TEMPLATE/listing_change.yml` (v1.4.1, D36) — label
|
||||
`listing-change`: which app (its page or its name), what should change
|
||||
(remove: subscription-only now, or abandoned or unsafe; correct a link;
|
||||
correct a detail; re-check the security status), the evidence (required)
|
||||
and anything else. It sends a suspected malicious or hijacked download to
|
||||
private reporting (SECURITY.md) and a developer to takedown@poli0981.dev.
|
||||
|
||||
`.github/ISSUE_TEMPLATE/config.yml`: `blank_issues_enabled: false`; contact
|
||||
links → GitHub Discussions for questions, and **Report a security issue** →
|
||||
the repository's private vulnerability reporting
|
||||
(`/security/advisories/new`) — never a public issue.
|
||||
links → GitHub Discussions for questions, the **maintenance-mode
|
||||
announcement** (what is accepted, D36), the **Accessibility statement**
|
||||
(`/legal/accessibility`), and **Report a security issue** → the
|
||||
repository's private vulnerability reporting (`/security/advisories/new`)
|
||||
— never a public issue.
|
||||
|
||||
`.github/PULL_REQUEST_TEMPLATE.md` (v1.4; v1.4.1 adds the D36 box — a fix,
|
||||
data or upkeep, not a feature): what and why with the linked
|
||||
issue, the CI gates, docs and i18n parity, the **accessibility checklist**
|
||||
(keyboard, names and states, screen-reader spot check, colour/contrast/
|
||||
forced colours, 320 px and 200 %, motion) and a data-PR block (docs/00 §3,
|
||||
docs/09 §6, original EN/VI summaries, `unverified` entry, official links).
|
||||
|
||||
## 8. Branch protection (ruleset "Run" on `main`)
|
||||
|
||||
@@ -589,6 +668,9 @@ protection:
|
||||
the workflow: naming only the workflow leaves the `gates` job
|
||||
(validate:data, i18n parity, osv-scanner, audit, link check) unenforced.
|
||||
A required check must be produced on PRs, or nothing can merge (§2).
|
||||
- **Not required, deliberately:** `ci / sonar` and `qodana` — a third-party
|
||||
outage or a lapsed licence must never block a merge (D29, D35); a failing
|
||||
gate still shows red on the PR.
|
||||
- Auto-merge is disabled (⚠ verify in Settings if this matters).
|
||||
|
||||
**Merge method: squash, and only squash.** GitHub refuses a rebase merge
|
||||
|
||||
+19
-1
@@ -9,12 +9,23 @@ content. Git tags mark milestones only: **`v1.0.0`** at public launch
|
||||
**`v1.2.0`** for the upkeep release — re-check automation, Node 26 /
|
||||
TypeScript 7, CI-based SonarQube Cloud, catalogue batch 2 (2026-10-23),
|
||||
**`v1.3.0`** for the site-wide rate limit (D32, 2026-10-26),
|
||||
**`v1.4.0`** for accessibility — the statement, the "/" switch, the WCAG
|
||||
2.2 fixes and the Accessibility category (D33, D34, 2026-11-09),
|
||||
**`v1.4.1`** for the start of maintenance mode and Qodana (D36, D35,
|
||||
2026-11-15),
|
||||
minor tags when a feature phase ships. Publishing a GitHub Release fires `notify.yml` →
|
||||
Discord (docs/12 §2). Data changes never tag. `CHANGELOG.md`
|
||||
(Keep-a-Changelog, dates UTC) records feature work and anything a visitor
|
||||
should know — v1.1.0 leads with the privacy changes — not app additions:
|
||||
the RSS feed *is* the data changelog.
|
||||
|
||||
**In maintenance mode (D36)** a tag follows a fix, not a feature: a
|
||||
**patch** (`v1.4.x`) when a fix is worth announcing — a security fix, a
|
||||
bug or accessibility fix a visitor would notice, an urgent dependency or
|
||||
runtime update — and a **minor** for a platform major (TypeScript 7
|
||||
alone, Astro, Wrangler). Routine Dependabot merges and data changes
|
||||
still never tag.
|
||||
|
||||
## 2. Launch checklist (gate for calling it v1.0.0)
|
||||
|
||||
> **Status 2026-10-21.** **v1.0.0 shipped on 2026-07-30** (tag + GitHub
|
||||
@@ -111,11 +122,16 @@ Quality bar
|
||||
Playwright suite now enforces axe — serious/critical findings in
|
||||
light and dark — console- and CSP-clean pages and no sideways
|
||||
overflow on every PR; Lighthouse and the size budget are still not
|
||||
wired.)*
|
||||
wired. v1.4: moderate findings fail too, axe also runs on the open
|
||||
gate, filter sheet and display menu, and reflow at 320 px and forced
|
||||
colours are tested — `e2e/a11y.spec.ts`.)*
|
||||
- [x] *(v1.1)* **End-to-end suite enforced in CI** — Playwright + axe on the
|
||||
built site, desktop + Pixel 7, in `ci.yml`'s `build` job on every PR
|
||||
and push to `main` (docs/11 §5); a red e2e run blocks the merge like
|
||||
any other required check.
|
||||
- [x] *(v1.4)* Keyboard-only + Narrator (Windows 11; Chrome, Brave,
|
||||
Firefox) pass on the whole site — owner, 2026-11-09, no barriers
|
||||
found; recorded in ACCESSIBILITY.md and `/legal/accessibility`
|
||||
- [ ] VoiceOver (macOS) + NVDA (Windows) pass on grid, filter sheet, gate
|
||||
- [ ] Vietnamese diacritics visually clean in all three fonts at all scale
|
||||
steps (docs/06 §3)
|
||||
@@ -228,6 +244,7 @@ shape or the 50-item window's order without meaning to announce.
|
||||
| Cadence | Task |
|
||||
|---|---|
|
||||
| per-PR | vetting checklist on new/changed entries |
|
||||
| per issue / PR | triage against D36 (maintenance mode): listings, re-checks, bugs, UI/UX and accessibility are in scope; a feature request is closed as *not planned* with `wontfix` |
|
||||
| **after every merge** | wait for the merge commit's "Workers Builds" check, then verify production (§3) |
|
||||
| daily (auto) | quarantine sweep (docs/12 §4) |
|
||||
| weekly (auto) | link-check triage — the one `link-rot` issue is refreshed or closed (docs/12 §5); fix, replace with official mirror, or flag |
|
||||
@@ -235,6 +252,7 @@ shape or the 50-item window's order without meaning to announce.
|
||||
| daily (auto, 00:41 UTC) | VirusTotal re-check (docs/12 §4b): checks older than 90 days are re-scanned into the one `vt/recheck` PR — review and merge it; triage any `[vt] <slug>` issue (false positive → back to `clean` with a note; confirmed → `flagged` + `pnpm quarantine`). GitHub disables a public repo's schedules after 60 days without activity — re-enable the workflow if it ever goes quiet |
|
||||
| monthly (manual, ~10 min) | GSC review: Coverage, Core Web Vitals, hreflang errors; skim DMARC reports (docs/16 §6/§8) |
|
||||
| **annually (manual, ~2 min)** | **Roll `Expires` in `public/.well-known/security.txt` forward one year** (docs/09 §5). An expired `security.txt` is treated as invalid by scanners and researchers — and nothing else in this repo would notice. |
|
||||
| **by 2026-12-31** | **Renew the Qodana Ultimate licence** (Qodana Cloud; the scan log prints its end date) — without it every `qodana` run is red from 2027-01-01 (docs/12 §2, D35) |
|
||||
| once, post-launch | HSTS phase transitions P1 → P2 (+2 weeks) → optional P3/preload (H9) — docs/16 §5. Observed 2026-10-21: already at P3 (`preload` in the header) — docs/15 §5 |
|
||||
| quarterly | review category taxonomy & criteria rulings; prune tags |
|
||||
|
||||
|
||||
+54
-10
@@ -9,7 +9,8 @@
|
||||
> and `/vi/legal/*` (VI); English is canonical (docs/07 §8). The shipped
|
||||
> wording lives in `src/components/legal/*.astro` (Part 3); every document
|
||||
> carries its **own** "Last updated" date (`LEGAL_UPDATED`) — all six read
|
||||
> 2026-10-21 as of v1.1.
|
||||
> 2026-10-21 as of v1.1. v1.4 (D33) adds a seventh page, the
|
||||
> **Accessibility Statement** (§3g) — informational, not accepted.
|
||||
|
||||
## Part 1 — Licensing model
|
||||
|
||||
@@ -65,7 +66,7 @@ returning visitor whose check has lapsed sees step 2 only.
|
||||
|---|---|
|
||||
| Trigger | Shown when `sh:legal ≠ LEGAL_VERSION` (step 1, docs/05 §A7) **or** `sh:human` has lapsed (step 2 only) |
|
||||
| Component | `ShLegalGate.svelte`, `client:load`, rendered by `Base.astro` on every non-exempt page — no `transition:persist`: every navigation is a full document load (docs/02 §6), so each page mounts its own gate with its own locale's strings |
|
||||
| Exempt pages | Declared by the page with `gateExempt` — the island is simply not rendered: the six legal documents (EN + VI), `/contact` (EN + VI), `/404`, `/offline`, `/errors/*`. The gate links to the very documents it asks users to accept; error and offline pages must never dead-lock (Workers serves `404.html`, and the SW the offline page, at whatever URL was requested — the old path regex never matched them); a security or copyright notice must never wait behind acceptance |
|
||||
| Exempt pages | Declared by the page with `gateExempt` — the island is simply not rendered: the seven legal documents (EN + VI, the Accessibility Statement included — someone held up by a barrier, the gate's own included, must be able to read how to report it), `/contact` (EN + VI), `/404`, `/offline`, `/errors/*`. The gate links to the very documents it asks users to accept; error and offline pages must never dead-lock (Workers serves `404.html`, and the SW the offline page, at whatever URL was requested — the old path regex never matched them); a security or copyright notice must never wait behind acceptance |
|
||||
| Content, step 1 | Locale-matched summary (below) + links to Disclaimer, Terms and Privacy under the locale's `/legal` base + a single accept button. No decline button: the copy explains that leaving the site is the alternative. A scale icon tile heads the step |
|
||||
| Content, step 2 | "One moment" — what Turnstile is for, a spinner, and a link to the Privacy Policy's `#turnstile` section; the widget shows itself only if it needs a click (`interaction-only`). If the check cannot run: "The check could not run, so it was skipped. Come on in." for 1.5 s, then the gate closes. A shield icon tile heads the step |
|
||||
| Step 2 outcome | Pass ⇒ `sh:human` = now + 48 h. Anything else — script blocked, widget error, 10 s timeout (120 s once it asks for a click), Worker 429/503/unreachable, three rejected challenges — ⇒ now + 1 h and the visitor is **let in** (fail open, docs/09 §4a) |
|
||||
@@ -88,10 +89,10 @@ dictionaries into the island would bundle every key (docs/07 §3).
|
||||
the three documents the gate asks for. **Bump it when one of those three
|
||||
changes materially**: the bump re-opens the gate for everyone, which is
|
||||
the intended behaviour. Typos and formatting do not bump it.
|
||||
- `LEGAL_UPDATED` gives each of the **six** documents its own "Last
|
||||
updated" date, shown on its page. Trademarks, Third-party notices and the
|
||||
AI Disclosure move only their own date — they are informational and not
|
||||
part of what is accepted.
|
||||
- `LEGAL_UPDATED` gives each of the **seven** documents its own "Last
|
||||
updated" date, shown on its page. Trademarks, Third-party notices, the
|
||||
AI Disclosure and the Accessibility Statement move only their own date —
|
||||
they are informational and not part of what is accepted.
|
||||
- **A test enforces the link** (`src/lib/legal.test.ts`): every accepted
|
||||
document's `LEGAL_UPDATED` must be ≤ `LEGAL_VERSION` — editing Privacy
|
||||
without bumping the version fails `pnpm test`. Every date must be a real
|
||||
@@ -106,7 +107,11 @@ dictionaries into the island would bundle every key (docs/07 §3).
|
||||
Disclosure claims fixed) · **2026-10-26** (v1.3: Privacy gains
|
||||
`#rate-limit` for the site-wide rate limit, D32 — our own code now
|
||||
processes every visitor's address, if only for seconds, which the gate
|
||||
asks everyone to accept once more).
|
||||
asks everyone to accept once more) · **2026-11-09** (v1.4, D33: Privacy
|
||||
`#storage` lists `sh:keys`, the display menu's switch for the "/"
|
||||
shortcut — the storage inventory must stay complete, and the test treats
|
||||
any Privacy change as one the gate asks about; the owner chose this over
|
||||
dropping the switch).
|
||||
|
||||
### Contacts (D27)
|
||||
|
||||
@@ -120,6 +125,7 @@ another. Mail to `poli0981.dev` is delivered to a **Google-hosted** mailbox
|
||||
|---|---|---|
|
||||
| `security` | `security@poli0981.dev` | vulnerabilities; hijacked or malicious listing links (`security.txt`, `SECURITY.md`, Disclaimer) |
|
||||
| `privacy` | `privacy@poli0981.dev` | the Privacy Policy, data requests |
|
||||
| `accessibility` | `accessibility@poli0981.dev` | a barrier on the site — the Accessibility Statement and ACCESSIBILITY.md (D33, alias created 2026-11-09) |
|
||||
| `legal` | `legal@poli0981.dev` | Terms, Disclaimer, anything else legal |
|
||||
| `dmca` | `dmca@poli0981.dev` | copyright (DMCA-style) notices — the procedure in Terms `#copyright` |
|
||||
| `takedown` | `takedown@poli0981.dev` | a developer asking for their listing or logo to be changed or removed; trademark complaints |
|
||||
@@ -214,7 +220,8 @@ analytics") stopped being true with D25/D26 and is not reproduced here
|
||||
(SkullMute), in Vietnam, who decides how the little data described is
|
||||
handled; questions to `privacy@poli0981.dev`.
|
||||
- **`#storage`** — localStorage `sh:legal`, `sh:human`, `sh:lang`,
|
||||
`sh:theme`, `sh:scrollbar`, `sh:motion`, never sent anywhere; a service
|
||||
`sh:theme`, `sh:scrollbar`, `sh:motion`, `sh:keys` (v1.4), never sent
|
||||
anywhere; a service
|
||||
worker stores the offline page, styles and fonts; no cookies (docs/09 §8).
|
||||
- **`#analytics`** — Cloudflare Web Analytics: no cookies, nothing stored
|
||||
in the browser; reports page address, referrer, load timings and
|
||||
@@ -358,8 +365,9 @@ can only carry CC BY-SA 4.0 because the summaries are the project's own words
|
||||
Must name **each model whose work lands, its version identifier, and its
|
||||
developer** — currently Claude models by Anthropic, used through Claude
|
||||
Code: **Claude Opus 5** (`claude-opus-5`) for the site and catalogue
|
||||
through v1.0, and **Claude Opus 5.5** (`claude-opus-5-5`) for the v1.1 and
|
||||
v1.2 work of October 2026; no other AI system contributed. Every claim on the page
|
||||
through v1.0, and **Claude Opus 5.5** (`claude-opus-5-5`) for the v1.1–v1.3
|
||||
work of October 2026 and the v1.4 work of November 2026; no other AI system
|
||||
contributed. Every claim on the page
|
||||
must stay literally true — update it when a process changes (two false
|
||||
claims were corrected on 2026-10-21).
|
||||
|
||||
@@ -378,6 +386,42 @@ nor an excuse, and a mistake here belongs to the maintainer, not a tool.
|
||||
Disclaimer, Terms and Privacy only; this page is informational and is reached
|
||||
from the footer. It is still gate-exempt like every other `/legal/*` route.
|
||||
|
||||
### 3g. Accessibility Statement — `/legal/accessibility`
|
||||
|
||||
Added 2026-11-09 (D33, v1.4). The visitor-facing twin of `ACCESSIBILITY.md`
|
||||
at the repository root (GitHub's community-profile "Accessibility" file):
|
||||
the two must state the same target, test record, limitations and response
|
||||
times — change one, change the other in the same PR. Plain language, user
|
||||
experiences rather than criterion numbers; English canonical, Vietnamese a
|
||||
full translation. Informational, **not accepted**, gate-exempt, linked from
|
||||
the footer's legal column and from the Contact page's accessibility row.
|
||||
|
||||
Sections (anchors stable — the issue form and ACCESSIBILITY.md link them):
|
||||
|
||||
- **intro** — who the site should work for (keyboard only, screen reader,
|
||||
magnification, voice control, high-contrast themes).
|
||||
- **`#target`** — WCAG 2.2 AA as a *target*, explicitly not a conformance
|
||||
claim; no independent audit has been done.
|
||||
- **`#features`** — keyboard and skip link, semantic structure and `lang`,
|
||||
tested contrast (7:1 / 4.5:1 / 3:1), nothing by colour alone, the display
|
||||
menu (theme, motion, scrollbar, the "/" switch), system reduced motion
|
||||
and forced colours, 200 % zoom and reflow, announced result counts, no
|
||||
images of text.
|
||||
- **`#tested`** — automated on every change (axe WCAG 2.0–2.2 A/AA, both
|
||||
themes, desktop and phone, keyboard/reflow/forced-colour/contrast tests);
|
||||
by hand 2026-11-09 (keyboard only + Narrator, Windows 11, Chrome, Brave,
|
||||
Firefox); not yet: NVDA, JAWS, VoiceOver, TalkBack, Safari.
|
||||
- **`#limitations`** — Turnstile (third party; fails open after 10 s, or
|
||||
120 s once it asks for a click), vendor sites, two-line card summaries,
|
||||
VI legal pages being translations.
|
||||
- **`#report`** — `accessibility@poli0981.dev` (no account needed) or the
|
||||
Accessibility issue form; what helps; screenshots optional; never asks
|
||||
about disability; English or Vietnamese.
|
||||
- **`#response`** — one maintainer, so modest promises: reply within
|
||||
7 days; Critical 30 days, Serious 60, Moderate/Minor 90; a slip gets a
|
||||
reason, a workaround and a new date.
|
||||
- **`#contributors`** — points to ACCESSIBILITY.md.
|
||||
|
||||
## Part 4 — Review checklist for Kokone (H6)
|
||||
|
||||
H6 approved the drafts on 2026-07-28. The 2026-10-21 rewrite (Privacy,
|
||||
|
||||
+43
-4
@@ -18,7 +18,19 @@ Total ≈ 17–20 focused days, **plus ~1 day for the `softharbor.net` domain
|
||||
package** (docs/16 §10) slotted between M5 and M6. Data entry (M6)
|
||||
parallelizes with earlier milestones once M2 lands.
|
||||
|
||||
**Where it stands (2026-10-23).** v1.2.0, released 2026-10-23: **364 apps in
|
||||
**Where it stands (2026-11-15).** **Maintenance mode** since v1.4.1,
|
||||
released 2026-11-15 (D36): the catalogue, fixes and platform upkeep
|
||||
continue; new features do not, and §2's feature items are frozen. **373
|
||||
apps in 15 categories**, 364 `clean` and 9 `unverified`; Qodana joined
|
||||
CodeQL and SonarQube Cloud (D35).
|
||||
|
||||
*Where it stood (2026-11-09), for the record:* v1.4.0, released 2026-11-09 — the
|
||||
accessibility release (D33, D34): **373 apps in 15 categories**, 364 `clean`
|
||||
and 9 `unverified`, an Accessibility Statement and `ACCESSIBILITY.md`, and
|
||||
WCAG 2.2 AA as the target. v1.3.0 (2026-10-26) added the site-wide rate
|
||||
limit (D32).
|
||||
|
||||
*Where it stood (2026-10-23), for the record:* v1.2.0, released 2026-10-23: **364 apps in
|
||||
14 categories**, 341 `clean` and 23 `unverified` — each with its VirusTotal
|
||||
scan linked and re-scanned at least every 90 days by `vt-recheck.yml`
|
||||
(D30; nine popular apps went `unverified` on a single engine's warning in
|
||||
@@ -45,6 +57,16 @@ data was seeded and vetted.
|
||||
|
||||
## 2. Post-v1 backlog (ordered by current intent)
|
||||
|
||||
**Frozen by D36 (2026-11-15) — maintenance mode.** The feature items —
|
||||
3–7, 12–15 and the feature half of 16 (OpenSearch, a versioned `/api/v1`)
|
||||
— are not started while D36 stands, and issues or PRs that propose them
|
||||
are closed as *not planned*. Maintenance stays open: 8 (Lighthouse CI and
|
||||
a size budget — gates, not features), 11 (data hygiene, fixed in the
|
||||
data), the TypeScript 7 half of 16, the rest of 17 (a recorded NVDA and
|
||||
VoiceOver pass, and fixing what it finds), and 1 and 9 on evidence only —
|
||||
an attack, or `/apps` past its budget. Lifting D36 is the owner's call and
|
||||
its own decision-log entry; the order below is kept for the record.
|
||||
|
||||
**Next up after v1.1 (agreed 2026-10-21), in this order:** item 2 first —
|
||||
it has a deadline — then 10 → 11 → 12 (with 3) → 13 → 14 → 15 → 16. The
|
||||
rest wait for evidence. Item numbers are stable because other docs cite
|
||||
@@ -134,6 +156,14 @@ them (item 9 especially), so new work is appended, never renumbered.
|
||||
that `astro check` still needs (D28; a TS 7-only setup waits on Astro
|
||||
#18471 and typescript-eslint #10940); still open: an OpenSearch
|
||||
description, a versioned `/api/v1` with a published JSON Schema.
|
||||
17. **Accessibility** — **first pass done 2026-11-09 (D33, v1.4)**:
|
||||
`ACCESSIBILITY.md` + `/legal/accessibility`, the WCAG 2.2 AA target,
|
||||
the "/" switch (2.1.4), focus, forced-colour, reflow, target-size and
|
||||
status-message fixes, axe on every page type and the open dialogs with
|
||||
moderate findings failing, and an Accessibility issue form + PR
|
||||
template. Still open: a recorded NVDA and VoiceOver pass (docs/13 §2),
|
||||
Lighthouse CI (item 8), and — only if reports ask for it — text-size
|
||||
and spacing choices in the display menu.
|
||||
|
||||
## 3. Explicitly rejected (for the record)
|
||||
|
||||
@@ -288,6 +318,12 @@ rule 8) · ads/affiliate links (conflicts with the trust proposition).
|
||||
|
||||
| 2026-10-26 | **D32 — site-wide rate limit in the Worker** (amends hard rule 1 and D25; owner request, 2026-10-26). `run_worker_first` becomes `/*` minus the files a page loads — `/_astro/*`, `/icons/*`, the favicons, `apple-touch-icon.png`, the manifest, `sw.js`, `registerSW.js`, `workbox-*.js` — so every page, feed and data request runs `worker/limit.ts` first: `SITE_LIMITER` (namespace 4102), **60 per 10 s per IPv4 address or IPv6 /64**, per location. Over it: the built `/errors/429` page with status 429 (no longer dormant), `Retry-After: 10`, `no-store`; JSON under `/api/` (CORS-readable on the dataset). Fails **open** (no binding, no address, a throwing limiter); logs `{event: "rate_limited", kind}` without the address. `_headers` still apply to `env.ASSETS.fetch()` responses (measured). **Trade-offs accepted:** every routed request is a billed invocation (Workers Paid includes 10 M/month; refusals are billed too, so the limit makes floods cheap, not free); our code now processes every visitor's IP for seconds → Privacy `#rate-limit` and `LEGAL_VERSION` 2026-10-26. **Why not the zone rule alone:** on the Free zone it can only serve Cloudflare's default 429 page and cannot live in the repository; it is kept as an optional edge layer at 150 per 10 s (docs/16 §9.1). Tested end to end under `wrangler dev` by the new e2e project `worker` (docs/11 §5). **Measured on the PR preview:** over one keep-alive connection the limit holds almost exactly (61 × 200, then 429s), but a flood opening a new connection per request got no 429 at all (1 500 requests at ~20/s) — the binding counts per machine — and the production `VERIFY_LIMITER` likewise never refused 40 fresh-connection POSTs in 33 s. So the zone rule (docs/16 §9.1, H13) is the recommended first layer for floods, and the Worker's limit the polite one for browsers and keep-alive scrapers | ✅ (user, 2026-10-26) |
|
||||
| 2026-10-26 | **Suite v3.0** (site v1.3) — a MAJOR bump by §6's rule, because D32 amends hard rule 1 | ✅ |
|
||||
| 2026-11-09 | **D33 — Accessibility statement and target** (§2 item 17; owner request, 2026-11-09, after GitHub's community profile listed "Accessibility" as missing). **Target WCAG 2.2 AA**, stated as a goal and never as conformance (no audit). `ACCESSIBILITY.md` at the root (contributor-facing, GitHub's community file) and its visitor-facing twin `/legal/accessibility` + `/vi/legal/accessibility` — a seventh legal page, informational, gate-exempt, footer + Contact row; the two must say the same thing (docs/14 §3g). New contact **`accessibility@poli0981.dev`** (alias created by the owner the same day; `contacts.ts`). New localStorage key **`sh:keys`** — the display menu's switch for the "/" shortcut, because a bare printable-key shortcut must be possible to turn off (WCAG 2.1.4, level A); Privacy lists it, so **`LEGAL_VERSION` → 2026-11-09** and the gate asks everyone once more (owner's choice over dropping the switch). Fixes found by an audit despite the owner's clean keyboard + Narrator pass: an invisible focus ring on the checked display choice (2.4.7), the header pushing the display button off a 320 px screen (1.4.10 — it now wraps, and `scroll-padding-top` follows its measured height, 2.4.11), forced-colour states, 24 px category links (2.5.8), a status region that exists before its message (4.1.3), table captions/scopes/scrollable regions, the new-tab warning. axe now fails on moderate findings too and also runs on the open gate, filter sheet and display menu; `e2e/a11y.spec.ts` adds keyboard, 320 px reflow and forced-colour checks. `.github/PULL_REQUEST_TEMPLATE.md` (accessibility checklist) and `ISSUE_TEMPLATE/accessibility.yml` (label `accessibility`) | ✅ (user, 2026-11-09) |
|
||||
| 2026-11-09 | **D34 — Catalogue batch 3: the `accessibility` category, 9 entries, a triage of every `unverified` entry** (§2 item 17; owner request). Exempt from docs/03 §1's one-app-per-PR rule like D24/D31. Category **`accessibility`** (Accessibility / Trợ năng, lucide `accessibility`, order 15): NVDA, Optikey, Balabolka, Thorium Reader, Colour Contrast Analyser (homepage on vispero.com — tpgi.com now redirects there), Accessibility Insights for Windows, Bookworm, eSpeak NG. **#65 Orkas** accepted as `free` under C3 (MIT; fully usable with the user's own model keys or a local OpenAI-compatible endpoint, no time limit; the packaged app needs an Orkas sign-in and its monthly plans only add hosted-model credits and sync) in `productivity` + `ai-local`. **#11 Codex Quota Overlay declined**: free itself, but its only function is tracking a paid Codex/ChatGPT plan's limits — the no-subscription rule in spirit — and a narrow one-platform companion tool (closed as not planned). **Not added:** Talon Voice (the official site states no price; beta via Patreon), Speech Note (Flathub-only distribution, no precedent), LiveCaptions (last release 2024-06), Orca (gitlab.gnome.org answers the link checker 406), Narrator (part of Windows). VirusTotal preview: all 9 new entries 0 detections → **all 9 `clean`** (owner). Re-scan of all 29 `unverified` entries: 17 at 0 detections, of which the 8 with `[vt]` issues go `clean` (#34, #37, #40, #41, #55, #57, #58, #61 closed); the 8 D31 holds and synfig-studio (unverified since the seed) stay. The 12 still flagged by one or two URL-reputation engines — Chong Lua Dao (7-Zip, DBeaver, itch, Process Lasso, REAPER, Session), Webroot (Proton VPN, Tor Browser, Windscribe), Xcitium Verdict Cloud (KeePassXC, Session), Gridinsoft (DevToys, suspicious), Criminal IP (PeaZip) — are ruled **false positives by the owner and go `clean`** with the reason on each issue (#33, #35, #36, #38, #39, #51–#54, #56, #59, #60 closed); the linked scan still shows the engine, and the next re-check (≥ 90 days) re-opens an issue if it persists. **#47:** Wire's homepage `wire.com/` answers lychee 404 → `/en/` and download `/en/app-download` (both 200; the free personal plan still exists); Linphone's repo → its official GitHub mirror. Result: **373 apps, 15 categories, 364 `clean`, 9 `unverified`** | ✅ (user, 2026-11-09) |
|
||||
| 2026-11-09 | **v1.4.0 tagged and released** — the accessibility release (D33, D34). **Suite v3.1** (site v1.4) — a MINOR bump by §6's rule: no hard rule changes | ✅ |
|
||||
| 2026-11-15 | **D35 — Qodana as a third analyser** beside CodeQL and SonarQube Cloud (owner request, 2026-11-15; Qodana Cloud project `softharbor`, **Ultimate** licence, active until 2026-12-31). `.github/workflows/qodana.yml` runs `qodana-js` 2026.2 (WebStorm's engine) in **native mode** on the runner's Node 26 and `pnpm install`, profile `qodana.recommended`, the scope of `sonar-project.properties`, over `.ts`/`.js`/`.mjs`, JSON, YAML, Markdown and CSS — **no plugins**: JetBrains' Astro and Svelte plugins were tried and dropped because their type checks were not deterministic under Qodana (on unchanged code, `Intl` methods in `ShFilterSheet.svelte` unresolved in one run of three; `Base.astro`'s `locale = 'en'` read as `string` — 15 errors in one run, none in the one before; plus 75 unused-import false positives for components used in `.astro` templates), and a gate that flips on its own is worse than none — `astro check` type-checks `.astro` with the real compiler; `failureConditions.severityThresholds.any: 0`; the report as an artifact and the SARIF in GitHub code scanning (tool `QDJS`). **Not a required check**, for D29's reason. **First run: 14 findings, all resolved** — 10 `throw`s caught by their own `try` (`worker/verify.ts` now refuses through one return path, `scripts/vt-recheck.mjs` records failures directly; responses, logs and reasons unchanged), 2 redundant `\}` regex escapes, 1 trivial `if` (`src/lib/filter.ts`), and the twin dark palette in `global.css` (DuplicatedCode — required by design, switched off for that file with the reason). Not in Ultimate: Qodana's vulnerability checker and licence audit (Ultimate Plus) — OSV, `pnpm audit` and Dependabot own the dependencies (docs/12 §2) | ✅ owner |
|
||||
| 2026-11-15 | **D36 — Maintenance mode** (owner decision, 2026-11-15). The project is maintained, not extended. **In scope:** catalogue work (add, correct, remove; VirusTotal re-checks; quarantine); bugs, UI/UX and accessibility fixes; dependency upkeep on Dependabot's weekly schedule, and out of schedule for a High or Critical advisory or a serious Node.js security release; major language and platform moves (TypeScript 6 → 7, Astro, Cloudflare Workers / Wrangler); incidents — the site down, degraded or attacked. **Out of scope:** new features — §2's feature items are frozen, and issues or PRs that propose one are closed as *not planned* (`wontfix`). Releases: a patch tag when a fix is worth announcing, a minor one for a platform major; data never tags (docs/13 §1). Announced in Discussions (https://github.com/poli0981/softharbor/discussions/75); recorded in CLAUDE.md, CONTRIBUTING.md, the README (status badge and section), SECURITY.md, the PR template and a new **Listing change** issue form (label `listing-change`) | ✅ owner |
|
||||
| 2026-11-15 | **v1.4.1 tagged and released** — maintenance mode (D36) and Qodana (D35). **Suite v3.2** (site v1.4.1) — a MINOR bump by §6's rule: no hard rule changes | ✅ |
|
||||
|
||||
## 5. Open questions for Kokone
|
||||
|
||||
@@ -364,15 +400,18 @@ Status as of 2026-10-21: v1.0.0 shipped on 2026-07-30 and v1.1.0 on
|
||||
|
||||
## 6. Suite maintenance
|
||||
|
||||
This suite (**v3.0, 2026-10-26, describing site v1.3** — v2.0 was
|
||||
2026-10-21, site v1.1; v1.2 was
|
||||
This suite (**v3.2, 2026-11-15, describing site v1.4.1** — v3.1 was
|
||||
2026-11-09, site v1.4; v3.0 was 2026-10-26, site v1.3; v2.0 was 2026-10-21, site v1.1; v1.2 was
|
||||
2026-07-27; v1.1 was 2026-07-20 post-domain; v1.0 was 2026-07-15,
|
||||
pre-domain) is the contract. Mind the two numbering schemes: *suite* v1.1
|
||||
is the July domain revision, *site* v1.1 is the October release. Any
|
||||
implementation that diverges updates the relevant doc **in the same PR**
|
||||
(docs/10 §7-8). Version bumps: minor for clarifications, major when a hard
|
||||
rule or locked decision changes — v2.0 was major because it amended hard
|
||||
rules 1 and 7, v3.0 because D32 amends hard rule 1 again.
|
||||
rules 1 and 7, v3.0 because D32 amends hard rule 1 again; v3.1 is minor
|
||||
(D33/D34 add a statement, a category and an identifier, `sh:keys`, and
|
||||
change no hard rule), and so is v3.2 (D35 adds an analyser, D36 freezes
|
||||
the feature backlog; no hard rule changes).
|
||||
|
||||
**v2.0 caught the docs up with site v1.1** — the code had moved for three
|
||||
months while the suite stood still. D25–D27 and the 2026-10-21 rows of §4
|
||||
|
||||
@@ -0,0 +1,194 @@
|
||||
// SPDX-License-Identifier: GPL-3.0-only
|
||||
// Copyright (C) 2026 poli0981 (SkullMute)
|
||||
//
|
||||
// Accessibility beyond the page-by-page axe sweep in smoke.spec.ts
|
||||
// (ACCESSIBILITY.md, docs/11 §4): axe on the OPEN dialogs, the keyboard paths
|
||||
// (skip link, focus return, the "/" switch), reflow at 320 CSS px, and forced
|
||||
// colours. The owner's manual keyboard + Narrator pass (2026-11-09) is the
|
||||
// human half of the same checklist.
|
||||
|
||||
import {
|
||||
acceptGate,
|
||||
axeViolations,
|
||||
expect,
|
||||
settled,
|
||||
stubTurnstile,
|
||||
test,
|
||||
waitForIsland,
|
||||
} from './fixtures';
|
||||
|
||||
test.describe('open dialogs pass axe', () => {
|
||||
test('the legal gate', async ({ page }) => {
|
||||
await stubTurnstile(page);
|
||||
await page.goto('/apps');
|
||||
const gate = page.getByTestId('sh-legal-gate');
|
||||
await expect(gate).toBeVisible();
|
||||
await settled(page);
|
||||
expect(await axeViolations(page)).toEqual([]);
|
||||
});
|
||||
|
||||
test('the filter sheet', async ({ page }) => {
|
||||
await acceptGate(page);
|
||||
await page.goto('/apps');
|
||||
await waitForIsland(page, 'ShFilterSheet');
|
||||
await page.getByRole('button', { name: /^Filters/ }).click();
|
||||
await expect(page.getByRole('dialog', { name: 'Filters' })).toBeVisible();
|
||||
await settled(page);
|
||||
expect(await axeViolations(page)).toEqual([]);
|
||||
});
|
||||
|
||||
test('the display menu', async ({ page }) => {
|
||||
await acceptGate(page);
|
||||
await page.goto('/');
|
||||
await waitForIsland(page, 'ShPrefs');
|
||||
await page.getByRole('button', { name: 'Display settings' }).click();
|
||||
await expect(page.getByTestId('sh-prefs')).toBeVisible();
|
||||
await settled(page);
|
||||
expect(await axeViolations(page)).toEqual([]);
|
||||
});
|
||||
});
|
||||
|
||||
test.describe('keyboard', () => {
|
||||
test.beforeEach(async ({ page }) => {
|
||||
await acceptGate(page);
|
||||
});
|
||||
|
||||
test('the first Tab reaches the skip link, which jumps past the header', async ({ page }) => {
|
||||
await page.goto('/apps/7-zip');
|
||||
await page.keyboard.press('Tab');
|
||||
const skip = page.getByRole('link', { name: 'Skip to content' });
|
||||
await expect(skip).toBeFocused();
|
||||
await expect(skip).toBeInViewport();
|
||||
await page.keyboard.press('Enter');
|
||||
await page.keyboard.press('Tab');
|
||||
// The next stop is inside <main>, not the header's first link.
|
||||
expect(await page.evaluate(() => document.activeElement?.closest('main') !== null)).toBe(true);
|
||||
});
|
||||
|
||||
test('closing the filter sheet with Esc returns focus to its button', async ({ page }) => {
|
||||
await page.goto('/apps');
|
||||
await waitForIsland(page, 'ShFilterSheet');
|
||||
const button = page.getByRole('button', { name: /^Filters/ });
|
||||
await button.focus();
|
||||
await page.keyboard.press('Enter');
|
||||
await expect(page.getByRole('dialog', { name: 'Filters' })).toBeVisible();
|
||||
await page.keyboard.press('Escape');
|
||||
await expect(page.getByRole('dialog', { name: 'Filters' })).toBeHidden();
|
||||
await expect(button).toBeFocused();
|
||||
});
|
||||
|
||||
test('closing the display menu with Esc returns focus to its button', async ({ page }) => {
|
||||
await page.goto('/');
|
||||
await waitForIsland(page, 'ShPrefs');
|
||||
const button = page.getByRole('button', { name: 'Display settings' });
|
||||
await button.focus();
|
||||
await page.keyboard.press('Enter');
|
||||
const panel = page.getByTestId('sh-prefs');
|
||||
await expect(panel).toBeVisible();
|
||||
await page.keyboard.press('Tab');
|
||||
await expect(panel.getByRole('radio', { name: 'System' }).first()).toBeFocused();
|
||||
await page.keyboard.press('Escape');
|
||||
await expect(panel).toBeHidden();
|
||||
await expect(button).toBeFocused();
|
||||
});
|
||||
|
||||
test('the focused choice in the display menu shows a ring of its own (2.4.7)', async ({
|
||||
page,
|
||||
}) => {
|
||||
await page.goto('/');
|
||||
await waitForIsland(page, 'ShPrefs');
|
||||
await page.getByRole('button', { name: 'Display settings' }).click();
|
||||
await page.keyboard.press('Tab'); // the checked "System" theme radio
|
||||
const ring = await page
|
||||
.getByTestId('sh-prefs')
|
||||
.locator('input:focus-visible + span')
|
||||
.evaluate((el) => {
|
||||
const s = getComputedStyle(el);
|
||||
return { outline: s.outlineStyle, color: s.outlineColor, fill: s.backgroundColor };
|
||||
});
|
||||
expect(ring.outline).toBe('solid');
|
||||
expect(ring.color).not.toBe(ring.fill);
|
||||
});
|
||||
|
||||
test('"/" can be turned off, and then does nothing (2.1.4)', async ({ page }) => {
|
||||
await page.goto('/categories');
|
||||
await waitForIsland(page, 'ShPrefs');
|
||||
await page.getByRole('button', { name: 'Display settings' }).click();
|
||||
await page.getByTestId('sh-prefs').getByRole('radio', { name: 'Off' }).check();
|
||||
await expect(page.locator('html')).toHaveAttribute('data-keys', 'off');
|
||||
await page.keyboard.press('Escape');
|
||||
|
||||
await page.keyboard.press('/');
|
||||
await expect(page).toHaveURL(/\/categories$/);
|
||||
|
||||
// Restored before paint on the next page: no hint, no shortcut.
|
||||
await page.goto('/apps');
|
||||
await waitForIsland(page, 'ShSearch');
|
||||
await expect(page.locator('html')).toHaveAttribute('data-keys', 'off');
|
||||
await expect(page.locator('#sh-search')).toHaveAttribute('placeholder', 'Search apps…');
|
||||
await page.keyboard.press('/');
|
||||
await expect(page.locator('#sh-search')).not.toBeFocused();
|
||||
});
|
||||
});
|
||||
|
||||
test.describe('reflow at 320 CSS px (1.4.10)', () => {
|
||||
// The phone project already runs at 412 px; this is the WCAG width.
|
||||
test.skip(({ isMobile }) => isMobile, 'desktop project only');
|
||||
test.use({ viewport: { width: 320, height: 640 } });
|
||||
|
||||
for (const path of [
|
||||
'/',
|
||||
'/apps',
|
||||
'/apps/7-zip',
|
||||
'/categories',
|
||||
'/contact',
|
||||
'/legal/privacy',
|
||||
'/legal/third-party',
|
||||
'/legal/accessibility',
|
||||
'/vi',
|
||||
'/vi/apps',
|
||||
'/vi/apps/7-zip',
|
||||
'/vi/legal/accessibility',
|
||||
'/offline',
|
||||
]) {
|
||||
test(`${path} does not scroll sideways`, async ({ page }) => {
|
||||
await acceptGate(page);
|
||||
await page.goto(path);
|
||||
await settled(page);
|
||||
const overflow = await page.evaluate(
|
||||
() => document.documentElement.scrollWidth - document.documentElement.clientWidth,
|
||||
);
|
||||
expect(overflow, 'horizontal overflow in px').toBeLessThanOrEqual(0);
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
test.describe('forced colours (Windows contrast themes)', () => {
|
||||
test.beforeEach(async ({ page }) => {
|
||||
await acceptGate(page);
|
||||
await page.emulateMedia({ forcedColors: 'active' });
|
||||
});
|
||||
|
||||
test('the current section is still marked without its accent rule', async ({ page }) => {
|
||||
await page.goto('/apps');
|
||||
const current = page.locator('header nav a[aria-current="page"]');
|
||||
await expect(current).toHaveCSS('text-decoration-line', 'underline');
|
||||
});
|
||||
|
||||
test('the chosen display options and language keep a visible fill', async ({ page }) => {
|
||||
await page.goto('/');
|
||||
await waitForIsland(page, 'ShPrefs');
|
||||
await page.getByRole('button', { name: 'Display settings' }).click();
|
||||
const fills = await page.evaluate(() => {
|
||||
const bg = (el: Element | null) => (el ? getComputedStyle(el).backgroundColor : null);
|
||||
return {
|
||||
checked: bg(document.querySelector('#sh-prefs input:checked + span')),
|
||||
unchecked: bg(document.querySelector('#sh-prefs input:not(:checked) + span')),
|
||||
lang: bg(document.querySelector('[data-testid="sh-lang-switch"] [aria-current="true"]')),
|
||||
other: bg(document.querySelector('[data-testid="sh-lang-switch"] a')),
|
||||
};
|
||||
});
|
||||
expect(fills.checked).not.toBe(fills.unchecked);
|
||||
expect(fills.lang).not.toBe(fills.other);
|
||||
});
|
||||
});
|
||||
@@ -12,6 +12,7 @@
|
||||
// enforces its own CSP and logs violations for probes it makes itself
|
||||
// (hagen./brunhild.challenges.cloudflare.com), which no page can change.
|
||||
|
||||
import AxeBuilder from '@axe-core/playwright';
|
||||
import { expect, test as base, type Page } from '@playwright/test';
|
||||
import { PASS_TTL_MS } from '../src/lib/human';
|
||||
import { LEGAL_VERSION } from '../src/lib/legal';
|
||||
@@ -98,6 +99,28 @@ export async function settled(page: Page): Promise<void> {
|
||||
);
|
||||
}
|
||||
|
||||
/** The WCAG A/AA rule sets the site targets (ACCESSIBILITY.md, WCAG 2.2 AA). */
|
||||
const WCAG_TAGS = ['wcag2a', 'wcag2aa', 'wcag21a', 'wcag21aa', 'wcag22aa'];
|
||||
|
||||
/**
|
||||
* axe findings that fail a test: critical, serious AND moderate (v1.4; minor
|
||||
* ones are left to review). One line per rule, so a failure names the rule
|
||||
* and the first offending node. `include` narrows the scan to one component.
|
||||
*/
|
||||
export async function axeViolations(
|
||||
page: Page,
|
||||
{ include }: { include?: string } = {},
|
||||
): Promise<string[]> {
|
||||
let builder = new AxeBuilder({ page }).withTags(WCAG_TAGS);
|
||||
if (include) builder = builder.include(include);
|
||||
const results = await builder.analyze();
|
||||
return results.violations
|
||||
.filter((v) => v.impact === 'critical' || v.impact === 'serious' || v.impact === 'moderate')
|
||||
.map(
|
||||
(v) => `${v.id} (${v.impact}): ${v.nodes.length} node(s) — ${v.nodes[0]?.target.join(' ')}`,
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Pre-accept the legal gate (the current version) AND its human check, before
|
||||
* the page loads — for tests about something other than the gate.
|
||||
|
||||
+33
-12
@@ -2,10 +2,11 @@
|
||||
// Copyright (C) 2026 poli0981 (SkullMute)
|
||||
//
|
||||
// Every page type, both locales, both colour schemes: renders, no console
|
||||
// errors, no CSP violations (fixture), and no serious/critical axe findings.
|
||||
// errors, no CSP violations (fixture), and no critical, serious or moderate
|
||||
// axe findings against the WCAG A/AA rules (ACCESSIBILITY.md). Open dialogs,
|
||||
// keyboard paths, reflow and forced colours: e2e/a11y.spec.ts.
|
||||
|
||||
import AxeBuilder from '@axe-core/playwright';
|
||||
import { acceptGate, expect, settled, test } from './fixtures';
|
||||
import { acceptGate, axeViolations, expect, settled, test } from './fixtures';
|
||||
|
||||
const PAGES = [
|
||||
'/',
|
||||
@@ -15,11 +16,14 @@ const PAGES = [
|
||||
'/categories/browser',
|
||||
'/legal/privacy',
|
||||
'/legal/terms',
|
||||
'/legal/third-party',
|
||||
'/legal/accessibility',
|
||||
'/vi',
|
||||
'/vi/apps',
|
||||
'/vi/apps/7-zip',
|
||||
'/vi/categories/security-privacy',
|
||||
'/vi/legal/disclaimer',
|
||||
'/vi/legal/accessibility',
|
||||
'/offline',
|
||||
'/contact',
|
||||
'/vi/contact',
|
||||
@@ -53,22 +57,39 @@ test.describe('404', () => {
|
||||
await expect(page.locator('h1')).toContainText("That page isn't here");
|
||||
await expect(page.getByTestId('sh-legal-gate')).toHaveCount(0);
|
||||
});
|
||||
|
||||
test('the 404 page has no accessibility violations', async ({ page }) => {
|
||||
await page.goto('/this-page-does-not-exist');
|
||||
await settled(page);
|
||||
expect(await axeViolations(page)).toEqual([]);
|
||||
});
|
||||
});
|
||||
|
||||
/** Every page TYPE in both locales, plus the pages with tables and contact rows. */
|
||||
const AXE_PAGES = [
|
||||
'/',
|
||||
'/apps',
|
||||
'/apps/7-zip',
|
||||
'/categories',
|
||||
'/categories/browser',
|
||||
'/contact',
|
||||
'/legal/privacy',
|
||||
'/legal/third-party',
|
||||
'/legal/accessibility',
|
||||
'/offline',
|
||||
'/vi',
|
||||
'/vi/apps',
|
||||
'/vi/apps/7-zip',
|
||||
];
|
||||
|
||||
for (const scheme of ['light', 'dark'] as const) {
|
||||
for (const path of ['/', '/apps', '/apps/7-zip', '/vi/apps', '/legal/privacy']) {
|
||||
test(`${path} has no serious accessibility violations (${scheme})`, async ({ page }) => {
|
||||
for (const path of AXE_PAGES) {
|
||||
test(`${path} has no accessibility violations (${scheme})`, async ({ page }) => {
|
||||
await page.emulateMedia({ colorScheme: scheme });
|
||||
await acceptGate(page);
|
||||
await page.goto(path);
|
||||
await settled(page);
|
||||
const results = await new AxeBuilder({ page })
|
||||
.withTags(['wcag2a', 'wcag2aa', 'wcag21a', 'wcag21aa', 'wcag22aa'])
|
||||
.analyze();
|
||||
const serious = results.violations
|
||||
.filter((v) => v.impact === 'serious' || v.impact === 'critical')
|
||||
.map((v) => `${v.id}: ${v.nodes.length} node(s) — ${v.nodes[0]?.target.join(' ')}`);
|
||||
expect(serious).toEqual([]);
|
||||
expect(await axeViolations(page)).toEqual([]);
|
||||
});
|
||||
}
|
||||
}
|
||||
+4
-1
@@ -2,6 +2,7 @@
|
||||
// Copyright (C) 2026 poli0981 (SkullMute)
|
||||
// docs/10 §3. ESLint covers correctness only — Prettier owns style.
|
||||
|
||||
import { defineConfig } from 'eslint/config';
|
||||
import js from '@eslint/js';
|
||||
import tseslint from 'typescript-eslint';
|
||||
import astro from 'eslint-plugin-astro';
|
||||
@@ -9,7 +10,9 @@ import svelte from 'eslint-plugin-svelte';
|
||||
import svelteParser from 'svelte-eslint-parser';
|
||||
import globals from 'globals';
|
||||
|
||||
export default tseslint.config(
|
||||
// ESLint core's defineConfig, not `tseslint.config()` — typescript-eslint
|
||||
// deprecated its own helper in favour of this one (TS hint 6387, 2026-11).
|
||||
export default defineConfig(
|
||||
// `.claude/` holds agent worktrees — full copies of the repo that `eslint .`
|
||||
// would otherwise lint a second (or third) time.
|
||||
{
|
||||
|
||||
@@ -1,17 +1,12 @@
|
||||
{
|
||||
"$schema": "https://unpkg.com/knip@6/schema.json",
|
||||
"ignoreExportsUsedInFile": true,
|
||||
"ignoreDependencies": ["@vite-pwa/workbox-swkit", "@vite-pwa/workbox-window"],
|
||||
"entry": ["src/pages/**/*.{astro,ts}", "scripts/*.mjs", "src/scripts/*.js"],
|
||||
"project": [
|
||||
"src/**/*.{ts,astro,svelte}",
|
||||
"src/**/*.{ts,astro,svelte,css}",
|
||||
"scripts/**/*.{mjs,ts}",
|
||||
"e2e/**/*.ts",
|
||||
"worker/**/*.ts"
|
||||
],
|
||||
"ignoreDependencies": [
|
||||
"tailwindcss",
|
||||
"@fontsource-variable/bricolage-grotesque",
|
||||
"@fontsource/be-vietnam-pro",
|
||||
"@fontsource/ibm-plex-mono"
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
# OSV-Scanner exceptions for CI's `gates` job (docs/09 §7). The scanner reads
|
||||
# this file because it sits next to the scanned `pnpm-lock.yaml`.
|
||||
#
|
||||
# An entry here is for an advisory that NO release fixes yet — anything with a
|
||||
# patched version gets a floor in `pnpm-workspace.yaml` `overrides` instead.
|
||||
# Every entry carries an expiry, so the gate fails again and makes someone look;
|
||||
# `pnpm-workspace.yaml` `auditConfig.ignoreGhsas` lists the same ids for
|
||||
# `pnpm audit --prod`. Remove both lines once a fixed release exists.
|
||||
|
||||
# deepmerge <= 4.3.1 (CVE-2026-93753, GitHub severity low): mergeObject() lets a
|
||||
# crafted source object set the prototype of the object it returns. 4.3.1 is
|
||||
# the latest release. It reaches us only through build tooling —
|
||||
# @astrojs/svelte -> @sveltejs/vite-plugin-svelte (merging our own
|
||||
# svelte.config.js; the second path, @vite-pwa/astro 1 -> workbox-build 7 ->
|
||||
# @rollup/plugin-node-resolve, left with @vite-pwa/astro 2 on 2026-11-09) — so
|
||||
# every input it merges is ours, and it is not part of anything the site ships.
|
||||
[[IgnoredVulns]]
|
||||
id = "GHSA-gcqx-w48m-w2h4"
|
||||
ignoreUntil = 2027-01-31
|
||||
reason = "No fixed deepmerge release; build tooling merging our own config only (docs/09 §7)"
|
||||
+25
-21
@@ -1,12 +1,12 @@
|
||||
{
|
||||
"name": "softharbor",
|
||||
"version": "1.3.0",
|
||||
"version": "1.4.1",
|
||||
"private": true,
|
||||
"type": "module",
|
||||
"description": "Bilingual (EN/VI) directory of free and buy-once desktop software",
|
||||
"license": "GPL-3.0-only",
|
||||
"author": "poli0981 / SkullMute",
|
||||
"packageManager": "pnpm@11.15.1",
|
||||
"packageManager": "pnpm@11.28.11",
|
||||
"engines": {
|
||||
"node": ">=26 <27"
|
||||
},
|
||||
@@ -39,45 +39,49 @@
|
||||
"dependencies": {
|
||||
"@astrojs/rss": "^4.0.19",
|
||||
"@astrojs/sitemap": "^3.7.4",
|
||||
"@astrojs/svelte": "^9.1.1",
|
||||
"@astrojs/svelte": "^9.1.2",
|
||||
"@fontsource-variable/bricolage-grotesque": "^5.3.0",
|
||||
"@fontsource/be-vietnam-pro": "^5.3.0",
|
||||
"@fontsource/ibm-plex-mono": "^5.3.0",
|
||||
"@iconify-json/lucide": "^1.2.147",
|
||||
"@iconify-json/simple-icons": "^1.2.100",
|
||||
"@tailwindcss/vite": "^4.3.3",
|
||||
"@vite-pwa/astro": "^1.2.0",
|
||||
"astro": "^7.4.2",
|
||||
"@iconify-json/lucide": "^1.2.152",
|
||||
"@iconify-json/simple-icons": "^1.2.101",
|
||||
"@tailwindcss/vite": "^4.3.5",
|
||||
"@vite-pwa/astro": "2.0.1",
|
||||
"astro": "^7.4.7",
|
||||
"minisearch": "^7.2.0",
|
||||
"nanostores": "^1.5.5",
|
||||
"svelte": "^5.57.2",
|
||||
"tailwindcss": "^4.3.3",
|
||||
"svelte": "^5.57.3",
|
||||
"tailwindcss": "^4.3.5",
|
||||
"unplugin-icons": "^24.0.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@astrojs/check": "^0.9.12",
|
||||
"@axe-core/playwright": "^4.14.0",
|
||||
"@eslint/js": "^10.0.1",
|
||||
"@playwright/test": "^1.64.1",
|
||||
"@types/node": "^26.6.5",
|
||||
"@playwright/test": "^1.65.0",
|
||||
"@types/node": "^26.6.6",
|
||||
"@typescript/native": "npm:typescript@^7.0.2",
|
||||
"@vitest/coverage-v8": "5.0.5",
|
||||
"eslint": "^10.13.0",
|
||||
"@vite-pwa/workbox-swkit": "^8.0.14",
|
||||
"@vite-pwa/workbox-window": "^8.0.14",
|
||||
"@vitest/coverage-v8": "5.1.0",
|
||||
"eslint": "^10.14.0",
|
||||
"eslint-plugin-astro": "^3.2.1",
|
||||
"eslint-plugin-svelte": "^3.23.1",
|
||||
"globals": "^17.13.0",
|
||||
"eslint-plugin-svelte": "^3.24.1",
|
||||
"globals": "^17.14.0",
|
||||
"happy-dom": "^21.0.4",
|
||||
"knip": "^6.43.0",
|
||||
"knip": "^6.44.2",
|
||||
"lefthook": "^2.2.2",
|
||||
"magicast": "^0.5.5",
|
||||
"prettier": "^3.9.10",
|
||||
"prettier-plugin-astro": "^1.1.2",
|
||||
"prettier-plugin-svelte": "^4.1.1",
|
||||
"prettier-plugin-tailwindcss": "^0.8.1",
|
||||
"rolldown": "1.3.0",
|
||||
"sharp": "^0.35.5",
|
||||
"svelte-eslint-parser": "^1.10.0",
|
||||
"svelte-eslint-parser": "^1.10.1",
|
||||
"typescript": "npm:@typescript/typescript6@^6.0.2",
|
||||
"typescript-eslint": "^8.72.0",
|
||||
"vitest": "^5.0.5",
|
||||
"wrangler": "^4.152.0"
|
||||
"typescript-eslint": "^8.72.1",
|
||||
"vitest": "^5.1.0",
|
||||
"wrangler": "^4.158.0"
|
||||
}
|
||||
}
|
||||
Generated
+1149
-3805
File diff suppressed because it is too large.
Load diff
+44
-27
@@ -21,40 +21,57 @@ allowBuilds:
|
||||
workerd: false
|
||||
|
||||
# Security overrides. Every package here reaches us only through BUILD or DEV
|
||||
# tooling — @vite-pwa/astro -> vite-plugin-pwa -> workbox-build, or
|
||||
# wrangler -> miniflare; nothing here ships to a visitor. Each floor is the
|
||||
# first release that fixes every advisory listed. Remove a line once upstream's
|
||||
# own range moves past it (`pnpm why <pkg>` shows who still pins the old
|
||||
# version).
|
||||
# tooling — the eslint toolchain or @astrojs/check's language server; nothing
|
||||
# here ships to a visitor. Each floor is the first release that fixes every
|
||||
# advisory listed. Remove a line once upstream's own range moves past it
|
||||
# (`pnpm why <pkg>` shows who still pins the old version).
|
||||
#
|
||||
# brace-expansion — GHSA-mh99-v99m-4gvg (<5.0.8), GHSA-rgw5-rvv9-x895 (<5.0.9),
|
||||
# GHSA-6j4f-fj2g-mc7p (<5.0.10), GHSA-qhr7-859c-m2p7 (<5.0.11),
|
||||
# GHSA-q2hr-2g5m-vwhr (<5.0.12). No patched 2.x exists, so minimatch@5 is forced
|
||||
# across a three-major gap; acceptable only because the package's surface is a
|
||||
# single `expand()` function and the build plus full test suite run against it.
|
||||
# minimatch — GHSA-g3hv-75wg-m249 (<11.0.1). Callers: eslint, @eslint/config-array
|
||||
# and typescript-eslint (`^10.2.x`, matching our own config globs against our
|
||||
# own paths). No patched 10.x exists, so 11 is forced across a major;
|
||||
# acceptable only because every caller uses nothing 11 removed — `minimatch()`,
|
||||
# `minimatch.match()` and `new Minimatch().match()`, never makeRe/regexp/AST/
|
||||
# debug — and `pnpm lint` lints the same 157 files with the same result either
|
||||
# side of the override (checked 2026-11-04). Every 11.x requires
|
||||
# brace-expansion ^5.0.12, which retired that package's own floor
|
||||
# (GHSA-mh99-v99m-4gvg … GHSA-q2hr-2g5m-vwhr, <5.0.12).
|
||||
#
|
||||
# fast-uri — GHSA-7p8r-x3mc-p8w7, GHSA-5jgf-p345-68v8, GHSA-f65p-4m7j-42xc,
|
||||
# GHSA-fph4-wmhf-6fwf, GHSA-jqff-g426-hqxp, GHSA-qw65-cvwx-89v3 (<3.1.7) and
|
||||
# GHSA-hrr3-gc8f-f4qj (<3.1.8). Same major as ajv@8's `^3.0.1` range; pnpm kept
|
||||
# the locked 3.1.4 even under `update --depth Infinity`, hence the override.
|
||||
#
|
||||
# serialize-javascript — GHSA-m5mm-p8h7-m29v (<7.1.3), via workbox-build ->
|
||||
# @rollup/plugin-terser, whose `^7.0.3` range already allows the fix.
|
||||
#
|
||||
# undici (7.x only) — GHSA-xjj6-f33q-929c, GHSA-4qv8-2p9j-2685,
|
||||
# GHSA-f72v-6w45-q472 (<7.30.1). miniflare 5.20261019.x-beta pins exactly
|
||||
# 7.29.1, so no update can reach the fix; the selector scopes the floor to
|
||||
# miniflare's copy. Astro's unifont uses undici 8 (>= 8.12.2 is fixed already).
|
||||
# (Retired 2026-11-09 with @vite-pwa/astro 2, which drops workbox-build 7 and
|
||||
# its 270-odd packages: `glob` ^14.0.2 — GHSA-3g3m-2fjr-6pw4, nothing depends
|
||||
# on glob any more — and `serialize-javascript` ^7.1.3 — GHSA-m5mm-p8h7-m29v,
|
||||
# @vite-pwa/workbox-build 8 asks for ^7.1.4 itself. Retired 2026-11-04:
|
||||
# `miniflare>undici` — miniflare pins the fixed 7.30.1 itself.)
|
||||
overrides:
|
||||
brace-expansion: '^5.0.12'
|
||||
minimatch: '^11.0.1'
|
||||
fast-uri: '^3.1.9'
|
||||
serialize-javascript: '^7.1.3'
|
||||
'miniflare>undici': '^7.30.1'
|
||||
|
||||
# @vite-pwa/astro 1.2.0 is the latest release (2025-11) and its peer range stops
|
||||
# at Astro 5. It works on Astro 7 — `pnpm build` and `check:sw` exercise the
|
||||
# generated service worker on every CI run — so the mismatch is accepted
|
||||
# explicitly here instead of surfacing as an unexplained install warning.
|
||||
peerDependencyRules:
|
||||
allowedVersions:
|
||||
'@vite-pwa/astro>astro': '7'
|
||||
# Advisories that NO release fixes yet, so no override can reach them. CI's
|
||||
# `pnpm audit --prod` skips exactly these ids; `osv-scanner.toml` lists the same
|
||||
# ids for OSV-Scanner, with an expiry date and the reasoning. Remove a line (in
|
||||
# both files) once a fixed release exists — then it becomes an override above.
|
||||
#
|
||||
# deepmerge <= 4.3.1 — GHSA-gcqx-w48m-w2h4 (low). Build tooling only, merging
|
||||
# our own config: @astrojs/svelte -> @sveltejs/vite-plugin-svelte (the
|
||||
# @vite-pwa/astro -> workbox-build 7 path left with @vite-pwa/astro 2).
|
||||
auditConfig:
|
||||
ignoreGhsas:
|
||||
- GHSA-gcqx-w48m-w2h4
|
||||
|
||||
# @astrojs/astro2tsx 0.1.3 (astro check's .astro -> TSX step, a wasm module)
|
||||
# pins @emnapi/core 1.11.3 but leaves @emnapi/runtime to the peer range of
|
||||
# @napi-rs/wasm-runtime (`^1.7.1 || ^2.0.0-alpha.4`). Since rolldown 1.3.0
|
||||
# (astro 7.4.7) brought @emnapi/runtime 2.0.0-beta.2 into the graph, pnpm
|
||||
# resolves that peer to the beta; core 1.x with runtime 2.x throws "this.bridge
|
||||
# .setLastError is not a function" on import, and `astro check` reports the
|
||||
# failed import as "@astrojs/check is not installed" (Dependabot #67,
|
||||
# 2026-11-09). Give astro2tsx the runtime that matches its core. Drop this once
|
||||
# an astro2tsx release declares @emnapi/runtime itself.
|
||||
packageExtensions:
|
||||
'@astrojs/astro2tsx@0.1.3':
|
||||
dependencies:
|
||||
'@emnapi/runtime': '1.11.3'
|
||||
+59
@@ -0,0 +1,59 @@
|
||||
# Qodana (JetBrains) — the third analyser beside CodeQL and SonarQube Cloud
|
||||
# (D35, docs/12 §2). Read by .github/workflows/qodana.yml; results go to Qodana
|
||||
# Cloud (the QODANA_TOKEN project token carries the Ultimate licence) and to
|
||||
# GitHub code scanning (tool QDJS, category softharbor/qodana).
|
||||
version: '1.0'
|
||||
|
||||
# Qodana for JS is WebStorm's engine and runs only under an Ultimate (or
|
||||
# Ultimate Plus) licence. Native mode, no container: the analysis then sees the
|
||||
# runner's Node 26 and the node_modules that pnpm installed in the step before
|
||||
# it, instead of whatever Node the image ships. On its own it reads
|
||||
# .ts/.js/.mjs, JSON, YAML, Markdown and CSS — .astro and .svelte are outside
|
||||
# its language list (why no plugin adds them: the end of this file).
|
||||
linter: qodana-js
|
||||
withinDocker: 'false'
|
||||
|
||||
profile:
|
||||
name: qodana.recommended
|
||||
|
||||
# The same scope as sonar-project.properties: the dataset is CC BY-SA content
|
||||
# validated by Zod and validate:data, not code; everything else here is
|
||||
# generated output or local tool state (git-ignored, so absent in CI anyway).
|
||||
exclude:
|
||||
- name: All
|
||||
paths:
|
||||
- src/data
|
||||
- data
|
||||
- dist
|
||||
- coverage
|
||||
- playwright-report
|
||||
- test-results
|
||||
- blob-report
|
||||
- .astro
|
||||
- .wrangler
|
||||
- .claude
|
||||
# The dark palette has to exist twice — once for the system choice
|
||||
# (`@media (prefers-color-scheme: dark)`), once for the explicit one
|
||||
# (`[data-theme='dark']`): CSS cannot share one block between a media query
|
||||
# and a selector. `light-dark()` could, but needs Chrome 123 / Safari 17.5,
|
||||
# newer than Tailwind 4's own floor (Chrome 111, Safari 16.4).
|
||||
- name: DuplicatedCode
|
||||
paths:
|
||||
- src/styles/global.css
|
||||
|
||||
# No `plugins:`. JetBrains' Astro (org.jetbrains.plugins.astro) and Svelte
|
||||
# (dev.blachut.svelte.lang) plugins were tried on 2026-11-15 and dropped:
|
||||
# under Qodana their type checks were not deterministic. On unchanged code
|
||||
# the Svelte plugin reported Intl.PluralRules#select and
|
||||
# Intl.NumberFormat#format in ShFilterSheet.svelte as unresolved (one run in
|
||||
# three), and the Astro plugin read Base.astro's `locale = 'en'` default as
|
||||
# `string` instead of `Locale` — 15 errors in one run, 0 in the run before it
|
||||
# on the same commit. A gate that flips on its own teaches everyone to
|
||||
# ignore it. `astro check` (the TypeScript compiler itself) type-checks the
|
||||
# .astro files; ESLint, the Vitest island suites and e2e cover the islands.
|
||||
|
||||
# Any finding fails the job: red on the PR, but not a required check (D35) —
|
||||
# like Sonar's gate, a Qodana Cloud outage must never block a merge.
|
||||
failureConditions:
|
||||
severityThresholds:
|
||||
any: 0
|
||||
@@ -17,7 +17,7 @@ const root = join(process.cwd(), 'src/i18n');
|
||||
const BASE = 'en';
|
||||
/** Locale dictionaries only — `xx.json` or `xx-YY.json`, never helper files. */
|
||||
const LOCALE_FILE = /^([a-z]{2}(?:-[A-Z]{2})?)\.json$/;
|
||||
const PLACEHOLDER = /\{(\w+)\}/g;
|
||||
const PLACEHOLDER = /\{(\w+)}/g;
|
||||
|
||||
/** Plain UTF-16 order — identical to the default sort, but explicit (S2871). */
|
||||
const byCodeUnit = (a, b) => (a < b ? -1 : a > b ? 1 : 0);
|
||||
|
||||
@@ -19,6 +19,10 @@
|
||||
* `NavigationRoute(createHandlerBoundToURL('/'))`. Since '/' was never
|
||||
* precached, every SW-handled navigation threw
|
||||
* `non-precached-url :: [{"url":"/"}]` in the console (2026-07-30).
|
||||
* 5. `@vite-pwa/astro` 2.0.0 emitted a classic SW that still held ES
|
||||
* `import` statements of bare `@vite-pwa/workbox-swkit/*` specifiers
|
||||
* (unresolvable under pnpm's strict layout) and an empty precache — a
|
||||
* script the browser cannot even evaluate (tried 2026-11-04, refused).
|
||||
*
|
||||
* Number 4 was the dangerous one. Had '/' been precached, that route would
|
||||
* have served the home page for EVERY navigation — failure 2 again, but
|
||||
@@ -33,23 +37,54 @@ import { join } from 'node:path';
|
||||
const SW = join(process.cwd(), 'dist/sw.js');
|
||||
const problems = [];
|
||||
|
||||
/**
|
||||
* Whether any line of `code` is an ES `import`/`export` statement, which a
|
||||
* classic script cannot evaluate. A dynamic `import(` and `importScripts(` are
|
||||
* fine. Line by line, so the pattern never backtracks across newlines.
|
||||
*/
|
||||
function hasModuleSyntax(code) {
|
||||
return code
|
||||
.split('\n')
|
||||
.some((line) => /^(?:import|export)(?:\s+[^\s(]|[{*"'`])/.test(line.trimStart()));
|
||||
}
|
||||
|
||||
if (!existsSync(SW)) {
|
||||
problems.push('dist/sw.js does not exist — the PWA integration produced no service worker');
|
||||
} else {
|
||||
const sw = readFileSync(SW, 'utf8');
|
||||
|
||||
// (5) A classic service worker (what registerSW.js registers) cannot
|
||||
// evaluate ES `import` statements, and every script it pulls in with
|
||||
// importScripts() must exist. These checks, and the name checks below, read
|
||||
// the unminified output — `minify: false` in astro.config.ts keeps it so.
|
||||
if (hasModuleSyntax(sw)) {
|
||||
problems.push(
|
||||
'dist/sw.js still contains ES `import` statements — a classic service worker cannot\n' +
|
||||
' evaluate them (bare @vite-pwa/workbox-swkit specifiers: that package must be a\n' +
|
||||
' direct dependency so the SW bundler can resolve it).',
|
||||
);
|
||||
}
|
||||
for (const m of sw.matchAll(/importScripts\(\s*(["'`])(?:\.\/)?([^"'`]+)\1\s*\)/g)) {
|
||||
if (!existsSync(join(process.cwd(), 'dist', m[2]))) {
|
||||
problems.push(`dist/sw.js loads ${m[2]} with importScripts(), but the build did not emit it`);
|
||||
}
|
||||
}
|
||||
|
||||
// (4) No navigation fallback route. Navigations must reach the network so
|
||||
// content stays fresh; the offline page is a failure path, not a strategy.
|
||||
if (sw.includes('NavigationRoute') || sw.includes('createHandlerBoundToURL')) {
|
||||
problems.push(
|
||||
"a NavigationRoute is registered — set `workbox.navigateFallback: ''`.\n" +
|
||||
"a NavigationRoute is registered — set `generateSW.navigateFallback: ''`.\n" +
|
||||
' Omitting the key is not enough; vite-plugin-pwa defaults it to index.html.',
|
||||
);
|
||||
}
|
||||
|
||||
// (2) Navigations are NetworkOnly, falling back to /offline only on failure.
|
||||
if (!sw.includes('NetworkOnly')) {
|
||||
problems.push('no NetworkOnly navigation route — navigations would not hit the network');
|
||||
problems.push(
|
||||
'no NetworkOnly navigation route — navigations would not hit the network\n' +
|
||||
' (a minified SW drops the names this check reads: keep `minify: false`).',
|
||||
);
|
||||
}
|
||||
if (!sw.includes('/offline')) {
|
||||
problems.push('no /offline fallback — a failed navigation would show the browser error page');
|
||||
@@ -57,10 +92,10 @@ if (!existsSync(SW)) {
|
||||
|
||||
// (3) The globs actually matched. An empty or near-empty precache means the
|
||||
// offline page is not there, which is invisible until you pull the cable.
|
||||
const urls = [...sw.matchAll(/url:"([^"]+)"/g)].map((m) => m[1]);
|
||||
const urls = [...sw.matchAll(/url:\s*(["'`])([^"'`]+)\1/g)].map((m) => m[2]);
|
||||
if (!urls.some((u) => u.startsWith('offline'))) {
|
||||
problems.push(
|
||||
`offline.html is not precached (${urls.length} entries) — check workbox.globPatterns\n` +
|
||||
`offline.html is not precached (${urls.length} entries) — check generateSW.globPatterns\n` +
|
||||
' against build.format; they are coupled.',
|
||||
);
|
||||
}
|
||||
@@ -91,10 +126,17 @@ if (!existsSync(SW)) {
|
||||
}
|
||||
|
||||
// (6) An updated SW must take over without waiting for every tab to close:
|
||||
// registerSW.js never posts SKIP_WAITING (workbox.skipWaiting).
|
||||
// registerSW.js never posts SKIP_WAITING (generateSW.skipWaiting).
|
||||
if (!sw.includes('skipWaiting')) {
|
||||
problems.push('the SW does not call skipWaiting() — fixes would wait for every tab to close');
|
||||
}
|
||||
// (10) …and clears precaches an older Workbox format left behind
|
||||
// (generateSW.cleanupOutdatedCaches — a default in 1.x, opt-in in 2.x).
|
||||
if (!sw.includes('cleanupOutdatedCaches')) {
|
||||
problems.push(
|
||||
'the SW does not call cleanupOutdatedCaches() — old precaches would stay on disk',
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
// (1) The registration script must be referenced by a page, or the SW is dead
|
||||
@@ -110,6 +152,20 @@ if (!existsSync(home)) {
|
||||
"registerSW.js is not referenced from dist/index.html — set injectRegister: 'script'",
|
||||
);
|
||||
}
|
||||
// (9) …and the page loads it as a CLASSIC script (`<script defer src>`), so
|
||||
// one ES `import` in it is a SyntaxError and the SW never registers. 2.x
|
||||
// emitted `import "@vite-pwa/workbox-window/esm-sw-detector"` until that
|
||||
// package became a direct dependency (2026-11-09).
|
||||
const register = join(process.cwd(), 'dist/registerSW.js');
|
||||
if (!existsSync(register)) {
|
||||
problems.push('dist/registerSW.js does not exist — nothing would register the SW');
|
||||
} else if (hasModuleSyntax(readFileSync(register, 'utf8'))) {
|
||||
problems.push(
|
||||
'dist/registerSW.js contains ES import/export — the page loads it as a classic script,\n' +
|
||||
' so it throws and the SW never registers (@vite-pwa/workbox-window must be a\n' +
|
||||
' direct dependency).',
|
||||
);
|
||||
}
|
||||
if (!html.includes('rel="manifest"')) {
|
||||
problems.push('dist/index.html does not link the web app manifest');
|
||||
}
|
||||
|
||||
@@ -6,15 +6,19 @@ import { project, run } from './fixture';
|
||||
|
||||
const GOOD_SW =
|
||||
'precacheAndRoute([{url:"offline.html"},{url:"_astro/f.woff2"},{url:"_astro/a.css"},' +
|
||||
'{url:"_astro/theme.js"}]);new NetworkOnly();handlerDidError("/offline");self.skipWaiting();';
|
||||
'{url:"_astro/theme.js"}]);new NetworkOnly();handlerDidError("/offline");self.skipWaiting();' +
|
||||
'cleanupOutdatedCaches();';
|
||||
const OFFLINE =
|
||||
'<link rel="stylesheet" href="/_astro/a.css"><script src="/_astro/theme.js"></script>';
|
||||
const HOME = '<script defer src="/registerSW.js"></script><link rel="manifest" href="/m.json">';
|
||||
const REGISTER =
|
||||
'if ("serviceWorker" in navigator) navigator.serviceWorker.register("/sw.js", { scope: "/" });';
|
||||
|
||||
const dist = (over: Record<string, string> = {}): Record<string, string> => ({
|
||||
'dist/sw.js': GOOD_SW,
|
||||
'dist/offline.html': OFFLINE,
|
||||
'dist/index.html': HOME,
|
||||
'dist/registerSW.js': REGISTER,
|
||||
...over,
|
||||
});
|
||||
|
||||
@@ -46,11 +50,35 @@ describe('check-service-worker', () => {
|
||||
over: { 'dist/sw.js': GOOD_SW.replace('self.skipWaiting();', '') },
|
||||
message: 'does not call skipWaiting',
|
||||
},
|
||||
{
|
||||
name: 'no cleanupOutdatedCaches',
|
||||
over: { 'dist/sw.js': GOOD_SW.replace('cleanupOutdatedCaches();', '') },
|
||||
message: 'does not call cleanupOutdatedCaches',
|
||||
},
|
||||
{
|
||||
name: 'no NetworkOnly navigation route',
|
||||
over: { 'dist/sw.js': GOOD_SW.replace('NetworkOnly', 'CacheFirst') },
|
||||
message: 'no NetworkOnly navigation route',
|
||||
},
|
||||
{
|
||||
name: 'ES imports left in a classic SW (@vite-pwa/astro 2.0.0 under pnpm)',
|
||||
over: {
|
||||
'dist/sw.js': `import { NetworkOnly } from "@vite-pwa/workbox-swkit/strategies";\n${GOOD_SW}`,
|
||||
},
|
||||
message: 'still contains ES `import` statements',
|
||||
},
|
||||
{
|
||||
name: 'an importScripts() target the build did not emit',
|
||||
over: { 'dist/sw.js': `importScripts("./workbox-0000.js");\n${GOOD_SW}` },
|
||||
message: 'loads workbox-0000.js with importScripts(), but the build did not emit it',
|
||||
},
|
||||
{
|
||||
name: 'an ES import in the classic registerSW.js',
|
||||
over: {
|
||||
'dist/registerSW.js': `import "@vite-pwa/workbox-window/esm-sw-detector";\n${REGISTER}`,
|
||||
},
|
||||
message: 'dist/registerSW.js contains ES import/export',
|
||||
},
|
||||
{
|
||||
name: 'an unlinked manifest',
|
||||
over: { 'dist/index.html': '<script src="/registerSW.js"></script>' },
|
||||
@@ -67,6 +95,32 @@ describe('check-service-worker', () => {
|
||||
expect(r.out).toContain(message);
|
||||
});
|
||||
|
||||
it('reads the unminified @vite-pwa/astro 2 output and its emitted runtime', () => {
|
||||
const sw =
|
||||
'importScripts("./workbox-1234.js");\n' +
|
||||
'var { r: precacheAndRoute, t: NetworkOnly } = self.workbox.workbox;\n' +
|
||||
'self.skipWaiting();\n' +
|
||||
'precacheAndRoute([\n\t{\n\t\turl: "offline",\n\t\trevision: "x"\n\t},\n' +
|
||||
'\t{ url: "_astro/f.woff2", revision: null },\n\t{ url: "_astro/a.css", revision: null },\n' +
|
||||
'\t{ url: "_astro/theme.js", revision: null }\n]);\n' +
|
||||
'cleanupOutdatedCaches();\n' +
|
||||
'registerRoute(n, new NetworkOnly({ plugins: [new P({ "fallbackURL": "/offline" })] }));';
|
||||
const r = run(
|
||||
'check-service-worker.mjs',
|
||||
project(dist({ 'dist/sw.js': sw, 'dist/workbox-1234.js': '' })),
|
||||
);
|
||||
expect(r.code).toBe(0);
|
||||
expect(r.out).toContain('check-service-worker — OK');
|
||||
});
|
||||
|
||||
it('fails when no registerSW.js was emitted', () => {
|
||||
const files = dist();
|
||||
delete files['dist/registerSW.js'];
|
||||
const r = run('check-service-worker.mjs', project(files));
|
||||
expect(r.code).toBe(1);
|
||||
expect(r.out).toContain('dist/registerSW.js does not exist');
|
||||
});
|
||||
|
||||
it('fails when there is no service worker at all', () => {
|
||||
const r = run('check-service-worker.mjs', project({ 'dist/index.html': HOME }));
|
||||
expect(r.code).toBe(1);
|
||||
|
||||
+15
-10
@@ -93,7 +93,7 @@ export function parseSlugs(value, log = () => {}) {
|
||||
* object holds no nested braces (docs/04 §2), so `[^}]*` cannot overrun it.
|
||||
*/
|
||||
export function patchSecurity(text, security) {
|
||||
return text.replace(/("security":\s*\{)([^}]*)(\})/, (_, open, body, close) => {
|
||||
return text.replace(/("security":\s*\{)([^}]*)(})/, (_, open, body, close) => {
|
||||
const next = body
|
||||
.replace(/("status":\s*)"[^"]*"/, `$1"${security.status}"`)
|
||||
.replace(/("evidence":\s*)(?:null|"[^"]*")/, `$1${JSON.stringify(security.evidence)}`)
|
||||
@@ -242,7 +242,8 @@ function client({ apiKey, fetch, sleep, now, intervalMs, budget }) {
|
||||
};
|
||||
}
|
||||
|
||||
const why = (vt, e) => (vt.state.quotaHit ? 'daily quota' : e.message);
|
||||
/** A failed entry's reason — once the daily quota is gone, that is the reason. */
|
||||
const why = (vt, reason) => (vt.state.quotaHit ? 'daily quota' : reason);
|
||||
|
||||
/** Pass 1: submit the queue, keeping half the budget for the reads. */
|
||||
async function submitAll(vt, queue, outcome) {
|
||||
@@ -255,11 +256,11 @@ async function submitAll(vt, queue, outcome) {
|
||||
}
|
||||
try {
|
||||
const id = await vt.submit(entry.app.links.download);
|
||||
if (typeof id !== 'string') throw new Error('no analysis id');
|
||||
pending.push({ entry, id, polls: 0 });
|
||||
if (typeof id === 'string') pending.push({ entry, id, polls: 0 });
|
||||
else outcome(entry, { kind: 'error', reason: why(vt, 'no analysis id') });
|
||||
} catch (e) {
|
||||
if (e instanceof AuthError) throw e;
|
||||
outcome(entry, { kind: 'error', reason: why(vt, e) });
|
||||
outcome(entry, { kind: 'error', reason: why(vt, e.message) });
|
||||
}
|
||||
}
|
||||
return pending;
|
||||
@@ -288,15 +289,19 @@ async function readAll(vt, pending, outcome) {
|
||||
// The URL's id rides along in `meta`; the analysis id ("u-<sha256>-<ts>")
|
||||
// carries it too, should `meta` ever be missing.
|
||||
const id = body?.meta?.url_info?.id ?? /^u-([0-9a-f]{64})-\d+$/.exec(item.id)?.[1];
|
||||
if (typeof id !== 'string' || !/^[0-9a-f]{64}$/.test(id)) throw new Error('no URL id');
|
||||
const stats = attributes.stats ?? {};
|
||||
const verdicts = ['harmless', 'undetected', 'malicious', 'suspicious'];
|
||||
// Every engine timing out is not "no detections" — it is no answer.
|
||||
if (verdicts.every((k) => !stats[k])) throw new Error('no engine returned a verdict');
|
||||
outcome(item.entry, { kind: 'scanned', id, stats });
|
||||
if (typeof id !== 'string' || !/^[0-9a-f]{64}$/.test(id)) {
|
||||
outcome(item.entry, { kind: 'error', reason: why(vt, 'no URL id') });
|
||||
} else if (verdicts.every((k) => !stats[k])) {
|
||||
// Every engine timing out is not "no detections" — it is no answer.
|
||||
outcome(item.entry, { kind: 'error', reason: why(vt, 'no engine returned a verdict') });
|
||||
} else {
|
||||
outcome(item.entry, { kind: 'scanned', id, stats });
|
||||
}
|
||||
} catch (e) {
|
||||
if (e instanceof AuthError) throw e;
|
||||
outcome(item.entry, { kind: 'error', reason: why(vt, e) });
|
||||
outcome(item.entry, { kind: 'error', reason: why(vt, e.message) });
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -114,11 +114,12 @@ const priceTone = {
|
||||
/>
|
||||
{security}
|
||||
</p>
|
||||
{/* min-h-6: each category link is a 24px target (WCAG 2.5.8). */}
|
||||
<p class="flex flex-wrap gap-x-3 gap-y-1 text-badge">
|
||||
{d.categories.map((c) => (
|
||||
<a
|
||||
href={localePath(locale, `/categories/${c.id}`)}
|
||||
class="text-sh-accent relative z-1 font-medium hover:underline"
|
||||
class="text-sh-accent relative z-1 inline-flex min-h-6 items-center font-medium hover:underline"
|
||||
>
|
||||
{categoryLabels.get(c.id) ?? c.id}
|
||||
</a>
|
||||
|
||||
@@ -20,6 +20,7 @@ const legal = [
|
||||
['/legal/trademarks', 'footer.legal.trademarks'],
|
||||
['/legal/third-party', 'footer.legal.thirdParty'],
|
||||
['/legal/ai-disclosure', 'footer.legal.aiDisclosure'],
|
||||
['/legal/accessibility', 'footer.legal.accessibility'],
|
||||
] as const;
|
||||
|
||||
// Build date, not request date — this is a static site, so it is the honest
|
||||
@@ -99,6 +100,7 @@ const built = new Intl.DateTimeFormat(locale === 'vi' ? 'vi-VN' : 'en-GB', {
|
||||
client:visible
|
||||
label={t(locale, 'bug.report')}
|
||||
countLabel={t(locale, 'bug.errorCount')}
|
||||
newTabLabel={t(locale, 'link.newTab')}
|
||||
/>
|
||||
</nav>
|
||||
</div>
|
||||
|
||||
@@ -35,8 +35,12 @@ const nav = [
|
||||
] as const;
|
||||
---
|
||||
|
||||
<header class="sh-glass sticky top-0 z-30">
|
||||
<div class="mx-auto flex max-w-[1360px] items-center gap-2 px-4 py-2.5 md:gap-4 md:px-6">
|
||||
{/* flex-wrap: when the row cannot hold everything — a 320 px screen, 200 %
|
||||
zoom, wider text spacing, the longer Vietnamese labels — the language and
|
||||
display controls drop to a second row instead of being pushed off-screen
|
||||
(WCAG 1.4.10). ShPrefs publishes the resulting height as --sh-header-h. */}
|
||||
<header class="sh-glass sticky top-0 z-30" data-sh-header>
|
||||
<div class="mx-auto flex max-w-[1360px] flex-wrap items-center gap-2 px-4 py-2.5 md:gap-4 md:px-6">
|
||||
<a
|
||||
href={home}
|
||||
class="sh-anim group flex items-center gap-2.5 rounded-[var(--radius-btn)] py-1 pr-2"
|
||||
@@ -71,7 +75,7 @@ const nav = [
|
||||
>
|
||||
<ShIcon name="search" class="size-4" motion="pop" />
|
||||
<span>{t(locale, 'search.label')}</span>
|
||||
<kbd class="sh-kbd ml-6" aria-hidden="true">
|
||||
<kbd class="sh-kbd sh-kbd-slash ml-6" aria-hidden="true">
|
||||
/
|
||||
</kbd>
|
||||
</a>
|
||||
@@ -118,6 +122,11 @@ const nav = [
|
||||
system: t(locale, 'prefs.motion.system'),
|
||||
reduce: t(locale, 'prefs.motion.reduce'),
|
||||
}}
|
||||
keysLabel={t(locale, 'prefs.keys')}
|
||||
keys={{
|
||||
on: t(locale, 'prefs.keys.on'),
|
||||
off: t(locale, 'prefs.keys.off'),
|
||||
}}
|
||||
searchHref={`${apps}#search`}
|
||||
/>
|
||||
</div>
|
||||
@@ -152,6 +161,19 @@ const nav = [
|
||||
border-end-start-radius: 0;
|
||||
border-end-end-radius: 0;
|
||||
}
|
||||
/* Forced colours drop box-shadow, and with it the only cue left once the
|
||||
text colour is forced too: underline the current section instead. */
|
||||
@media (forced-colors: active) {
|
||||
.sh-nav[aria-current='page'] {
|
||||
text-decoration: underline 2px;
|
||||
text-underline-offset: 0.35em;
|
||||
}
|
||||
}
|
||||
/* The hint promises a shortcut; hide it when the visitor turned the
|
||||
shortcut off in the display menu (theme.js sets data-keys pre-paint). */
|
||||
:global(:root[data-keys='off']) .sh-kbd-slash {
|
||||
display: none;
|
||||
}
|
||||
.sh-searchlink {
|
||||
min-height: 2.5rem;
|
||||
padding: 0 0.5rem 0 0.75rem;
|
||||
|
||||
@@ -5,17 +5,19 @@
|
||||
The sixth and final island (docs/02 §5). A seventh needs a decision-log
|
||||
entry. -->
|
||||
<script lang="ts">
|
||||
import { buildBugUrl } from '../../lib/issueUrl';
|
||||
import { BUG_FORM_URL, buildBugUrl } from '../../lib/issueUrl';
|
||||
import { bufferSize, getBuffer } from '../../lib/ringbuffer';
|
||||
|
||||
interface Props {
|
||||
label: string;
|
||||
/** Shown next to the button when the buffer has caught something. */
|
||||
countLabel: string;
|
||||
/** Screen-reader warning that the link opens a new tab (WCAG 3.2.5 advice). */
|
||||
newTabLabel: string;
|
||||
}
|
||||
const { label, countLabel }: Props = $props();
|
||||
const { label, countLabel, newTabLabel }: Props = $props();
|
||||
|
||||
let href = $state('#');
|
||||
let href = $state(BUG_FORM_URL);
|
||||
let count = $state(0);
|
||||
|
||||
/**
|
||||
@@ -48,5 +50,5 @@
|
||||
>
|
||||
{label}{#if count > 0}<span class="text-badge ml-1 font-mono"
|
||||
>({countLabel.replaceAll('{n}', String(count))})</span
|
||||
>{/if}
|
||||
>{/if}<span class="sr-only">{` ${newTabLabel}`}</span>
|
||||
</a>
|
||||
@@ -18,7 +18,10 @@ beforeEach(() => {
|
||||
history.replaceState(null, '', '/vi/apps?q=gimp');
|
||||
const target = document.createElement('div');
|
||||
document.body.appendChild(target);
|
||||
app = mount(ShBugReport, { target, props: { label: 'Báo lỗi', countLabel: '{n} lỗi' } });
|
||||
app = mount(ShBugReport, {
|
||||
target,
|
||||
props: { label: 'Báo lỗi', countLabel: '{n} lỗi', newTabLabel: '(mở trong thẻ mới)' },
|
||||
});
|
||||
flushSync();
|
||||
link = document.querySelector<HTMLAnchorElement>('[data-testid="sh-bug-report"]')!;
|
||||
});
|
||||
@@ -30,10 +33,15 @@ afterEach(async () => {
|
||||
});
|
||||
|
||||
describe('ShBugReport', () => {
|
||||
it('is an inert link until the visitor reaches for it', () => {
|
||||
expect(link.getAttribute('href')).toBe('#');
|
||||
it('points at the bare bug form until the visitor reaches for it', () => {
|
||||
// Works before (and without) hydration; the prefilled URL comes later.
|
||||
expect(link.getAttribute('href')).toBe(
|
||||
'https://github.com/poli0981/softharbor/issues/new?template=bug_report.yml&labels=bug',
|
||||
);
|
||||
expect(link.getAttribute('rel')).toBe('noopener');
|
||||
expect(link.textContent?.trim()).toBe('Báo lỗi');
|
||||
expect(link.getAttribute('target')).toBe('_blank');
|
||||
// The new tab is announced, not sprung on screen-reader users.
|
||||
expect(link.textContent?.trim()).toBe('Báo lỗi (mở trong thẻ mới)');
|
||||
});
|
||||
|
||||
it('prefills the issue form with the page as it is on focus', () => {
|
||||
|
||||
@@ -26,6 +26,8 @@
|
||||
interface Props {
|
||||
/** Button text AND the dialog's accessible name ("Filters"). */
|
||||
openLabel: string;
|
||||
/** Read after the count chip, so the button says "Filters 2 active". */
|
||||
activeLabel: string;
|
||||
clearLabel: string;
|
||||
/** "Show {n} apps" (plural "other") and "Show {n} app" (plural "one"). */
|
||||
showLabel: string;
|
||||
@@ -33,7 +35,8 @@
|
||||
headings: { categories: string; platforms: string; pricing: string };
|
||||
options: { categories: Option[]; platforms: Option[]; pricing: Option[] };
|
||||
}
|
||||
const { openLabel, clearLabel, showLabel, showLabelOne, headings, options }: Props = $props();
|
||||
const { openLabel, activeLabel, clearLabel, showLabel, showLabelOne, headings, options }: Props =
|
||||
$props();
|
||||
|
||||
let dialog: HTMLDialogElement | undefined = $state();
|
||||
/** Resolved on mount from <html lang>; SSR renders the "other" form. */
|
||||
@@ -81,7 +84,7 @@
|
||||
{#if $activeFilterCount > 0}
|
||||
<span class="sh-pill bg-sh-accent text-sh-accent-ink border-transparent"
|
||||
>{$activeFilterCount}</span
|
||||
>
|
||||
><span class="sr-only">{` ${activeLabel}`}</span>
|
||||
{/if}
|
||||
</button>
|
||||
|
||||
|
||||
@@ -12,6 +12,7 @@ import ShFilterSheet from './ShFilterSheet.svelte';
|
||||
|
||||
const PROPS = {
|
||||
openLabel: 'Filters',
|
||||
activeLabel: 'active',
|
||||
clearLabel: 'Clear all',
|
||||
showLabel: 'Show {n} apps',
|
||||
showLabelOne: 'Show {n} app',
|
||||
@@ -71,7 +72,13 @@ describe('ShFilterSheet', () => {
|
||||
flushSync();
|
||||
expect(categories.get()).toEqual(new Set(['browser']));
|
||||
expect(pricing.get()).toEqual(new Set(['free']));
|
||||
expect(button(/^\s*Filters/).textContent).toContain('2');
|
||||
// Read as "Filters 2 active", not a bare "Filters 2" (WCAG 4.1.3 / 2.5.3:
|
||||
// the visible "Filters 2" stays at the start of the name).
|
||||
expect(
|
||||
button(/^\s*Filters/)
|
||||
.textContent?.replace(/\s+/g, ' ')
|
||||
.trim(),
|
||||
).toBe('Filters 2 active');
|
||||
});
|
||||
|
||||
it('"Clear all" is only enabled with something to clear, and clears it everywhere', () => {
|
||||
|
||||
@@ -87,7 +87,7 @@
|
||||
|
||||
{#if showSuggestion}
|
||||
<div
|
||||
class="sh-panel fixed inset-x-4 bottom-4 z-40 flex flex-wrap items-center gap-3 p-4 md:left-auto md:max-w-md"
|
||||
class="sh-lang-suggest sh-panel fixed inset-x-4 bottom-4 z-40 flex flex-wrap items-center gap-3 p-4 md:left-auto md:max-w-md"
|
||||
lang="vi"
|
||||
data-testid="sh-lang-suggest"
|
||||
>
|
||||
@@ -124,6 +124,19 @@
|
||||
.sh-lang > a:hover {
|
||||
background: var(--sh-surface-2);
|
||||
}
|
||||
/* The control clips its corners (overflow: hidden), which also clipped the
|
||||
global ring drawn 2px OUTSIDE the link — keep it inside instead. */
|
||||
.sh-lang > a:focus-visible {
|
||||
outline-offset: -3px;
|
||||
}
|
||||
/* Forced colours repaint the filled segment as Canvas; keep it marked. */
|
||||
@media (forced-colors: active) {
|
||||
.sh-lang > [aria-current='true'] {
|
||||
forced-color-adjust: none;
|
||||
background: Highlight;
|
||||
color: HighlightText;
|
||||
}
|
||||
}
|
||||
/* The endonym is read after the visible code ("VI — Tiếng Việt"), so the
|
||||
visible text stays part of the accessible name (WCAG 2.5.3). Its leading
|
||||
space is an expression in the markup: Svelte strips whitespace at the
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
<!-- SPDX-License-Identifier: GPL-3.0-only
|
||||
Copyright (C) 2026 poli0981 (SkullMute)
|
||||
Display preferences (v1.1) — theme, scrollbar and motion in one menu.
|
||||
Display preferences (v1.1) — theme, scrollbar, motion and (v1.4) the "/"
|
||||
shortcut in one menu.
|
||||
Replaces ShThemeToggle, so the island budget stays at six (docs/02 §5). -->
|
||||
<script lang="ts">
|
||||
import { onMount } from 'svelte';
|
||||
@@ -14,12 +15,17 @@
|
||||
type ThemeChoice,
|
||||
} from '../../lib/theme';
|
||||
import {
|
||||
applyKeys,
|
||||
applyMotion,
|
||||
applyScrollbar,
|
||||
readKeys,
|
||||
readMotion,
|
||||
readScrollbar,
|
||||
shortcutsEnabled,
|
||||
writeKeys,
|
||||
writeMotion,
|
||||
writeScrollbar,
|
||||
type KeysChoice,
|
||||
type MotionChoice,
|
||||
type ScrollbarChoice,
|
||||
} from '../../lib/prefs';
|
||||
@@ -33,6 +39,9 @@
|
||||
scrollbars: Record<ScrollbarChoice, string>;
|
||||
motionLabel: string;
|
||||
motions: Record<MotionChoice, string>;
|
||||
/** The "/" shortcut on/off group (WCAG 2.1.4). */
|
||||
keysLabel: string;
|
||||
keys: Record<KeysChoice, string>;
|
||||
/** Localized /apps#search — where `/` goes from pages without a search box. */
|
||||
searchHref: string;
|
||||
}
|
||||
@@ -44,6 +53,8 @@
|
||||
scrollbars,
|
||||
motionLabel,
|
||||
motions,
|
||||
keysLabel,
|
||||
keys: keysText,
|
||||
searchHref,
|
||||
}: Props = $props();
|
||||
|
||||
@@ -54,6 +65,7 @@
|
||||
let theme = $state<ThemeChoice>('system');
|
||||
let scrollbar = $state<ScrollbarChoice>('auto');
|
||||
let motion = $state<MotionChoice>('system');
|
||||
let keys = $state<KeysChoice>('on');
|
||||
|
||||
const root = (): HTMLElement => document.documentElement;
|
||||
|
||||
@@ -75,13 +87,22 @@
|
||||
applyMotion(next, root());
|
||||
}
|
||||
|
||||
function setKeys(next: KeysChoice): void {
|
||||
keys = next;
|
||||
writeKeys(next);
|
||||
applyKeys(next, root());
|
||||
}
|
||||
|
||||
/**
|
||||
* `/` jumps to search from any page (docs/06 §9). On /apps ShSearch owns the
|
||||
* key and focuses its box; everywhere else the header hint used to promise a
|
||||
* shortcut that did nothing.
|
||||
* shortcut that did nothing. A single printable key must be possible to
|
||||
* turn off (WCAG 2.1.4) — speech-input users can trigger it by accident —
|
||||
* hence the "Keyboard shortcut: Off" choice in this menu.
|
||||
*/
|
||||
function onGlobalKeydown(e: KeyboardEvent): void {
|
||||
if (e.key !== '/' || e.metaKey || e.ctrlKey || e.altKey || e.defaultPrevented) return;
|
||||
if (!shortcutsEnabled()) return;
|
||||
if (document.getElementById('sh-search')) return;
|
||||
const t = e.target as HTMLElement | null;
|
||||
if (t && (t.isContentEditable || /^(INPUT|TEXTAREA|SELECT)$/.test(t.tagName))) return;
|
||||
@@ -94,6 +115,7 @@
|
||||
theme = readChoice();
|
||||
scrollbar = readScrollbar();
|
||||
motion = readMotion();
|
||||
keys = readKeys();
|
||||
|
||||
// While in system mode the OS can flip underneath us — follow it live
|
||||
// (docs/05 §A8). Once the visitor picks explicitly, stop following it.
|
||||
@@ -106,11 +128,27 @@
|
||||
if (e.key === 'sh:theme') setTheme(readChoice());
|
||||
else if (e.key === 'sh:scrollbar') setScrollbar(readScrollbar());
|
||||
else if (e.key === 'sh:motion') setMotion(readMotion());
|
||||
else if (e.key === 'sh:keys') setKeys(readKeys());
|
||||
};
|
||||
mq.addEventListener('change', onSystemChange);
|
||||
window.addEventListener('storage', onStorage);
|
||||
document.addEventListener('keydown', onGlobalKeydown);
|
||||
|
||||
// The sticky header's real height, for global.css's scroll-padding-top
|
||||
// (WCAG 2.4.11): it wraps to two rows on narrow screens and grows with
|
||||
// zoom and text spacing. CSSOM writes are not style attributes, so the
|
||||
// CSP (no 'unsafe-inline') allows them. This island lives in the header
|
||||
// on every page, which is why it, not a seventh island, does this.
|
||||
const header = document.querySelector<HTMLElement>('[data-sh-header]');
|
||||
const publish = () => {
|
||||
if (header) root().style.setProperty('--sh-header-h', `${header.offsetHeight}px`);
|
||||
};
|
||||
const headerWatch = typeof ResizeObserver === 'function' ? new ResizeObserver(publish) : null;
|
||||
if (header) headerWatch?.observe(header);
|
||||
publish();
|
||||
|
||||
return () => {
|
||||
headerWatch?.disconnect();
|
||||
mq.removeEventListener('change', onSystemChange);
|
||||
window.removeEventListener('storage', onStorage);
|
||||
document.removeEventListener('keydown', onGlobalKeydown);
|
||||
@@ -120,6 +158,7 @@
|
||||
const themeChoices: ThemeChoice[] = ['system', 'light', 'dark'];
|
||||
const scrollbarChoices: ScrollbarChoice[] = ['auto', 'thin', 'hidden'];
|
||||
const motionChoices: MotionChoice[] = ['system', 'reduce'];
|
||||
const keysChoices: KeysChoice[] = ['on', 'off'];
|
||||
|
||||
/** For the button's tooltip: what "system" currently resolves to. */
|
||||
const resolvedTheme = $derived(
|
||||
@@ -205,6 +244,24 @@
|
||||
{/each}
|
||||
</div>
|
||||
</fieldset>
|
||||
|
||||
<fieldset>
|
||||
<legend>{keysLabel}</legend>
|
||||
<div class="sh-seg">
|
||||
{#each keysChoices as value (value)}
|
||||
<label>
|
||||
<input
|
||||
type="radio"
|
||||
name="sh-keys"
|
||||
{value}
|
||||
checked={keys === value}
|
||||
onchange={() => setKeys(value)}
|
||||
/>
|
||||
<span>{keysText[value]}</span>
|
||||
</label>
|
||||
{/each}
|
||||
</div>
|
||||
</fieldset>
|
||||
</div>
|
||||
|
||||
<style>
|
||||
@@ -291,6 +348,25 @@
|
||||
outline: 2px solid var(--sh-accent);
|
||||
outline-offset: -4px;
|
||||
}
|
||||
/* Arrow keys move focus AND the choice together, so the focused radio is
|
||||
almost always the checked one — whose fill is the accent. An accent ring
|
||||
on an accent fill was invisible (WCAG 2.4.7); draw it in the fill's ink. */
|
||||
.sh-seg input:checked:focus-visible + span {
|
||||
outline-color: var(--sh-accent-ink);
|
||||
}
|
||||
|
||||
/* Forced colours (Windows contrast themes) repaint backgrounds as Canvas,
|
||||
which erased the checked fill — the choice must stay visible. */
|
||||
@media (forced-colors: active) {
|
||||
.sh-seg input:checked + span {
|
||||
forced-color-adjust: none;
|
||||
background: Highlight;
|
||||
color: HighlightText;
|
||||
}
|
||||
.sh-seg input:checked:focus-visible + span {
|
||||
outline-color: HighlightText;
|
||||
}
|
||||
}
|
||||
|
||||
@media (width < 40rem) {
|
||||
.sh-prefs-panel {
|
||||
|
||||
@@ -18,6 +18,8 @@ const PROPS = {
|
||||
scrollbars: { auto: 'Default', thin: 'Thin', hidden: 'Hidden' },
|
||||
motionLabel: 'Motion',
|
||||
motions: { system: 'System', reduce: 'Reduce' },
|
||||
keysLabel: 'Keyboard shortcut “/”',
|
||||
keys: { on: 'On', off: 'Off' },
|
||||
searchHref: '/apps#search',
|
||||
};
|
||||
|
||||
@@ -37,8 +39,12 @@ function stubStorage(seed: Record<string, string> = {}) {
|
||||
let target: HTMLElement;
|
||||
let app: Record<string, unknown> | undefined;
|
||||
|
||||
// Matched on the `value` PROPERTY, not the attribute: "on" is a radio's default
|
||||
// value, so Svelte never writes value="on" for the shortcut's On choice.
|
||||
const radio = (name: string, value: string) =>
|
||||
document.querySelector<HTMLInputElement>(`input[name="${name}"][value="${value}"]`)!;
|
||||
[...document.querySelectorAll<HTMLInputElement>(`input[name="${name}"]`)].find(
|
||||
(i) => i.value === value,
|
||||
)!;
|
||||
|
||||
function choose(name: string, value: string) {
|
||||
const input = radio(name, value);
|
||||
@@ -49,7 +55,7 @@ function choose(name: string, value: string) {
|
||||
|
||||
beforeEach(() => {
|
||||
document.body.innerHTML = '';
|
||||
for (const a of ['data-theme', 'data-scrollbar', 'data-motion']) {
|
||||
for (const a of ['data-theme', 'data-scrollbar', 'data-motion', 'data-keys']) {
|
||||
document.documentElement.removeAttribute(a);
|
||||
}
|
||||
target = document.createElement('div');
|
||||
@@ -74,12 +80,18 @@ describe('ShPrefs', () => {
|
||||
});
|
||||
|
||||
it('reflects stored choices once mounted', () => {
|
||||
stubStorage({ 'sh:theme': 'dark', 'sh:scrollbar': 'thin', 'sh:motion': 'reduce' });
|
||||
stubStorage({
|
||||
'sh:theme': 'dark',
|
||||
'sh:scrollbar': 'thin',
|
||||
'sh:motion': 'reduce',
|
||||
'sh:keys': 'off',
|
||||
});
|
||||
app = mount(ShPrefs, { target, props: PROPS });
|
||||
flushSync();
|
||||
expect(radio('sh-theme', 'dark').checked).toBe(true);
|
||||
expect(radio('sh-scrollbar', 'thin').checked).toBe(true);
|
||||
expect(radio('sh-motion', 'reduce').checked).toBe(true);
|
||||
expect(radio('sh-keys', 'off').checked).toBe(true);
|
||||
});
|
||||
|
||||
it('applies and persists each choice immediately', () => {
|
||||
@@ -99,8 +111,26 @@ describe('ShPrefs', () => {
|
||||
expect(document.documentElement.dataset['motion']).toBe('reduce');
|
||||
expect(store.get('sh:motion')).toBe('reduce');
|
||||
|
||||
choose('sh-keys', 'off');
|
||||
expect(document.documentElement.dataset['keys']).toBe('off');
|
||||
expect(store.get('sh:keys')).toBe('off');
|
||||
|
||||
choose('sh-scrollbar', 'auto');
|
||||
expect(document.documentElement.dataset['scrollbar']).toBeUndefined();
|
||||
expect(store.has('sh:scrollbar')).toBe(false);
|
||||
|
||||
choose('sh-keys', 'on');
|
||||
expect(document.documentElement.dataset['keys']).toBeUndefined();
|
||||
expect(store.has('sh:keys')).toBe(false);
|
||||
});
|
||||
|
||||
it('leaves "/" alone while the shortcut is turned off (WCAG 2.1.4)', () => {
|
||||
stubStorage({ 'sh:keys': 'off' });
|
||||
app = mount(ShPrefs, { target, props: PROPS });
|
||||
flushSync();
|
||||
document.documentElement.dataset['keys'] = 'off';
|
||||
const e = new KeyboardEvent('keydown', { key: '/', bubbles: true, cancelable: true });
|
||||
document.body.dispatchEvent(e);
|
||||
expect(e.defaultPrevented).toBe(false);
|
||||
});
|
||||
});
|
||||
@@ -5,12 +5,16 @@
|
||||
import { onMount } from 'svelte';
|
||||
import IconSearch from '~icons/lucide/search';
|
||||
import { mountGrid, type GridHandle } from '../../lib/grid';
|
||||
import { shortcutsEnabled } from '../../lib/prefs';
|
||||
import { loadSearchIndex } from '../../lib/searchIndex';
|
||||
import { categories, platforms, pricing, query, sort, type SortOrder } from '../../lib/stores';
|
||||
import { parseViewState, serializeViewState } from '../../lib/urlstate';
|
||||
|
||||
interface Props {
|
||||
/** Mentions the "/" shortcut… */
|
||||
placeholder: string;
|
||||
/** …and this one does not: shown while the shortcut is turned off. */
|
||||
placeholderPlain: string;
|
||||
label: string;
|
||||
loadingLabel: string;
|
||||
/** Shown when the index cannot be loaded; facet filters keep working. */
|
||||
@@ -22,6 +26,7 @@
|
||||
}
|
||||
const {
|
||||
placeholder,
|
||||
placeholderPlain,
|
||||
label,
|
||||
loadingLabel,
|
||||
errorLabel,
|
||||
@@ -37,6 +42,8 @@
|
||||
const URL_DEBOUNCE_MS = 300;
|
||||
|
||||
let value = $state('');
|
||||
// SSR shows the shortcut hint (the default); corrected on mount.
|
||||
let keysOn = $state(true);
|
||||
let loading = $state(false);
|
||||
let failed = $state(false);
|
||||
let input: HTMLInputElement | undefined = $state();
|
||||
@@ -108,6 +115,8 @@
|
||||
/** `/` focuses search from anywhere on /apps (docs/06 §9). */
|
||||
function onGlobalKeydown(e: KeyboardEvent): void {
|
||||
if (e.key !== '/' || e.metaKey || e.ctrlKey || e.altKey) return;
|
||||
// Turned off in the display menu (WCAG 2.1.4).
|
||||
if (!shortcutsEnabled()) return;
|
||||
// Never steal the key from a field the user is typing in...
|
||||
const t = e.target as HTMLElement | null;
|
||||
if (t && (t.isContentEditable || /^(INPUT|TEXTAREA|SELECT)$/.test(t.tagName))) return;
|
||||
@@ -174,7 +183,15 @@
|
||||
];
|
||||
|
||||
document.addEventListener('keydown', onGlobalKeydown);
|
||||
|
||||
// The display menu flips <html data-keys> on this page (or theme.js on a
|
||||
// later one); keep the placeholder's "( / )" hint honest either way.
|
||||
keysOn = shortcutsEnabled();
|
||||
const keysWatch = new MutationObserver(() => (keysOn = shortcutsEnabled()));
|
||||
keysWatch.observe(document.documentElement, { attributeFilter: ['data-keys'] });
|
||||
|
||||
return () => {
|
||||
keysWatch.disconnect();
|
||||
clearTimeout(searchTimer);
|
||||
clearTimeout(urlTimer);
|
||||
for (const off of unsubs) off();
|
||||
@@ -194,7 +211,7 @@
|
||||
<input
|
||||
id="sh-search"
|
||||
bind:this={input}
|
||||
{placeholder}
|
||||
placeholder={keysOn ? placeholder : placeholderPlain}
|
||||
type="search"
|
||||
autocomplete="off"
|
||||
spellcheck="false"
|
||||
@@ -229,9 +246,11 @@
|
||||
</select>
|
||||
</div>
|
||||
|
||||
{#if failed}
|
||||
<p id="sh-search-status" class="text-sh-muted text-small mt-2" role="status">{errorLabel}</p>
|
||||
{/if}
|
||||
<!-- The live region is always in the DOM and only its text changes: a region
|
||||
inserted together with its message is often not announced (WCAG 4.1.3). -->
|
||||
<p id="sh-search-status" class={['text-sh-muted text-small', failed && 'mt-2']} role="status">
|
||||
{failed ? errorLabel : ''}
|
||||
</p>
|
||||
|
||||
<style>
|
||||
.sr-only {
|
||||
|
||||
@@ -18,7 +18,8 @@ vi.mock('../../lib/grid', () => ({ mountGrid: vi.fn() }));
|
||||
vi.mock('../../lib/searchIndex', () => ({ loadSearchIndex: vi.fn() }));
|
||||
|
||||
const PROPS = {
|
||||
placeholder: 'Search apps',
|
||||
placeholder: 'Search apps ( / )',
|
||||
placeholderPlain: 'Search apps',
|
||||
label: 'Search',
|
||||
loadingLabel: 'Loading…',
|
||||
errorLabel: 'Search is unavailable right now.',
|
||||
@@ -163,6 +164,33 @@ describe('ShSearch', () => {
|
||||
expect(document.activeElement).not.toBe(input);
|
||||
});
|
||||
|
||||
it('stands down, and drops the "( / )" hint, while the shortcut is off', async () => {
|
||||
const input = start();
|
||||
expect(input.placeholder).toBe(PROPS.placeholder);
|
||||
|
||||
document.documentElement.dataset['keys'] = 'off';
|
||||
await vi.advanceTimersByTimeAsync(0); // MutationObserver delivery
|
||||
flushSync();
|
||||
expect(input.placeholder).toBe(PROPS.placeholderPlain);
|
||||
key(document, '/');
|
||||
expect(document.activeElement).not.toBe(input);
|
||||
|
||||
delete document.documentElement.dataset['keys'];
|
||||
await vi.advanceTimersByTimeAsync(0);
|
||||
flushSync();
|
||||
expect(input.placeholder).toBe(PROPS.placeholder);
|
||||
key(document, '/');
|
||||
expect(document.activeElement).toBe(input);
|
||||
});
|
||||
|
||||
it('keeps its status live region in the page before anything goes wrong', () => {
|
||||
const input = start();
|
||||
const status = document.getElementById('sh-search-status');
|
||||
expect(status?.getAttribute('role')).toBe('status');
|
||||
expect(status?.textContent).toBe('');
|
||||
expect(input.hasAttribute('aria-describedby')).toBe(false);
|
||||
});
|
||||
|
||||
it('Escape on an empty box gives focus back to the page', () => {
|
||||
const input = start();
|
||||
input.focus();
|
||||
|
||||
@@ -0,0 +1,269 @@
|
||||
---
|
||||
// SPDX-License-Identifier: GPL-3.0-only
|
||||
// Copyright (C) 2026 poli0981 (SkullMute)
|
||||
// docs/14 §3g — Accessibility Statement (D33). The visitor-facing twin of
|
||||
// ACCESSIBILITY.md in the repository: keep the target, the test record, the
|
||||
// known limitations and the response times identical in both. Section ids are
|
||||
// link targets (#report from the footer of ACCESSIBILITY.md and the issue
|
||||
// form).
|
||||
import { CONTACTS } from '../../lib/contacts';
|
||||
import type { Locale } from '../../i18n';
|
||||
interface Props {
|
||||
locale: Locale;
|
||||
}
|
||||
const { locale } = Astro.props;
|
||||
const MAIL = CONTACTS.accessibility;
|
||||
const FORM = 'https://github.com/poli0981/softharbor/issues/new?template=accessibility.yml';
|
||||
const GUIDE = 'https://github.com/poli0981/softharbor/blob/main/ACCESSIBILITY.md';
|
||||
const WCAG = 'https://www.w3.org/TR/WCAG22/';
|
||||
---
|
||||
|
||||
{locale === 'en' ? (
|
||||
<>
|
||||
<p>
|
||||
SoftHarbor should work for everyone who wants to find software — including people who use only
|
||||
a keyboard, a screen reader, magnification, voice control or a high-contrast theme. This page
|
||||
says what we aim for, what the site already does, what we know is not right yet, and how to
|
||||
tell us about anything that gets in your way.
|
||||
</p>
|
||||
|
||||
<h2 id="target">What we aim for</h2>
|
||||
<p>
|
||||
Our target is the <a href={WCAG}>Web Content Accessibility Guidelines (WCAG) 2.2</a> at level
|
||||
AA. It is a goal that guides the work, not a claim that every page meets it: no independent
|
||||
audit has been done.
|
||||
</p>
|
||||
|
||||
<h2 id="features">What the site does</h2>
|
||||
<ul>
|
||||
<li>
|
||||
Everything works with a keyboard alone. The first stop on every page is a “Skip to content”
|
||||
link, and the item you are on is always outlined.
|
||||
</li>
|
||||
<li>
|
||||
Pages are built from real headings, lists and landmarks, and say which language they are in,
|
||||
so screen readers pronounce English and Vietnamese correctly.
|
||||
</li>
|
||||
<li>
|
||||
Text and controls keep their contrast in both the light and the dark theme, checked by an
|
||||
automated test: 7:1 for body text, 4.5:1 for other text, 3:1 for control edges.
|
||||
</li>
|
||||
<li>
|
||||
Nothing relies on colour alone: a security status has its own icon shape, and the section
|
||||
you are in is underlined.
|
||||
</li>
|
||||
<li>
|
||||
The display settings (the sliders button at the top right) offer a light or dark theme,
|
||||
reduced motion, a thinner or hidden scrollbar, and a switch that turns off the “/” search
|
||||
shortcut. The site also follows your system’s reduced-motion setting and its high-contrast
|
||||
colours.
|
||||
</li>
|
||||
<li>
|
||||
Text can be zoomed to 200 %, and the layout reflows down to a narrow phone screen without
|
||||
sideways scrolling.
|
||||
</li>
|
||||
<li>When you search or filter, the number of results is announced to screen readers.</li>
|
||||
<li>There are no pictures of text. App logos are decoration; the app’s name is text.</li>
|
||||
</ul>
|
||||
|
||||
<h2 id="tested">How we check it</h2>
|
||||
<ul>
|
||||
<li>
|
||||
<strong>On every change:</strong> automated accessibility checks (axe, using its WCAG 2.0 to
|
||||
2.2 A and AA rules) on the main pages in both themes, on a desktop and a phone-sized screen,
|
||||
plus tests for keyboard use, reflow, high-contrast colours and contrast.
|
||||
</li>
|
||||
<li>
|
||||
<strong>By hand, 9 November 2026:</strong> keyboard only, and the Narrator screen reader, on
|
||||
Windows 11 with Chrome, Brave and Firefox.
|
||||
</li>
|
||||
<li>
|
||||
<strong>Not tested yet:</strong> NVDA, JAWS, VoiceOver (macOS and iOS), TalkBack and Safari.
|
||||
Reports from these are especially welcome.
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
<h2 id="limitations">Known limitations</h2>
|
||||
<ul>
|
||||
<li>
|
||||
After you accept the legal notice, a short bot check from Cloudflare (Turnstile) runs. It is
|
||||
a third-party widget we cannot fully control. If it cannot finish, you are let in anyway —
|
||||
after 10 seconds, or 2 minutes if it asked for a click.
|
||||
</li>
|
||||
<li>
|
||||
Every listed app links to its developer’s own website and installer. How accessible those
|
||||
are is outside our control; tell the developer, and tell us if a listing should say so.
|
||||
</li>
|
||||
<li>App cards shorten the summary to two lines. The full text is on each app’s page.</li>
|
||||
<li>The Vietnamese legal pages are translations; the English text is the one that counts.</li>
|
||||
</ul>
|
||||
|
||||
<h2 id="report">Report a barrier</h2>
|
||||
<p>
|
||||
Email <a href={`mailto:${MAIL}`}>{MAIL}</a>, or <a href={FORM}>open an accessibility issue</a>{' '}
|
||||
on GitHub (that needs a GitHub account; email does not). If you can, say which page you were
|
||||
on, what you were trying to do, what happened, and which device, browser and assistive
|
||||
technology you use. Screenshots or recordings are welcome but never required, and you never
|
||||
need to tell us about a disability. Write in English or Vietnamese.
|
||||
</p>
|
||||
|
||||
<h2 id="response">What happens next</h2>
|
||||
<p>
|
||||
SoftHarbor is run by one person, so these are the promises that can be kept. We reply within 7
|
||||
days and rate how much the barrier gets in your way:
|
||||
</p>
|
||||
<ul>
|
||||
<li>
|
||||
<strong>Critical</strong> — stops you finding, reading or opening an app’s links: fixed
|
||||
within 30 days;
|
||||
</li>
|
||||
<li>
|
||||
<strong>Serious</strong> — hard to get past, though there is a way around: within 60 days;
|
||||
</li>
|
||||
<li>
|
||||
<strong>Moderate</strong> or <strong>minor</strong> — an annoyance or inconsistency: within
|
||||
90 days.
|
||||
</li>
|
||||
</ul>
|
||||
<p>
|
||||
If a date slips, we say why, offer a workaround, and give a new date. We may ask you to
|
||||
confirm the fix before the report is closed.
|
||||
</p>
|
||||
|
||||
<h2 id="contributors">For contributors</h2>
|
||||
<p>
|
||||
How we keep changes accessible — the checks a pull request must pass and what to test by hand
|
||||
— is in <a href={GUIDE}>ACCESSIBILITY.md</a> in the source repository.
|
||||
</p>
|
||||
</>
|
||||
) : (
|
||||
<>
|
||||
<p>
|
||||
SoftHarbor muốn ai cần tìm phần mềm cũng dùng được — kể cả người chỉ dùng bàn phím, trình đọc
|
||||
màn hình, phóng to màn hình, điều khiển bằng giọng nói hay giao diện tương phản cao. Trang này
|
||||
nói rõ mục tiêu của chúng tôi, những gì trang đã làm được, những gì còn chưa ổn, và cách báo
|
||||
cho chúng tôi khi bạn gặp trở ngại.
|
||||
</p>
|
||||
|
||||
<h2 id="target">Mục tiêu</h2>
|
||||
<p>
|
||||
Mục tiêu của chúng tôi là{' '}
|
||||
<a href={WCAG} lang="en">
|
||||
Web Content Accessibility Guidelines (WCAG) 2.2
|
||||
</a>{' '}
|
||||
ở mức AA. Đây là đích hướng tới cho công việc, không phải lời khẳng định mọi trang đều đã đạt:
|
||||
chưa có đánh giá độc lập nào.
|
||||
</p>
|
||||
|
||||
<h2 id="features">Trang đã làm được gì</h2>
|
||||
<ul>
|
||||
<li>
|
||||
Mọi thứ dùng được chỉ với bàn phím. Điểm dừng đầu tiên trên mỗi trang là liên kết “Tới nội
|
||||
dung chính”, và mục đang chọn luôn có viền bao quanh.
|
||||
</li>
|
||||
<li>
|
||||
Trang được dựng bằng tiêu đề, danh sách và vùng mốc thật, đồng thời khai báo ngôn ngữ, để
|
||||
trình đọc màn hình phát âm đúng tiếng Anh và tiếng Việt.
|
||||
</li>
|
||||
<li>
|
||||
Chữ và nút giữ độ tương phản ở cả giao diện sáng lẫn tối, được kiểm tra bằng bài test tự
|
||||
động: 7:1 cho chữ nội dung, 4.5:1 cho chữ khác, 3:1 cho viền điều khiển.
|
||||
</li>
|
||||
<li>
|
||||
Không có gì chỉ dựa vào màu sắc: trạng thái bảo mật có hình biểu tượng riêng, và mục bạn
|
||||
đang xem được gạch chân.
|
||||
</li>
|
||||
<li>
|
||||
Phần cài đặt hiển thị (nút thanh trượt ở góc trên bên phải) có giao diện sáng hoặc tối, giảm
|
||||
chuyển động, thanh cuộn mảnh hoặc ẩn, và công tắc tắt phím tắt tìm kiếm “/”. Trang cũng làm
|
||||
theo thiết lập giảm chuyển động và màu tương phản cao của hệ điều hành.
|
||||
</li>
|
||||
<li>
|
||||
Chữ phóng to được đến 200 %, và bố cục tự sắp lại đến cỡ màn hình điện thoại hẹp mà không
|
||||
phải cuộn ngang.
|
||||
</li>
|
||||
<li>Khi bạn tìm kiếm hay lọc, số kết quả được đọc cho trình đọc màn hình.</li>
|
||||
<li>Không có hình ảnh chứa chữ. Logo ứng dụng chỉ để trang trí; tên ứng dụng luôn là chữ.</li>
|
||||
</ul>
|
||||
|
||||
<h2 id="tested">Chúng tôi kiểm tra thế nào</h2>
|
||||
<ul>
|
||||
<li>
|
||||
<strong>Mỗi lần thay đổi:</strong> kiểm tra trợ năng tự động (axe, theo các quy tắc WCAG 2.0
|
||||
đến 2.2 mức A và AA) trên các trang chính ở cả hai giao diện, trên màn hình máy tính và cỡ
|
||||
điện thoại, cùng các bài test dùng bàn phím, tự sắp lại bố cục, màu tương phản cao và độ
|
||||
tương phản.
|
||||
</li>
|
||||
<li>
|
||||
<strong>Kiểm tra tay, ngày 9/11/2026:</strong> chỉ dùng bàn phím, và trình đọc màn hình
|
||||
Narrator, trên Windows 11 với Chrome, Brave và Firefox.
|
||||
</li>
|
||||
<li>
|
||||
<strong>Chưa kiểm tra:</strong> NVDA, JAWS, VoiceOver (macOS và iOS), TalkBack và Safari.
|
||||
Chúng tôi rất mong nhận phản hồi từ những công cụ này.
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
<h2 id="limitations">Hạn chế đã biết</h2>
|
||||
<ul>
|
||||
<li>
|
||||
Sau khi bạn chấp nhận thông báo pháp lý, một bước kiểm tra bot ngắn của Cloudflare
|
||||
(Turnstile) sẽ chạy. Đây là tiện ích của bên thứ ba mà chúng tôi không kiểm soát được hoàn
|
||||
toàn. Nếu nó không chạy xong, bạn vẫn được vào — sau 10 giây, hoặc 2 phút nếu nó yêu cầu
|
||||
bấm.
|
||||
</li>
|
||||
<li>
|
||||
Mỗi ứng dụng trong danh mục dẫn đến trang web và bộ cài của chính nhà phát triển. Mức độ trợ
|
||||
năng ở đó nằm ngoài tầm kiểm soát của chúng tôi; hãy báo cho nhà phát triển, và báo cho
|
||||
chúng tôi nếu mục giới thiệu nên ghi chú điều đó.
|
||||
</li>
|
||||
<li>
|
||||
Thẻ ứng dụng rút gọn phần tóm tắt còn hai dòng. Toàn văn có ở trang riêng của từng ứng dụng.
|
||||
</li>
|
||||
<li>Các trang pháp lý tiếng Việt là bản dịch; bản tiếng Anh là bản có giá trị.</li>
|
||||
</ul>
|
||||
|
||||
<h2 id="report">Báo một trở ngại</h2>
|
||||
<p>
|
||||
Gửi email đến <a href={`mailto:${MAIL}`}>{MAIL}</a>, hoặc{' '}
|
||||
<a href={FORM}>mở một issue về trợ năng</a> trên GitHub (cần tài khoản GitHub; email thì không
|
||||
cần). Nếu được, hãy cho biết bạn đang ở trang nào, định làm gì, chuyện gì đã xảy ra, và bạn
|
||||
dùng thiết bị, trình duyệt, công nghệ hỗ trợ nào. Ảnh chụp hay video màn hình luôn được hoan
|
||||
nghênh nhưng không bắt buộc, và bạn không bao giờ cần cho chúng tôi biết về tình trạng khuyết
|
||||
tật. Bạn có thể viết bằng tiếng Việt hoặc tiếng Anh.
|
||||
</p>
|
||||
|
||||
<h2 id="response">Sau khi bạn báo</h2>
|
||||
<p>
|
||||
SoftHarbor do một người vận hành, nên đây là những cam kết giữ được. Chúng tôi trả lời trong
|
||||
vòng 7 ngày và đánh giá mức độ trở ngại:
|
||||
</p>
|
||||
<ul>
|
||||
<li>
|
||||
<strong>Nghiêm trọng</strong> — khiến bạn không tìm, đọc hay mở được liên kết của ứng dụng:
|
||||
sửa trong 30 ngày;
|
||||
</li>
|
||||
<li>
|
||||
<strong>Nặng</strong> — khó vượt qua, dù vẫn có cách khác: trong 60 ngày;
|
||||
</li>
|
||||
<li>
|
||||
<strong>Vừa</strong> hoặc <strong>nhẹ</strong> — gây phiền hoặc thiếu nhất quán: trong 90
|
||||
ngày.
|
||||
</li>
|
||||
</ul>
|
||||
<p>
|
||||
Nếu trễ hạn, chúng tôi sẽ nói rõ lý do, đưa ra cách tạm thời, và hẹn ngày mới. Chúng tôi có
|
||||
thể nhờ bạn xác nhận bản sửa trước khi đóng báo cáo.
|
||||
</p>
|
||||
|
||||
<h2 id="contributors">Dành cho người đóng góp</h2>
|
||||
<p>
|
||||
Cách chúng tôi giữ cho mọi thay đổi đều dễ tiếp cận — các bước kiểm tra một pull request phải
|
||||
qua và những gì cần thử bằng tay — nằm trong{' '}
|
||||
<a href={GUIDE} lang="en">
|
||||
ACCESSIBILITY.md
|
||||
</a>{' '}
|
||||
ở kho mã nguồn.
|
||||
</p>
|
||||
</>
|
||||
)}
|
||||
@@ -68,18 +68,25 @@ const rows = [
|
||||
|
||||
<p>
|
||||
{en
|
||||
? 'Claude models developed by Anthropic, used through Claude Code — Anthropic’s command-line coding tool: Claude Opus 5 (model identifier claude-opus-5) for the site and catalogue through v1.0, and Claude Opus 5.5 (claude-opus-5-5) for the v1.1, v1.2 and v1.3 work of October 2026. Earlier work on the project used Claude models through the same tool. No other AI system contributed to this site.'
|
||||
: 'Các mô hình Claude do Anthropic phát triển, sử dụng qua Claude Code — công cụ lập trình dòng lệnh của Anthropic: Claude Opus 5 (mã định danh mô hình claude-opus-5) cho trang web và danh mục đến hết v1.0, và Claude Opus 5.5 (claude-opus-5-5) cho phần việc v1.1, v1.2 và v1.3 vào tháng 10/2026. Các giai đoạn trước của dự án cũng dùng mô hình Claude qua chính công cụ này. Không có hệ thống AI nào khác tham gia vào trang web này.'}
|
||||
? 'Claude models developed by Anthropic, used through Claude Code — Anthropic’s command-line coding tool: Claude Opus 5 (model identifier claude-opus-5) for the site and catalogue through v1.0, and Claude Opus 5.5 (claude-opus-5-5) for the v1.1, v1.2 and v1.3 work of October 2026 and the v1.4 work of November 2026. Earlier work on the project used Claude models through the same tool. No other AI system contributed to this site.'
|
||||
: 'Các mô hình Claude do Anthropic phát triển, sử dụng qua Claude Code — công cụ lập trình dòng lệnh của Anthropic: Claude Opus 5 (mã định danh mô hình claude-opus-5) cho trang web và danh mục đến hết v1.0, và Claude Opus 5.5 (claude-opus-5-5) cho phần việc v1.1, v1.2 và v1.3 vào tháng 10/2026 và v1.4 vào tháng 11/2026. Các giai đoạn trước của dự án cũng dùng mô hình Claude qua chính công cụ này. Không có hệ thống AI nào khác tham gia vào trang web này.'}
|
||||
</p>
|
||||
|
||||
<h2>{en ? 'Where it was used' : 'Đã dùng ở đâu'}</h2>
|
||||
|
||||
<div class="-mx-4 overflow-x-auto px-4">
|
||||
<div class="-mx-4 overflow-x-auto px-4" role="region" aria-labelledby="ai-use-caption" tabindex="0">
|
||||
<table class="w-full border-collapse text-small">
|
||||
<caption id="ai-use-caption" class="sr-only">
|
||||
{en ? 'Where AI was used, and how' : 'AI đã được dùng ở đâu và như thế nào'}
|
||||
</caption>
|
||||
<thead>
|
||||
<tr class="border-sh-border border-b-2 text-left">
|
||||
<th class="w-1/4 py-2 pr-4">{en ? 'Area' : 'Hạng mục'}</th>
|
||||
<th class="py-2">{en ? 'How' : 'Cách làm'}</th>
|
||||
<th scope="col" class="w-1/4 py-2 pr-4">
|
||||
{en ? 'Area' : 'Hạng mục'}
|
||||
</th>
|
||||
<th scope="col" class="py-2">
|
||||
{en ? 'How' : 'Cách làm'}
|
||||
</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
||||
@@ -48,8 +48,8 @@ const PRIVACY = CONTACTS.privacy;
|
||||
<code>sh:lang</code> — that you answered the language suggestion;
|
||||
</li>
|
||||
<li>
|
||||
<code>sh:theme</code>, <code>sh:scrollbar</code>, <code>sh:motion</code> — your display
|
||||
choices.
|
||||
<code>sh:theme</code>, <code>sh:scrollbar</code>, <code>sh:motion</code>,{' '}
|
||||
<code>sh:keys</code> — your display choices.
|
||||
</li>
|
||||
</ul>
|
||||
<p>
|
||||
@@ -180,8 +180,8 @@ const PRIVACY = CONTACTS.privacy;
|
||||
<code>sh:lang</code> — việc bạn đã trả lời gợi ý ngôn ngữ;
|
||||
</li>
|
||||
<li>
|
||||
<code>sh:theme</code>, <code>sh:scrollbar</code>, <code>sh:motion</code> — các tuỳ chọn hiển
|
||||
thị của bạn.
|
||||
<code>sh:theme</code>, <code>sh:scrollbar</code>, <code>sh:motion</code>,{' '}
|
||||
<code>sh:keys</code> — các tuỳ chọn hiển thị của bạn.
|
||||
</li>
|
||||
</ul>
|
||||
<p>
|
||||
|
||||
@@ -71,13 +71,29 @@ const packages = productionLicenses();
|
||||
: 'SoftHarbor được xây dựng trên phần mềm mã nguồn mở. Các thành phần và giấy phép tương ứng:'}
|
||||
</p>
|
||||
|
||||
<div class="-mx-4 overflow-x-auto px-4">
|
||||
{/* A labelled, focusable region: on a narrow screen the table scrolls
|
||||
sideways, and keyboard users need a way to reach that scroll. */}
|
||||
<div
|
||||
class="-mx-4 overflow-x-auto px-4"
|
||||
role="region"
|
||||
aria-labelledby="components-caption"
|
||||
tabindex="0"
|
||||
>
|
||||
<table class="w-full border-collapse text-small">
|
||||
<caption id="components-caption" class="sr-only">
|
||||
{en ? 'Components and their licenses' : 'Các thành phần và giấy phép'}
|
||||
</caption>
|
||||
<thead>
|
||||
<tr class="border-sh-border border-b-2 text-left">
|
||||
<th class="py-2 pr-4">{en ? 'Component' : 'Thành phần'}</th>
|
||||
<th class="py-2 pr-4">{en ? 'License' : 'Giấy phép'}</th>
|
||||
<th class="py-2">{en ? 'Note' : 'Ghi chú'}</th>
|
||||
<th scope="col" class="py-2 pr-4">
|
||||
{en ? 'Component' : 'Thành phần'}
|
||||
</th>
|
||||
<th scope="col" class="py-2 pr-4">
|
||||
{en ? 'License' : 'Giấy phép'}
|
||||
</th>
|
||||
<th scope="col" class="py-2">
|
||||
{en ? 'Note' : 'Ghi chú'}
|
||||
</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@@ -114,13 +130,27 @@ const packages = productionLicenses();
|
||||
? 'Generated when the site is built, from package.json and the installed packages, so it always matches the code you are looking at.'
|
||||
: 'Được tạo tự động mỗi lần dựng trang, từ package.json và các gói đã cài, nên luôn khớp với mã nguồn bạn đang xem.'}
|
||||
</p>
|
||||
<div class="-mx-4 overflow-x-auto px-4">
|
||||
<div
|
||||
class="-mx-4 overflow-x-auto px-4"
|
||||
role="region"
|
||||
aria-labelledby="packages-caption"
|
||||
tabindex="0"
|
||||
>
|
||||
<table class="w-full border-collapse text-small">
|
||||
<caption id="packages-caption" class="sr-only">
|
||||
{en ? 'Packages in this build and their licenses' : 'Các gói trong bản dựng và giấy phép'}
|
||||
</caption>
|
||||
<thead>
|
||||
<tr class="border-sh-border border-b-2 text-left">
|
||||
<th class="py-2 pr-4">{en ? 'Package' : 'Gói'}</th>
|
||||
<th class="py-2 pr-4">{en ? 'Version' : 'Phiên bản'}</th>
|
||||
<th class="py-2">{en ? 'License' : 'Giấy phép'}</th>
|
||||
<th scope="col" class="py-2 pr-4">
|
||||
{en ? 'Package' : 'Gói'}
|
||||
</th>
|
||||
<th scope="col" class="py-2 pr-4">
|
||||
{en ? 'Version' : 'Phiên bản'}
|
||||
</th>
|
||||
<th scope="col" class="py-2">
|
||||
{en ? 'License' : 'Giấy phép'}
|
||||
</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
||||
@@ -67,6 +67,7 @@ const facetOptions = {
|
||||
<ShSearch
|
||||
client:idle
|
||||
placeholder={t(locale, 'search.placeholder')}
|
||||
placeholderPlain={t(locale, 'search.placeholder.plain')}
|
||||
label={t(locale, 'search.label')}
|
||||
loadingLabel={t(locale, 'search.loading')}
|
||||
errorLabel={t(locale, 'search.error')}
|
||||
@@ -79,6 +80,7 @@ const facetOptions = {
|
||||
<ShFilterSheet
|
||||
client:idle
|
||||
openLabel={t(locale, 'filters.open')}
|
||||
activeLabel={t(locale, 'filters.active')}
|
||||
clearLabel={t(locale, 'filters.clear')}
|
||||
showLabel={t(locale, 'filters.show')}
|
||||
showLabelOne={t(locale, 'filters.show.one')}
|
||||
|
||||
@@ -20,7 +20,18 @@ const ISSUES = 'https://github.com/poli0981/softharbor/issues/new/choose';
|
||||
const rows = [
|
||||
{ key: 'security', icon: 'shield-alert' },
|
||||
{ key: 'privacy', icon: 'eye-off' },
|
||||
{ key: 'dmca', icon: 'copyright', more: '/legal/terms#copyright' },
|
||||
{
|
||||
key: 'accessibility',
|
||||
icon: 'accessibility',
|
||||
more: '/legal/accessibility',
|
||||
moreTitle: 'legal.title.accessibility',
|
||||
},
|
||||
{
|
||||
key: 'dmca',
|
||||
icon: 'copyright',
|
||||
more: '/legal/terms#copyright',
|
||||
moreTitle: 'legal.title.terms',
|
||||
},
|
||||
{ key: 'takedown', icon: 'flag' },
|
||||
{ key: 'legal', icon: 'scale' },
|
||||
{ key: 'copyright', icon: 'scroll-text' },
|
||||
@@ -61,7 +72,7 @@ const rows = [
|
||||
href={localePath(locale, row.more)}
|
||||
class="sh-anim text-sh-muted mt-1 flex items-center gap-1 text-small hover:underline"
|
||||
>
|
||||
{t(locale, 'legal.title.terms')}
|
||||
{t(locale, row.moreTitle)}
|
||||
<ShIcon name="arrow-right" class="size-3.5" motion="nudge-x" />
|
||||
</a>
|
||||
)}
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
// SPDX-License-Identifier: GPL-3.0-only
|
||||
// Copyright (C) 2026 poli0981 (SkullMute)
|
||||
//
|
||||
// docs/14 — shared chrome for the six legal documents. Prose lives per
|
||||
// docs/14 — shared chrome for the seven legal documents. Prose lives per
|
||||
// locale in src/components/legal/, not in the i18n dictionaries: docs/07 §1
|
||||
// puts legal in its own layer precisely because multi-paragraph documents are
|
||||
// content, not UI strings, and the English text is canonical (docs/07 §8).
|
||||
@@ -29,7 +29,7 @@ const updated = new Intl.DateTimeFormat(locale === 'vi' ? 'vi-VN' : 'en-GB', {
|
||||
|
||||
{/* Suffixed like every other page: an unbranded <title> in a SERP reads as
|
||||
someone else's document. The description names the document too, so the
|
||||
six legal pages are not six copies of the site tagline. */}
|
||||
legal pages are not seven copies of the site tagline. */}
|
||||
<Base
|
||||
title={`${title} — ${t(locale, 'site.name')}`}
|
||||
description={t(locale, 'meta.legal', { title })}
|
||||
|
||||
@@ -17,9 +17,9 @@
|
||||
"download": "https://www.7-zip.org/download.html"
|
||||
},
|
||||
"security": {
|
||||
"status": "unverified",
|
||||
"status": "clean",
|
||||
"evidence": "https://www.virustotal.com/gui/url/273d0beedb411e020dd6ce34a46330b626a4ed56df427f806c4c552ea5c287e7",
|
||||
"checkedAt": "2026-10-23"
|
||||
"checkedAt": "2026-11-09"
|
||||
},
|
||||
"addedAt": "2026-07-28"
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
{
|
||||
"name": "Accessibility Insights for Windows",
|
||||
"developer": "Microsoft",
|
||||
"logo": "monogram",
|
||||
"summary": {
|
||||
"en": "Finds accessibility problems in Windows desktop apps with automated checks and a live view of the UI Automation tree.",
|
||||
"vi": "Tìm lỗi trợ năng trong ứng dụng Windows bằng các bài kiểm tra tự động và chế độ xem trực tiếp cây UI Automation."
|
||||
},
|
||||
"categories": ["accessibility", "developer-tools"],
|
||||
"tags": ["ui-automation", "testing", "wcag", "inspector"],
|
||||
"platforms": ["windows"],
|
||||
"pricing": "free",
|
||||
"license": "MIT",
|
||||
"links": {
|
||||
"homepage": "https://accessibilityinsights.io/docs/windows/overview/",
|
||||
"repo": "https://github.com/microsoft/accessibility-insights-windows",
|
||||
"download": "https://accessibilityinsights.io/downloads/"
|
||||
},
|
||||
"security": {
|
||||
"status": "clean",
|
||||
"evidence": "https://www.virustotal.com/gui/url/4b7c03af5915f46aa687b06793ce53faac39679bcfecefbac3c89dab4c68cfd7",
|
||||
"checkedAt": "2026-11-09"
|
||||
},
|
||||
"addedAt": "2026-11-09"
|
||||
}
|
||||
@@ -17,9 +17,9 @@
|
||||
"download": "https://developer.android.com/studio"
|
||||
},
|
||||
"security": {
|
||||
"status": "unverified",
|
||||
"status": "clean",
|
||||
"evidence": "https://www.virustotal.com/gui/url/c19baa232f69e69a69d324ece0a21a3afe17245faad082eef9b959fa14092afb",
|
||||
"checkedAt": "2026-10-23"
|
||||
"checkedAt": "2026-11-09"
|
||||
},
|
||||
"addedAt": "2026-07-28"
|
||||
}
|
||||
@@ -19,7 +19,7 @@
|
||||
"security": {
|
||||
"status": "unverified",
|
||||
"evidence": "https://www.virustotal.com/gui/url/4d04818ce36865ef6a9f6479e05bc81d7c745045db094b4d3db1f84651c549e3",
|
||||
"checkedAt": "2026-10-23"
|
||||
"checkedAt": "2026-11-09"
|
||||
},
|
||||
"addedAt": "2026-10-23"
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
{
|
||||
"name": "Balabolka",
|
||||
"developer": "Ilya Morozov",
|
||||
"logo": "monogram",
|
||||
"summary": {
|
||||
"en": "Text-to-speech reader that reads documents and the clipboard aloud with your installed voices and saves speech as audio.",
|
||||
"vi": "Phần mềm chuyển văn bản thành giọng nói, đọc to tài liệu và clipboard bằng các giọng đã cài, lưu được thành tệp âm thanh."
|
||||
},
|
||||
"categories": ["accessibility", "productivity"],
|
||||
"tags": ["text-to-speech", "audiobook", "portable", "clipboard"],
|
||||
"platforms": ["windows"],
|
||||
"pricing": "free",
|
||||
"license": null,
|
||||
"links": {
|
||||
"homepage": "https://www.cross-plus-a.com/balabolka.htm",
|
||||
"repo": null,
|
||||
"download": "https://www.cross-plus-a.com/balabolka.htm"
|
||||
},
|
||||
"security": {
|
||||
"status": "clean",
|
||||
"evidence": "https://www.virustotal.com/gui/url/2ccab1b1bfe13790e911b395cf2f877a5e4f2e5e7b355e3515315905e1378a78",
|
||||
"checkedAt": "2026-11-09"
|
||||
},
|
||||
"addedAt": "2026-11-09"
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
{
|
||||
"name": "Bookworm",
|
||||
"developer": "Blind Pandas",
|
||||
"logo": "monogram",
|
||||
"summary": {
|
||||
"en": "Document reader made for screen-reader users that opens EPUB, PDF, Word and more, with read-aloud and bookmarks.",
|
||||
"vi": "Trình đọc tài liệu dành cho người dùng trình đọc màn hình, mở EPUB, PDF, Word và nhiều định dạng khác, có đọc to và đánh dấu."
|
||||
},
|
||||
"categories": ["accessibility", "productivity"],
|
||||
"tags": ["ebook", "screen-reader", "read-aloud", "portable"],
|
||||
"platforms": ["windows"],
|
||||
"pricing": "free",
|
||||
"license": "GPL-2.0-or-later",
|
||||
"links": {
|
||||
"homepage": "https://github.com/blindpandas/bookworm",
|
||||
"repo": "https://github.com/blindpandas/bookworm",
|
||||
"download": "https://github.com/blindpandas/bookworm/releases"
|
||||
},
|
||||
"security": {
|
||||
"status": "clean",
|
||||
"evidence": "https://www.virustotal.com/gui/url/b171e4359ffb01eef1edbaae0e226094da3ae35c813476cef0374e2aa12ebd63",
|
||||
"checkedAt": "2026-11-09"
|
||||
},
|
||||
"addedAt": "2026-11-09"
|
||||
}
|
||||
@@ -19,7 +19,7 @@
|
||||
"security": {
|
||||
"status": "unverified",
|
||||
"evidence": "https://www.virustotal.com/gui/url/4021e24fda8949410ef64b32752996e075b78f60f3188244efb415df5e3bf3e4",
|
||||
"checkedAt": "2026-10-23"
|
||||
"checkedAt": "2026-11-09"
|
||||
},
|
||||
"addedAt": "2026-10-23"
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
{
|
||||
"name": "Colour Contrast Analyser",
|
||||
"developer": "Vispero (TPGi)",
|
||||
"logo": "monogram",
|
||||
"summary": {
|
||||
"en": "Picks text and background colours from anywhere on screen and reports their contrast against the WCAG thresholds.",
|
||||
"vi": "Lấy màu chữ và màu nền ở bất kỳ đâu trên màn hình, rồi báo độ tương phản giữa chúng theo các ngưỡng của WCAG."
|
||||
},
|
||||
"categories": ["accessibility", "developer-tools"],
|
||||
"tags": ["wcag", "contrast", "color-picker", "design-review"],
|
||||
"platforms": ["windows", "macos", "linux"],
|
||||
"pricing": "free",
|
||||
"license": "GPL-3.0-only",
|
||||
"links": {
|
||||
"homepage": "https://vispero.com/color-contrast-checker/",
|
||||
"repo": "https://github.com/ThePacielloGroup/CCAe",
|
||||
"download": "https://github.com/ThePacielloGroup/CCAe/releases"
|
||||
},
|
||||
"security": {
|
||||
"status": "clean",
|
||||
"evidence": "https://www.virustotal.com/gui/url/8a07e9837dc4628c0f358075852c44508fbcca928310bcb61672e070d7493581",
|
||||
"checkedAt": "2026-11-09"
|
||||
},
|
||||
"addedAt": "2026-11-09"
|
||||
}
|
||||
@@ -17,9 +17,9 @@
|
||||
"download": "https://dbeaver.io/download/"
|
||||
},
|
||||
"security": {
|
||||
"status": "unverified",
|
||||
"status": "clean",
|
||||
"evidence": "https://www.virustotal.com/gui/url/4501ec70bd4de7a1496fa573fe3e2dd94d9caa526c3fba937085acdb2595f362",
|
||||
"checkedAt": "2026-10-23"
|
||||
"checkedAt": "2026-11-09"
|
||||
},
|
||||
"addedAt": "2026-07-28"
|
||||
}
|
||||
@@ -17,9 +17,9 @@
|
||||
"download": "https://devtoys.app/download"
|
||||
},
|
||||
"security": {
|
||||
"status": "unverified",
|
||||
"status": "clean",
|
||||
"evidence": "https://www.virustotal.com/gui/url/b583d39856e8ccf6d06e97486cba5c4cf40cc04b18e5e48bdf2858db13058fd6",
|
||||
"checkedAt": "2026-10-23"
|
||||
"checkedAt": "2026-11-09"
|
||||
},
|
||||
"addedAt": "2026-07-28"
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
{
|
||||
"name": "eSpeak NG",
|
||||
"developer": "eSpeak NG contributors",
|
||||
"logo": "monogram",
|
||||
"summary": {
|
||||
"en": "Compact speech synthesizer for more than a hundred languages, run from the command line or used as a screen reader voice.",
|
||||
"vi": "Bộ tổng hợp giọng nói gọn nhẹ cho hơn một trăm ngôn ngữ, chạy từ dòng lệnh hoặc làm giọng đọc cho trình đọc màn hình."
|
||||
},
|
||||
"categories": ["accessibility", "utilities"],
|
||||
"tags": ["text-to-speech", "cli", "speech-synthesis", "multilingual"],
|
||||
"platforms": ["windows", "linux"],
|
||||
"pricing": "free",
|
||||
"license": "GPL-3.0-or-later",
|
||||
"links": {
|
||||
"homepage": "https://github.com/espeak-ng/espeak-ng",
|
||||
"repo": "https://github.com/espeak-ng/espeak-ng",
|
||||
"download": "https://github.com/espeak-ng/espeak-ng/releases"
|
||||
},
|
||||
"security": {
|
||||
"status": "clean",
|
||||
"evidence": "https://www.virustotal.com/gui/url/c6c7eec6b1d9653eeef8e4a80a2e59b7ce0957f4c8d8aeb0cb7207b84f928b02",
|
||||
"checkedAt": "2026-11-09"
|
||||
},
|
||||
"addedAt": "2026-11-09"
|
||||
}
|
||||
@@ -19,7 +19,7 @@
|
||||
"security": {
|
||||
"status": "unverified",
|
||||
"evidence": "https://www.virustotal.com/gui/url/95707fe983a07c4a17ea04b94ce50a9397bfe77002a56fb064015cda3273487a",
|
||||
"checkedAt": "2026-10-23"
|
||||
"checkedAt": "2026-11-09"
|
||||
},
|
||||
"addedAt": "2026-10-23"
|
||||
}
|
||||
@@ -17,9 +17,9 @@
|
||||
"download": "https://helium.computer"
|
||||
},
|
||||
"security": {
|
||||
"status": "unverified",
|
||||
"status": "clean",
|
||||
"evidence": "https://www.virustotal.com/gui/url/a25c2cf1aba9368a2cba36ebfd6c3acc01987e0889991f69d0d895a40f22c76e",
|
||||
"checkedAt": "2026-10-23"
|
||||
"checkedAt": "2026-11-09"
|
||||
},
|
||||
"addedAt": "2026-07-28"
|
||||
}
|
||||
@@ -17,9 +17,9 @@
|
||||
"download": "https://itch.io/app"
|
||||
},
|
||||
"security": {
|
||||
"status": "unverified",
|
||||
"status": "clean",
|
||||
"evidence": "https://www.virustotal.com/gui/url/20dfb1872095ef5234100b1d93eca2e5c03901c7902a844dcf4e5d5742024bc7",
|
||||
"checkedAt": "2026-10-23"
|
||||
"checkedAt": "2026-11-09"
|
||||
},
|
||||
"addedAt": "2026-07-28"
|
||||
}
|
||||
@@ -17,9 +17,9 @@
|
||||
"download": "https://keepassxc.org/download/"
|
||||
},
|
||||
"security": {
|
||||
"status": "unverified",
|
||||
"status": "clean",
|
||||
"evidence": "https://www.virustotal.com/gui/url/4d2aed206303081787d07167298d5e6e385b96c0c5eba3c68fde1ea4aa57f483",
|
||||
"checkedAt": "2026-10-23"
|
||||
"checkedAt": "2026-11-09"
|
||||
},
|
||||
"addedAt": "2026-07-28"
|
||||
}
|
||||
@@ -13,13 +13,14 @@
|
||||
"license": "GPL-3.0-or-later",
|
||||
"links": {
|
||||
"homepage": "https://www.linphone.org",
|
||||
"repo": "https://gitlab.linphone.org/BC/public/linphone-desktop",
|
||||
"repo": "https://github.com/BelledonneCommunications/linphone-desktop",
|
||||
"download": "https://www.linphone.org/en/download/"
|
||||
},
|
||||
"security": {
|
||||
"status": "clean",
|
||||
"evidence": "https://www.virustotal.com/gui/url/a7271e3eda0d0513ac80ade5a0f84390647c980f7a64e052e2b5f2985cc98355",
|
||||
"checkedAt": "2026-07-30"
|
||||
"checkedAt": "2026-11-09"
|
||||
},
|
||||
"addedAt": "2026-07-28"
|
||||
"addedAt": "2026-07-28",
|
||||
"updatedAt": "2026-11-09"
|
||||
}
|
||||
@@ -19,7 +19,7 @@
|
||||
"security": {
|
||||
"status": "unverified",
|
||||
"evidence": "https://www.virustotal.com/gui/url/f03f31716a8876b136a752af94015ed4d0c806b33315a95d9958f80af8b283b4",
|
||||
"checkedAt": "2026-10-23"
|
||||
"checkedAt": "2026-11-09"
|
||||
},
|
||||
"addedAt": "2026-10-23"
|
||||
}
|
||||
@@ -27,7 +27,7 @@
|
||||
"security": {
|
||||
"status": "unverified",
|
||||
"evidence": "https://www.virustotal.com/gui/url/c9e490cc95fea84d77e8fb7c048c304e86944b467f0a5bccb3dd444eb8acbb2f",
|
||||
"checkedAt": "2026-10-23"
|
||||
"checkedAt": "2026-11-09"
|
||||
},
|
||||
"addedAt": "2026-10-23"
|
||||
}
|
||||
@@ -19,7 +19,7 @@
|
||||
"security": {
|
||||
"status": "unverified",
|
||||
"evidence": "https://www.virustotal.com/gui/url/de74cc5378d63fb139bbcc44dab08c46c894364b3140aea863347a882127dc34",
|
||||
"checkedAt": "2026-10-23"
|
||||
"checkedAt": "2026-11-09"
|
||||
},
|
||||
"addedAt": "2026-10-23"
|
||||
}
|
||||
@@ -17,9 +17,9 @@
|
||||
"download": "https://objective-see.org/products/lulu.html"
|
||||
},
|
||||
"security": {
|
||||
"status": "unverified",
|
||||
"status": "clean",
|
||||
"evidence": "https://www.virustotal.com/gui/url/1bfc2472d3111070abdec4ee78e343c41768682de5ff0de8e93d5355a5bf4701",
|
||||
"checkedAt": "2026-10-23"
|
||||
"checkedAt": "2026-11-09"
|
||||
},
|
||||
"addedAt": "2026-07-28"
|
||||
}
|
||||
@@ -17,9 +17,9 @@
|
||||
"download": "https://meldmerge.org"
|
||||
},
|
||||
"security": {
|
||||
"status": "unverified",
|
||||
"status": "clean",
|
||||
"evidence": "https://www.virustotal.com/gui/url/33c6aee29c051b1b5376f30a6a8ed54dc4ff29e129d787478c181fa35a9bf49f",
|
||||
"checkedAt": "2026-10-23"
|
||||
"checkedAt": "2026-11-09"
|
||||
},
|
||||
"addedAt": "2026-07-28"
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
{
|
||||
"name": "NVDA",
|
||||
"developer": "NV Access",
|
||||
"logo": "monogram",
|
||||
"summary": {
|
||||
"en": "Screen reader for Windows that speaks what is on screen or sends it to a braille display, extended through add-ons.",
|
||||
"vi": "Trình đọc màn hình cho Windows, đọc to nội dung trên màn hình hoặc xuất ra màn hình chữ nổi, mở rộng bằng add-on."
|
||||
},
|
||||
"categories": ["accessibility"],
|
||||
"tags": ["screen-reader", "braille", "text-to-speech", "add-ons"],
|
||||
"platforms": ["windows"],
|
||||
"pricing": "free",
|
||||
"license": "GPL-2.0-or-later",
|
||||
"links": {
|
||||
"homepage": "https://www.nvaccess.org",
|
||||
"repo": "https://github.com/nvaccess/nvda",
|
||||
"download": "https://www.nvaccess.org/download/"
|
||||
},
|
||||
"security": {
|
||||
"status": "clean",
|
||||
"evidence": "https://www.virustotal.com/gui/url/bead57e2a8b5ba6dedecdf8e6a8e7523deb2f3d464fff9803eb8b62ff9d804b5",
|
||||
"checkedAt": "2026-11-09"
|
||||
},
|
||||
"addedAt": "2026-11-09"
|
||||
}
|
||||
@@ -19,7 +19,7 @@
|
||||
"security": {
|
||||
"status": "unverified",
|
||||
"evidence": "https://www.virustotal.com/gui/url/d671adfc83cac2a266c02d7db6810fe5b1070f59826533d609d235f2e6bf5ace",
|
||||
"checkedAt": "2026-10-23"
|
||||
"checkedAt": "2026-11-09"
|
||||
},
|
||||
"addedAt": "2026-10-23"
|
||||
}
|
||||
@@ -19,7 +19,7 @@
|
||||
"security": {
|
||||
"status": "clean",
|
||||
"evidence": "https://www.virustotal.com/gui/url/8fa08436655973e0ad1531e1f4c8328407eef839f005a6c7621ba53b16580503",
|
||||
"checkedAt": "2026-07-30"
|
||||
"checkedAt": "2026-10-29"
|
||||
},
|
||||
"addedAt": "2026-07-28"
|
||||
}
|
||||
@@ -19,7 +19,7 @@
|
||||
"security": {
|
||||
"status": "clean",
|
||||
"evidence": "https://www.virustotal.com/gui/url/a973fdbf0c96eebc085221fe0c054e6398cc2f97a43c04918b5eebc454f2ac50",
|
||||
"checkedAt": "2026-07-30"
|
||||
"checkedAt": "2026-10-29"
|
||||
},
|
||||
"addedAt": "2026-07-28"
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
{
|
||||
"name": "Optikey",
|
||||
"developer": "Julius Sweetland",
|
||||
"logo": "monogram",
|
||||
"summary": {
|
||||
"en": "On-screen keyboard driven by an eye tracker, switches, head movement or a mouse, for full computer control and speech.",
|
||||
"vi": "Bàn phím ảo điều khiển bằng thiết bị theo dõi mắt, công tắc, chuyển động đầu hoặc chuột, để dùng cả máy tính và nói thành lời."
|
||||
},
|
||||
"categories": ["accessibility"],
|
||||
"tags": ["eye-tracking", "on-screen-keyboard", "aac", "switch-access"],
|
||||
"platforms": ["windows"],
|
||||
"pricing": "free",
|
||||
"license": "GPL-3.0-only",
|
||||
"links": {
|
||||
"homepage": "https://www.optikey.org",
|
||||
"repo": "https://github.com/OptiKey/OptiKey",
|
||||
"download": "https://github.com/OptiKey/OptiKey/releases"
|
||||
},
|
||||
"security": {
|
||||
"status": "clean",
|
||||
"evidence": "https://www.virustotal.com/gui/url/54bd376bc17509fca8f66064863afe7193a0b1d7d64f4c3654025c621483a5c4",
|
||||
"checkedAt": "2026-11-09"
|
||||
},
|
||||
"addedAt": "2026-11-09"
|
||||
}
|
||||
@@ -19,7 +19,7 @@
|
||||
"security": {
|
||||
"status": "clean",
|
||||
"evidence": "https://www.virustotal.com/gui/url/bd9e0d23a0d81645efe065cd0d117faf251b4f7033bce223f944b6615c60c599",
|
||||
"checkedAt": "2026-07-30"
|
||||
"checkedAt": "2026-10-29"
|
||||
},
|
||||
"addedAt": "2026-07-28"
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
{
|
||||
"name": "Orkas",
|
||||
"developer": "Orkas",
|
||||
"logo": "monogram",
|
||||
"summary": {
|
||||
"en": "Desktop AI workspace where a coordinator agent splits a goal among specialist agents, using your own model keys or a local endpoint.",
|
||||
"vi": "Không gian làm việc AI trên máy tính, một tác tử điều phối chia mục tiêu cho các tác tử chuyên trách, dùng khoá API riêng hoặc mô hình cục bộ."
|
||||
},
|
||||
"categories": ["productivity", "ai-local"],
|
||||
"tags": ["ai-agents", "llm", "local-first", "byok"],
|
||||
"platforms": ["windows", "macos"],
|
||||
"pricing": "free",
|
||||
"license": "MIT",
|
||||
"links": {
|
||||
"homepage": "https://orkas.ai",
|
||||
"repo": "https://github.com/Orkas-AI/Orkas",
|
||||
"download": "https://orkas.ai/download/"
|
||||
},
|
||||
"security": {
|
||||
"status": "clean",
|
||||
"evidence": "https://www.virustotal.com/gui/url/856bef961530a205b9fe0cd8d822d7c463b112c8fa1ac37ffed0e2894fbeef27",
|
||||
"checkedAt": "2026-11-09"
|
||||
},
|
||||
"addedAt": "2026-11-09"
|
||||
}
|
||||
@@ -19,7 +19,7 @@
|
||||
"security": {
|
||||
"status": "clean",
|
||||
"evidence": "https://www.virustotal.com/gui/url/6f87aab6e1992dd4ba1b6f3e17deb6edf4d73a8ff59a8d3b740d239917962696",
|
||||
"checkedAt": "2026-07-30"
|
||||
"checkedAt": "2026-10-29"
|
||||
},
|
||||
"addedAt": "2026-07-28"
|
||||
}
|
||||
@@ -19,7 +19,7 @@
|
||||
"security": {
|
||||
"status": "clean",
|
||||
"evidence": "https://www.virustotal.com/gui/url/797b86c3aeecdbcb05c383bd81d6929c3c626492cc4a08040b2b4bdc2a4cacbe",
|
||||
"checkedAt": "2026-07-30"
|
||||
"checkedAt": "2026-10-29"
|
||||
},
|
||||
"addedAt": "2026-07-28"
|
||||
}
|
||||
@@ -19,7 +19,7 @@
|
||||
"security": {
|
||||
"status": "clean",
|
||||
"evidence": "https://www.virustotal.com/gui/url/73b363ca2df0f1bb11ebee796708aed94f4261e95ff639b481e2b1bde718da4e",
|
||||
"checkedAt": "2026-07-30"
|
||||
"checkedAt": "2026-10-29"
|
||||
},
|
||||
"addedAt": "2026-07-28"
|
||||
}
|
||||
@@ -19,7 +19,7 @@
|
||||
"security": {
|
||||
"status": "clean",
|
||||
"evidence": "https://www.virustotal.com/gui/url/16f526b64743c6565ea8a22f986a4ea8510db405b5cf8ff28160a92c4fe63365",
|
||||
"checkedAt": "2026-07-30"
|
||||
"checkedAt": "2026-10-29"
|
||||
},
|
||||
"addedAt": "2026-07-28"
|
||||
}
|
||||
@@ -17,9 +17,9 @@
|
||||
"download": "https://peazip.github.io/peazip-64bit.html"
|
||||
},
|
||||
"security": {
|
||||
"status": "unverified",
|
||||
"status": "clean",
|
||||
"evidence": "https://www.virustotal.com/gui/url/650bd36089edfe582f792b2cce4b1fdf46c43abdaad83038152db4cf4253f539",
|
||||
"checkedAt": "2026-07-30"
|
||||
"checkedAt": "2026-11-09"
|
||||
},
|
||||
"addedAt": "2026-07-28"
|
||||
}
|
||||
@@ -19,7 +19,7 @@
|
||||
"security": {
|
||||
"status": "clean",
|
||||
"evidence": "https://www.virustotal.com/gui/url/12e839bda473bf14479d76c4e82a5c2ae815b276076e88101445fafcb161db1e",
|
||||
"checkedAt": "2026-07-30"
|
||||
"checkedAt": "2026-10-29"
|
||||
},
|
||||
"addedAt": "2026-07-28"
|
||||
}
|
||||
@@ -19,7 +19,7 @@
|
||||
"security": {
|
||||
"status": "clean",
|
||||
"evidence": "https://www.virustotal.com/gui/url/0e7df8f830b54640721682bb373cac06f621e746b7ba44b3460f0e8081dc1784",
|
||||
"checkedAt": "2026-07-30"
|
||||
"checkedAt": "2026-10-29"
|
||||
},
|
||||
"addedAt": "2026-07-28"
|
||||
}
|
||||
@@ -19,7 +19,7 @@
|
||||
"security": {
|
||||
"status": "clean",
|
||||
"evidence": "https://www.virustotal.com/gui/url/d95f3f1ed70c6d22b79488dab9df873b0d524c67cdf40371ff770f570fa1925f",
|
||||
"checkedAt": "2026-07-30"
|
||||
"checkedAt": "2026-10-29"
|
||||
},
|
||||
"addedAt": "2026-07-28"
|
||||
}
|
||||
@@ -19,7 +19,7 @@
|
||||
"security": {
|
||||
"status": "clean",
|
||||
"evidence": "https://www.virustotal.com/gui/url/c9753fcf41d18009fbc61c0756132025a277e12e5ec858513aedc473f9b0ccfd",
|
||||
"checkedAt": "2026-07-30"
|
||||
"checkedAt": "2026-10-29"
|
||||
},
|
||||
"addedAt": "2026-07-28"
|
||||
}
|
||||
@@ -19,7 +19,7 @@
|
||||
"security": {
|
||||
"status": "clean",
|
||||
"evidence": "https://www.virustotal.com/gui/url/a8b7c48defd94e0eb27497bc559997f2c5f185716629806666c400dbfb65d8c1",
|
||||
"checkedAt": "2026-07-30"
|
||||
"checkedAt": "2026-10-29"
|
||||
},
|
||||
"addedAt": "2026-07-28"
|
||||
}
|
||||
Loaded 100 of 229 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user