From e7f319b3fd3bc6f157d3b333443bb67d2dec64df Mon Sep 17 00:00:00 2001 From: EwoutV Date: Tue, 16 Apr 2024 13:21:32 +0200 Subject: [PATCH] chore: improved project progressbar, linting --- frontend/src/components/forms/Editor.vue | 1 - frontend/src/components/projects/ProjectCard.vue | 12 ++++++++++-- frontend/src/components/projects/ProjectList.vue | 2 +- .../src/test/unit/services/setup/get_handlers.ts | 1 - frontend/src/test/unit/types/course.test.ts | 2 +- frontend/src/types/Course.ts | 2 +- frontend/src/types/Project.ts | 2 +- 7 files changed, 14 insertions(+), 8 deletions(-) diff --git a/frontend/src/components/forms/Editor.vue b/frontend/src/components/forms/Editor.vue index 62893032..b68a9585 100644 --- a/frontend/src/components/forms/Editor.vue +++ b/frontend/src/components/forms/Editor.vue @@ -1,6 +1,5 @@ diff --git a/frontend/src/components/projects/ProjectCard.vue b/frontend/src/components/projects/ProjectCard.vue index 9aa28f84..0fbfb5ad 100644 --- a/frontend/src/components/projects/ProjectCard.vue +++ b/frontend/src/components/projects/ProjectCard.vue @@ -52,7 +52,7 @@ const { t } = useI18n(); >
- +

{{ project.name }}

@@ -96,7 +96,15 @@ const { t } = useI18n(); {{ t('views.projects.submissionStatus') }}: ok
- + + {{ + t( + 'views.projects.days', + { hour: moment(project.deadline).format('H:m') }, + moment(project.deadline).diff(moment(), 'day'), + ) + }} +