2021-10-10 10:35:14 +08:00
|
|
|
Tea.context(function () {
|
|
|
|
|
this.bodyType = this.bodyTypes[0].code
|
|
|
|
|
|
|
|
|
|
this.addHTMLTemplate = function () {
|
|
|
|
|
this.$refs.htmlBody.value = `<!DOCTYPE html>
|
2023-08-25 15:03:31 +08:00
|
|
|
<html lang="en">
|
2021-10-10 10:35:14 +08:00
|
|
|
<head>
|
2021-12-02 14:45:51 +08:00
|
|
|
\t<title>\${status} \${statusMessage}</title>
|
2021-10-10 10:35:14 +08:00
|
|
|
\t<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
|
2023-08-25 15:03:31 +08:00
|
|
|
\t<style>
|
|
|
|
|
\t\taddress { line-height: 1.8; }
|
|
|
|
|
\t</style>
|
2021-10-10 10:35:14 +08:00
|
|
|
</head>
|
|
|
|
|
<body>
|
|
|
|
|
|
2021-12-02 14:45:51 +08:00
|
|
|
<h1>\${status} \${statusMessage}</h1>
|
|
|
|
|
<p><!-- 内容 --></p>
|
2021-10-10 10:35:14 +08:00
|
|
|
|
2023-08-25 15:03:31 +08:00
|
|
|
<address>Connection: \${remoteAddr} (Client) -> \${serverAddr} (Server)</address>
|
|
|
|
|
<address>Request ID: \${requestId}</address>
|
2021-10-10 10:35:14 +08:00
|
|
|
|
|
|
|
|
</body>
|
|
|
|
|
</html>`
|
|
|
|
|
}
|
2023-11-13 10:45:13 +08:00
|
|
|
|
|
|
|
|
this.exceptURLPatterns = []
|
|
|
|
|
this.onlyURLPatterns = []
|
2021-10-10 10:35:14 +08:00
|
|
|
})
|