Refine portal UX and clean local artifacts

This commit is contained in:
Jino Jose committed 2026-07-07 10:38:27 +05:30
1 parent ed056e0020
commit 4521a335ae
8 files changed
+14 -20

No files matched your search

+3 -11
View File
@@ -418,17 +418,9 @@ async function checkConnectivity() {
const dot = document.getElementById('conn-dot');
const label = document.getElementById('conn-label');
const hint = document.getElementById('conn-hint');
dot.className = 'mm-conn-dot checking';
try {
await fetch('https://registry.ollama.ai', { method:'HEAD', mode:'no-cors', signal: AbortSignal.timeout(4000) });
dot.className = 'mm-conn-dot online';
label.textContent = 'Internet available';
hint.textContent = 'You can pull models directly or upload a file below';
} catch {
dot.className = 'mm-conn-dot offline';
label.textContent = 'No internet / Air-gapped';
hint.textContent = 'Use the upload below to load models from a local file';
}
dot.className = 'mm-conn-dot offline';
label.textContent = 'Offline upload ready';
hint.textContent = 'Use a local .gguf file; registry pulls are handled by the appliance when network access is available';
}
function onFileSelected(input) {