Skip to content

Instantly share code, notes, and snippets.

@aggiebck
Created January 31, 2020 19:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aggiebck/79bd708e61ecabffa18e537ea4e9b6ee to your computer and use it in GitHub Desktop.
Save aggiebck/79bd708e61ecabffa18e537ea4e9b6ee to your computer and use it in GitHub Desktop.
# CSS Color scheme for Dashboard's
$Colors = @{
BackgroundColor = "#252525"
FontColor = "#FFFFFF"
}
$AlternateColors = @{
BackgroundColor = "#5C5C5C"
FontColor = "#FFFFFF"
}
# Dashboard and Page Creation
$Pages = @()
$Pages += . (Join-Path $PSScriptRoot "pages\home.ps1")
Get-ChildItem (Join-Path $PSScriptRoot "pages") -Exclude "home.ps1" | ForEach-Object {
$Pages += . $_.FullName
}
$Login = Get-ChildItem (Join-Path $PSScriptRoot 'Login') | ForEach-Object {
. $_.FullName
}
$Endpoints = Get-ChildItem (Join-Path $PSScriptRoot 'endpoints') | ForEach-Object {
. $_.FullName
}
$EndpointInitializaton = New-UDEndpointInitialization -Function @("Add-request", "Add-SDNote", "Update-SDTick", "Add-Resolution","Get-UIN","Get-NetID","Get-SANS","ADD-WIKI","Deact-WIKI","Wiki-Groups","Wiki-GroupAdd","grpAdd","grpAdd_NoNotes","O-NTFS","X-NTFS","HDriveAdd","Get-Sid","Mirror_Users","Default-addGroup","HDriveAdd-NoNotes","Add-Task")
$Dashboard = New-UDDashboard -Title "Office of the Provost IT" -Pages $Pages -EndpointInitialization $EndpointInitializaton -LoginPage $Login -NavBarColor '#FF1c1c1c' -NavBarFontColor "#FF55b3ff" -BackgroundColor "#500000" -FontColor "#FFFFFFF" -NavBarLogo (New-UDImage -Path "$PSScriptRoot\images\TAM-Logo-white.png" -Height 75 -Width 75)
# Log path
$DashboardName = "PITO-UD"
$DateString = (Get-Date).ToString( 'yyyy-MM-dd.hh.mm' )
$DebugPath = "$PSScriptRoot\Logs\Dashboard Logs\$DashboardName.Website.$DateString.Debug.log"
Enable-UDLogging -Level Debug -FilePath $DebugPath
Start-UDDashboard -Wait -Dashboard ($Dashboard) -Endpoint $Endpoints -AllowHttpForLogin -AutoReload
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment