From 2371196cc4fe4411dfe24a537a41998c613e2bab Mon Sep 17 00:00:00 2001 From: Lint Action Date: Tue, 20 May 2025 18:37:01 +0000 Subject: [PATCH] style: fix linting issues met Prettier --- frontend/src/router/index.ts | 48 +++++++++++++++++++----------------- 1 file changed, 25 insertions(+), 23 deletions(-) diff --git a/frontend/src/router/index.ts b/frontend/src/router/index.ts index 73d00c99..e125e45b 100644 --- a/frontend/src/router/index.ts +++ b/frontend/src/router/index.ts @@ -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 => import("@/views/homepage/UserHomePage.vue"), + component: async (): Promise => import("@/views/homepage/UserHomePage.vue"), }, { path: "assignment", name: "UserAssignments", - component: async() : Promise => import("@/views/assignments/UserAssignments.vue"), + component: async (): Promise => import("@/views/assignments/UserAssignments.vue"), }, { path: "class", name: "UserClasses", - component: async() : Promise => import("@/views/classes/UserClasses.vue"), + component: async (): Promise => import("@/views/classes/UserClasses.vue"), }, ], }, { path: "/theme/:theme", name: "Theme", - component: async(): Promise => import("@/views/SingleTheme.vue"), + component: async (): Promise => import("@/views/SingleTheme.vue"), props: true, meta: { requiresAuth: true }, }, @@ -62,19 +62,19 @@ const router = createRouter({ { path: "create", name: "CreateAssigment", - component: async() : Promise => import("@/views/assignments/CreateAssignment.vue"), + component: async (): Promise => import("@/views/assignments/CreateAssignment.vue"), }, { path: ":classId/:id", name: "SingleAssigment", - component: async() : Promise => import("@/views/assignments/SingleAssignment.vue"), + component: async (): Promise => import("@/views/assignments/SingleAssignment.vue"), }, ], }, { path: "/class/:id", name: "SingleClass", - component: async() : Promise => import("@/views/classes/SingleClass.vue"), + component: async (): Promise => import("@/views/classes/SingleClass.vue"), meta: { requiresAuth: true }, }, { @@ -84,32 +84,32 @@ const router = createRouter({ { path: "", name: "Discussions", - component: async() : Promise => import("@/views/discussions/NoDiscussion.vue"), + component: async (): Promise => import("@/views/discussions/NoDiscussion.vue"), }, { path: "/create", name: "CreateDiscussion", - component: async() : Promise => import("@/views/discussions/CreateDiscussion.vue"), + component: async (): Promise => import("@/views/discussions/CreateDiscussion.vue"), }, { path: "/:hruid/:language/:learningObjectHruid", name: "SingleDiscussion", - component: async() : Promise => import("@/views/discussions/SingleDiscussion.vue"), + component: async (): Promise => import("@/views/discussions/SingleDiscussion.vue"), props: true, }, - ] + ], }, { path: "/discussion-reload/:hruid/:language/:learningObjectHruid", name: "DiscussionForwardWorkaround", - component: async() : Promise => import("@/views/discussions/DiscussionForward.vue"), + component: async (): Promise => import("@/views/discussions/DiscussionForward.vue"), props: true, meta: { requiresAuth: true }, }, { path: "/my-content", name: "OwnLearningContentPage", - component: async() : Promise => import("@/views/own-learning-content/OwnLearningContentPage.vue"), + component: async (): Promise => import("@/views/own-learning-content/OwnLearningContentPage.vue"), meta: { requiresAuth: true }, }, { @@ -119,12 +119,13 @@ const router = createRouter({ { path: "search", name: "LearningPathSearchPage", - component: async() : Promise => import("@/views/learning-paths/LearningPathSearchPage.vue"), + component: async (): Promise => + import("@/views/learning-paths/LearningPathSearchPage.vue"), }, { path: ":hruid/:language/:learningObjectHruid", name: "LearningPath", - component: async() : Promise => import("@/views/learning-paths/LearningPathPage.vue"), + component: async (): Promise => 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 => import("@/views/learning-paths/learning-object/LearningObjectView.vue"), + component: async (): Promise => + import("@/views/learning-paths/learning-object/LearningObjectView.vue"), props: true, meta: { requiresAuth: true }, },