From 2f77bf77341e05600d36ba4bb0469702f59199bf Mon Sep 17 00:00:00 2001 From: Christian Cueni Date: Wed, 3 Apr 2024 11:14:44 +0200 Subject: [PATCH] WIP: Add Praxisbildner switch, move code to type --- .../dashboard/AssignmentSummary.vue | 41 +++++ .../dashboard/CompetenceSummary.vue | 4 +- .../src/components/dashboard/CoursePanel.vue | 53 +++++-- client/src/gql/graphql.ts | 10 +- client/src/gql/schema.graphql | 5 +- client/src/pages/dashboard/DashboardPage.vue | 10 ++ .../vbv_lernwelt/dashboard/graphql/queries.py | 52 +------ .../dashboard/graphql/types/dashboard.py | 143 +++++++++++++++++- 8 files changed, 244 insertions(+), 74 deletions(-) create mode 100644 client/src/components/dashboard/AssignmentSummary.vue diff --git a/client/src/components/dashboard/AssignmentSummary.vue b/client/src/components/dashboard/AssignmentSummary.vue new file mode 100644 index 00000000..5ce253e3 --- /dev/null +++ b/client/src/components/dashboard/AssignmentSummary.vue @@ -0,0 +1,41 @@ + + + diff --git a/client/src/components/dashboard/CompetenceSummary.vue b/client/src/components/dashboard/CompetenceSummary.vue index ba701185..9d2a9164 100644 --- a/client/src/components/dashboard/CompetenceSummary.vue +++ b/client/src/components/dashboard/CompetenceSummary.vue @@ -18,8 +18,8 @@ const competenceCriteriaUrl = computed(() => { }); onMounted(async () => { - const some = await fetchProgressData(props.courseId); - competence.value = some.competence; + const data = await fetchProgressData(props.courseId); + competence.value = data.competence; }); diff --git a/client/src/components/dashboard/CoursePanel.vue b/client/src/components/dashboard/CoursePanel.vue index 19cadce3..82faeea2 100644 --- a/client/src/components/dashboard/CoursePanel.vue +++ b/client/src/components/dashboard/CoursePanel.vue @@ -1,10 +1,18 @@