From ca556370259f100b3f21dd10344741fcf4d48597 Mon Sep 17 00:00:00 2001 From: Autumn Date: Mon, 11 May 2026 20:56:57 +0100 Subject: [pages] added basic devices route --- src/views/pages/dashboard/devices.pug | 27 +++++++++++++++++++++++++++ src/views/pages/dashboard/home.pug | 8 +++++++- 2 files changed, 34 insertions(+), 1 deletion(-) create mode 100644 src/views/pages/dashboard/devices.pug (limited to 'src/views/pages/dashboard') diff --git a/src/views/pages/dashboard/devices.pug b/src/views/pages/dashboard/devices.pug new file mode 100644 index 0000000..1175136 --- /dev/null +++ b/src/views/pages/dashboard/devices.pug @@ -0,0 +1,27 @@ +doctype html + +html + + head + + include ../../components/head.pug + + title Devices | Home Control + + body + + include ../../components/dashboard/sidebar.pug + + main + + h1 Devices + + if !devices || devices.length < 1 + + p No devices :( + + else + + each device in devices + + p= JSON.stringify(device) diff --git a/src/views/pages/dashboard/home.pug b/src/views/pages/dashboard/home.pug index 1faf2df..c5267bf 100644 --- a/src/views/pages/dashboard/home.pug +++ b/src/views/pages/dashboard/home.pug @@ -4,8 +4,14 @@ html head + include ../../components/head.pug + title Dashboard | Home Control body - p Home Control + include ../../components/dashboard/sidebar.pug + + main + + h1 Home Control -- cgit v1.3