Translate UI to English and add PWA support
This commit is contained in:
@@ -1,10 +1,14 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="it">
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>LLM Monitor - Modelli in Memoria</title>
|
||||
<title>LLM Monitor - Running Models</title>
|
||||
<link rel="icon" href="/favicon.ico" sizes="any">
|
||||
<link rel="manifest" href="/manifest.webmanifest">
|
||||
<meta name="theme-color" content="#111827">
|
||||
<meta name="application-name" content="LLM Monitor">
|
||||
<meta name="description" content="View models currently loaded in Ollama memory.">
|
||||
<link rel="stylesheet" href="/static/css/output.css">
|
||||
<style>
|
||||
@keyframes spin {
|
||||
@@ -25,13 +29,13 @@
|
||||
🧠
|
||||
</div>
|
||||
<div>
|
||||
<h1 class="text-2xl font-bold">Modelli in Memoria</h1>
|
||||
<p class="text-xs text-gray-400">Vista dedicata all'output di ollama ps</p>
|
||||
<h1 class="text-2xl font-bold">Running Models</h1>
|
||||
<p class="text-xs text-gray-400">Dedicated view for ollama ps output</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="flex items-center gap-2">
|
||||
<a href="/models-available" class="text-sm bg-gray-700 hover:bg-gray-600 px-3 py-2 rounded-lg transition">Modelli Disponibili</a>
|
||||
<button id="refresh-btn" class="text-sm bg-purple-600 hover:bg-purple-700 px-3 py-2 rounded-lg transition">Aggiorna</button>
|
||||
<a href="/models-available" class="text-sm bg-gray-700 hover:bg-gray-600 px-3 py-2 rounded-lg transition">Available Models</a>
|
||||
<button id="refresh-btn" class="text-sm bg-purple-600 hover:bg-purple-700 px-3 py-2 rounded-lg transition">Refresh</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -41,25 +45,25 @@
|
||||
<div class="max-w-7xl mx-auto px-4 py-8">
|
||||
<div class="grid grid-cols-1 md:grid-cols-3 gap-6 mb-8">
|
||||
<div class="bg-gray-800 rounded-lg p-6 border border-gray-700">
|
||||
<div class="text-gray-400 text-sm font-medium">Modelli Residenti</div>
|
||||
<div class="text-gray-400 text-sm font-medium">Loaded in Memory</div>
|
||||
<div id="running-count" class="text-4xl font-bold mt-2">-</div>
|
||||
</div>
|
||||
<div class="bg-gray-800 rounded-lg p-6 border border-gray-700">
|
||||
<div class="text-gray-400 text-sm font-medium">VRAM Totale Stimata</div>
|
||||
<div class="text-gray-400 text-sm font-medium">Estimated Total VRAM</div>
|
||||
<div id="vram-total" class="text-4xl font-bold mt-2">-</div>
|
||||
</div>
|
||||
<div class="bg-gray-800 rounded-lg p-6 border border-gray-700">
|
||||
<div class="text-gray-400 text-sm font-medium">Ultimo Refresh</div>
|
||||
<div class="text-gray-400 text-sm font-medium">Last Refresh</div>
|
||||
<div id="last-refresh" class="text-base font-semibold mt-3">-</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="bg-gray-800 rounded-lg border border-gray-700 p-6">
|
||||
<h2 class="text-xl font-bold mb-4">Output Ollama PS</h2>
|
||||
<h2 class="text-xl font-bold mb-4">Ollama PS Output</h2>
|
||||
<div id="running-models" class="space-y-3">
|
||||
<div class="text-center py-8">
|
||||
<div class="inline-block w-8 h-8 border-4 border-gray-600 border-t-purple-500 rounded-full animate-spin"></div>
|
||||
<p class="text-gray-400 mt-4">Caricamento modelli residenti...</p>
|
||||
<p class="text-gray-400 mt-4">Loading running models...</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -68,11 +72,12 @@
|
||||
|
||||
<footer class="bg-gray-800 border-t border-gray-700 mt-12">
|
||||
<div class="max-w-7xl mx-auto px-4 py-6 text-center text-gray-400 text-sm">
|
||||
<p>LLM Monitor v1.0.0 • Modelli residenti in memoria (ollama ps)</p>
|
||||
<p>LLM Monitor v1.0.0 • Models currently loaded in memory (ollama ps)</p>
|
||||
</div>
|
||||
</footer>
|
||||
</div>
|
||||
|
||||
<script src="/static/js/models-running.js"></script>
|
||||
<script src="/static/js/pwa-register.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user