web: start: add dynamique menu

Signed-off-by: GnomeZworc <nicolas.boufidjeline@g3e.fr>
This commit is contained in:
GnomeZworc 2026-06-04 00:06:51 +02:00
commit c805169747
Signed by: nicolas.boufideline
GPG key ID: 4406BBBF8845D632
9 changed files with 343 additions and 8 deletions

View file

@ -17,7 +17,8 @@ const MODULE_CACHE = new Map()
let activeCSS = null
function currentRoute() {
return window.location.hash.replace(/^#\//, '') || PAGES[0]?.route || ''
const hash = window.location.hash.replace(/^#\//, '') || PAGES[0]?.route || ''
return hash.split('?')[0]
}
async function render(routeName) {