code wiki / _hdl_build / nx_asset_dashboard_lib.nx
nx_asset_dashboard_lib.nx
buildroot/runtime/_hdl_build/nx_asset_dashboard_lib.nx
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
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
| 14 | const K_MAGIC_4096: i64 = 4096 |
| 15 | const K_MAGIC_262144: i64 = 262144 |
functions
| 17 | func dp_prefix() -> *u8 { return "knowledge/store/asset-catalog-\x00" as *u8 } called by 1: main |
| 19 | func 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 } |
| 20 | func dp_num(v: i64) -> i64 |
| 28 | func dp_present(v: *u8) -> i64 called by 1: dp_asset_list |
| 33 | func dp_streq(a: *u8, b: *u8) -> i64 called by 1: dp_asset_list |
| 40 | func dp_statrow(dst: *u8, off: i64, label: *u8, n: i64) -> i64 |
| 48 | func dp_sigrow(dst: *u8, off: i64, code: *u8, n: i64) -> i64 called by 1: dp_pillar_todo |
| 60 | func dp_asset_list(b: *u8, off: i64, prefix: *u8, public_only: i64) -> i64 |
| 111 | func dp_pillar_have(b: *u8, off: i64, prefix: *u8, st: *i64, public_only: i64) -> i64 |
| 139 | func dp_pillar_todo(b: *u8, off: i64, st: *i64) -> i64 called by 1: dp_emit calls 9: ST_SIG_TOTALdp_sigrowST_SIG_PROVST_SIG_UNTAGST_SIG_METAST_SIG_NEARDUP+3 |
| 158 | func dp_pillar_goingon(b: *u8, off: i64, st: *i64) -> i64 |
| 172 | func dp_emit(prefix: *u8, slug: *u8, public_only: i64) -> i64 called by 3: gt_visfiltermainmain calls 7: sys_mmapst_capst_compute_livedp_pillar_havedp_pillar_tododp_pillar_goingon+1 |