Spaces:
Running
Running
em detalhe do ativo, deixe o poup up maior, para a tabela fica mais cumprinda, e ID troque por hostname, nao precisa especifica nesse detalhe por que a maquina ta ruim, quando abrir a telinha, ja vai ter a descrição em tabela
Browse files- index.html +21 -25
index.html
CHANGED
|
@@ -41,8 +41,8 @@
|
|
| 41 |
padding: 2rem;
|
| 42 |
border-radius: 0.5rem;
|
| 43 |
width: 90%;
|
| 44 |
-
max-width:
|
| 45 |
-
|
| 46 |
overflow-y: auto;
|
| 47 |
}
|
| 48 |
.modal-header {
|
|
@@ -481,16 +481,16 @@
|
|
| 481 |
</footer>
|
| 482 |
<!-- Modal Structure -->
|
| 483 |
<div class="modal" id="assetModal">
|
| 484 |
-
|
| 485 |
-
|
| 486 |
-
|
| 487 |
-
|
| 488 |
-
|
| 489 |
-
|
| 490 |
-
|
|
|
|
| 491 |
</div>
|
| 492 |
-
|
| 493 |
-
</div>
|
| 494 |
|
| 495 |
<script>
|
| 496 |
feather.replace();
|
|
@@ -765,9 +765,12 @@
|
|
| 765 |
<table class="w-full">
|
| 766 |
<thead>
|
| 767 |
<tr class="text-slate-400 border-b border-slate-700">
|
| 768 |
-
<th class="pb-2 text-left">
|
| 769 |
<th class="pb-2 text-left">Usuário</th>
|
| 770 |
-
<th class="pb-2 text-left">
|
|
|
|
|
|
|
|
|
|
| 771 |
<th class="pb-2 text-left">Status</th>
|
| 772 |
</tr>
|
| 773 |
</thead>
|
|
@@ -776,12 +779,10 @@
|
|
| 776 |
<tr class="border-b border-slate-700">
|
| 777 |
<td class="py-2 text-white">${asset.id}</td>
|
| 778 |
<td class="py-2 text-white">${asset.user}</td>
|
| 779 |
-
<td class="py-2 text-white
|
| 780 |
-
|
| 781 |
-
|
| 782 |
-
|
| 783 |
-
SO: ${asset.os}
|
| 784 |
-
</td>
|
| 785 |
<td class="py-2">
|
| 786 |
<span class="${status === 'bad' ? 'text-red-400' :
|
| 787 |
status === 'regular' ? 'text-orange-400' :
|
|
@@ -789,14 +790,9 @@
|
|
| 789 |
status === 'great' ? 'text-green-400' : 'text-blue-400'}">
|
| 790 |
${asset.status}
|
| 791 |
</span>
|
| 792 |
-
${asset.issues.length > 0 ? `
|
| 793 |
-
<ul class="list-disc pl-5 text-xs ${status === 'bad' ? 'text-red-400' : 'text-orange-400'} mt-1">
|
| 794 |
-
${asset.issues.map(issue => `<li>${issue}</li>`).join('')}
|
| 795 |
-
</ul>
|
| 796 |
-
` : ''}
|
| 797 |
</td>
|
| 798 |
</tr>
|
| 799 |
-
|
| 800 |
</tbody>
|
| 801 |
</table>
|
| 802 |
</div>
|
|
|
|
| 41 |
padding: 2rem;
|
| 42 |
border-radius: 0.5rem;
|
| 43 |
width: 90%;
|
| 44 |
+
max-width: 800px;
|
| 45 |
+
max-height: 80vh;
|
| 46 |
overflow-y: auto;
|
| 47 |
}
|
| 48 |
.modal-header {
|
|
|
|
| 481 |
</footer>
|
| 482 |
<!-- Modal Structure -->
|
| 483 |
<div class="modal" id="assetModal">
|
| 484 |
+
<div class="modal-content">
|
| 485 |
+
<div class="modal-header">
|
| 486 |
+
<h3 class="text-xl font-bold">Detalhes do Ativo</h3>
|
| 487 |
+
<span class="close-modal text-slate-400">×</span>
|
| 488 |
+
</div>
|
| 489 |
+
<div id="modalBody" class="overflow-x-auto">
|
| 490 |
+
<!-- Content will be inserted here by JS -->
|
| 491 |
+
</div>
|
| 492 |
</div>
|
| 493 |
+
</div>
|
|
|
|
| 494 |
|
| 495 |
<script>
|
| 496 |
feather.replace();
|
|
|
|
| 765 |
<table class="w-full">
|
| 766 |
<thead>
|
| 767 |
<tr class="text-slate-400 border-b border-slate-700">
|
| 768 |
+
<th class="pb-2 text-left">Hostname</th>
|
| 769 |
<th class="pb-2 text-left">Usuário</th>
|
| 770 |
+
<th class="pb-2 text-left">CPU</th>
|
| 771 |
+
<th class="pb-2 text-left">Memória</th>
|
| 772 |
+
<th class="pb-2 text-left">Disco</th>
|
| 773 |
+
<th class="pb-2 text-left">SO</th>
|
| 774 |
<th class="pb-2 text-left">Status</th>
|
| 775 |
</tr>
|
| 776 |
</thead>
|
|
|
|
| 779 |
<tr class="border-b border-slate-700">
|
| 780 |
<td class="py-2 text-white">${asset.id}</td>
|
| 781 |
<td class="py-2 text-white">${asset.user}</td>
|
| 782 |
+
<td class="py-2 text-white">${asset.cpu}</td>
|
| 783 |
+
<td class="py-2 text-white">${asset.memory}</td>
|
| 784 |
+
<td class="py-2 text-white">${asset.disk}</td>
|
| 785 |
+
<td class="py-2 text-white">${asset.os}</td>
|
|
|
|
|
|
|
| 786 |
<td class="py-2">
|
| 787 |
<span class="${status === 'bad' ? 'text-red-400' :
|
| 788 |
status === 'regular' ? 'text-orange-400' :
|
|
|
|
| 790 |
status === 'great' ? 'text-green-400' : 'text-blue-400'}">
|
| 791 |
${asset.status}
|
| 792 |
</span>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 793 |
</td>
|
| 794 |
</tr>
|
| 795 |
+
`).join('')}
|
| 796 |
</tbody>
|
| 797 |
</table>
|
| 798 |
</div>
|