gitoria

tracker

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commit415487c1415487c1SK: import budget per user + id type check, gate checkssk415487c1/components/franchises.hl

1.9 KB

  1. // components/franchises.hl — `/franchises` (tracker.worldapi.org#19, mission 066): every franchise (→ its index), then the
  2. // timelines that belong to none (most of them TMDB's movie collections, collections.hl seed), each with its number of titles.
  3. // The creator sees an "Edit" link to the editor (/franchises/edit). Data: franchises.hl franchiseIndex.
  4. parent './main.hl'
  5. import { appTitle } from '../project.hl'
  6. import { franchiseIndex, isEditorSession } from '../lib/franchises.hl'
  7. // static: an mpackdb-backed helper must be `static` (hybriel#115/#116), and LOCAL (mission 047)
  8. static indexOf = () => { return franchiseIndex() }
  9. static editorOf = (&session) => { return isEditorSession(session) }
  10. session = null
  11. canEdit = editorOf(session)
  12. listing = indexOf()
  13. franchiseRows = listing.franchises
  14. timelineRows = listing.timelines
  15. hasFranchises = franchiseRows.length > 0
  16. noFranchises = franchiseRows.length == 0
  17. hasTimelines = timelineRows.length > 0
  18. timelineCountText = timelineRows.length == 1 ? '1 timeline without a franchise' : timelineRows.length + ' timelines without a franchise'
  19. __title = 'Franchises — ' + appTitle
  20. View {
  21. franchisesPage {
  22. franchisesHead {
  23. h1 { class = "typed" typeWord { class = "type-word type-franchise" "Franchises" } }
  24. if (canEdit) { a { id = "franchises-edit" class = "button" href = "/franchises/edit" "Edit" } }
  25. }
  26. if (noFranchises) { p { class = "muted" "No franchises yet." } }
  27. if (hasFranchises) {
  28. franchiseList { id = "franchise-list"
  29. for (f of franchiseRows) {
  30. a { class = "franchise-row" href = f.href
  31. franchiseName { f.name }
  32. franchiseCount { f.countText }
  33. }
  34. }
  35. }
  36. }
  37. if (hasTimelines) {
  38. h2 { class = "film-heading" "Timelines" }
  39. p { class = "muted list-count" timelineCountText }
  40. timelineList { id = "timeline-list"
  41. for (t of timelineRows) {
  42. a { class = "timeline-link" href = t.href
  43. timelineLinkName { t.name }
  44. timelineLinkCount { t.countText }
  45. }
  46. }
  47. }
  48. }
  49. }
  50. }

Branches

Latest commits

  • 415487c1SK: import budget per user + id type check, gate checkssk
  • 7b8a4f74security audit SK: nosniff + image sandbox headers, face id checks, adult follow, login budget + new session at login, guest-link budget, tests/security.mjssk
  • f0f26c5areports: T18 section (gates, boot-gate, 3x3 table, search + short-id compare)mre
  • 2a8682a1deploy.sh GATES: tests/warmstart.mjsmre
  • 3761338breports/T17-boot.md: handoff (phase table, fix, numbers so far, open proof)mre
  • 52e09eb2boot: sync window 1000 ms (the gates ask for a complete start), README boot-time sectionmre
  • c87149e8tests/warmstart.mjs: the progressive start proven over HTTP (note in the window, 503 short id, after: everything); bootBeginmre
  • 593a6350boot: resumable start-up scan, the server listens first (T17)mre
  • be4890a0reports: H2 hydration audit (no test change needed)mre
  • 1f9c8bf4re-vendor Hybriel 5406d146 (hl:web batches 9+10: #72 emits while the socket is closed delivered after reconnect, browser boot linear, faster list appends; contains int 6–14 + m406)mre
  • c1df88eddocker-compose: HL_GC_TABLE_LOAD=62 (tracker mission 048, T16 real-data numbers)mre
  • d0a82867mission 048: report, LOG (HL_GC_TABLE_LOAD=62 measured)mre
  • 2d4be66fre-vendor Hybriel 5df4eb7e (GC: HL_GC_TABLE_LOAD knob, mission 406)mre
  • 99e7c8b9tests: realdata-m035-radii, repro-t38, realdata-060-backfill ports from env (REAL_PORT, REAL_CHROME, REPRO_CHROME), defaults unchangedmre
  • 4625aa22re-vendor Hybriel 6f8a0689 (int 6–11: streaming cursors, #203 index heal + close() fix, fd403 listDir/cursor fds, hl:time browser side, hl:web batches 5+6)mre
  • a6dfd6ecdeploy: person-lookup gate (tracker#46)mre
  • 33ad4bd5Merge commit 'f57f64f'mre
  • 7d38cec4docker-compose: nofile 65536 (default soft 1024 refused boot: errno 24 in fs.listDir, Hybriel 528bc89f)mre
  • f57f64f0mission 046: report, LOGmre
  • 5965963adeploy: backup copies index files first and *.mpack data last (hot-copy skew, hybriel #203)mre