Reload server and edit configuration. ()

The first iteration for config editor and server reload from the web interface.
This commit is contained in:
Antonio Navarro Perez 2020-11-08 18:19:25 +01:00 committed by GitHub
parent 56d32fd1f4
commit 0e2288565d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
53 changed files with 882 additions and 178 deletions
templates

37
templates/config.html Normal file
View file

@ -0,0 +1,37 @@
<!DOCTYPE html>
<html>
<head>
{{template "common_header.html"}}
<style>
#editor {
/** Setting height is also important, otherwise editor wont showup**/
height: 300px;
}
</style>
</head>
<body>
{{template "navbar.html"}}
<div class="container">
<div class="panel panel-default">
<div class="panel-heading">
<button type="button" class="btn btn-light" onclick="javascript:save();">Save</button>
<button type="button" class="btn btn-light" onclick="javascript:reload();">Reload server</button>
</div>
<div class="panel-body">
<div id="editor"></div>
</div>
</div>
</div>
{{template "common_footer.html"}}
<script src="assets/js/js-yaml.min.js" type="text/javascript" charset="utf-8"></script>
<script src="assets/js/ace/ace.js" type="text/javascript" charset="utf-8"></script>
<script src="assets/js/ace/ext-language_tools.js" type="text/javascript" charset="utf-8"></script>
<script src="assets/js/config.js" type="text/javascript" charset="utf-8"></script>
</body>
</html>