add js script, remove vendor

This commit is contained in:
2024-02-24 11:39:56 +01:00
parent de2d3dc85f
commit 369059c925
1827 changed files with 289 additions and 166713 deletions

View File

@@ -12,7 +12,9 @@
<title>NVIDIA Dashboard</title>
<!-- Custom fonts for this template-->
<link href="vendor/fontawesome-free/css/all.min.css" rel="stylesheet" type="text/css">
<link rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@5.15.4/css/fontawesome.min.css"
integrity="sha256-BYjRZhSY2ARUPcFTf5eEh3qWK58O88TM7nZet/JUNhE=" crossorigin="anonymous">
<link
href="https://fonts.googleapis.com/css?family=Nunito:200,200i,300,300i,400,400i,600,600i,700,700i,800,800i,900,900i"
rel="stylesheet">
@@ -36,9 +38,12 @@
<img src="img/nvidia.png" class="nvidia-logo" width="100rem" height="auto" />
</div>
<div class="sidebar-brand-text mx-3">SMI</div>
</a>
<!-- Divider -->
</a>
<div class="d-flex align-items-center justify-content-center">
<small>v{{ .Version }}</small>
</div>
<hr class="sidebar-divider my-0">
{{ range .GPUs }}
@@ -148,7 +153,8 @@
<div class="text-xs font-weight-bold text-success text-uppercase mb-1">
Usage
</div>
<div class="h5 mb-0 font-weight-bold text-gray-800">{{ .GPU.Utilization.Rate }}%</div>
<div class="h5 mb-0 font-weight-bold text-gray-800" id="sum-compute">{{
.GPU.Utilization.Compute }}%</div>
</div>
</div>
</div>
@@ -159,160 +165,159 @@
<div class="row">
<!-- Area Chart -->
<div class="col">
<!-- Content Column -->
<div class="col-lg-6 mb-4">
<!-- Summary -->
<div class="card shadow mb-4">
<!-- Card Header - Dropdown -->
<div
class="card-header py-3 d-flex flex-row align-items-center justify-content-between">
<h6 class="m-0 font-weight-bold text-success">Load</h6>
<div class="dropdown no-arrow">
<a class="dropdown-toggle" href="#" role="button" id="dropdownMenuLink"
data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<i class="fas fa-ellipsis-v fa-sm fa-fw text-gray-400"></i>
</a>
</div>
<div class="card-header py-3">
<h6 class="m-0 font-weight-bold text-success">Summary</h6>
</div>
<!-- Card Body -->
<div class="card-body">
<div class="chart-area">
<canvas id="myAreaChart"></canvas>
<h4 class="small font-weight-bold">Temperature
<span class="float-right" id="core-temp">
{{ .GPU.CoreTemperature }}°C
</span>
</h4>
<hr />
<!-- <h4 class="small font-weight-bold">Fans</h4>
{{ range .GPU.Fans }}
<h4 class="small font-weight-bold">
Fan
<span class="float-right">
{{ .Speed }}%
</span>
</h4>
{{ end }}
<hr /> -->
<h4 class="small font-weight-bold">
VRAM
<span class="float-right">
<span id="memory-used">{{ ConvertByteSize .GPU.Memory.Used }}</span>/{{
ConvertByteSize .GPU.Memory.Total }}
</span>
</h4>
<div class="progress mb-4">
<div class="progress-bar bg-success" role="progressbar" id="pg-memory"
style="width: {{ PercentageRounded .GPU.Memory.Used .GPU.Memory.Total }}%"
aria-valuenow="{{ PercentageRounded .GPU.Memory.Used .GPU.Memory.Total }}"
aria-valuemin="0" aria-valuemax="100"></div>
</div>
<h4 class="small font-weight-bold">
GPU Usage
<span class="float-right" id="detail-compute">
{{ .GPU.Utilization.Compute }}%
</span>
</h4>
<div class="progress mb-4">
<div class="progress-bar bg-success" role="progressbar" id="pg-compute"
style="width: {{ .GPU.Utilization.Compute }}%"
aria-valuenow="{{ .GPU.Utilization.Compute }}" aria-valuemin="0"
aria-valuemax="100"></div>
</div>
<h4 class="small font-weight-bold">
Encoder Usage
<span class="float-right" id="detail-encoder">
{{ .GPU.Utilization.Encoder }}%
</span>
</h4>
<div class="progress mb-4">
<div class="progress-bar bg-success" role="progressbar" id="pg-encoder"
style="width: {{ .GPU.Utilization.Encoder }}%"
aria-valuenow="{{ .GPU.Utilization.Encoder }}" aria-valuemin="0"
aria-valuemax="100"></div>
</div>
<h4 class="small font-weight-bold">
Decoder Usage
<span class="float-right" id="detail-decoder">
{{ .GPU.Utilization.Decoder }}%
</span>
</h4>
<div class="progress">
<div class="progress-bar bg-success" role="progressbar" id="pg-decoder"
style="width: {{ .GPU.Utilization.Decoder }}%"
aria-valuenow="{{ .GPU.Utilization.Decoder }}" aria-valuemin="0"
aria-valuemax="100"></div>
</div>
</div>
</div>
</div>
<div class="col-lg mb-4">
<!-- Content Row -->
<div class="row">
<!-- Content Column -->
<div class="col-lg-6 mb-4">
<!-- Summary -->
<div class="card shadow mb-4">
<div class="card-header py-3">
<h6 class="m-0 font-weight-bold text-success">Summary</h6>
</div>
<div class="card-body">
<h4 class="small font-weight-bold">Temperature<span class="float-right">
{{ .GPU.CoreTemperature }}°C</span></h4>
<h4 class="small font-weight-bold">VRAM<span class="float-right">
{{ ConvertByteSize .GPU.Memory.Used }}/{{ ConvertByteSize .GPU.Memory.Total }}</span></h4>
<div class="progress mb-4">
<div class="progress-bar" role="progressbar"
style="width: {{ PercentageRounded .GPU.Memory.Used .GPU.Memory.Total }}%"
aria-valuenow="{{ PercentageRounded .GPU.Memory.Used .GPU.Memory.Total }}"
aria-valuemin="0" aria-valuemax="100"></div>
</div>
<h4 class="small font-weight-bold">GPU Usage<span class="float-right">
{{ .GPU.Utilization.Rate }}%</span></h4>
<div class="progress mb-4">
<div class="progress-bar bg-info" role="progressbar"
style="width: {{ .GPU.Utilization.Rate }}%"
aria-valuenow="{{ .GPU.Utilization.Rate }}" aria-valuemin="0"
aria-valuemax="100"></div>
</div>
<h4 class="small font-weight-bold">Encoder Usage<span class="float-right">
{{ .GPU.Utilization.Encode }}%</span></h4>
<div class="progress mb-4">
<div class="progress-bar bg-info" role="progressbar"
style="width: {{ .GPU.Utilization.Encode }}%"
aria-valuenow="{{ .GPU.Utilization.Encode }}" aria-valuemin="0"
aria-valuemax="100"></div>
</div>
<h4 class="small font-weight-bold">Decoder Usage<span class="float-right">
{{ .GPU.Utilization.Decode }}%</span></h4>
<div class="progress">
<div class="progress-bar bg-success" role="progressbar"
style="width: {{ .GPU.Utilization.Decode }}%"
aria-valuenow="{{ .GPU.Utilization.Decode }}" aria-valuemin="0"
aria-valuemax="100"></div>
</div>
<!-- Processes -->
<!-- DataTales Example -->
<div class="card shadow mb-4">
<div class="card-header py-3">
<h6 class="m-0 font-weight-bold text-success">Processes</h6>
</div>
<div class="card-body">
<div class="table-responsive">
<table class="table table-bordered" id="dataTable" width="100%" cellspacing="0">
<thead>
<tr>
<th>PID</th>
<th>Type</th>
<th>Commandline</th>
<th>GPU Memory Usage</th>
</tr>
</thead>
<tbody id="proc-list">
{{ range .GPU.Processes }}
<tr>
<td>{{ .PID }}</td>
<td>{{ .Type }}</td>
<td>{{ .Name }}</td>
<td>{{ ConvertByteSize .MemoryUsed }}</td>
</tr>
{{ end }}
</tbody>
</table>
</div>
</div>
</div>
<div class="col-lg mb-4">
<!-- Processes -->
<!-- DataTales Example -->
<div class="card shadow mb-4">
<div class="card-header py-3">
<h6 class="m-0 font-weight-bold text-primary">Processes</h6>
</div>
<div class="card-body">
<div class="table-responsive">
<table class="table table-bordered" id="dataTable" width="100%"
cellspacing="0">
<thead>
<tr>
<th>PID</th>
<th>Type</th>
<th>Commandline</th>
<th>GPU Memory Usage</th>
</tr>
</thead>
<tbody>
{{ range .GPU.Processes }}
<tr>
<td>{{ .PID }}</td>
<td>{{ .Type }}</td>
<td>{{ .Name }}</td>
<td>{{ ConvertByteSize .MemoryUsed }}</td>
</tr>
{{ end }}
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- /.container-fluid -->
</div>
<!-- End of Main Content -->
<!-- Footer -->
<footer class="sticky-footer bg-white">
<div class="container my-auto">
<div class="copyright text-center my-auto">
<span>template from <a
href="https://github.com/startbootstrap/startbootstrap-sb-admin-2">startbootstrap/startbootstrap-sb-admin-2</a></span>
</div>
</div>
</footer>
<!-- End of Footer -->
<!-- /.container-fluid -->
</div>
<!-- End of Content Wrapper -->
<!-- End of Main Content -->
<!-- Footer -->
<footer class="sticky-footer bg-white">
<div class="container my-auto">
<div class="copyright text-center my-auto">
<span>template from <a
href="https://github.com/startbootstrap/startbootstrap-sb-admin-2">startbootstrap/startbootstrap-sb-admin-2</a></span>
</div>
</div>
</footer>
<!-- End of Footer -->
</div>
<!-- End of Page Wrapper -->
<!-- End of Content Wrapper -->
<!-- Scroll to Top Button-->
<a class="scroll-to-top rounded" href="#page-top">
<i class="fas fa-angle-up"></i>
</a>
</div>
<!-- End of Page Wrapper -->
<!-- Bootstrap core JavaScript-->
<script src="vendor/jquery/jquery.min.js"></script>
<script src="vendor/bootstrap/js/bootstrap.bundle.min.js"></script>
<!-- Scroll to Top Button-->
<a class="scroll-to-top rounded" href="#page-top">
<i class="fas fa-angle-up"></i>
</a>
<!-- Core plugin JavaScript-->
<script src="vendor/jquery-easing/jquery.easing.min.js"></script>
<!-- Bootstrap core JavaScript-->
<script src="https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@5.15.4/js/all.min.js" integrity="sha256-gSqw5G+Gss6YqyQlqyIkuQ0IRZUqGsDVq9c0tiF+mL8=" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/jquery@3.7.1/dist/jquery.min.js"
integrity="sha256-/JqT3SQfawRcv/BIHPThkBvs0OEvtFFmqPF/lYI/Cxo=" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@4.6.2/dist/js/bootstrap.bundle.min.js"
integrity="sha256-GRJrh0oydT1CwS36bBeJK/2TggpaUQC6GzTaTQdZm0k=" crossorigin="anonymous"></script>
<!-- Custom scripts for all pages-->
<script src="js/sb-admin-2.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/axios/dist/axios.min.js"></script>
<!-- Page level plugins -->
<script src="vendor/chart.js/Chart.min.js"></script>
<!-- Page level custom scripts -->
<script src="js/demo/chart-area-demo.js"></script>
<script src="js/script.js"></script>
</body>