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 '../project.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
- 6da612fclog: T36A tool defectmre
- 08e55255log: HM56 done, T36A startedmre
- 5fd2ac75status: #36 GOmre
- 0d253b45mission: T36Amre
- 2aa22d23log: #36 GOmre
- 833aee2flog: #50 closed, HM56 startedmre
- ac58c1e5mission: HM56mre
- 58979c0clog: HM54 held for decision, DP65 startedmre
- bb2ebc67log: #64 live, #53 mergedmre
- 27cde42fMerge hm53-dom: tracker#53 inputs bound to membersmre
- 2156cc7flog: HM54 reviewmre
- 9fb82efclog: HM54 gap, fill continuesmre
- b632eb8dlog: HM53 done, HM54 startedmre
- ccb1a263tracker#53: bind editor drafts and use key event focus targetmre
- 3356fcfclog: #52 blocked, HM53 startedmre
- 833dcfc9Merge hm52-search: report only, tracker#52 blocked by framework gapmre
- 73010cc0HM52: report replace-navigation search draft regressionmre
- 1742e92bstatus: DP64 and HM52 runningmre
- 29ad5b58log: #64 merged, DP64 and HM52 startedmre
- fafddbf9Merge hm64-catalog: tracker#64 catalog from packed entriesmre