func Components.Shell(title, html, page, $mypage) { if(TypeOf(mypage) != "Path") mypage = /; var index = (/).MakeRelative(mypage).ToString(); if(index == "") index = "./"; const service_worker_script_path = (/"service_worker.js").MakeRelative(mypage).ToString(); const service_worker_script = $""; var pages = [ { text="Home", icon="home", href=index, classStr="", badge = "" }, { text="Queue", icon="downloading", href=(/"queue").MakeRelative(mypage).ToString(),, classStr="", badge= ? }, { text = "Downloads", icon = "download", href=(/"downloads").MakeRelative(mypage).ToString(), classStr="", badge="" }, { text = "Plugins", icon = "extension", href= (/"plugins").MakeRelative(mypage).ToString(), classStr="", badge="" }, { text = "Settings", icon = "settings", href= (/"settings").MakeRelative(mypage).ToString(), classStr="", badge="" }, { text = "Api", icon = "api", href = (/"api").MakeRelative(mypage).ToString(), classStr="", badge="" } ]; pages[page].classStr = " primary-container"; return TYTD - {title}
/**/
; }