diff --git a/frontend/src/components/BatchCourses.vue b/frontend/src/components/BatchCourses.vue index 474e7dab..241c5ae9 100644 --- a/frontend/src/components/BatchCourses.vue +++ b/frontend/src/components/BatchCourses.vue @@ -108,13 +108,16 @@ const getCoursesColumns = () => { { label: 'Title', key: 'title', + width: 2, }, { label: 'Lessons', key: 'lesson_count', + align: 'right', }, { label: 'Enrollments', + align: 'right', key: 'enrollment_count', }, ] @@ -131,7 +134,6 @@ const removeCourse = createResource({ }) const removeCourses = (selections) => { - console.log(selections) selections.forEach(async (course) => { removeCourse.submit({ course }) await setTimeout(1000) diff --git a/frontend/src/components/BatchStudents.vue b/frontend/src/components/BatchStudents.vue index 0144925e..ca3271fc 100644 --- a/frontend/src/components/BatchStudents.vue +++ b/frontend/src/components/BatchStudents.vue @@ -109,6 +109,7 @@ const getStudentColumns = () => { { label: 'Full Name', key: 'full_name', + width: 2, }, { label: 'Courses Done', diff --git a/frontend/src/components/CourseReviews.vue b/frontend/src/components/CourseReviews.vue index 15bc423c..9fbcc32c 100644 --- a/frontend/src/components/CourseReviews.vue +++ b/frontend/src/components/CourseReviews.vue @@ -15,7 +15,14 @@
- + + +
@@ -26,6 +32,7 @@ import { showToast } from '@/utils' const show = defineModel() const course = ref(null) +const evaluator = ref(null) const courses = defineModel('courses') const props = defineProps({ @@ -45,6 +52,7 @@ const createBatchCourse = createResource({ parenttype: 'LMS Batch', parentfield: 'courses', course: course.value, + evaluator: evaluator.value, }, } }, @@ -58,6 +66,7 @@ const addCourse = (close) => { courses.value.reload() close() course.value = null + evaluator.value = null }, onError(err) { showToast('Error', err.message[0] || err, 'x') diff --git a/frontend/src/pages/CourseDetail.vue b/frontend/src/pages/CourseDetail.vue index b0e5f655..89f97f4a 100644 --- a/frontend/src/pages/CourseDetail.vue +++ b/frontend/src/pages/CourseDetail.vue @@ -77,7 +77,6 @@ />
{ } .ce-toolbar__actions { - right: 108%; + right: 108% !important; } .ce-block__content { diff --git a/frontend/src/utils/code.ts b/frontend/src/utils/code.ts index 7321ea5c..a8760d1b 100644 --- a/frontend/src/utils/code.ts +++ b/frontend/src/utils/code.ts @@ -1,3 +1,6 @@ +import { Code } from "lucide-vue-next" +import { h, createApp } from "vue" + const DEFAULT_THEMES = ['light', 'dark']; const COMMON_LANGUAGES = { none: 'Auto-detect', apache: 'Apache', bash: 'Bash', cs: 'C#', cpp: 'C++', css: 'CSS', coffeescript: 'CoffeeScript', diff: 'Diff', @@ -58,9 +61,16 @@ export class CodeBox { } static get toolbox() { + const app = createApp({ + render: () => h(Code, { size: 24, strokeWidth: 2, color: 'black' }), + }); + + const div = document.createElement('div'); + app.mount(div); + return { title: 'CodeBox', - icon: '' + icon: div.innerHTML }; }