nx_wflow_ui.nx
buildroot/runtime/nx_wflow_ui.nx
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
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
structs
| none |
consts
| 11 | const K_MAGIC_262144: i64 = 262144 |
functions
| 13 | func 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 } |
| 14 | func wc(fd: i64, code: i64) -> i64 { let t: *u8=sys_mmap(2); t[0]=code as u8; sys_write(fd,t,1); return 0 } |
| 15 | func wq(fd: i64) -> i64 { wc(fd,34); return 0 } |
| 16 | func 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 } |
| 17 | func slen(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} return n } |
| 18 | func 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 |
| 19 | func 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 |
| 20 | func badge(fd: i64, a: *u8) -> i64 |
| 31 | func readall(path: *u8, szp: *i64) -> *u8 |
| 49 | func pf(s: *u8, idx: i64, out: *u8, cap: i64) -> i64 |
| 59 | func wt(fd: i64, s: *u8) -> i64 |
| 73 | func hopen(fd: i64) -> i64 |
| 82 | func css1(fd: i64) -> i64 |
| 98 | func css2(fd: i64) -> i64 |
| 107 | func css3(fd: i64) -> i64 |
| 124 | func head(fd: i64) -> i64 |
| 134 | func art(fd: i64) -> i64 |
| 147 | func gallery(fd: i64, dir: *u8) -> i64 |
| 188 | func pipeline(fd: i64, stepsf: *u8) -> i64 |
| 238 | func main(argc: i64, argv: *i64) -> i64 |