style: fix linting issues met Prettier
This commit is contained in:
		
							parent
							
								
									a5e095b852
								
							
						
					
					
						commit
						5529d14bf0
					
				
					 3 changed files with 26 additions and 27 deletions
				
			
		|  | @ -1,5 +1,5 @@ | |||
| import { SubmissionController, type SubmissionResponse } from '@/controllers/submissions'; | ||||
| import type { SubmissionDTO } from '@dwengo-1/common/interfaces/submission'; | ||||
| import { SubmissionController, type SubmissionResponse } from "@/controllers/submissions"; | ||||
| import type { SubmissionDTO } from "@dwengo-1/common/interfaces/submission"; | ||||
| import { | ||||
|     QueryClient, | ||||
|     useMutation, | ||||
|  | @ -7,11 +7,11 @@ import { | |||
|     useQuery, | ||||
|     useQueryClient, | ||||
|     type UseQueryReturnType, | ||||
| } from '@tanstack/vue-query'; | ||||
| import { computed, type MaybeRefOrGetter, toValue } from 'vue'; | ||||
| import { LEARNING_PATH_KEY } from '@/queries/learning-paths.ts'; | ||||
| import { LEARNING_OBJECT_KEY } from '@/queries/learning-objects.ts'; | ||||
| import { Language } from '@dwengo-1/common/util/language'; | ||||
| } from "@tanstack/vue-query"; | ||||
| import { computed, type MaybeRefOrGetter, toValue } from "vue"; | ||||
| import { LEARNING_PATH_KEY } from "@/queries/learning-paths.ts"; | ||||
| import { LEARNING_OBJECT_KEY } from "@/queries/learning-objects.ts"; | ||||
| import { Language } from "@dwengo-1/common/util/language"; | ||||
| 
 | ||||
| export const SUBMISSION_KEY = "submissions"; | ||||
| 
 | ||||
|  | @ -54,8 +54,8 @@ export async function invalidateAllSubmissionKeys( | |||
|                 submissionNumber, | ||||
|             ].filter((arg) => arg !== undefined); | ||||
|             return queryClient.invalidateQueries({ queryKey: queryKey }); | ||||
|         }) | ||||
|     ) | ||||
|         }), | ||||
|     ); | ||||
| 
 | ||||
|     await queryClient.invalidateQueries({ | ||||
|         queryKey: ["submissions", hruid, language, version, classid, assignmentNumber, groupNumber].filter( | ||||
|  |  | |||
|  | @ -1,18 +1,18 @@ | |||
| <script setup lang="ts"> | ||||
| import { Language } from '@/data-objects/language.ts'; | ||||
| import type { LearningPath } from '@/data-objects/learning-paths/learning-path.ts'; | ||||
| import { computed, type ComputedRef, ref } from 'vue'; | ||||
| import type { LearningObject } from '@/data-objects/learning-objects/learning-object.ts'; | ||||
| import { useRoute, useRouter } from 'vue-router'; | ||||
| import LearningObjectView from '@/views/learning-paths/learning-object/LearningObjectView.vue'; | ||||
| import { useI18n } from 'vue-i18n'; | ||||
| import LearningPathSearchField from '@/components/LearningPathSearchField.vue'; | ||||
| import { useGetLearningPathQuery } from '@/queries/learning-paths.ts'; | ||||
| import { useLearningObjectListForPathQuery } from '@/queries/learning-objects.ts'; | ||||
| import UsingQueryResult from '@/components/UsingQueryResult.vue'; | ||||
| import authService from '@/services/auth/auth-service.ts'; | ||||
| import { LearningPathNode } from '@/data-objects/learning-paths/learning-path-node.ts'; | ||||
| import LearningPathGroupSelector from '@/views/learning-paths/LearningPathGroupSelector.vue'; | ||||
|     import { Language } from "@/data-objects/language.ts"; | ||||
|     import type { LearningPath } from "@/data-objects/learning-paths/learning-path.ts"; | ||||
|     import { computed, type ComputedRef, ref } from "vue"; | ||||
|     import type { LearningObject } from "@/data-objects/learning-objects/learning-object.ts"; | ||||
|     import { useRoute, useRouter } from "vue-router"; | ||||
|     import LearningObjectView from "@/views/learning-paths/learning-object/LearningObjectView.vue"; | ||||
|     import { useI18n } from "vue-i18n"; | ||||
|     import LearningPathSearchField from "@/components/LearningPathSearchField.vue"; | ||||
|     import { useGetLearningPathQuery } from "@/queries/learning-paths.ts"; | ||||
|     import { useLearningObjectListForPathQuery } from "@/queries/learning-objects.ts"; | ||||
|     import UsingQueryResult from "@/components/UsingQueryResult.vue"; | ||||
|     import authService from "@/services/auth/auth-service.ts"; | ||||
|     import { LearningPathNode } from "@/data-objects/learning-paths/learning-path-node.ts"; | ||||
|     import LearningPathGroupSelector from "@/views/learning-paths/LearningPathGroupSelector.vue"; | ||||
| 
 | ||||
|     const router = useRouter(); | ||||
|     const route = useRoute(); | ||||
|  | @ -40,7 +40,7 @@ const router = useRouter(); | |||
|                 classId: query.value.classId, | ||||
|             }; | ||||
|         } | ||||
|         return undefined | ||||
|         return undefined; | ||||
|     }); | ||||
| 
 | ||||
|     const learningPathQueryResult = useGetLearningPathQuery(props.hruid, props.language, forGroup); | ||||
|  |  | |||
|  | @ -14,8 +14,7 @@ | |||
|     const submissionData = computed<SubmissionData | undefined>({ | ||||
|         get: () => props.submissionData, | ||||
|         set: (v?: SubmissionData): void => { | ||||
|           if (v) | ||||
|             emit("update:submissionData", v) | ||||
|             if (v) emit("update:submissionData", v); | ||||
|         }, | ||||
|     }); | ||||
| 
 | ||||
|  |  | |||
		Reference in a new issue
	
	 Lint Action
						Lint Action