diff options
| author | Martin Ridgers <[email protected]> | 2024-09-18 15:07:12 +0200 |
|---|---|---|
| committer | Martin Ridgers <[email protected]> | 2024-09-24 10:57:34 +0200 |
| commit | a8d228b8af5135b01cc964e604d50111a8697471 (patch) | |
| tree | 151d5a4300b4309c1c4f99b7a0db462837bfa4d5 /src/zenserver/frontend/html/index.html | |
| parent | Updated stale comment (diff) | |
| download | zen-a8d228b8af5135b01cc964e604d50111a8697471.tar.xz zen-a8d228b8af5135b01cc964e604d50111a8697471.zip | |
Initial version of in-proc HTML dashboard
Diffstat (limited to 'src/zenserver/frontend/html/index.html')
| -rw-r--r-- | src/zenserver/frontend/html/index.html | 59 |
1 files changed, 5 insertions, 54 deletions
diff --git a/src/zenserver/frontend/html/index.html b/src/zenserver/frontend/html/index.html index 96b69a643..8bc690c22 100644 --- a/src/zenserver/frontend/html/index.html +++ b/src/zenserver/frontend/html/index.html @@ -1,60 +1,11 @@ +<!-- Copyright Epic Games, Inc. All Rights Reserved. --> <!DOCTYPE html> <html> <head> - <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" integrity="sha384-F3w7mX95PdgyTmZZMECAngseQB83DfGTowi0iMjiWaeVhAn4FJkqJByhZMI3AhiU" crossorigin="anonymous"> - <script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.min.js" integrity="sha384-skAcpIdS7UcVUC05LJ9Dxay8AXcDYfBJqt1CJ85S/CFujBsIzCIv+l9liuYLaMQ/" crossorigin="anonymous"></script> - <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/font/bootstrap-icons.css"> - <style type="text/css"> - body { - background-color: #fafafa; - } - </style> - <script type="text/javascript"> - const getCacheStats = () => { - const opts = { headers: { "Accept": "application/json" } }; - const queryString = window.location.search; - fetch("/stats/z$" + queryString, opts) - .then(response => { - if (!response.ok) { - throw Error(response.statusText); - } - return response.json(); - }) - .then(json => { - document.getElementById("status").innerHTML = "connected" - document.getElementById("stats").innerHTML = JSON.stringify(json, null, 4); - }) - .catch(error => { - document.getElementById("status").innerHTML = "disconnected" - document.getElementById("stats").innerHTML = "" - console.log(error); - }) - .finally(() => { - window.setTimeout(getCacheStats, 1000); - }); - }; - getCacheStats(); - </script> + <link rel="shortcut icon" href="favicon.ico"> + <link rel="stylesheet" type="text/css" href="zen.css" /> + <script src="zen.js"></script> </head> -<body> - <div class="container"> - <div class="row"> - <div class="text-center mt-5"> - <pre> -__________ _________ __ -\____ / ____ ____ / _____/_/ |_ ____ _______ ____ - / / _/ __ \ / \ \_____ \ \ __\ / _ \ \_ __ \_/ __ \ - / /_ \ ___/ | | \ / \ | | ( <_> ) | | \/\ ___/ -/_______ \ \___ >|___| //_______ / |__| \____/ |__| \___ > - \/ \/ \/ \/ \/ - </pre> - <pre id="status"/> - </div> - </div> - <div class="row"> - <pre class="mb-0">Z$:</pre> - <pre id="stats"></pre> - </div> - </div> +<body onload="main()"> </body> </html> |