too many things to list (notably, user avatar update)
This commit is contained in:
		
							parent
							
								
									a7950671e1
								
							
						
					
					
						commit
						d6c9345dba
					
				
					 20 changed files with 341 additions and 47 deletions
				
			
		
							
								
								
									
										14
									
								
								Foxnouns.Frontend/src/routes/+error.svelte
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										14
									
								
								Foxnouns.Frontend/src/routes/+error.svelte
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,14 @@ | |||
| <script> | ||||
| 	import { page } from "$app/stores"; | ||||
| 	import neofox from "./neofox_confused_2048.png"; | ||||
| </script> | ||||
| 
 | ||||
| {#if $page.status === 404} | ||||
| 	<div class="has-text-centered"> | ||||
| 		<img src={neofox} alt="A very confused-looking fox" width="25%" /> | ||||
| 		<h1 class="title">Not found</h1> | ||||
| 		<p>Our foxes can't find the page you're looking for, sorry!</p> | ||||
| 	</div> | ||||
| {:else} | ||||
| 	div.has-text-centered | ||||
| {/if} | ||||
|  | @ -19,8 +19,6 @@ export const load = async ({ fetch, url, cookies, parent }) => { | |||
| 		}, | ||||
| 	); | ||||
| 
 | ||||
| 	console.log(JSON.stringify(resp)); | ||||
| 
 | ||||
| 	if ("token" in resp) { | ||||
| 		const authResp = resp as AuthResponse; | ||||
| 		cookies.set("pronounscc-token", authResp.token, { path: "/" }); | ||||
|  | @ -42,8 +40,6 @@ export const actions = { | |||
| 		const username = data.get("username"); | ||||
| 		const ticket = data.get("ticket"); | ||||
| 
 | ||||
| 		console.log(JSON.stringify({ username, ticket })); | ||||
| 
 | ||||
| 		const resp = await request<AuthResponse>(fetch, "POST", "/auth/discord/register", { | ||||
| 			body: { username, ticket }, | ||||
| 		}); | ||||
|  |  | |||
							
								
								
									
										
											BIN
										
									
								
								Foxnouns.Frontend/src/routes/neofox_confused_2048.png
									
										
									
									
									
										Executable file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								Foxnouns.Frontend/src/routes/neofox_confused_2048.png
									
										
									
									
									
										Executable file
									
								
							
										
											Binary file not shown.
										
									
								
							| After Width: | Height: | Size: 143 KiB | 
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue