INGInious / INGInious/problems-blockly
Only Python code generation is possible
- Vorherrschende Sprache
- JavaScript
- Sterne
- 2
- Forks
- 4
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
Right now, it's only possible to get and show the python translation of the blocks.
This is hardcoded here : https://github.com/UCL-INGI/INGInious-problems-blockly/blob/2e52641c8ca8a95c1c93d704308645dc18aeeb8b/inginious-problems-blockly/static/blockly/blockly.js#L224
There should be an option in the task editor that allows to change that. For example, if one wants to get back the javascript equivalent.
Beitragsleitfaden
Für dieses Repository ist kein Beitragsleitfaden indexiert
Rechercherichtung
Start at static/blockly/blockly.js around line 224, where Python translation is hardcoded, and trace how the task editor supplies configuration. Add an editor option for the available code-generation language, including JavaScript, and verify that the selected translation is returned and shown instead of always using Python.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- javascript
- Bereich
- frontend
- Issue-Typ
- Feature
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 45/100