web: start: build

Signed-off-by: GnomeZworc <nicolas.boufidjeline@g3e.fr>
This commit is contained in:
GnomeZworc 2026-05-30 10:05:40 +02:00
commit 1d79f06f60
Signed by: nicolas.boufideline
GPG key ID: 4406BBBF8845D632
5 changed files with 206 additions and 0 deletions

View file

@ -30,6 +30,7 @@ class ApiClient extends HTMLElement {
async connectedCallback() {
this.style.display = 'none'
// Support login-gate (static token) and biscuit-gate (attenuated token).
const gate = document.querySelector('login-gate')
this.#credentials = gate ? await gate.ready : null
@ -37,6 +38,7 @@ class ApiClient extends HTMLElement {
this.agent = this.#buildAgent()
}
get creds() {
return this.#credentials ?? {}
}