This commit is contained in:
Alvin-Zilverstand committed 2026-11-10 13:54:19 +01:00
1 parent 76a4db6a9e
commit 783c95b797
21 files changed
+1245 -46

No files matched your search

+5 -4
View File
@@ -1,6 +1,6 @@
# Codebase index
Reviewed 10 November 2026 against the current source. This is a vanilla JavaScript static portfolio with hash routing, Dutch/English text, and no runtime dependencies. The source contains three projects, twelve evidence items and eight process definitions.
Reviewed 10 November 2026 against the current source. This is a vanilla JavaScript static portfolio with hash routing, Dutch/English text, and no runtime dependencies. The source contains nine projects, twenty-four source/evidence items (twelve with provisional exam mappings) and eight process definitions.
| File | Responsibility |
| --- | --- |
@@ -15,13 +15,14 @@ Reviewed 10 November 2026 against the current source. This is a vanilla JavaScri
| `scripts/content.mjs` | Validate content, generate module, scaffold a project |
| `scripts/serve.mjs` | Loopback-only static preview; compiles content when requested |
| `scripts/build.mjs` | Validate/generate content, copy five public assets to `dist/` |
| `tests/` | Content integrity and editing regression checks |
| `tests/` | Content integrity, editing, settings injection, publication and preview security regression checks |
| `Dockerfile`, `.dockerignore` | Allowlisted build context; test/build in Node, then copy public assets into Nginx |
| `compose.yaml`, `.env.example` | Host binding, port, restart policy, read-only runtime, temporary storage and log rotation |
| `docker/nginx.conf` | Domain-root public-file allowlist, response headers and `/healthz` |
| `.gitignore` | Excludes `dist/`, `node_modules/`, logs and `.env` |
| `docs/content-editing.md` | Field reference, editing workflow and validation limits |
| `docs/docker-hosting.md` | Guest deployment, separate proxy topology, updates and operations |
| `docs/repository-review.md` | Public account inventory, selected source revisions and review limits |
| `docs/verification.md` | Dated current checks, historical results and remaining verification limits |
| `docs/preview.png`, `docs/mobile-preview.png` | Historical visual references; not generated or refreshed by the build |
@@ -35,7 +36,7 @@ Routes: `#home`, `#work`, `#project/<id>`, `#evidence`, `#evidence/<code>`, `#ab
The compiler reads JSON files directly inside `content/projects/`, sorts by `number` using numeric-aware comparison, validates project fields and emits exports. The first project is featured and the homepage count is derived from the array; an empty portfolio is supported. The preview generates content in memory on request. Content, test and build commands regenerate the tracked module on disk.
Project IDs are stable route identifiers. Evidence paths are relative to `profile.school` at the pinned `revision`. Text pairs are `[Dutch, English]`. The existing design uses exactly three diagram nodes. Personal contribution and reflection copy is still shared placeholder text in `app.js`.
Project IDs are stable route identifiers. Evidence paths default to `profile.school` at the pinned `revision`. An optional project `repository` overrides the base, commit and forge; `source(path, directory, project)` constructs GitHub or Gitea URLs. An optional bilingual `setting` describes school year or personal-project context. Text pairs are `[Dutch, English]`. The existing design uses exactly three diagram nodes. Personal contribution and reflection copy is still shared placeholder text in `app.js`.
`tests/content.test.mjs` checks translations, mappings, pinned URL construction and the currently missing collaboration evidence. `tests/editor.test.mjs` checks compilation, empty collections, invalid inputs and homepage rendering with the featured project or all projects removed. Its DOM stub does not test real layout or browser interactions.
@@ -43,4 +44,4 @@ The print button opens all currently rendered process details and invokes browse
## Exposure boundary
Editing happens in local JSON files. The preview server has no write endpoint and binds to `127.0.0.1`; it serves only `/` and the five public assets. Production ships five static files, with no editor, login, database or application backend. Docker uses an Nginx server process on port 8080 and adds `/healthz`. All content included in a build is public: only put publishable material in these files. Publish `dist/`, not the repository root. The build overwrites its five files but does not remove stale files from that directory.
Editing happens in local JSON files. The preview server has no write endpoint and binds to `127.0.0.1`; it serves only `/` and the five public assets. Production ships five static files, with no editor, login, database or application backend. Docker uses an Nginx server process on port 8080 and adds `/healthz`. All content included in a build is public: only put publishable material in these files. Publish `dist/`, not the repository root. The build validates content and stages five assets before replacing `dist/`, removing stale files; it rejects redirected output/staging directories.