gitoria

tracker

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commit3059f86c3059f86cMerge branch 'records-design-rule' into mainTracker3059f86c/components/allshows.hl

2.0 KB

  1. // components/allshows.hl — `/shows`, `/shows/page/:page` (tracker.worldapi.org#13): EVERY show — since tracker#21 (mission
  2. // 068) only the game / reality / talk / news SHOWS (shows.hl titleKind; the series are /series, components/allseries.hl) — the
  3. // one whose newest RELEASED episode is newest first (architect: "last aired"; series with nothing released yet after them, by their own
  4. // release) — catalog.hl, built once at start, 24 per page, poster + title (+ year), each a link to its show page. The creator: "there
  5. // you can paginate through all sorted by release date desc poster/title only".
  6. // THE PAGE IN THE ADDRESS is a path segment, not `?page=N`: a page component cannot read the query string (hybriel#11,
  7. // its query half still open) and the browser's Back drops the query (hl:web client.hl `popstate` → `show(location.pathname)`).
  8. // The grid and the pagination: components/tilelist.hl (shared with /movies).
  9. parent './main.hl'
  10. import TileList from './tilelist.hl'
  11. import { appTitle } from '../lib/app.hl'
  12. import { showsPage, catalogCounts } from '../lib/catalog.hl'
  13. import { warmReady, warmText } from '../lib/warm.hl'
  14. page = null
  15. listing = showsPage(&page)
  16. tiles = listing.tiles
  17. pageNo = listing.page
  18. pageCount = listing.pages
  19. countText = catalogCounts().shows + ' shows, latest episode first · page ' + pageNo + ' of ' + pageCount
  20. basePath = '/shows'
  21. __title = pageNo > 1 ? 'Shows, page ' + pageNo + ' — ' + appTitle : 'Shows — ' + appTitle
  22. // mission T17 (boot time): the server listens while bootscan.hl still builds the lists / slug maps / search index (lib/warm.hl); until the 'catalog'
  23. // stage is there this page says so instead of showing half a map
  24. warming = !warmReady('catalog')
  25. warmNote = warming ? warmText() : ''
  26. View {
  27. listPage { id = "shows-list"
  28. if (warming) { p { id = "warming" class = "message banner" warmNote } }
  29. h1 { class = "typed" typeWord { class = "type-word type-show" "Shows" } }
  30. p { class = "muted list-count" countText }
  31. TileList { tiles = tiles page = pageNo pages = pageCount basePath = basePath }
  32. }
  33. }

Branches

Latest commits

  • 3059f86cMerge branch 'records-design-rule' into mainTracker
  • 421a4809|||PR records: his-design rule (Apollo 2026-11-13)Tracker
  • d1390692Merge branch 'records-dp75b' into mainTracker
  • a4d1a7d2|||PR records: later steps checked, branch auditTracker
  • e070e16fMerge branch 'records-dp75' into mainTracker
  • 642b4fa8|||PR records: DP75 day62 live, AP62 briefTracker
  • bfc4ea4dMerge branch 'ap62' into mainTracker
  • 2c95ac46|||PR AP62: re-vendor Hybriel set day62 (source 70341ad2, bin a54f5f08)Tracker
  • b9c7c3c8Merge branch 'records-dp74' into mainTracker
  • 85cfb4ae|||PR records: AP61 day61, DP74 liveTracker
  • b1496147Merge branch 'ap61' into mainTracker
  • 2047955bMerge branch 'u12-gateports' into mainTracker
  • c8da40f3|||PR AP61: re-vendor Hybriel set day61 (source a05af47c, bin a11042e5)Tracker
  • 4e018678|||PR deploy.sh: gates use Tracker's ports 8716-8719 and LC_ALL=C; README: 2 backups keptTracker
  • 0b86324aMerge branch 'records-dp73' into mainTracker
  • 9ce5f59b|||PR records: DP73 live 613ae0e; deploy.sh keeps 2 backupsTracker
  • 613ae0ecMerge branch 'bs3' into mainTracker
  • 1383264b|||PR BS3: keep shared synchronous sorting fastTracker
  • 63e5ba1a|||PR BS3: guard boot imports and share resumable sort buffersTracker
  • 310613f1Merge branch 'records-dp72' into mainTracker