Implement layout and device list page

This commit is contained in:
Zaid Abdulla committed 2018-12-26 00:20:45 -08:00
1 parent f33717acb0
commit 1c9061ab5a
19 files changed
+1151 -30

No files matched your search

+27
View File
@@ -0,0 +1,27 @@
"use strict";
import m from "mithril";
const menu = {
view: vnode => {
const active = { [vnode.attrs.page]: "active" };
return m(
"nav",
m("ul", [
m(
"li",
{ class: active["overview"] },
m("a", { href: "#!/overview" }, "Overview")
),
m(
"li",
{ class: active["devices"] },
m("a", { href: "#!/devices" }, "Devices")
)
])
);
}
};
export default menu;