Add sqlite/update jetzig

This commit is contained in:
Samuel Webb 2024-04-07 13:58:52 -04:00
parent 8a5666c4e9
commit a3a5e37225
3 changed files with 20 additions and 4 deletions

View file

@ -15,10 +15,20 @@ pub fn build(b: *std.Build) !void {
// Example dependency:
const iguanas_dep = b.dependency("iguanas", .{ .optimize = optimize, .target = target });
exe.root_module.addImport("iguanas", iguanas_dep.module("iguanas"));
const sqlite = b.dependency("sqlite", .{
.target = target,
.optimize = optimize,
});
exe.root_module.addImport("sqlite", sqlite.module("sqlite"));
// links the bundled sqlite3, so leave this out if you link the system one
exe.linkLibrary(sqlite.artifact("sqlite"));
// All dependencies **must** be added to imports above this line.
try jetzig.jetzigInit(b, exe, .{});
try jetzig.jetzigInit(b, exe, .{.zmpl_version = .v2});
b.installArtifact(exe);

View file

@ -16,13 +16,17 @@
// internet connectivity.
.dependencies = .{
.jetzig = .{
.url = "https://github.com/jetzig-framework/jetzig/archive/31e8ae36e1d7f68166114eefb867c23df352d537.tar.gz",
.hash = "1220d368ce21549ccd721d5f303888986fff5714835b1f266a62e329f85eabec8f19",
.url = "https://github.com/jetzig-framework/jetzig/archive/68ca4d3bbad05880e6e38fc6d10e7a24e772081e.tar.gz",
.hash = "122047ebabab1dfe1bb7f96ffdac98410ffb4850b06dc6b1670ce74aaeaa49bdc08e",
},
.iguanas = .{
.url = "https://github.com/jetzig-framework/iguanas/archive/89c2abf29de0bc31054a9a6feac5a6a83bab0459.tar.gz",
.hash = "12202fd319a5ab4e124b00e8ddea474d07c19c4e005d77b6c29fc44860904ea01a5c",
},
.sqlite = .{
.url = "https://github.com/vrischmann/zig-sqlite/archive/a3095ac.tar.gz",
.hash = "12203f7d14722debe8f1a2168f28a262aaa5ec2457a7a975fc7dcc1123ed11597c98",
}
},
.paths = .{
// This makes *all* files, recursively, included in this package. It is generally

View file

@ -13,6 +13,8 @@
<div>Visit <a class="font-bold text-[#39b54a]" href="https://jetzig.dev/">jetzig.dev</a> to get started.
<div>Join our Discord server and introduce yourself:</div>
<div>
<a class="font-bold text-[#39b54a]" href="https://discord.gg/eufqssz7X6">https://discord.gg/eufqssz7X6</a>
<a class="font-bold text-[#39b54a]">Search for an artist, album, or song:</a>
<input type="text" name="search" hx-include="[name='search']" hx-get="/test" hx-trigger="keyup[keyCode==13]">
<button type="button" hx-include="[name='search']" hx-get="/test">You whattup</button>
</div>
</div>