fix(frontend): Linting errors/warnings opgelost
This commit is contained in:
parent
b2e6b33716
commit
4d98be78c1
26 changed files with 272 additions and 258 deletions
|
@ -10,12 +10,12 @@
|
|||
|
||||
const query = computed({
|
||||
get: () => route.query.query as string | null,
|
||||
set: (newValue) => router.push({path: SEARCH_PATH, query: {query: newValue}})
|
||||
set: async (newValue) => router.push({path: SEARCH_PATH, query: {query: newValue}})
|
||||
});
|
||||
|
||||
const queryInput = ref(query.value);
|
||||
|
||||
function search() {
|
||||
function search(): void {
|
||||
query.value = queryInput.value;
|
||||
}
|
||||
</script>
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<script setup lang="ts">
|
||||
|
||||
import {convertBase64ToImageSrc} from "@/utils/base64ToImage.ts";
|
||||
import type {LearningPath} from "@/data-objects/learning-path.ts";
|
||||
import type {LearningPath} from "@/data-objects/learning-paths/learning-path.ts";
|
||||
import {useI18n} from "vue-i18n";
|
||||
|
||||
const { t } = useI18n();
|
||||
|
@ -15,6 +15,7 @@ const props = defineProps<{learningPaths: LearningPath[]}>();
|
|||
class="learning-path-card"
|
||||
link
|
||||
:to="`/learningPath/${learningPath.hruid}/${learningPath.language}/${learningPath.startNode.learningobjectHruid}`"
|
||||
:key="[learningPath.hruid, learningPath.language]"
|
||||
v-for="learningPath in props.learningPaths"
|
||||
>
|
||||
<v-img
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
const { t } = useI18n();
|
||||
|
||||
const errorMessage = computed(() => {
|
||||
let errorWithMessage = (error.value as {message: string}) || null;
|
||||
const errorWithMessage = (error.value as {message: string}) || null;
|
||||
return errorWithMessage?.message || JSON.stringify(errorWithMessage)
|
||||
});
|
||||
</script>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue