code wiki / _hdl_build / nx_cms_visual_preview.nx

nx_cms_visual_preview.nx

buildroot/runtime/_hdl_build/nx_cms_visual_preview.nx

2466 B30 linesdepth 2pulls 3 transitivereach 0 importersview sourcekind tooltopic cms
docsdependenciesstructsconstsfunctions

about

nx_cms_visual_preview.nx -- emit a STANDALONE, PUBLISHABLE preview of the visual site editor (R-CANVAS v1) so the operator can SEE the field-level editor on nishifamily.com via the content API without deploying the daemon. Reads a .site blueprint, renders it through the same nx_cms_visual_builder form (prefilled), inside a full HTML doc with a clear read-only banner (the functional Save/Preview/Publish lives in nx_siteedit_daemon). usage: nx_cms_visual_preview <config.site> -> full HTML page on stdout license_tier: ORIGINAL

dependencies 2 imports · 0 importers

nx_syscalls.nx nx_cms_visual_builder.nx nx_cms_visual_preview.nx

imports: nx_syscalls.nxnx_cms_visual_builder.nx

imported by: nobody (leaf or entry point)

call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown

main vp_w sys_write sys_mmap sys_read_file sys_openat_rd sys_lseek sys_mmap ↻ sys_read sys_close vp_wcat sys_write ↻

structs

none

consts

9const K_MAGIC_600000: i64 = 600000

functions

11func vp_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 1: main calls 1: sys_write
13func main(argc: i64, argv: *i64) -> i64
30func vp_wcat(buf: *u8, off: i64, s: *u8) -> i64 { var o: i64=off; var i: i64=0; while s[i]!=(0 as u8){buf[o]=s[i]; o=o+1; i=i+1} return o }