web: start: premier j'ai d'un dashboard modulaire

Signed-off-by: GnomeZworc <nicolas.boufidjeline@g3e.fr>
This commit is contained in:
GnomeZworc 2026-05-29 23:36:59 +02:00
commit 14ef0ecc83
Signed by: nicolas.boufideline
GPG key ID: 4406BBBF8845D632
13 changed files with 479 additions and 0 deletions

6
web/core/config.js Normal file
View file

@ -0,0 +1,6 @@
// Single source of truth for configuration.
// Phase 2: replace the fetch with a call to the orchestrator.
const response = await fetch('./config.json')
if (!response.ok) throw new Error('Failed to load config.json')
export const config = await response.json()

10
web/core/registry.js Normal file
View file

@ -0,0 +1,10 @@
// Loads and registers all components listed in components.json.
// To add a component: git clone into components/, add the path here.
const response = await fetch('./components.json')
if (!response.ok) throw new Error('Failed to load components.json')
const components = await response.json()
for (const path of components) {
await import(`../${path}`)
}