style: fix linting issues met Prettier

This commit is contained in:
Lint Action 2025-05-20 18:37:01 +00:00
parent cd2b29d6f5
commit 2371196cc4

View file

@ -1,10 +1,10 @@
import { createRouter, createWebHistory } from 'vue-router';
import authService from '@/services/auth/auth-service';
import { allowRedirect, Redirect } from '@/utils/redirect.ts';
import HomePage from '@/views/HomePage.vue';
import LoginPage from '@/views/LoginPage.vue';
import NotFound from '@/components/errors/NotFound.vue';
import CallbackPage from '@/views/CallbackPage.vue';
import { createRouter, createWebHistory } from "vue-router";
import authService from "@/services/auth/auth-service";
import { allowRedirect, Redirect } from "@/utils/redirect.ts";
import HomePage from "@/views/HomePage.vue";
import LoginPage from "@/views/LoginPage.vue";
import NotFound from "@/components/errors/NotFound.vue";
import CallbackPage from "@/views/CallbackPage.vue";
const router = createRouter({
history: createWebHistory(import.meta.env.BASE_URL),
@ -34,24 +34,24 @@ const router = createRouter({
{
path: "",
name: "UserHomePage",
component: async() : Promise<unknown> => import("@/views/homepage/UserHomePage.vue"),
component: async (): Promise<unknown> => import("@/views/homepage/UserHomePage.vue"),
},
{
path: "assignment",
name: "UserAssignments",
component: async() : Promise<unknown> => import("@/views/assignments/UserAssignments.vue"),
component: async (): Promise<unknown> => import("@/views/assignments/UserAssignments.vue"),
},
{
path: "class",
name: "UserClasses",
component: async() : Promise<unknown> => import("@/views/classes/UserClasses.vue"),
component: async (): Promise<unknown> => import("@/views/classes/UserClasses.vue"),
},
],
},
{
path: "/theme/:theme",
name: "Theme",
component: async(): Promise<unknown> => import("@/views/SingleTheme.vue"),
component: async (): Promise<unknown> => import("@/views/SingleTheme.vue"),
props: true,
meta: { requiresAuth: true },
},
@ -62,19 +62,19 @@ const router = createRouter({
{
path: "create",
name: "CreateAssigment",
component: async() : Promise<unknown> => import("@/views/assignments/CreateAssignment.vue"),
component: async (): Promise<unknown> => import("@/views/assignments/CreateAssignment.vue"),
},
{
path: ":classId/:id",
name: "SingleAssigment",
component: async() : Promise<unknown> => import("@/views/assignments/SingleAssignment.vue"),
component: async (): Promise<unknown> => import("@/views/assignments/SingleAssignment.vue"),
},
],
},
{
path: "/class/:id",
name: "SingleClass",
component: async() : Promise<unknown> => import("@/views/classes/SingleClass.vue"),
component: async (): Promise<unknown> => import("@/views/classes/SingleClass.vue"),
meta: { requiresAuth: true },
},
{
@ -84,32 +84,32 @@ const router = createRouter({
{
path: "",
name: "Discussions",
component: async() : Promise<unknown> => import("@/views/discussions/NoDiscussion.vue"),
component: async (): Promise<unknown> => import("@/views/discussions/NoDiscussion.vue"),
},
{
path: "/create",
name: "CreateDiscussion",
component: async() : Promise<unknown> => import("@/views/discussions/CreateDiscussion.vue"),
component: async (): Promise<unknown> => import("@/views/discussions/CreateDiscussion.vue"),
},
{
path: "/:hruid/:language/:learningObjectHruid",
name: "SingleDiscussion",
component: async() : Promise<unknown> => import("@/views/discussions/SingleDiscussion.vue"),
component: async (): Promise<unknown> => import("@/views/discussions/SingleDiscussion.vue"),
props: true,
},
]
],
},
{
path: "/discussion-reload/:hruid/:language/:learningObjectHruid",
name: "DiscussionForwardWorkaround",
component: async() : Promise<unknown> => import("@/views/discussions/DiscussionForward.vue"),
component: async (): Promise<unknown> => import("@/views/discussions/DiscussionForward.vue"),
props: true,
meta: { requiresAuth: true },
},
{
path: "/my-content",
name: "OwnLearningContentPage",
component: async() : Promise<unknown> => import("@/views/own-learning-content/OwnLearningContentPage.vue"),
component: async (): Promise<unknown> => import("@/views/own-learning-content/OwnLearningContentPage.vue"),
meta: { requiresAuth: true },
},
{
@ -119,12 +119,13 @@ const router = createRouter({
{
path: "search",
name: "LearningPathSearchPage",
component: async() : Promise<unknown> => import("@/views/learning-paths/LearningPathSearchPage.vue"),
component: async (): Promise<unknown> =>
import("@/views/learning-paths/LearningPathSearchPage.vue"),
},
{
path: ":hruid/:language/:learningObjectHruid",
name: "LearningPath",
component: async() : Promise<unknown> => import("@/views/learning-paths/LearningPathPage.vue"),
component: async (): Promise<unknown> => import("@/views/learning-paths/LearningPathPage.vue"),
props: true,
},
],
@ -132,7 +133,8 @@ const router = createRouter({
{
path: "/learningObject/:hruid/:language/:version/raw",
name: "LearningObjectView",
component: async() : Promise<unknown> => import("@/views/learning-paths/learning-object/LearningObjectView.vue"),
component: async (): Promise<unknown> =>
import("@/views/learning-paths/learning-object/LearningObjectView.vue"),
props: true,
meta: { requiresAuth: true },
},