Skip to content

Commit

Permalink
chore: linting
Browse files Browse the repository at this point in the history
  • Loading branch information
EwoutV committed May 2, 2024
1 parent 6846276 commit 1bdb668
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 49 deletions.
27 changes: 10 additions & 17 deletions frontend/src/components/projects/ProjectDeadlineCard.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<script setup lang="ts">
import { Project } from '@/types/Project.ts';
import { Course } from '@/types/Course.ts';
import { type Project } from '@/types/Project.ts';
import { type Course } from '@/types/Course.ts';
import { useI18n } from 'vue-i18n';
/* Props */
Expand All @@ -17,12 +17,12 @@ const { t } = useI18n();
<RouterLink
class="text-color"
:to="{
name: 'course-project',
params: {
courseId: course.id,
projectId: project.id,
},
}"
name: 'course-project',
params: {
courseId: course.id,
projectId: project.id,
},
}"
>
<div class="p-5 surface-300 border-round">
<div class="flex align-items-center gap-5">
Expand All @@ -41,12 +41,7 @@ const { t } = useI18n();
}}
</span>
<span v-else>
{{
t(
'views.projects.ago',
project.getDaysLeft() * -1,
)
}}
{{ t('views.projects.ago', project.getDaysLeft() * -1) }}
</span>
</div>
</div>
Expand All @@ -55,6 +50,4 @@ const { t } = useI18n();
</RouterLink>
</template>

<style scoped lang="scss">
</style>
<style scoped lang="scss"></style>
32 changes: 16 additions & 16 deletions frontend/src/components/projects/ProjectDetailCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
import Card from 'primevue/card';
import ProjectMeter from '@/components/projects/ProjectMeter.vue';
import Button from 'primevue/button';
import { Project } from '@/types/Project.ts';
import { type Project } from '@/types/Project.ts';
import { PrimeIcons } from 'primevue/api';
import { Course } from '@/types/Course.ts';
import { type Course } from '@/types/Course.ts';
import { useI18n } from 'vue-i18n';
import type { Group } from '@/types/Group.ts';
Expand Down Expand Up @@ -57,12 +57,12 @@ function isInGroup(): boolean {
<div class="flex justify-content-between">
<RouterLink
:to="{
name: 'course-project',
params: {
courseId: course.id,
projectId: project.id,
},
}"
name: 'course-project',
params: {
courseId: course.id,
projectId: project.id,
},
}"
>
<Button
class="align-self-end"
Expand All @@ -75,13 +75,13 @@ function isInGroup(): boolean {
<RouterLink
v-if="isInGroup()"
:to="{
name: 'submission',
params: {
courseId: course.id,
projectId: project.id,
groupId: '5',
},
}"
name: 'submission',
params: {
courseId: course.id,
projectId: project.id,
groupId: '5',
},
}"
>
<Button
class="align-self-end"
Expand Down Expand Up @@ -128,4 +128,4 @@ function isInGroup(): boolean {
}
}
}
</style>
</style>
9 changes: 1 addition & 8 deletions frontend/src/components/projects/ProjectInfo.vue
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,7 @@ const { t } = useI18n();
).toLowerCase()
}})
</span>
<span v-else>
({{
t(
'views.projects.ago',
project.getDaysLeft() * -1,
).toLowerCase()
}})
</span>
<span v-else> ({{ t('views.projects.ago', project.getDaysLeft() * -1).toLowerCase() }}) </span>
</span>
<span class="flex align-items-center">
<i class="pi pi-users mr-2" />
Expand Down
6 changes: 1 addition & 5 deletions frontend/src/components/projects/ProjectList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -99,11 +99,7 @@ const incomingProjects = computed<Project[] | null>(() => {
<template v-if="incomingProjects !== null">
<template v-if="incomingProjects.length > 0">
<div class="col-12" v-for="project in incomingProjects" :key="project.id">
<ProjectDeadlineCard
type="small"
:project="project"
:course="project.course"
/>
<ProjectDeadlineCard type="small" :project="project" :course="project.course" />
</div>
</template>
<template v-else>
Expand Down
5 changes: 2 additions & 3 deletions frontend/src/types/Group.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,8 @@ export class Group {
public score: number = -1,
public project: Project,
public students: Student[] | null = null,
public submissions: Submission[] | null = null
) {
}
public submissions: Submission[] | null = null,
) {}

/**
* Check if the group is locked.
Expand Down

0 comments on commit 1bdb668

Please sign in to comment.