aboutsummaryrefslogtreecommitdiff
path: root/views/servers.ejs
diff options
context:
space:
mode:
Diffstat (limited to 'views/servers.ejs')
-rw-r--r--views/servers.ejs66
1 files changed, 66 insertions, 0 deletions
diff --git a/views/servers.ejs b/views/servers.ejs
new file mode 100644
index 0000000..4f0e6e6
--- /dev/null
+++ b/views/servers.ejs
@@ -0,0 +1,66 @@
+<!--
+ ~ MIT License
+ ~
+ ~ Copyright (c) 2022- Equestria.dev Developers
+ ~
+ ~ Permission is hereby granted, free of charge, to any person obtaining a copy
+ ~ of this software and associated documentation files (the "Software"), to deal
+ ~ in the Software without restriction, including without limitation the rights
+ ~ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ ~ copies of the Software, and to permit persons to whom the Software is
+ ~ furnished to do so, subject to the following conditions:
+ ~
+ ~ The above copyright notice and this permission notice shall be included in all
+ ~ copies or substantial portions of the Software.
+ ~
+ ~ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ ~ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ ~ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ ~ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ ~ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ ~ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ ~ SOFTWARE.
+ ~
+ -->
+<%- include("./partials/header.ejs", {title: "Servers"}) %>
+
+<div id="navbar-skipper">
+ <div class="server-container">
+ <div class="server" id="canterlot">
+ <h3 class="name">Canterlot</h3>
+ <div class="category cpu">
+ <h4 class="name">CPU</h4>
+ <p>CPU Type: <span class="item cpu-type"></span></p>
+ <p>CPU Core count: <span class="item cpu-cores"></span></p>
+ <p>CPU Temperature: <span class="item cpu-temperature"></span></p>
+ <p>CPU Usage: <span class="item cpu-usage"></span></p>
+ <div class="subcategory processes">
+ <h5 class="name">Processes</h5>
+ <p>Processes Total: <span class="item cpu-processes-total"></span></p>
+ <p>Processes Running: <span class="item cpu-processes-running"></span></p>
+ <p>Processes Sleeping: <span class="item cpu-processes-sleeping"></span></p>
+ <p>Processes Blocked: <span class="item cpu-processes-blocked"></span></p>
+ <p>Unknown Processes: <span class="item cpu-processes-unknown"></span></p>
+ </div>
+ </div>
+ <div class="category memory">
+ <h4 class="name">Memory</h4>
+ <div class="subcategory swap">
+ <h5 class="name">Swap</h5>
+ <p>Used Memory: <span class="item memory-swap-used"></span></p>
+ <p>Free Memory: <span class="item memory-swap-free"></span></p>
+ <p>Total Memory: <span class="item memory-swap-total"></span></p>
+ </div>
+ <div class="subcategory physical">
+ <h5 class="name">Physical</h5>
+ <p>Used Memory: <span class="item memory-physical-used"></span></p>
+ <p>Free Memory: <span class="item memory-physical-free"></span></p>
+ <p>Total Memory: <span class="item memory-physical-total"></span></p>
+ </div>
+ </div>
+ </div>
+ </div>
+</div>
+<!-- Get the script which polls the API for server status -->
+<script src="/assets/servers.js"></script>
+<%- include("./partials/footer.ejs") %> \ No newline at end of file