Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
35810f2cb3 | ||
|
|
63375d46a6 | ||
|
|
44167575e4 | ||
|
|
de411714d0 | ||
|
|
f9a8f5fd95 | ||
|
|
d95898cd1a | ||
|
|
8dd0c87535 | ||
|
|
29963fa09d | ||
|
|
4cea3709af | ||
|
|
2f13547239 |
No files matched your search
@@ -4,6 +4,16 @@ on:
|
|||||||
branches: [main, master]
|
branches: [main, master]
|
||||||
pull_request:
|
pull_request:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
inputs:
|
||||||
|
refresh_analytics:
|
||||||
|
description: 'Refresh analytics by scraping AlbionBB pages (requires source-site access)'
|
||||||
|
required: false
|
||||||
|
default: false
|
||||||
|
type: boolean
|
||||||
|
guild:
|
||||||
|
description: 'Optional full Europe guild name to add to the static analytics data'
|
||||||
|
required: false
|
||||||
|
type: string
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
concurrency:
|
concurrency:
|
||||||
@@ -17,6 +27,18 @@ jobs:
|
|||||||
- uses: actions/setup-node@v4
|
- uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version: '24'
|
node-version: '24'
|
||||||
|
- name: Restore published analytics datasets
|
||||||
|
if: github.event_name == 'workflow_dispatch' && (inputs.refresh_analytics || inputs.guild != '')
|
||||||
|
uses: actions/cache@v4
|
||||||
|
with:
|
||||||
|
path: public/data/intel
|
||||||
|
key: intel-data-${{ github.run_id }}-${{ github.run_attempt }}
|
||||||
|
restore-keys: intel-data-
|
||||||
|
- name: Refresh static guild analytics
|
||||||
|
if: github.event_name == 'workflow_dispatch' && (inputs.refresh_analytics || inputs.guild != '')
|
||||||
|
run: npm run sync:intel
|
||||||
|
env:
|
||||||
|
INTEL_GUILD_NAME: ${{ inputs.guild }}
|
||||||
- name: Verify content and behavior
|
- name: Verify content and behavior
|
||||||
run: npm test
|
run: npm test
|
||||||
- name: Download battle preview images
|
- name: Download battle preview images
|
||||||
|
|||||||
@@ -12,6 +12,7 @@
|
|||||||
/.aws/
|
/.aws/
|
||||||
|
|
||||||
# Editor and local agent state
|
# Editor and local agent state
|
||||||
|
/MEMORY.md
|
||||||
/.idea/
|
/.idea/
|
||||||
/.vscode/
|
/.vscode/
|
||||||
/.agents/
|
/.agents/
|
||||||
|
|||||||
@@ -18,6 +18,8 @@ Preview at `http://localhost:4173`. Restart after source or content changes to r
|
|||||||
| `npm run build` | Generate the static website in `dist/` |
|
| `npm run build` | Generate the static website in `dist/` |
|
||||||
| `npm test` | Validate content, URL handling, preview metadata, and generated pages |
|
| `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 sync:battles` | Download social preview images for configured AlbionBB reports |
|
||||||
|
| `npm run sync:intel` | Prepare static 60-day analytics datasets |
|
||||||
|
| `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.
|
The build works offline. Battle image synchronization requires network access and preserves report links when previews are unavailable.
|
||||||
|
|
||||||
@@ -43,6 +45,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.
|
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
|
## 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.
|
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.
|
||||||
@@ -52,3 +57,102 @@ The build emits canonical and language alternate links, social metadata, organiz
|
|||||||
YouTube uses thumbnails and a privacy-enhanced player loaded on request. Direct video URLs use the native video element. AlbionBB previews are cached at build time; explicit image URLs and Europe single/combined battle preview URLs also work without a local cache. Fonts are served by Google Fonts, with system fallbacks.
|
YouTube uses thumbnails and a privacy-enhanced player loaded on request. Direct video URLs use the native video element. AlbionBB previews are cached at build time; explicit image URLs and Europe single/combined battle preview URLs also work without a local cache. Fonts are served by Google Fonts, with system fallbacks.
|
||||||
|
|
||||||
The GitHub Actions workflow validates pull requests. Pushes to `main` or `master` also synchronize battle previews, build, and deploy the static artifact to GitHub Pages. Generated output is not tracked.
|
The GitHub Actions workflow validates pull requests. Pushes to `main` or `master` also synchronize battle previews, build, and deploy the static artifact to GitHub Pages. Generated output is not tracked.
|
||||||
|
|
||||||
|
## Guild intelligence
|
||||||
|
|
||||||
|
Open `/intel/` or `/fa/intel/` to analyze a prepared Europe guild by its exact full name.
|
||||||
|
The report includes exact kill/death fame, K/D, recorded attendance and IP,
|
||||||
|
daily fame, roles, weapons, player rankings, expandable encounter compositions,
|
||||||
|
source links, and CSV export. Filters and guild name are shareable in the URL.
|
||||||
|
|
||||||
|
- Time windows cover 7, 30 or 60 days ending at the published data timestamp. Battle times use UTC.
|
||||||
|
- Minimum players means **all players from all guilds in each original battle**.
|
||||||
|
For example, 40 includes a 40-player fight even if only four belong to the searched
|
||||||
|
guild. Filtering happens before merging and applies to every reported statistic.
|
||||||
|
- Optional grouping uses the archive's continuity criteria: a maximum 20-minute
|
||||||
|
gap, at least three and 50% overlapping guild members, at least three and 50%
|
||||||
|
overlap in other teams, and at most a 90-minute encounter span. Each new battle
|
||||||
|
must match both the first and most recent battle in the group.
|
||||||
|
- Combined groups are requested from AlbionBB's `/battles/multi` API and their
|
||||||
|
kill, death and kill-fame totals are verified against the original reports.
|
||||||
|
End timestamps are taken from the original reports because the multi response
|
||||||
|
does not reliably contain the latest finish time.
|
||||||
|
- Composition counts recorded player appearances, once per encounter. The same
|
||||||
|
member is counted again in another encounter. Zero/missing IP is excluded from
|
||||||
|
the recorded-IP average. Role/weapon snapshots are not complete movement,
|
||||||
|
equipment-switch or in-game attendance telemetry.
|
||||||
|
- Every history page in the time range is scanned during data preparation. Errors
|
||||||
|
stop publication; partial data is never labelled as a complete report. The
|
||||||
|
browser caches versioned bundles for responsive filter changes.
|
||||||
|
|
||||||
|
### Static datasets, without proxies or keys
|
||||||
|
|
||||||
|
The browser loads `data/intel/manifest.json` and a versioned JSON file for the
|
||||||
|
selected guild from this same static site. There is no project API, external CORS
|
||||||
|
proxy, account/key setup or cross-origin data request. Filters, grouping decisions,
|
||||||
|
composition, statistics, charts and CSV export run in the browser.
|
||||||
|
|
||||||
|
This deliberately trades arbitrary live lookup for reliable static hosting:
|
||||||
|
**only guilds with a published dataset are searchable**. The page lists available
|
||||||
|
guilds and displays their data timestamp. Windows end at that timestamp, rather
|
||||||
|
than claiming that an older dataset covers the present moment. Datasets older than
|
||||||
|
36 hours are explicitly marked. Complete coverage is 60 days per prepared guild.
|
||||||
|
|
||||||
|
To refresh:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
npm run sync:intel
|
||||||
|
npm run build
|
||||||
|
```
|
||||||
|
|
||||||
|
`content/intel-guilds.json` lists full Europe guild names to prepare (initially
|
||||||
|
OneUP). Add a name there, or use `INTEL_GUILD_NAME="Full Guild Name" npm run sync:intel`.
|
||||||
|
The collector reads public AlbionBB HTML pages, finds an exact guild match, exhausts the history pages in the
|
||||||
|
60-day window and saves full guild detail, including recorded roles and weapons.
|
||||||
|
It retains other guilds' aggregate stats for grouping, but omits their player
|
||||||
|
rosters to keep files small. Raw files contain only public game data.
|
||||||
|
|
||||||
|
For all 7/30/60-day windows, the collector prepares the multi reports needed for
|
||||||
|
**every distinct total-player threshold**, not just a few preset values. Each is
|
||||||
|
extracted from AlbionBB's public `battles/multi` HTML pages and its kill, death and fame totals are
|
||||||
|
verified against the originals. Browser grouping uses the same rules and reads
|
||||||
|
the corresponding saved multi. Failed or missing data is an error; no silently
|
||||||
|
approximated merged composition is presented.
|
||||||
|
|
||||||
|
The initial real dataset is committed in `public/data/intel/`, so a clean checkout
|
||||||
|
and normal build work offline. Subsequent refreshes reuse historical raw reports
|
||||||
|
and verified multi files. The manifest is replaced only after all requested guilds
|
||||||
|
have been collected successfully. New files have content hashes in their names.
|
||||||
|
|
||||||
|
Normal GitHub Pages deployments publish the committed datasets without contacting
|
||||||
|
the source website. This keeps deployment independent of AlbionBB availability and
|
||||||
|
its IP restrictions; the direct API previously returned HTTP 403 on GitHub runners.
|
||||||
|
Plain manual deployments also use committed data.
|
||||||
|
|
||||||
|
To explicitly request a remote refresh, enable **refresh_analytics** in Run workflow,
|
||||||
|
or provide the optional **guild** input to add a prepared guild. Only those runs
|
||||||
|
restore the Actions data cache and call the collector. Validation runs afterward,
|
||||||
|
against the actual data being published. A requested refresh still fails visibly
|
||||||
|
if AlbionBB blocks the runner; a stale or incomplete refresh is not reported as
|
||||||
|
successful. In that case run `npm run sync:intel` locally and commit the resulting
|
||||||
|
`public/data/intel/` files before pushing. No runtime server is deployed.
|
||||||
|
|
||||||
|
There is no scheduled refresh. Ordinary deployments preserve the dataset timestamp;
|
||||||
|
it advances only after a successful explicit collection.
|
||||||
|
|
||||||
|
Analytics collection now scrapes public pages on `https://europe.albionbb.com`:
|
||||||
|
guild battle lists, individual reports, search results and combined reports. The
|
||||||
|
site embeds complete server-rendered report data in its HTML. The scraper parses
|
||||||
|
that JSON reference graph without executing remote JavaScript and without calling
|
||||||
|
`api.albionbb.com`. It retains exact fame, player roles, weapons and roster data.
|
||||||
|
The separate legacy battle importer still uses the API.
|
||||||
|
|
||||||
|
Scraping runs on the maintainer's computer or in CI, where browser CORS does not
|
||||||
|
apply. The source site itself still obtains its data internally; this project
|
||||||
|
reads its published pages. A source-site block, rate limit, or HTML format change
|
||||||
|
stops collection, and the previous complete dataset remains usable. Successful
|
||||||
|
local scraping does not guarantee that GitHub's IP addresses are allowed.
|
||||||
|
|
||||||
|
All analysis still happens in the visitor's browser. Scraping another domain from
|
||||||
|
client JavaScript would still require CORS permission, so the browser reads only
|
||||||
|
the published same-origin JSON. The normal `npm run build` stays offline.
|
||||||
@@ -0,0 +1,11 @@
|
|||||||
|
{
|
||||||
|
"guildId": "SF2Zf4PrRsmdBAL5PaBV_A",
|
||||||
|
"guildName": "OneUP",
|
||||||
|
"region": "europe",
|
||||||
|
"apiBaseUrl": "https://api.albionbb.com/eu",
|
||||||
|
"sourceUrl": "https://europe.albionbb.com/guilds/SF2Zf4PrRsmdBAL5PaBV_A/battles",
|
||||||
|
"filters": {
|
||||||
|
"minPlayers": 10,
|
||||||
|
"minGuildPlayers": 5
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
[
|
||||||
|
"OneUP"
|
||||||
|
]
|
||||||
@@ -1,10 +1,10 @@
|
|||||||
{
|
{
|
||||||
"en": {
|
"en": {
|
||||||
"battleArchive": "From the war archive", "singleReport": "Battle report", "combinedReport": "Campaign report", "europe": "Europe", "engagement": "engagement", "engagements": "engagements", "reportIds": "Battle report IDs", "archivedReports": "Archived reports", "loggedEngagements": "Recorded engagements", "archiveMotto": "One banner. Every battlefield.", "detailedLog": "Detailed battle log",
|
"battleArchive": "From the war archive", "singleReport": "Battle report", "combinedReport": "Campaign report", "europe": "Europe", "engagement": "engagement", "engagements": "engagements", "reportIds": "Battle report IDs", "archivedReports": "Archived reports", "loggedEngagements": "Recorded engagements", "archiveMotto": "One banner. Every battlefield.", "detailedLog": "Detailed battle log",
|
||||||
"mainContent": "Our main content", "recruitmentRequirements": "Entry requirements", "applicationTitle": "Ready to join the ranks?", "applyDiscord": "Apply on Discord",
|
"mainContent": "Our main content", "recruitmentRequirements": "Entry requirements", "applicationTitle": "Ready to join our guild?", "applyDiscord": "Apply on Discord",
|
||||||
"title": "OneUP — One United Power. | Albion Online Guild",
|
"title": "OneUP — One United Power. | Albion Online Guild",
|
||||||
"skip": "Skip to content", "guild": "ALBION ONLINE GUILD", "nav": ["The guild", "War chronicles", "Battle board", "Rewards"],
|
"skip": "Skip to content", "guild": "ALBION ONLINE GUILD", "nav": ["The guild", "War chronicles", "Battle board", "Rewards"],
|
||||||
"join": "Join the ranks", "recruiting": "THE RANKS ARE OPEN", "closed": "THE GUILD STANDS UNITED",
|
"join": "Join our guild", "recruiting": "GUILD RECRUITMENT IS OPEN", "closed": "THE GUILD STANDS UNITED",
|
||||||
"eyebrow": "MANY WARRIORS. ONE BANNER.", "hero1": "ONE UNITED", "hero2": "POWER.",
|
"eyebrow": "MANY WARRIORS. ONE BANNER.", "hero1": "ONE UNITED", "hero2": "POWER.",
|
||||||
"intro": "Different warriors. The same resolve. We are OneUP — a guild built on unity, driven by battle, and defined by the people beside us.",
|
"intro": "Different warriors. The same resolve. We are OneUP — a guild built on unity, driven by battle, and defined by the people beside us.",
|
||||||
"watch": "Watch us fight", "scroll": "ENTER THE WORLD OF ONEUP", "memberLabel": "MEMBERS. ONE PURPOSE.",
|
"watch": "Watch us fight", "scroll": "ENTER THE WORLD OF ONEUP", "memberLabel": "MEMBERS. ONE PURPOSE.",
|
||||||
|
|||||||
@@ -0,0 +1,96 @@
|
|||||||
|
# Battle archive importer
|
||||||
|
|
||||||
|
The battle archive is maintained with a repeatable importer. It scans the full
|
||||||
|
available OneUP battle history on AlbionBB Europe, with no season boundary or
|
||||||
|
calendar cutoff.
|
||||||
|
|
||||||
|
## Commands
|
||||||
|
|
||||||
|
```bash
|
||||||
|
npm run import:battles
|
||||||
|
npm run sync:battles
|
||||||
|
npm run build
|
||||||
|
```
|
||||||
|
|
||||||
|
The first command scans and imports reports; the second downloads their preview
|
||||||
|
images; the third builds the English and Persian site. Importing is an explicit
|
||||||
|
maintenance command. The deployment workflow refreshes images and builds the
|
||||||
|
saved archive without initiating a history scan.
|
||||||
|
|
||||||
|
To rebuild the archive from saved data without network access:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
npm run import:battles -- --offline
|
||||||
|
```
|
||||||
|
|
||||||
|
## Configuration and selection
|
||||||
|
|
||||||
|
[Import configuration](../content/battle-import.json) contains the guild ID,
|
||||||
|
server endpoints, and listing filters. The default listing filters require
|
||||||
|
10 total participants and 5 OneUP participants, focusing on group fights.
|
||||||
|
|
||||||
|
The importer exhausts pagination rather than stopping at a particular battle
|
||||||
|
date. It fetches missing battle details, refreshes the first page of recent
|
||||||
|
reports, and reuses cached details for older reports. Cached history and every
|
||||||
|
already published battle ID are retained, including reports no longer returned
|
||||||
|
by the listing or below its participation filters.
|
||||||
|
|
||||||
|
Sessions are selected when at least 8 OneUP members participated in one
|
||||||
|
engagement and the session has either 5 OneUP kills plus deaths or 1 million
|
||||||
|
OneUP kill fame. Previously published battle IDs are preserved even below those
|
||||||
|
thresholds. Selection does not favor positive K/D.
|
||||||
|
|
||||||
|
## Combining reports
|
||||||
|
|
||||||
|
An automatic merge requires all of the following:
|
||||||
|
|
||||||
|
1. At most 20 minutes from the previous engagement's finish to the next start.
|
||||||
|
2. A combined start-to-finish duration of at most 90 minutes.
|
||||||
|
3. At least 3 shared OneUP players, covering 50% of the smaller roster.
|
||||||
|
4. At least 3 shared participant slots outside OneUP's alliance, covering 50% of
|
||||||
|
the smaller outside-team composition. Guilds in the same alliance form one
|
||||||
|
team; independent guilds retain their own identity.
|
||||||
|
5. Both the previous engagement and the session's first engagement must match,
|
||||||
|
preventing chains from gradually drifting to unrelated teams.
|
||||||
|
|
||||||
|
OneUP's allied guilds cannot create a match by themselves. Team identity uses
|
||||||
|
alliance and guild membership; it does not prove a fight's location or objective.
|
||||||
|
Ambiguous cases stay separate. Titles list the largest guilds outside OneUP's
|
||||||
|
alliance and the engagement's start time in UTC.
|
||||||
|
|
||||||
|
These short time intervals identify related fights. They do not restrict how
|
||||||
|
far back the history scan reaches. Grouping and selection rules live in
|
||||||
|
[the importer](../scripts/import-battles.mjs).
|
||||||
|
|
||||||
|
## Verification and saved data
|
||||||
|
|
||||||
|
Individual detail responses must contain OneUP's exact guild ID. Kills and deaths
|
||||||
|
come from the OneUP guild row, never the entire battle. New combined reports are
|
||||||
|
checked against AlbionBB's actual multi endpoint before publication. Previously
|
||||||
|
verified combinations are reused only when their IDs and totals still match.
|
||||||
|
Outcomes remain `recorded`: K/D alone cannot establish a confirmed winner.
|
||||||
|
|
||||||
|
- [Source data](battle-source.json) stores cached battle details, guild compositions,
|
||||||
|
OneUP rosters, preserved IDs, and verified combined totals.
|
||||||
|
- [Import audit](battle-import-audit.json) records included and excluded sessions,
|
||||||
|
selection reasons, and calculated guild statistics.
|
||||||
|
- [Published content](../content/site.json) contains the reports used by the site.
|
||||||
|
|
||||||
|
Source and audit metadata record when data was fetched for traceability; those
|
||||||
|
values do not limit imports. Battle timestamps remain part of the actual report
|
||||||
|
data for ordering and grouping. Source and audit files are not shipped with the
|
||||||
|
site. Network, grouping, or verification errors stop the import before saved
|
||||||
|
files change. Reports outside the fetched and cached history remain untouched;
|
||||||
|
a partially overlapping report stops the import for review.
|
||||||
|
|
||||||
|
## Presentation and checks
|
||||||
|
|
||||||
|
Only six highlights are shown as full cards, ranked by OneUP's kills minus
|
||||||
|
deaths, then kills, with newer reports breaking ties. Reports with incomplete
|
||||||
|
stats follow verified results. All reports remain in the expandable detailed
|
||||||
|
table, which scrolls within a bounded height to keep the page compact. Each
|
||||||
|
combined report uses its own combined scoreboard image.
|
||||||
|
|
||||||
|
`npm test` checks pagination, unrestricted history, grouping boundaries, unrelated
|
||||||
|
teams, roster continuity, duplicate IDs, source totals, preservation, and both
|
||||||
|
languages. `npm run build` also works offline with the saved content and images.
|
||||||
@@ -40,19 +40,19 @@ Put additional local images under `public/assets/` and reference them as `assets
|
|||||||
|
|
||||||
## Battle reports and AlbionBB preview images
|
## Battle reports and AlbionBB preview images
|
||||||
|
|
||||||
Add each battle manually to `battles` after the fight:
|
Use `npm run import:battles` to scan the available guild history, or add a report
|
||||||
|
manually to `battles`:
|
||||||
|
|
||||||
```json
|
```json
|
||||||
{
|
{
|
||||||
"title": { "en": "Your battle title", "fa": "عنوان نبرد شما" },
|
"title": { "en": "Your battle title", "fa": "عنوان نبرد شما" },
|
||||||
"date": "2026-10-18",
|
|
||||||
"url": "https://europe.albionbb.com/battles/448776222"
|
"url": "https://europe.albionbb.com/battles/448776222"
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
The sample title and date are illustrative. Omit the date or results when unknown.
|
The sample title is illustrative. Omit the date or results when unknown.
|
||||||
|
|
||||||
Optional fields: `"date": "2026-10-18"`, `"outcome": "victory"` (also `defeat`, `draw`, or `recorded`), `"kills": 0`, and `"deaths": 0`. Enter verified guild-specific numbers. Omit unknown dates and figures; they display as dashes. Reports sort by date, newest first, with undated reports following in JSON order. Combined `/battles/multi?ids=...` links are supported and receive distinct preview cache filenames.
|
Optional fields: `date` in `YYYY-MM-DD` format, `"outcome": "victory"` (also `defeat`, `draw`, or `recorded`), `"kills": 0`, and `"deaths": 0`. Enter verified guild-specific numbers. Omit unknown dates and figures; they display as dashes. Reports sort by date, newest first, with undated reports following in JSON order. Combined `/battles/multi?ids=...` links are supported and receive distinct preview cache filenames.
|
||||||
|
|
||||||
Only the report URL is needed to discover its preview; no `preview` field is required. The GitHub deployment automatically runs `npm run sync:battles`, which reads each report's `twitter:image` or `og:image`, including combined reports. If the report page cannot be read or has no image metadata, Europe reports fall back to endpoints derived from the report URL: `https://api.albionbb.com/eu/preview/BATTLE_ID` for a single battle, or `https://api.albionbb.com/eu/preview/multi?ids=ID1,ID2,...` for combined battles. An optional explicit `preview` field overrides discovery.
|
Only the report URL is needed to discover its preview; no `preview` field is required. The GitHub deployment automatically runs `npm run sync:battles`, which reads each report's `twitter:image` or `og:image`, including combined reports. If the report page cannot be read or has no image metadata, Europe reports fall back to endpoints derived from the report URL: `https://api.albionbb.com/eu/preview/BATTLE_ID` for a single battle, or `https://api.albionbb.com/eu/preview/multi?ids=ID1,ID2,...` for combined battles. An optional explicit `preview` field overrides discovery.
|
||||||
|
|
||||||
@@ -60,6 +60,11 @@ PNG/JPEG/WebP images are downloaded to `public/assets/battles/` and included in
|
|||||||
|
|
||||||
Every report renders a visual card with local decorative terrain artwork, guild branding, report IDs, and single/combined report labels. Report images display in full without cropping; missing or failed images retain the local artwork. Combined reports use the combined scoreboard image; a single engagement's image is not substituted for the combined results. The map is decorative, not a reconstruction of the battle. Archive counts use report entries and unique battle IDs from their URLs. Only supplied dates and results are shown. The full table is available in the expandable detailed log.
|
Every report renders a visual card with local decorative terrain artwork, guild branding, report IDs, and single/combined report labels. Report images display in full without cropping; missing or failed images retain the local artwork. Combined reports use the combined scoreboard image; a single engagement's image is not substituted for the combined results. The map is decorative, not a reconstruction of the battle. Archive counts use report entries and unique battle IDs from their URLs. Only supplied dates and results are shown. The full table is available in the expandable detailed log.
|
||||||
|
|
||||||
|
The six best guild performances appear as full cards, ranked by kills minus
|
||||||
|
deaths, then kills and recency. All reports remain in the expandable detailed
|
||||||
|
table, which scrolls within a bounded height. See the
|
||||||
|
[battle importer documentation](battle-import.md) for ongoing imports and grouping.
|
||||||
|
|
||||||
To download previews locally, run:
|
To download previews locally, run:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
|
|||||||
@@ -9,6 +9,8 @@
|
|||||||
"build": "node scripts/build.mjs",
|
"build": "node scripts/build.mjs",
|
||||||
"dev": "node scripts/serve.mjs",
|
"dev": "node scripts/serve.mjs",
|
||||||
"test": "node --test",
|
"test": "node --test",
|
||||||
"sync:battles": "node scripts/sync-battles.mjs"
|
"sync:battles": "node scripts/sync-battles.mjs",
|
||||||
|
"sync:intel": "node scripts/sync-intel.mjs",
|
||||||
|
"import:battles": "node scripts/import-battles.mjs"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
After Width: | Height: | Size: 24 KiB |
|
After Width: | Height: | Size: 39 KiB |
|
After Width: | Height: | Size: 29 KiB |
|
After Width: | Height: | Size: 21 KiB |
|
After Width: | Height: | Size: 25 KiB |
|
After Width: | Height: | Size: 24 KiB |
|
After Width: | Height: | Size: 29 KiB |
|
After Width: | Height: | Size: 28 KiB |
|
After Width: | Height: | Size: 22 KiB |
|
After Width: | Height: | Size: 49 KiB |
|
After Width: | Height: | Size: 17 KiB |
|
After Width: | Height: | Size: 22 KiB |
|
After Width: | Height: | Size: 23 KiB |
|
After Width: | Height: | Size: 30 KiB |
|
After Width: | Height: | Size: 17 KiB |
|
After Width: | Height: | Size: 33 KiB |
|
After Width: | Height: | Size: 37 KiB |
|
After Width: | Height: | Size: 36 KiB |
|
After Width: | Height: | Size: 21 KiB |
|
After Width: | Height: | Size: 48 KiB |
|
After Width: | Height: | Size: 23 KiB |
|
After Width: | Height: | Size: 27 KiB |
|
After Width: | Height: | Size: 16 KiB |
|
After Width: | Height: | Size: 18 KiB |
|
After Width: | Height: | Size: 25 KiB |
|
After Width: | Height: | Size: 21 KiB |
|
After Width: | Height: | Size: 16 KiB |
|
After Width: | Height: | Size: 20 KiB |
|
After Width: | Height: | Size: 26 KiB |
|
After Width: | Height: | Size: 39 KiB |
|
After Width: | Height: | Size: 27 KiB |
|
After Width: | Height: | Size: 29 KiB |
|
After Width: | Height: | Size: 39 KiB |
|
After Width: | Height: | Size: 23 KiB |
|
After Width: | Height: | Size: 21 KiB |
|
After Width: | Height: | Size: 42 KiB |
|
After Width: | Height: | Size: 21 KiB |
|
After Width: | Height: | Size: 28 KiB |
|
After Width: | Height: | Size: 17 KiB |
|
After Width: | Height: | Size: 32 KiB |
|
After Width: | Height: | Size: 20 KiB |
|
After Width: | Height: | Size: 28 KiB |
|
After Width: | Height: | Size: 16 KiB |
|
After Width: | Height: | Size: 35 KiB |
|
After Width: | Height: | Size: 12 KiB |
|
After Width: | Height: | Size: 27 KiB |
|
After Width: | Height: | Size: 18 KiB |
|
After Width: | Height: | Size: 18 KiB |
|
After Width: | Height: | Size: 60 KiB |
|
After Width: | Height: | Size: 24 KiB |
|
After Width: | Height: | Size: 33 KiB |
|
After Width: | Height: | Size: 35 KiB |
|
After Width: | Height: | Size: 30 KiB |
|
After Width: | Height: | Size: 28 KiB |
|
After Width: | Height: | Size: 49 KiB |
|
After Width: | Height: | Size: 40 KiB |
|
After Width: | Height: | Size: 31 KiB |
|
After Width: | Height: | Size: 25 KiB |
|
After Width: | Height: | Size: 30 KiB |
|
After Width: | Height: | Size: 22 KiB |
|
After Width: | Height: | Size: 21 KiB |
|
After Width: | Height: | Size: 18 KiB |
|
After Width: | Height: | Size: 31 KiB |
|
After Width: | Height: | Size: 23 KiB |
|
After Width: | Height: | Size: 15 KiB |
|
After Width: | Height: | Size: 17 KiB |
|
After Width: | Height: | Size: 32 KiB |
|
After Width: | Height: | Size: 17 KiB |
|
After Width: | Height: | Size: 17 KiB |
|
After Width: | Height: | Size: 135 KiB |
|
After Width: | Height: | Size: 28 KiB |
|
After Width: | Height: | Size: 23 KiB |
|
After Width: | Height: | Size: 18 KiB |
|
After Width: | Height: | Size: 20 KiB |
|
After Width: | Height: | Size: 17 KiB |
|
After Width: | Height: | Size: 40 KiB |
|
After Width: | Height: | Size: 33 KiB |
|
After Width: | Height: | Size: 38 KiB |
|
After Width: | Height: | Size: 17 KiB |
|
After Width: | Height: | Size: 11 KiB |
|
After Width: | Height: | Size: 17 KiB |
|
After Width: | Height: | Size: 20 KiB |
|
After Width: | Height: | Size: 33 KiB |
|
After Width: | Height: | Size: 39 KiB |
|
After Width: | Height: | Size: 25 KiB |
|
After Width: | Height: | Size: 18 KiB |
|
After Width: | Height: | Size: 22 KiB |
|
After Width: | Height: | Size: 20 KiB |