restructure: move web app into sources/

All served files (index.html, core/, pages/, components/, vendor/,
config.json, icons.json, favicon.svg) are now under sources/.
build.sh and components.yml stay at the repo root.
build.sh updated: WEB_DIR → sources/, MANIFEST stays at SCRIPT_DIR.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Signed-off-by: GnomeZworc <nicolas.boufidjeline@g3e.fr>
This commit is contained in:
GnomeZworc 2026-06-07 12:55:28 +02:00
commit 0d5c2fbd35
Signed by: nicolas.boufideline
GPG key ID: 4406BBBF8845D632
16 changed files with 3 additions and 2 deletions

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