style: fix linting issues met Prettier
This commit is contained in:
		
							parent
							
								
									ad1e5a30ae
								
							
						
					
					
						commit
						098be7a7fd
					
				
					 2 changed files with 17 additions and 22 deletions
				
			
		|  | @ -1,9 +1,9 @@ | ||||||
| <script setup lang="ts"> | <script setup lang="ts"> | ||||||
| import type { LearningObject } from '@/data-objects/learning-objects/learning-object'; |     import type { LearningObject } from "@/data-objects/learning-objects/learning-object"; | ||||||
| import type { LearningPath } from '@/data-objects/learning-paths/learning-path'; |     import type { LearningPath } from "@/data-objects/learning-paths/learning-path"; | ||||||
| import { useLearningObjectListForPathQuery } from '@/queries/learning-objects'; |     import { useLearningObjectListForPathQuery } from "@/queries/learning-objects"; | ||||||
| import { useRoute } from 'vue-router'; |     import { useRoute } from "vue-router"; | ||||||
| import UsingQueryResult from '@/components/UsingQueryResult.vue'; |     import UsingQueryResult from "@/components/UsingQueryResult.vue"; | ||||||
| 
 | 
 | ||||||
|     const route = useRoute(); |     const route = useRoute(); | ||||||
| 
 | 
 | ||||||
|  | @ -11,7 +11,6 @@ const props = defineProps<{ | ||||||
|         path: LearningPath; |         path: LearningPath; | ||||||
|         activeObjectId: string; |         activeObjectId: string; | ||||||
|     }>(); |     }>(); | ||||||
| 
 |  | ||||||
| </script> | </script> | ||||||
| 
 | 
 | ||||||
| <template> | <template> | ||||||
|  | @ -44,5 +43,4 @@ const props = defineProps<{ | ||||||
|     </v-expansion-panel> |     </v-expansion-panel> | ||||||
| </template> | </template> | ||||||
| 
 | 
 | ||||||
| <style scoped> | <style scoped></style> | ||||||
| </style> |  | ||||||
|  |  | ||||||
|  | @ -5,21 +5,20 @@ | ||||||
|     import { useI18n } from "vue-i18n"; |     import { useI18n } from "vue-i18n"; | ||||||
|     import { useGetAllLearningPaths } from "@/queries/learning-paths.ts"; |     import { useGetAllLearningPaths } from "@/queries/learning-paths.ts"; | ||||||
|     import { ref, watch } from "vue"; |     import { ref, watch } from "vue"; | ||||||
|     import { useRoute } from 'vue-router'; |     import { useRoute } from "vue-router"; | ||||||
| 
 | 
 | ||||||
|     const { t, locale } = useI18n(); |     const { t, locale } = useI18n(); | ||||||
|     const route = useRoute(); |     const route = useRoute(); | ||||||
| 
 | 
 | ||||||
|     const navigationDrawerShown = ref(true); |     const navigationDrawerShown = ref(true); | ||||||
|     const currentLocale = ref(locale.value); |     const currentLocale = ref(locale.value); | ||||||
|     const expanded = ref([route.params.hruid]) |     const expanded = ref([route.params.hruid]); | ||||||
| 
 | 
 | ||||||
|     watch(locale, (newLocale) => { |     watch(locale, (newLocale) => { | ||||||
|         currentLocale.value = newLocale; |         currentLocale.value = newLocale; | ||||||
|     }); |     }); | ||||||
| 
 | 
 | ||||||
|     const allLearningPathsResult = useGetAllLearningPaths(() => currentLocale.value); |     const allLearningPathsResult = useGetAllLearningPaths(() => currentLocale.value); | ||||||
| 
 |  | ||||||
| </script> | </script> | ||||||
| 
 | 
 | ||||||
| <template> | <template> | ||||||
|  | @ -35,9 +34,7 @@ | ||||||
|                 </template> |                 </template> | ||||||
|             </v-list-item> |             </v-list-item> | ||||||
|             <v-divider></v-divider> |             <v-divider></v-divider> | ||||||
|             <v-expansion-panels |             <v-expansion-panels v-model="expanded"> | ||||||
|                 v-model="expanded" |  | ||||||
|             > |  | ||||||
|                 <using-query-result |                 <using-query-result | ||||||
|                     :query-result="allLearningPathsResult" |                     :query-result="allLearningPathsResult" | ||||||
|                     v-slot="learningPaths: { data: LearningPath[] }" |                     v-slot="learningPaths: { data: LearningPath[] }" | ||||||
|  |  | ||||||
		Reference in a new issue
	
	 Lint Action
						Lint Action