Skip to content

Commit

Permalink
chore: better file names
Browse files Browse the repository at this point in the history
  • Loading branch information
francisvaut committed Apr 14, 2024
1 parent 8b2b8f9 commit 45b606e
Show file tree
Hide file tree
Showing 28 changed files with 28 additions and 28 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { type Course } from '@/types/Course.ts';
import { type Student } from '@/types/users/Student.ts';
import { useAuthStore } from '@/store/authentication.store.ts';
import { useMessagesStore } from '@/store/messages.store.ts';
import { useStudents } from '@/composables/services/students.service.ts';
import { useStudents } from '@/composables/services/student.service.ts';
import { useI18n } from 'vue-i18n';
/* Props */
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/components/projects/ChooseGroupCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import { ref } from 'vue';
import { useI18n } from 'vue-i18n';
import Dialog from 'primevue/dialog';
import { useStudents } from '@/composables/services/students.service.ts';
import { useStudents } from '@/composables/services/student.service.ts';
import { storeToRefs } from 'pinia';
import { useAuthStore } from '@/store/authentication.store.ts';
import { type Group } from '@/types/Group.ts';
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/components/projects/JoinedGroupCard.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script setup lang="ts">
import { useStudents } from '@/composables/services/students.service.ts';
import { useStudents } from '@/composables/services/student.service.ts';
import { onMounted, watch } from 'vue';
import { useI18n } from 'vue-i18n';
import { type Group } from '@/types/Group.ts';
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/composables/services/assistant.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { Response } from '@/types/Response';
import { type Ref, ref } from 'vue';
import { endpoints } from '@/config/endpoints.ts';
import { get, getList, create, deleteId, deleteIdWithData } from '@/composables/services/helpers.ts';
import { useCourses } from '@/composables/services/courses.service.ts';
import { useCourses } from '@/composables/services/course.service.ts';

interface AssistantState {
assistants: Ref<Assistant[] | null>;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { Response } from '@/types/Response';
import { type Ref, ref } from 'vue';
import { endpoints } from '@/config/endpoints.ts';
import { get, getList, create, deleteId, deleteIdWithData } from '@/composables/services/helpers.ts';
import { useCourses } from '@/composables/services/courses.service.ts';
import { useCourses } from '@/composables/services/course.service.ts';

interface StudentsState {
students: Ref<Student[] | null>;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { Response } from '@/types/Response';
import { type Ref, ref } from 'vue';
import { endpoints } from '@/config/endpoints.ts';
import { get, getList, create, deleteId, deleteIdWithData } from '@/composables/services/helpers.ts';
import { useCourses } from '@/composables/services/courses.service.ts';
import { useCourses } from '@/composables/services/course.service.ts';

interface TeacherState {
teachers: Ref<Teacher[] | null>;
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/store/authentication.store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import { client } from '@/config/axios.ts';
import { useLocalStorage } from '@vueuse/core';
import { computed, ref, watch } from 'vue';
import { useAssistant } from '@/composables/services/assistant.service';
import { useStudents } from '@/composables/services/students.service';
import { useTeacher } from '@/composables/services/teachers.service';
import { useStudents } from '@/composables/services/student.service';
import { useTeacher } from '@/composables/services/teacher.service';
import { type Teacher } from '@/types/users/Teacher.ts';
import { type Student } from '@/types/users/Student.ts';
import { type Assistant } from '@/types/users/Assistant.ts';
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/test/unit/services/admin_service.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* eslint-disable @typescript-eslint/no-unused-vars */
import { describe, it, expect } from 'vitest';
import { useAdmin } from '@/composables/services/admins.service.ts';
import { useAdmin } from '@/composables/services/admin.service';
import { User } from '@/types/users/User.ts';

const {
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/test/unit/services/course_service.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import { describe, it, expect } from 'vitest';
import { Course } from '@/types/Course.ts';

import { useCourses } from '@/composables/services/courses.service.ts';
import { useCourses } from '@/composables/services/course.service.ts';

const {
pagination,
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/test/unit/services/faculty_service.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* eslint-disable @typescript-eslint/no-unused-vars */
import { describe, it, expect } from 'vitest';
import { useFaculty } from '@/composables/services/faculties.service.ts';
import { useFaculty } from '@/composables/services/faculty.service.ts';
import { Faculty } from '@/types/Faculty';

const {
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/test/unit/services/group_service.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* eslint-disable @typescript-eslint/no-unused-vars */
import { describe, it, expect } from 'vitest';
import { useGroup } from '@/composables/services/groups.service.ts';
import { useGroup } from '@/composables/services/group.service.ts';
import { Group } from '@/types/Group';
import { useProject } from '@/composables/services/project.service';
import { type Project } from '@/types/Project';
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/test/unit/services/project_service.test.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* eslint-disable @typescript-eslint/no-unused-vars */
import { describe, it, expect } from 'vitest';
import { useProject } from '@/composables/services/project.service.ts';
import { useCourses } from '@/composables/services/courses.service';
import { useCourses } from '@/composables/services/course.service';
import { Project } from '@/types/Project';
import { type Course } from '@/types/Course';

Expand Down
2 changes: 1 addition & 1 deletion frontend/src/test/unit/services/student_service.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* eslint-disable @typescript-eslint/no-unused-vars */
import { describe, it, expect } from 'vitest';
import { useStudents } from '@/composables/services/students.service.ts';
import { useStudents } from '@/composables/services/student.service.ts';
import { Student } from '@/types/users/Student';

const {
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/test/unit/services/teacher_service.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* eslint-disable @typescript-eslint/no-unused-vars */
import { describe, it, expect } from 'vitest';
import { useTeacher } from '@/composables/services/teachers.service.ts';
import { useTeacher } from '@/composables/services/teacher.service.ts';

const {
teachers,
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/views/courses/CourseView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import StudentCourseView from './roles/StudentCourseView.vue';
import TeacherCourseView from './roles/TeacherCourseView.vue';
import AssistantCourseView from './roles/AssistantCourseView.vue';
import { onMounted } from 'vue';
import { useCourses } from '@/composables/services/courses.service.ts';
import { useCourses } from '@/composables/services/course.service.ts';
import { useRoute } from 'vue-router';
import { useAuthStore } from '@/store/authentication.store.ts';
import { storeToRefs } from 'pinia';
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/views/courses/CreateCourseView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import InputText from 'primevue/inputtext';
import Textarea from 'primevue/textarea';
import Button from 'primevue/button';
import { Course } from '@/types/Course';
import { useCourses } from '@/composables/services/courses.service';
import { useFaculty } from '@/composables/services/faculties.service.ts';
import { useCourses } from '@/composables/services/course.service';
import { useFaculty } from '@/composables/services/faculty.service.ts';
import { required, helpers } from '@vuelidate/validators';
import { useVuelidate } from '@vuelidate/core';
import ErrorMessage from '@/components/forms/ErrorMessage.vue';
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/views/courses/SearchCourseView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ 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/courses.service.ts';
import { useCourses } from '@/composables/services/course.service.ts';
import { useAuthStore } from '@/store/authentication.store.ts';
import { useFaculty } from '@/composables/services/faculties.service.ts';
import { useFaculty } from '@/composables/services/faculty.service.ts';
import { storeToRefs } from 'pinia';
import { useI18n } from 'vue-i18n';
import { useFilter } from '@/composables/filters/filter.ts';
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/views/courses/UpdateCourseView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import Title from '@/components/layout/Title.vue';
import { reactive, computed, onMounted } from 'vue';
import { useRouter, useRoute } from 'vue-router';
import { useI18n } from 'vue-i18n';
import { useCourses } from '@/composables/services/courses.service';
import { useFaculty } from '@/composables/services/faculties.service.ts';
import { useCourses } from '@/composables/services/course.service';
import { useFaculty } from '@/composables/services/faculty.service.ts';
import { Faculty } from '@/types/Faculty';
import InputText from 'primevue/inputtext';
import Textarea from 'primevue/textarea';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import ProjectList from '@/components/projects/ProjectList.vue';
import ProjectCreateButton from '@/components/projects/ProjectCreateButton.vue';
import { useI18n } from 'vue-i18n';
import { computed, ref, watch } from 'vue';
import { useCourses } from '@/composables/services/courses.service.ts';
import { useCourses } from '@/composables/services/course.service.ts';
import { type Assistant } from '@/types/users/Assistant';
import { getAcademicYear, getAcademicYears } from '@/types/Course.ts';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import ProjectList from '@/components/projects/ProjectList.vue';
import { type Student } from '@/types/users/Student.ts';
import { useI18n } from 'vue-i18n';
import { computed, ref, watch } from 'vue';
import { useCourses } from '@/composables/services/courses.service.ts';
import { useCourses } from '@/composables/services/course.service.ts';
import { getAcademicYear, getAcademicYears } from '@/types/Course.ts';
/* Props */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { type Teacher } from '@/types/users/Teacher';
import { PrimeIcons } from 'primevue/api';
import { useI18n } from 'vue-i18n';
import { computed, ref, watch } from 'vue';
import { useCourses } from '@/composables/services/courses.service.ts';
import { useCourses } from '@/composables/services/course.service.ts';
import { getAcademicYear, getAcademicYears } from '@/types/Course.ts';
/* Props */
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/views/projects/ProjectView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ 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/courses.service.ts';
import { useCourses } from '@/composables/services/course.service.ts';
import { computed, onMounted, ref } from 'vue';
import { storeToRefs } from 'pinia';
import { useAuthStore } from '@/store/authentication.store.ts';
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/views/projects/roles/StudentProjectView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import Skeleton from 'primevue/skeleton';
import { onMounted, ref } from 'vue';
import { useProject } from '@/composables/services/project.service.ts';
import { useRoute } from 'vue-router';
import { useGroup } from '@/composables/services/groups.service.ts';
import { useGroup } from '@/composables/services/group.service.ts';
import { type Group } from '@/types/Group.ts';
import { useAuthStore } from '@/store/authentication.store.ts';
import { storeToRefs } from 'pinia';
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/views/submissions/submissionView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { useI18n } from 'vue-i18n';
import { onMounted, ref } from 'vue';
import { useProject } from '@/composables/services/project.service.ts';
import { useRoute } from 'vue-router';
import { useCourses } from '@/composables/services/courses.service.ts';
import { useCourses } from '@/composables/services/course.service.ts';
import FileUpload from 'primevue/fileupload';
import { PrimeIcons } from 'primevue/api';
Expand Down

0 comments on commit 45b606e

Please sign in to comment.