code wiki / _hdl_build / nx_manga_shelf_emit.nx

nx_manga_shelf_emit.nx

buildroot/runtime/_hdl_build/nx_manga_shelf_emit.nx

10156 B80 linesdepth 2pulls 2 transitivereach 0 importersview sourcekind tooltopic manga
docsdependenciesstructsconstsfunctions

about

nx_manga_shelf_emit.nx -- EMITS the LOCAL Comics Shelf browse page (knowledge/staging/media/shelf.html), served at /library/shelf. The operator's "browse before download" LOCAL half: a SERIES grid (covers via the EXISTING thumbnailed /api/cover) over /api/shelf's series->volumes catalog -> tap a series -> volume list -> tap a volume -> the EXISTING /api/open extract-on-demand chain lands in the guided zoom reader (/library/zoom). Inline login (same no-cookie session as the rest of /library). ZERO external loads; NO double-quote chars (single-quote HTML/JS) so the fail-closed emit check passes. license_tier: ORIGINAL

dependencies 1 imports · 0 importers

nx_syscalls.nx nx_manga_shelf_emit.nx

imports: nx_syscalls.nx

imported by: nobody (leaf or entry point)

call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown

main sys_mmap sh_build ua sh_w sys_write sh_slen sys_exit sys_openat_wr sys_write ↻ sys_close

structs

none

consts

8const K_MAGIC_131072: i64 = 131072

functions

10func ua(dst: *u8, o: i64, s: *u8) -> i64 { var i: i64 = 0; while s[i] != (0 as u8) { dst[o + i] = s[i]; i = i + 1 } return o + i }
called by 1: sh_build
12func sh_build(dst: *u8) -> i64
called by 1: main calls 1: ua
54func sh_slen(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } return n }
called by 1: sh_w
55func sh_w(s: *u8) -> i64 { sys_write(1, s, sh_slen(s)); return 0 }
called by 1: main calls 2: sys_writesh_slen
57func main() -> i64