Compare commits
	
		
			2 Commits
		
	
	
		
			1ccb1d0e7c
			...
			bbab76bc7f
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| bbab76bc7f | |||
| 833af735cf | 
							
								
								
									
										1
									
								
								.env.example
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								.env.example
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1 @@
 | 
				
			|||||||
 | 
					PORT=8000
 | 
				
			||||||
							
								
								
									
										2
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							@ -1,3 +1,5 @@
 | 
				
			|||||||
 | 
					bunker
 | 
				
			||||||
bunker.db
 | 
					bunker.db
 | 
				
			||||||
files/
 | 
					files/
 | 
				
			||||||
 | 
					.env
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
@ -4,6 +4,8 @@
 | 
				
			|||||||
        "indentWidth": 4
 | 
					        "indentWidth": 4
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    "tasks": {
 | 
					    "tasks": {
 | 
				
			||||||
        "check": "deno check main.ts"
 | 
					        "check": "deno check main.ts",
 | 
				
			||||||
 | 
					        "dev": "deno run -A --unstable-ffi --env main.ts",
 | 
				
			||||||
 | 
					        "compile": "deno compile --allow-net --allow-read --allow-env --allow-write --allow-ffi --allow-run --unstable-ffi --env main.ts"
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
				
			|||||||
							
								
								
									
										2
									
								
								main.ts
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								main.ts
									
									
									
									
									
								
							@ -235,4 +235,4 @@ new oak.Application()
 | 
				
			|||||||
            index: "index.html",
 | 
					            index: "index.html",
 | 
				
			||||||
        });
 | 
					        });
 | 
				
			||||||
    })
 | 
					    })
 | 
				
			||||||
    .listen({ port: 8000 });
 | 
					    .listen({ port: parseInt(Deno.env.get("PORT")!) });
 | 
				
			||||||
 | 
				
			|||||||
@ -25,7 +25,10 @@ document.querySelector("#login").onsubmit = async (event) => {
 | 
				
			|||||||
    }
 | 
					    }
 | 
				
			||||||
    const refer = decodeURIComponent(params.get("refer"));
 | 
					    const refer = decodeURIComponent(params.get("refer"));
 | 
				
			||||||
    params.delete("refer")
 | 
					    params.delete("refer")
 | 
				
			||||||
    window.location.search = params.toString();
 | 
					    if (params.size === 0) {
 | 
				
			||||||
    window.location.pathname = refer;
 | 
					        window.location.pathname = refer;
 | 
				
			||||||
 | 
					        return;
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					    window.location = `${refer}?${params.toString()}`;
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user