From 63bcbb6506f34ab7403513db740a457b8abcecf5 Mon Sep 17 00:00:00 2001 From: Jannat Patel Date: Fri, 15 Mar 2024 21:54:02 +0530 Subject: [PATCH] feat: batch creation --- frontend/package.json | 5 +- frontend/src/components/BatchCourses.vue | 141 ++++++ frontend/src/components/BatchOverlay.vue | 20 +- frontend/src/components/BatchStudents.vue | 8 +- frontend/src/components/CourseCardOverlay.vue | 2 +- frontend/src/components/CourseOutline.vue | 4 +- frontend/src/components/LessonContent.vue | 99 +++++ frontend/src/components/LessonPlugins.vue | 137 ++++++ frontend/src/components/LiveClass.vue | 4 +- .../components/Modals/BatchCourseModal.vue | 68 +++ .../src/components/Modals/BatchCreation.vue | 192 -------- .../src/components/Modals/StudentModal.vue | 2 +- frontend/src/pages/Batch.vue | 37 +- frontend/src/pages/BatchCreation.vue | 390 ++++++++++++++++ frontend/src/pages/BatchDetail.vue | 12 +- frontend/src/pages/Batches.vue | 4 +- frontend/src/pages/Courses.vue | 2 +- frontend/src/pages/CreateBatch.vue | 37 -- frontend/src/pages/CreateCourse.vue | 252 +++++------ frontend/src/pages/CreateLesson.vue | 286 ++++++++---- frontend/src/pages/JobCreation.vue | 2 + frontend/src/pages/Jobs.vue | 14 +- frontend/src/pages/Lesson.vue | 162 +++---- frontend/src/router.js | 10 +- frontend/src/utils/index.js | 26 +- frontend/src/utils/quiz.js | 9 +- frontend/src/utils/upload.js | 43 ++ lms/lms/api.py | 1 + .../doctype/course_lesson/course_lesson.json | 17 +- lms/lms/utils.py | 11 +- lms/patches.txt | 3 +- lms/patches/v1_0/rename_evaluator_role.py | 6 + yarn.lock | 417 +++++++----------- 33 files changed, 1536 insertions(+), 887 deletions(-) create mode 100644 frontend/src/components/BatchCourses.vue create mode 100644 frontend/src/components/LessonContent.vue create mode 100644 frontend/src/components/LessonPlugins.vue create mode 100644 frontend/src/components/Modals/BatchCourseModal.vue delete mode 100644 frontend/src/components/Modals/BatchCreation.vue create mode 100644 frontend/src/pages/BatchCreation.vue delete mode 100644 frontend/src/pages/CreateBatch.vue create mode 100644 frontend/src/pages/JobCreation.vue create mode 100644 frontend/src/utils/upload.js create mode 100644 lms/patches/v1_0/rename_evaluator_role.py diff --git a/frontend/package.json b/frontend/package.json index 178ae88c..13a37a86 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -12,12 +12,13 @@ "@editorjs/editorjs": "^2.29.0", "@editorjs/embed": "^2.7.0", "@editorjs/header": "^2.8.1", - "@editorjs/list": "^1.9.0", + "@editorjs/image": "^2.9.0", + "@editorjs/nested-list": "^1.4.2", "@editorjs/paragraph": "^2.11.3", "chart.js": "^4.4.1", "dayjs": "^1.11.6", "feather-icons": "^4.28.0", - "frappe-ui": "^0.1.31", + "frappe-ui": "^0.1.35", "lucide-vue-next": "^0.309.0", "markdown-it": "^14.0.0", "pinia": "^2.0.33", diff --git a/frontend/src/components/BatchCourses.vue b/frontend/src/components/BatchCourses.vue new file mode 100644 index 00000000..474e7dab --- /dev/null +++ b/frontend/src/components/BatchCourses.vue @@ -0,0 +1,141 @@ + + diff --git a/frontend/src/components/BatchOverlay.vue b/frontend/src/components/BatchOverlay.vue index a01b7388..ccf0218f 100644 --- a/frontend/src/components/BatchOverlay.vue +++ b/frontend/src/components/BatchOverlay.vue @@ -73,11 +73,21 @@ > {{ __('Enroll Now') }} - + + + diff --git a/frontend/src/pages/CreateLesson.vue b/frontend/src/pages/CreateLesson.vue index a8494df1..9bed311b 100644 --- a/frontend/src/pages/CreateLesson.vue +++ b/frontend/src/pages/CreateLesson.vue @@ -1,7 +1,7 @@