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