style: fix linting issues met Prettier

This commit is contained in:
Lint Action 2025-05-19 14:24:26 +00:00
parent ad1e5a30ae
commit 098be7a7fd
2 changed files with 17 additions and 22 deletions

View file

@ -1,17 +1,16 @@
<script setup lang="ts">
import type { LearningObject } from '@/data-objects/learning-objects/learning-object';
import type { LearningPath } from '@/data-objects/learning-paths/learning-path';
import { useLearningObjectListForPathQuery } from '@/queries/learning-objects';
import { useRoute } from 'vue-router';
import UsingQueryResult from '@/components/UsingQueryResult.vue';
import type { LearningObject } from "@/data-objects/learning-objects/learning-object";
import type { LearningPath } from "@/data-objects/learning-paths/learning-path";
import { useLearningObjectListForPathQuery } from "@/queries/learning-objects";
import { useRoute } from "vue-router";
import UsingQueryResult from "@/components/UsingQueryResult.vue";
const route = useRoute();
const props = defineProps<{
path: LearningPath;
activeObjectId: string;
}>();
const route = useRoute();
const props = defineProps<{
path: LearningPath;
activeObjectId: string;
}>();
</script>
<template>
@ -31,9 +30,9 @@ const props = defineProps<{
<v-list-item
link
:to="{
path: `/discussion-reload/${props.path.hruid}/${node.language}/${node.key}`,
query: route.query,
}"
path: `/discussion-reload/${props.path.hruid}/${node.language}/${node.key}`,
query: route.query,
}"
:title="node.title"
:active="node.key === props.activeObjectId"
>
@ -44,5 +43,4 @@ const props = defineProps<{
</v-expansion-panel>
</template>
<style scoped>
</style>
<style scoped></style>

View file

@ -5,21 +5,20 @@
import { useI18n } from "vue-i18n";
import { useGetAllLearningPaths } from "@/queries/learning-paths.ts";
import { ref, watch } from "vue";
import { useRoute } from 'vue-router';
import { useRoute } from "vue-router";
const { t, locale } = useI18n();
const route = useRoute();
const navigationDrawerShown = ref(true);
const currentLocale = ref(locale.value);
const expanded = ref([route.params.hruid])
const expanded = ref([route.params.hruid]);
watch(locale, (newLocale) => {
currentLocale.value = newLocale;
});
const allLearningPathsResult = useGetAllLearningPaths(() => currentLocale.value);
</script>
<template>
@ -35,9 +34,7 @@
</template>
</v-list-item>
<v-divider></v-divider>
<v-expansion-panels
v-model="expanded"
>
<v-expansion-panels v-model="expanded">
<using-query-result
:query-result="allLearningPathsResult"
v-slot="learningPaths: { data: LearningPath[] }"