feat: cookbook

This commit is contained in:
2025-11-28 14:38:51 +01:00
parent 245dd97532
commit 6895fa4a82
66 changed files with 1093 additions and 3386 deletions

View File

@@ -1,7 +1,8 @@
<script lang="ts">
import { page } from "$app/stores";
import { deviceMeta } from "$lib/serial/connection";
const routes = [
let routes = $derived([
[
{
href: "/config/settings/",
@@ -11,6 +12,9 @@
},
{ href: "/config/chords/", icon: "dictionary", title: "Library" },
{ href: "/config/layout/", icon: "keyboard", title: "Layout" },
...($deviceMeta?.recipes
? [{ href: "/recipes", icon: "skillet", title: "Cookbook" }]
: []),
],
[
{
@@ -47,7 +51,7 @@
wip?: boolean;
external?: boolean;
primary?: boolean;
}[][];
}[][]);
let connectButton: HTMLButtonElement;
</script>