style: fix linting issues met Prettier
This commit is contained in:
parent
064897acd5
commit
25cb1d248f
5 changed files with 7 additions and 11 deletions
|
@ -14,7 +14,7 @@ import UserHomePage from "@/views/homepage/UserHomePage.vue";
|
||||||
import SingleTheme from "@/views/SingleTheme.vue";
|
import SingleTheme from "@/views/SingleTheme.vue";
|
||||||
import LearningObjectView from "@/views/learning-paths/learning-object/LearningObjectView.vue";
|
import LearningObjectView from "@/views/learning-paths/learning-object/LearningObjectView.vue";
|
||||||
import authService from "@/services/auth/auth-service";
|
import authService from "@/services/auth/auth-service";
|
||||||
import {allowRedirect, Redirect} from "@/utils/redirect.ts";
|
import { allowRedirect, Redirect } from "@/utils/redirect.ts";
|
||||||
|
|
||||||
const router = createRouter({
|
const router = createRouter({
|
||||||
history: createWebHistory(import.meta.env.BASE_URL),
|
history: createWebHistory(import.meta.env.BASE_URL),
|
||||||
|
|
|
@ -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);
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
import { useI18n } from "vue-i18n";
|
import { useI18n } from "vue-i18n";
|
||||||
import { onMounted, ref, type Ref } from "vue";
|
import { onMounted, ref, type Ref } from "vue";
|
||||||
import auth from "../services/auth/auth-service.ts";
|
import auth from "../services/auth/auth-service.ts";
|
||||||
import {Redirect} from "@/utils/redirect.ts";
|
import { Redirect } from "@/utils/redirect.ts";
|
||||||
|
|
||||||
const { t } = useI18n();
|
const { t } = useI18n();
|
||||||
|
|
||||||
|
|
|
@ -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"
|
||||||
|
|
|
@ -18,9 +18,8 @@
|
||||||
|
|
||||||
<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>
|
||||||
|
|
||||||
<using-query-result
|
<using-query-result
|
||||||
|
@ -40,7 +39,6 @@
|
||||||
:text="t('enterSearchTermDescription')"
|
:text="t('enterSearchTermDescription')"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue