Verified Commit 350f865f authored by Jakob Moser's avatar Jakob Moser
Browse files

Migrate unlock to Mithril page

parent 519242c3
Loading
Loading
Loading
Loading
Loading
+1 −1
Changes for js/components/pages/Portal.mjs: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -43,7 +43,7 @@ export const Portal = {
                    unlockRequired: true,
                }),
                m(Service, {
                    href: "/unlock",
                    href: "/#!/unlock",
                    icon: "fa-solid fa-lock",
                    label: "Freischaltung",
                    sameTab: true,
+36 −1
Changes for js/components/pages/Unlock.mjs: 36 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -6,6 +6,41 @@ export const Unlock = {
            "Freischaltung · Portal · Fachschaft Computerlinguistik"
    },
    view() {
        return m(Base)
        return m(
            Base,
            m("article.box", [
                m("h1", "Zugriff auf Dienste freischalten"),
                m("h2", [
                    m("i.fa-regular.fa-envelope"),
                    " Tickets, ",
                    m("i.fa-solid.fa-list-check"),
                    " Todo",
                ]),
                m("p", [
                    "Schreibe eine Mail an ",
                    m(
                        "a",
                        { href: "mailto:fs-technik@cl.uni-heidelberg.de" },
                        m("code", "fs-technik@cl.uni-heidelberg.de"),
                    ),
                    " mit deinem CL-Account-Namen.",
                ]),
                m("h2", [m("i.fa-regular.fa-calendar-days"), " Kalender"]),
                m("p", [
                    "Erstelle einen Account bei StuRaCloud, und schreibe dann eine Mail an ",
                    m(
                        "a",
                        { href: "mailto:fs-technik@cl.uni-heidelberg.de" },
                        m("code", "fs-technik@cl.uni-heidelberg.de"),
                    ),
                    " mit dem Namen des neu erstellten Accounts.",
                ]),
                m("h2", [m("i.fa-regular.fa-note-sticky"), " Protokolle"]),
                m(
                    "p",
                    "Melde dich am GitLab an, und klicke im Protokolle-Repository auf „Request access“.",
                ),
            ]),
        )
    },
}
+0 −2
Changes for js/portal.mjs: 0 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -2,8 +2,6 @@ import { Portal } from "./components/pages/Portal.mjs"
import { Unlock } from "./components/pages/Unlock.mjs"
import "/lib/mithril/mithril.min.js"

// See https://mithril.js.org/route.html#routing-strategies
m.route.prefix = ""
m.route(document.body, "/", {
    "/": Portal,
    "/unlock": Unlock,

unlock/index.html

deleted100644 → 0
+0 −43
Changes for unlock/index.html: 0 added lines, 43 removed lines.
Original line number Diff line number Diff line
<!doctype html>
<html lang="de">
    <head>
        <meta charset="utf-8" />
        <meta name="viewport" content="width=device-width, initial-scale=1.0" />
        <title>Freischaltung · Portal · Fachschaft Computerlinguistik</title>
        <link rel="stylesheet" href="/css/main.css" />
        <link rel="icon" href="/img/portal.svg" />
    </head>

    <body class="blue">
        <main class="box">
            <article>
                <h1>Zugriff auf Dienste freischalten</h1>
                <h2>
                    <i class="fa-regular fa-envelope"></i> Tickets,
                    <i class="fa-solid fa-list-check"></i> Todo
                </h2>
                <p>
                    Schreibe eine Mail an
                    <a href="mailto:fs-technik@cl.uni-heidelberg.de"
                        ><code>fs-technik@cl.uni-heidelberg.de</code></a
                    >
                    mit deinem CL-Account-Namen.
                </p>
                <h2><i class="fa-regular fa-calendar-days"></i> Kalender</h2>
                <p>
                    Erstelle einen Account bei StuRaCloud, und schreibe dann
                    eine Mail an
                    <a href="mailto:fs-technik@cl.uni-heidelberg.de"
                        ><code>fs-technik@cl.uni-heidelberg.de</code></a
                    >
                    mit dem Namen des neu erstellten Accounts.
                </p>
                <h2><i class="fa-regular fa-note-sticky"></i> Protokolle</h2>
                <p>
                    Melde dich am GitLab an, und klicke im Protokolle-Repository
                    auf „Request access“.
                </p>
            </article>
        </main>
    </body>
</html>