From 2c2aeca7abab5fb56afa621c12a40471ae85f666 Mon Sep 17 00:00:00 2001 From: Joyelle Ndagijimana Date: Sun, 30 Mar 2025 00:28:48 +0100 Subject: [PATCH] feat: assignment pagina is klaar voor studenten en leerkrachten --- frontend/src/i18n/locale/fr.json | 2 +- frontend/src/utils/tempData.ts | 15 ++++ .../src/views/classes/UserAssignments.vue | 86 ++++++++++++++++++- 3 files changed, 99 insertions(+), 4 deletions(-) diff --git a/frontend/src/i18n/locale/fr.json b/frontend/src/i18n/locale/fr.json index 9f9915c5..fd7b3ea4 100644 --- a/frontend/src/i18n/locale/fr.json +++ b/frontend/src/i18n/locale/fr.json @@ -47,7 +47,7 @@ "learning-path": "Parcours d'apprentissage", "choose-lp": "Choisissez un parcours d'apprentissage", "choose-classes": "Choisissez des classes", - "create-groups": "Crée des groupes", + "create-groups": "Créer des groupes", "title": "Titre", "pick-class": "Choisissez une classe", "choose-students": "Sélectionnez des élèves", diff --git a/frontend/src/utils/tempData.ts b/frontend/src/utils/tempData.ts index 2c5f1430..6d15cf81 100644 --- a/frontend/src/utils/tempData.ts +++ b/frontend/src/utils/tempData.ts @@ -55,4 +55,19 @@ teacher01.classes = [class01]; teacher02.classes = [class02]; teacher03.classes = [class03]; +type Assignment = { + id: string; + title: string; + description: string; +}; + +export const assignments: Assignment[] = Array.from({ length: 4 }, (_, i) => ({ + id: `assignment${i}`, + title: `Assignment ${i}`, + description: + "Lorem ipsum dolor sit amet, consectetuer adipiscing elit. " + + "Aenean commodo ligula eget dolor. Aenean massa. " + + "Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus." +})); + export const classes: Array = [class01, class02, class03]; diff --git a/frontend/src/views/classes/UserAssignments.vue b/frontend/src/views/classes/UserAssignments.vue index 1a35a59f..26f9300d 100644 --- a/frontend/src/views/classes/UserAssignments.vue +++ b/frontend/src/views/classes/UserAssignments.vue @@ -1,7 +1,87 @@ - + - +