This single-page client-only web app is available for download and execution in you browser here: https://fileadmin.cs.lth.se/pgk/kaptenalloc/ There you can filter the schedule of this course: https://cs.lth.se/pgk
The app also attempts to fetch the updated schedule from TimeEdit on page load in order to check for discrepancies between the saved data and TimeEdit. For this to work, the correct TimeEdit schedule URL must be set in main.scala, as shown here:
val timeEditScheduleUrl = "https://cloud.timeedit.net/lu/web/lth1/XXXXXXXXXXX.csv"The static allocation data string is created by the closed source terminal app called Kapten Alloc that solves the hard problem of scheduling under constraints using the fantastic Scala 3 with Scala JS. It is built using sbt.
When changing Scala version you need to edit all these:
build.sbtafter scalaVersionpublish.shin path of targetindex-dev.htmlin path in script tag
sbt fastLinkJS
Open index-dev.html in your browser with File->Open.
Can only be done with owner of the right credentials to fileadmin@cs: sh publish.sh
There are no releases in this repo; we run on bleeding-edge master branch.
When publishing using publish.sh this script changes the version for JavaScript file main.js in src attribute of script tag in index.html.
Example:
Version change from
<script type="text/javascript" src="https://fileadmin.cs.lth.se/pgk/kaptenalloc/main.js?version=1"></script>to
<script type="text/javascript" src="https://fileadmin.cs.lth.se/pgk/kaptenalloc/main.js?version=2"></script>Before running publish.sh check that everything looks ok.