From 32a251aa9645de070727a6ec91490d3e9219ec7c Mon Sep 17 00:00:00 2001 From: Nathan Reiner Date: Fri, 9 Oct 2026 14:01:20 +0200 Subject: rename z framework to zeroscript --- src/app/components/navbutton/root.zig | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'src/app/components/navbutton') diff --git a/src/app/components/navbutton/root.zig b/src/app/components/navbutton/root.zig index 1078924..7704b90 100644 --- a/src/app/components/navbutton/root.zig +++ b/src/app/components/navbutton/root.zig @@ -1,23 +1,23 @@ const std = @import("std"); -const z = @import("z"); +const zs = @import("zeroscript"); const Self = @This(); -pub const component: z.Component = .{ +pub const component: zs.Component = .{ .name = "navbutton", .html = .parse(@embedFile("index.html")), .css = @embedFile("index.css"), .link = @This(), }; -element: *z.Object, -shadow_root: *z.Object, +element: *zs.Object, +shadow_root: *zs.Object, button: struct { - classList: *z.Object, + classList: *zs.Object, }, -pub fn init(self: *Self, element: *z.Object) !void { - var env: z.Env = .default; +pub fn init(self: *Self, element: *zs.Object) !void { + var env: zs.Env = .default; defer env.deinit(); self.element = element; @@ -28,7 +28,7 @@ pub fn init(self: *Self, element: *z.Object) !void { } pub fn open(self: *Self) !void { - var env: z.Env = .default; + var env: zs.Env = .default; defer env.deinit(); _ = self.button.classList.call(&env, "toggle", .{"open"}); -- cgit v1.2.3-70-g09d2