style: lint en format
This commit is contained in:
		
							parent
							
								
									128c245779
								
							
						
					
					
						commit
						f971264ce6
					
				
					 4 changed files with 9 additions and 10 deletions
				
			
		|  | @ -54,10 +54,9 @@ export class TeacherController extends BaseController { | |||
|         studentUsername: string, | ||||
|         accepted: boolean, | ||||
|     ): Promise<JoinRequestResponse> { | ||||
|         return this.put<JoinRequestResponse>( | ||||
|             `/${teacherUsername}/joinRequests/${classId}/${studentUsername}`, | ||||
|             {accepted}, | ||||
|         ); | ||||
|         return this.put<JoinRequestResponse>(`/${teacherUsername}/joinRequests/${classId}/${studentUsername}`, { | ||||
|             accepted, | ||||
|         }); | ||||
|     } | ||||
| 
 | ||||
|     // GetInvitations(id: string) {return this.get<{ invitations: string[] }>(`/${id}/invitations`);}
 | ||||
|  |  | |||
|  | @ -20,7 +20,7 @@ import type { GroupsResponse } from "@/controllers/groups.ts"; | |||
| import type { SubmissionsResponse } from "@/controllers/submissions.ts"; | ||||
| import type { QuestionsResponse } from "@/controllers/questions.ts"; | ||||
| import type { StudentDTO } from "@dwengo-1/common/interfaces/student"; | ||||
| import {teacherClassJoinRequests} from "@/queries/teachers.ts"; | ||||
| import { teacherClassJoinRequests } from "@/queries/teachers.ts"; | ||||
| 
 | ||||
| const studentController = new StudentController(); | ||||
| 
 | ||||
|  |  | |||
|  | @ -5,9 +5,8 @@ | |||
|     import type { ClassDTO } from "@dwengo-1/common/interfaces/class"; | ||||
|     import { useRoute } from "vue-router"; | ||||
|     import { ClassController, type ClassResponse } from "@/controllers/classes"; | ||||
|     import type { JoinRequestResponse, JoinRequestsResponse, StudentsResponse } from "@/controllers/students"; | ||||
|     import type { JoinRequestsResponse, StudentsResponse } from "@/controllers/students"; | ||||
|     import type { StudentDTO } from "@dwengo-1/common/interfaces/student"; | ||||
|     import { useStudentJoinRequestQuery } from "@/queries/students"; | ||||
|     import UsingQueryResult from "@/components/UsingQueryResult.vue"; | ||||
|     import { useTeacherJoinRequestsQuery, useUpdateJoinRequestMutation } from "@/queries/teachers"; | ||||
|     import type { ClassJoinRequestDTO } from "@dwengo-1/common/interfaces/class-join-request"; | ||||
|  | @ -67,7 +66,8 @@ | |||
|         //TODO when query; reload table so student not longer in table | ||||
|     } | ||||
| 
 | ||||
|     function handleJoinRequest(c: ClassJoinRequestDTO, accepted: boolean) { | ||||
|     // TODO: query + relaoding | ||||
|     function handleJoinRequest(c: ClassJoinRequestDTO, accepted: boolean) : void { | ||||
|         mutate( | ||||
|             { | ||||
|                 teacherUsername: username.value!, | ||||
|  | @ -80,7 +80,7 @@ | |||
|                     showSnackbar(t("sent"), "success"); | ||||
|                 }, | ||||
|                 onError: (e) => { | ||||
|                     // showSnackbar(t("failed") + ": " + e.message, "error"); | ||||
|                     // ShowSnackbar(t("failed") + ": " + e.message, "error"); | ||||
|                     throw e; | ||||
|                 }, | ||||
|             }, | ||||
|  |  | |||
		Reference in a new issue
	
	 laurejablonski
						laurejablonski