code wiki / _hdl_build / nx_asset_dashboard_lib.nx

nx_asset_dashboard_lib.nx

buildroot/runtime/_hdl_build/nx_asset_dashboard_lib.nx

10910 B183 linesdepth 12pulls 34 transitivereach 2 importersview sourcekind librarytopic asset
docsdependenciesstructsconstsfunctions

about

nx_asset_dashboard_lib.nx -- shared dashboard EMIT core (the 3-pillar /wiki/assets.html renderer). Factored out of nx_asset_dashboard_page so BOTH the runnable page emitter AND its gate drive the SAME render path (DRY #15, mirrors nx_asset_ingest_lib). dp_emit(prefix, slug) computes the live stats over an ARBITRARY catalog prefix and renders the 3 awareness pillars through the reusable typed-page generator (ims_page writes web_assets/<slug>.html). Split into per-pillar helpers so no single function trips the fat-function miscompile. NO main(). license_tier: ORIGINAL

dependencies 6 imports · 2 importers

nx_syscalls.nx nx_asset_record.nx nx_asset_catalog.nx nx_asset_status.nx nx_ims_page.nx nx_asset_visibility.nx nx_asset_dashboard_lib.nx nx_asset_dashboard_gate.nx nx_asset_dashboard_page.nx

imports: nx_syscalls.nxnx_asset_record.nxnx_asset_catalog.nxnx_asset_status.nxnx_ims_page.nxnx_asset_visibility.nx

imported by: nx_asset_dashboard_gate.nxnx_asset_dashboard_page.nx

structs

none

consts

14const K_MAGIC_4096: i64 = 4096
15const K_MAGIC_262144: i64 = 262144

functions

17func dp_prefix() -> *u8 { return "knowledge/store/asset-catalog-\x00" as *u8 }
called by 1: main
19func dp_w(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } sys_write(1, s, n); return 0 }
called by 1: main calls 1: sys_write
20func dp_num(v: i64) -> i64
called by 1: main calls 2: sys_mmapsys_write
28func dp_present(v: *u8) -> i64
called by 1: dp_asset_list
33func dp_streq(a: *u8, b: *u8) -> i64
called by 1: dp_asset_list
40func dp_statrow(dst: *u8, off: i64, label: *u8, n: i64) -> i64
48func dp_sigrow(dst: *u8, off: i64, code: *u8, n: i64) -> i64
called by 1: dp_pillar_todo
60func dp_asset_list(b: *u8, off: i64, prefix: *u8, public_only: i64) -> i64
111func dp_pillar_have(b: *u8, off: i64, prefix: *u8, st: *i64, public_only: i64) -> i64
139func dp_pillar_todo(b: *u8, off: i64, st: *i64) -> i64
158func dp_pillar_goingon(b: *u8, off: i64, st: *i64) -> i64
172func dp_emit(prefix: *u8, slug: *u8, public_only: i64) -> i64