Add main UI js file

This commit is contained in:
Jakob Moser 2025-11-13 00:16:41 +01:00
parent 4fa29a9161
commit a5c50bd8f9
Signed by: jakob
GPG Key ID: 3EF2BA2851B3F53C

View File

@ -0,0 +1,15 @@
import "./lib/mithril.min.js"
import All from "./components/pages/All.js"
import Favorites from "./components/pages/Favorites.js"
/*
* We leave the default routing strategy (https://mithril.js.org/route.html#routing-strategies), i.e.,
* with a #! prefix, and do not change m.route.prefix.
*
* This is to make it easier to deploy this app on servers without changing the configuration.
*/
m.route(document.body, "/all", {
"/all": All,
"/favorites": Favorites,
})