╭ changed ────────╮ │src/main_wasm.zig│ ╰─────────────────╯ ╭───────────╮ │← all files│ ╰───────────╯ ╭──────────────────────────────────────────────────────────────────────────────╮ │75 │ │76 const html = try web.generateHtml(allocator, root_ptr); │ │77 defer allocator.free(html); │ │78 - setHtml(html); │ │78 + _setHtml(html.ptr, @intCast(html.len)); │ │79 │ │80 // emit the overlay (form + inputs + button) on every tick so the wasm│ │81 // layout drives positions, not just the server's initial render. JS │ ╰──────────────────────────────────────────────────────────────────────────────╯ ╭───────────────────────────────────────────────────────────────────────────────╮ │85 // form submission. │ │86 const overlay = try web.generateOverlay(allocator, root_ptr, &session);│ │87 defer allocator.free(overlay); │ │88 - setOverlay(overlay); │ │88 + _setOverlay(overlay.ptr, @intCast(overlay.len)); │ │89 │ │90 const root_focus = root_ptr.getFocus(); │ │91 if (root_focus.grandchild_id) |gid| { │ ╰───────────────────────────────────────────────────────────────────────────────╯ ╭─────────────────────────────────────────────────────────────────────────────────────────────────────╮ │130 // follow a cross-page link │ │131 if (ui.crossPageLink(root_ptr.getFocus(), gid, session.data.current_page)) |route| {│ │132 const url = try route.urlAlloc(&page_arena); │ │133 - navigate(url); │ │133 + _navigate(url.ptr, @intCast(url.len)); │ │134 return; │ │135 } │ │136 } │ ╰─────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭──────────────────────────────────────────────────────────────────────────────────────────────────╮ │144 // follow a cross-page link │ │145 if (ui.crossPageLink(root_ptr.getFocus(), focus_id, session.data.current_page)) |route| {│ │146 const url = try route.urlAlloc(&page_arena); │ │147 - navigate(url); │ │147 + _navigate(url.ptr, @intCast(url.len)); │ │148 return; │ │149 } │ │150 root_ptr.getFocus().setFocus(focus_id); │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭────────────────────────────────────────────────────────────╮ │157 │ │158 fn consoleLog(arg: []const u8) void { │ │159 _consoleLog(arg.ptr, @intCast(arg.len)); │ │160 -} │ │161 - │ │162 -fn setHtml(arg: []const u8) void { │ │163 - _setHtml(arg.ptr, @intCast(arg.len)); │ │164 -} │ │165 - │ │166 -fn setOverlay(arg: []const u8) void { │ │167 - _setOverlay(arg.ptr, @intCast(arg.len)); │ │160 } │ │161 │ │170 -fn navigate(arg: []const u8) void { │ │171 - _navigate(arg.ptr, @intCast(arg.len)); │ │172 -} │ │173 - │ │162 extern fn _consoleLog(arg: [*]const u8, len: u32) void;│ │163 extern fn _setHtml(arg: [*]const u8, len: u32) void; │ │164 extern fn _setOverlay(arg: [*]const u8, len: u32) void;│ ╰────────────────────────────────────────────────────────────╯