style: fix linting issues met Prettier
This commit is contained in:
		
							parent
							
								
									964eaf928e
								
							
						
					
					
						commit
						bdd102b937
					
				
					 3 changed files with 14 additions and 6 deletions
				
			
		|  | @ -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); | ||||
|             } | ||||
|  |  | |||
|  | @ -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 = [ | ||||
|  |  | |||
|  | @ -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 @@ | |||
|                                             </v-btn> | ||||
|                                         </td> | ||||
|                                         <td> | ||||
|                                             <v-row v-if="!isMdAndDown" dense align="center" no-gutters> | ||||
|                                             <v-row | ||||
|                                                 v-if="!isMdAndDown" | ||||
|                                                 dense | ||||
|                                                 align="center" | ||||
|                                                 no-gutters | ||||
|                                             > | ||||
|                                                 <v-btn | ||||
|                                                     variant="text" | ||||
|                                                     append-icon="mdi-content-copy" | ||||
|  | @ -247,7 +251,11 @@ | |||
|                                                     <v-icon>mdi-link-variant</v-icon> | ||||
|                                                 </v-btn> | ||||
|                                             </v-row> | ||||
|                                             <span v-else style="cursor: pointer" @click="openCodeDialog(c.id)"> | ||||
|                                             <span | ||||
|                                                 v-else | ||||
|                                                 style="cursor: pointer" | ||||
|                                                 @click="openCodeDialog(c.id)" | ||||
|                                             > | ||||
|                                                 <v-icon icon="mdi-eye"></v-icon> | ||||
|                                             </span> | ||||
|                                         </td> | ||||
|  |  | |||
		Reference in a new issue
	
	 Lint Action
						Lint Action