syn/exemple/navigation/sources/core/registry.js
GnomeZworc 6185d8ea48
move working code to exemple/navigation/
sources/, config.yml and build.sh relocated under exemple/navigation/.
Root now only contains template/ and exemple/.
README updated to reflect the new structure.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Signed-off-by: GnomeZworc <nicolas.boufidjeline@g3e.fr>
2026-06-07 13:16:42 +02:00

10 lines
360 B
JavaScript

// 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}`)
}