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

Add more services

parent 51bb2d31
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="blue"></body>
    <body class="green"></body>

    <script type="module" src="/js/portal.mjs"></script>
</html>
+33 −0
Changes for js/components/pages/Start.mjs: 33 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -48,6 +48,39 @@ 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,
                }),
            ]),
        )
    },
+5 −0
Changes for js/components/pieces/PasswordInVault.mjs: 5 added lines, 0 removed lines.
Original line number Diff line number Diff line
export const PasswordInVault = {
    view() {
        return m("span.detail", [m("i.fa-solid.fa-key"), " Passwort im Vault"])
    },
}
+2 −0
Changes for js/components/pieces/Service.mjs: 2 added lines, 0 removed lines.
Original line number Diff line number Diff line
import { AccountRequired } from "./AccountRequired.mjs"
import { BoxedButton } from "./BoxedButton.mjs"
import { PasswordInVault } from "./PasswordInVault.mjs"
import { UnlockRequired } from "./UnlockRequired.mjs"

export const Service = {
@@ -10,6 +11,7 @@ export const Service = {
                vnode.attrs.account &&
                    m(AccountRequired, { accountType: vnode.attrs.account }),
                vnode.attrs.unlockRequired && m(UnlockRequired),
                vnode.attrs.passwordInVault && m(PasswordInVault),
            ]),
        ]
    },