aboutsummaryrefslogtreecommitdiff
path: root/js/config.js
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fischer@muhq.space>2026-07-19 11:55:51 +0200
committerFlorian Fischer <florian.fischer@muhq.space>2026-07-19 12:07:12 +0200
commit369fbaa84bdb86d91752c53824bb3b13c45b483f (patch)
tree5c1dca9eb4581a1de8c0862ba776528a4bedcf41 /js/config.js
parentdd52c913c454b9a6cf9ab7e7b102f9e7ede31754 (diff)
downloadbycs-sol-369fbaa84bdb86d91752c53824bb3b13c45b483f.tar.gz
bycs-sol-369fbaa84bdb86d91752c53824bb3b13c45b483f.zip
misc commit
Included changes: * Cache the fetched students * Add level icons * Improve mass-graduation interface * Move utility functions from config.js to utils-ENV.js
Diffstat (limited to 'js/config.js')
-rw-r--r--js/config.js29
1 files changed, 0 insertions, 29 deletions
diff --git a/js/config.js b/js/config.js
index 5fc456c..e69de29 100644
--- a/js/config.js
+++ b/js/config.js
@@ -1,29 +0,0 @@
-const courseId = 2466361;
-function getCourseId() {
- return courseId;
-}
-
-// TODO(muhq): retrieve when loading activities/DBs
-const cockpidId = 93017047;
-function getCockpitId() {
- return cockpidId;
-}
-
-function getCourseParticipantsUrl() {
- return `https://lernplattform.bycs.de/user/index.php?id=${courseId}`;
-}
-
-async function getUserIconUrl(userId) {
- console.assert(userId, "getUserIconUrl needs a userId");
- const userRes = await fetch(`https://lernplattform.bycs.de/user/profile.php?id=${userId}`)
- const userDoc = new DOMParser().parseFromString(await userRes.text(), 'text/html')
- const userpicture = userDoc.querySelector(".userpicture");
- return userpicture ? userpicture.src : "";
-}
-
-export {
- getCourseId,
- getCockpitId,
- getUserIconUrl,
- getCourseParticipantsUrl
-};