@hed-hog/lms 0.0.357 → 0.0.358
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/course/course-operations-integration.service.d.ts +31 -0
- package/dist/course/course-operations-integration.service.d.ts.map +1 -1
- package/dist/course/course-operations-integration.service.js +286 -22
- package/dist/course/course-operations-integration.service.js.map +1 -1
- package/dist/course/course-operations.controller.d.ts +10 -0
- package/dist/course/course-operations.controller.d.ts.map +1 -0
- package/dist/course/course-operations.controller.js +67 -0
- package/dist/course/course-operations.controller.js.map +1 -0
- package/dist/course/course-structure.controller.d.ts +3 -1
- package/dist/course/course-structure.controller.d.ts.map +1 -1
- package/dist/course/course-structure.service.d.ts +3 -1
- package/dist/course/course-structure.service.d.ts.map +1 -1
- package/dist/course/course-structure.service.js +13 -6
- package/dist/course/course-structure.service.js.map +1 -1
- package/dist/course/course.module.d.ts.map +1 -1
- package/dist/course/course.module.js +4 -1
- package/dist/course/course.module.js.map +1 -1
- package/dist/course/dto/update-course-operations-config.dto.d.ts +6 -0
- package/dist/course/dto/update-course-operations-config.dto.d.ts.map +1 -0
- package/dist/course/dto/update-course-operations-config.dto.js +33 -0
- package/dist/course/dto/update-course-operations-config.dto.js.map +1 -0
- package/dist/course/lms-operations-task.subscriber.d.ts +13 -0
- package/dist/course/lms-operations-task.subscriber.d.ts.map +1 -0
- package/dist/course/lms-operations-task.subscriber.js +57 -0
- package/dist/course/lms-operations-task.subscriber.js.map +1 -0
- package/dist/enterprise/enterprise.service.js +1 -1
- package/dist/enterprise/enterprise.service.js.map +1 -1
- package/dist/instructor/instructor.service.d.ts.map +1 -1
- package/dist/instructor/instructor.service.js +12 -3
- package/dist/instructor/instructor.service.js.map +1 -1
- package/hedhog/data/route.yaml +27 -0
- package/hedhog/frontend/app/_lib/editor/templateSerializer.ts.ejs +26 -4
- package/hedhog/frontend/app/_lib/editor/types.ts.ejs +6 -0
- package/hedhog/frontend/app/certificates/models/CanvasStage.tsx.ejs +447 -31
- package/hedhog/frontend/app/certificates/models/LeftPanel.tsx.ejs +59 -47
- package/hedhog/frontend/app/certificates/models/RightPanel.tsx.ejs +201 -35
- package/hedhog/frontend/app/certificates/models/TemplateEditorPage.tsx.ejs +36 -5
- package/hedhog/frontend/app/courses/[id]/structure/_components/course-operations-tab.tsx.ejs +382 -0
- package/hedhog/frontend/app/courses/[id]/structure/_components/editor-course.tsx.ejs +31 -1
- package/hedhog/frontend/app/courses/[id]/structure/_components/editor-lesson.tsx.ejs +91 -20
- package/hedhog/frontend/app/courses/[id]/structure/_components/types.ts.ejs +1 -0
- package/hedhog/frontend/app/courses/[id]/structure/_data/adapters/course-structure.adapter.ts.ejs +11 -3
- package/hedhog/frontend/app/courses/[id]/structure/_data/types/api-course.types.ts.ejs +4 -2
- package/hedhog/frontend/app/courses/[id]/structure/_data/use-course-structure-query.ts.ejs +2 -2
- package/hedhog/frontend/app/courses/page.tsx.ejs +21 -88
- package/hedhog/frontend/app/enterprise/page.tsx.ejs +18 -6
- package/hedhog/frontend/app/exams/[id]/page.tsx.ejs +5 -4
- package/hedhog/frontend/app/instructors/_components/instructor-form-sheet.tsx.ejs +16 -10
- package/package.json +8 -8
- package/src/course/course-operations-integration.service.ts +460 -22
- package/src/course/course-operations.controller.ts +45 -0
- package/src/course/course-structure.service.ts +5 -1
- package/src/course/course.module.ts +4 -1
- package/src/course/dto/update-course-operations-config.dto.ts +16 -0
- package/src/course/lms-operations-task.subscriber.ts +44 -0
- package/src/enterprise/enterprise.service.ts +1 -1
- package/src/instructor/instructor.service.ts +12 -3
|
@@ -67,7 +67,7 @@ export class EnterpriseService {
|
|
|
67
67
|
take: pageSize,
|
|
68
68
|
orderBy: { name: 'asc' },
|
|
69
69
|
include: {
|
|
70
|
-
person: { select: { id: true, name: true } },
|
|
70
|
+
person: { select: { id: true, name: true, avatar_id: true } },
|
|
71
71
|
_count: {
|
|
72
72
|
select: {
|
|
73
73
|
enterprise_user: true,
|
|
@@ -928,7 +928,10 @@ export class InstructorService {
|
|
|
928
928
|
status?: string;
|
|
929
929
|
} = {},
|
|
930
930
|
) {
|
|
931
|
-
const
|
|
931
|
+
const page = Math.max(Number(options.page) || 1, 1);
|
|
932
|
+
const pageSize = Math.min(Math.max(Number(options.pageSize) || 6, 1), 100);
|
|
933
|
+
const skip = (page - 1) * pageSize;
|
|
934
|
+
const { search, status } = options;
|
|
932
935
|
|
|
933
936
|
const where: Prisma.course_class_groupWhereInput = {
|
|
934
937
|
instructor_id: instructorId,
|
|
@@ -971,7 +974,7 @@ export class InstructorService {
|
|
|
971
974
|
},
|
|
972
975
|
},
|
|
973
976
|
},
|
|
974
|
-
skip
|
|
977
|
+
skip,
|
|
975
978
|
take: pageSize,
|
|
976
979
|
}),
|
|
977
980
|
this.prisma.course_class_group.count({ where }),
|
|
@@ -999,6 +1002,12 @@ export class InstructorService {
|
|
|
999
1002
|
};
|
|
1000
1003
|
});
|
|
1001
1004
|
|
|
1002
|
-
return {
|
|
1005
|
+
return {
|
|
1006
|
+
data,
|
|
1007
|
+
total,
|
|
1008
|
+
page,
|
|
1009
|
+
pageSize,
|
|
1010
|
+
lastPage: Math.max(1, Math.ceil(total / pageSize)),
|
|
1011
|
+
};
|
|
1003
1012
|
}
|
|
1004
1013
|
}
|