From bdd102b937df3d91c05aa8ba5c2cf89b40e19317 Mon Sep 17 00:00:00 2001 From: Lint Action Date: Wed, 14 May 2025 09:42:34 +0000 Subject: [PATCH] style: fix linting issues met Prettier --- frontend/src/router/index.ts | 2 +- frontend/src/views/classes/StudentClasses.vue | 2 +- frontend/src/views/classes/TeacherClasses.vue | 16 ++++++++++++---- 3 files changed, 14 insertions(+), 6 deletions(-) diff --git a/frontend/src/router/index.ts b/frontend/src/router/index.ts index 001738e4..c87c88d2 100644 --- a/frontend/src/router/index.ts +++ b/frontend/src/router/index.ts @@ -143,7 +143,7 @@ router.beforeEach(async (to, _from, next) => { // Verify if user is logged in before accessing certain routes if (to.meta.requiresAuth) { if (!authService.isLoggedIn.value && !(await authService.loadUser())) { - const path = to.fullPath + const path = to.fullPath; if (path !== "/") { localStorage.setItem("redirectAfterLogin", path); } diff --git a/frontend/src/views/classes/StudentClasses.vue b/frontend/src/views/classes/StudentClasses.vue index d943b57a..590b29e5 100644 --- a/frontend/src/views/classes/StudentClasses.vue +++ b/frontend/src/views/classes/StudentClasses.vue @@ -82,7 +82,7 @@ // The code a student sends in to join a class needs to be formatted as v4 to be valid // These rules are used to display a message to the user if they use a code that has an invalid format function codeRegex(value: string): boolean { - return /^[a-zA-Z0-9]{6}$/.test(value) + return /^[a-zA-Z0-9]{6}$/.test(value); } const codeRules = [ diff --git a/frontend/src/views/classes/TeacherClasses.vue b/frontend/src/views/classes/TeacherClasses.vue index ea3a2441..f2d3cf41 100644 --- a/frontend/src/views/classes/TeacherClasses.vue +++ b/frontend/src/views/classes/TeacherClasses.vue @@ -137,8 +137,7 @@ await navigator.clipboard.writeText(content); copied.value = isDialog; - if (!isDialog) - showSnackbar(t("copied"), "white"); + if (!isDialog) showSnackbar(t("copied"), "white"); } // Custom breakpoints @@ -231,7 +230,12 @@ - + mdi-link-variant - +