code wiki / _hdl_build / nx_manga_ui_emit.nx

nx_manga_ui_emit.nx

buildroot/runtime/_hdl_build/nx_manga_ui_emit.nx

14059 B97 linesdepth 2pulls 2 transitivereach 0 importersview sourcekind orphan librarytopic manga
docsdependenciesstructsconstsfunctions

about

nx_manga_ui_emit.nx -- EMITS the sovereign "My Manga" SOURCE BROWSER (knowledge/staging/media/manga.html), served at /library/manga. Operator 2026-07-04: "i want the sites to choose to download or translate like i could in media manager" + "i dont see the mangas working". So this page is now SELF-SUFFICIENT: it shows an inline LOGIN if there is no session (so navigating straight to /library/manga works), then a SOURCE PICKER (My Library / MangaDex / nhentai) with on-site SEARCH -> tap a result to download (mangadex: series -> chapter picker; nhentai: gallery -> direct). Downloads run in the BACKGROUND (async) and appear in My Library via polling. Covers proxied via /api/thumb (Cloudflare-beating). ZERO external loads; NO double-quote chars (single-quote HTML/JS) so the emit fail-closed check passes. license_tier: ORIGINAL

dependencies 1 imports · 0 importers

nx_syscalls.nx nx_manga_ui_emit.nx

imports: nx_syscalls.nx

imported by: nobody (leaf or entry point)

structs

none

consts

10const K_MAGIC_131072: i64 = 131072

functions

12func 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: mu_build
14func mu_build(dst: *u8) -> i64
calls 1: ua
73func mu_slen(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } return n }
74func mu_w(s: *u8) -> i64 { sys_write(1, s, mu_slen(s)); return 0 }
76func main() -> i64