aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathan Reiner <nathan@nathanreiner.xyz>2026-10-09 14:01:20 +0200
committerNathan Reiner <nathan@nathanreiner.xyz>2026-10-09 14:01:20 +0200
commit32a251aa9645de070727a6ec91490d3e9219ec7c (patch)
tree5dd55205c5df68fa449e766ec2a8d248e21bd2be
parent09e8d4548361ece6151b914709c39e254eba65e3 (diff)
rename z framework to zeroscript
-rw-r--r--build.zig8
-rw-r--r--src/app/components/icons/root.zig8
-rw-r--r--src/app/components/navbutton/root.zig16
-rw-r--r--src/app/components/root.zig4
-rw-r--r--src/app/root.zig12
-rw-r--r--src/root.zig2
-rw-r--r--src/zeroscript/App/main.js (renamed from src/z/App/main.js)0
-rw-r--r--src/zeroscript/App/object-store.js (renamed from src/z/App/object-store.js)0
-rw-r--r--src/zeroscript/App/root.zig (renamed from src/z/App/root.zig)0
-rw-r--r--src/zeroscript/App/symbols.js (renamed from src/z/App/symbols.js)0
-rw-r--r--src/zeroscript/AppBundle.zig (renamed from src/z/AppBundle.zig)6
-rw-r--r--src/zeroscript/Component.zig (renamed from src/z/Component.zig)0
-rw-r--r--src/zeroscript/Env/call.zig (renamed from src/z/Env/call.zig)0
-rw-r--r--src/zeroscript/Env/future.zig (renamed from src/z/Env/future.zig)0
-rw-r--r--src/zeroscript/Env/js.zig (renamed from src/z/Env/js.zig)0
-rw-r--r--src/zeroscript/Env/root.zig (renamed from src/z/Env/root.zig)0
-rw-r--r--src/zeroscript/Env/value.zig (renamed from src/z/Env/value.zig)0
-rw-r--r--src/zeroscript/Object.zig (renamed from src/z/Object.zig)0
-rw-r--r--src/zeroscript/html/Attribute.zig (renamed from src/z/html/Attribute.zig)0
-rw-r--r--src/zeroscript/html/Document.zig (renamed from src/z/html/Document.zig)0
-rw-r--r--src/zeroscript/html/Fragment.zig (renamed from src/z/html/Fragment.zig)0
-rw-r--r--src/zeroscript/html/Tag.zig (renamed from src/z/html/Tag.zig)0
-rw-r--r--src/zeroscript/html/element.zig (renamed from src/z/html/element.zig)0
-rw-r--r--src/zeroscript/html/parser.zig (renamed from src/z/html/parser.zig)0
-rw-r--r--src/zeroscript/html/root.zig (renamed from src/z/html/root.zig)0
-rw-r--r--src/zeroscript/log/js.zig (renamed from src/z/log/js.zig)0
-rw-r--r--src/zeroscript/log/root.zig (renamed from src/z/log/root.zig)0
-rw-r--r--src/zeroscript/root.zig (renamed from src/z/root.zig)0
28 files changed, 28 insertions, 28 deletions
diff --git a/build.zig b/build.zig
index 5ab9bbc..9e80a7c 100644
--- a/build.zig
+++ b/build.zig
@@ -1,6 +1,6 @@
const std = @import("std");
-const AppBundle = @import("src/z/AppBundle.zig");
+const AppBundle = @import("src/zeroscript/AppBundle.zig");
pub fn build(b: *std.Build) void {
const target = b.standardTargetOptions(.{});
@@ -31,15 +31,15 @@ pub fn build(b: *std.Build) void {
api_mod.addImport("http", http_mod);
- const z_mod = b.addModule("z", .{
- .root_source_file = b.path("src/z/root.zig"),
+ const zeroscript_mod = b.addModule("zeroscript", .{
+ .root_source_file = b.path("src/zeroscript/root.zig"),
.target = target,
});
const site: AppBundle = .init(b, .{
.root_source_file = b.path("src/app/root.zig"),
.target = target,
- }, z_mod);
+ }, zeroscript_mod);
const exe = b.addExecutable(.{
.name = "memora",
diff --git a/src/app/components/icons/root.zig b/src/app/components/icons/root.zig
index a2b0fa6..298cfa6 100644
--- a/src/app/components/icons/root.zig
+++ b/src/app/components/icons/root.zig
@@ -1,16 +1,16 @@
-const z = @import("z");
+const zs = @import("zeroscript");
-pub const icons: []const z.Component = &.{
+pub const icons: []const zs.Component = &.{
icon("menu"),
icon("upload"),
icon("settings"),
};
const Icon = struct {
- pub fn init(_: *@This(), _: *z.Object) void {}
+ pub fn init(_: *@This(), _: *zs.Object) void {}
};
-pub fn icon(name: []const u8) z.Component {
+pub fn icon(name: []const u8) zs.Component {
return .{
.namespace = "icon",
.name = name,
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"});
diff --git a/src/app/components/root.zig b/src/app/components/root.zig
index 934279f..131ddb7 100644
--- a/src/app/components/root.zig
+++ b/src/app/components/root.zig
@@ -1,7 +1,7 @@
-const z = @import("z");
+const zs = @import("zeroscript");
const icons = @import("icons/root.zig").icons;
-pub const components: []const z.Component = &[_]z.Component{
+pub const components = &[_]zs.Component{
@import("navbutton/root.zig").component,
} ++ icons;
diff --git a/src/app/root.zig b/src/app/root.zig
index 2b3554c..bbd07d2 100644
--- a/src/app/root.zig
+++ b/src/app/root.zig
@@ -1,19 +1,19 @@
const builtin = @import("builtin");
const std = @import("std");
-const z = @import("z");
+const zs = @import("zeroscript");
-pub const panic = z.panic;
+pub const panic = zs.panic;
pub const std_options: std.Options = .{
- .logFn = z.log.default,
+ .logFn = zs.log.default,
};
const components = @import("components/root.zig").components;
-pub const app: z.App(.{
+pub const app: zs.App(.{
.name = "Memora",
.globals = &.{
- z.Object.global(.window),
- z.Object.global(.Object),
+ zs.Object.global(.window),
+ zs.Object.global(.Object),
},
.components = components,
.body = .parse(@embedFile("index.html")),
diff --git a/src/root.zig b/src/root.zig
index 0cd7c71..dd32a7d 100644
--- a/src/root.zig
+++ b/src/root.zig
@@ -3,5 +3,5 @@
pub const db = @import("db");
pub const api = @import("api");
pub const html = @import("html");
-pub const z = @import("z");
+pub const zeroscript = @import("zeroscript");
pub const http = @import("http");
diff --git a/src/z/App/main.js b/src/zeroscript/App/main.js
index 265c886..265c886 100644
--- a/src/z/App/main.js
+++ b/src/zeroscript/App/main.js
diff --git a/src/z/App/object-store.js b/src/zeroscript/App/object-store.js
index 096d085..096d085 100644
--- a/src/z/App/object-store.js
+++ b/src/zeroscript/App/object-store.js
diff --git a/src/z/App/root.zig b/src/zeroscript/App/root.zig
index 52cbfc2..52cbfc2 100644
--- a/src/z/App/root.zig
+++ b/src/zeroscript/App/root.zig
diff --git a/src/z/App/symbols.js b/src/zeroscript/App/symbols.js
index 3df42b4..3df42b4 100644
--- a/src/z/App/symbols.js
+++ b/src/zeroscript/App/symbols.js
diff --git a/src/z/AppBundle.zig b/src/zeroscript/AppBundle.zig
index a99de2c..1d4ebb9 100644
--- a/src/z/AppBundle.zig
+++ b/src/zeroscript/AppBundle.zig
@@ -11,11 +11,11 @@ wasm: struct {
exe: *std.Build.Step.Compile,
},
-pub fn init(b: *std.Build, options: Options, z_mod: anytype) @This() {
+pub fn init(b: *std.Build, options: Options, zeroscript_mod: *std.Build.Module) @This() {
const module = b.addModule("site", .{
.root_source_file = options.root_source_file,
.target = options.target,
- .imports = &.{ .{ .name = "z", .module = z_mod } },
+ .imports = &.{ .{ .name = "zeroscript", .module = zeroscript_mod } },
});
const wasm_module = b.createModule(.{
@@ -24,7 +24,7 @@ pub fn init(b: *std.Build, options: Options, z_mod: anytype) @This() {
.cpu_arch = .wasm32,
.os_tag = .freestanding,
}),
- .imports = &.{ .{ .name = "z", .module = z_mod } },
+ .imports = &.{ .{ .name = "zeroscript", .module = zeroscript_mod } },
});
const exe = b.addExecutable(.{
diff --git a/src/z/Component.zig b/src/zeroscript/Component.zig
index 2f92b70..2f92b70 100644
--- a/src/z/Component.zig
+++ b/src/zeroscript/Component.zig
diff --git a/src/z/Env/call.zig b/src/zeroscript/Env/call.zig
index a5db835..a5db835 100644
--- a/src/z/Env/call.zig
+++ b/src/zeroscript/Env/call.zig
diff --git a/src/z/Env/future.zig b/src/zeroscript/Env/future.zig
index a014990..a014990 100644
--- a/src/z/Env/future.zig
+++ b/src/zeroscript/Env/future.zig
diff --git a/src/z/Env/js.zig b/src/zeroscript/Env/js.zig
index c1ff85d..c1ff85d 100644
--- a/src/z/Env/js.zig
+++ b/src/zeroscript/Env/js.zig
diff --git a/src/z/Env/root.zig b/src/zeroscript/Env/root.zig
index 6fd2bab..6fd2bab 100644
--- a/src/z/Env/root.zig
+++ b/src/zeroscript/Env/root.zig
diff --git a/src/z/Env/value.zig b/src/zeroscript/Env/value.zig
index 59b788f..59b788f 100644
--- a/src/z/Env/value.zig
+++ b/src/zeroscript/Env/value.zig
diff --git a/src/z/Object.zig b/src/zeroscript/Object.zig
index 064d48b..064d48b 100644
--- a/src/z/Object.zig
+++ b/src/zeroscript/Object.zig
diff --git a/src/z/html/Attribute.zig b/src/zeroscript/html/Attribute.zig
index 1db49a0..1db49a0 100644
--- a/src/z/html/Attribute.zig
+++ b/src/zeroscript/html/Attribute.zig
diff --git a/src/z/html/Document.zig b/src/zeroscript/html/Document.zig
index b1122e1..b1122e1 100644
--- a/src/z/html/Document.zig
+++ b/src/zeroscript/html/Document.zig
diff --git a/src/z/html/Fragment.zig b/src/zeroscript/html/Fragment.zig
index d05ad4a..d05ad4a 100644
--- a/src/z/html/Fragment.zig
+++ b/src/zeroscript/html/Fragment.zig
diff --git a/src/z/html/Tag.zig b/src/zeroscript/html/Tag.zig
index 90b5641..90b5641 100644
--- a/src/z/html/Tag.zig
+++ b/src/zeroscript/html/Tag.zig
diff --git a/src/z/html/element.zig b/src/zeroscript/html/element.zig
index 739eb0b..739eb0b 100644
--- a/src/z/html/element.zig
+++ b/src/zeroscript/html/element.zig
diff --git a/src/z/html/parser.zig b/src/zeroscript/html/parser.zig
index 38b28bb..38b28bb 100644
--- a/src/z/html/parser.zig
+++ b/src/zeroscript/html/parser.zig
diff --git a/src/z/html/root.zig b/src/zeroscript/html/root.zig
index 7bf91e8..7bf91e8 100644
--- a/src/z/html/root.zig
+++ b/src/zeroscript/html/root.zig
diff --git a/src/z/log/js.zig b/src/zeroscript/log/js.zig
index 16f562c..16f562c 100644
--- a/src/z/log/js.zig
+++ b/src/zeroscript/log/js.zig
diff --git a/src/z/log/root.zig b/src/zeroscript/log/root.zig
index ba9141e..ba9141e 100644
--- a/src/z/log/root.zig
+++ b/src/zeroscript/log/root.zig
diff --git a/src/z/root.zig b/src/zeroscript/root.zig
index 321bde4..321bde4 100644
--- a/src/z/root.zig
+++ b/src/zeroscript/root.zig