Fix typechecker
This commit is contained in:
parent
e7917a6cdb
commit
ffefa520e1
|
|
@ -1,7 +1,7 @@
|
|||
<template>
|
||||
<div class="p-1">
|
||||
<p class="text-bold">{{ dueDate.title }}</p>
|
||||
<div>{{ formatDate(dueDate.start, dueDate.end) }}</div>
|
||||
<p class="text-bold">{{ props.dueDate.title }}</p>
|
||||
<div>{{ formatDate(props.dueDate.start, props.dueDate.end) }}</div>
|
||||
<a :href="dueDate.url" target="_blank">Details anschauen</a>
|
||||
</div>
|
||||
</template>
|
||||
|
|
@ -9,9 +9,8 @@
|
|||
<script lang="ts" setup>
|
||||
import { formatDate } from "@/components/dueDates/dueDatesUtils";
|
||||
import type { DueDate } from "@/types";
|
||||
import { defineProps } from "vue";
|
||||
|
||||
defineProps<{
|
||||
const props = defineProps<{
|
||||
dueDate: DueDate;
|
||||
}>();
|
||||
</script>
|
||||
|
|
|
|||
|
|
@ -18,15 +18,11 @@
|
|||
</template>
|
||||
|
||||
<script lang="ts" setup>
|
||||
import { formatDate } from "@/components/dueDates/dueDatesUtils.ts";
|
||||
import { formatDate } from "@/components/dueDates/dueDatesUtils";
|
||||
import type { DueDate } from "@/types";
|
||||
import { defineProps } from "vue";
|
||||
|
||||
const props = defineProps<{
|
||||
maxCount: {
|
||||
default: 10;
|
||||
type: number;
|
||||
};
|
||||
maxCount: number;
|
||||
dueDates: DueDate[];
|
||||
}>();
|
||||
</script>
|
||||
|
|
|
|||
|
|
@ -12,14 +12,10 @@
|
|||
<script lang="ts" setup>
|
||||
import SingleDueDate from "@/components/dueDates/DueDateSingle.vue";
|
||||
import { useCurrentCourseSession } from "@/composables";
|
||||
import { defineProps } from "vue";
|
||||
|
||||
// TODO: MaxCount is not working
|
||||
const props = defineProps<{
|
||||
maxCount: {
|
||||
default: 3;
|
||||
type: number;
|
||||
};
|
||||
maxCount: number;
|
||||
}>();
|
||||
|
||||
const courseSession = useCurrentCourseSession();
|
||||
|
|
|
|||
|
|
@ -77,7 +77,7 @@ const getNextStepLink = (courseSession: CourseSession) => {
|
|||
</div>
|
||||
<div>
|
||||
<h3 class="mb-6">Termine</h3>
|
||||
<DueDatesLongList :due-dates="allDueDates"></DueDatesLongList>
|
||||
<DueDatesLongList :due-dates="allDueDates" :max-count="10"></DueDatesLongList>
|
||||
</div>
|
||||
</div>
|
||||
</main>
|
||||
|
|
|
|||
|
|
@ -92,7 +92,7 @@ const changeViewType = (viewType: ViewType) => {
|
|||
|
||||
<!-- Right -->
|
||||
<div v-if="!useMobileLayout" class="max-w-md">
|
||||
<DueDatesShortList></DueDatesShortList>
|
||||
<DueDatesShortList :max-count="3"></DueDatesShortList>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
import type { AssignmentCompletionStatus as AssignmentCompletionStatusGenerated } from "@/gql/graphql";
|
||||
import type { Circle } from "@/services/circle";
|
||||
import { Dayjs } from "dayjs";
|
||||
import type { Dayjs } from "dayjs";
|
||||
import type { Component } from "vue";
|
||||
|
||||
export type LoginMethod = "local" | "sso";
|
||||
|
|
|
|||
Loading…
Reference in New Issue