fix: lint
This commit is contained in:
		
							parent
							
								
									acac6402d7
								
							
						
					
					
						commit
						964eaf928e
					
				
					 3 changed files with 3 additions and 4 deletions
				
			
		|  | @ -10,10 +10,9 @@ | ||||||
| 
 | 
 | ||||||
|     const errorMessage: Ref<string | null> = ref(null); |     const errorMessage: Ref<string | null> = ref(null); | ||||||
| 
 | 
 | ||||||
|     async function redirectPage() { |     async function redirectPage(): Promise<void> { | ||||||
|         const redirectUrl = localStorage.getItem("redirectAfterLogin"); |         const redirectUrl = localStorage.getItem("redirectAfterLogin"); | ||||||
|         if (redirectUrl) { |         if (redirectUrl) { | ||||||
|             console.log("redirect", redirectUrl); |  | ||||||
|             localStorage.removeItem("redirectAfterLogin"); |             localStorage.removeItem("redirectAfterLogin"); | ||||||
|             await router.replace(redirectUrl); |             await router.replace(redirectUrl); | ||||||
|         } else { |         } else { | ||||||
|  |  | ||||||
|  | @ -81,7 +81,7 @@ | ||||||
| 
 | 
 | ||||||
|     // The code a student sends in to join a class needs to be formatted as v4 to be valid |     // 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 |     // 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){ |     function codeRegex(value: string): boolean { | ||||||
|         return /^[a-zA-Z0-9]{6}$/.test(value) |         return /^[a-zA-Z0-9]{6}$/.test(value) | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -132,7 +132,7 @@ | ||||||
|     // Show the teacher, copying of the code was a successs |     // Show the teacher, copying of the code was a successs | ||||||
|     const copied = ref(false); |     const copied = ref(false); | ||||||
| 
 | 
 | ||||||
|     async function copyToClipboard(code: string, isDialog: boolean = false, isLink: boolean = false): Promise<void> { |     async function copyToClipboard(code: string, isDialog = false, isLink = false): Promise<void> { | ||||||
|         const content = isLink ? `${window.location.origin}/user/class?code=${code}` : code; |         const content = isLink ? `${window.location.origin}/user/class?code=${code}` : code; | ||||||
|         await navigator.clipboard.writeText(content); |         await navigator.clipboard.writeText(content); | ||||||
|         copied.value = isDialog; |         copied.value = isDialog; | ||||||
|  |  | ||||||
		Reference in a new issue
	
	 Gabriellvl
						Gabriellvl