style: fix linting issues met Prettier

This commit is contained in:
Lint Action 2025-05-09 16:21:18 +00:00
parent a5e4f2437b
commit 447fd150da
7 changed files with 20 additions and 21 deletions

View file

@ -15,7 +15,7 @@ import { invalidateAllGroupKeys } from "./groups";
import { invalidateAllSubmissionKeys } from "./submissions";
import type { TeachersResponse } from "@/controllers/teachers";
import type { TeacherInvitationsResponse } from "@/controllers/teacher-invitations";
import {studentClassesQueryKey} from "@/queries/students.ts";
import { studentClassesQueryKey } from "@/queries/students.ts";
const classController = new ClassController();

View file

@ -1,19 +1,20 @@
<script setup lang="ts">
import { useClassQuery } from '@/queries/classes';
import { defineProps } from 'vue';
import UsingQueryResult from "@/components/UsingQueryResult.vue";
import { useClassQuery } from "@/queries/classes";
import { defineProps } from "vue";
import UsingQueryResult from "@/components/UsingQueryResult.vue";
const props = defineProps({
classId: String,
});
const props = defineProps({
classId: String,
});
const classQuery = useClassQuery(props.classId);
const classQuery = useClassQuery(props.classId);
</script>
<template>
<using-query-result :query-result="classQuery" v-slot="{ data: classResponse }">
<span>{{ classResponse?.class.displayName}}</span>
<using-query-result
:query-result="classQuery"
v-slot="{ data: classResponse }"
>
<span>{{ classResponse?.class.displayName }}</span>
</using-query-result>
</template>

View file

@ -125,8 +125,8 @@
usernameTeacher.value = "";
},
onError: (e) => {
console.log("error", e)
console.log(e.response.data.error)
console.log("error", e);
console.log(e.response.data.error);
showSnackbar(t("failed") + ": " + e.response.data.error || e.message, "error");
},
});

View file

@ -346,9 +346,7 @@
<ClassDisplay :classId="i.classId" />
</td>
<td>
{{
(i.sender as TeacherDTO).firstName + " " + (i.sender as TeacherDTO).lastName
}}
{{ (i.sender as TeacherDTO).firstName + " " + (i.sender as TeacherDTO).lastName }}
</td>
<td class="text-right">
<span v-if="!isSmAndDown">