Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JavaScript in Attempts ermöglichen (ohne Unterstützung im SDK-Webserver) #149

Merged
merged 3 commits into from
Feb 13, 2025

Conversation

MartinGauk
Copy link
Contributor

Vorheriger SDK-PR: #133

  • Innerhalb des Attempts kann das Paket per call_js(module, function, data, if_role, if_feedback_type) veranlassen, dass das LMS im Browser eine JS-Funktion aufrufen soll.
  • module kann aktuell nur als volle Referenz in der Form @[package namespace]/[package short name]/[subdir]/[module name].js angegeben werden
  • Das static-files example wird erweitert um ein simples JS-Beispiel.
  • Im Moodle-Plugin erfolgt die Umstellung auf die Einbindung der Frage im iframe, damit die Fragen isoliert werden und wir dort ES6 Modules verwenden können.

Merkwürdigerweise meckert ruff an einer Zeile, obwohl sie kürzer als 120 Zeichen ist. Lokal bei mir beschwert sich ruff nicht.

Abhängig von: questionpy-org/questionpy-server#120

@MartinGauk MartinGauk force-pushed the feat/js-question-text branch from 61319dd to 028203f Compare February 13, 2025 18:32
@MartinGauk MartinGauk force-pushed the feat/js-question-text branch from 028203f to 5b0a2ca Compare February 13, 2025 18:37
@MartinGauk MartinGauk merged commit e49c314 into dev Feb 13, 2025
6 checks passed
@MartinGauk MartinGauk deleted the feat/js-question-text branch February 13, 2025 19:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants