gitoria

tracker

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commitb5357ac4b5357ac4Pack the people order and release completed startup arraysmreb5357ac4/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 '../project.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

  • b5357ac4Pack the people order and release completed startup arraysmre
  • 2e7d6257log: HM1 startedmre
  • 2f790465mission HM1: heap object breakdownmre
  • a18957falog: evening re-measure after CBmre
  • aac9a98dlog: evening re-measure startmre
  • 45163bd4log: person/tmdb error hypothesismre
  • cb38de2blog: swap 503 causemre
  • fd10c3d5log: CB livemre
  • 7557c025log: CB deploy try 2mre
  • 06a7534aMerge branch 'cb'mre
  • 2f8030d6log: CB gates greenmre
  • 498bf644log: CB gates startmre
  • f59c2847gc1: bound the five request caches (shows.hl cacheLimit)mre
  • 6ea2c6d6log: morning re-measure 11-04mre
  • 446290f0log: GC1 livemre
  • 8e6aa91dlog: GC1 deploy retrymre
  • 87ad2dc1log: GC1 deployingmre
  • 53f10fb8Merge branch 'gc1-deploy'mre
  • 7fcbf1d2log: GC1 deploy GOmre
  • 1fb6664bcompose: TRACKER_QSTATS=1 (GC1 measurement)mre