more abstraction and simple dashboard for processes
All checks were successful
Build Process Supervisor / build (amd64, .exe, windows) (push) Successful in 2m24s
Build Process Supervisor / build (amd64, , linux) (push) Successful in 2m36s
Build Process Supervisor / build (arm, 6, , linux) (push) Successful in 2m19s
Build Process Supervisor / build (arm64, , linux) (push) Successful in 2m14s
All checks were successful
Build Process Supervisor / build (amd64, .exe, windows) (push) Successful in 2m24s
Build Process Supervisor / build (amd64, , linux) (push) Successful in 2m36s
Build Process Supervisor / build (arm, 6, , linux) (push) Successful in 2m19s
Build Process Supervisor / build (arm64, , linux) (push) Successful in 2m14s
This commit is contained in:
56
mainPage/templates/index.html
Normal file
56
mainPage/templates/index.html
Normal file
@@ -0,0 +1,56 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>Process Dashboard</title>
|
||||
<script src="https://unpkg.com/htmx.org@1.9.5"></script>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<ul id="process-page">
|
||||
<div class="top-link-container">
|
||||
<a href="/taskmanager/htop" class="top-link" target="_blank" rel="noopener noreferrer">
|
||||
📈 Task Manager
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<!-- Header -->
|
||||
<h2>Processes</h2>
|
||||
<ul id="process-list"
|
||||
hx-get="/processes"
|
||||
hx-trigger="every 5s"
|
||||
hx-swap="innerHTML">
|
||||
{{ template "processes.html" . }}
|
||||
</ul>
|
||||
</body>
|
||||
<style>
|
||||
body {
|
||||
font-family: "Segoe UI", Roboto, sans-serif;
|
||||
margin: 2rem;
|
||||
background-color: #f7f9fb;
|
||||
color: #222;
|
||||
}
|
||||
|
||||
.top-link-container {
|
||||
text-align: center;
|
||||
margin-bottom: 2rem;
|
||||
}
|
||||
|
||||
.top-link {
|
||||
font-size: 1.2rem;
|
||||
text-decoration: none;
|
||||
color: #4a90e2;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.top-link:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
h2 {
|
||||
text-align: center;
|
||||
color: #444;
|
||||
margin-bottom: 1.5rem;
|
||||
}
|
||||
|
||||
</style>
|
||||
</html>
|
Reference in New Issue
Block a user