feat: import and group AlbionBB battle history
This commit is contained in:
180 files changed
+69005
-26
No files matched your search
@@ -18,6 +18,7 @@ Preview at `http://localhost:4173`. Restart after source or content changes to r
|
||||
| `npm run build` | Generate the static website in `dist/` |
|
||||
| `npm test` | Validate content, URL handling, preview metadata, and generated pages |
|
||||
| `npm run sync:battles` | Download social preview images for configured AlbionBB reports |
|
||||
| `npm run import:battles` | Scan available battle history and import verified reports |
|
||||
|
||||
The build works offline. Battle image synchronization requires network access and preserves report links when previews are unavailable.
|
||||
|
||||
@@ -43,6 +44,9 @@ test/ Node.js tests
|
||||
|
||||
Localized fields accept `{ "en": "English", "fa": "فارسی" }` or a plain string. Missing Persian values fall back to English. See [the content reference](docs/content.md) for media formats, battle report fields, recruitment, and rewards.
|
||||
|
||||
The [battle importer](docs/battle-import.md) documents ongoing imports, selection
|
||||
criteria, multi-report grouping, and verification. The scan has no date cutoff.
|
||||
|
||||
## Architecture
|
||||
|
||||
The Node.js generator renders complete HTML pages at `/` (English) and `/fa/` (Persian, RTL). Vanilla JavaScript handles navigation, reward tabs, media dialogs, and language preferences. A one-year `oneup_language` cookie remembers the selected language; `?lang=en` or `?lang=fa` overrides it.
|
||||
|
||||
Reference in new issue
Block a user