web: start: clean some code

Signed-off-by: GnomeZworc <nicolas.boufidjeline@g3e.fr>
This commit is contained in:
GnomeZworc 2026-06-02 23:24:50 +02:00
commit 38939a0579
Signed by: nicolas.boufideline
GPG key ID: 4406BBBF8845D632
9 changed files with 5 additions and 219 deletions

View file

@ -12,7 +12,6 @@
// await api.agent.delete('/vpcs/vp-admin')
// await api.agent.waitFor('/vms/i-test1', 'started')
//
// Credentials come from <login-gate>.ready — no direct config.json dependency.
// Phase 2: swap login-gate for oidc-gate → this component unchanged.
export class ApiError extends Error {

View file

@ -1,5 +1,3 @@
import { config } from '../../core/config.js'
const CSS = new URL('./date-display.css', import.meta.url).href
class DateDisplay extends HTMLElement {
@ -14,7 +12,6 @@ class DateDisplay extends HTMLElement {
<div class="date" id="date"></div>
<div class="agent">agent <span id="agent-url"></span></div>
`
this.shadowRoot.getElementById('agent-url').textContent = config.agent_url
this.#tick()
this.#interval = setInterval(() => this.#tick(), 1000)
}

View file

@ -44,7 +44,6 @@ class LoginGate extends HTMLElement {
return
}
// Load config.json defaults to pre-fill the form
let defaults = {}
try {
const r = await fetch('./config.json')