You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+3-10Lines changed: 3 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -83,7 +83,7 @@ This project follows the principles of [Keep a Changelog](https://keepachangelog
83
83
│ ├── hooks.server.js # Injects CSP headers and permissions policy
84
84
│ └── service-worker.js # Custom PWA service worker
85
85
├── static/ # Public assets served at site root
86
-
│ ├── pgp/ # PGP keys and QR code images
86
+
│ ├── pgp/ # PGP keys
87
87
│ ├── disableSw.js # Service worker bypass (via ?nosw param)
88
88
│ ├── manifest.json # PWA metadata
89
89
│ ├── robots.txt # SEO: allow/disallow crawlers
@@ -106,26 +106,19 @@ This project follows the principles of [Keep a Changelog](https://keepachangelog
106
106
107
107
### 🔐 `static/pgp/` Directory Structure
108
108
109
-
This directory contains public PGP key files and their corresponding QR codes.
109
+
This directory contains public PGP key files. Their corresponding QR code images are now loaded dynamically from `src/lib/img/qr`. A dynamic QR code import utility in `src/lib/images.js` allows these files to be imported directly from `$lib`.
110
110
111
111
```bash
112
112
static/
113
113
├── pgp/
114
114
│ ├── contact@s.neteng.pro.asc # Public key for secure email
115
-
│ ├── pgp-contact.png # QR code (PNG) for secure email key
116
-
│ ├── pgp-contact.webp # Optimized WebP version of the QR code
117
-
│ ├── pgp-security.png # QR code (PNG) for security contact key
118
-
│ ├── pgp-security.webp # WebP version of the security QR code
119
-
│ ├── pgp-support.png # QR code (PNG) for support key
120
-
│ ├── pgp-support.webp # WebP version of the support QR code
121
115
│ ├── security@s.neteng.pro.asc # Public key for security contact
122
116
│ ├── support@neteng.pro.asc # Public key for general support
123
117
└── ...
124
118
```
125
119
126
120
-`.asc` files are **excluded from service worker precaching** but served directly via the `/pgp/[key]` route.
127
-
- QR code images are **served statically** by the `/pgp` route using `<picture>` elements.
128
-
-**WebP versions** are also used in the `/pgp` route, while the `/about` route imports **dynamic equivalents** from `src/lib/img/qr`.
121
+
- QR code images—including WebP and PNG versions—are **served dynamically** from `src/lib/img/qr` using `<picture>` elements.
129
122
- This route does **not use fallback rendering**; only explicitly defined files are available and expected to resolve.
130
123
- A dynamic `[key]/+server.js` handler under `src/routes/pgp/` serves the `.asc` files with appropriate `Content-Type` and download headers.
0 commit comments