MDL-76432 core_courseformat: migrate file drag and drop
authorFerran Recio <ferran@moodle.com>
Thu, 1 Dec 2022 14:44:38 +0000 (15:44 +0100)
committerFerran Recio <ferran@moodle.com>
Mon, 6 Feb 2023 11:59:25 +0000 (12:59 +0100)
commit1113f8328e2d53feff79021f730fbae0111673f8
tree9d065c9013de65d3fe9d3234598f93037f2bc865
parenta3f116367e229519bd67c50ddae4e0240ac6f4d4
MDL-76432 core_courseformat: migrate file drag and drop

Replace the old course/dragdrop.js file (which was not even minimised)
to AMD modules and integrate them to the new reactive course editor.
From now on, a file can be drop over any course section, no matter if it
is in the course content or in the course index. It will also start
using the new process monitor to show the uploading state to the user.
20 files changed:
course/format/amd/build/local/courseeditor/courseeditor.min.js
course/format/amd/build/local/courseeditor/courseeditor.min.js.map
course/format/amd/build/local/courseeditor/dndsection.min.js
course/format/amd/build/local/courseeditor/dndsection.min.js.map
course/format/amd/build/local/courseeditor/exporter.min.js
course/format/amd/build/local/courseeditor/exporter.min.js.map
course/format/amd/build/local/courseeditor/fileuploader.min.js [new file with mode: 0644]
course/format/amd/build/local/courseeditor/fileuploader.min.js.map [new file with mode: 0644]
course/format/amd/build/local/courseindex/section.min.js
course/format/amd/build/local/courseindex/section.min.js.map
course/format/amd/src/local/courseeditor/courseeditor.js
course/format/amd/src/local/courseeditor/dndsection.js
course/format/amd/src/local/courseeditor/exporter.js
course/format/amd/src/local/courseeditor/fileuploader.js [new file with mode: 0644]
course/format/amd/src/local/courseindex/section.js
course/format/classes/output/local/state/course.php
course/format/templates/fileuploader.mustache [new file with mode: 0644]
course/lib.php
lang/en/error.php
theme/boost/scss/moodle/course.scss