gitoria

tracker

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commitfec2e080fec2e080|||PR records: STATUS HM55Trackerfec2e080/components/movies.hl

1.8 KB

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

Branches

Latest commits

  • fec2e080|||PR records: STATUS HM55Tracker
  • 8e174918Merge branch 'records-hm55b' into mainTracker
  • b1ecee57|||PR records: HM55 stateTracker
  • 28eab08cMerge branch 'records-hm55' into mainTracker
  • d3edaa05|||PR records: HM55 start, PROCEDURES.mdTracker
  • 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