Modules/UniversalDashboard.MaterialUI/UniversalDashboard.MaterialUI.psm1
$JsFile = Get-ChildItem "$PSScriptRoot\index.*.bundle.js" $JsFiles = Get-ChildItem "$PSScriptRoot\*.bundle.js" $Maps = Get-ChildItem "$PSScriptRoot\*.bundle.map" $JsFiles | ForEach-Object { [UniversalDashboard.Services.AssetService]::Instance.RegisterAsset($_.FullName) } $Maps | ForEach-Object { [UniversalDashboard.Services.AssetService]::Instance.RegisterAsset($_.FullName) | Out-Null } $MUAssetId = [UniversalDashboard.Services.AssetService]::Instance.RegisterAsset($JSFile.FullName) [UniversalDashboard.Services.AssetService]::Instance.RegisterFramework("MaterialUI", $JSFile.FullName) # Load out controls Get-ChildItem (Join-Path $PSScriptRoot "Scripts") -File -Filter "*.ps1" | ForEach-Object { . $_.FullName } |