| @@ -124,6 +124,10 @@ export default class extends Base { | |||||
| * @return {Promise} [] | * @return {Promise} [] | ||||
| */ | */ | ||||
| async indexAction () { | async indexAction () { | ||||
| return this.display(); | |||||
| } | |||||
| async showsslAction(){ | |||||
| console.log("==".repeat(20), "开始检查证书", "==".repeat(20)); | console.log("==".repeat(20), "开始检查证书", "==".repeat(20)); | ||||
| let domains = this.config().domains; | let domains = this.config().domains; | ||||
| let msgs = [] | let msgs = [] | ||||
| @@ -62,11 +62,6 @@ | |||||
| <h1>证书自动更新系统</h1> | <h1>证书自动更新系统</h1> | ||||
| </div> | </div> | ||||
| </header> | </header> | ||||
| <div class="content"> | |||||
| <div class="list"> | |||||
| <%= msgs %> | |||||
| </div> | |||||
| </div> | |||||
| </body> | </body> | ||||
| </html> | </html> | ||||
| @@ -0,0 +1,72 @@ | |||||
| <!DOCTYPE html> | |||||
| <html> | |||||
| <head> | |||||
| <meta charset="UTF-8"> | |||||
| <title>证书自动更新系统</title> | |||||
| <style> | |||||
| * { | |||||
| padding: 0; | |||||
| margin: 0; | |||||
| font-size: 16px; | |||||
| line-height: 20px; | |||||
| font-family: arial; | |||||
| } | |||||
| a, | |||||
| a:visited { | |||||
| color: #337ab7; | |||||
| text-decoration: none; | |||||
| } | |||||
| header { | |||||
| padding: 70px 0 70px 0; | |||||
| background-color: #4A6495 | |||||
| } | |||||
| h1 { | |||||
| font-size: 36px; | |||||
| color: #fff; | |||||
| font-weight: normal; | |||||
| } | |||||
| code { | |||||
| padding: 2px 4px; | |||||
| font-size: 90%; | |||||
| color: #c7254e; | |||||
| background-color: #f9f2f4; | |||||
| border-radius: 4px; | |||||
| } | |||||
| .content { | |||||
| width: 1000px; | |||||
| margin: auto | |||||
| } | |||||
| .wrap { | |||||
| width: 1000px; | |||||
| margin: auto | |||||
| } | |||||
| .list { | |||||
| width: 800px; | |||||
| white-space: pre-line; | |||||
| line-height: 3; | |||||
| } | |||||
| </style> | |||||
| </head> | |||||
| <body> | |||||
| <header> | |||||
| <div class="wrap"> | |||||
| <h1>证书自动更新系统</h1> | |||||
| </div> | |||||
| </header> | |||||
| <div class="content"> | |||||
| <div class="list"> | |||||
| <%= msgs %> | |||||
| </div> | |||||
| </div> | |||||
| </body> | |||||
| </html> | |||||