gitoria

tickets

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Main branchmain5d144817Merge branch 'records-t40' into mainTicketsmain/components/problem.hl

1.0 KB

  1. // components/problem.hl — `/login/failed/:why` and `/connect/failed/:why` (tickets#42): WHY A LOGIN OR A CONNECTION REQUEST DID NOT WORK, inside the normal shell
  2. // (header, the ident selector, theme). The function routes /login/callback and /connect only decide and redirect here (lib/api.hl); the reason is
  3. // a short code in the path, the sentence comes from lib/problems.hl (a page component cannot read a query string, hybriel#11, so the code is a path
  4. // segment). The page itself answers 200.
  5. parent './main.hl'
  6. import { problemOf } from '../lib/problems.hl'
  7. import { siteName } from '../project.hl'
  8. import { messageLook } from '../lib/looks.hl'
  9. why = null
  10. shown = problemOf(why)
  11. heading = shown.title
  12. sentence = shown.text
  13. backHref = shown.back
  14. backText = shown.backText
  15. __title = siteName + ' | ' + shown.title
  16. Style {
  17. pMessage = messageLook + { }
  18. problemPage { display = 'grid' gap = '1rem' maxWidth = '38rem' }
  19. }
  20. View {
  21. problemPage {
  22. h1 { id = "problemtitle" heading }
  23. p { id = "error" Style.pMessage sentence }
  24. p { a { id = "home" href = backHref backText } }
  25. }
  26. }

Branches

Latest commits

  • 5d144817Merge branch 'records-t40' into mainTickets
  • 44ee6f06|||PR records: #43 #45 livemre
  • b8fdeee9Merge branch 'p39-routes' into mainTickets
  • a0187a0a|||PR Remove redundant route-order loopmre
  • 369e4b9cMerge branch 'k40-lists' into mainTickets
  • 9af8e780|||PR Use keyed list mutations for live ticket updatesmre
  • 610d8e8aMerge branch 'records-t39' into mainTickets
  • 32bcdf24|||PR records: GO P39 K40mre
  • 4123c6d1Merge branch 'records-t38' into mainTickets
  • cd3641a1|||PR records: day72 deploy live, tickets closedmre
  • 7d44d852Merge branch 'records-t37' into mainTickets
  • 926f7061|||PR records: merges, D36 deploymre
  • bf58534eMerge branch 'l33-final' into mainTickets
  • 759a9ac3|||PR thin login (tickets#46, #45): merge main, route entry cleanupmre
  • 239436d8Merge remote-tracking branch 'origin/main' into l33-finalmre
  • 5822cb3aMerge branch 'o34-clean' into mainTickets
  • 0870653c|||PR offline note from __hlOnline, no polling (tickets#41)mre
  • 14cf96b4Merge branch 'records-t36' into mainTickets
  • 07749fa1|||PR records: day72 + #40 mergedmre
  • ecd7e226|||PR Consolidate login and move handler logic into topic libraries (partial)mre