feat: Implement coding exercises category and utilize Codemirror as the code editor#141
Open
mgiannopoulos24 wants to merge 8 commits intogunet:masterfrom
Open
feat: Implement coding exercises category and utilize Codemirror as the code editor#141mgiannopoulos24 wants to merge 8 commits intogunet:masterfrom
mgiannopoulos24 wants to merge 8 commits intogunet:masterfrom
Conversation
Contributor
Author
|
Μια ερώτηση. Χρειάζεται να ανεβάσω όλα τα αρχεία των EDIT: Είδα πως στο |
84c9068 to
f967968
Compare
…eneclass into feat/coding-exercises
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Περιγραφή
Το PR προσθέτει την επιλογή μια άσκηση ελεύθερου κειμένου να γίνει πλέον και άσκηση κώδικα, κάτι που σημαίνει ότι αντί για τον TinyMCE, θα φορτώνεται ο Codemirror editor. Επίσης έγινε μια μικρή διόρθωση στο styling του LaTeX plugin ώστε να είναι μεγαλύτερα τα εικονίδια και να υπάρχουν 8 σύμβολα ανά σειρά.
Issues
Closes #139.
Αλλαγές σε αρχεία
Plugin LaTeX helper
dialog.css: Διόρθωση στο grid templatelatex_codes.js: Διόρθωση προβληματικών συμβόλωνJS
js/build/build.php: Προσθήκη build instruction για το πακέτο του codemirror.Include
include/main_lib.php: Φόρτωση του codemirror.Lang
lang/*/messages.inc.php(el, en): Νέες μεταφράσεις για τις 2 συμβολοσειρές που προστέθηκαν.Modules
FreeTextAnswer.php: Προσθήκη συνθήκης για να γίνει render το codemirror textarea.code_exercise_languages.inc.php: Ένα αρχείο το οποίο αντιστοιχίζει την επιλεγμένη γλώσσα της προγραμματιστικής άσκησης, με το αντίστοιχο codemirror mode αρχείο της γλώσσας. Αυτά τα αρχεία είναι υπεύθυνα για τον χρωματισμό των keywords.statement_admin.inc.php: Κάνει render το checkbox ώστε ο εκπαιδευτής να κάνει την άσκηση μια προγραμματιστική άσκηση.exercise_submit.php: HTML για τον codemirror. (Στο μέλλον θα μπορούσε να μπει και κάποιο customization από τους χρήστες, π.χ. font size, tab indent).Showcase
code_exercise_languages.inc.php.Σημείωση: Τα παραπάνω υλοποιήθηκαν με την έκδοση 5 του Codemirror.