mirror of
				https://github.com/TeaOSLab/EdgeAdmin.git
				synced 2025-11-04 05:00:25 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			28 lines
		
	
	
		
			636 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			28 lines
		
	
	
		
			636 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
Tea.context(function () {
 | 
						|
	this.bodyType = this.bodyTypes[0].code
 | 
						|
 | 
						|
	this.addHTMLTemplate = function () {
 | 
						|
		this.$refs.htmlBody.value = `<!DOCTYPE html>
 | 
						|
<html lang="en">
 | 
						|
<head>
 | 
						|
\t<title>\${status} \${statusMessage}</title>
 | 
						|
\t<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
 | 
						|
\t<style>
 | 
						|
\t\taddress { line-height: 1.8; }
 | 
						|
\t</style>
 | 
						|
</head>
 | 
						|
<body>
 | 
						|
 | 
						|
<h1>\${status} \${statusMessage}</h1>
 | 
						|
<p><!-- 内容 --></p>
 | 
						|
 | 
						|
<address>Connection: \${remoteAddr} (Client) -> \${serverAddr} (Server)</address>
 | 
						|
<address>Request ID: \${requestId}</address>
 | 
						|
 | 
						|
</body>
 | 
						|
</html>`
 | 
						|
	}
 | 
						|
 | 
						|
	this.exceptURLPatterns = []
 | 
						|
	this.onlyURLPatterns = []
 | 
						|
}) |