Compare commits
1 Commits
perplexity
...
groq/issue
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ae24cd2c03 |
17
app.js
17
app.js
@@ -543,7 +543,7 @@ class L402Client {
|
||||
if (response.status === 402) {
|
||||
const authHeader = response.headers.get('WWW-Authenticate');
|
||||
console.log(`[L402] Challenge received: ${authHeader}`);
|
||||
|
||||
|
||||
const container = document.getElementById('l402-log-content');
|
||||
if (container) {
|
||||
const div = document.createElement('div');
|
||||
@@ -553,6 +553,21 @@ class L402Client {
|
||||
}
|
||||
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();
|
||||
}
|
||||
|
||||
@@ -1106,6 +1106,13 @@ canvas#nexus-canvas {
|
||||
border-radius: 4px;
|
||||
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 {
|
||||
color: var(--color-text-muted);
|
||||
text-decoration: none;
|
||||
|
||||
Reference in New Issue
Block a user