tracker
All repositories: gitoria
1.3 KB
// components/tilelist.hl — the poster grid + pagination of /movies and /shows (tracker.worldapi.org#13), composed by// components/movies.hl and components/allshows.hl: `TileList { tiles = … page = … pages = … basePath = '/movies' }`.// A tile: poster, title, year, a link to the show page. Page 1 is `basePath`, page n `basePath/page/n`. `tileClass` (tracker#37):// /people's tiles are "tile person-tile" (photo, the name in the person colour, no year).// The pagination is the shared copy (components/pagination.hl, layouts 76f99f6): it hands the clicked target page to `onPage`// (tracker#38 is solved there — no listener around it reading a button's text). `goPage` navigates client-side: the shell stays.import { navigate } from 'hl:web'import Pagination from './pagination.hl'tiles = []page = 1pages = 1basePath = '/'tileClass = 'tile'// one page only: no pagination at all (a lone "1" says nothing)hasPages = pages > 1goPage = (to) => { navigate(to == 1 ? basePath : basePath + '/page/' + to) }View {tileList {tileGrid {for (t of tiles) {a { class = tileClass href = t.hrefimg { class = "tile-poster" src = t.posterUrl alt = t.title loading = "lazy" }tileTitle { t.title }tileYear { t.year }}}}if (hasPages) {pagerBox { Pagination { pages = pages page = page onPage = goPage } }}}}
Branches
Latest commits
- 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
- 5d542d73log+status: ST1 resultmre
- 3945eb81ST1: stall diagnosis reportmre
- 404733aclog: ST1 startedmre
- 3e3d5a55mission ST1: stall diagnosismre
- 9c3180eblog+status: RV28d measured after deploymre
- fdf10b1alog: RV28d deployed on day38bmre
- 320005e9log: RV28d merged, deploy runningmre
- a8fef27dRV28d: reportmre
- 2bae8373RV28d: re-vendor Hybriel set day38b (source 1e554d75, bin 5ff2a46d)mre
- 16b3354aMerge branch 'main' into rv28cmre
- 6f4f27d8log: RV28d started (day38b)mre
- e6cf03ffmission RV28d: rv28c onto day38bmre
- 3ccaee19status: live sweep freeze, waiting for Apollomre
- 49f76ecblog: watch toggle slowness = session sweep freeze (tracker#50)mre
- 3daf6eddlog: day37 live, still waiting for day39mre