Migrate to mithril.js

This commit is contained in:
2023-02-18 09:22:43 +03:00
parent 024d7fb10d
commit bdc8f8496f
79 changed files with 1697 additions and 149 deletions

View File

@@ -0,0 +1,21 @@
function layout_decorator(controller) {
return {
render: function(vnode) {
return m(Layout, m(controller, vnode.attrs))
}
}
};
function Layout() {
return {
view: function(vnode) {
let result = [
m(MenuGeneral),
// m(SearchBar),
m("section", vnode.children),
m(Footer),
m(Backtotop),
];
return result;
}
}
};