feat: use title on lms exercise card
This commit is contained in:
@@ -1,5 +0,0 @@
|
||||
[build.environment]
|
||||
NODE_OPTIONS = "--max_old_space_size=4096"
|
||||
[build]
|
||||
command = "npm run build"
|
||||
publish = "build"
|
||||
@@ -73,6 +73,7 @@ export async function fetchLMSExercises(
|
||||
id,
|
||||
title,
|
||||
order,
|
||||
is_unlocked,
|
||||
course!inner (
|
||||
id,
|
||||
title,
|
||||
@@ -91,6 +92,7 @@ export async function fetchLMSExercises(
|
||||
)
|
||||
`
|
||||
)
|
||||
.eq('lesson.is_unlocked', true)
|
||||
.eq('lesson.course.group.organisation.id', orgId)
|
||||
.eq('lesson.course.group.groupmember.profile.id', profileId)
|
||||
.eq('submission.groupmember.profile.id', profileId);
|
||||
|
||||
@@ -15,7 +15,7 @@ interface LoadOutput {
|
||||
org: CurrentOrg;
|
||||
}
|
||||
|
||||
export const load = async ({ url, cookies }): LoadOutput => {
|
||||
export const load = async ({ url, cookies }): Promise<LoadOutput> => {
|
||||
// if (url.hostname === 'classroomio.com') {
|
||||
// throw redirect(301, 'https://about.classroomio.com');
|
||||
// }
|
||||
|
||||
@@ -52,6 +52,7 @@
|
||||
exerciseURL: string;
|
||||
grade: string;
|
||||
lessonNo: string;
|
||||
lessonTitle: string;
|
||||
lessonURL: string;
|
||||
submissionStatus: number;
|
||||
submissionUpdatedAt: string;
|
||||
@@ -84,6 +85,7 @@
|
||||
courseURL,
|
||||
exerciseTitle: title,
|
||||
exerciseURL,
|
||||
lessonTitle: lesson.title,
|
||||
lessonNo: lesson.order < 9 ? '0' + (lesson.order + 1) : `${lesson.order}`,
|
||||
lessonURL,
|
||||
submissionStatus: submissionItem.status_id,
|
||||
@@ -154,7 +156,7 @@
|
||||
href={item.lessonURL}
|
||||
>
|
||||
<p class="dark:text-white text-grey text-sm">
|
||||
#Lesson {item.lessonNo}
|
||||
Lesson: <span class="italic">{item.lessonTitle}</span>
|
||||
</p>
|
||||
</a>
|
||||
<p class="dark:text-white text-gray-500 text-xs">
|
||||
|
||||
Reference in New Issue
Block a user