web: start: clean some code
Signed-off-by: GnomeZworc <nicolas.boufidjeline@g3e.fr>
This commit is contained in:
parent
afa189d438
commit
38939a0579
9 changed files with 5 additions and 219 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue