Loading index.html +1 −1 Changes for index.html: 1 added line, 1 removed line. Original line number Diff line number Diff line Loading @@ -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> js/components/pages/AllServices.mjs 0 → 100644 +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, }), ]), ) }, } js/components/pages/Start.mjs +0 −33 Changes for js/components/pages/Start.mjs: 0 added lines, 33 removed lines. Original line number Diff line number Diff line Loading @@ -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, }), ]), ) }, Loading js/components/pieces/Nav.mjs +1 −0 Changes for js/components/pieces/Nav.mjs: 1 added line, 0 removed lines. Original line number Diff line number Diff line Loading @@ -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"})), ]), ), ]) Loading js/portal.mjs +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, }) Loading
index.html +1 −1 Changes for index.html: 1 added line, 1 removed line. Original line number Diff line number Diff line Loading @@ -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>
js/components/pages/AllServices.mjs 0 → 100644 +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, }), ]), ) }, }
js/components/pages/Start.mjs +0 −33 Changes for js/components/pages/Start.mjs: 0 added lines, 33 removed lines. Original line number Diff line number Diff line Loading @@ -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, }), ]), ) }, Loading
js/components/pieces/Nav.mjs +1 −0 Changes for js/components/pieces/Nav.mjs: 1 added line, 0 removed lines. Original line number Diff line number Diff line Loading @@ -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"})), ]), ), ]) Loading
js/portal.mjs +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, })