Verified Commit 19253071 authored by Jakob Moser's avatar Jakob Moser
Browse files

Add second page for all services

parent cd663245
Loading
Loading
Loading
Loading
+1 −1
Changes for index.html: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -8,7 +8,7 @@
        <link rel="icon" href="/img/portal.svg" />
    </head>

    <body class="green"></body>
    <body class="blue"></body>

    <script type="module" src="/js/portal.mjs"></script>
</html>
+87 −0
Changes for js/components/pages/AllServices.mjs: 87 added lines, 0 removed lines.
Original line number Diff line number Diff line
import { Service } from "../pieces/Service.mjs"
import { Base } from "./Base.mjs"

export const All = {
    oncreate() {
        document.title = "Alle Dienste · FS Coli Portal"
    },
    view() {
        return m(
            Base,
            m("article.tools", [
                m(Service, {
                    href: "https://fachschaft.cl.uni-heidelberg.de/meet",
                    icon: "fa-solid fa-phone-volume",
                    label: "Meeting",
                }),
                m(Service, {
                    href: "https://fachschaft.cl.uni-heidelberg.de/tickets",
                    icon: "fa-regular fa-envelope",
                    label: "Tickets",
                    account: "CL-Account",
                    unlockRequired: true,
                }),
                m(Service, {
                    href: "https://fachschaft.cl.uni-heidelberg.de/todo",
                    icon: "fa-solid fa-list-check",
                    label: "Todo",
                    account: "CL-Account",
                    unlockRequired: true,
                }),
                m(Service, {
                    href: "https://fachschaft.cl.uni-heidelberg.de/docs/Kalender",
                    icon: "fa-regular fa-calendar-days",
                    label: "Kalender",
                    account: "Eigener Account",
                    unlockRequired: true,
                }),
                m(Service, {
                    href: "https://fachschaft.cl.uni-heidelberg.de/protokolle",
                    icon: "fa-regular fa-note-sticky",
                    label: "Protokolle",
                    account: "CL-Account",
                    unlockRequired: true,
                }),
                m(Service, {
                    href: "/#!/unlock",
                    icon: "fa-solid fa-lock",
                    label: "Freischaltung",
                    sameTab: true,
                }),
                m(Service, {
                    href: "https://bitwarden.stura.uni-heidelberg.de",
                    icon: "fa-solid fa-key",
                    label: "Passwörter",
                    account: "Eigener Account",
                    unlockRequired: true,
                }),
                m(Service, {
                    href: "https://status.fsco.li",
                    icon: "fa-solid fa-heart-pulse",
                    label: "Status",
                }),
                m(Service, {
                    href: "https://automation.fachschaft.cl.uni-heidelberg.de",
                    icon: "fa-solid fa-robot",
                    label: "Mailobert & Co.",
                    account: "Geteilter Account",
                    passwordInVault: true,
                }),
                m(Service, {
                    href: "https://traefik.fachschaft.cl.uni-heidelberg.de",
                    icon: "fa-solid fa-globe",
                    label: "Traefik",
                    account: "Geteilter Account",
                    passwordInVault: true,
                }),
                m(Service, {
                    href: "https://fachschaft.cl.uni-heidelberg.de/wp-admin",
                    icon: "fa-brands fa-wordpress",
                    label: "Website-Admin",
                    account: "CL-Account",
                    unlockRequired: true,
                }),
            ]),
        )
    },
}
+0 −33
Changes for js/components/pages/Start.mjs: 0 added lines, 33 removed lines.
Original line number Diff line number Diff line
@@ -48,39 +48,6 @@ export const Start = {
                    label: "Freischaltung",
                    sameTab: true,
                }),
                m(Service, {
                    href: "https://bitwarden.stura.uni-heidelberg.de",
                    icon: "fa-solid fa-key",
                    label: "Passwörter",
                    account: "Eigener Account",
                    unlockRequired: true,
                }),
                m(Service, {
                    href: "https://status.fsco.li",
                    icon: "fa-solid fa-heart-pulse",
                    label: "Status",
                }),
                m(Service, {
                    href: "https://automation.fachschaft.cl.uni-heidelberg.de",
                    icon: "fa-solid fa-robot",
                    label: "Mailobert & Co.",
                    account: "Geteilter Account",
                    passwordInVault: true,
                }),
                m(Service, {
                    href: "https://traefik.fachschaft.cl.uni-heidelberg.de",
                    icon: "fa-solid fa-globe",
                    label: "Traefik",
                    account: "Geteilter Account",
                    passwordInVault: true,
                }),
                m(Service, {
                    href: "https://fachschaft.cl.uni-heidelberg.de/wp-admin",
                    icon: "fa-brands fa-wordpress",
                    label: "Website-Admin",
                    account: "CL-Account",
                    unlockRequired: true,
                }),
            ]),
        )
    },
+1 −0
Changes for js/components/pieces/Nav.mjs: 1 added line, 0 removed lines.
Original line number Diff line number Diff line
@@ -7,6 +7,7 @@ export const Nav = {
                "section.left",
                m("ul", [
                    m("li", m(NavPageLink, { href: "/", label: "Start" })),
                    m("li", m(NavPageLink, { href: "/all-services", label: "Alle Dienste"})),
                ]),
            ),
        ])
+2 −0
Changes for js/portal.mjs: 2 added lines, 0 removed lines.
Original line number Diff line number Diff line
import { All } from "./components/pages/AllServices.mjs"
import { Start } from "./components/pages/Start.mjs"
import { Unlock } from "./components/pages/Unlock.mjs"
import "/lib/mithril/mithril.min.js"

m.route(document.body, "/", {
    "/": Start,
    "/all-services": All,
    "/unlock": Unlock,
})