diff options
| author | Florian Fischer <florian.fischer@muhq.space> | 2026-05-28 15:20:46 +0200 |
|---|---|---|
| committer | Florian Fischer <florian.fischer@muhq.space> | 2026-05-28 15:20:46 +0200 |
| commit | f9a9fa15d6d61eb9730183193ce8af29bdfc17e7 (patch) | |
| tree | c3b96a36623e52f22d281b518d7136795cf82b8a /cockpit/js/config.js | |
| download | bycs-sol-f9a9fa15d6d61eb9730183193ce8af29bdfc17e7.tar.gz bycs-sol-f9a9fa15d6d61eb9730183193ce8af29bdfc17e7.zip | |
cockpit: initial commit
Diffstat (limited to 'cockpit/js/config.js')
| -rw-r--r-- | cockpit/js/config.js | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/cockpit/js/config.js b/cockpit/js/config.js new file mode 100644 index 0000000..6ec5831 --- /dev/null +++ b/cockpit/js/config.js @@ -0,0 +1,38 @@ +const GRADUATION_DB = "https://lernplattform.bycs.de/mod/data/view.php?d=262744"; +const GRADUATION_DB_PARAMS_MAP = { + id: "f_1133275", + // name: "f_1130848", + // group: "f_1130869", + change: "f_1133254", + reason: "f_1130860", + date: (date) => { + return { + f_1130863_d: date.getDate(), + f_1130863_m: date.getMonth(), + f_1130863_y: date.getFullYear(), + f_1130863_z: 1, + }; + }, + time: "f_1133248", + coach: "f_1130866", +} + +const courseId = 2466361; +function getCourseId() { + return courseId; +} + +function getUserIconUrl(userId) { + return `https://lernplattform.bycs.de/pluginfile.php/${userId}/user/icon`; +} + +function getCourseParticipantsUrl() { + return `https://lernplattform.bycs.de/user/index.php?id=${courseId}`; +} + +export { + GRADUATION_DB, GRADUATION_DB_PARAMS_MAP, + getCourseId, + getUserIconUrl, + getCourseParticipantsUrl +}; |
