m
This commit is contained in:
1 parent
783c95b797
commit
2d6378c1ed
6 files changed
+71
-15
No files matched your search
@@ -10,7 +10,7 @@ Reviewed 10 November 2026 against the current source. This is a vanilla JavaScri
|
||||
| `content/settings.json` | Profile links, pinned source revision, eight process definitions |
|
||||
| `content.js` | Generated browser module; do not edit directly |
|
||||
| `app.js` | DOM rendering, translations, navigation, evidence filtering and printing |
|
||||
| `styles.css` | Desktop/mobile layouts, project diagrams, accessibility and print styles |
|
||||
| `styles.css` | Desktop/mobile editorial layouts, accessibility and print styles |
|
||||
| `index.html`, `favicon.svg` | Document shell, metadata and icon |
|
||||
| `scripts/content.mjs` | Validate content, generate module, scaffold a project |
|
||||
| `scripts/serve.mjs` | Loopback-only static preview; compiles content when requested |
|
||||
@@ -32,11 +32,11 @@ Reviewed 10 November 2026 against the current source. This is a vanilla JavaScri
|
||||
|
||||
Routes: `#home`, `#work`, `#project/<id>`, `#evidence`, `#evidence/<code>`, `#about`. Empty hash opens home. Unknown page/project routes render an in-page 404; an unknown evidence code falls back to all processes. Language is English only for `?lang=en`, otherwise Dutch. Switching language updates the query without losing the route.
|
||||
|
||||
`header` and `footer` render shared navigation. `home` and `work` render project lists; `detail` renders a dossier. `processRow` derives evidence counts and links from every project's `evidence` array. Removing evidence automatically removes its process-index entries.
|
||||
`header` and `footer` render shared navigation. `home` shows one featured project and two selected projects; `work` renders the complete compact archive; `detail` renders a dossier with source links and a schematic structure line. `processRow` derives evidence counts and links from every project's `evidence` array. Removing evidence automatically removes its process-index entries.
|
||||
|
||||
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 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`.
|
||||
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 schematic structure line uses exactly three 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.
|
||||
|
||||
|
||||
Reference in new issue
Block a user