feat(drivers): country flag before the driver's name in timing, overlay, results, printouts and PDF (1.89.20)
This commit is contained in:
1 parent
da20a7e978
commit
6e45918e74
101 files changed
+2898
-45
No files matched your search
@@ -517,9 +517,22 @@ Type:
|
||||
Owns:
|
||||
- search (`filterDrivers`), sorting with empty values last (`sortDrivers`) and grouping per class (`groupDriversByClass`)
|
||||
- `removeDrivers()`: deletes drivers from the register and from every heat, participant list and team (single and bulk delete)
|
||||
- `trainingRowVisible()`: search, class and "only drivers who trained" for the training stats club table (`renderTrainingOverview` in `src/training_views.js` filters the rows in place)
|
||||
|
||||
Used by `renderDriversView` in `src/core_views.js`, which keeps the list's view settings (sort and grouping in localStorage, class filter and selection for the open page).
|
||||
|
||||
### `src/country_flags.js`
|
||||
Type:
|
||||
- pure country and flag helpers
|
||||
|
||||
Owns:
|
||||
- the country list (code, 3-letter code, Swedish and English name) and `countryCode()`, which reads the driver's free-text country ("Sverige", "Sweden", "SE", "SWE")
|
||||
- `flagHtml()`: a small `<img>` from `src/flags/` (flag-icons SVGs, MIT, in the repo so it works offline and in OBS on Windows)
|
||||
- `driverCountryCode()`: the driver's country, else one set on the same person's other class entry
|
||||
- `rowFlag(row)`: the flag for any row with `countryCode` or `driverId`; `app.js` sets the lookup once with `setDriverCountryResolver()`
|
||||
|
||||
Used by overlays, timing, Race Day, race overview, standings, start lists, the drivers' board and the driver list. PDFs get a `flags` list per table; `server/pdf_flags.js` draws them as vector shapes (stripes, Nordic crosses), and a flag it doesn't know prints as its code.
|
||||
|
||||
### `src/session_replay.js`
|
||||
Type:
|
||||
- pure transient replay logic
|
||||
|
||||
Reference in new issue
Block a user