This commit is contained in:
2025-04-23 04:18:28 +02:00
parent 10a7d9bb6b
commit a16ac8f627
276 changed files with 85166 additions and 1 deletions

View File

@@ -0,0 +1,47 @@
<table>
<thead>
<tr>
<th>Name</th>
<th>Status</th>
<th>PID</th>
<th>CPU</th>
<th>Memory</th>
<th>Uptime</th>
<th>Actions</th>
</tr>
</thead>
<tbody>
{{ if processes }}
{{ range processes }}
<tr>
<td>{{ .Name }}</td>
<td>
{{ if .Status == "running" }}
<span class="badge success">Running</span>
{{ else if .Status == "stopped" }}
<span class="badge danger">Stopped</span>
{{ else }}
<span class="badge warning">{{ .Status }}</span>
{{ end }}
</td>
<td>{{ .ID }}</td>
<td>{{ if .Status == "running" }}{{ .CPU }}{{ else }}-{{ end }}</td>
<td>{{ if .Status == "running" }}{{ .Memory }}{{ else }}-{{ end }}</td>
<td>{{ if .Status == "running" }}{{ .Uptime }}{{ else }}-{{ end }}</td>
<td>
<div class="button-group">
<button class="button" onclick="restartProcess('{{ .Name }}')">Restart</button>
<button class="button secondary" onclick="stopProcess('{{ .Name }}')">Stop</button>
<button class="button danger" style="background-color: #e53935 !important; color: #fff !important;" onclick="deleteProcess('{{ .Name }}')">Delete</button>
<button class="button info" onclick="showProcessLogs('{{ .Name }}')">Logs</button>
</div>
</td>
</tr>
{{ end }}
{{ else }}
<tr>
<td colspan="7">No services found</td>
</tr>
{{ end }}
</tbody>
</table>