gitoria

gitoria

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commitaafe330daafe330dTidy: drop evidence JSON (kept in scratch), collapse blank linesmreaafe330d/components/pull-reply.hl

759 B

  1. // COMPONENTS.md §12: own state per component, row props in, bound functions out.
  2. threadId = ''
  3. toggleLabel = ''
  4. nextState = false
  5. sendReply = null
  6. resolveThread = null
  7. body = ''
  8. View {
  9. form {
  10. on submit(e) {
  11. e.preventDefault()
  12. if (sendReply(threadId, body)) { body = '' }
  13. }
  14. label { "Reply"
  15. textarea { name = "body" rows = "3" maxlength = "65536" required = "required" value = body on input(e) { body = e.target.value } }
  16. }
  17. button { type = "submit" "Reply" }
  18. button { class = "quiet" type = "button" toggleLabel on click() { resolveThread(threadId, nextState) } }
  19. }
  20. }
  21. // Restrict layout to this HTML form; a bare form rule would affect every app form.
  22. Style {
  23. #form {
  24. display = 'grid'
  25. gap = '.5rem'
  26. justifyItems = 'start'
  27. }
  28. }

Branches

Latest commits

  • aafe330dTidy: drop evidence JSON (kept in scratch), collapse blank linesmre
  • aca1fda1Merge W61: theme from layouts 17e0f03, Views refer to Style rules (gitoria#37 #27)mre
  • 03cb650blog: W61 theme decisionmre
  • 248bce85Report final style gates, CSS mappings and 136 whole-image comparisonsmre
  • 153c344bRestore organization metadata exposed by the whole-image comparisonmre
  • 917a1465Update status gate assertions for the referenced state rulemre
  • 3cdb02c6Own settings feedback styles and explain connection-state classesmre
  • 00d5d6c4Reference code-entry styles and nest code-browser media and pseudosmre
  • 3c425eddReference PR content styles and explain dynamic state classesmre
  • e46fa222Own shell feedback styles and retain documented selector formsmre
  • c26084c4Reference repository list styles and nest its breakpointmre
  • f3e196b5Document Markdown direct-child selector remaindersmre
  • 70597528Reference pull list rules and explain runtime class predicatesmre
  • 1ce7ac24Reference ticket row and feedback styles from its Viewmre
  • 10cdf54bGive organization repository rows their own Style referencesmre
  • 0d019521Document shared class selectors in the styles-only filemre
  • c67404a7Scope token labels and feedback through the token Viewmre
  • 944e3dabScope key names, fingerprints and errors to the keys Viewmre
  • 7bcf7bc2Nest repo navigation media rules and document selector gapsmre
  • 46a76272Reference release row styles from the Viewmre