|
@@ -30,7 +30,7 @@
|
|
|
|
|
|
<div class="page-body">
|
|
<div class="page-body">
|
|
<div class="container-xl">
|
|
<div class="container-xl">
|
|
- <div class="row row-deck row-cards">
|
|
|
|
|
|
+ <div class="row row-deck row-cards" hx-ext="sse" sse-connect="/sse_event">
|
|
|
|
|
|
<div class="col-12">
|
|
<div class="col-12">
|
|
<div class="row row-cards">
|
|
<div class="row row-cards">
|
|
@@ -40,7 +40,7 @@
|
|
<div class="card-body">
|
|
<div class="card-body">
|
|
<div class="row align-items-center">
|
|
<div class="row align-items-center">
|
|
<div class="col-auto">
|
|
<div class="col-auto">
|
|
- <span class="bg-primary text-white avatar">
|
|
|
|
|
|
+ <span class="bg-green text-white avatar">
|
|
<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-cpu" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M5 5m0 1a1 1 0 0 1 1 -1h12a1 1 0 0 1 1 1v12a1 1 0 0 1 -1 1h-12a1 1 0 0 1 -1 -1z"></path><path d="M9 9h6v6h-6z"></path><path d="M3 10h2"></path><path d="M3 14h2"></path><path d="M10 3v2"></path><path d="M14 3v2"></path><path d="M21 10h-2"></path><path d="M21 14h-2"></path><path d="M14 21v-2"></path><path d="M10 21v-2"></path></svg>
|
|
<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-cpu" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M5 5m0 1a1 1 0 0 1 1 -1h12a1 1 0 0 1 1 1v12a1 1 0 0 1 -1 1h-12a1 1 0 0 1 -1 -1z"></path><path d="M9 9h6v6h-6z"></path><path d="M3 10h2"></path><path d="M3 14h2"></path><path d="M10 3v2"></path><path d="M14 3v2"></path><path d="M21 10h-2"></path><path d="M21 14h-2"></path><path d="M14 21v-2"></path><path d="M10 21v-2"></path></svg>
|
|
</span>
|
|
</span>
|
|
</div>
|
|
</div>
|
|
@@ -65,17 +65,17 @@
|
|
<div class="card-body">
|
|
<div class="card-body">
|
|
<div class="row align-items-center">
|
|
<div class="row align-items-center">
|
|
<div class="col-auto">
|
|
<div class="col-auto">
|
|
- <span class="bg-green text-white avatar">
|
|
|
|
|
|
+ <span class="bg-blue text-white avatar">
|
|
<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-container" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"> <path stroke="none" d="M0 0h24v24H0z" fill="none"></path> <path d="M20 4v.01"></path> <path d="M20 20v.01"></path> <path d="M20 16v.01"></path> <path d="M20 12v.01"></path> <path d="M20 8v.01"></path> <path d="M8 4m0 1a1 1 0 0 1 1 -1h6a1 1 0 0 1 1 1v14a1 1 0 0 1 -1 1h-6a1 1 0 0 1 -1 -1z"></path> <path d="M4 4v.01"></path> <path d="M4 20v.01"></path> <path d="M4 16v.01"></path> <path d="M4 12v.01"></path> <path d="M4 8v.01"></path> </svg>
|
|
<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-container" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"> <path stroke="none" d="M0 0h24v24H0z" fill="none"></path> <path d="M20 4v.01"></path> <path d="M20 20v.01"></path> <path d="M20 16v.01"></path> <path d="M20 12v.01"></path> <path d="M20 8v.01"></path> <path d="M8 4m0 1a1 1 0 0 1 1 -1h6a1 1 0 0 1 1 1v14a1 1 0 0 1 -1 1h-6a1 1 0 0 1 -1 -1z"></path> <path d="M4 4v.01"></path> <path d="M4 20v.01"></path> <path d="M4 16v.01"></path> <path d="M4 12v.01"></path> <path d="M4 8v.01"></path> </svg>
|
|
</span>
|
|
</span>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<!-- HTMX -->
|
|
<!-- HTMX -->
|
|
- <div class="col" name="RAM" id="orange" data-hx-get="/stats" data-hx-trigger="load, every 2s">
|
|
|
|
|
|
+ <div class="col" name="RAM" id="blue" data-hx-get="/stats" data-hx-trigger="load, every 2s">
|
|
<div class="font-weight-medium">
|
|
<div class="font-weight-medium">
|
|
<label class="ram-text mb-1" for="ram">RAM 0%</label>
|
|
<label class="ram-text mb-1" for="ram">RAM 0%</label>
|
|
</div>
|
|
</div>
|
|
- <div class="ram-bar meter animate orange">
|
|
|
|
|
|
+ <div class="ram-bar meter animate blue">
|
|
<span style="width:20%"><span></span></span>
|
|
<span style="width:20%"><span></span></span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@@ -90,18 +90,21 @@
|
|
<div class="card-body">
|
|
<div class="card-body">
|
|
<div class="row align-items-center">
|
|
<div class="row align-items-center">
|
|
<div class="col-auto">
|
|
<div class="col-auto">
|
|
- <span class="bg-twitter text-white avatar">
|
|
|
|
|
|
+ <span class="bg-purple text-white avatar">
|
|
<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-arrows-left-right" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"> <path stroke="none" d="M0 0h24v24H0z" fill="none"></path> <path d="M21 17l-18 0"></path> <path d="M6 10l-3 -3l3 -3"></path> <path d="M3 7l18 0"></path> <path d="M18 20l3 -3l-3 -3"></path> </svg>
|
|
<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-arrows-left-right" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"> <path stroke="none" d="M0 0h24v24H0z" fill="none"></path> <path d="M21 17l-18 0"></path> <path d="M6 10l-3 -3l3 -3"></path> <path d="M3 7l18 0"></path> <path d="M18 20l3 -3l-3 -3"></path> </svg>
|
|
</span>
|
|
</span>
|
|
</div>
|
|
</div>
|
|
- <div class="col">
|
|
|
|
|
|
+
|
|
|
|
+ <!-- HTMX -->
|
|
|
|
+ <div class="col" name="NET" id="purple">
|
|
<div class="font-weight-medium">
|
|
<div class="font-weight-medium">
|
|
<label id="net-text" class="net-text mb-1" for="network">Down: 0MB Up: 0MB</label>
|
|
<label id="net-text" class="net-text mb-1" for="network">Down: 0MB Up: 0MB</label>
|
|
</div>
|
|
</div>
|
|
- <div id="net-bar" class="meter animate blue">
|
|
|
|
- <span style="width: 20%"><span></span></span>
|
|
|
|
|
|
+ <div class="ram-bar meter animate purple">
|
|
|
|
+ <span style="width:20%"><span></span></span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
+
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@@ -112,17 +115,17 @@
|
|
<div class="card-body">
|
|
<div class="card-body">
|
|
<div class="row align-items-center">
|
|
<div class="row align-items-center">
|
|
<div class="col-auto">
|
|
<div class="col-auto">
|
|
- <span class="bg-facebook text-white avatar">
|
|
|
|
|
|
+ <span class="bg-orange text-white avatar">
|
|
<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-database" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"> <path stroke="none" d="M0 0h24v24H0z" fill="none"></path> <path d="M12 6m-8 0a8 3 0 1 0 16 0a8 3 0 1 0 -16 0"></path> <path d="M4 6v6a8 3 0 0 0 16 0v-6"></path> <path d="M4 12v6a8 3 0 0 0 16 0v-6"></path></svg>
|
|
<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-database" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"> <path stroke="none" d="M0 0h24v24H0z" fill="none"></path> <path d="M12 6m-8 0a8 3 0 1 0 16 0a8 3 0 1 0 -16 0"></path> <path d="M4 6v6a8 3 0 0 0 16 0v-6"></path> <path d="M4 12v6a8 3 0 0 0 16 0v-6"></path></svg>
|
|
</span>
|
|
</span>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<!-- HTMX -->
|
|
<!-- HTMX -->
|
|
- <div class="col" name="DISK" id="red" data-hx-get="/stats" data-hx-trigger="load, every 2s">
|
|
|
|
|
|
+ <div class="col" name="DISK" id="orange" data-hx-get="/stats" data-hx-trigger="load, every 3s">
|
|
<div class="font-weight-medium">
|
|
<div class="font-weight-medium">
|
|
<label class="disk-text mb-1" for="disk">DISK 0%</label>
|
|
<label class="disk-text mb-1" for="disk">DISK 0%</label>
|
|
</div>
|
|
</div>
|
|
- <div class="meter animate red">
|
|
|
|
|
|
+ <div class="meter animate orange">
|
|
<span style="width:20%"><span></span></span>
|
|
<span style="width:20%"><span></span></span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@@ -136,13 +139,22 @@
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
+
|
|
|
|
+
|
|
<!-- HTMX -->
|
|
<!-- HTMX -->
|
|
- <div class="col-12" hx-ext="sse" sse-connect="/sse_event">
|
|
|
|
|
|
+ <div class="col-12">
|
|
<div class="row row-cards" id="containerCards" data-hx-get="/containers" data-hx-trigger="load, sse:docker" data-hx-swap="innerHTML">
|
|
<div class="row row-cards" id="containerCards" data-hx-get="/containers" data-hx-trigger="load, sse:docker" data-hx-swap="innerHTML">
|
|
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
+ <!-- HTMX -->
|
|
|
|
+ <div class="col-12">
|
|
|
|
+ <div class="row row-cards" data-hx-get="/installs" name="jellyfin" data-hx-trigger="load delay:2s, sse:install" data-hx-swap="beforeend" hx-target="#containerCards">
|
|
|
|
+
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+
|
|
<!-- HTMX Target-->
|
|
<!-- HTMX Target-->
|
|
<div id="modals-here" class="modal modal-blur fade" style="display: none" aria-hidden="false" tabindex="-1">
|
|
<div id="modals-here" class="modal modal-blur fade" style="display: none" aria-hidden="false" tabindex="-1">
|
|
<div class="modal-dialog modal-lg modal-dialog-centered" role="document">
|
|
<div class="modal-dialog modal-lg modal-dialog-centered" role="document">
|