gitoria

layouts

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commita3eda8afa3eda8afRe-vendor Hybriel master 7a684920 (binary 74ab3715): plugins whole, startup fault exits 1; files-upload gate 340/0mrea3eda8af/components/comments/comments.hl

22.0 KB

  1. // comments.hl — THE COMMENTS BLOCK (layouts#2; shape of hybriel's demo-social-network), pure Hybriel: "1 comment" / "n comments",
  2. // then every comment — an avatar (the initial), a bubble with the name, the time, "edited" (the earlier versions fold out) and the
  3. // text as formatted Markdown; under it a like (♥ and the count) and, for the comment's author, Edit / Delete — and the form below,
  4. // typed in the Markdown editor (components/md-editor). `Comments { comments = list user = me onPost = posted onEdit = edited
  5. // onDelete = deleted onLike = liked }`.
  6. // GENERIC: no app data, no storage. The host passes the comments (a list of records, below) and the current user's name, and
  7. // hands four functions (hybriel#87: a child talks upward by calling a function its host gives it); the host decides what is
  8. // stored and gives a new list back — the block shows what it is given. A comment record:
  9. // { id, author, when, text (Markdown), likes (a number), liked (true when `user` likes it), history ([{ when, text }], the
  10. // earlier versions, oldest first; empty = never edited) }
  11. // Edit / Delete show where `author == user`; with `user` empty there is no form and the like does nothing.
  12. // The text is drawn by MdEditor's own renderer (`readonly = "true"`). The editor builds its content in the browser once per element;
  13. // hl:web builds a composed child anew when a value bound into it changes, so a changed text (an edit here, or a new list from a push)
  14. // is drawn anew, and the rows are keyed by `id`, so a deleted comment takes its own editor with it.
  15. // The per-comment state (which one is being edited / asked to be deleted) is one member each: one block per page (a composed
  16. // component's members are the page's state).
  17. // ATTACHMENTS (mission 009, tickets#27): a comment record may carry `files` ([{ name, url, image (true = a picture), size (bytes) }]):
  18. // pictures show as thumbnails that open the full picture, any other file as a row (kind, name, size); a file without `url` (the
  19. // viewer may not fetch it) shows as a row without a link. `attach = "true"` puts the form inside the shared FilesUpload in pick mode
  20. // (components/files-upload/): files dropped, chosen, photographed or pasted (Ctrl+V, also into the editor: its files = "off") wait
  21. // as thumbnails / rows under the editor, and the host hears them with the text: `onPost(text, files)` (browser Files — the host sends
  22. // them with its own face; the framework uploads them first). Without `attach` nothing changes: `onPost(text)`.
  23. // A STATE CHANGE IN THE FORM'S FOOTER (tickets UX mission): `states = [{ value, label }]` (the host's choices, the current one left out) puts
  24. // `State [select]` in front of the post button, right side of the form's footer; the select starts on "no change". The button says what
  25. // happens: "Comment" (text or files, no state), "Set to <state>" (a state and nothing to say), "Comment and set to <state>" (both). The
  26. // host hears `onPost(text, files, state)` (state '' = unchanged; the third argument only comes when `states` is not empty).
  27. import MdEditor from '../md-editor/md-editor.hl'
  28. import FilesUpload from '../files-upload/files-upload.hl'
  29. Hybrid comments = []
  30. String user = ''
  31. onPost = null
  32. onEdit = null
  33. onDelete = null
  34. onLike = null
  35. String oneLabel = 'comment'
  36. String manyLabel = 'comments'
  37. String emptyText = 'No comments yet.'
  38. String placeholder = 'Write a comment…'
  39. String postLabel = 'Comment'
  40. String editLabel = 'Edit'
  41. String deleteLabel = 'Delete'
  42. String saveLabel = 'Save'
  43. String cancelLabel = 'Cancel'
  44. String askText = 'Delete this comment?'
  45. String keepLabel = 'Keep'
  46. String editedLabel = 'edited'
  47. String likeLabel = 'Like'
  48. String signInText = ''
  49. // attachments in the form (above): "true" turns them on; the size limit per file (bytes, 0 = none) and the chooser's `accept`
  50. String attach = 'false'
  51. Number maxFileSize = 0
  52. String accept = ''
  53. String attachText = 'Drop or paste files here, or'
  54. String chooseText = 'Choose files'
  55. String cameraText = 'Camera'
  56. String filesLabel = 'Attachments'
  57. // the state choice in the footer (`states` empty = none): its label, the first choice, and what the button says with a state chosen
  58. Hybrid states = []
  59. String stateLabel = 'State'
  60. String keepText = 'no change'
  61. String stateOnlyLabel = 'Set to'
  62. String bothLabel = 'Comment and set to'
  63. String editingId = ''
  64. String askingId = ''
  65. Number formSeq = 0
  66. Hybrid shown = rowsOf(comments, user, editingId, askingId)
  67. String countText = countOf(comments)
  68. Boolean hasNone = comments.length == 0
  69. Boolean canWrite = user != ''
  70. Boolean cannotWrite = user == '' && signInText != ''
  71. Hybrid forms = [{ id = 'new-' + formSeq }]
  72. // the files waiting in the form (browser Files, the FilesUpload's list: this block is its host) — sent with the next post
  73. Hybrid attached = []
  74. Boolean attaching = canWrite && attach == 'true'
  75. Boolean plainForm = canWrite && attach != 'true'
  76. picked = (list) => { attached = list }
  77. // the state select's choice ('' = no change) and whether the editor holds any text: they decide what the post button says
  78. String chosen = ''
  79. Boolean typed = false
  80. Hybrid choices = choicesOf(states)
  81. Boolean stating = canWrite && states.length > 0
  82. String buttonText = buttonOf(typed, attached, chosen, states)
  83. // the select's choices: "no change" first, then the host's states
  84. choicesOf(list) {
  85. out = [{ value = '' label = keepText }]
  86. for (o of list) { out.push({ value = '' + o.value label = '' + o.label }) }
  87. return out
  88. }
  89. // what the post button says: "Comment", "Set to review" (only a state), "Comment and set to review" (text or files and a state)
  90. buttonOf(hasText, files, state, list) {
  91. if (state == '') { return postLabel }
  92. let name = state
  93. for (o of list) { if ('' + o.value == state) { name = '' + o.label } }
  94. return ((hasText || files.length > 0) ? bothLabel : stateOnlyLabel) + ' ' + name
  95. }
  96. // "1 comment", "n comments"
  97. countOf(list) { return list.length == 1 ? '1 ' + oneLabel : list.length + ' ' + manyLabel }
  98. initialOf(name) {
  99. t = ('' + name).trim()
  100. return t == '' ? '?' : t.slice(0, 1).toUpperCase()
  101. }
  102. // "5 B", "1.2 KB", "3.4 MB" — whole numbers only (rounded to tenths by hand: the server side has no toFixed, hybriel#182)
  103. sizeTextOf(n) {
  104. if (n == null || n < 0) { return '' }
  105. if (n < 1024) { return n + ' B' }
  106. if (n < 1048576) { return tenthsOf(n, 1024) + ' KB' }
  107. return tenthsOf(n, 1048576) + ' MB'
  108. }
  109. tenthsOf(n, unit) {
  110. x = n * 20 + unit
  111. t = (x - x % (2 * unit)) / (2 * unit)
  112. return (t - t % 10) / 10 + '.' + t % 10
  113. }
  114. // "PNG", "PDF": the box a file row shows
  115. kindOf(name) {
  116. t = '' + name
  117. dot = t.lastIndexOf('.')
  118. return dot > 0 && dot < t.length - 1 ? t.slice(dot + 1, dot + 5).toUpperCase() : 'FILE'
  119. }
  120. // what each attached file of a comment shows: a thumbnail (a picture the viewer may fetch), a linked row, or a plain row (no url)
  121. filesOf(list) {
  122. out = []
  123. if (list == null) { return out }
  124. for (f of list) {
  125. let url = f.url != null ? '' + f.url : ''
  126. let thumb = f.image == true && url != ''
  127. out.push({ name = f.name url = url size = sizeTextOf(f.size) kind = kindOf(f.name) thumb = thumb linked = !thumb && url != '' plain = url == '' })
  128. }
  129. return out
  130. }
  131. // what one comment shows: the host's record, and what this block works out for the user looking
  132. rowsOf(list, me, editing, asking) {
  133. out = []
  134. for (c of list) {
  135. let mine = me != '' && c.author == me
  136. let past = c.history != null ? c.history : []
  137. let count = c.likes != null ? c.likes : 0
  138. let isEditing = mine && '' + c.id == editing
  139. let isAsking = mine && '' + c.id == asking && !isEditing
  140. let attachedFiles = filesOf(c.files)
  141. out.push({
  142. id = '' + c.id
  143. author = c.author
  144. initial = initialOf(c.author)
  145. when = c.when != null ? c.when : ''
  146. text = c.text
  147. likes = count
  148. likeText = (c.liked == true ? '♥ ' : '♡ ') + count
  149. pressed = c.liked == true ? 'true' : 'false'
  150. edited = past.length > 0
  151. history = past
  152. editedTitle = past.length == 1 ? 'Edited once' : 'Edited ' + past.length + ' times'
  153. mine = mine
  154. editing = isEditing
  155. notEditing = !isEditing
  156. asking = isAsking
  157. offering = mine && !isEditing && !isAsking
  158. files = attachedFiles
  159. hasFiles = attachedFiles.length > 0
  160. })
  161. }
  162. return out
  163. }
  164. View {
  165. commentsBlock {
  166. h2 { class = "comments-count" countText }
  167. if (hasNone) { p { class = "comments-empty" emptyText } }
  168. ol { class = "comment-list"
  169. for (c of shown) {
  170. li { class = "comment" 'data-id' = c.id
  171. commentAvatar { 'aria-hidden' = "true" c.initial }
  172. commentMain {
  173. commentBubble {
  174. commentMeta {
  175. strong { class = "comment-author" c.author }
  176. time { c.when }
  177. if (c.edited) { details { class = "comment-history"
  178. summary { editedLabel }
  179. p { class = "comment-history-title" c.editedTitle }
  180. ol { for (h of c.history) { li { time { h.when } pre { h.text } } } }
  181. } }
  182. }
  183. if (c.notEditing) { MdEditor { name = "comment-text" value = c.text readonly = "true" } }
  184. if (c.editing) { form { class = "comment-edit" 'data-id' = c.id on submit(e) { emit commentsSave(e) }
  185. MdEditor { name = "comment-edit" value = c.text }
  186. commentButtons {
  187. button { type = "button" class = "comment-cancel" cancelLabel on click(e) { emit commentsCancel(e) } }
  188. button { type = "submit" class = "comment-save" saveLabel }
  189. }
  190. } }
  191. if (c.hasFiles) { ul { class = "comment-files" 'aria-label' = filesLabel
  192. for (f of c.files) { li {
  193. if (f.thumb) { a { class = "comment-thumb" href = f.url target = "_blank" rel = "noopener" title = f.name
  194. img { src = f.url alt = f.name loading = "lazy" }
  195. } }
  196. if (f.linked) { a { class = "comment-file" href = f.url target = "_blank" rel = "noopener"
  197. span { class = "kind" 'aria-hidden' = "true" f.kind }
  198. fileInfo { strong { class = "name" f.name } span { class = "size" f.size } }
  199. } }
  200. if (f.plain) { span { class = "comment-file"
  201. span { class = "kind" 'aria-hidden' = "true" f.kind }
  202. fileInfo { strong { class = "name" f.name } span { class = "size" f.size } }
  203. } }
  204. } }
  205. } }
  206. }
  207. commentActions {
  208. button { type = "button" class = "comment-like" 'data-id' = c.id 'aria-pressed' = c.pressed title = likeLabel c.likeText on click(e) { emit commentsLike(e) } }
  209. if (c.offering) {
  210. button { type = "button" class = "comment-edit-start" 'data-id' = c.id editLabel on click(e) { emit commentsEdit(e) } }
  211. button { type = "button" class = "comment-delete" 'data-id' = c.id deleteLabel on click(e) { emit commentsAsk(e) } }
  212. }
  213. if (c.asking) { commentAsk {
  214. span { askText }
  215. button { type = "button" class = "comment-delete-yes" 'data-id' = c.id deleteLabel on click(e) { emit commentsDelete(e) } }
  216. button { type = "button" class = "comment-delete-keep" keepLabel on click(e) { emit commentsKeep(e) } }
  217. } }
  218. }
  219. }
  220. }
  221. }
  222. }
  223. if (plainForm) { for (f of forms) { form { class = "comment-form" on submit(e) { emit commentsPost(e) } on input(e) { emit commentsTyping(e) }
  224. MdEditor { name = "comment-new" value = "" placeholder = placeholder rows = 3 }
  225. commentButtons {
  226. if (stating) { label { class = "comment-state" stateLabel select { name = "state" value = chosen on change(e) { emit commentsState(e) } for (o of choices) { option { value = o.value o.label } } } } }
  227. button { type = "submit" class = "comment-post" buttonText }
  228. }
  229. } } }
  230. if (attaching) { FilesUpload { mode = "pick" files = attached onChange = picked maxSize = maxFileSize accept = accept pickText = attachText chooseText = chooseText cameraText = cameraText
  231. for (f of forms) { form { class = "comment-form" on submit(e) { emit commentsPost(e) } on input(e) { emit commentsTyping(e) }
  232. MdEditor { name = "comment-new" value = "" placeholder = placeholder rows = 3 files = "off" }
  233. commentButtons {
  234. if (stating) { label { class = "comment-state" stateLabel select { name = "state" value = chosen on change(e) { emit commentsState(e) } for (o of choices) { option { value = o.value o.label } } } } }
  235. button { type = "submit" class = "comment-post" buttonText }
  236. }
  237. } }
  238. } }
  239. if (cannotWrite) { p { class = "comments-sign-in" signInText } }
  240. }
  241. }
  242. idOf(e) {
  243. el = e.target.closest('[data-id]')
  244. return el == null ? '' : el.getAttribute('data-id')
  245. }
  246. // the Markdown the editor of a form holds now (its hidden field, kept up to date by every keystroke)
  247. typedIn(form) {
  248. f = form.querySelector('md-editor input.value')
  249. return f == null ? '' : f.value
  250. }
  251. // post: the host is told the text (and, with attach, the waiting files: a post may be files only); answering false keeps text and
  252. // files in the form (e.g. the server refused), else the form starts empty
  253. on commentsPost(e) {
  254. e.preventDefault()
  255. text = typedIn(e.target)
  256. if (onPost == null) { return null }
  257. if (attach == 'true') {
  258. if (text.trim() == '' && attached.length == 0 && chosen == '') { return null }
  259. sent = states.length > 0 ? onPost(text, attached, chosen) : onPost(text, attached)
  260. if (sent != false) {
  261. attached = []
  262. chosen = ''
  263. typed = false
  264. formSeq = formSeq + 1
  265. }
  266. return null
  267. }
  268. if (text.trim() == '' && chosen == '') { return null }
  269. ok = states.length > 0 ? onPost(text, [], chosen) : onPost(text)
  270. if (ok != false) {
  271. chosen = ''
  272. typed = false
  273. formSeq = formSeq + 1
  274. }
  275. }
  276. // every keystroke in a form's editor: is there any text (the button's words change with it)
  277. on commentsTyping(e) {
  278. form = e.target.closest('form')
  279. if (form == null) { return null }
  280. typed = typedIn(form).trim() != ''
  281. }
  282. on commentsState(e) { chosen = e.target.value }
  283. on commentsEdit(e) {
  284. askingId = ''
  285. editingId = idOf(e)
  286. }
  287. on commentsCancel(e) { editingId = '' }
  288. on commentsSave(e) {
  289. e.preventDefault()
  290. id = idOf(e)
  291. text = typedIn(e.target)
  292. let old = ''
  293. for (c of comments) { if ('' + c.id == id) { old = c.text } }
  294. if (text.trim() != '' && text != old && onEdit != null) { onEdit(id, text) }
  295. editingId = ''
  296. }
  297. on commentsAsk(e) {
  298. editingId = ''
  299. askingId = idOf(e)
  300. }
  301. on commentsKeep(e) { askingId = '' }
  302. on commentsDelete(e) {
  303. id = idOf(e)
  304. askingId = ''
  305. if (onDelete != null) { onDelete(id) }
  306. }
  307. on commentsLike(e) {
  308. if (user == '' || onLike == null) { return null }
  309. onLike(idOf(e))
  310. }
  311. // ---- look: the component's own Style; the base look is black, white and the greys #555 #999 #ddd #f2f2f2 (shared/base.hl names them;
  312. // root README "Look"); every colour is a semantic token with its base value as fallback, so an app that declares the tokens
  313. // (layouts.worldapi.org's theme) restyles it. No frames: the bubble is a grey field on the page, the avatar a grey disc.
  314. Style {
  315. 'comments-block' { display = 'block' color = 'var(--color-text, #000)' }
  316. 'comments-block h2.comments-count' { margin = '0 0 .8rem' fontSize = '1.05rem' }
  317. 'comments-block .comments-empty, comments-block .comments-sign-in' { margin = '0 0 .8rem' color = 'var(--color-text-muted, #555)' }
  318. 'comments-block ol.comment-list' { display = 'flex' flexDirection = 'column' gap = '.9rem' margin = '0 0 1rem' padding = '0' listStyle = 'none' }
  319. 'comments-block li.comment' { display = 'flex' gap = '.6rem' alignItems = 'flex-start' }
  320. 'comments-block comment-avatar' { flex = 'none' display = 'grid' placeItems = 'center' width = '2.2rem' height = '2.2rem' borderRadius = '50%' fontWeight = '700' color = 'var(--color-text, #000)' background = 'var(--color-surface, #ddd)' }
  321. 'comments-block comment-main' { display = 'block' flex = '1' minWidth = '0' }
  322. 'comments-block comment-bubble' { display = 'block' padding = '.5rem .8rem .6rem' background = 'var(--color-background-sunken, #f2f2f2)' borderRadius = 'var(--radius-small, 5px) var(--radius-large, 10px) var(--radius-large, 10px) var(--radius-large, 10px)' }
  323. 'comments-block comment-meta' { display = 'flex' flexWrap = 'wrap' alignItems = 'baseline' gap = '.2rem .6rem' marginBottom = '.2rem' }
  324. 'comments-block .comment-author' { fontSize = '.95rem' color = 'var(--color-text-strong, #000)' overflowWrap = 'anywhere' }
  325. 'comments-block comment-meta time' { fontSize = '.8rem' color = 'var(--color-text-muted, #555)' }
  326. // "edited": a quiet label next to the time (the foldable's own frame, grey header and margins of an app theme are switched off: the
  327. // theme styles every details/summary as a framed foldable, which is wrong for a history note); open, the earlier versions run in
  328. // under the line, muted, no frame
  329. 'comments-block details.comment-history' { display = 'contents' margin = '0' padding = '0' border = '0' borderRadius = '0' background = 'transparent' }
  330. 'comments-block details.comment-history::details-content' { display = 'contents' }
  331. 'comments-block details.comment-history summary' { display = 'inline' minHeight = '0' border = '0' background = 'transparent' fontSize = '.8rem' fontWeight = '400' color = 'var(--color-text-muted, #555)' cursor = 'pointer' textDecoration = 'underline dotted' textUnderlineOffset = '.15em' padding = '.85rem .5rem' margin = '-.85rem -.5rem' }
  332. 'comments-block details.comment-history summary:hover' { background = 'transparent' color = 'var(--color-text, #000)' }
  333. 'comments-block details.comment-history summary:focus-visible' { outline = '2px solid var(--color-accent, #555)' outlineOffset = '2px' }
  334. 'comments-block details.comment-history > :not(summary)' { flexBasis = '100%' margin = '0' fontSize = '.8rem' color = 'var(--color-text-muted, #555)' }
  335. 'comments-block .comment-history-title' { margin = '.2rem 0 0' fontWeight = '600' }
  336. 'comments-block details.comment-history ol' { padding = '0' listStyle = 'none' }
  337. 'comments-block details.comment-history li' { display = 'block' margin = '.2rem 0 0' }
  338. 'comments-block details.comment-history pre' { margin = '0' padding = '0' fontFamily = 'inherit' fontSize = '.85rem' whiteSpace = 'pre-wrap' overflowWrap = 'anywhere' color = 'var(--color-text-muted, #555)' background = 'transparent' }
  339. 'comments-block comment-actions' { display = 'flex' flexWrap = 'wrap' alignItems = 'center' gap = '.1rem .3rem' marginTop = '-.375rem' fontSize = '.85rem' }
  340. 'comments-block button' { font = 'inherit' fontWeight = '600' minHeight = '2.75rem' minWidth = '2.75rem' padding = '.25rem .6rem' color = 'var(--color-text-muted, #555)' background = 'transparent' border = '0' borderRadius = 'var(--radius-small, 5px)' cursor = 'pointer' }
  341. 'comments-block button:hover' { color = 'var(--color-text, #000)' background = 'var(--color-surface, #f2f2f2)' }
  342. 'comments-block button:focus-visible' { outline = '2px solid var(--color-accent, #555)' outlineOffset = '1px' }
  343. 'comments-block button.comment-like[aria-pressed="true"]' { color = 'var(--color-text-strong, #000)' }
  344. 'comments-block comment-ask' { display = 'flex' flexWrap = 'wrap' alignItems = 'center' gap = '.3rem' }
  345. 'comments-block button.comment-delete-yes, comments-block button.comment-save, comments-block button.comment-post' { color = 'var(--color-accent-text, #fff)' background = 'var(--color-accent, #000)' }
  346. 'comments-block button.comment-delete-yes:hover, comments-block button.comment-save:hover, comments-block button.comment-post:hover' { color = 'var(--color-accent-text, #fff)' background = 'var(--color-accent, #000)' filter = 'brightness(1.3)' }
  347. 'comments-block form.comment-edit' { display = 'block' marginTop = '.3rem' }
  348. 'comments-block form.comment-edit md-editor' { background = 'var(--color-background, #fff)' }
  349. 'comments-block form.comment-form' { display = 'block' }
  350. 'comments-block comment-buttons' { display = 'flex' flexWrap = 'wrap' justifyContent = 'flex-end' alignItems = 'center' gap = '.4rem' marginTop = '.4rem' }
  351. // the state choice before the post button: a small label and a select, the label does not take the page's block margins
  352. 'comments-block label.comment-state' { display = 'inline-flex' alignItems = 'center' gap = '.5rem' margin = '0' fontSize = '.9rem' fontWeight = '400' color = 'var(--color-text-muted, #555)' }
  353. 'comments-block label.comment-state select' { background = 'var(--color-surface, #ddd)' color = 'var(--color-text, #000)' }
  354. 'comments-block button.comment-post' { minHeight = '2.75rem' minWidth = '2.75rem' padding = '.25rem 1rem' }
  355. // attachments: thumbnails in a wrapping row (each a 44 px+ target that opens the picture), file rows under them; no frames
  356. 'comments-block ul.comment-files' { display = 'flex' flexWrap = 'wrap' gap = '.4rem' margin = '.4rem 0 .1rem' padding = '0' listStyle = 'none' }
  357. 'comments-block ul.comment-files li' { display = 'block' minWidth = '0' maxWidth = '100%' }
  358. 'comments-block a.comment-thumb' { display = 'block' width = '6rem' height = '6rem' borderRadius = 'var(--radius-small, 5px)' overflow = 'hidden' background = 'var(--color-surface, #ddd)' }
  359. 'comments-block a.comment-thumb img' { display = 'block' width = '100%' height = '100%' objectFit = 'cover' }
  360. 'comments-block a.comment-thumb:focus-visible, comments-block a.comment-file:focus-visible' { outline = '2px solid var(--color-accent, #555)' outlineOffset = '1px' }
  361. 'comments-block .comment-file' { display = 'flex' alignItems = 'center' gap = '.5rem' minHeight = '2.75rem' padding = '.2rem .6rem .2rem .2rem' boxSizing = 'border-box' maxWidth = '100%' color = 'var(--color-text, #000)' textDecoration = 'none' background = 'var(--color-background, #fff)' borderRadius = 'var(--radius-small, 5px)' }
  362. 'comments-block a.comment-file:hover' { background = 'var(--color-surface, #f2f2f2)' }
  363. 'comments-block .comment-file .kind' { flex = 'none' display = 'grid' placeItems = 'center' width = '2.4rem' height = '2.4rem' fontSize = '.7rem' fontWeight = '700' color = 'var(--color-text-muted, #555)' background = 'var(--color-surface, #ddd)' borderRadius = 'var(--radius-small, 5px)' }
  364. 'comments-block .comment-file file-info' { display = 'flex' flexDirection = 'column' minWidth = '0' }
  365. 'comments-block .comment-file .name' { fontSize = '.9rem' overflowWrap = 'anywhere' }
  366. 'comments-block .comment-file .size' { fontSize = '.8rem' color = 'var(--color-text-muted, #555)' }
  367. // inside the upload box the form dissolves into it (the box is the composer: the editor, the files, the footer)
  368. 'comments-block files-upload form.comment-form' { display = 'contents' }
  369. }

Branches

Latest commits

  • a3eda8afRe-vendor Hybriel master 7a684920 (binary 74ab3715): plugins whole, startup fault exits 1; files-upload gate 340/0mre
  • 025d5880WIP re-vendor Hybriel set-day27b (a9712e61, master f5ff97bf): plugins whole, startup fault exits 1; NOT deployable: files-upload emit refused (see .scratch/rv27-upload)mre
  • 42183a71Merge sb3-standby: layouts deploys through its standbymre
  • 408de1f2layouts: no jobs switch needed in the standbymre
  • 0b85f57elayouts: a standby container (port 45019, profile standby); deploy hands over through standby-swap.sh without a gapmre
  • 31e40b8bMerge dm3-media: range handling in the layouts media routemre
  • 856dcacbLayouts media route: read suffix ranges and ignore range lists and garbage, like the components route (the layouts copy still answered 416 for the last bytes)mre
  • ad5056eaMerge dm3-sync: components re-sync to c2834ddmre
  • 740e2abeRe-sync the components copy to c2834dd: media player fixes (state after a queue pick, cover-less audio, accessibility labels)mre
  • 7fe103bbMerge mp-player: the media player showcase pagemre
  • 7db43c4eMedia route: serve the showcase's media from committed files (storage/ is not in git)mre
  • f77b7d12Media player: re-sync components from 1c41293 (replay / forward 10 icons, play button surface on audio and video)mre
  • 40a9e69cMP: report, LOG linemre
  • 5b5dbf0fMedia player: the component from components.hybriel dd003e5 (sync-components), the showcase page /components/media-player with a queue, its media files served with ranges (lib/media.hl), theme rules (the seek bar, the queue's current item, the radii), the page in the overview listsmre
  • 9197159fTake components e54f83a: table lines and one-row desktop toolbar in the theme, Table button gates, a table in the md-editor demomre
  • e6322a44UX: report and LOG linemre
  • 58c2da6fUX: nav marker without bars; chat composer is one box (files-upload pick mode, showcase); comments state footer + closer reactions row; modal footer rule only for its own footer; gates for all of itmre
  • 956f107async components.hybriel 4922f9c: 44 px targets in month-view, date-picker, range-picker, pagination, modal, comments; names follow <html lang> (English default), UTC weekday fix; gate: 390 px target checks, 'edited' hit-area padding; comments showcase 'You are' is a labelled group (SY)mre
  • 49940371sessions last 99 years (creator 2026-10-23: logins never expire; only sign out ends them)mre
  • 6f7bd392gate: the phone toolbar is two even rows (E2)mre