code wiki / (root) / nx_wflow_ui.nx

nx_wflow_ui.nx

buildroot/runtime/nx_wflow_ui.nx

22054 B290 linesdepth 2pulls 2 transitivereach 0 importersview sourcekind tooltopic wflow
docsdependenciesstructsconstsfunctions

about

nx_wflow_ui.nx -- R7 the WORKFLOW CONSOLE: a sovereign, 0-JS, self-contained HTML page that VISUALLY renders the workflow system -- template gallery (from the real gallery index) + a flow drawn as a clean vertical pipeline (from a real .steps file) + the run lifecycle. Built to the nx_ui_judge rubric BY CONSTRUCTION (canonical --nx- tokens, clamp() fluid type, @media mobile-first + dark, skip-link, :focus-visible, prefers-reduced-motion, SVG art, gradient-clip headline, entrance + scroll animation, overflow-x wrappers). HONEST: this is a VIEW/console (understand + adopt), not a drag-drop editor -- interactive editing (U2) stays a later rung. Emits to stdout: `nx_wflow_ui <galleryindexdir> <stepsfile>`. nx_cc discipline: NO '#'/'!' in literals (rgb() colors; wc(35)/wc(33) for the few needed); '"' via wq(). license_tier: ORIGINAL expect_exit: 0

dependencies 1 imports · 0 importers

nx_syscalls.nx nx_wflow_ui.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 head hopen wc sys_mmap sys_write w sys_write ↻ wq wc ↻ css1 w ↻ css2 w ↻ css3 w ↻ w ↻ w ↻ wq ↻ wc ↻ art w ↻ wq ↻ wc ↻ gallery sys_mmap ↻ w2cat readall sys_mmap ↻ sys_openat_rd sys_read sys_close w ↻ wq ↻ wc ↻ pf wt w ↻ wc ↻ pipeline

structs

none

consts

11const K_MAGIC_262144: i64 = 262144

functions

13func w(fd: i64, s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} sys_write(fd,s,n); return 0 }
called by 11: badgewthopencss1css2css3+5 calls 1: sys_write
14func wc(fd: i64, code: i64) -> i64 { let t: *u8=sys_mmap(2); t[0]=code as u8; sys_write(fd,t,1); return 0 }
15func wq(fd: i64) -> i64 { wc(fd,34); return 0 }
called by 5: hopenartgallerypipelinemain calls 1: wc
16func wn(fd: i64, v: i64) -> i64 { var m: i64=v; if m<0{wc(fd,45);m=0-m} let t: *u8=sys_mmap(24); var k: i64=0; if m==0{t[0]=48 as u8;k=1} while m>0{t[k]=(48+(m-(m/10)*10)) as u8;m=m/10;k=k+1} let o: *u8=sys_mmap(24); var i: i64=0; while i<k{o[i]=t[k-1-i];i=i+1} sys_write(fd,o,k); return 0 }
called by 1: main calls 3: wcsys_mmapsys_write
17func slen(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} return n }
18func seq(a: *u8, b: *u8) -> i64 { var i: i64=0; while a[i]!=(0 as u8){ if a[i]!=b[i]{return 0} i=i+1 } if b[i]!=(0 as u8){return 0} return 1 }
called by 1: badge
19func w2cat(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} dst[o]=0 as u8; return o }
called by 1: gallery
20func badge(fd: i64, a: *u8) -> i64
called by 1: pipeline calls 2: seqw
31func readall(path: *u8, szp: *i64) -> *u8
49func pf(s: *u8, idx: i64, out: *u8, cap: i64) -> i64
called by 2: gallerypipeline
59func wt(fd: i64, s: *u8) -> i64
called by 2: gallerypipeline calls 2: wwc
73func hopen(fd: i64) -> i64
called by 1: head calls 3: wcwwq
82func css1(fd: i64) -> i64
called by 1: head calls 1: w
98func css2(fd: i64) -> i64
called by 1: head calls 1: w
107func css3(fd: i64) -> i64
called by 1: head calls 1: w
124func head(fd: i64) -> i64
called by 1: main calls 5: hopencss1css2css3w
134func art(fd: i64) -> i64
called by 1: main calls 3: wwqwc
188func pipeline(fd: i64, stepsf: *u8) -> i64
called by 1: main calls 8: sys_mmapreadallwwqwcpf+2
238func main(argc: i64, argv: *i64) -> i64