gitoria

calendar

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commit9bf3c38b9bf3c38bcalendar mission 008: re-vendor Hybriel f9833544 (gates old = new); Web Push stopped: hl:crypto half missing on mastermre9bf3c38b/theme/shell/main-menu.hl

2.1 KB

  1. // main-menu.hl — THE MAIN MENU: the app's top-level links, `Series | Shows | Movies` (docs/layouts/main-menu.md).
  2. // Write it twice from ONE list: in the header (shown from 60rem) and in the sidebar (shown on the phone, where the
  3. // header has no room). The link whose href is `current` (or a page below it) is marked: class `current` and
  4. // aria-current="page".
  5. //
  6. // static menu = [ { label = 'Series' href = '/series' } { label = 'Movies' href = '/movies' } ]
  7. // AppHeader { MainMenu { items = menu current = "/series" } }
  8. // Sidebar { desktop = "false" MainMenu { items = menu current = "/series" } }
  9. Hybrid items = []
  10. String current = ''
  11. String label = 'Main menu'
  12. Hybrid rows = build(items, current)
  13. // one row per link: the current one (the page itself or a page below it) is marked
  14. build(list, at) {
  15. out = []
  16. for (it of list) {
  17. let here = at == it.href || (it.href != '/' && at.startsWith(it.href + '/'))
  18. out.push({ label = it.label href = it.href cls = here ? 'current' : '' aria = here ? 'page' : 'false' })
  19. }
  20. return out
  21. }
  22. Style {
  23. 'main-menu' { display = 'block' }
  24. 'main-menu a' { display = 'flex' alignItems = 'center' minHeight = 'var(--layout-tap)' padding = '.55rem .75rem' fontWeight = '600' color = 'var(--color-text)' borderRadius = 'var(--radius-small)' }
  25. 'main-menu a:hover' { textDecoration = 'none' color = 'var(--color-text-strong)' background = 'var(--color-surface)' }
  26. 'main-menu a.current' { color = 'var(--color-accent)' }
  27. // in the header: only from 60rem, the links in a row
  28. 'application-header main-menu' { display = 'none' }
  29. // in the sidebar: only on the phone, the links stacked
  30. 'app-sidebar main-menu' { marginBottom = '1rem' }
  31. '@media (min-width: 60rem)' {
  32. 'application-header main-menu' { display = 'block' marginLeft = 'auto' }
  33. 'application-header main-menu nav' { display = 'flex' gap = '.15rem' }
  34. 'application-header main-menu a' { minHeight = '2.25rem' padding = '.45rem .7rem' }
  35. 'app-sidebar main-menu' { display = 'none' }
  36. }
  37. }
  38. View {
  39. mainMenu {
  40. nav { 'aria-label' = label
  41. for (r of rows) { a { href = r.href class = r.cls 'aria-current' = r.aria r.label } }
  42. }
  43. }
  44. }

Branches

Latest commits

  • 9bf3c38bcalendar mission 008: re-vendor Hybriel f9833544 (gates old = new); Web Push stopped: hl:crypto half missing on mastermre
  • 186f969bcalendar mission 007: signed-in gate for the first-pointer race (fails on 3c5604f), README theme section, reportmre
  • ba9b4955calendar mission 006: first pointer event no longer re-runs the month (stale overwrite race), gate check, e2e settings cleanup, reportmre
  • bd730759calendar mission 006: theme move (WIP): brief, report, LOG, STATUSmre
  • b117b153calendar mission 006 WIP: reminder row fields keep 44 px; e2e script flagsmre
  • 53e3b0debrowser gate: Log out through the user menu, theme colour rgb(15, 20, 25)mre
  • 90bf9e2ecalendar mission 006 WIP: theme dbe3de7, theme shell (AppHeader/MainMenu/UserMenu/Sidebar/ContentFirst), styles cut to the app's own rules, check-theme gate, e2e toolsmre
  • 3c5604f9identkit: refuse a taken ident port, cold-start deadline, abort on dead ident, clear no-code error (as notes)mre
  • 4996bbe7paths: projects moved into /media/STORAGE/projects/WorldAPI/mre
  • f5bf0803calendar mission 004: re-vendor Hybriel to the shared static build 0f396652; compose cache volume + tmpfs; notify-paths gate in deploy.sh; gate start waits 150 s; reportmre
  • eb86526fmission brief 004mre
  • 2f953b16deploy.sh: wait up to DEPLOY_URL_WAIT (120 s) for 200 after the restart, as the other apps (cold compile, hybriel#148)mre
  • 9078e1b7calendar mission 003 (2/2): report, LOG, STATUS (cause: timers only in an open, front, touched page; gate old 5/2 new 7/0; Hybriel gaps Web Push + page-shown hook, STOP)mre
  • 31ffe910calendar mission 003 (1/2): calendar#9 — missed reminders shown when the app is back, timers set again when it is shownmre
  • 26c997d3mission brief 003mre
  • c6809c76calendar mission 002: report, LOG, STATUS (test bug; fixed gate 78/0 at 00:30 05:40 12:00 19:59 20:01; 23:30 not run, quota stop)mre
  • 00f72783calendar mission 002 (2/2): TEST bug — the reminder steps get their own identity (carol): alice's all-day Vacation (20th-22nd) from the events steps added 2 reminders from the 12th 20:00 to the 19th 23:00; Tokyo check no longer skipped in the Tokyo eveningmre
  • 54fb0ce1calendar mission 002 (1/2): gate clock override GATE_CLOCK=HH:MM (this process and every page get Date shifted to that local time today)mre
  • c838ee79mission brief 002mre
  • f2bc67ecdocker-compose: init: true (hybriel#156, PID 1 ignored SIGTERM, every restart waited 10 s)mre