Skip to content

Commit

Permalink
Better academic year selector, filtering and sorting (#292)
Browse files Browse the repository at this point in the history
* feat: academic year selector, better pagination and filtering composables

* chore: added course pagination
  • Loading branch information
EwoutV authored and DeLany123 committed Apr 16, 2024
1 parent 8b4ce38 commit 1c752ac
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
5 changes: 2 additions & 3 deletions frontend/src/views/courses/SearchCourseView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import Paginator from 'primevue/paginator';
import Title from '@/components/layout/Title.vue';
import BaseLayout from '@/components/layout/BaseLayout.vue';
import CourseList from '@/components/courses/CourseList.vue';
import { onMounted } from 'vue';
import { useCourses } from '@/composables/services/course.service.ts';
import { onMounted, watch } from 'vue';
import { useCourses } from '@/composables/services/courses.service.ts';
import { useAuthStore } from '@/store/authentication.store.ts';
import { useFaculty } from '@/composables/services/faculty.service.ts';
import { storeToRefs } from 'pinia';
Expand All @@ -19,7 +19,6 @@ import { useFilter } from '@/composables/filters/filter.ts';
import { usePaginator } from '@/composables/filters/paginator.ts';
import { useRoute } from 'vue-router';
import { getCourseFilters } from '@/types/filter/Filter.ts';
import { getAcademicYears } from '@/types/Course.ts';
/* Composable injections */
const { t } = useI18n();
Expand Down
7 changes: 3 additions & 4 deletions frontend/src/views/projects/ProjectView.vue
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
<script setup lang="ts">
import BaseLayout from '@/components/layout/BaseLayout.vue';
import ProjectList from '@/components/projects/ProjectList.vue';
import Title from '@/components/layout/Title.vue';
import YearSelector from '@/components/YearSelector.vue';
import { useCourses } from '@/composables/services/course.service.ts';
import { useCourses } from '@/composables/services/courses.service.ts';
import { computed, onMounted, ref } from 'vue';
import { storeToRefs } from 'pinia';
import { useAuthStore } from '@/store/authentication.store.ts';
import ProjectList from '@/components/projects/ProjectList.vue';
import Title from '@/components/layout/Title.vue';
import { useI18n } from 'vue-i18n';
import { getAcademicYear, getAcademicYears } from '@/types/Course.ts';
Expand Down

0 comments on commit 1c752ac

Please sign in to comment.