code wiki / _hdl_build / nx_hub_render.nx
nx_hub_render.nx
buildroot/runtime/_hdl_build/nx_hub_render.nx
about
nx_hub_render.nx -- the LEVELED hub index renderer: registry + a viewer's level -> the HTML they may see.
Realizes the operator's "/hub access levels": the gateway resolves the session's level, then this emits a
card ONLY for each CURRENT hub-zone artifact whose required level <= the viewer's level. NO-LEAK AT THE
RENDER LAYER: a viewer's bytes never contain a member/operator card (not hidden by CSS -- absent from the
HTML), so even view-source cannot reveal a gated area. "Current" = the latest load_date row per path with
is_current=1 (a tombstone/older row is skipped). Sovereign: slk_* + nx_maturity_registry classifiers. ORIGINAL.
dependencies 3 imports · 2 importers
imports: nx_site_lock_lib.nxnx_maturity_registry.nxnx_native_config.nx
imported by: nx_hub_gw.nxnx_hub_render_gate.nx
structs
| none |
consts
| none |
functions
| 17 | func hr_app(dst: *u8, off: i64, s: *u8) -> i64 { var o: i64=off; var i: i64=0; while s[i]!=(0 as u8){dst[o]=s[i]; o=o+1; i=i+1} return o } |
| 18 | func hr_appb(dst: *u8, off: i64, src: *u8, n: i64) -> i64 { var o: i64=off; var i: i64=0; while i<n {dst[o]=src[i]; o=o+1; i=i+1} return o } called by 1: mr_render_index |
| 23 | func hr_card(out: *u8, o: i64, level: i64, req: i64, href: *u8, title: *u8, badge: *u8) -> i64 |
| 37 | func hr_is_latest(reg: *u8, reglen: i64, path_s: i64, path_e: i64, load: i64) -> i64 |
| 60 | func mr_render_index(reg: *u8, reglen: i64, level: i64, with_upgrade: i64, out: *u8, cap: i64) -> i64 |