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

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

View file

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

View file

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