add config option to disable splash screen info table

This commit is contained in:
zefie
2021-11-10 23:45:10 -05:00
parent 9657379f27
commit 2f51c3e7b5
2 changed files with 8 additions and 4 deletions

View File

@@ -20,14 +20,17 @@ data = `<html>
<img src="${minisrv_config.config.service_splash_logo}"> <img src="${minisrv_config.config.service_splash_logo}">
<br><br><br> <br><br><br>
<p><br> <p><br>
<p><br> <p><br>`;
<table border> if (minisrv_config.config.show_detailed_splash) {
data += `<table border>
<tr><td> <tr><td>
${minisrv_config.config.service_name} Mini Service hosted by ${minisrv_config.config.service_owner} ${minisrv_config.config.service_name} Mini Service hosted by ${minisrv_config.config.service_owner}
<tr><td> <tr><td>
minisrv v${minisrv_config.version} ${(minisrv_config.config.git_commit) ? '(git '+minisrv_config.config.git_commit+')' : ''} minisrv v${minisrv_config.version} ${(minisrv_config.config.git_commit) ? '(git ' + minisrv_config.config.git_commit + ')' : ''}
<tr><td>Connected: &rate; <tr><td>Connected: &rate;
</table> </table>`;
}
data += `
</center> </center>
</body> </body>
</html>`; </html>`;

View File

@@ -22,6 +22,7 @@
"enable_gzip_compression": true, "enable_gzip_compression": true,
"pc_server_hidden_service": "http_pc", "pc_server_hidden_service": "http_pc",
"pc_server_hidden_service_enabled": false, "pc_server_hidden_service_enabled": false,
"show_detailed_splash": true,
"show_diskmap": false, "show_diskmap": false,
"allow_guests": true "allow_guests": true
}, },