Verified Commit 3719b88a authored by ChefExperte's avatar ChefExperte Committed by Jakob Moser
Browse files

Add calender tab showing coli calender at StuRa cloud

parent 7018a073
Loading
Loading
Loading
Loading
Loading
+18 −0
Original line number Diff line number Diff line
import { Base } from "./Base.mjs"

export const Calendar = {
    oncreate() {
        document.title = "Kalender · FS Coli Portal"
    },
    view() {
        return m(Base, [
            m("section", [
                m("iframe", {
                  src: "https://cloud.stura.uni-heidelberg.de/index.php/apps/calendar/embed/HptQm9caKgi2kirx/dayGridMonth/now",
                  style: {width: "90vw", height: "80vh", borderRadius: "20px", overflow: "hidden"},
                  frameborder: "0"
                })
            ]),
        ])
    },
}
+7 −0
Original line number Diff line number Diff line
@@ -54,6 +54,13 @@ export const Nav = {
                                label: "Uni-Dienste",
                            }),
                        ),
                        m(
                            "li",
                            m(NavPageLink, {
                                href: "/calendar",
                                label: "Kalender",
                            }),
                        ),
                    ]),
                ),
                m(
+2 −0
Original line number Diff line number Diff line
@@ -4,6 +4,7 @@ import { UniServices } from "./components/pages/UniServices.mjs"
import { Tacos } from "./components/pages/Tacos.mjs"
import { Unlock } from "./components/pages/Unlock.mjs"
import { Fachschaftssitzung } from "./components/pages/Fachschaftssitzung.mjs"
import { Calendar } from "./components/pages/Calendar.mjs"
import { Login } from "./components/pages/Login.mjs"
import { Me } from "./components/pages/Me.mjs"
import "/static/lib/mithril/mithril.min.js"
@@ -23,6 +24,7 @@ m.route(document.body, "/", {
    "/unlock": Unlock,
    "/fachschaftssitzung": Fachschaftssitzung,
    "/tacos": Tacos,
    "/calendar": Calendar,
    "/login": Login,
    "/me": Me,
})