gitoria

gitoria

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commit570138cd570138cddeploy: security gate (tests/security.mjs)mre570138cd/lib/markdown.hl

18.4 KB

  1. // lib/markdown.hl — copied from tickets.worldapi.org (markdown.hl, ticket tickets#6) for the repo homepage (gitoria#8), with tables, quotes and rules added. Originally: MARKDOWN IN TEXT FIELDS (mission 014; CONCEPT.md
  2. // "Data formats": Markdown inside text fields). The summary, comment texts and state notes are
  3. // Markdown; the ticket page renders them. Statics only, server realm.
  4. //
  5. // SAFE BY CONSTRUCTION: the text is parsed HERE into plain data — blocks of spans — and the
  6. // View (components/markdown.hl) builds elements from it. Every character of the source ends
  7. // up in a TEXT node (hl:web escapes it); there is no HTML string anywhere, so raw HTML in the
  8. // source (`<script>`, `<img onerror>`) is shown as the text it is. A link's href is taken only
  9. // if `safeHref` accepts it: http(s):, mailto:, a same-site path (`/…`, not `//…`) or `#…`;
  10. // anything else (`javascript:`, `data:`, `vbscript:`, relative `foo`, quotes, spaces, control
  11. // characters) stays plain text.
  12. //
  13. // WHAT IS UNDERSTOOD (the subset ticket #6 names — headings, lists, code, links, emphasis):
  14. // blocks: `#`…`######` headings, `-`/`*`/`+` and `1.`/`1)` list items (one level; deeper
  15. // indentation is flattened; a list may interrupt a paragraph — the import writes
  16. // them that way), ``` / ~~~ fenced code, paragraphs (blank-line separated; their
  17. // single line breaks are KEPT — the page showed them before, `white-space: pre-wrap`)
  18. // inline: `code` (any backtick run), [text](url), <https://…>, bare http(s):// URLs,
  19. // *em* _em_ **strong** __strong__ ***both***, backslash escapes of punctuation
  20. // Also understood here (gitoria#8): `> block quotes` (inline text only), | tables |, horizontal rules.
  21. // Not understood (shown as typed): images, nested lists, HTML.
  22. //
  23. // A block is COMPACT (it travels in the page values): ONE flag that names its kind (omitted = false) and only the fields that
  24. // kind has. The View's `if` takes a field, not a comparison (a `kind == 'p'` string cannot be tested there), so the kind IS the field.
  25. // { isP | isQuote | isH1 | isH2 | isH3 (3 = level 3+) = true, spans } { isUl = true, items: [{ spans }] } { isOl = true, items, start }
  26. // { isCode = true, code (the text) } { isTable = true, head: [{ spans }], rows: [[{ spans }]] } { isHr = true }
  27. // A span: { text, isText | isStrong | isEm | isStrongEm | isCode | isLink = true, href (link only) }
  28. static NL = "
  29. "
  30. static isSpaceC = (c) => { return c == 32 || c == 9 || c == 10 || c == 13 }
  31. static isAlnumC = (c) => { return (c >= 48 && c <= 57) || (c >= 65 && c <= 90) || (c >= 97 && c <= 122) || c > 127 }
  32. static isPunctC = (c) => { return (c >= 33 && c <= 47) || (c >= 58 && c <= 64) || (c >= 91 && c <= 96) || (c >= 123 && c <= 126) }
  33. // ---- links ------------------------------------------------------------------------------
  34. // the href of a link, or null when it is not one we let through
  35. static safeHref = (u) => {
  36. if (u == null) { return null }
  37. t = ('' + u).trim()
  38. if (t == '' || t.length > 2000) { return null }
  39. let i = 0
  40. while (i < t.length) {
  41. let c = t.charCodeAt(i)
  42. // no spaces / control characters, no quotes, no < > ` and no backslash
  43. if (c <= 32 || c == 127 || c == 34 || c == 39 || c == 60 || c == 62 || c == 96 || c == 92) { return null }
  44. i = i + 1
  45. }
  46. low = t.toLowerCase()
  47. if (low.startsWith('https://') && t.length > 8) { return t }
  48. if (low.startsWith('http://') && t.length > 7) { return t }
  49. if (low.startsWith('mailto:') && t.length > 7) { return t }
  50. if (t.startsWith('/') && !t.startsWith('//')) { return t }
  51. if (t.startsWith('#')) { return t }
  52. return null
  53. }
  54. static isUrlStart = (s, i) => {
  55. low = s.slice(i, i + 8).toLowerCase()
  56. return low.startsWith('https://') || low.startsWith('http://')
  57. }
  58. // where a bare URL starting at i ends: up to whitespace or < > " `, minus trailing punctuation
  59. // (and a closing parenthesis that has no opening one inside the URL)
  60. static isUrlStop = (c) => { return isSpaceC(c) || c == 60 || c == 62 || c == 34 || c == 96 }
  61. static urlEnd = (s, i) => {
  62. let end = i
  63. while (end < s.length && !isUrlStop(s.charCodeAt(end))) { end = end + 1 }
  64. let trimming = true
  65. while (trimming && end > i) {
  66. let c = s.charCodeAt(end - 1)
  67. if (c == 46 || c == 44 || c == 59 || c == 58 || c == 33 || c == 63 || c == 39 || c == 42 || c == 95) {
  68. end = end - 1
  69. } else if (c == 41) {
  70. let opens = 0
  71. let closes = 0
  72. let k = i
  73. while (k < end) {
  74. if (s.charCodeAt(k) == 40) { opens = opens + 1 }
  75. if (s.charCodeAt(k) == 41) { closes = closes + 1 }
  76. k = k + 1
  77. }
  78. if (closes > opens) { end = end - 1 } else { trimming = false }
  79. } else {
  80. trimming = false
  81. }
  82. }
  83. return end
  84. }
  85. // `[label](url)` at i → { label, href (null = not allowed), end } or null (not a link)
  86. static linkAt = (s, i) => {
  87. let j = i + 1
  88. let found = -1
  89. while (j < s.length && found < 0) {
  90. let c = s.charCodeAt(j)
  91. if (c == 91) { return null }
  92. if (c == 93) { found = j }
  93. j = j + 1
  94. }
  95. if (found < 0 || found == i + 1) { return null }
  96. if (found + 1 >= s.length || s.charCodeAt(found + 1) != 40) { return null }
  97. k = s.indexOf(')', found + 2)
  98. if (k < 0) { return null }
  99. let target = s.slice(found + 2, k).trim()
  100. // an optional title after a space is dropped: [x](url "title")
  101. sp = target.indexOf(' ')
  102. if (sp > 0) { target = target.slice(0, sp) }
  103. return { label = s.slice(i + 1, found) href = safeHref(target) end = k + 1 }
  104. }
  105. // ---- spans --------------------------------------------------------------------------------
  106. static textSpan = (t, strong, em) => {
  107. if (strong && em) { return { text = t isStrongEm = true } }
  108. if (strong) { return { text = t isStrong = true } }
  109. if (em) { return { text = t isEm = true } }
  110. return { text = t isText = true }
  111. }
  112. static codeSpan = (t) => {
  113. return { text = t isCode = true }
  114. }
  115. static linkSpan = (t, h) => {
  116. return { text = t isLink = true href = h }
  117. }
  118. // the index of a run of EXACTLY n characters c at or after `at`, or -1. `esc`: a character
  119. // after a backslash does not count (emphasis; inside `code` a backslash is just a backslash)
  120. static runAt = (s, at, c, n, esc) => {
  121. let i = at
  122. while (i < s.length) {
  123. if (esc && s.charCodeAt(i) == 92) {
  124. i = i + 2
  125. } else if (s.charCodeAt(i) == c) {
  126. let k = i
  127. while (k < s.length && s.charCodeAt(k) == c) { k = k + 1 }
  128. if (k - i == n) { return i }
  129. i = k
  130. } else {
  131. i = i + 1
  132. }
  133. }
  134. return -1
  135. }
  136. // is there a CLOSING delimiter run (exactly n of c, not after a space; `_` not before a
  137. // letter/digit) after `at`?
  138. static hasCloser = (s, at, c, n) => {
  139. let i = at
  140. while (i < s.length) {
  141. let r = runAt(s, i, c, n, true)
  142. if (r < 0) { return false }
  143. let prev = r > 0 ? s.charCodeAt(r - 1) : 32
  144. let next = r + n < s.length ? s.charCodeAt(r + n) : 32
  145. if (r > at && !isSpaceC(prev) && (c != 95 || !isAlnumC(next))) { return true }
  146. i = r + n
  147. }
  148. return false
  149. }
  150. static inlineSpans = (src) => {
  151. out = []
  152. if (src == null || src == '') { return out }
  153. s = '' + src
  154. n = s.length
  155. let buf = ''
  156. let strong = false
  157. let em = false
  158. let strongC = 0
  159. let emC = 0
  160. let i = 0
  161. while (i < n) {
  162. let c = s.charCodeAt(i)
  163. if (c == 92 && i + 1 < n && isPunctC(s.charCodeAt(i + 1))) {
  164. // a backslash escape: the next punctuation character as itself
  165. buf = buf + s[i + 1]
  166. i = i + 2
  167. } else if (c == 96) {
  168. // `code`: a run of backticks up to the same run
  169. let k = i
  170. while (k < n && s.charCodeAt(k) == 96) { k = k + 1 }
  171. let close = runAt(s, k, 96, k - i, false)
  172. if (close < 0) {
  173. buf = buf + s.slice(i, k)
  174. i = k
  175. } else {
  176. if (buf != '') { out.push(textSpan(buf, strong, em)) }
  177. buf = ''
  178. let code = s.slice(k, close).replaceAll(NL, ' ')
  179. if (code.length > 2 && code.startsWith(' ') && code.endsWith(' ') && code.trim() != '') { code = code.slice(1, code.length - 1) }
  180. out.push(codeSpan(code))
  181. i = close + (k - i)
  182. }
  183. } else if (c == 91) {
  184. // [label](url)
  185. let l = linkAt(s, i)
  186. if (l == null) {
  187. buf = buf + '['
  188. i = i + 1
  189. } else if (l.href == null) {
  190. buf = buf + s.slice(i, l.end)
  191. i = l.end
  192. } else {
  193. if (buf != '') { out.push(textSpan(buf, strong, em)) }
  194. buf = ''
  195. out.push(linkSpan(l.label, l.href))
  196. i = l.end
  197. }
  198. } else if (c == 60 && i + 1 < n && isUrlStart(s, i + 1)) {
  199. // <https://…>
  200. let e = s.indexOf('>', i + 1)
  201. let url = e > 0 ? s.slice(i + 1, e) : ''
  202. let h = safeHref(url)
  203. if (e < 0 || h == null) {
  204. buf = buf + '<'
  205. i = i + 1
  206. } else {
  207. if (buf != '') { out.push(textSpan(buf, strong, em)) }
  208. buf = ''
  209. out.push(linkSpan(url, h))
  210. i = e + 1
  211. }
  212. } else if ((c == 104 || c == 72) && (i == 0 || !isAlnumC(s.charCodeAt(i - 1))) && isUrlStart(s, i)) {
  213. // a bare http(s):// URL
  214. let e = urlEnd(s, i)
  215. let url = s.slice(i, e)
  216. let h = safeHref(url)
  217. if (h == null) {
  218. buf = buf + s[i]
  219. i = i + 1
  220. } else {
  221. if (buf != '') { out.push(textSpan(buf, strong, em)) }
  222. buf = ''
  223. out.push(linkSpan(url, h))
  224. i = e
  225. }
  226. } else if (c == 42 || c == 95) {
  227. // * and _: emphasis (1), strong (2), both (3)
  228. let k = i
  229. while (k < n && s.charCodeAt(k) == c) { k = k + 1 }
  230. let run = k - i
  231. let prev = i > 0 ? s.charCodeAt(i - 1) : 32
  232. let next = k < n ? s.charCodeAt(k) : 32
  233. let wantStrong = run == 2 || run == 3
  234. let wantEm = run == 1 || run == 3
  235. let canOpen = !isSpaceC(next) && (c == 42 || !isAlnumC(prev))
  236. let canClose = !isSpaceC(prev) && (c == 42 || !isAlnumC(next))
  237. let closes = canClose && run <= 3 && (!wantStrong || (strong && strongC == c)) && (!wantEm || (em && emC == c))
  238. let opens = !closes && canOpen && run <= 3 && (!wantStrong || !strong) && (!wantEm || !em) && hasCloser(s, k, c, run)
  239. if (closes || opens) {
  240. if (buf != '') { out.push(textSpan(buf, strong, em)) }
  241. buf = ''
  242. if (wantStrong) {
  243. strong = opens
  244. strongC = c
  245. }
  246. if (wantEm) {
  247. em = opens
  248. emC = c
  249. }
  250. } else {
  251. buf = buf + s.slice(i, k)
  252. }
  253. i = k
  254. } else {
  255. buf = buf + s[i]
  256. i = i + 1
  257. }
  258. }
  259. if (buf != '') { out.push(textSpan(buf, strong, em)) }
  260. return out
  261. }
  262. // ---- blocks -------------------------------------------------------------------------------
  263. static noCr = (line) => { return line.length > 0 && line.charCodeAt(line.length - 1) == 13 ? line.slice(0, line.length - 1) : line }
  264. static indentOf = (line) => {
  265. let i = 0
  266. while (i < line.length && (line.charCodeAt(i) == 32 || line.charCodeAt(i) == 9)) { i = i + 1 }
  267. return i
  268. }
  269. // a heading line (≤ 3 spaces in, 1–6 '#', a space or the end) → { level, text } or null
  270. static headingOf = (line) => {
  271. if (indentOf(line) > 3) { return null }
  272. t = line.trim()
  273. let k = 0
  274. while (k < t.length && t.charCodeAt(k) == 35) { k = k + 1 }
  275. if (k == 0 || k > 6) { return null }
  276. if (k < t.length && t.charCodeAt(k) != 32 && t.charCodeAt(k) != 9) { return null }
  277. let body = t.slice(k).trim()
  278. // a closing run of '#' after a space goes
  279. let e = body.length
  280. while (e > 0 && body.charCodeAt(e - 1) == 35) { e = e - 1 }
  281. if (e == 0) { body = '' } else if (e < body.length && (body.charCodeAt(e - 1) == 32 || body.charCodeAt(e - 1) == 9)) { body = body.slice(0, e).trim() }
  282. return { level = k text = body }
  283. }
  284. // a list item line → { ordered, start, text } or null
  285. static itemOf = (line) => {
  286. t = line.trim()
  287. if (t.length >= 2 && (t.charCodeAt(0) == 45 || t.charCodeAt(0) == 42 || t.charCodeAt(0) == 43) && (t.charCodeAt(1) == 32 || t.charCodeAt(1) == 9)) {
  288. return { ordered = false start = 1 text = t.slice(2).trim() }
  289. }
  290. if (t.length == 1 && (t == '-' || t == '*' || t == '+')) { return { ordered = false start = 1 text = '' } }
  291. let k = 0
  292. while (k < t.length && k < 9 && t.charCodeAt(k) >= 48 && t.charCodeAt(k) <= 57) { k = k + 1 }
  293. if (k == 0 || k >= t.length) { return null }
  294. d = t.charCodeAt(k)
  295. if (d != 46 && d != 41) { return null }
  296. if (k + 1 < t.length && t.charCodeAt(k + 1) != 32 && t.charCodeAt(k + 1) != 9) { return null }
  297. return { ordered = true start = toNumber(t.slice(0, k)) text = t.slice(k + 1).trim() }
  298. }
  299. // a code fence line (``` or ~~~, ≥ 3) → its run (e.g. '````') or null
  300. static fenceOf = (line) => {
  301. if (indentOf(line) > 3) { return null }
  302. t = line.trim()
  303. if (t.length < 3) { return null }
  304. c = t.charCodeAt(0)
  305. if (c != 96 && c != 126) { return null }
  306. let k = 0
  307. while (k < t.length && t.charCodeAt(k) == c) { k = k + 1 }
  308. if (k < 3) { return null }
  309. // an info string after ``` must not contain a backtick
  310. if (c == 96 && t.slice(k).includes('`')) { return null }
  311. return t.slice(0, k)
  312. }
  313. static paraBlock = (lines) => {
  314. let spans = inlineSpans(lines.join(NL))
  315. return { isP = true spans = spans }
  316. }
  317. static headingBlock = (level, text) => {
  318. let spans = inlineSpans(text)
  319. if (level == 1) { return { isH1 = true spans = spans } }
  320. if (level == 2) { return { isH2 = true spans = spans } }
  321. return { isH3 = true spans = spans }
  322. }
  323. static codeBlock = (lines) => {
  324. text = lines.join(NL)
  325. return { isCode = true code = text }
  326. }
  327. static listBlock = (ordered, first, itemLines) => {
  328. let items = []
  329. for (lines of itemLines) {
  330. let spans = inlineSpans(lines.join(NL))
  331. items.push({ spans = spans })
  332. }
  333. if (ordered) { return { isOl = true items = items start = first } }
  334. return { isUl = true items = items }
  335. }
  336. static quoteBlock = (lines) => {
  337. let spans = inlineSpans(lines.join(NL))
  338. return { isQuote = true spans = spans }
  339. }
  340. static hrBlock = () => {
  341. return { isHr = true }
  342. }
  343. static tableBlock = (head, rows) => {
  344. return { isTable = true head = head rows = rows }
  345. }
  346. // a line of 3+ of one of - * _ (spaces between allowed) and nothing else
  347. static isHrLine = (line) => {
  348. if (indentOf(line) > 3) { return false }
  349. t = line.trim()
  350. if (t.length < 3) { return false }
  351. c = t.charCodeAt(0)
  352. if (c != 45 && c != 42 && c != 95) { return false }
  353. let n = 0
  354. let i = 0
  355. while (i < t.length) {
  356. let d = t.charCodeAt(i)
  357. if (d == c) { n = n + 1 } else if (d != 32 && d != 9) { return false }
  358. i = i + 1
  359. }
  360. return n >= 3
  361. }
  362. // `> text` → the text after the marker, or null
  363. static quoteOf = (line) => {
  364. if (indentOf(line) > 3) { return null }
  365. t = line.trim()
  366. if (!t.startsWith('>')) { return null }
  367. return t.slice(1).trim()
  368. }
  369. // the cells of a table row line: `| a | b |` → [a, b] as spans lists
  370. static cellsOf = (line) => {
  371. let t = line.trim()
  372. if (t.startsWith('|')) { t = t.slice(1) }
  373. if (t.endsWith('|')) { t = t.slice(0, t.length - 1) }
  374. out = []
  375. for (c of t.split('|')) { out.push({ spans = inlineSpans(c.trim()) }) }
  376. return out
  377. }
  378. // is this the `|---|:--:|` line under a table head?
  379. static isSepLine = (line) => {
  380. t = line.trim()
  381. if (!t.includes('-') || !t.includes('|') && !t.includes(':')) { return false }
  382. let i = 0
  383. while (i < t.length) {
  384. let d = t.charCodeAt(i)
  385. if (d != 124 && d != 45 && d != 58 && d != 32 && d != 9) { return false }
  386. i = i + 1
  387. }
  388. return true
  389. }
  390. // the Markdown text → blocks (see the header)
  391. static markdownBlocks = (text) => {
  392. out = []
  393. if (text == null || text == '') { return out }
  394. lines = ('' + text).split(NL)
  395. let para = []
  396. let inList = false
  397. let listOrdered = false
  398. let listStart = 1
  399. let items = []
  400. let blankBefore = false
  401. let i = 0
  402. while (i < lines.length) {
  403. let line = noCr(lines[i])
  404. let fence = fenceOf(line)
  405. let hr = fence == null && isHrLine(line)
  406. let q = fence == null && !hr ? quoteOf(line) : null
  407. let isTab = fence == null && !hr && q == null && line.includes('|') && i + 1 < lines.length && isSepLine(noCr(lines[i + 1])) && noCr(lines[i + 1]).includes('|')
  408. let h = fence == null && !hr && q == null && !isTab ? headingOf(line) : null
  409. let it = fence == null && !hr && q == null && !isTab && h == null ? itemOf(line) : null
  410. if (hr) {
  411. if (para.length > 0) { out.push(paraBlock(para)) }
  412. para = []
  413. if (inList) { out.push(listBlock(listOrdered, listStart, items)) }
  414. inList = false
  415. items = []
  416. out.push(hrBlock())
  417. blankBefore = false
  418. i = i + 1
  419. } else if (q != null) {
  420. if (para.length > 0) { out.push(paraBlock(para)) }
  421. para = []
  422. if (inList) { out.push(listBlock(listOrdered, listStart, items)) }
  423. inList = false
  424. items = []
  425. let ql = []
  426. let j = i
  427. let more = true
  428. while (j < lines.length && more) {
  429. let x = quoteOf(noCr(lines[j]))
  430. if (x == null) { more = false } else {
  431. ql.push(x)
  432. j = j + 1
  433. }
  434. }
  435. out.push(quoteBlock(ql))
  436. i = j
  437. blankBefore = false
  438. } else if (isTab) {
  439. if (para.length > 0) { out.push(paraBlock(para)) }
  440. para = []
  441. if (inList) { out.push(listBlock(listOrdered, listStart, items)) }
  442. inList = false
  443. items = []
  444. let head = cellsOf(line)
  445. let rows = []
  446. let j = i + 2
  447. while (j < lines.length && noCr(lines[j]).trim() != '' && noCr(lines[j]).includes('|')) {
  448. rows.push(cellsOf(noCr(lines[j])))
  449. j = j + 1
  450. }
  451. out.push(tableBlock(head, rows))
  452. i = j
  453. blankBefore = false
  454. } else if (fence != null) {
  455. if (para.length > 0) { out.push(paraBlock(para)) }
  456. para = []
  457. if (inList) { out.push(listBlock(listOrdered, listStart, items)) }
  458. inList = false
  459. items = []
  460. let code = []
  461. let j = i + 1
  462. let closed = false
  463. let fc = fence.charCodeAt(0)
  464. while (j < lines.length && !closed) {
  465. let l = noCr(lines[j])
  466. let f = fenceOf(l)
  467. if (f != null && f.charCodeAt(0) == fc && f.length >= fence.length && l.trim() == f) {
  468. closed = true
  469. } else {
  470. code.push(l)
  471. }
  472. j = j + 1
  473. }
  474. out.push(codeBlock(code))
  475. i = j
  476. blankBefore = false
  477. } else if (line.trim() == '') {
  478. if (para.length > 0) { out.push(paraBlock(para)) }
  479. para = []
  480. blankBefore = true
  481. i = i + 1
  482. } else if (h != null) {
  483. if (para.length > 0) { out.push(paraBlock(para)) }
  484. para = []
  485. if (inList) { out.push(listBlock(listOrdered, listStart, items)) }
  486. inList = false
  487. items = []
  488. out.push(headingBlock(h.level, h.text))
  489. blankBefore = false
  490. i = i + 1
  491. } else if (it != null) {
  492. if (para.length > 0) { out.push(paraBlock(para)) }
  493. para = []
  494. if (inList && listOrdered != it.ordered) {
  495. out.push(listBlock(listOrdered, listStart, items))
  496. inList = false
  497. items = []
  498. }
  499. if (!inList) {
  500. inList = true
  501. listOrdered = it.ordered
  502. listStart = it.start
  503. items = []
  504. }
  505. items.push([it.text])
  506. blankBefore = false
  507. i = i + 1
  508. } else if (inList && (!blankBefore || indentOf(line) >= 2)) {
  509. // a wrapped item line (or an indented paragraph of the item): onto the last item
  510. let last = items[items.length - 1]
  511. last.push(line.trim())
  512. items[items.length - 1] = last
  513. blankBefore = false
  514. i = i + 1
  515. } else {
  516. if (inList) { out.push(listBlock(listOrdered, listStart, items)) }
  517. inList = false
  518. items = []
  519. para.push(line.trim())
  520. blankBefore = false
  521. i = i + 1
  522. }
  523. }
  524. if (para.length > 0) { out.push(paraBlock(para)) }
  525. if (inList) { out.push(listBlock(listOrdered, listStart, items)) }
  526. return out
  527. }

Branches

Latest commits

  • 570138cddeploy: security gate (tests/security.mjs)mre
  • da6b20fcgitoria SG: security audit fixes (uploadMax 0, Secure cookie on https, session rotation at login, nosniff on function routes, no identity in page data) + tests/security.mjs gate + reportmre
  • f98c981fgitoria B1: report wordingmre
  • c6364cedgitoria B1: compact Markdown blocks (one kind flag per block/span, empty and false fields omitted); same rendered HTML, page values -67%mre
  • cd99d2feWIP gitoria#22: always render the repo level's slot (missing-repo boot hang), pages render nothing without a repo; hydration diagnosis in reports/G2-hydrate.mdmre
  • e5404b9breport: commit idsmre
  • 63cfa21ereports/G2-repotabs.mdmre
  • 9b0516fdgitoria#22: mark the tab underline functional (check-theme), chain E2E: serve/measure split, bring the lisbeth tab to frontmre
  • 19bc1df8gitoria#22: all repo pages under ONE layout level (components/repo.hl, hl:web D-CHAIN): a tab click replaces only the page in the slot; head and tab nav stay the same DOM nodesmre
  • 40658417tests/browser.mjs: wait for the page to be live (hydrated) before clicking Merge — a click on the server-rendered button before the client mounted was lost (flaky 'Clashing change' under load)mre
  • 48a6154bre-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
  • e972e8d7tests: short-id-switch (GITORIA_SWITCH_IDENT_PORT/_PORT) and ssh tunnel (GITORIA_GATE_TUNNEL_PORT) ports from env, defaults unchangedmre
  • f06f5349re-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
  • c7d3cc87docker-compose: nofile 65536 (Hybriel int 6+ boot opened >1024 files in the tracker)mre
  • f0e7ff8cdeploy: backup copies index files first and *.mpack data last (hot-copy skew, hybriel #203)mre
  • fe5f707cgitoria 010: report, mission, comment on why current = true staysmre
  • 9705ca86gitoria 010: gate: menu marker in the server HTMLmre
  • 8cff663agitoria 010: main-menu.hl from layouts 0bcc629 (route marker)mre
  • 359c79f7gitoria 010: re-vendor Hybriel master f9614007 (plugins whole, bin/ git-ignored)mre
  • 6bd7fb3cgitoria 009: theme re-copied from layouts 76f99f6 (menu marks the current page), current = true on the menu item, e2e marker checks, reportmre