@wral/hsot-data 0.4.0 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +20 -4
- package/dist/define.mjs +1 -1
- package/dist/define.standalone.js +759 -694
- package/dist/{hsot-brackets-Bqk0gI3J.js → hsot-brackets-D3mrvZfC.js} +507 -442
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -9,7 +9,7 @@ exactly one of these elements.
|
|
|
9
9
|
|
|
10
10
|
| Component | Page | Key attributes |
|
|
11
11
|
|---|---|---|
|
|
12
|
-
| `<hsot-scores>` | Scores/Schedules (the scoreboard; future dates are schedules) | `sport`, `date` (YYYY-MM-DD, deep-linkable via `?date=`; defaults to the closest matchday: today when games are on, otherwise the previous one), `season`, `refresh-interval` |
|
|
12
|
+
| `<hsot-scores>` | Scores/Schedules (the scoreboard; future dates are schedules): an All Games list or a Conferences view, filterable by area code | `sport`, `date` (YYYY-MM-DD, deep-linkable via `?date=`; defaults to the closest matchday: today when games are on, otherwise the previous one), `view` (`all` or `conferences`, `?view=`), `area-code` (`?area=`), `season`, `refresh-interval` |
|
|
13
13
|
| `<hsot-standings>` | Standings, every conference for a sport | `sport`, `gender` (one side of a gendered sport), `season` |
|
|
14
14
|
| `<hsot-rankings>` | The weekly Top 25 with movement + rank history | `sport`, `gender` (poll family), `season`, deep link `?poll=YYYY-MM-DD` |
|
|
15
15
|
| `<hsot-school>` | School hub: hero, team tabs, schedule, roster (headed by the season's roster photo when one is set; positions render as a list, "WR/CB"; a College column appears when a player carries a commitment), honors | `school-id`, `sport` + `gender` (initial tab, deep links `?sport=` / `?gender=`), `season` |
|
|
@@ -20,9 +20,25 @@ exactly one of these elements.
|
|
|
20
20
|
The live status pill on every component reads the game clock beside the
|
|
21
21
|
period when the desk has typed one ("Live · 3Q 6:54", api-hsot v1.13.0-draft).
|
|
22
22
|
|
|
23
|
-
`hsot-scores`
|
|
24
|
-
|
|
25
|
-
|
|
23
|
+
`hsot-scores` has two views of a date's games (DEV-1303,
|
|
24
|
+
`src/lib/scoreboard.mjs`):
|
|
25
|
+
|
|
26
|
+
- **All Games** (the default): one list, matchups featuring ranked teams
|
|
27
|
+
first (#1 at the top, using the poll in effect on the game date), then
|
|
28
|
+
every other game A → Z by the road team's school. The order ignores game
|
|
29
|
+
state, so the alphabetical list doesn't reshuffle as games go live and
|
|
30
|
+
final through the night.
|
|
31
|
+
- **Conferences view**: grouped by conference (Nonconference, Playoffs and
|
|
32
|
+
Scrimmages as their own groups), live games first, then ranked matchups,
|
|
33
|
+
then the rest in schedule order.
|
|
34
|
+
|
|
35
|
+
Area-code chips (the `areaCode` on each school profile) narrow either view
|
|
36
|
+
to games where **either** school is in that area, so a 919-at-704 game shows
|
|
37
|
+
under both. The chips list the codes the sport's schools carry; a school
|
|
38
|
+
with no area code set matches no area. Picking a view or an area writes
|
|
39
|
+
`?view=` / `?area=` back to the URL (`history.replaceState`), so a filtered
|
|
40
|
+
scoreboard can be shared; the date is not written back, so a bookmarked page
|
|
41
|
+
still opens on the closest matchday.
|
|
26
42
|
|
|
27
43
|
Shared attributes on every data component (`hsot-school-search` takes only
|
|
28
44
|
`api` and `school-href`):
|
package/dist/define.mjs
CHANGED