diff --git a/frontend/src/pages/Lesson.vue b/frontend/src/pages/Lesson.vue index 81aadeb7..02e24b94 100644 --- a/frontend/src/pages/Lesson.vue +++ b/frontend/src/pages/Lesson.vue @@ -627,6 +627,7 @@ const resetLessonState = (newChapterNumber, newLessonNumber) => { chapter: newChapterNumber, lesson: newLessonNumber, }) + console.log('resetting lesson state') clearInterval(timerInterval) timer.value = 0 } @@ -741,14 +742,18 @@ const updateVideoTime = (video) => { } const startTimer = () => { + console.log(lesson.data?.membership) if (!lesson.data?.membership) return + console.log('past') timerInterval = setInterval(() => { + console.log(`Timer: ${timer.value} seconds`) timer.value++ if (timer.value == 30) { clearInterval(timerInterval) markProgress() } }, 1000) + console.log(timerInterval) } onBeforeUnmount(() => { diff --git a/lms/demo/demo_data.py b/lms/demo/demo_data.py index 829b3caa..9f287e53 100644 --- a/lms/demo/demo_data.py +++ b/lms/demo/demo_data.py @@ -27,6 +27,7 @@ def create_course(): "video_link": "VIt_bsbBjLI", "instructors": [{"instructor": instructor.name}], "short_introduction": "Learn the basics of Frappe Learning and how to get started.", + "image": "/assets/lms/images/course_card.jpeg", } ) @@ -64,6 +65,7 @@ def create_instructor(): instructor = frappe.new_doc("User") instructor.first_name = "Jannat" instructor.last_name = "Patel" + instructor.user_image = "/assets/lms/images/instructor.png" instructor.email = "jannat@example.com" instructor.save() return instructor diff --git a/lms/public/images/course_card.jpeg b/lms/public/images/course_card.jpeg new file mode 100644 index 00000000..0d1f41bf Binary files /dev/null and b/lms/public/images/course_card.jpeg differ diff --git a/lms/public/images/instructor.png b/lms/public/images/instructor.png new file mode 100644 index 00000000..df171a39 Binary files /dev/null and b/lms/public/images/instructor.png differ diff --git a/lms/workspace_sidebar/lms.json b/lms/workspace_sidebar/lms.json deleted file mode 100644 index 85be264c..00000000 --- a/lms/workspace_sidebar/lms.json +++ /dev/null @@ -1,116 +0,0 @@ -{ - "app": "lms", - "creation": "2025-11-24 14:35:18.461657", - "docstatus": 0, - "doctype": "Workspace Sidebar", - "header_icon": "education", - "idx": 0, - "items": [ - { - "child": 0, - "collapsible": 1, - "indent": 0, - "keep_closed": 0, - "label": "Home", - "link_to": "Learning", - "link_type": "Workspace", - "show_arrow": 0, - "type": "Link" - }, - { - "child": 0, - "collapsible": 1, - "indent": 0, - "keep_closed": 0, - "label": "Users", - "link_to": "User", - "link_type": "DocType", - "show_arrow": 0, - "type": "Link" - }, - { - "child": 0, - "collapsible": 1, - "indent": 0, - "keep_closed": 0, - "label": "Course", - "link_to": "LMS Course", - "link_type": "DocType", - "show_arrow": 0, - "type": "Link" - }, - { - "child": 0, - "collapsible": 1, - "indent": 0, - "keep_closed": 0, - "label": "Enrollments", - "link_to": "LMS Enrollment", - "link_type": "DocType", - "show_arrow": 0, - "type": "Link" - }, - { - "child": 0, - "collapsible": 1, - "indent": 0, - "keep_closed": 0, - "label": "Batch", - "link_to": "LMS Batch", - "link_type": "DocType", - "show_arrow": 0, - "type": "Link" - }, - { - "child": 0, - "collapsible": 1, - "indent": 0, - "keep_closed": 0, - "label": "Batch Enrollment", - "link_to": "LMS Batch Enrollment", - "link_type": "DocType", - "show_arrow": 0, - "type": "Link" - }, - { - "child": 0, - "collapsible": 1, - "indent": 0, - "keep_closed": 0, - "label": "Evaluation Request", - "link_to": "LMS Certificate Request", - "link_type": "DocType", - "show_arrow": 0, - "type": "Link" - }, - { - "child": 0, - "collapsible": 1, - "indent": 0, - "keep_closed": 0, - "label": "Evaluation", - "link_to": "LMS Certificate Evaluation", - "link_type": "DocType", - "show_arrow": 0, - "type": "Link" - }, - { - "child": 0, - "collapsible": 1, - "indent": 0, - "keep_closed": 0, - "label": "Certificate", - "link_to": "LMS Certificate", - "link_type": "DocType", - "show_arrow": 0, - "type": "Link" - } - ], - "modified": "2026-03-02 13:07:37.040316", - "modified_by": "sayali@frappe.io", - "module": "LMS", - "name": "LMS", - "owner": "Administrator", - "standard": 1, - "title": "LMS" -}