tracker
All repositories: gitoria
2.0 KB
// components/allshows.hl — `/shows`, `/shows/page/:page` (tracker.worldapi.org#13): EVERY show — since tracker#21 (mission// 068) only the game / reality / talk / news SHOWS (shows.hl titleKind; the series are /series, components/allseries.hl) — the// one whose newest RELEASED episode is newest first (architect: "last aired"; series with nothing released yet after them, by their own// release) — 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 /movies).parent './main.hl'import TileList from './tilelist.hl'import { appTitle } from '../project.hl'import { showsPage, catalogCounts } from '../lib/catalog.hl'import { warmReady, warmText } from '../lib/warm.hl'page = nulllisting = showsPage(&page)tiles = listing.tilespageNo = listing.pagepageCount = listing.pagescountText = catalogCounts().shows + ' shows, latest episode first · page ' + pageNo + ' of ' + pageCountbasePath = '/shows'__title = pageNo > 1 ? 'Shows, page ' + pageNo + ' — ' + appTitle : 'Shows — ' + 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 = "shows-list"if (warming) { p { id = "warming" class = "message banner" warmNote } }h1 { class = "typed" typeWord { class = "type-word type-show" "Shows" } }p { class = "muted list-count" countText }TileList { tiles = tiles page = pageNo pages = pageCount basePath = basePath }}}
Branches
Latest commits
- cd39f3d3log: hybriel#308mre
- 51341d6elog: RV39 deploy startedmre
- c9e29e06Merge branch 'rv39'mre
- 0f8d1fdclog: RV39 report, browser 387/2mre
- 50249b0bRV39: reportmre
- 10ed9581compose: HL_GC_STATS=1mre
- 955da19bRV39: re-vendor Hybriel set day39 (source 51e921d7, bin 6b481aa7)mre
- 64b8d1dclog: RV39 startedmre
- 1f2df72amission RV39mre
- 6c1936f9log+status: GC planmre
- 2846a840log: m569 result, GC hypothesismre
- b24cd2d5log: Anton on hl:fetch, mission 569mre
- 7d42cac1log+status: SL1 measured, fetch stalls remainmre
- 8e5f2ceflog: SL1 deployedmre
- 29f34212log: SL1 deploy startedmre
- 529dd741Merge sl1-slices: slice details repair and person fill (SL1)mre
- 8a83316blog: SL1 result, session drain slowermre
- 35e93e8dSL1: slice the details repair and person fill: catalog lists changed in place, 40 ms fill steps, people created in steps, writes one table per tickmre
- 72c9119flog+status: SL1 startedmre
- d74620fcmission SL1: slice repair and person fillmre