aboutsummaryrefslogtreecommitdiff
path: root/src/app/root.zig
blob: d57faf9f1bda976c379579166e66ebf7fc85b39a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
const builtin = @import("builtin");
const std = @import("std");
const zilch = @import("zilch");

pub const panic = zilch.panic;
pub const std_options: std.Options = .{
    .logFn = zilch.log.default,
};

const components = @import("components/root.zig").components;

pub const app: zilch.App(.{
    .name = "Memora",
    .favicon = "icon.png",
    .functions = &(zilch.Object.functions ++
        zilch.Promise.functions ++
        zilch.Callable.functions),
    .globals = &.{
        zilch.Object.global(.window),
        zilch.Object.global(.Object),
        zilch.Callable.global(.fetch),
    },
    .components = components,
    .body = .parse(@embedFile("index.html")),
    .theme = @embedFile("theme.css"),
}) = .init;

comptime {
    _ = app;
}