Implement layout and device list page
This commit is contained in:
1 parent
f33717acb0
commit
1c9061ab5a
19 files changed
+1151
-30
No files matched your search
@@ -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;
|
||||
Reference in new issue
Block a user