style: fix linting issues met Prettier

This commit is contained in:
Lint Action 2025-05-15 17:38:24 +00:00
parent 064897acd5
commit 25cb1d248f
5 changed files with 7 additions and 11 deletions

View file

@ -14,7 +14,7 @@ import UserHomePage from "@/views/homepage/UserHomePage.vue";
import SingleTheme from "@/views/SingleTheme.vue";
import LearningObjectView from "@/views/learning-paths/learning-object/LearningObjectView.vue";
import authService from "@/services/auth/auth-service";
import {allowRedirect, Redirect} from "@/utils/redirect.ts";
import { allowRedirect, Redirect } from "@/utils/redirect.ts";
const router = createRouter({
history: createWebHistory(import.meta.env.BASE_URL),

View file

@ -2,12 +2,10 @@ export enum Redirect {
AFTER_LOGIN_KEY = "redirectAfterLogin",
HOME = "/user",
LOGIN = "/login",
ROOT = "/"
ROOT = "/",
}
const NOT_ALLOWED_REDIRECTS = new Set<Redirect>([
Redirect.HOME, Redirect.ROOT, Redirect.LOGIN
]);
const NOT_ALLOWED_REDIRECTS = new Set<Redirect>([Redirect.HOME, Redirect.ROOT, Redirect.LOGIN]);
export function allowRedirect(path: string): boolean {
return !NOT_ALLOWED_REDIRECTS.has(path as Redirect);

View file

@ -3,7 +3,7 @@
import { useI18n } from "vue-i18n";
import { onMounted, ref, type Ref } from "vue";
import auth from "../services/auth/auth-service.ts";
import {Redirect} from "@/utils/redirect.ts";
import { Redirect } from "@/utils/redirect.ts";
const { t } = useI18n();

View file

@ -35,7 +35,7 @@
<using-query-result :query-result="themeQueryResult">
<h1>{{ currentThemeInfo!!.title }}</h1>
<p>{{ currentThemeInfo!!.description }}</p>
<br>
<br />
<div class="search-field-container mt-sm-6">
<v-text-field
class="search-field mx-auto"

View file

@ -18,9 +18,8 @@
<template>
<div class="search-page-container d-flex flex-column align-items-center justify-center">
<div class = "search-field-container">
<learning-path-search-field class="mx-auto"/>
<div class="search-field-container">
<learning-path-search-field class="mx-auto" />
</div>
<using-query-result
@ -40,7 +39,6 @@
:text="t('enterSearchTermDescription')"
/>
</div>
</div>
</template>