diff --git a/client/src/components/dashboard/CourseDetailDates.vue b/client/src/components/dashboard/CourseDetailDates.vue deleted file mode 100644 index 3eb2d107..00000000 --- a/client/src/components/dashboard/CourseDetailDates.vue +++ /dev/null @@ -1,45 +0,0 @@ - - - diff --git a/client/src/components/dashboard/SimpleDates.vue b/client/src/components/dashboard/SimpleDates.vue deleted file mode 100644 index 09f1bd9a..00000000 --- a/client/src/components/dashboard/SimpleDates.vue +++ /dev/null @@ -1,19 +0,0 @@ - - - diff --git a/client/src/components/dueDates/DueDateSingle.vue b/client/src/components/dueDates/DueDateSingle.vue index aa4a54a7..8da00e6c 100644 --- a/client/src/components/dueDates/DueDateSingle.vue +++ b/client/src/components/dueDates/DueDateSingle.vue @@ -1,12 +1,11 @@ @@ -46,29 +46,23 @@ const courseSessionTitle = computed(() => { >
- - + + {{ dayjs(props.dueDate.start).format("dddd D. MMMM YYYY") }}
-
-
- {{ dateType }} -
- -
- {{ assignmentType }} -
- -
- {{ props.dueDate.title }} -
+
+ + + {{ urlText }} + +
- - {{ courseSessionTitle }}: + + {{ props.dueDate.course_session.session_title }}: {{ $t("a.Circle") }} «{{ props.dueDate.circle?.title }}»
diff --git a/client/src/components/dueDates/DueDatesList.vue b/client/src/components/dueDates/DueDatesList.vue index f5ce0702..f8a0328e 100644 --- a/client/src/components/dueDates/DueDatesList.vue +++ b/client/src/components/dueDates/DueDatesList.vue @@ -1,11 +1,11 @@ - - diff --git a/client/src/pages/dashboard/DashboardAsideWidget.vue b/client/src/pages/dashboard/DashboardAsideWidget.vue index a64676d8..934fd7eb 100644 --- a/client/src/pages/dashboard/DashboardAsideWidget.vue +++ b/client/src/pages/dashboard/DashboardAsideWidget.vue @@ -4,7 +4,7 @@ import log from "loglevel"; import { useDashboardPersons } from "@/composables"; import { computed } from "vue"; import _ from "lodash"; -import DashboardAsideDueDate from "@/pages/dashboard/DashboardAsideDueDate.vue"; +import DueDateSingle from "@/components/dueDates/DueDateSingle.vue"; log.debug("DashboardAsideWidget created"); @@ -34,7 +34,7 @@ const displayDueDates = computed(() => {
- +
diff --git a/client/src/pages/dashboard/DashboardDueDatesPage.vue b/client/src/pages/dashboard/DashboardDueDatesPage.vue index c3962067..dcfa1135 100644 --- a/client/src/pages/dashboard/DashboardDueDatesPage.vue +++ b/client/src/pages/dashboard/DashboardDueDatesPage.vue @@ -1,7 +1,7 @@ @@ -194,7 +218,6 @@ watch(selectedCourse, async () => { class="flex flex-col space-x-0 border-b bg-white lg:flex-row lg:space-x-3" > { > { > { > -import type { Component } from "vue"; import { onMounted } from "vue"; -import StatisticPage from "@/pages/dashboard/StatisticPage.vue"; -import ProgressPage from "@/pages/dashboard/ProgressPage.vue"; -import SimpleDates from "@/components/dashboard/SimpleDates.vue"; import ItDropdownSelect from "@/components/ui/ItDropdownSelect.vue"; import { useDashboardStore } from "@/stores/dashboard"; -import type { DashboardType } from "@/gql/graphql"; import type { DashboardCourseConfigType } from "@/services/dashboard"; -import SimpleCoursePage from "@/pages/dashboard/SimpleCoursePage.vue"; import LoadingSpinner from "@/components/ui/LoadingSpinner.vue"; -import CourseDetailDates from "@/components/dashboard/CourseDetailDates.vue"; import NoCourseSession from "@/components/dashboard/NoCourseSession.vue"; -import MentorPage from "@/pages/dashboard/MentorPage.vue"; import CoursePanel from "@/components/dashboard/CoursePanel.vue"; import DashboardAsideWidget from "@/pages/dashboard/DashboardAsideWidget.vue"; const dashboardStore = useDashboardStore(); -interface DashboardPage { - main: Component; - aside: Component; -} - -const boards: Record = { - PROGRESS_DASHBOARD: { main: ProgressPage, aside: SimpleDates }, - SIMPLE_DASHBOARD: { main: SimpleCoursePage, aside: SimpleDates }, - STATISTICS_DASHBOARD: { main: StatisticPage, aside: CourseDetailDates }, - MENTOR_DASHBOARD: { main: MentorPage, aside: SimpleDates }, - PRAXISBILDNER_DASHBOARD: { main: CoursePanel, aside: SimpleDates }, -}; - onMounted(async () => { await dashboardStore.loadDashboardDetails(); }); @@ -68,23 +47,6 @@ function newDashboardConfigForId(id: string): DashboardCourseConfigType | undefi - - - - - - - - - - - - - - - - -