initial commit
Signed-off-by: GnomeZworc <nicolas.boufidjeline@g3e.fr>
This commit is contained in:
commit
81baed85c7
16 changed files with 705 additions and 0 deletions
10
core/registry.js
Normal file
10
core/registry.js
Normal 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}`)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue