Compare commits
1 Commits
mimo/code/
...
groq/issue
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ae24cd2c03 |
17
app.js
17
app.js
@@ -543,7 +543,7 @@ class L402Client {
|
|||||||
if (response.status === 402) {
|
if (response.status === 402) {
|
||||||
const authHeader = response.headers.get('WWW-Authenticate');
|
const authHeader = response.headers.get('WWW-Authenticate');
|
||||||
console.log(`[L402] Challenge received: ${authHeader}`);
|
console.log(`[L402] Challenge received: ${authHeader}`);
|
||||||
|
|
||||||
const container = document.getElementById('l402-log-content');
|
const container = document.getElementById('l402-log-content');
|
||||||
if (container) {
|
if (container) {
|
||||||
const div = document.createElement('div');
|
const div = document.createElement('div');
|
||||||
@@ -553,6 +553,21 @@ class L402Client {
|
|||||||
}
|
}
|
||||||
return { status: 402, challenge: authHeader };
|
return { status: 402, challenge: authHeader };
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Check for active runners
|
||||||
|
const ciStatusEl = document.getElementById('ci-health-status');
|
||||||
|
if (ciStatusEl) {
|
||||||
|
const activeRunners = await getActiveRunners();
|
||||||
|
if (activeRunners.length === 0) {
|
||||||
|
ciStatusEl.textContent = 'CI: NO RUNNERS';
|
||||||
|
ciStatusEl.style.color = '#ff3333';
|
||||||
|
ciStatusEl.style.borderLeftColor = '#ff3333';
|
||||||
|
} else {
|
||||||
|
ciStatusEl.textContent = `CI: ${activeRunners.length} RUNNERS`;
|
||||||
|
ciStatusEl.style.color = '#4af0c0';
|
||||||
|
ciStatusEl.style.borderLeftColor = '#4af0c0';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return response.json();
|
return response.json();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1106,6 +1106,13 @@ canvas#nexus-canvas {
|
|||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
border-left: 3px solid var(--color-primary);
|
border-left: 3px solid var(--color-primary);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ci-health-status {
|
||||||
|
background: rgba(255, 50, 50, 0.1);
|
||||||
|
color: #ff3333;
|
||||||
|
border-left: 3px solid #ff3333;
|
||||||
|
font-family: var(--font-display);
|
||||||
|
}
|
||||||
.nexus-footer a {
|
.nexus-footer a {
|
||||||
color: var(--color-text-muted);
|
color: var(--color-text-muted);
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
|
|||||||
Reference in New Issue
Block a user