From ea5cf7abf95bd7cf6acbfddb9df6854ad58ba523 Mon Sep 17 00:00:00 2001 From: Lint Action Date: Tue, 1 Apr 2025 15:09:28 +0000 Subject: [PATCH] style: fix linting issues met Prettier --- backend/src/controllers/learning-objects.ts | 2 +- frontend/src/components/BrowseThemes.vue | 6 +- .../components/LearningPathSearchField.vue | 12 +- frontend/src/components/LearningPathsGrid.vue | 24 +- frontend/src/components/UsingQueryResult.vue | 32 +- frontend/src/controllers/base-controller.ts | 11 +- frontend/src/controllers/controllers.ts | 4 +- frontend/src/controllers/learning-objects.ts | 10 +- frontend/src/controllers/learning-paths.ts | 26 +- frontend/src/data-objects/language.ts | 368 +++++++++--------- .../learning-objects/learning-object.ts | 6 +- .../learning-paths/learning-path-dto.ts | 2 +- .../learning-paths/learning-path-node.ts | 47 +-- .../learning-paths/learning-path.ts | 39 +- .../http-error-response-exception.ts | 4 +- frontend/src/main.ts | 10 +- frontend/src/queries/learning-objects.ts | 24 +- frontend/src/queries/learning-paths.ts | 24 +- frontend/src/queries/themes.ts | 2 +- frontend/src/router/index.ts | 6 +- frontend/src/utils/response-assertions.ts | 8 +- frontend/src/views/CallbackPage.vue | 2 +- frontend/src/views/SingleTheme.vue | 49 +-- .../learning-paths/LearningObjectView.vue | 33 +- .../views/learning-paths/LearningPathPage.vue | 123 +++--- .../learning-paths/LearningPathSearchPage.vue | 15 +- 26 files changed, 467 insertions(+), 422 deletions(-) diff --git a/backend/src/controllers/learning-objects.ts b/backend/src/controllers/learning-objects.ts index dc1c2c14..b872ee74 100644 --- a/backend/src/controllers/learning-objects.ts +++ b/backend/src/controllers/learning-objects.ts @@ -49,7 +49,7 @@ export async function getLearningObject(req: Request, res: Response): Promise import ThemeCard from "@/components/ThemeCard.vue"; - import {ref, watchEffect, computed, type Ref} from "vue"; + import { ref, watchEffect, computed, type Ref } from "vue"; import { useI18n } from "vue-i18n"; import { AGE_TO_THEMES, THEMESITEMS } from "@/utils/constants.ts"; import { useThemeQuery } from "@/queries/themes.ts"; - import type {Theme} from "@/data-objects/theme.ts"; + import type { Theme } from "@/data-objects/theme.ts"; const props = defineProps({ selectedTheme: { type: String, required: true }, @@ -17,7 +17,7 @@ const { data: allThemes, isLoading, error } = useThemeQuery(language); const allCards: Ref = ref([]); - const cards: Ref = ref([]); + const cards: Ref = ref([]); watchEffect(() => { const themes: Theme[] = allThemes.value ?? []; diff --git a/frontend/src/components/LearningPathSearchField.vue b/frontend/src/components/LearningPathSearchField.vue index 2d89c192..b8b71960 100644 --- a/frontend/src/components/LearningPathSearchField.vue +++ b/frontend/src/components/LearningPathSearchField.vue @@ -1,7 +1,7 @@