tracker
All repositories: gitoria
1.8 KB
// components/movies.hl — `/movies`, `/movies/page/:page` (tracker.worldapi.org#13): EVERY movie, newest release first// (catalog.hl, built once at start), 24 per page, poster + title (+ year), each a link to its show page. The creator: "there// you can paginate through all sorted by release date desc poster/title only".// THE PAGE IN THE ADDRESS is a path segment, not `?page=N`: a page component cannot read the query string (hybriel#11,// its query half still open) and the browser's Back drops the query (hl:web client.hl `popstate` → `show(location.pathname)`).// The grid and the pagination: components/tilelist.hl (shared with /series and /shows). The heading is the type word in its// colour (tracker.worldapi.org#20).parent './main.hl'import TileList from './tilelist.hl'import { appTitle } from '../lib/app.hl'import { moviesPage, catalogCounts } from '../lib/catalog.hl'import { warmReady, warmText } from '../lib/warm.hl'page = nulllisting = moviesPage(&page)tiles = listing.tilespageNo = listing.pagepageCount = listing.pagescountText = catalogCounts().movies + ' movies, newest first · page ' + pageNo + ' of ' + pageCountbasePath = '/movies'__title = pageNo > 1 ? 'Movies, page ' + pageNo + ' — ' + appTitle : 'Movies — ' + appTitle// mission T17 (boot time): the server listens while bootscan.hl still builds the lists / slug maps / search index (lib/warm.hl); until the 'catalog'// stage is there this page says so instead of showing half a mapwarming = !warmReady('catalog')warmNote = warming ? warmText() : ''View {listPage { id = "movies-list"if (warming) { p { id = "warming" class = "message banner" warmNote } }h1 { class = "typed" typeWord { class = "type-word type-movie" "Movies" } }p { class = "muted list-count" countText }TileList { tiles = tiles page = pageNo pages = pageCount basePath = basePath }}}
Branches
Latest commits
- 9332bd10log: DP70 livemre
- be11daa0DP70 brief fixmre
- 886a7028DP70 brief, HM67 mergedmre
- b41cdd6dMerge hm67-searchids: packed search IDsmre
- 385904eaReport HM67 matched heap measurements and gate proofmre
- e5c9b659Pack retained search IDs into UTF-8 bytesmre
- 62a5f6c7HM67 brief, HM66 mergedmre
- b32b8440Merge hm66-catalogindex: packed catalog indexmre
- 2db0f7adReport HM66 heap measurements and validationmre
- 6ce15623Pack catalog lists and membership maps in UTF-8 bytesmre
- 71134e21HM66 briefmre
- ed4cbab2status timemre
- e982c26dlog: HM65 mergedmre
- 6e72f9d1Merge hm65-fields: episode boot scan reads three fieldsmre
- 07a5c883HM65 report measured field projection and complete validationmre
- 0eab858fRead only catalog date fields during the episode boot scanmre
- d3179273log: HM65 hl:heap vendoringmre
- cb78a1a0HM65 report missing heap diagnostic package with repromre
- 89606a5cHM65 briefmre
- 096ce0d4log: DP69 live on day48mre